/* =========================================================================
   In Time AI Геолокация – целева страница
   Цветовете са в CSS променливи; всички комбинации текст/фон са проверени
   за контраст ≥ 4.5:1 (WCAG 2.2 AA), повечето ≥ 7:1 (AAA).
   ========================================================================= */

:root {
  /* Марка In Time: #00AB8E (тюркоазено зелено), #D8F4EB (мента), черно.
     Брандовият цвят е с черен текст (7,2:1); за текст/връзки върху светъл фон
     се използва по-тъмен нюанс #00594A (8,3:1). */
  --brand: #00AB8E;        /* бутони, акценти; черен текст 7.2:1 */
  --brand-dark: #00594A;   /* връзки и акцентен текст върху бяло 8.3:1, мента 7.1:1 */
  --mint: #D8F4EB;         /* фонове на икони, етикети */
  --mint-soft: #E9F8F3;
  --dark: #0F1514;         /* почти черно – hero, тъмни блокове */
  --dark-2: #1A2421;

  --ink: #111816;          /* основен текст 18:1 */
  --muted: #44504C;        /* вторичен текст 8.4:1 */
  --line: #D3E0DB;
  --bg: #FFFFFF;
  --tint: #F3FAF7;
  --success-bg: #E7F6EC; --success-ink: #14532D; --success-line: #2F855A;
  --error-bg: #FDECEC;   --error-ink: #8A1C1C;   --error-line: #C53030;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 21, 20, .06), 0 2px 8px rgba(15, 21, 20, .06);
  --shadow: 0 10px 30px rgba(15, 21, 20, .10);
  --shadow-lg: 0 24px 60px rgba(15, 21, 20, .18);
  --focus: 0 0 0 3px #fff, 0 0 0 6px #00594A;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 72px;
}

