/* =========================================================
   Subsidia — стилове
   Mobile-first. Цветовете са CSS променливи; тъмният режим
   ги предефинира под [data-theme="dark"].
   ========================================================= */

/* ---------- 1. Цветове и дизайн токени ---------- */
:root {
  /* бранд палитра */
  --emerald: #0F3D2E;
  --emerald-2: #16523E;
  --emerald-3: #1F6B52;
  --cream: #FBF7EF;
  --cream-2: #F3ECDD;
  --gold: #E8B04A;
  --gold-2: #D69A2D;
  --coral: #E76F51;

  /* семантични */
  --bg: var(--cream);
  --bg-tint: var(--cream-2);
  --surface: #FFFFFF;
  --surface-2: #FFFDF8;
  --text: #13261F;
  --text-muted: #4F5F57;
  --border: rgba(15, 61, 46, .12);
  --primary: var(--emerald);
  --on-primary: #FFFFFF;
  --dark-tile: var(--emerald);
  --on-dark: #F4EFE4;
  --on-dark-muted: rgba(244, 239, 228, .72);
  --focus: #C27C0E;
  --open: #1F7A55;
  --open-bg: #DFF1E7;
  --upcoming: #B4472C;
  --upcoming-bg: #FBE3DB;
  --logo-bg: var(--emerald);
  --logo-fg: #FFFFFF;

  /* карта: от светло към тъмно зелено */
  --map-1: #D9EADF;
  --map-2: #9FCBB1;
  --map-3: #4E9A77;
  --map-4: #1A5E45;
  --map-stroke: #FBF7EF;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(15, 61, 46, .06), 0 10px 30px -12px rgba(15, 61, 46, .18);
  --shadow-lg: 0 2px 4px rgba(15, 61, 46, .06), 0 30px 60px -20px rgba(15, 61, 46, .30);
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Fraunces', 'Lora', Georgia, 'Times New Roman', serif;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* Тъмен режим — общ набор стойности */
:root[data-theme="dark"] {
  --bg: #0B1F18;
  --bg-tint: #0E271E;
  --surface: #133026;
  --surface-2: #163629;
  --text: #EEE8DA;
  --text-muted: #A9B8AF;
  --border: rgba(238, 232, 218, .12);
  --primary: var(--gold);
  --on-primary: #10241C;
  --dark-tile: #1A4636;
  --focus: #F3C46B;
  --open: #7FD3A8;
  --open-bg: rgba(127, 211, 168, .14);
  --upcoming: #F4A08A;
  --upcoming-bg: rgba(231, 111, 81, .18);
  --logo-bg: var(--gold);
  --logo-fg: var(--emerald);
  --map-1: #24473A;
  --map-2: #2F6B53;
  --map-3: #4A9E79;
  --map-4: #8DD3AE;
  --map-stroke: #0B1F18;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- 2. Базови стилове ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip; /* clip не позволява и програмно хоризонтално скролиране */
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Видим фокус за клавиатурна навигация */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; 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: 12px; top: -60px; z-index: 200; background: var(--gold); color: #10241C; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding: 64px 0; position: relative; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald-3); margin-bottom: 12px; }
[data-theme="dark"] .eyebrow { color: var(--gold); }
.tile-dark .eyebrow, .cta-band .eyebrow { color: var(--gold); }

/* Фина grain текстура върху целия фон */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .05; }

/* Органични декоративни форми */
.blob { position: absolute; z-index: 0; pointer-events: none; filter: blur(2px); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: morph 16s ease-in-out infinite; }
.blob-1 { width: 420px; height: 420px; right: -140px; top: -80px; background: radial-gradient(circle at 30% 30%, rgba(232, 176, 74, .45), rgba(232, 176, 74, 0) 70%); }
.blob-2 { width: 360px; height: 360px; left: -160px; bottom: -120px; background: radial-gradient(circle at 60% 40%, rgba(31, 107, 82, .28), rgba(31, 107, 82, 0) 70%); animation-delay: -6s; }
.blob-3 { width: 380px; height: 380px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(232, 176, 74, .35), transparent 70%); }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(0, 0) rotate(0); }
  50% { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; transform: translate(-20px, 20px) rotate(12deg); }
}

/* ---------- 3. Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { box-shadow: 0 10px 24px -10px var(--primary); }
.btn-gold { background: var(--gold); color: #10241C; }
.btn-gold:hover { background: #F0BE5F; box-shadow: 0 10px 24px -10px rgba(232, 176, 74, .9); }
.btn-outline { border-color: var(--border); background: transparent; color: var(--text); border-color: currentColor; }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--emerald-3); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .link-btn { color: var(--gold); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); transition: height .3s var(--ease); }
/* Свит хедър след скрол */
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .35); }
.site-header.is-scrolled .header-inner { height: 60px; }
.site-header.is-scrolled .logo-mark { width: 32px; height: 32px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; transition: width .3s, height .3s; }
.logo-text { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.logo-light .logo-text { color: var(--on-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }
.theme-toggle, .burger {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); display: grid; place-items: center; padding: 0;
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger { gap: 4px; align-content: center; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобилно меню */
.main-nav {
  position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 4px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.is-scrolled .main-nav { top: 64px; }
.main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.main-nav ul { display: grid; gap: 4px; margin-bottom: 12px; }
.main-nav a:not(.btn) { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.main-nav a:not(.btn):hover { background: var(--bg-tint); }
.nav-cta-mobile { width: 100%; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 64px; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--emerald-3); position: relative; white-space: nowrap; }
[data-theme="dark"] .hero h1 em { color: var(--gold); }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .18em; background: var(--gold); opacity: .55; border-radius: 4px; z-index: -1; }
.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(231, 111, 81, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(231, 111, 81, 0); } 100% { box-shadow: 0 0 0 0 rgba(231, 111, 81, 0); } }

.eik-form { margin-top: 28px; max-width: 580px; }
.eik-field {
  display: flex; flex-direction: column; gap: 8px; padding: 8px;
  background: var(--surface); border: 2px solid var(--border); border-radius: 22px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.eik-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(232, 176, 74, .25), var(--shadow); }
.eik-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px; font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; }
.eik-field input::placeholder { color: var(--text-muted); font-weight: 500; letter-spacing: 0; font-size: 1rem; }
.eik-field input:focus { outline: none; }
.eik-form.has-error .eik-field { border-color: var(--coral); }
.field-error { min-height: 1.4em; margin: 8px 4px 0; color: var(--upcoming); font-weight: 600; font-size: .92rem; }
.eik-hint { color: var(--text-muted); font-size: .92rem; margin: 0 4px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: .92rem; font-weight: 600; }
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--open); }

