/* ==========================================================================
   ELSES — учебный и экспертный центр (ТОО «ЭЛСЕС КОМПАНИ»), Атырау
   Версия 2: та же структура макета, более выразительное оформление
   ========================================================================== */

:root {
  --blue: #1A56DB;
  --blue-400: #3B7BF5;
  --blue-600: #1547BE;
  --blue-50: #EEF3FE;
  --blue-100: #DCE6FD;
  --navy: #0B1A3A;
  --navy-800: #0F2350;
  --ink: #0B1630;
  --text: #2E3A55;
  --muted: #64748B;
  --line: #E2E8F2;
  --tint: #F3F6FC;
  --yellow: #F5B82E;
  --green: #22C55E;
  --danger: #D93036;

  --grad: linear-gradient(135deg, #1A56DB 0%, #3B7BF5 100%);
  --shadow-sm: 0 1px 2px rgba(11, 22, 48, .05), 0 4px 12px rgba(11, 22, 48, .04);
  --shadow: 0 16px 40px rgba(20, 45, 100, .10);
  --shadow-lg: 0 30px 70px -20px rgba(14, 42, 110, .35);

  --container: 1200px;
  --header-h: 78px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(26, 86, 219, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 14px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s, color .2s, filter .2s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -6px rgba(26, 86, 219, .55); }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 34px -8px rgba(26, 86, 219, .6); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { opacity: .7; cursor: progress; transform: none; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: #BFCDEA; transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); }
.btn--glass:hover .ic { transform: none; }
.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; border-radius: 12px; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--navy); color: #C3CDE3; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; }
.topbar__left { display: flex; align-items: center; gap: 26px; min-width: 0; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: color .2s; }
.topbar__item .ic { width: 15px; height: 15px; opacity: .65; }
a.topbar__item:hover { color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.lang__btn { padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #9DADCE; transition: background-color .2s, color .2s; }
.lang__btn:hover { color: #fff; }
.lang__btn.is-active { background: #fff; color: var(--navy); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(11, 22, 48, .06); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 8px 18px -4px rgba(26, 86, 219, .55); }
.logo__mark svg { width: 22px; height: 22px; fill: #fff; }
.logo__text b { display: block; font-size: 21px; font-weight: 800; line-height: 1; letter-spacing: .03em; color: var(--ink); }
.logo__text small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.2; color: var(--muted); }
.logo--light .logo__text b { color: #fff; }
.logo--light .logo__text small { color: #8C9BBB; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { position: relative; padding: 6px 0; font-size: 15px; font-weight: 600; color: var(--ink); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .25s; }
.nav a:hover, .nav a.is-active { color: var(--blue); }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }
.header__phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; padding-left: 22px; border-left: 1px solid var(--line); }
.header__phone b { font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.header__phone small { margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.header__phone:hover b { color: var(--blue); }

.burger { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s, top .25s; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }
.mnav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 8px 0 28px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(11, 22, 48, .12); }
.mnav.is-open { display: block; animation: fadeDown .25s ease; }
.mnav__link { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; color: var(--ink); }
.mnav__foot { display: grid; gap: 14px; margin-top: 22px; }
.mnav__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.mnav__phone .ic { color: var(--blue); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; overflow: hidden; padding: 76px 0 104px;
  background:
    radial-gradient(900px 540px at 90% -10%, rgba(59, 123, 245, .22), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(245, 184, 46, .14), transparent 60%),
    linear-gradient(180deg, #F0F5FF 0%, #FFFFFF 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(26, 86, 219, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 86, 219, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.02fr; gap: 64px; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 16px 5px 5px; border: 1px solid #DCE5F7; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--text); }
.badge__pill { flex: none; padding: 4px 11px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; }
.hero__title { margin: 26px 0 22px; font-size: clamp(36px, 4.7vw, 62px); line-height: 1.04; letter-spacing: -.035em; }
.accent {
  color: var(--blue); padding: 0 .04em;
  background: linear-gradient(180deg, transparent 66%, rgba(245, 184, 46, .5) 66%, rgba(245, 184, 46, .5) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__lead { max-width: 540px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.hero__trust .ic { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: rgba(34, 197, 94, .14); color: #16A34A; stroke-width: 3; }

.stats { display: flex; flex-wrap: wrap; margin-top: 40px; }
.stat { padding: 0 32px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid #D9E2F2; }
.stat dt { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.stat dd { margin-top: 6px; font-size: 13px; color: var(--muted); }

.hero__visual { position: relative; perspective: 1200px; }
.hero__visual::before { content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 40px; background: var(--grad); opacity: .18; filter: blur(40px); }
.hero__card {
  position: relative; overflow: hidden; aspect-ratio: 560 / 460; border-radius: 32px;
  background: #E3ECFF;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .8);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out;
}
.hero__art { width: 100%; height: 100%; }

.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; max-width: 290px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 20px 40px -10px rgba(14, 42, 110, .3);
  line-height: 1.3;
}
.chip b { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.chip small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.chip__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #fff; }
.chip__icon--green { background: linear-gradient(135deg, #22C55E, #16A34A); }
.chip__icon--green .ic { stroke-width: 2.8; }
.chip__icon--yellow { background: linear-gradient(135deg, #FFD25E, #F0A70F); color: #6B4A00; }
.chip--tl { top: 30px; left: -36px; animation: float 6s ease-in-out infinite; }
.chip--tr { top: -24px; right: 32px; animation: float 6s ease-in-out -2s infinite; }
.chip--br { right: -30px; bottom: 32px; animation: float 6s ease-in-out -4s infinite; }

/* ---------- Бегущая лента ---------- */
.ticker { position: relative; overflow: hidden; padding: 20px 0; background: linear-gradient(90deg, #1547BE, #1A56DB 40%, #3B7BF5); color: #fff; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 80px; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, #1547BE, transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, #3B7BF5, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker__group span { font-size: 18px; font-weight: 700; white-space: nowrap; letter-spacing: -.01em; }
.ticker .ic { width: 20px; height: 20px; fill: var(--yellow); stroke: none; }

/* ---------- Секции ---------- */
.section { padding: 110px 0; scroll-margin-top: calc(var(--header-h) - 8px); }
.section--tint { background: var(--tint); }
.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px; background: var(--blue-50); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.eyebrow--light { background: rgba(127, 166, 255, .14); color: #9CBBFF; }
.section__title { font-size: clamp(30px, 3.5vw, 46px); }
.section__sub { margin-top: 16px; font-size: 17px; color: var(--muted); }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: stretch; }
.services__tabs { display: flex; flex-direction: column; gap: 8px; }
.stab { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: background .25s, border-color .25s, box-shadow .25s, transform .25s; }
.stab:hover { border-color: #C3D2EE; transform: translateX(3px); }
.stab.is-active { background: var(--grad); border-color: transparent; box-shadow: 0 16px 32px -10px rgba(26, 86, 219, .55); transform: none; }
.stab__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--blue-50); color: var(--blue); transition: background-color .25s, color .25s; }
.stab.is-active .stab__icon { background: #fff; color: var(--blue); }
.stab__text { min-width: 0; }
.stab b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--ink); transition: color .25s; }
.stab small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); transition: color .25s; }
.stab.is-active b { color: #fff; }
.stab.is-active small { color: rgba(255, 255, 255, .78); }

.services__panels { position: relative; overflow: hidden; padding: 44px; border-radius: 28px; background: linear-gradient(160deg, #F6F9FF 0%, #E9F0FE 100%); border: 1px solid #DFE7F7; }
.spanel { position: relative; display: none; grid-template-columns: 1fr 290px; gap: 36px; align-items: start; }
.spanel.is-active { display: grid; animation: fadeUp .4s ease; }
.spanel__bg { position: absolute; right: 250px; bottom: -120px; width: 300px; height: 300px; fill: none; stroke: var(--blue); stroke-width: .5; opacity: .08; pointer-events: none; }
.spanel h3 { margin-bottom: 14px; font-size: 32px; }
.spanel__main { position: relative; }
.spanel__main > p { max-width: 480px; font-size: 16.5px; color: var(--muted); }
.checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); font-size: 15px; font-weight: 600; color: var(--ink); }
.checks__ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--grad); color: #fff; }
.checks__ic .ic { width: 14px; height: 14px; stroke-width: 3; }
.spanel__side { position: relative; padding: 24px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.kv { margin-bottom: 22px; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv > div:first-child { padding-top: 2px; }
.kv dt { flex: none; color: var(--muted); white-space: nowrap; }
.kv dd { font-weight: 700; color: var(--ink); text-align: right; }

/* ---------- Преимущества (тёмный блок) ---------- */
.section--dark {
  position: relative; overflow: hidden; color: #B8C4DE;
  background:
    radial-gradient(800px 420px at 10% 0%, rgba(59, 123, 245, .35), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, rgba(26, 86, 219, .3), transparent 60%),
    var(--navy);
}
.section--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.section--dark .section__title { color: #fff; }
.about { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about__lead { max-width: 440px; margin: 20px 0 32px; font-size: 17px; line-height: 1.65; }
.adv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.adv__card { padding: 28px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .1); transition: transform .3s, border-color .3s, background .3s; }
.adv__card:nth-child(even) { margin-top: 32px; }
.adv__card:hover { transform: translateY(-5px); border-color: rgba(127, 166, 255, .45); background: rgba(255, 255, 255, .1); }
.adv__icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: 0 12px 26px -6px rgba(26, 86, 219, .7); }
.adv__icon .ic { width: 24px; height: 24px; }
.adv__card h3 { margin-bottom: 8px; font-size: 19px; color: #fff; }
.adv__card p { font-size: 14.5px; color: #A9B6D3; }

/* ---------- Программы ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -20px 0 40px; }
.filter { height: 42px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--text); transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.filter:hover { border-color: #BFCDEA; }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 10px 22px -8px rgba(11, 26, 58, .6); }

.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: transform .3s, box-shadow .3s, border-color .3s; }
.pcard:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
.pcard.is-hidden { display: none; }
.pcard.pop { animation: fadeUp .35s ease both; }
.pcard__media { position: relative; height: 170px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0B1A3A 0%, #17398C 100%); }
.pcard__media--blue { background: linear-gradient(135deg, #1547BE 0%, #3B7BF5 100%); }
.pcard__media::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 90%); mask-image: linear-gradient(90deg, transparent 10%, #000 90%); }
.pcard__media::after { content: ""; position: absolute; right: -30px; top: -50px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); }
.pcard__code { position: absolute; top: 18px; left: 18px; z-index: 1; min-width: 42px; height: 34px; padding: 0 11px; display: grid; place-items: center; border-radius: 999px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 800; }
.pcard__art { position: absolute; right: 22px; top: 50%; z-index: 1; width: 120px; height: 120px; fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); filter: drop-shadow(0 0 12px rgba(127, 166, 255, .6)); transition: transform .45s ease, stroke .45s; }
.pcard:hover .pcard__art { transform: translateY(-50%) scale(1.08) rotate(-5deg); stroke: rgba(255, 255, 255, .75); }
.pcard__doc { position: absolute; left: 18px; bottom: 16px; z-index: 1; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2); font-size: 12px; font-weight: 700; }
.pcard__body { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 22px; }
.pcard__body h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.3; }
.pcard__body p { margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.pcard__aud { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 13px; font-weight: 700; color: var(--ink); }
.pcard__aud .ic { width: 16px; height: 16px; color: var(--blue); }
.pcard__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 800; color: var(--blue); }
.pcard__go .ic { width: 18px; height: 18px; transition: transform .25s; }
.pcard:hover .pcard__go .ic { transform: translateX(5px); }

/* ---------- Этапы ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.steps::before { content: ""; position: absolute; top: 56px; left: 6%; right: 6%; height: 2px; background: repeating-linear-gradient(90deg, #A9C1F5 0 10px, transparent 10px 18px); }
.step { position: relative; padding: 26px 22px 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.step__num { display: inline-block; margin-bottom: 18px; font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.6px var(--blue); background: #fff; padding-right: 6px; transition: color .3s; }
.step:hover .step__num { color: var(--blue); }
.step h3 { margin-bottom: 8px; font-size: 17px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Контакты и форма ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: #fff; box-shadow: var(--shadow-lg); }
.contact__info {
  position: relative; overflow: hidden; padding: 56px 48px; color: #DCE6FF;
  background: radial-gradient(500px 300px at 0% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(160deg, #2463EE 0%, #1547BE 100%);
}
.contact__info h2 { position: relative; z-index: 1; margin-bottom: 16px; font-size: clamp(28px, 2.8vw, 38px); color: #fff; }
.contact__info > p { position: relative; z-index: 1; max-width: 420px; font-size: 15.5px; color: rgba(255, 255, 255, .82); }
.clist { position: relative; z-index: 1; display: grid; gap: 20px; margin: 38px 0 32px; }
.clist__item { display: flex; align-items: flex-start; gap: 14px; }
.clist__ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); color: #fff; transition: background-color .2s; }
.clist__item:hover .clist__ic { background: rgba(255, 255, 255, .26); }
.clist b { display: block; font-size: 15.5px; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.clist small { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, .68); }
.contact__info .btn--glass { position: relative; z-index: 1; }
.contact__deco { position: absolute; right: -40px; bottom: -50px; width: 300px; height: 300px; fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: .35; stroke-linejoin: round; }

.contact__form { padding: 48px; }
.form h3, .form-ok h3 { font-size: 24px; }
.form__sub { margin: 6px 0 28px; font-size: 14px; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field__label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; outline: none; background: #F8FAFE;
  font: inherit; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { height: auto; min-height: 100px; padding: 14px 16px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9AA7BD; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(26, 86, 219, .12); }
.field.is-invalid input { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }
.field__err { display: none; margin-top: 6px; font-size: 12.5px; color: var(--danger); }
.field.is-invalid .field__err { display: block; }
.select { position: relative; display: block; }
.select select { padding-right: 44px; cursor: pointer; }
.select .ic { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.form__submit { margin-top: 4px; }
.form__status { margin-top: 12px; font-size: 13.5px; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-error { padding: 12px 14px; border-radius: 12px; background: #FFF1F1; color: #B42318; text-align: left; }
.form__status a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.form__note { margin-top: 14px; font-size: 12.5px; text-align: center; color: var(--muted); }
.form__note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-ok { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 100%; padding: 40px 0; text-align: center; }
.form-ok__icon { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 50%; background: #E7F8EE; color: #16A34A; animation: pop .4s ease; }
.form-ok__icon .ic { width: 30px; height: 30px; stroke-width: 2.6; }
.form-ok p { max-width: 320px; color: var(--muted); }
.form-ok .btn { margin-top: 10px; }

/* ---------- Подвал ---------- */
.footer { padding-top: 68px; background: var(--navy); color: #9DABC8; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; }
.footer__brand p { max-width: 330px; margin-top: 18px; line-height: 1.65; }
.footer h4 { margin-bottom: 18px; font-size: 15px; font-weight: 700; letter-spacing: 0; color: #fff; }
.footer ul { display: grid; gap: 11px; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11, 26, 58, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .2s ease; }
.modal__box { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 36px 36px 32px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); animation: fadeUp .25s ease; }
.modal__box h3 { margin-bottom: 16px; padding-right: 40px; font-size: 22px; }
.modal__body p { margin-bottom: 12px; font-size: 14.5px; color: var(--text); }
.modal__body a { color: var(--blue); text-decoration: underline; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 10px; font-size: 26px; line-height: 1; color: var(--muted); transition: background-color .2s, color .2s; }
.modal__close:hover { background: var(--tint); color: var(--ink); }

/* ---------- Анимации ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1240px) {
  .header__phone { display: none; }
}

@media (max-width: 1160px) {
  .nav { gap: 22px; }
  .header__inner { gap: 24px; }
  .hero__inner { gap: 48px; }
  .services { grid-template-columns: 290px 1fr; }
  .spanel { grid-template-columns: 1fr; gap: 28px; }
  .spanel__bg { right: -40px; }
  .spanel__side { max-width: 420px; }
  .about { grid-template-columns: 1fr; gap: 44px; }
  .about__lead { max-width: 620px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .topbar__hours { display: none; }

  .hero { padding: 48px 0 80px; }
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { width: 100%; max-width: 620px; margin: 0 auto; }
  .chip--tl { left: -12px; }
  .chip--br { right: -12px; }
  .chip--tr { right: 16px; }

  .section { padding: 84px 0; }
  .services { grid-template-columns: 1fr; gap: 16px; }
  .services__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .services__panels { padding: 32px; }
  .spanel { grid-template-columns: 1fr 280px; }
  .spanel__side { max-width: none; }

  .programs { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .services__tabs { grid-template-columns: repeat(2, 1fr); }
  .spanel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .adv__card:nth-child(even) { margin-top: 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar__mail { display: none; }
  .header__inner { gap: 12px; }
  .logo__text small { font-size: 10px; }

  .hero { padding: 36px 0 64px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__trust { gap: 8px 16px; }
  .hero__trust li { font-size: 13px; }
  .stats { margin-top: 32px; }
  .stat { padding: 0 18px; }
  .stat dt { font-size: 26px; }
  .stat dd { font-size: 12px; }
  .hero__inner { gap: 70px; }
  .hero__card { border-radius: 24px; }
  .chip { padding: 9px 12px 9px 9px; gap: 10px; border-radius: 13px; }
  .chip b { font-size: 12.5px; }
  .chip small { font-size: 11px; }
  .chip__icon { width: 32px; height: 32px; border-radius: 9px; }
  .chip__icon .ic { width: 17px; height: 17px; }
  .chip--tl { top: -26px; left: 8px; }
  .chip--tr { display: none; }
  .chip--br { right: 8px; bottom: -26px; }

  .ticker { padding: 14px 0; }
  .ticker__group { gap: 18px; padding-right: 18px; }
  .ticker__group span { font-size: 15px; }
  .ticker .ic { width: 16px; height: 16px; }

  .section { padding: 68px 0; }
  .section__head { margin-bottom: 36px; }
  .section__sub { font-size: 15px; }

  .services__tabs { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .services__tabs::-webkit-scrollbar { display: none; }
  .stab { flex: none; width: auto; padding: 8px 14px 8px 8px; gap: 10px; border-radius: 14px; scroll-snap-align: start; }
  .stab:hover { transform: none; }
  .stab__icon { width: 32px; height: 32px; border-radius: 9px; }
  .stab__icon .ic { width: 17px; height: 17px; }
  .stab b { font-size: 14px; white-space: nowrap; }
  .stab small { display: none; }
  .services__panels { padding: 24px 16px; border-radius: 22px; }
  .spanel h3 { font-size: 25px; }
  .checks li { padding: 10px 12px; font-size: 14px; }

  .adv { grid-template-columns: 1fr; gap: 12px; }
  .adv__card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .adv__icon { grid-row: span 2; margin-bottom: 0; }
  .adv__card h3 { align-self: end; margin-bottom: 4px; font-size: 17px; }

  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: -8px -16px 28px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .programs { grid-template-columns: 1fr; gap: 16px; }
  .pcard__media { height: 140px; }

  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { display: grid; grid-template-columns: 70px 1fr; column-gap: 12px; padding: 20px; }
  .step__num { grid-row: span 2; margin: 0; font-size: 40px; }
  .step h3 { align-self: end; }

  .contact { border-radius: 24px; }
  .contact__info { padding: 36px 22px; }
  .contact__form { padding: 32px 20px 28px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }

  .footer { padding-top: 48px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 36px; }
  .footer__bottom { flex-direction: column; }
  .modal__box { padding: 28px 22px 24px; }
}

@media (max-width: 380px) {
  .logo__text small { display: none; }
  .hero__title { font-size: 32px; }
  .badge { font-size: 12px; }
  .stat { padding: 0 12px; }
}
