/* AI LAB – Лаборатория по изкуствен интелект
   Цветове по заданието: дълбоко синьо #1E2A38 · електрик индиго #4F46E5 · неонов син акцент #00B3FF · светъл фон #F5F7FA
   Шрифтове: Montserrat (заглавия) + Inter (текст) – заредени локално от /assets/lab/fonts */

:root {
  --navy: #1E2A38;
  --navy-deep: #141D27;
  --indigo: #4F46E5;
  --indigo-strong: #4338CA;
  --neon: #00B3FF;

  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --text: #1E2A38;
  --muted: #586579;
  --line: #DFE5EC;
  --link: #4338CA;
  --accent-soft: #EEF0FF;
  --neon-soft: #E3F6FF;
  --neon-text: #0077B3;
  --shadow-sm: 0 1px 2px rgba(30, 42, 56, .06), 0 2px 8px rgba(30, 42, 56, .05);
  --shadow-md: 0 10px 30px -12px rgba(30, 42, 56, .22);
  --shadow-lg: 0 30px 60px -24px rgba(20, 29, 39, .45);

  --font-head: 'Montserrat', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --head-h: 72px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0F161E;
  --surface: #18222D;
  --surface-2: #1F2B38;
  --text: #E9EEF5;
  --muted: #A3B1C2;
  --line: #2A3848;
  --link: #9DB2FF;
  --accent-soft: #23264D;
  --neon-soft: #0E3145;
  --neon-text: #5CCBFF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 12px 32px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
picture { display: contents; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--indigo); color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.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 { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: top .15s; }
.skip:focus { top: 12px; }
.ico { width: 24px; height: 24px; flex: none; }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--indigo); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s, border-color .18s, color .18s;
  box-shadow: 0 8px 20px -10px rgba(79, 70, 229, .8);
}
.btn:hover { background: var(--indigo-strong); transform: translateY(-1px); }
.btn .ico { width: 18px; height: 18px; transition: transform .18s; }
.btn:hover .ico { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--indigo); color: var(--link); }
.btn.on-dark { background: #fff; color: var(--navy); box-shadow: none; }
.btn.on-dark:hover { background: var(--neon); color: var(--navy-deep); }
.btn.ghost.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.btn.ghost.on-dark:hover { border-color: var(--neon); color: var(--neon); background: transparent; }
.btn.sm { min-height: 40px; padding: 8px 18px; font-size: .875rem; }
.more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--link); }
.more .ico { width: 18px; height: 18px; transition: transform .18s; }
a:hover > .more .ico, .more:hover .ico { transform: translateX(4px); }