/* Dashboard карта */
.hero-visual { position: relative; max-width: 460px; width: 100%; margin: 0 auto; padding: 24px 0; }
.dash-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px) rotate(-.5deg); } }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.dash-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 0 0 2px; font-weight: 700; }
.dash-company { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; margin: 0; }
.dash-eik { font-size: .85rem; color: var(--text-muted); margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pill-green { background: var(--open-bg); color: var(--open); }
.dash-body { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.donut { position: relative; width: 120px; height: 120px; flex: none; }
.donut svg { transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 12; }
.donut-track { stroke: var(--bg-tint); }
.donut-value { stroke: var(--gold); stroke-linecap: round; animation: donut 1.6s var(--ease) both .4s; }
@keyframes donut { from { stroke-dasharray: 0 100; } }
.donut-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-text strong { font-family: var(--font-head); font-size: 1.8rem; line-height: 1; }
.donut-text span { font-size: .72rem; color: var(--text-muted); }
.dash-big { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; margin: 0; font-weight: 700; color: var(--emerald-3); }
[data-theme="dark"] .dash-big { color: var(--gold); }
.dash-small { margin: 2px 0 8px; font-weight: 600; }
.dash-sum { font-size: .9rem; color: var(--text-muted); margin: 0; }
.dash-list { display: grid; gap: 8px; }
.dash-list li { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--bg-tint); font-size: .88rem; font-weight: 600; overflow: hidden; }
.dash-list li > * { position: relative; }
.dash-list .bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: rgba(232, 176, 74, .22); border-radius: 12px; animation: grow 1.4s var(--ease) both .6s; }
@keyframes grow { from { width: 0; } }
.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: var(--emerald); color: #fff; box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite reverse;
}
.float-chip svg { width: 16px; height: 16px; color: var(--gold); }
.chip-1 { top: 0; left: -8px; }
.chip-2 { bottom: 0; right: -4px; background: var(--gold); color: #10241C; animation-delay: -3s; }
[data-theme="dark"] .float-chip.chip-1 { background: #1F5A45; }

/* ---------- 6. Безкрайна лента с логата ---------- */
.logos { padding: 24px 0 8px; text-align: center; }
.logos-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); font-weight: 700; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; padding: 8px 0; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: 1.02rem; white-space: nowrap; color: var(--text-muted); transition: color .2s; }
.logo-pill:hover { color: var(--text); }
/* Официалните лога стоят на бяла карта и в двете теми, за да не се изкривят цветовете им */
.logo-card { display: inline-flex; align-items: center; gap: 10px; height: 64px; padding: 0 20px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--border); white-space: nowrap; opacity: .88; transition: opacity .2s, transform .2s; }
.logo-card:hover { opacity: 1; transform: translateY(-2px); }
.logo-card img { display: block; height: 40px; width: auto; }
.logo-card img[src$="eu-emblem.svg"] { height: 30px; }
.logo-card img[src$="isun.png"] { height: 32px; }
.logo-card--dark { background: var(--emerald); border-color: transparent; }
.logo-card--dark .lc-name { color: #FFFFFF; }
.logo-card--visual { padding: 0; overflow: hidden; border-color: transparent; }
.logo-card--visual img { height: 100%; }
.lc-name { font-weight: 800; font-size: 1rem; color: #13261F; }
.lc-eu { color: #003399; }
[data-theme="dark"] .logo-card { border-color: rgba(255, 255, 255, .08); }
.lp-mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald); color: var(--gold); font-family: var(--font-head); font-size: .95rem; }

/* ---------- 7. Bento и плочки ---------- */
.bento { display: grid; gap: 16px; }
.tile {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); overflow: hidden;
}
.tile-dark { background: var(--dark-tile); color: var(--on-dark); border-color: transparent; }
.tile-dark p { color: var(--on-dark-muted); }
.tile-gold { background: var(--gold); color: #10241C; border-color: transparent; }

.stats-section { padding: 40px 0; }
.stats-bento { grid-template-columns: repeat(2, 1fr); }
.stats-bento .tile { padding: 22px; transition: transform .3s var(--ease); }
.stats-bento .tile:hover { transform: translateY(-4px); }
.stat-num { font-family: var(--font-head); font-size: clamp(1.8rem, 6vw, 3.2rem); font-weight: 700; line-height: 1; margin: 0 0 6px; }
.stat-label { margin: 0; font-weight: 600; font-size: .95rem; }
.tile-gold .stat-label { color: #3A2E14; }
.stat-num.stat-date { font-size: clamp(1.5rem, 4.2vw, 2.2rem); }
.stats-bento .tile:not(.tile-dark):not(.tile-gold) .stat-num { color: var(--emerald-3); }
[data-theme="dark"] .stats-bento .tile:not(.tile-dark):not(.tile-gold) .stat-num { color: var(--gold); }

/* ---------- 8. Как работи ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-tint); margin-bottom: 24px; }
.tab { flex: 1; border: 0; background: transparent; padding: 10px 12px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--text-muted); transition: background .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.steps { display: grid; gap: 6px; }
/* Стъпка като в образеца: неактивните са приглушени, активната е „карта“ с линия вляво */
.step-btn {
  position: relative; display: flex; gap: 16px; width: 100%; padding: 16px; text-align: left; font: inherit; color: inherit;
  background: transparent; border: 1px solid transparent; border-radius: 16px; cursor: pointer; transition: background .25s, border-color .25s, box-shadow .25s;
}
.step-btn:hover { background: var(--bg-tint); }
.step-btn.is-active { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.step-btn.is-active::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--primary); }
.step-txt { display: grid; gap: 2px; }
.step-k { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.step-h { font-size: 1.08rem; font-weight: 800; }
.step-p { color: var(--text-muted); font-size: .95rem; }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); color: var(--text-muted); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; transition: background .25s, color .25s; }
.step-btn.is-active .step-n { background: var(--gold); color: #10241C; }
.tab-panel { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

.how-demo { min-height: 380px; display: flex; flex-direction: column; justify-content: center; }
.how-demo::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 176, 74, .3), transparent 70%); }
.demo { position: relative; }
.demo-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--gold) !important; }
.demo-input { display: flex; align-items: center; height: 56px; padding: 0 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 1.35rem; font-weight: 700; letter-spacing: .1em; margin-bottom: 18px; }
.caret { width: 2px; height: 26px; background: var(--gold); margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-checks { display: grid; gap: 8px; }
.demo-checks li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--on-dark-muted); font-weight: 600; transition: background .3s, color .3s; }
.demo-checks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); flex: none; transition: all .3s; background-position: center; background-repeat: no-repeat; background-size: 14px; }
.demo-checks li.checking::before { border-color: var(--gold); border-top-color: transparent; animation: spin .8s linear infinite; }
.demo-checks li.done { color: var(--on-dark); background: rgba(255, 255, 255, .1); }
.demo-checks li.done::before { background-color: var(--gold); border-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230F3D2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-result { margin: 16px 0 0; font-family: var(--font-head); font-size: 1.4rem; color: var(--gold) !important; opacity: 0; transform: translateY(6px); transition: all .4s; }
.demo-result.show { opacity: 1; transform: none; }
.demo-programs { display: grid; gap: 8px; margin-bottom: 20px; }
.demo-programs li { padding: 12px 14px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); font-weight: 700; transition: all .3s; }
.demo-programs .code { display: block; font-size: .72rem; letter-spacing: .06em; color: var(--on-dark-muted); font-weight: 600; }
.demo-programs li.hover { border-color: rgba(232, 176, 74, .5); }
.demo-programs li.selected { border-color: var(--gold); background: rgba(232, 176, 74, .16); }
.demo-note { margin: 0; font-size: .9rem; }
/* Стъпка „Допълвате данните“: какво знаем и какво остава */
.demo-known, .demo-fields, .demo-docs, .demo-score { display: grid; gap: 8px; margin-bottom: 18px; }
.demo-known li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--on-dark-muted); font-size: .9rem; opacity: .35; transition: opacity .3s; }
.demo-known li.done { opacity: 1; }
.demo-known li span::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 8px; }
.demo-known b { color: var(--on-dark); text-align: right; }
.demo-fields li { padding: 11px 14px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .12); font-size: .9rem; font-weight: 600; color: var(--on-dark-muted); transition: border-color .3s, background .3s; }
.demo-fields li i { display: block; height: 6px; width: 0; margin-top: 8px; border-radius: 6px; background: rgba(255, 255, 255, .14); transition: width .7s var(--ease), background .3s; }
.demo-fields li.active { border-color: var(--gold); background: rgba(232, 176, 74, .1); color: var(--on-dark); }
.demo-fields li.active i { width: 70%; }
.demo-fields li.filled i { width: 85%; background: rgba(232, 176, 74, .55); }
.demo-docs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--on-dark-muted); font-weight: 600; transition: all .3s; }
.demo-docs li::after { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); flex: none; background-position: center; background-repeat: no-repeat; background-size: 13px; }
.demo-docs li.checking::after { border-color: var(--gold); border-top-color: transparent; animation: spin .8s linear infinite; }
.demo-docs li.done { color: var(--on-dark); background: rgba(255, 255, 255, .1); }
.demo-docs li.done::after { background-color: var(--gold); border-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230F3D2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.demo-score li { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-weight: 600; overflow: hidden; opacity: 0; transform: translateY(6px); transition: all .4s; }
.demo-score li.show { opacity: 1; transform: none; }
.demo-score li > * { position: relative; }
.demo-score .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(232, 176, 74, .25); transition: width 1s var(--ease) .2s; }
.demo-score li.show .bar { width: var(--w); }
.demo-score b { color: var(--gold); }
.demo-btn { display: block; padding: 13px; border-radius: 14px; background: var(--gold); color: #10241C; text-align: center; font-weight: 800; }
.progress { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 99px; transition: width .6s var(--ease); }

/* ---------- 9. Филтри и програми ---------- */
.filters { display: grid; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.filter { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.filter label, .filter legend { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding: 0; }
.filter legend { margin-bottom: 6px; }
select {
  width: 100%; min-height: 48px; padding: 10px 40px 10px 14px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23889' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  -webkit-appearance: none; appearance: none; font-weight: 600;
}
.seg { display: flex; padding: 4px; background: var(--bg-tint); border-radius: 14px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1; text-align: center; padding: 9px 6px; border-radius: 10px; font-weight: 700; font-size: .9rem; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--text-muted); transition: background .2s, color .2s; }
.seg input:checked + label { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 1px; }
.filter-region { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 14px; background: rgba(232, 176, 74, .18); font-weight: 600; align-self: end; }
.chip-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface); font-size: 1.2rem; line-height: 1; }
.results-count { color: var(--text-muted); font-weight: 600; margin: 0 4px 16px; }
.empty { text-align: center; padding: 40px; color: var(--text-muted); }
.programs-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.programs-more-wrap .btn[hidden] { display: none; }
.programs-note { text-align: center; color: var(--text-muted); font-size: .85rem; margin: 16px 0 0; }
.programs-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#programs .filter-region { display: inline-flex; gap: 12px; margin: 0 0 16px; }
#programs .filter-region[hidden] { display: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; color: var(--emerald-3); text-decoration: none; padding: 10px 4px; border-bottom: 2px solid transparent; transition: gap .2s var(--ease), border-color .2s; }
.link-arrow svg { width: 20px; height: 20px; }
.link-arrow:hover { gap: 12px; border-color: currentColor; }
[data-theme="dark"] .link-arrow { color: var(--gold); }

