/*
Theme Name: 500
Theme URI: https://example.com
Author: 500
Author URI: https://example.com
Description: Blokova tema za firmeni saitove.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 500
Tags: full-site-editing, block-patterns, business, one-column, block-styles, custom-colors, editor-style, wide-blocks
*/

body { -webkit-font-smoothing: antialiased; }

.s500-eyebrow {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 12px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wp--preset--color--muted);
  margin: 0 0 20px !important;
}
.s500-lead {
  font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5;
  color: #2C3037; max-width: 44ch;
}
.s500-lead.is-centered { margin-left: auto; margin-right: auto; text-align: center; }
.s500-section { padding-top: 88px; padding-bottom: 88px; border-top: 1px solid var(--wp--preset--color--rule); }
.s500-section.no-rule { border-top: none; }
.s500-sec-head { max-width: 52ch; margin-bottom: 44px; }
.s500-mono {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 12.5px; color: var(--wp--preset--color--muted); line-height: 1.7;
}
:where(.wp-block-group) > p:last-child { margin-bottom: 0; }

.s500-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 248, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wp--preset--color--rule);
  padding-top: 12px; padding-bottom: 12px;
}
.s500-header .wp-block-navigation a:hover { color: var(--wp--preset--color--contrast); }
.s500-btn-sm .wp-block-button__link { padding: 9px 18px !important; font-size: 14px !important; }

.s500-hero { padding-top: 76px !important; padding-bottom: 76px !important; }
.s500-hero .s500-h1 { margin-bottom: 26px; }
.s500-hero .s500-lead { margin-bottom: 32px; }
.s500-pricetag {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 14px; color: var(--wp--preset--color--muted); margin-bottom: 0 !important;
}
.s500-pricetag strong { color: var(--wp--preset--color--contrast); font-weight: 700; }