/* ---------- Горна лента ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100; height: var(--head-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.brand-mark { width: 42px; height: 42px; flex: none; border-radius: 11px; box-shadow: 0 6px 16px -8px rgba(79, 70, 229, .9); }
.brand-text { display: grid; line-height: 1.1; }
.brand-text b { font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; letter-spacing: .04em; }
.brand-text small { font-size: .7rem; color: var(--muted); font-weight: 500; letter-spacing: .01em; margin-top: 3px; white-space: nowrap; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .94rem; transition: color .15s, background .15s;
}
.nav-item.has-sub > .nav-link { padding-right: 4px; }
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--link); }
.nav-item.is-active > .nav-link { color: var(--link); }
.nav-item.is-active > .nav-link::after { content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--indigo), var(--neon)); }
.nav-caret { display: grid; place-items: center; width: 26px; height: 32px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--muted); border-radius: 8px; }
.nav-caret svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-sub {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 264px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s;
}
.nav-item:last-child > .nav-sub { left: auto; right: -8px; }
.nav-sub::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.nav-item:hover > .nav-sub, .nav-item:focus-within > .nav-sub, .nav-item.is-open > .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-item:hover .nav-caret svg, .nav-item.is-open .nav-caret svg { transform: rotate(180deg); }
.nav-sub a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav-sub a:hover { background: var(--accent-soft); color: var(--link); }
.nav-sub a[aria-current="page"] { color: var(--link); font-weight: 600; background: var(--accent-soft); }

.head-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--indigo); color: var(--link); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
html[data-theme="dark"] .theme-btn .i-sun { display: block; }
html[data-theme="dark"] .theme-btn .i-moon { display: none; }
.nav-toggle { display: none; }
.nav-cta { display: none; }

/* ---------- Начало: hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: #fff; padding: 76px 0 150px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(79, 70, 229, .55), transparent 60%),
    radial-gradient(700px 480px at 4% 108%, rgba(0, 179, 255, .28), transparent 62%),
    linear-gradient(160deg, #1E2A38 0%, #141D27 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 78%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 14px 7px 10px; border-radius: 999px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #D5E3F3;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 4px rgba(0, 179, 255, .22); }
.hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.14; letter-spacing: -.024em; margin-bottom: 22px; text-wrap: wrap; }
.hero h1 b { display: block; font-weight: inherit; }
.hero h1 span { display: block; margin-top: .14em; background: linear-gradient(92deg, #8E9BFF 0%, var(--neon) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.15rem; line-height: 1.65; color: #C6D2E0; max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 38px 0 0; padding: 0; list-style: none; font-size: .9rem; color: #A9B8CA; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta .ico { width: 18px; height: 18px; color: var(--neon); }

.hero-visual { position: relative; }
.hero-photo { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .14); aspect-ratio: 4 / 3.25; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(20, 29, 39, .55)); }
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); color: var(--navy); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  font-size: .82rem; line-height: 1.3;
}
.hero-chip b { display: block; font-family: var(--font-head); font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.hero-chip .dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--indigo), var(--neon)); color: #fff; flex: none; }
.hero-chip .dot .ico { width: 20px; height: 20px; }
.hero-chip.c1 { left: -26px; bottom: 34px; }
.hero-chip.c2 { right: -14px; top: 28px; }

/* ---------- Бърз достъп ---------- */
.quick { position: relative; z-index: 2; margin-top: -92px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); color: var(--text); text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quick-card:hover { transform: translateY(-4px); border-color: var(--indigo); box-shadow: 0 24px 44px -22px rgba(79, 70, 229, .5); }
.quick-card .tag { font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.quick-card h3 { font-size: 1.32rem; margin: 0; }
.quick-card p { margin: 0 0 8px; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.quick-card .more { margin-top: auto; }
.badge-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--link); flex: none; }
.badge-ico .ico { width: 26px; height: 26px; }
.quick-card:nth-child(2) .badge-ico { background: var(--neon-soft); color: var(--neon-text); }
.quick-card:nth-child(3) .badge-ico { background: var(--navy); color: #fff; }
html[data-theme="dark"] .quick-card:nth-child(3) .badge-ico { background: #2C3B4D; }

/* ---------- Секции ---------- */
.section { padding: 92px 0; }
.section.tight { padding: 68px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head.row > div { max-width: 720px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--indigo), var(--neon)); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.022em; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* За инициативата */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.about-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.022em; }
.about-text p { color: var(--muted); }
.about-text .btn { margin-top: 10px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--font-head); font-size: 2.7rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; background: linear-gradient(120deg, var(--indigo), var(--neon)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.section.alt .stat { background: var(--bg); }

/* Пътна карта (акцент) */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(760px 420px at 100% 0, rgba(79, 70, 229, .5), transparent 62%), radial-gradient(620px 380px at 0 100%, rgba(0, 179, 255, .2), transparent 60%); }
.band .kicker { color: var(--neon); }
.band .section-head p { color: #BCC9D8; }
.stages { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: stage; list-style: none; margin: 0; padding: 0; }
.stages::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--indigo), var(--neon)); opacity: .55; }
.stage-card { position: relative; counter-increment: stage; padding-top: 68px; }
.stage-card::before {
  content: counter(stage); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-deep); border: 2px solid var(--neon); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 0 6px rgba(0, 179, 255, .13);
}
.stage-card .when { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 179, 255, .14); color: #8FDCFF; font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stage-card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.stage-card p { margin: 0; color: #BCC9D8; font-size: .95rem; line-height: 1.58; }
.band-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 46px; }