/* Страницата с всички процедури */
.page-head { padding-top: 40px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-muted); text-decoration: none; margin-bottom: 16px; }
.back-link svg { width: 18px; height: 18px; transform: rotate(180deg); }
.filter input[type="search"] { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 600; }
.filters.filters-all { grid-template-columns: 1fr; }
@media (min-width: 640px) { .filters.filters-all { grid-template-columns: 1fr 1fr; } .filters-all .filter-search { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .filters.filters-all { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .filters-all .filter-search { grid-column: auto; } .filters-all .filter-status { grid-column: span 2; } }
.filter-check { display: flex; align-items: center; gap: 8px; font-weight: 600; align-self: end; padding: 10px 0; }
.filter-check input { width: 18px; height: 18px; accent-color: var(--emerald-3); }

.program-grid { display: grid; gap: 16px; }
.program-card {
  display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; animation: fadeUp .4s var(--ease) both;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(232, 176, 74, .6); }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-code { font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--text-muted); background: var(--bg-tint); padding: 4px 10px; border-radius: 8px; word-break: break-all; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-open { color: var(--open); background: var(--open-bg); }
.status-upcoming { color: var(--upcoming); background: var(--upcoming-bg); }
.program-card h3 { margin: 4px 0 0; font-size: 1.25rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.program-card .pc-source { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.program-card .pc-meta { margin-top: auto; }
.pc-source { font-size: .82rem; font-weight: 700; color: var(--emerald-3); margin: 0; }
[data-theme="dark"] .pc-source { color: var(--gold); }
.pc-desc { color: var(--text-muted); font-size: .95rem; margin: 0; flex: 1; }
.pc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.pc-meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.pc-meta dd { margin: 0; font-weight: 800; font-size: .95rem; }
.pc-grant { color: var(--emerald-3); }
[data-theme="dark"] .pc-grant { color: var(--gold); }
.program-card .btn { width: 100%; }

/* ---------- 10. Карта ---------- */
.map-tile { padding: 16px; display: grid; place-items: center; background: var(--surface-2); }
.bg-map { width: 100%; height: auto; overflow: visible; }
.bg-map path {
  fill: var(--map-1); stroke: var(--map-stroke); stroke-width: 1.4; stroke-linejoin: round;
  cursor: pointer; transition: fill .25s, filter .25s, transform .25s;
}
.bg-map path[data-level="2"] { fill: var(--map-2); }
.bg-map path[data-level="3"] { fill: var(--map-3); }
.bg-map path[data-level="4"] { fill: var(--map-4); }
.bg-map path:hover, .bg-map path:focus { fill: var(--gold); outline: none; }
.bg-map path:focus-visible { stroke: var(--text); stroke-width: 3; }
.bg-map path.is-active { fill: var(--coral); }
.map-tooltip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 180px;
  background: var(--emerald); color: #fff; padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow-lg);
  font-size: .85rem; line-height: 1.4; transform: translate(-50%, calc(-100% - 14px));
}
[data-theme="dark"] .map-tooltip { background: #F4EFE4; color: #10241C; }
.map-tooltip strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.map-tooltip .tt-count { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 99px; background: var(--gold); color: #10241C; font-weight: 800; }
.map-tooltip .tt-nuts, .map-tooltip .tt-only, .map-tooltip .tt-hint { display: block; opacity: .85; }
.map-tooltip .tt-only { margin-top: 4px; }
.map-tooltip .tt-hint { margin-top: 4px; font-size: .78rem; opacity: .7; }
.map-tooltip .tt-progs { display: block; margin-top: 4px; font-size: .8rem; max-width: 240px; }

/* Под филтъра по област: регионалните програми */
.region-extra { margin: 0 0 20px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.region-extra .re-head { margin: 0; font-weight: 600; }
.region-extra .re-sub { margin: 10px 0 8px; color: var(--text-muted); font-size: .9rem; }
.re-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.re-list a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); color: inherit; text-decoration: none; }
.re-list a:hover { border-color: var(--gold); }
.re-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.re-note { font-size: .8rem; color: var(--text-muted); }
.legend { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-muted); font-weight: 600; margin: 16px 0; }
.legend i { width: 28px; height: 12px; border-radius: 4px; background: var(--c); }
.region-select { max-width: 320px; }

/* ---------- 11. Отзиви ---------- */
.carousel-viewport { overflow: hidden; margin: -8px; padding: 0; }
.carousel-track { display: flex; transition: transform .6s var(--ease); }
.review {
  flex: 0 0 calc(100% - 16px); margin: 8px; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 24px 4px;
}
.review blockquote { margin: 0; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.45; flex: 1; }
.stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--gold); }
.stars svg { width: 20px; height: 20px; }
.stars .off { color: var(--border); opacity: .6; }
.who { display: flex; align-items: center; gap: 12px; margin: 20px 0 28px; font-size: .9rem; color: var(--text-muted); }
.who strong { display: block; color: var(--text); font-size: 1rem; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald); color: var(--gold); font-weight: 800; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; transition: background .2s, color .2s; }
.round-btn:hover { background: var(--primary); color: var(--on-primary); }
.dots { display: flex; gap: 6px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: var(--border); transition: width .3s, background .3s; position: relative; }
.dots button::after { content: ""; position: absolute; inset: -12px -4px; }
.dots button[aria-current="true"] { width: 28px; background: var(--gold); }