.s500-hero.has-media-bg,
.s500-hero.has-media-bg .s500-h1,
.s500-hero.has-media-bg .s500-lead,
.s500-hero.has-media-bg p { color: var(--wp--preset--color--base) !important; }
.s500-hero.has-media-bg .s500-eyebrow { color: #C9CEFF !important; }
.s500-hero.has-media-bg .s500-pricetag strong { color: #fff; }

.s500-invoice {
  background: #fff; border: 1px solid var(--wp--preset--color--rule); border-radius: 3px;
  padding: 26px 26px 22px !important;
  box-shadow: 0 1px 0 var(--wp--preset--color--rule), 0 18px 40px -28px rgba(20, 22, 26, .35);
}
.s500-invoice .s500-inv-head {
  padding-bottom: 14px; border-bottom: 1.5px solid var(--wp--preset--color--contrast); margin-bottom: 4px;
}
.s500-invoice .s500-inv-head .t { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 14px; margin: 0; }
.s500-invoice .s500-inv-head .d { font-family: var(--wp--preset--font-family--mono); font-size: 11px; color: var(--wp--preset--color--muted); margin: 0; }

.s500-line {
  padding: 9px 0 !important; border-bottom: 1px dotted var(--wp--preset--color--rule);
  gap: 14px !important; align-items: baseline !important;
}
.s500-line p { margin: 0; }
.s500-line .l { font-family: var(--wp--preset--font-family--body); font-size: 14.5px; }
.s500-line .p { font-family: var(--wp--preset--font-family--mono); font-size: 13.5px; white-space: nowrap; }

.s500-line.is-cut .l, .s500-line.is-cut .p { color: #9A9DA3; position: relative; }
.s500-line.is-cut .l::after, .s500-line.is-cut .p::after {
  content: ""; position: absolute; left: -2px; top: 52%; height: 1.5px; width: 0;
  background: var(--wp--preset--color--strike); animation: s500-strike .38s ease forwards;
}
@keyframes s500-strike { to { width: calc(100% + 4px); } }
@media (prefers-reduced-motion: reduce) {
  .s500-line.is-cut .l::after, .s500-line.is-cut .p::after { animation: none; width: calc(100% + 4px); }
}
.s500-line.is-keep { border-bottom: none; }
.s500-line.is-keep .l { font-weight: 600; }
.s500-line.is-keep .p { color: var(--wp--preset--color--ok); font-weight: 500; }

.s500-inv-total {
  padding-top: 16px !important; margin-top: 8px !important;
  border-top: 1.5px solid var(--wp--preset--color--contrast); align-items: baseline !important;
}
.s500-inv-total p { margin: 0; }
.s500-inv-total .lab {
  font-family: var(--wp--preset--font-family--display); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--muted);
}
.s500-inv-total .old { font-family: var(--wp--preset--font-family--mono); font-size: 15px; color: #9A9DA3; text-decoration: line-through; text-align: right; }
.s500-inv-total .new { font-family: var(--wp--preset--font-family--mono); font-size: 27px; font-weight: 700; color: var(--wp--preset--color--accent); text-align: right; letter-spacing: -.02em; line-height: 1.15; }
.s500-inv-note { font-family: var(--wp--preset--font-family--mono); font-size: 10.5px; color: var(--wp--preset--color--muted); margin-top: 12px !important; line-height: 1.5; }

.s500-trust {
  border-top: 1px solid var(--wp--preset--color--rule);
  border-bottom: 1px solid var(--wp--preset--color--rule);
  padding: 18px 0 !important;
}

.s500-marquee {
  --s500-marquee-duration: 34s;
  display: flex;
  overflow: hidden;
  width: 100%;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.s500-marquee__track {
  display: flex;
  flex-wrap: nowrap !important;
  flex-shrink: 0;
  min-width: 100%;
  align-items: center;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  will-change: transform;
  animation: s500-marquee var(--s500-marquee-duration) linear infinite;
}

@keyframes s500-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.s500-marquee:hover .s500-marquee__track,
.s500-marquee:focus-within .s500-marquee__track { animation-play-state: paused; }

.s500-trust p {
  margin: 0;
  white-space: nowrap;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}
.s500-trust strong { color: var(--wp--preset--color--contrast); font-weight: 700; }

.s500-trust .s500-marquee__track p::after {
  content: "◆";
  display: inline-block;
  margin: 0 34px;
  font-size: 7px;
  vertical-align: 3px;
  color: var(--wp--preset--color--accent);
  opacity: .55;
}

@media (prefers-reduced-motion: reduce) {
  .s500-marquee__track { animation: none; }
  .s500-marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

.editor-styles-wrapper .s500-marquee__track { animation: none; }
.editor-styles-wrapper .s500-marquee {
  -webkit-mask-image: none; mask-image: none; overflow: visible;
}
.editor-styles-wrapper .s500-marquee__track { flex-wrap: wrap !important; }

.s500-marker {
  font-family: var(--wp--preset--font-family--mono); font-size: 12px; font-weight: 700;
  color: var(--wp--preset--color--accent); margin: 0 0 14px !important; letter-spacing: .08em;
}
.s500-col p:not(.s500-marker) { font-size: 16.5px; color: var(--wp--preset--color--contrast-2); }
.s500-col h3 { margin-bottom: 10px; }

.s500-lic table { width: 100%; border-collapse: collapse; font-size: 16px; }
.s500-lic td { padding: 12px 0; border-bottom: 1px solid var(--wp--preset--color--rule); border-left: none; border-right: none; border-top: none; }
.s500-lic td:last-child { text-align: right; font-family: var(--wp--preset--font-family--mono); font-size: 15px; white-space: nowrap; }
.s500-lic tr:nth-last-child(2) td { border-bottom: none; border-top: 1.5px solid var(--wp--preset--color--contrast); padding-top: 16px; font-weight: 600; }
.s500-lic tr:nth-last-child(2) td:last-child { font-weight: 700; font-size: 17px; }
.s500-lic tr:last-child td { border: none; padding-top: 6px; color: var(--wp--preset--color--accent); font-weight: 600; }
.s500-lic tr:last-child td:last-child { font-weight: 700; font-size: 17px; }
.s500-lic figcaption { display: none; }

.s500-kicker {
  font-family: var(--wp--preset--font-family--display); font-weight: 600;
  font-size: clamp(19px, 2.4vw, 26px); line-height: 1.35; letter-spacing: -.015em;
  margin-top: 28px !important; max-width: 34ch;
}
.s500-kicker mark {
  background: var(--wp--preset--color--accent-soft); color: inherit;
  box-shadow: 0 0 0 4px var(--wp--preset--color--accent-soft);
}

.s500-plan {
  background: #fff; border: 1px solid var(--wp--preset--color--rule); border-radius: 3px;
  padding: 26px 24px 28px !important; position: relative; height: 100%;
}
.s500-plan.is-best { border: 2px solid var(--wp--preset--color--accent); }
.s500-badge {
  position: absolute; top: -11px; left: 23px; background: var(--wp--preset--color--accent); color: #fff;
  font-family: var(--wp--preset--font-family--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; margin: 0 !important;
}
.s500-plan .nm { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 17px; margin: 0 0 14px !important; }
.s500-plan .pr { font-family: var(--wp--preset--font-family--mono); font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 0 !important; }
.s500-plan .pr sup { font-size: 16px; font-weight: 500; }
.s500-plan .sub { font-family: var(--wp--preset--font-family--mono); font-size: 12px; color: var(--wp--preset--color--muted); margin: 8px 0 20px !important; line-height: 1.55; }
.s500-plan ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: 15.5px; }
.s500-plan li { padding: 7px 0; border-bottom: 1px dotted var(--wp--preset--color--rule); display: flex; justify-content: space-between; gap: 10px; }
.s500-plan li em { font-style: normal; font-family: var(--wp--preset--font-family--mono); font-size: 13.5px; color: var(--wp--preset--color--muted); white-space: nowrap; }
.s500-plan .wp-block-buttons { margin-top: auto; }
.s500-plan .wp-block-button { width: 100%; }
.s500-plan .wp-block-button__link { width: 100%; text-align: center; }

.s500-card {
  background: #fff; border: 1px solid var(--wp--preset--color--rule); border-radius: 3px;
  overflow: hidden; transition: border-color .15s; height: 100%; padding: 0 !important;
}
.s500-card:hover { border-color: var(--wp--preset--color--contrast); }
.s500-card .wp-block-image { margin: 0; }
.s500-card img { width: 100%; height: 150px; object-fit: cover; display: block; border-bottom: 1px solid var(--wp--preset--color--rule); }
.s500-card .s500-card-meta { padding: 14px 16px 16px; }
.s500-card .s500-card-meta p { margin: 0; }
.s500-card .nm { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 15.5px; margin-bottom: 3px !important; }
.s500-card .br { font-family: var(--wp--preset--font-family--mono); font-size: 11.5px; color: var(--wp--preset--color--muted); }
.s500-ps {
  display: inline-block; margin-top: 9px; font-family: var(--wp--preset--font-family--mono);
  font-size: 10.5px; font-weight: 700; color: var(--wp--preset--color--ok);
  border: 1px solid var(--wp--preset--color--ok); border-radius: 2px; padding: 2px 7px;
}

.s500-portrait { margin: 0 0 22px !important; }
.s500-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  background: var(--wp--preset--color--base-2);
  filter: saturate(.92);
}
.s500-founder h3 { margin-bottom: 2px; }
.s500-founder .role { font-family: var(--wp--preset--font-family--mono); font-size: 12px; color: var(--wp--preset--color--muted); margin: 0 0 14px !important; letter-spacing: .04em; }
.s500-founder p { font-size: 16px; color: var(--wp--preset--color--contrast-2); }
.s500-founder .links { font-family: var(--wp--preset--font-family--mono); font-size: 12.5px; }

@media (max-width: 781px) {
  .s500-portrait img { aspect-ratio: 3 / 2; }
}

.s500-steps { border-top: 1.5px solid var(--wp--preset--color--contrast); gap: 0 !important; }
.s500-step { padding: 24px 22px 26px !important; border-right: 1px solid var(--wp--preset--color--rule); }
.s500-steps > .wp-block-column:last-child .s500-step { border-right: none; }
.s500-step .t { font-family: var(--wp--preset--font-family--mono); font-size: 11.5px; font-weight: 700; color: var(--wp--preset--color--accent); letter-spacing: .09em; margin: 0 0 12px !important; }
.s500-step h3 { font-size: 17px; margin-bottom: 8px; }
.s500-step p:not(.t) { font-size: 15.5px; color: var(--wp--preset--color--contrast-2); margin: 0; }
@media (max-width: 781px) { .s500-step { border-right: none; border-bottom: 1px solid var(--wp--preset--color--rule); } }

.s500-rules-sec { border-top: none; }
.s500-rules-sec .s500-eyebrow { color: #8A8F98; }
.s500-rules-sec .s500-lead { color: #B9BDC4; }
.s500-rule { padding: 22px 0 !important; border-top: 1px solid #2C3038; }
.s500-rule .cl { font-family: var(--wp--preset--font-family--mono); font-size: 11.5px; color: #8CA0FF; font-weight: 700; letter-spacing: .1em; margin: 0 0 9px !important; }
.s500-rule h3 { color: #fff; font-size: 17px; margin-bottom: 7px; }
.s500-rule p:not(.cl) { font-size: 15.5px; color: #A9AEB6; margin: 0; }

.s500-slider { position: relative; }

.s500-slider__track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 !important;
  margin: 0 !important;
  align-items: stretch !important;
}
.s500-slider__track::-webkit-scrollbar { display: none; }
.s500-slider__track:focus-visible { outline-offset: 6px; }

.s500-slider__track > .s500-rev {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
}
@media (max-width: 1024px) {
  .s500-slider__track > .s500-rev { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 680px) {
  .s500-slider__track { gap: 14px !important; }
  .s500-slider__track > .s500-rev { flex-basis: 86%; }
}

.s500-rev {
  background: #fff; border: 1px solid var(--wp--preset--color--rule); border-radius: 3px;
  padding: 24px 22px !important; display: flex !important; flex-direction: column;
}
.s500-rev blockquote { margin: 0 0 18px; padding: 0; border: none; font-size: 17px; line-height: 1.6; flex: 1; }
.s500-rev blockquote p { margin: 0; }
.s500-rev img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.s500-rev .who { margin-top: auto; }
.s500-rev .who p { margin: 0; }
.s500-rev .who .nm { font-family: var(--wp--preset--font-family--display); font-size: 14.5px; font-weight: 600; }
.s500-rev .who .br { font-family: var(--wp--preset--font-family--mono); font-size: 11.5px; color: var(--wp--preset--color--muted); }

.s500-slider__nav {
  display: flex; align-items: center; gap: 16px;
  margin-top: 26px; justify-content: center;
}
.s500-slider__nav.is-hidden { display: none; }

.s500-slider__arrow {
  width: 40px; height: 40px; flex: 0 0 40px; cursor: pointer;
  background: transparent; color: var(--wp--preset--color--contrast);
  border: 1.5px solid var(--wp--preset--color--rule); border-radius: 2px;
  font-size: 22px; line-height: 1; display: grid; place-items: center;
  transition: border-color .15s, background .15s, color .15s;
  font-family: var(--wp--preset--font-family--display);
}
.s500-slider__arrow:hover:not(:disabled) {
  background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base);
  border-color: var(--wp--preset--color--contrast);
}
.s500-slider__arrow:disabled { opacity: .3; cursor: default; }

.s500-slider__dots { display: flex; gap: 8px; align-items: center; }
.s500-slider__dot {
  width: 8px; height: 8px; padding: 0; cursor: pointer; border: none; border-radius: 50%;
  background: var(--wp--preset--color--rule); transition: background .2s, transform .2s;
}
.s500-slider__dot:hover { background: var(--wp--preset--color--muted); }
.s500-slider__dot.is-active { background: var(--wp--preset--color--accent); transform: scale(1.35); }

@media (prefers-reduced-motion: reduce) {
  .s500-slider__track { scroll-behavior: auto; }
  .s500-slider__dot { transition: none; }
}

.editor-styles-wrapper .s500-slider__track {
  overflow: visible; flex-wrap: wrap !important; scroll-snap-type: none;
}
.editor-styles-wrapper .s500-slider__track > .s500-rev { flex-basis: calc((100% - 40px) / 3); }

.s500-faq .wp-block-details {
  border-bottom: 1px solid var(--wp--preset--color--rule); padding: 18px 0; margin: 0;
}
.s500-faq .wp-block-details summary {
  font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 18px;
  cursor: pointer; list-style: none; position: relative; padding-right: 34px;
}
.s500-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.s500-faq .wp-block-details summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  font-family: var(--wp--preset--font-family--mono); font-size: 20px; color: var(--wp--preset--color--accent); font-weight: 400;
}
.s500-faq .wp-block-details[open] summary::after { content: "−"; }
.s500-faq .wp-block-details p {
  margin: 14px 0 0; font-size: 16.5px; color: var(--wp--preset--color--contrast-2);
  max-width: 64ch; font-family: var(--wp--preset--font-family--body); font-weight: 400;
}

.s500-footer {
  border-top: 1px solid var(--wp--preset--color--rule);
  padding-top: 34px !important; padding-bottom: 34px !important;
  font-family: var(--wp--preset--font-family--mono); font-size: 12px; color: var(--wp--preset--color--muted);
}
.s500-footer p { margin: 0; }
.s500-footer a { color: var(--wp--preset--color--muted); }
.s500-footer a:hover { color: var(--wp--preset--color--contrast); }

body{ font-size:18px; line-height:1.65; }

.s500-section > *,
.s500-hero > .wp-block-cover__inner-container > *,
.s500-final > .wp-block-cover__inner-container > *{
  max-width:1080px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.s500-trust > *{ max-width:none !important; }

.s500-sec-head{ max-width:1080px !important; margin-bottom:44px; }
.s500-sec-head > *{
  margin-left:0 !important;
  margin-right:0 !important;
  max-width:470px;   
}

.s500-faq > *{ max-width:820px !important; }
.s500-faq .wp-block-details p{ max-width:64ch; }

.s500-rev .who .wp-block-image{ flex:0 0 40px; }
.s500-rev .who img{ background:var(--wp--preset--color--base-2); }
.s500-card img{ background:var(--wp--preset--color--base-2); min-height:150px; }
.s500-lead:not(.is-centered){ max-width:44ch; margin-left:0 !important; margin-right:0 !important; }
.s500-lead.is-centered{ margin-left:auto !important; margin-right:auto !important; }
.s500-kicker, .s500-pricetag{ margin-left:0 !important; margin-right:0 !important; }
.s500-final .wp-block-group > *{ margin-left:auto !important; margin-right:auto !important; }

h1, .s500-h1{ font-size:clamp(38px,6.2vw,72px) !important; line-height:1.08 !important; }
.s500-section h2{ font-size:clamp(28px,3.8vw,44px) !important; line-height:1.08 !important; }
.s500-col h3, .s500-founder h3{ font-size:20px !important; }

.s500-section > .wp-block-columns{ gap:40px !important; margin-bottom:0 !important; }
.s500-section > .wp-block-columns:not(:first-of-type){ margin-top:40px !important; }
.s500-licences > .wp-block-columns,
.s500-founders > .wp-block-columns{ gap:44px !important; }
.s500-plans-row{ gap:20px !important; align-items:flex-start !important; }
.s500-tpl-row{ gap:18px !important; }
.s500-tpl-row:not(:first-of-type){ margin-top:18px !important; }
.s500-rules > .wp-block-columns{ gap:0 44px !important; }
.s500-rules > .wp-block-columns:not(:first-of-type){ margin-top:0 !important; }
.s500-steps{ gap:0 !important; }

.s500-hero-grid{ gap:60px !important; align-items:flex-start !important; margin-bottom:0 !important; }
.s500-hero-grid > .wp-block-column:first-child{ flex:1 1 auto !important; }
.s500-hero-grid > .wp-block-column:last-child{ flex:0 0 400px !important; }

@media (max-width:940px){
  .s500-hero-grid{ flex-wrap:wrap !important; gap:44px !important; }
  .s500-hero-grid > .wp-block-column{ flex-basis:100% !important; }
}
@media (max-width:860px){
  .s500-section > .wp-block-columns{ flex-wrap:wrap !important; gap:34px !important; }
  .s500-section > .wp-block-columns > .wp-block-column{ flex-basis:100% !important; }
  .s500-plans-row, .s500-tpl-row{ gap:20px !important; }
}

:focus-visible { outline: 2.5px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