/* Карти */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c5 { grid-template-columns: repeat(5, 1fr); }
.card {
  display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card:hover { transform: translateY(-4px); border-color: var(--indigo); box-shadow: 0 22px 40px -24px rgba(79, 70, 229, .55); }
.card h3 { font-size: 1.12rem; margin: 4px 0 0; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.card .more { margin-top: auto; padding-top: 6px; }
.card .badge-ico { width: 48px; height: 48px; border-radius: 13px; }
.card .badge-ico .ico { width: 24px; height: 24px; }
.section.alt .card { background: var(--bg); box-shadow: none; }

/* Редове с връзки */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.split .section-head { margin: 0; position: sticky; top: calc(var(--head-h) + 32px); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.row:hover { transform: translateX(4px); border-color: var(--indigo); box-shadow: 0 18px 34px -24px rgba(79, 70, 229, .6); }
.row-text { flex: 1; display: grid; gap: 3px; min-width: 0; }
.row-text b { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.row-text span { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.row > .ico { width: 20px; height: 20px; color: var(--muted); transition: transform .2s, color .2s; }
.row:hover > .ico { transform: translateX(4px); color: var(--link); }
.row .badge-ico { width: 48px; height: 48px; border-radius: 13px; }
.row .badge-ico .ico { width: 24px; height: 24px; }

/* Послание */
.quote { position: relative; padding: 84px 0; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 920px; font-family: var(--font-head); font-size: clamp(1.5rem, 3.3vw, 2.5rem); font-weight: 800; line-height: 1.22; letter-spacing: -.022em; }
.quote blockquote span { background: linear-gradient(92deg, var(--indigo), var(--neon)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote figcaption { margin-top: 20px; color: var(--muted); font-size: .95rem; }
.quote-mark { width: 54px; height: 54px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); color: var(--link); font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; line-height: 1; padding-top: 14px; }

/* Галерия */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 132px; gap: 14px; }
.mosaic a { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.mosaic a:hover img { transform: scale(1.045); }
.mosaic a:nth-child(1) { grid-column: span 7; grid-row: span 4; }
.mosaic a:nth-child(2), .mosaic a:nth-child(3) { grid-column: span 5; grid-row: span 2; }
.mosaic a:nth-child(n+4) { grid-column: span 4; grid-row: span 2; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.gallery a:hover img { transform: scale(1.05); }

/* Ресурси / документи */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.doc { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.doc:hover { transform: translateY(-4px); border-color: var(--indigo); box-shadow: 0 22px 40px -24px rgba(79, 70, 229, .55); }
.doc-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.doc-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 20px 22px; }
.doc-body h3 { font-size: 1.04rem; margin: 0; line-height: 1.3; }
.doc-body h3 a { color: var(--text); text-decoration: none; }
.doc-body h3 a:hover { color: var(--link); }
.doc-body p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.doc-meta { display: flex; align-items: center; gap: 8px; font-size: .76rem; font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.doc-meta b { padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--link); }
.doc-actions { display: flex; gap: 16px; margin-top: auto; padding-top: 10px; }
.section.alt .doc { background: var(--bg); }

/* Новини */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.post:hover { transform: translateY(-4px); border-color: var(--indigo); box-shadow: 0 22px 40px -24px rgba(79, 70, 229, .55); }
.post-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--indigo)); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.post:hover .post-img img { transform: scale(1.04); }
.post-img.noimg { display: grid; place-items: center; }
.post-img.noimg svg { width: 64px; height: 64px; opacity: .9; }
.post-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 22px 24px; }
.post-body time { font-size: .8rem; font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.post-body h3 { font-size: 1.14rem; margin: 0; line-height: 1.32; }
.post-body h3 a { color: var(--text); text-decoration: none; }
.post-body h3 a::after { content: ""; position: absolute; inset: 0; }
.post { position: relative; }
.post-body h3 a:hover { color: var(--link); }
.post-body p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.post-body .more { margin-top: auto; padding-top: 6px; }

/* Партньори */
.schools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.schools li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .96rem; line-height: 1.45; }
.schools li b { display: block; font-family: var(--font-head); font-weight: 700; }
.schools li span { color: var(--muted); font-size: .88rem; }
.schools li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--indigo), var(--neon)); }
.schools li.host { border-color: var(--indigo); background: var(--accent-soft); }
.section.alt .schools li { background: var(--bg); }
.section.alt .schools li.host { background: var(--accent-soft); }

/* Призив */
.cta { padding: 0 0 92px; }
.cta-box { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 52px 56px; border-radius: 26px; background: linear-gradient(120deg, var(--indigo) 0%, #3B5BEA 55%, #0A9BE0 100%); color: #fff; }
.cta-box::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); z-index: -1; }
.cta-box h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800; margin-bottom: 10px; }
.cta-box p { margin: 0; max-width: 40em; color: rgba(255, 255, 255, .9); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Училище домакин и патрон ---------- */
.host-logo { display: grid; place-items: center; flex: none; width: 52px; height: 52px; padding: 9px; border-radius: 13px; background: #fff; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45); }
.host-logo img { width: 100%; height: 100%; object-fit: contain; }
.host-logo.lg { width: 96px; height: 96px; padding: 16px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.hero-host { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; padding: 10px 20px 10px 10px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; transition: background .18s, border-color .18s; }
.hero-host:hover { background: rgba(255, 255, 255, .12); border-color: var(--neon); }
.hero-host small, .foot-host small { display: block; font-size: .76rem; color: #A9B8CA; letter-spacing: .02em; }
.hero-host b, .foot-host b { display: block; font-family: var(--font-head); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.foot-host { display: flex; align-items: center; gap: 12px; max-width: 34ch; margin-top: 18px; color: #fff !important; }
.foot-host .host-logo { width: 46px; height: 46px; padding: 8px; }
.foot-host b { font-size: .92rem; }
.foot-host:hover b { color: var(--neon); }
.host-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.host-grid > * { min-width: 0; }
.host-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -.022em; }
.host-card p { color: var(--muted); max-width: 46ch; }
.host-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.patron { position: relative; isolation: isolate; overflow: hidden; padding: 40px 40px 36px; border-radius: 24px; background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.patron::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 300px at 100% 0, rgba(79, 70, 229, .6), transparent 62%), radial-gradient(420px 260px at 0 100%, rgba(0, 179, 255, .2), transparent 60%); }
.patron-years { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 179, 255, .14); color: #8FDCFF; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.patron h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.patron-lead { color: #D3DDE9; font-size: 1.04rem; line-height: 1.6; margin-bottom: 22px; }
.patron-facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.patron-facts li { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: .95rem; line-height: 1.45; }
.patron-facts b { font-family: var(--font-head); font-weight: 700; color: var(--neon); white-space: nowrap; }
.patron-facts span { color: #D3DDE9; }
.patron-note { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.5; }
.prose .patron { margin: 1.8em 0; }
.prose .patron h3 { margin-top: 0; }
.prose .patron p, .prose .patron li { max-width: none; }
.prose .patron-facts { padding-left: 0; }
.prose .patron-facts li { margin: 0; }
.schools li.host img { width: 44px; height: 44px; flex: none; padding: 7px; border-radius: 11px; background: #fff; object-fit: contain; }
.schools li.host::before { display: none; }

/* ---------- Вътрешни страници ---------- */
.pagehead { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; padding: 52px 0 56px; }
.pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(720px 360px at 92% -20%, rgba(79, 70, 229, .6), transparent 62%), radial-gradient(520px 300px at 0 120%, rgba(0, 179, 255, .22), transparent 60%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .86rem; color: #A9B8CA; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .55; }
.crumbs a { color: #C9D6E4; text-decoration: none; }
.crumbs a:hover { color: var(--neon); }
.pagehead-row { display: flex; align-items: flex-start; gap: 22px; }
.pagehead .badge-ico { width: 60px; height: 60px; border-radius: 16px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); color: var(--neon); margin-top: 4px; }
.pagehead .badge-ico .ico { width: 30px; height: 30px; }
.pagehead h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; letter-spacing: -.026em; margin: 0; }
.pagehead .lead { max-width: 46em; margin: 14px 0 0; font-size: 1.1rem; line-height: 1.6; color: #C6D2E0; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-block: 56px 84px; }
.layout.single { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.layout > *, .contact-grid > *, .about-grid > *, .hero-grid > *, .split > * { min-width: 0; }
.side { position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 20px; }
.side-box { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.side-box h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; border-left: 3px solid transparent; }
.side-nav a:hover { background: var(--accent-soft); color: var(--link); }
.side-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--link); font-weight: 600; border-left-color: var(--indigo); }
.side-box.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.side-box.dark h2 { color: var(--neon); }
.side-box.dark p { font-size: .93rem; color: #C6D2E0; margin-bottom: 16px; }
.side-box.dark .btn { width: 100%; }
.side-box.msg { background: var(--accent-soft); border-color: transparent; }
.side-box.msg p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.4; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .18s, transform .18s; }
.pager a:hover { border-color: var(--indigo); transform: translateY(-2px); }
.pager small { display: block; margin-bottom: 4px; color: var(--muted); font-size: .78rem; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pager b { font-family: var(--font-head); font-size: 1.02rem; }
.pager .next { text-align: right; grid-column: 2; }

/* ---------- Текстово съдържание (от редактора в админа) ---------- */
.prose { font-size: 1.0625rem; min-width: 0; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose p, .prose li { max-width: 72ch; }
:where(.prose) h2 { font-size: 1.62rem; font-weight: 800; letter-spacing: -.02em; margin: 2.2em 0 .6em; }
:where(.prose) h3 { font-size: 1.22rem; margin: 1.8em 0 .5em; }
:where(.prose) h4 { font-size: 1.04rem; margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--indigo); }
.prose ol li::marker { color: var(--link); font-family: var(--font-head); font-weight: 700; }
.prose strong { font-weight: 650; }
.prose .lead { font-size: 1.2rem; line-height: 1.6; color: var(--text); max-width: 68ch; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: 14px; }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.prose blockquote { margin: 1.8em 0; padding: 22px 26px; border-radius: 0 14px 14px 0; border-left: 4px solid var(--indigo); background: var(--accent-soft); font-family: var(--font-head); font-size: 1.14rem; font-weight: 600; line-height: 1.5; }
.prose blockquote p { margin: 0; max-width: none; }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-size: .88rem; font-weight: 400; font-style: normal; color: var(--muted); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: .14em .4em; border-radius: 6px; background: var(--surface-2); }
.prose pre { margin: 1.6em 0; padding: 20px 22px; border-radius: 14px; background: #131B25; color: #DCE6F2; overflow-x: auto; font-size: .86rem; line-height: 1.6; border: 1px solid #253243; }
.prose pre code { padding: 0; background: none; font-size: inherit; color: inherit; }
.prose .cards, .prose .docs, .prose .schools, .prose .steps, .prose .tools { padding-left: 0; }
.prose .cards li, .prose .docs li, .prose .schools li, .prose .tools li { max-width: none; margin: 0; }
.prose .cards { margin: 1.6em 0; }
.prose .docs { grid-template-columns: repeat(2, 1fr); margin: 1.6em 0; }
.prose .schools { margin: 1.4em 0; }

.table-wrap { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--surface-2); font-family: var(--font-head); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody th { font-family: var(--font-head); font-weight: 700; width: 26%; }
.prose td ul { margin: 0; padding-left: 1.1em; }

/* акцентни блокове */
.callout { margin: 1.8em 0; padding: 22px 24px; border-radius: 14px; background: var(--neon-soft); border: 1px solid color-mix(in srgb, var(--neon) 35%, transparent); }
.callout > *:last-child { margin-bottom: 0; }
.callout h3, .callout h4 { margin-top: 0; font-size: 1.04rem; }
.callout.indigo { background: var(--accent-soft); border-color: color-mix(in srgb, var(--indigo) 30%, transparent); }
.callout.plain { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.callout.note { background: var(--surface-2); border-color: var(--line); font-size: .95rem; color: var(--muted); }

/* номерирани стъпки */
.steps { list-style: none; counter-reset: step; margin: 1.8em 0; display: grid; gap: 14px; }
.steps > li { position: relative; counter-increment: step; margin: 0; max-width: none; padding: 20px 22px 20px 74px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.steps > li::before { content: counter(step); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--indigo), var(--neon)); color: #fff; font-family: var(--font-head); font-weight: 800; }
.steps > li > b:first-child, .steps > li > strong:first-child { display: block; font-family: var(--font-head); font-size: 1.04rem; font-weight: 700; margin-bottom: 4px; }
.steps > li p { margin: 0; color: var(--muted); font-size: .97rem; }
.steps > li > *:last-child { margin-bottom: 0; }

/* етап от пътната карта */
.stage { margin: 1.8em 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.stage-top { display: flex; align-items: center; gap: 18px; padding: 22px 26px; background: var(--navy); color: #fff; }
.stage-num { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--neon); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; flex: none; box-shadow: 0 0 0 5px rgba(0, 179, 255, .14); }
.stage-top h2, .stage-top h3 { margin: 0; font-size: 1.28rem; color: #fff; }
.stage-top div span { display: block; margin-top: 3px; font-size: .82rem; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8FDCFF; }
.stage-body { padding: 24px 26px 26px; }
.stage-body > *:last-child { margin-bottom: 0; }
.stage-body p, .stage-body li { max-width: none; }

/* казус → решение → адаптация */
.case { margin: 2em 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.case-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.case-head .tag { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--link); font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.case-head h2, .case-head h3 { margin: 0; font-size: 1.3rem; }
.case-head p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.case-grid > div { padding: 22px 24px 24px; border-right: 1px solid var(--line); font-size: .95rem; line-height: 1.6; }
.case-grid > div:last-child { border-right: 0; }
.case-grid h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.case-grid h4::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #F59E0B; }
.case-grid > div:nth-child(2) h4::before { background: var(--indigo); }
.case-grid > div:nth-child(3) h4::before { background: var(--neon); }
.case-grid p, .case-grid li { max-width: none; }
.case-grid ul { padding-left: 1.1em; margin: 0; }
.case-grid > div > *:last-child { margin-bottom: 0; }
.case-foot { padding: 14px 26px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .9rem; color: var(--muted); }
.case-foot b { color: var(--text); }

/* инструменти */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 1.6em 0; }
.tool { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tool b { font-family: var(--font-head); font-size: 1.02rem; }
.tool b a { color: var(--text); text-decoration: none; }
.tool b a:hover { color: var(--link); }
.tool b a::after { content: " ↗"; font-size: .8em; color: var(--muted); }
.tool span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.tool em { align-self: flex-start; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: var(--neon-soft); color: var(--neon-text); font-style: normal; font-size: .74rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 1.2em 0; padding: 0; }
.chips li { margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.prose .chips { padding-left: 0; }

/* нива (начинаещи / средно / напреднали) */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.8em 0; }
.level { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid #22C55E; }
.level:nth-child(2) { border-top-color: var(--neon); }
.level:nth-child(3) { border-top-color: var(--indigo); }
.level h3 { margin: 0 0 4px; font-size: 1.1rem; }
.level > small { display: block; margin-bottom: 12px; color: var(--muted); font-size: .86rem; }
.level ul { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.level li { max-width: none; }

/* празно състояние */
.empty { margin: 1.6em 0; padding: 44px 28px; border-radius: 18px; border: 1.5px dashed var(--line); background: var(--surface); text-align: center; }
.empty .badge-ico { margin: 0 auto 16px; }
.empty h3 { margin: 0 0 8px; font-size: 1.2rem; }
.empty p { margin: 0 auto; max-width: 46ch; color: var(--muted); }

/* ---------- Статия ---------- */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 28px; font-size: .9rem; color: var(--muted); }
.article-meta .pill { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--link); font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.article-cover { margin: 0 0 32px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); }
.article-cover img { width: 100%; }
.news-pages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; }
.news-pages a, .news-pages span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 700; }
.news-pages span { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* ---------- Форми ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 8px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: .86rem; font-weight: 700; }
.field label i { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--indigo) 22%, transparent); }
.field .err { display: block; margin-top: 6px; color: #D92D20; font-size: .86rem; font-weight: 500; }
html[data-theme="dark"] .field .err { color: #FF9C93; }
.field.has-err input, .field.has-err textarea { border-color: #D92D20; }
.field label.check { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-family: var(--font-body); font-size: .92rem; font-weight: 400; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--indigo); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-panel { margin-top: 2.2em; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-panel h2 { margin-top: 0; font-size: 1.4rem; }
.form-panel > p { color: var(--muted); }
.alert { margin: 0 0 20px; padding: 16px 20px; border-radius: 12px; font-weight: 500; }
.alert.ok { background: #E7F8EE; border: 1px solid #9FDDB9; color: #0B6B3A; }
.alert.bad { background: #FDECEA; border: 1px solid #F5B5AF; color: #A1281D; }
html[data-theme="dark"] .alert.ok { background: #0F3524; border-color: #1D6B45; color: #9BE7BE; }
html[data-theme="dark"] .alert.bad { background: #43191A; border-color: #7E2D2A; color: #FFB4AC; }

/* Контакти */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; padding-block: 56px 84px; }
.contact-page { padding-block: 56px 84px; }
.contact-page .contact-list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.contact-list { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-list h3 { margin: 0 0 3px; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.contact-list p { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--link); text-decoration: underline; }
.contact-grid .form-panel { margin-top: 0; }

/* 404 */
.notfound { padding: 84px 0 96px; text-align: center; }
.notfound .code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(120deg, var(--indigo), var(--neon)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: 1.8rem; margin: 14px 0 10px; }
.notfound p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.notfound-links a { display: block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 500; font-size: .94rem; }
.notfound-links a:hover { border-color: var(--indigo); color: var(--link); }

/* ---------- Долна част ---------- */
.site-foot { background: var(--navy-deep); color: #B5C2D2; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px 32px; padding-block: 64px 48px; }
.site-foot .brand { color: #fff; margin-bottom: 18px; }
.site-foot .brand-text small { color: #9FB0C3; }
.foot-about p { max-width: 32ch; margin-bottom: 14px; line-height: 1.6; }
.foot-about .slogan { color: #fff; font-family: var(--font-head); font-weight: 700; }
.site-foot h2 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot a { color: #B5C2D2; text-decoration: none; }
.site-foot a:hover { color: var(--neon); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .09); }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; font-size: .85rem; color: #8FA0B4; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--indigo); color: #fff; cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Галерия в прозорец ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px; background: rgba(10, 15, 21, .93); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; max-height: 100%; }
.lightbox img { max-width: min(100%, 1500px); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: #1E2A38; }
.lightbox figcaption { color: #C6D2E0; font-size: .9rem; text-align: center; }
.lightbox button { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s; }
.lightbox button:hover { background: var(--indigo); border-color: var(--indigo); }
.lightbox button[hidden] { display: none; }
.lightbox .lb-x { position: absolute; top: 16px; right: 16px; z-index: 1; }
.mosaic a, .gallery a { cursor: zoom-in; }
body.lb-open { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox { padding: 10px; }
  .lightbox .lb-nav { position: absolute; bottom: 14px; z-index: 1; }
  .lightbox .lb-prev { left: 14px; }
  .lightbox .lb-next { right: 14px; }
  .lightbox img { max-height: calc(100dvh - 150px); }
}

/* плавно появяване при скролиране */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Адаптивност ---------- */
@media (max-width: 1140px) {
  .brand-text small { display: none; }
  .cards.c5 { grid-template-columns: repeat(3, 1fr); }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-about { grid-column: 1 / -1; }
  .hero-chip.c1 { left: 14px; }
  .hero-chip.c2 { right: 14px; }
  .head-tools .btn { display: none; }
}
@media (max-width: 980px) {
  :root { --head-h: 64px; }
  .site-head { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--head-h) 0 0 0; margin: 0; padding: 16px 20px 40px; overflow-y: auto; background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-item { flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
  .nav-link { flex: 1; padding: 15px 18px; font-size: 1.05rem; }
  .nav-item.is-active > .nav-link::after { display: none; }
  .nav-caret { width: 52px; height: 52px; }
  .nav-caret svg { width: 18px; height: 18px; }
  .nav-sub { position: static; display: none; width: 100%; min-width: 0; padding: 0 10px 10px; border: 0; border-radius: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav-sub::before { display: none; }
  .nav-item:hover > .nav-sub, .nav-item:focus-within > .nav-sub { display: none; }
  .nav-item.is-open > .nav-sub { display: block; }
  .nav-item:hover .nav-caret svg { transform: none; }
  .nav-item.is-open .nav-caret svg { transform: rotate(180deg); }
  .nav-sub a { padding: 11px 12px; font-size: 1rem; }
  .nav-cta { display: flex; margin-top: 16px; width: 100%; }
  .head-tools { margin-left: auto; }
  body.nav-open { overflow: hidden; }

  .hero { padding: 52px 0 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .quick-grid { grid-template-columns: 1fr; gap: 14px; }
  .quick-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; padding: 20px; }
  .quick-card .tag { display: none; }
  .quick-card h3 { flex: 1; }
  .quick-card p, .quick-card .more { flex-basis: 100%; }
  .section { padding: 68px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .host-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .section-head { position: static; }
  .stages { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .stages::before { display: none; }
  .cards, .cards.c4, .cards.c5 { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px 64px; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
  .side-box.nav-box { grid-column: 1 / -1; }
  .case-grid { grid-template-columns: 1fr; }
  .case-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-grid > div:last-child { border-bottom: 0; }
  .levels { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); padding-block: 40px 64px; }
  .cta-box { grid-template-columns: 1fr; padding: 40px 32px; }
  .mosaic { grid-auto-rows: 100px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .hero h1 b { display: inline; }
  .hero-host { display: flex; margin-top: 28px; }
  .patron { padding: 28px 22px; border-radius: 20px; }
  .patron-facts li { grid-template-columns: 1fr; gap: 2px; }
  .hero-chip.c2 { display: none; }
  .hero-chip.c1 { left: 12px; bottom: 12px; padding: 10px 12px; }
  .hero-actions .btn { width: 100%; }
  .stats { gap: 12px; }
  .stat { padding: 20px 18px; }
  .stat b { font-size: 2.2rem; }
  .stages { grid-template-columns: 1fr; }
  .cards, .cards.c2, .cards.c4, .cards.c5, .docs, .prose .docs, .posts, .schools, .tools, .contact-page .contact-list { grid-template-columns: 1fr; }
  .contact-page { padding-block: 40px 64px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .mosaic a:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .mosaic a:nth-child(6) { display: none; }
  .row { padding: 16px; gap: 14px; }
  .row > .ico { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .side { grid-template-columns: 1fr; }
  .pagehead { padding: 36px 0 40px; }
  .pagehead-row { gap: 14px; }
  .pagehead .badge-ico { width: 48px; height: 48px; border-radius: 13px; }
  .pagehead .badge-ico .ico { width: 24px; height: 24px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; text-align: left; }
  .form { grid-template-columns: 1fr; }
  .form-panel { padding: 22px 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; padding-block: 48px 36px; }
  .steps > li { padding: 66px 18px 18px; }
  .stage-top { padding: 18px; }
  .stage-body { padding: 20px 18px; }
  .prose th, .prose td { padding: 12px 14px; }
  .cta { padding-bottom: 64px; }
  .cta-box { padding: 32px 22px; border-radius: 20px; }
  .cta-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-head, .site-foot, .side, .to-top, .cta, .pager, .hero-actions, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .pagehead, .hero, .band { background: none !important; color: #000 !important; padding: 0 0 16px; }
  .pagehead::before, .hero::before, .hero::after, .band::before { display: none; }
  .pagehead .lead, .crumbs a { color: #333; }
  .layout { display: block; padding: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