/* ---------- 12. Цени ---------- */
.pricing-grid { display: grid; gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured { background: var(--dark-tile); color: var(--on-dark); border-color: transparent; }
.price-card.featured .price-desc, .price-card.featured .price span { color: var(--on-dark-muted); }
.badge { align-self: flex-start; margin-bottom: 14px; padding: 4px 12px; border-radius: 99px; background: var(--coral); color: #fff; font-size: .75rem; font-weight: 800; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.price strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; }
.price span { color: var(--text-muted); font-weight: 600; }
.price-desc { color: var(--text-muted); }
.feat { display: grid; gap: 10px; margin: 8px 0 28px; flex: 1; }
.feat li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.feat svg { width: 20px; height: 20px; flex: none; color: var(--open); margin-top: 2px; }
.featured .feat svg { color: var(--gold); }
.price-card.featured .btn-outline { color: var(--on-dark); }

/* ---------- 13. За нас + FAQ ---------- */
.about-tile { display: flex; flex-direction: column; align-items: flex-start; }
.about-tile h2 { color: var(--on-dark); }
.about-tile .btn { margin-top: auto; }
.faq-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.accordion { display: grid; gap: 10px; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: box-shadow .3s; }
.acc-item.open { box-shadow: var(--shadow); }
.acc-item h3 { margin: 0; font-size: 1rem; font-family: var(--font-body); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border: 0; background: none; text-align: left; font-weight: 700; font-size: 1rem; }
.acc-icon { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-tint); transition: transform .3s, background .3s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); border-radius: 2px; }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.acc-item.open .acc-icon { background: var(--gold); color: #10241C; transform: rotate(180deg); }
.acc-item.open .acc-icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { margin: 0; padding: 0 20px 20px; color: var(--text-muted); }

/* ---------- 14. CTA ---------- */
.cta-section { padding-top: 0; }
.section-tint + .cta-section { padding-top: 64px; }
.cta-band { position: relative; overflow: hidden; padding: 48px 24px; text-align: center; border-radius: calc(var(--radius) + 8px); background: var(--emerald); color: #fff; box-shadow: var(--shadow-lg); }
[data-theme="dark"] .cta-band { background: #1A4636; }
.cta-band h2 { position: relative; color: #fff; max-width: 640px; margin-inline: auto; }
.cta-band p { position: relative; color: rgba(255, 255, 255, .78); }
.cta-band .btn { position: relative; }

/* ---------- 15. Footer ---------- */
.site-footer { background: #0A2A1F; color: var(--on-dark); padding: 56px 0 24px; }
[data-theme="dark"] .site-footer { background: #071812; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer h3 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--on-dark-muted); transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.site-footer p, .contacts li { color: var(--on-dark-muted); }
.footer-brand .logo { --logo-bg: var(--gold); --logo-fg: var(--emerald); margin-bottom: 14px; }
.newsletter { margin-top: 20px; max-width: 440px; }
.newsletter label { display: block; font-weight: 700; margin-bottom: 8px; }
.nl-row { display: flex; flex-direction: column; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; }
.nl-row input::placeholder { color: rgba(255, 255, 255, .5); }
.nl-consent { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; font-weight: 400 !important; font-size: .85rem; line-height: 1.45; color: rgba(255, 255, 255, .75); cursor: pointer; }
.nl-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: #E8B547; }
.nl-consent a { color: inherit; text-decoration: underline; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-msg { min-height: 1.4em; margin-top: 8px; font-size: .9rem; font-weight: 600; }
.nl-msg.ok { color: #9FE0BE; }
.nl-msg.err { color: #F7A48E; }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
/* GDPR значка във футъра */
.site-footer .gdpr-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px 6px 10px; border: 1px solid rgba(232, 176, 74, .45); border-radius: 999px; background: rgba(232, 176, 74, .08); color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .02em; cursor: default; }
.site-footer .gdpr-badge svg { flex: none; }
.site-footer .gdpr-badge a { color: inherit; text-decoration: none; }
.site-footer .gdpr-badge a:hover { text-decoration: underline; }
.legal { display: flex !important; flex-wrap: wrap; gap: 8px 20px !important; }

/* ---------- 16. Модали ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 22, 16, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .25s; }
.modal-box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 32px 24px 24px; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-tint); font-size: 1.4rem; line-height: 1; }
.modal-box h2 { font-size: 1.7rem; padding-right: 32px; }
.promo-form { display: flex; flex-direction: column; gap: 8px; }
.promo-form input { min-height: 48px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); text-transform: uppercase; font-weight: 700; letter-spacing: .08em; }
.promo-msg { min-height: 1.4em; margin: 12px 0 0; font-weight: 700; }
.promo-msg.ok { color: var(--open); }
.promo-msg.err { color: var(--upcoming); }

.loader-box { text-align: center; }
.spinner { width: 72px; height: 72px; margin: 0 auto 20px; animation: bob 1.2s ease-in-out infinite; }
.spinner svg { width: 100%; height: 100%; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(8deg); } }
.loader-steps { display: grid; gap: 8px; text-align: left; margin-top: 16px; }
.loader-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg-tint); color: var(--text-muted); font-weight: 600; font-size: .95rem; transition: color .3s; }
.loader-steps li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); }
.loader-steps li.checking::before { border-color: var(--gold); border-top-color: transparent; animation: spin .8s linear infinite; }
.loader-steps li.done { color: var(--text); }
.loader-steps li.done::before { border-color: var(--open); background: var(--open); box-shadow: inset 0 0 0 3px var(--surface); }

.result-box { max-width: 640px; }
.company-facts { display: grid; gap: 10px; margin: 16px 0; }
.company-facts div { display: grid; gap: 2px; }
.company-facts dt { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.company-facts dd { margin: 0; font-weight: 600; }
.result-h { font-family: var(--font-body); font-size: 1rem; font-weight: 800; margin: 20px 0 10px; }
.check-list { display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-tint); border-left: 4px solid var(--border); }
.check strong { grid-row: 1; }
.check p { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--text-muted); }
.check p a { font-weight: 700; color: inherit; }
.check-state { grid-column: 2; grid-row: 1; font-size: .72rem; font-weight: 800; padding: 2px 10px; border-radius: 99px; align-self: center; background: var(--surface); }
.check-ok { border-left-color: var(--open); } .check-ok .check-state { color: var(--open); }
.check-warn, .check-manual { border-left-color: var(--gold); } .check-warn .check-state, .check-manual .check-state { color: var(--text); }
.check-fail { border-left-color: var(--coral); } .check-fail .check-state { color: var(--upcoming); }
.check-unavailable .check-state, .check-info .check-state { color: var(--text-muted); }
.result-list li.is-out { opacity: .65; }
.result-error { padding: 14px 16px; border-radius: 14px; background: var(--upcoming-bg); color: var(--text); font-weight: 600; }
.result-eik { color: var(--text-muted); }
.result-list { display: grid; gap: 10px; margin: 16px 0; }
.result-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--bg-tint); }
.result-list .r-title { font-weight: 700; }
.result-list .r-code { font-size: .78rem; color: var(--text-muted); grid-column: 1; }
.result-list .r-why { font-size: .84rem; grid-column: 1; }
.result-list .r-title a { color: inherit; text-decoration: none; }
.result-list .r-title a:hover { text-decoration: underline; }
.result-list .r-score { grid-row: 1 / span 3; grid-column: 2; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--emerald-3); }
[data-theme="dark"] .result-list .r-score { color: var(--gold); }
.result-note { font-size: .88rem; color: var(--text-muted); }
/* AI анализ */
.ai-box { margin: 20px 0 4px; padding: 16px; border-radius: 18px; background: var(--bg-tint); border: 1px solid var(--border); }
.ai-box .result-h { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.ai-badge { font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 99px; background: var(--gold); color: #1a1a1a; }
.ai-summary { margin: 0 0 12px; }
.ai-list { display: grid; gap: 8px; }
.ai-item { padding: 12px 14px; border-radius: 14px; background: var(--surface); border-left: 4px solid var(--border); }
.ai-item p { margin: 4px 0 0; font-size: .9rem; color: var(--text-muted); }
.ai-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.ai-fit { font-size: .72rem; font-weight: 800; white-space: nowrap; }
.ai-high { border-left-color: var(--open); } .ai-high .ai-fit { color: var(--open); }
.ai-medium { border-left-color: var(--gold); }
.ai-low { border-left-color: var(--coral); } .ai-low .ai-fit { color: var(--text-muted); }
.ai-check { font-style: italic; }
.ai-note { margin: 10px 0 0; font-size: .78rem; color: var(--text-muted); }
.result-actions { display: flex; flex-direction: column; gap: 8px; }
body.modal-open { overflow: hidden; }

/* ---------- 17. Появяване при скрол ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.pre:not(.in) { opacity: 0; transform: translateY(24px); }

/* ---------- 18. Responsive: таблет ---------- */
@media (min-width: 640px) {
  .eik-field { flex-direction: row; align-items: center; border-radius: 999px; padding: 6px 6px 6px 12px; }
  .eik-field .btn { flex: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filter-status { grid-column: 1 / -1; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .nl-row { flex-direction: row; }
  .promo-form { flex-direction: row; }
  .promo-form input { flex: 1; min-width: 0; }
  .result-actions { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .modal-box { padding: 36px 32px 28px; }
  .cta-band { padding: 64px 40px; }
}

@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .container { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid .featured { order: -1; grid-column: 1 / -1; }
  .map-bento { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr 1fr; }
  .faq-bento { grid-template-columns: 1fr 1.6fr; align-items: start; }
  .about-tile { position: sticky; top: 88px; }
}

/* Три процедури на ред още от 900px */
@media (min-width: 900px) {
  .program-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 19. Responsive: десктоп ---------- */
@media (min-width: 1024px) {
  .header-cta { display: inline-flex; }
  .burger { display: none; }
  .main-nav { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0; }
  .main-nav ul { display: flex; gap: 4px; margin: 0; }
  .main-nav a:not(.btn) { padding: 8px 14px; border-radius: 999px; }
  .nav-cta-mobile { display: none; }

  .hero { padding: 56px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-visual { margin-right: 0; }
  .filters { grid-template-columns: 1fr 1fr 1.3fr; align-items: end; }
  .filter-status { grid-column: auto; }
  .filter-region { grid-column: 1 / -1; justify-self: start; }
  .program-grid { grid-template-columns: repeat(3, 1fr); }
  .map-bento { grid-template-columns: .8fr 1.6fr; align-items: stretch; }
  .map-intro { display: flex; flex-direction: column; justify-content: center; }
  .stats-bento { grid-template-columns: 1.3fr 1.3fr 1fr 1fr; }
  .stats-bento .tile { padding: 28px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer-brand { grid-column: auto; }
  .price-card { padding: 36px 32px; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid .featured { order: 0; grid-column: auto; }
}

@media (min-width: 900px) {
  .review { flex-basis: calc(50% - 16px); }
}
@media (min-width: 1200px) {
  .review { flex-basis: calc(33.3333% - 16px); }
}

/* Уважаваме предпочитанието за намалено движение */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Проверка: стъпка 2 „Допълнителни данни“ ---------- */
.flow { display: flex; gap: 6px; margin: 0 32px 18px 0; padding: 0; list-style: none; counter-reset: flow; }
.flow li { flex: 1; counter-increment: flow; padding-top: 10px; border-top: 4px solid var(--border); font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.flow li::before { content: counter(flow) ". "; }
.flow li.done { border-color: var(--emerald-3); color: var(--text); }
.flow li.done::before { content: "✓ "; color: var(--emerald-3); }
.flow li.current { border-color: var(--gold); color: var(--text); }
[data-theme="dark"] .flow li.done { border-color: var(--gold); }
[data-theme="dark"] .flow li.done::before { color: var(--gold); }
.details-box { max-width: 640px; }
.details-lead { color: var(--text-muted); margin: 0 0 18px; }
.mini-h { margin: 0 0 8px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.known-list { display: grid; gap: 6px; margin: 0 0 22px; }
.known-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--bg-tint); font-size: .92rem; }
.known-list dt { color: var(--text-muted); }
.known-list dt::before { content: "✓"; margin-right: 8px; font-weight: 800; color: var(--emerald-3); }
[data-theme="dark"] .known-list dt::before { color: var(--gold); }
.known-list dd { margin: 0; font-weight: 700; text-align: right; }
.details-form { display: grid; gap: 14px; }
.df-group { display: grid; gap: 14px; margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.df-group legend { padding: 0 6px; font-weight: 800; }
.df-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .df-row { grid-template-columns: 1fr 1fr; } }
.df-field { display: grid; gap: 6px; align-content: start; }
.df-field label { font-weight: 700; font-size: .9rem; }
.df-field input, .df-field select, .df-field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit;
}
.df-field textarea { resize: vertical; min-height: 84px; }
.df-field input:focus-visible, .df-field select:focus-visible, .df-field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.df-hint { margin: 0; font-size: .82rem; color: var(--text-muted); }
.df-warn { color: var(--upcoming); font-weight: 600; }
.df-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.df-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
#df-error:empty { display: none; }

/* ---------- 20. Проверката в 3 стъпки ---------- */
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; justify-self: start; }
.wz-step { display: grid; gap: 14px; }
.wz-step[hidden] { display: none; }
.wz-h { font-size: 1.2rem; margin: 0; }
.wz-step .details-lead { margin: 0; }
.wz-actions { display: flex; gap: 8px; justify-content: space-between; margin-top: 4px; }
.wz-actions .btn-primary { flex: 1; max-width: 340px; margin-left: auto; }
.wz-actions .btn[hidden] { display: none; }
.df-opt { font-weight: 500; color: var(--text-muted); }
.df-field input[aria-invalid="true"] { border-color: var(--coral); }

/* Приходи по години */
.rev-list { display: grid; gap: 8px; }
.rev-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 8px; align-items: center; padding: 10px; border-radius: var(--radius-sm); background: var(--bg-tint); }
.rev-year { display: grid; gap: 2px; }
.rev-year strong { font-size: 1.05rem; }
.rev-year select { min-height: 40px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; }
.rev-src { font-size: .7rem; font-weight: 700; color: var(--emerald-3); }
[data-theme="dark"] .rev-src { color: var(--gold); }
.rev-src.manual { color: var(--text-muted); }
.rev-row input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.rev-row input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.rev-del { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--text-muted); font-size: 1.2rem; }
.rev-del:hover { background: var(--surface); color: var(--upcoming); }
.rev-del[hidden] { visibility: hidden; display: block; }

/* Проектът (по желание) */
.df-more { border: 1px solid var(--border); border-radius: var(--radius-sm); }
.df-more summary { cursor: pointer; padding: 12px 16px; font-weight: 800; }
.df-more-body { display: grid; gap: 14px; padding: 0 16px 16px; }

/* Преглед: заключени полета с бутон за отключване */
.review-list { display: grid; gap: 8px; }
.rv-field { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-tint); }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rv-head label { font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.rv-head label::before { content: "🔒"; margin-right: 6px; font-size: .75rem; }
.rv-field.is-open .rv-head label::before { content: "✎"; }
.rv-field.is-edited .rv-head label::after { content: " · поправено"; color: var(--upcoming); }
.rv-field textarea { width: 100%; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-weight: 700; resize: none; field-sizing: content; min-height: 1.5em; max-height: 10.5em; overflow: auto; }
.rv-field.is-open textarea { max-height: none; padding: 8px 10px; border-color: var(--border); background: var(--surface); font-weight: 500; resize: vertical; }
.rv-field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.rv-edit { border: 0; background: none; padding: 4px 0; color: var(--emerald-3); font-weight: 700; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .rv-edit { color: var(--gold); }
.known-list dd .link-btn { font-size: .8rem; margin-left: 8px; font-weight: 600; }
.pay-note { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--open-bg); font-size: .9rem; }
.pay-note.err { background: var(--upcoming-bg); color: var(--upcoming); font-weight: 600; }

/* ---------- „Попълване на документи“: бутон за изготвяне с AI и прозорецът с документите (docs-ai.js) ---------- */
.how-demo .demo:not([hidden]) { margin: auto 0; }
.demo-btn { opacity: .45; transform: scale(.98); transition: opacity .4s, transform .4s, box-shadow .4s; }
.demo-btn.show { opacity: 1; transform: none; box-shadow: 0 10px 24px -10px rgba(232, 176, 74, .9); }
.ai-docs-cta { position: relative; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.how-demo:not([data-flow="docs"]) .ai-docs-cta { display: none; }
.ai-docs-cta .btn { width: 100%; justify-content: center; gap: 10px; white-space: normal; text-align: center; border-radius: 18px; }
.ai-docs-cta .ai-badge { background: #10241C; color: var(--gold); }
.ai-docs-hint { margin: 8px 0 0; font-size: .82rem; text-align: center; }
.ai-docs-list { margin: 0 0 4px; }
.ai-docs-actions { margin-top: 16px; flex-wrap: wrap; }
.ai-docs-done { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.ai-docs-done details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.ai-docs-done summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.ai-docs-done summary::-webkit-details-marker { display: none; }
.ai-docs-done summary span::before { content: "▸"; display: inline-block; margin-right: 8px; color: var(--gold-2); transition: transform .2s; }
.ai-docs-done details[open] summary span::before { transform: rotate(90deg); }
.ai-doc { max-height: 46vh; overflow: auto; padding: 4px 16px 14px; border-top: 1px solid var(--border); font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; }
.ai-doc h3, .ai-doc h4, .ai-doc h5, .ai-doc h6 { margin: 14px 0 6px; font-size: 1rem; }
.ai-doc p, .ai-doc ul, .ai-doc ol { margin: 0 0 8px; }
.ai-doc ul, .ai-doc ol { padding-left: 20px; }
.ai-doc ul { list-style: disc; }
.ai-doc ol { list-style: decimal; }
.ai-doc table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: .84rem; display: block; overflow-x: auto; }
.ai-doc th, .ai-doc td { border: 1px solid var(--border); padding: 5px 7px; text-align: left; vertical-align: top; }
.ai-doc th { background: var(--bg-tint); }
.ai-doc mark { background: rgba(232, 176, 74, .35); color: inherit; border-radius: 4px; padding: 0 2px; }
/* Въпросникът за документите (docs-forms.js) */
.dq-steps { margin-bottom: 18px; }
.dq-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.dq-inline input { flex: 1 1 160px; min-width: 0; }
.dq-inline .btn { flex: none; padding-block: 10px; }
.dq-links { display: flex; gap: 12px; flex: none; }
.ai-docs-done summary .dq-links::before { content: none; }
.ai-docs-done summary { list-style: none; }
.ai-doc table.fields th { width: 38%; }
.ai-doc tr.total td { font-weight: 700; background: var(--bg-tint); }
.ai-doc table.sign td { border: 0; }
.ai-doc .note { font-size: .8rem; color: var(--text-muted); border-left: 3px solid var(--gold); padding-left: 8px; }
.ai-doc .b { font-weight: 700; }
.details-lead mark { background: rgba(232, 176, 74, .35); color: inherit; border-radius: 4px; padding: 0 3px; }

/* „Вход“ / „Профил“ в хедъра (account.js) */
.header-login { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: inherit; text-decoration: none; white-space: nowrap; transition: background .2s; }
.header-login:hover { background: var(--bg-tint); }
.header-login:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Бутонът „Купи“ на абонамента: грешка под него */
.buy-msg { margin: 10px 0 0; min-height: 0; font-size: .9rem; font-weight: 600; color: #F08C6E; text-align: center; }
.buy-msg:empty { display: none; }

/* Зачертана цена (доплащане до „Пакет за документи“) */
.old-price { opacity: .6; font-weight: 500; text-decoration-thickness: 2px; margin-right: .15em; }

/* Модератор (ADMIN_EMAILS): ясно червено означение, само за модераторските профили */
.mod-badge { display: inline-block; background: #c62828; color: #fff; font-weight: 800; font-size: 1rem; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; padding: .4em .9em; border-radius: 999px; vertical-align: middle; }
.mod-badge--sm { font-size: .78rem; padding: .35em .75em; margin-left: .6rem; }
.eik-hint .mod-badge { margin-right: .5rem; }

/* =========================================================
   Телефон: допълнителни правила (само за тесни екрани)
   Компютърната версия (1024px+) не се променя.
   ========================================================= */
/* Логото не се смачква, когато хедърът е тесен */
.logo-mark { flex-shrink: 0; }
/* Прегледът в проверката и въпросникът не излизат вдясно от прозореца */
.details-form, .wz-step, .review-list, .rv-field { grid-template-columns: minmax(0, 1fr); }
.rv-field textarea { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

@media (max-width: 1023px) {
  .faq-bento { row-gap: 40px; }
}

@media (max-width: 560px) {
  /* Хедър: лого, модератор, тема, вход/профил и меню се побират на един ред */
  .header-inner { gap: 6px; }
  .header-actions { gap: 2px; flex-shrink: 0; }
  .logo { gap: 8px; min-width: 0; overflow: hidden; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-text { font-size: 1.2rem; }
  .site-header .mod-badge--sm { font-size: .55rem; padding: .4em .6em; margin-left: 0; letter-spacing: .03em; flex-shrink: 0; }
  .header-login { padding: 6px 8px; font-size: .88rem; min-height: 40px; }
  .theme-toggle, .burger { width: 38px; height: 38px; }

  /* Стъпките в прозорците: пълен текст само на текущата, другите са номер или ✓ */
  .flow li:not(.current) { font-size: 0; }
  .flow li:not(.current)::before { font-size: .78rem; }
  .flow li.current { flex: 3; }
  .flow { margin-right: 0; }

  /* Бутоните „Назад“ / „Покажи безплатния преглед“ се събират в прозореца
     (дългият текст се пренася, вместо да избутва бутоните извън екрана) */
  .wz-actions .btn { min-width: 0; padding: 10px 14px; font-size: .92rem; white-space: normal; text-align: center; line-height: 1.25; }
}

@media (max-width: 389px) {
  .logo { gap: 6px; }
  .logo-mark { width: 26px; height: 26px; }
}
@media (max-width: 374px) {
  .logo-text { font-size: 1.1rem; }
  .logo-mark { display: none; }
}

/* Телефон: плановете и програмите на началната страница се плъзгат настрани
   (на страницата с всички процедури списъкът остава вертикален: .is-list).
   Виждат се една карта и крайчето на следващата, за да е ясно, че има още. */
@media (max-width: 767px) {
  .pricing-grid, #program-grid:not(.is-list) {
    display: flex; gap: 12px; align-items: stretch;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
    scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    margin: 0 -16px; padding: 8px 16px 20px;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar, #program-grid:not(.is-list)::-webkit-scrollbar { display: none; }
  .pricing-grid > *, #program-grid:not(.is-list) > * { flex: 0 0 86%; max-width: 360px; scroll-snap-align: start; }
  .price-card:hover { transform: none; }
}

/* Сензорни екрани: докосването „залепва“ hover ефекта и картите подскачат нагоре.
   Там ги държим неподвижни. */
@media (hover: none) {
  .btn:hover, .logo-card:hover, .stats-bento .tile:hover, .program-card:hover, .price-card:hover { transform: none; }
  /* Без анимации на картите: iOS Safari ги прерисува грешно, докато въртележката се плъзга */
  .program-card, .price-card { transition: none; }
}

/* ---------- Безплатен преглед преди плащане ---------- */
.pv-sum { display: flex; align-items: center; gap: 16px; margin: 8px 0 18px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg-tint); }
.pv-num { font-family: var(--font-head); font-size: 3rem; line-height: 1; color: var(--emerald-3); }
[data-theme="dark"] .pv-num { color: var(--gold); }
.pv-sum span { font-weight: 600; line-height: 1.4; }
.pv-zero .pv-num { color: var(--text-muted); }
.pv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pv-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.pv-name { min-width: 0; overflow: hidden; }
.pv-blur { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: clip; filter: blur(6px); user-select: none; -webkit-user-select: none; pointer-events: none; }
.pv-meta { grid-column: 1; font-size: .82rem; color: var(--text-muted); }
.pv-score { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.pv-score small { display: block; font-family: var(--font-body, inherit); font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted); }
.pv-more { margin: 10px 0 0; font-weight: 700; color: var(--text-muted); text-align: center; }
.pv-cta { margin-top: 20px; padding: 20px; border-radius: var(--radius-sm); background: var(--dark-tile); color: var(--on-dark); }
.pv-cta p { margin: 0 0 14px; }
.pv-btns { display: grid; gap: 10px; }
.pv-cta .btn-outline { color: var(--on-dark); }
.pv-small { font-size: .82rem; color: var(--on-dark-muted); margin: 12px 0 0 !important; }
.pv-msg { color: #ffb4a8; font-weight: 700; margin: 8px 0 0 !important; }
.pv-msg:empty { display: none; }
.result-sub { margin: -4px 0 12px; font-size: .86rem; color: var(--text-muted); }
.pv-btns .btn { width: 100%; min-width: 0; white-space: normal; text-align: center; }
@media (max-width: 560px) { .pv-btns .btn-lg { font-size: .95rem; padding: 12px 16px; } .pv-num { font-size: 2.4rem; } }