/* ----------------------------------------------------------------- База */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--dark); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
ul { padding: 0; margin: 0; list-style: none; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 32px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 12px 18px;
  background: var(--dark); color: #fff; font-weight: 700; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ----------------------------------------------------------------- Бутони */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em; border: 2px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: .55em 1.1em; font-size: .95rem; }
.btn--lg { min-height: 54px; padding: .9em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { --bg: var(--brand); --fg: #000; --bd: var(--brand); box-shadow: 0 6px 18px rgba(0, 171, 142, .30); }
.btn--primary:hover { --bg: var(--brand-dark); --bd: var(--brand-dark); color: #fff; }
.btn--outline { --fg: var(--dark); --bd: var(--dark); }
.btn--outline:hover { --bg: var(--dark); color: #fff; }
.btn--ghost-light { --fg: #fff; --bd: rgba(255, 255, 255, .7); }
.btn--ghost-light:hover { --bg: #fff; color: var(--dark); }
.btn--light { --bg: var(--dark); --fg: #fff; --bd: var(--dark); }
.btn--light:hover { --bg: #fff; --bd: #fff; color: var(--dark); }

/* ----------------------------------------------------------------- Лента ЕС */
.funding-bar { background: #fff; border-bottom: 1px solid var(--line); }
.funding-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-block: 8px; }
.eu-badge { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1rem; color: #003399; line-height: 1.2; }
.eu-badge img { flex: none; }
.eu-badge--lg { font-size: 1.05rem; gap: 14px; }
.funding-bar__prog { height: 54px; width: auto; }

/* ----------------------------------------------------------------- Хедър */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--dark); text-decoration: none; font-size: 1.1rem; }
.brand:hover { color: var(--dark); }
.brand__mark { width: 38px; height: 38px; }
.brand__text strong { color: var(--brand-dark); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .98rem;
}
.main-nav ul a:hover { background: var(--mint-soft); color: var(--dark); }
.main-nav ul a.is-active { color: var(--brand-dark); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 8px 8px 0 0; }
.nav-toggle { display: none; }

/* ----------------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: clamp(56px, 8vw, 104px) 0;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(0, 171, 142, .30), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(216, 244, 235, .10), transparent 60%),
    linear-gradient(160deg, var(--dark), var(--dark-2));
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero__grid > *, .contact__grid > *, .calc > * { min-width: 0; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: #E4ECE9; max-width: 60ch; }
.hl { color: var(--brand); }
.eyebrow {
  display: inline-block; margin-bottom: 14px; font-size: .82rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-dark);
}
.eyebrow--light { color: #C3D3CE; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 36px; }
.hero__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 24px; }
.hero__trust strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.hero__trust span { display: block; margin-top: 4px; font-size: .9rem; line-height: 1.4; color: #C9D3D0; }

.demo-card { background: #141C1A; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-card__head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #5C6B67; }
.dot:first-child { background: #FF6B6B; } .dot:nth-child(2) { background: #F6C343; } .dot:nth-child(3) { background: #3DD68C; }
.demo-card__title { margin-left: 10px; font-family: var(--mono); font-size: .85rem; color: #C3D3CE; }
.demo-card__body { padding: 20px 22px 24px; }
.demo-label { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #AEBDB8; }
.demo-input { margin: 0; min-height: 3.2em; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px dashed rgba(255, 255, 255, .28); font-family: var(--mono); font-size: .95rem; color: #fff; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-arrow { text-align: center; font-size: 1.4rem; color: var(--brand); margin: 6px 0; }
.demo-output { margin: 0; padding: 14px; border-radius: 10px; background: #0B100F; color: #E4ECE9; font-family: var(--mono); font-size: .9rem; line-height: 1.55; overflow-x: auto; transition: opacity .35s; }
.demo-output .k { color: #8FE3CF; } .demo-output .s { color: #D8F4EB; } .demo-output .n { color: #FFD48A; }
.demo-output.is-loading { opacity: .35; }
.demo-output, .demo-output code { white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-note { margin: 10px 0 0; font-size: .82rem; color: #BCC8C4; text-align: right; }

/* ----------------------------------------------------------------- Секции */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__lead { font-size: 1.12rem; color: var(--muted); }

/* Сравнение */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare__col { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.compare__col--before { background: #FAFBFC; }
.compare__col--after { border: 2px solid var(--dark); box-shadow: var(--shadow); }

.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist--x li::before {
  background: #ECEFEE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344504C' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist--sm li { font-size: .97rem; margin-bottom: 10px; }

/* Стъпки */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -20px; width: 20px; height: 2px; background: var(--brand);
}
.step__num {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px;
  background: var(--brand); color: #000; font-weight: 800; font-size: 1.2rem;
}
.step p { color: var(--muted); margin: 0; }

/* Предимства */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature:hover { border-color: var(--dark); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 12px; background: var(--mint); color: var(--brand-dark); }
.feature__icon svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; }
.usecases { margin-top: 48px; text-align: center; }
.usecases__title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tags li { padding: 8px 16px; border-radius: 999px; background: var(--mint-soft); color: var(--dark); font-weight: 600; font-size: .95rem; }

/* CTA лента */
.cta-band { background: var(--brand) radial-gradient(600px 200px at 90% 0%, rgba(216, 244, 235, .45), transparent 70%); color: #000; padding: 48px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { margin-bottom: .25em; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.cta-band p { margin: 0; color: #000; max-width: 60ch; }

/* ----------------------------------------------------------------- Цени */
.billing-switch {
  display: flex; width: max-content; max-width: 100%; margin: 0 auto 12px; padding: 5px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.billing-switch button {
  min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s;
}
.billing-switch button[aria-checked="true"] { background: var(--dark); color: #fff; }
.billing-switch button:not([aria-checked="true"]):hover { color: var(--dark); background: var(--mint-soft); }
.billing-hint { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 640px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 30px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.plan .checklist { margin: 8px 0 24px; flex: 1; }
.plan .btn { padding-inline: 1em; }
.plan--featured { border: 2px solid var(--brand-dark); box-shadow: var(--shadow); transform: translateY(-8px); }
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); margin: 0; padding: 4px 14px;
  border-radius: 999px; background: var(--brand); color: #000; font-size: .8rem; font-weight: 800; white-space: nowrap;
}
.plan__tagline { color: var(--muted); font-size: .95rem; min-height: 3em; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin: 0 0 4px; color: var(--dark); }
.plan__prefix { font-weight: 700; color: var(--muted); margin-right: 2px; }
.plan__amount { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.plan__amount--text { font-size: 1.7rem; }
.plan__cur { font-size: 1.4rem; font-weight: 800; }
.plan__per { color: var(--muted); font-weight: 600; margin-left: 2px; }
.plan__note { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.plan--enterprise { background: var(--dark); color: #fff; border-color: var(--dark); }
.plan--enterprise .plan__tagline, .plan--enterprise .plan__price { color: #D5DEDB; }
.plan--enterprise .plan__amount { color: #fff; }
.plan--enterprise .checklist li::before { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan--enterprise .btn--outline { --fg: #fff; --bd: #fff; }
.plan--enterprise .btn--outline:hover { --bg: #fff; color: var(--dark); }

.usage-table { max-width: 620px; margin: 40px auto 0; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.usage-table h3 { text-align: center; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .9rem; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

.calc {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin-top: 40px; padding: 32px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.calc label { display: block; font-weight: 700; margin: 14px 0 8px; }
.calc output { color: var(--brand-dark); }
.calc input[type="range"] { width: 100%; accent-color: var(--brand); height: 28px; }
.calc__result { padding: 24px; border-radius: 12px; background: var(--dark); color: #fff; align-self: center; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.calc__row strong { font-size: 1.5rem; }
.calc__row.is-best strong::after { content: "по-изгодно"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--mint); color: var(--dark); font-size: .72rem; vertical-align: middle; }
.calc__explain { margin: 14px 0 0; color: #D5DEDB; font-size: .92rem; }
.fineprint { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: .92rem; }

/* ----------------------------------------------------------------- Документация */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.doc:only-child { grid-column: 1 / -1; justify-self: center; width: min(100%, 560px); }
.doc:hover { border-color: var(--dark); box-shadow: var(--shadow-sm); }
.doc__type { flex: none; display: grid; place-items: center; width: 54px; height: 64px; border-radius: 8px; background: var(--mint); color: var(--brand-dark); font-weight: 800; font-size: .85rem; border: 1px solid #A9DCCB; }
.doc__body { flex: 1; min-width: 0; }
.doc__body h3 { font-size: 1.05rem; margin-bottom: .25em; }
.doc__body p { margin: 0; font-size: .94rem; color: var(--muted); }
.doc__meta { font-weight: 500; opacity: .9; font-size: .85em; }
.doc__soon { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: .88rem; font-weight: 700; }

/* ----------------------------------------------------------------- FAQ */
.faq details { border-bottom: 1px solid var(--line); background: #fff; }
.faq details:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.faq details:last-child { border-bottom: 0; border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.faq { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative; padding: 20px 60px 20px 24px; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--brand-dark); border-bottom: 2.5px solid var(--brand-dark); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--brand-dark); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ----------------------------------------------------------------- Контакт */
.contact { background: linear-gradient(180deg, #fff, var(--tint)); }
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__list li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__k { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact__list a { font-weight: 700; font-size: 1.1rem; }

.form { padding: clamp(24px, 4vw, 40px); border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .95rem; }
.req { color: var(--brand-dark); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #7A8783; border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111816' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
input:hover, select:hover, textarea:hover { border-color: var(--dark); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: #00594A; box-shadow: 0 0 0 3px rgba(0, 171, 142, .35); border-radius: 10px; }
.field.has-error input, .field.has-error textarea { border-color: var(--error-line); background: #FFFBFB; }
.field__error { margin: 6px 0 0; color: var(--error-ink); font-size: .9rem; font-weight: 600; }
.field__error:empty { display: none; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--brand); cursor: pointer; }
.field--check label { font-weight: 500; font-size: .95rem; margin: 0; }
.field--check .field__error { grid-column: 2; }
.form__req { font-size: .88rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; border-left: 5px solid; font-weight: 600; }
.form__status[data-type="success"] { background: var(--success-bg); color: var(--success-ink); border-color: var(--success-line); }
.form__status[data-type="error"] { background: var(--error-bg); color: var(--error-ink); border-color: var(--error-line); }

.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- Футър */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 48px 0 24px; }
.funding { padding-bottom: 32px; border-bottom: 1px solid var(--line); text-align: center; }
.funding__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; margin-bottom: 20px; }
.funding__logos img { height: 144px; width: auto; }
.funding__text { max-width: 860px; margin: 0 auto 10px; font-size: .97rem; }
.funding__disclaimer { max-width: 860px; margin: 0 auto; font-size: .85rem; color: var(--muted); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: .92rem; color: var(--muted); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; gap: 20px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--dark); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: #000; }

/* Плавна поява */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- Адаптивност */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}
@media (max-width: 960px) {
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--line);
    border-radius: 12px; background: #fff; cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--dark); transition: transform .25s, background-color .25s;
  }
  .nav-toggle__bar { position: relative; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -7px; } .nav-toggle__bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 14px 12px; font-size: 1.05rem; }
  .main-nav ul a.is-active { box-shadow: inset 4px 0 0 var(--brand); border-radius: 0 8px 8px 0; }
  .hero__grid, .contact__grid, .calc { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .compare, .docs { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .funding-bar__inner { min-height: 56px; }
  .eu-badge { font-size: .78rem; }
  .eu-badge img { width: 60px; height: 40px; }
  .funding-bar__prog { height: 40px; }
  .funding__logos img { height: 112px; }
  .brand__text { font-size: .98rem; }
  .hero__trust { grid-template-columns: 1fr; gap: 12px; }
  .hero__trust li { display: flex; align-items: baseline; gap: 10px; }
  .hero__trust strong { font-size: 1.3rem; min-width: 5.2em; }
  .hero__cta .btn { width: 100%; }
  .features, .plans, .steps, .form__row { grid-template-columns: 1fr; }
  .form__row { gap: 0; }
  .compare__col, .calc, .usage-table { padding: 22px; }
  .doc { flex-wrap: wrap; }
  .doc .btn, .doc__soon { width: 100%; text-align: center; }
  .billing-switch button { padding: 10px 14px; font-size: .92rem; }
  .cta-band .btn { width: 100%; }
}

/* ----------------------------------------------------------------- Съгласие с бисквитките
   Банер в долната част, без затъмняване – лентата за ЕС финансиране остава видима. */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; padding: 16px; pointer-events: none; }
.cc[hidden] { display: none; }
.cc__box {
  width: min(860px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; margin-inline: auto; padding: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  pointer-events: auto;
}
.cc__title { font-size: 1.2rem; margin-bottom: .4em; }
.cc__text { font-size: .95rem; color: var(--muted); }
.cc__prefs fieldset { border: 0; margin: 0 0 8px; padding: 0; }
.cc__cat { padding: 14px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.cc__cat p { margin: 6px 0; color: var(--muted); }
.cc__cat-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.cc__cat-head input { width: 20px; height: 20px; accent-color: var(--brand-dark); }
.cc__always { font-weight: 400; color: var(--muted); }
.cc__cat summary { cursor: pointer; color: var(--brand-dark); }
.cc__table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: .85rem; }
.cc__table th, .cc__table td { padding: 6px 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.cc__table th { background: var(--tint); }
.cc__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cc__actions [hidden] { display: none; }
@media (max-width: 640px) {
  .cc { padding: 8px; }
  .cc__box { padding: 18px; }
  .cc__actions .btn { flex: 1 1 100%; }
  .cc__table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .btn, .plan, .feature, .doc { border: 2px solid CanvasText; }
}
@media print {
  .site-header, .funding-bar, .to-top, .hero__demo, .form, .billing-switch, .calc { display: none !important; }
  .hero { background: none; color: #000; }
}
