/* ============ Мобильная Вселенная — стили ============ */
:root {
  --space: #060a1c;        /* фон */
  --space-2: #0d1533;      /* поверхности */
  --space-3: #141d45;      /* поверхности, светлее */
  --nebula: #3a2a7a;       /* фиолетовый для градиентов */
  --ion: #7fb2ff;          /* голубой акцент */
  --star: #f4efe1;         /* тёплый светлый текст */
  --sun: #ffc46b;          /* золото, кнопки */
  --mars: #e8735a;         /* тёплый акцент */
  --muted: #a9b1c9;        /* второстепенный текст */
  --line: rgba(127, 178, 255, .22);

  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--space); color: var(--star);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--ion); text-decoration: none; }
a:hover { color: #a9caff; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 500; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #d8dcea; max-width: 60ch; }
.wrap { width: min(var(--wrap), 100% - var(--pad) * 2); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* фон со звёздами */
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
main, .footer, .nav { position: relative; z-index: 1; }

/* ============ кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font: 500 16px/1 var(--body); letter-spacing: .01em; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn--sun { background: var(--sun); color: #2a1a05; box-shadow: 0 10px 40px -10px rgba(255, 196, 107, .55); }
.btn--sun:hover { background: #ffd28a; color: #2a1a05; transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(255, 196, 107, .7); }
.btn--ghost { color: var(--star); border-color: rgba(244, 239, 225, .35); background: rgba(6, 10, 28, .25); backdrop-filter: blur(6px); }
.btn--ghost:hover { color: #fff; border-color: rgba(244, 239, 225, .8); }
.btn--line { color: var(--ion); border-color: var(--line); min-height: 48px; padding: 0 22px; }
.btn--line:hover { border-color: var(--ion); color: #fff; background: rgba(127, 178, 255, .1); }
.btn:active { transform: translateY(0) scale(.98); }

/* ============ навигация ============ */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background-color .4s, backdrop-filter .4s, box-shadow .4s; }
.nav__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.nav.scrolled { background: rgba(6, 10, 28, .72); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 12px; color: var(--star); margin-right: auto; }
/* эмблема заказчика (круглая, PNG/WebP с прозрачным фоном) */
.logo__mark { display: block; width: 56px; height: 56px; flex: none; }
.logo__mark img { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 196, 107, .35), 0 6px 22px -8px rgba(127, 178, 255, .6); }
.logo__text { font-family: var(--display); font-weight: 600; font-size: 13px; line-height: 1.1; letter-spacing: .02em; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: rgba(244, 239, 225, .85); font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__phone { font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--star); white-space: nowrap; padding: 10px 16px; border: 1.5px solid rgba(244, 239, 225, .3); border-radius: 999px; transition: border-color .25s, background-color .25s; }
.nav__phone:hover { border-color: var(--sun); color: var(--sun); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 8px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; background: var(--star); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ первый экран ============ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--space) url("../assets/video/poster-1080.jpg") center/cover no-repeat; }
.hero__video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero.video-on .hero__video { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 28, .55) 0%, rgba(6, 10, 28, 0) 28%, rgba(6, 10, 28, 0) 55%, rgba(6, 10, 28, .92) 100%),
    linear-gradient(90deg, rgba(6, 10, 28, .7) 0%, rgba(6, 10, 28, .25) 45%, rgba(6, 10, 28, 0) 70%);
}
.hero__in { padding-top: 140px; padding-bottom: 48px; }
.hero__title {
  font-size: clamp(38px, 7.2vw, 96px); font-weight: 700; line-height: .98; letter-spacing: -.025em; margin: 0 0 28px; max-width: 12ch;
  text-shadow: 0 6px 40px rgba(6, 10, 28, .6);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; color: var(--sun); }
@keyframes rise { to { transform: translateY(0); } }
.hero__lead { max-width: 56ch; font-size: clamp(17px, 1.6vw, 21px); color: #e6e9f3; margin-bottom: 34px; opacity: 0; animation: fade 1s ease .55s forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fade 1s ease .75s forwards; }
@keyframes fade { to { opacity: 1; } }
.hero__facts {
  list-style: none; margin: 0 auto; padding: 26px 0 40px; display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(244, 239, 225, .18); opacity: 0; animation: fade 1s ease 1s forwards;
}
.hero__facts li { display: flex; flex-direction: column; gap: 4px; padding-right: 20px; }
.hero__facts li + li { border-left: 1px solid rgba(244, 239, 225, .14); padding-left: 22px; }
.hero__facts b { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); color: var(--star); }
.hero__facts span { font-size: 14px; color: var(--muted); }
.hero__scroll { position: absolute; right: var(--pad); bottom: 44px; width: 28px; height: 46px; border: 1.5px solid rgba(244, 239, 225, .4); border-radius: 16px; display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sun); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(18px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@media (min-width: 1100px) { .hero__scroll { display: block; } }

/* ============ секции ============ */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section__head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { color: var(--muted); font-size: 18px; }

/* появление блоков при прокрутке (только если работает JS — иначе всё видно сразу) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- о планетарии ---- */
.about { background: linear-gradient(180deg, var(--space) 0%, #080d26 100%); }
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: #dfe3ee; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0, var(--sun) 40%, rgba(255, 196, 107, 0) 75%); box-shadow: 0 0 14px rgba(255, 196, 107, .6); }
.dome { margin: 0; }
.dome__svg { width: 100%; height: auto; overflow: visible; font-family: var(--body); }
.dome__svg text { font-size: 18px; font-weight: 500; }
.dome__svg text.small { font-size: 14px; font-weight: 400; opacity: .7; }
.dome__dim text { font-family: var(--display); font-size: 16px; font-weight: 500; stroke: none; }
.dome figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; text-align: center; }
.dome__shell { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.in .dome__shell { animation: draw 2.2s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dome__beam { transform-origin: 320px 340px; animation: sweep 9s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.dome__stars circle { fill: #fff; animation: twinkle 3.2s ease-in-out infinite; }
.dome__stars circle:nth-child(3n) { animation-delay: -1.1s; } .dome__stars circle:nth-child(3n+1) { animation-delay: -2.3s; }
.dome__stars circle:nth-child(4n) { animation-duration: 4.4s; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.dome__planet { transform-origin: 420px 150px; animation: floaty 12s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, 8px); } }
.dome__dim, .dome__note { opacity: 0; transition: opacity .8s ease 1.6s; }
.in .dome__dim, .in .dome__note { opacity: 1; }

/* ---- форматы ---- */
.formats { background: #080d26; }
/* линия на всю ширину секции; раньше была 140vw и растягивала мобильную страницу за экран */
.formats::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.formats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard {
  display: flex; flex-direction: column; gap: 10px; padding: 34px 30px 30px; border-radius: var(--r);
  background: linear-gradient(160deg, rgba(20, 29, 69, .9), rgba(13, 21, 51, .9)); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s;
}
.fcard:hover { transform: translateY(-6px); border-color: rgba(127, 178, 255, .5); }
.fcard p { color: #d3d8e6; font-size: 16px; }
.fcard .btn { margin-top: auto; align-self: flex-start; }
.fcard__price { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; color: var(--sun); margin: 6px 0 12px; line-height: 1.1; }
.fcard__price small { display: block; font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 6px; }
.fcard--accent { background: linear-gradient(160deg, #2a2160 0%, #171c4a 60%, #0f1740 100%); border-color: rgba(255, 196, 107, .35); box-shadow: 0 30px 80px -40px rgba(58, 42, 122, .9); }

/* ---- программы ---- */
.programs { background: linear-gradient(180deg, #080d26, var(--space)); }
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tabs__list button {
  font: 500 15px/1 var(--body); color: var(--star); background: rgba(13, 21, 51, .8); border: 1px solid var(--line);
  border-radius: 999px; padding: 13px 20px; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s;
}
.tabs__list button:hover { border-color: var(--ion); }
.tabs__panel { animation: panel .45s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tabs__intro { color: var(--muted); max-width: 70ch; margin-bottom: 20px; }
.plist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 22px; }
.plist li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(127, 178, 255, .12); font-size: 16px; }
.plist li::after { content: ""; flex: 1; order: 1; border-bottom: 1px dotted rgba(169, 177, 201, .35); transform: translateY(-4px); }
.plist b { order: 2; font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--ion); white-space: nowrap; }
.plist b::after { content: " мин"; font-family: var(--body); font-weight: 400; color: var(--muted); }
.programs__note { margin-top: 34px; color: #d3d8e6; max-width: 70ch; padding: 20px 24px; border-left: 3px solid var(--sun); background: rgba(13, 21, 51, .6); border-radius: 0 14px 14px 0; }

/* ---- как проходит ---- */
.how { background: var(--space); }
.how__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 6px; }
.steps li { position: relative; padding: 18px 0 18px 74px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 14px; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--sun);
  border: 1.5px solid rgba(255, 196, 107, .5); background: rgba(13, 21, 51, .8);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 24.5px; top: 68px; bottom: -10px; width: 1px; background: linear-gradient(180deg, rgba(255, 196, 107, .5), rgba(255, 196, 107, .08)); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: #d3d8e6; }
.need { padding: 32px 30px; border-radius: var(--r); background: linear-gradient(160deg, rgba(20, 29, 69, .9), rgba(13, 21, 51, .9)); border: 1px solid var(--line); position: sticky; top: 100px; }
.need h3 { margin-bottom: 18px; }
.need ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.need li { display: grid; gap: 2px; padding-left: 30px; position: relative; }
.need li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ion); }
.need li b { font-weight: 600; }
.need li span { color: var(--muted); font-size: 15px; }
.quote { margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.quote p { font-size: 17px; line-height: 1.5; color: #e2e5ef; margin-bottom: 10px; }
.quote footer { color: var(--muted); font-size: 14px; }

/* ---- контакты ---- */
.contact { background: radial-gradient(120% 90% at 100% 100%, #241c58 0%, rgba(36, 28, 88, 0) 55%), var(--space); overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; position: relative; }
.contacts { display: grid; gap: 10px; margin-top: 30px; }
.contacts__item { display: grid; gap: 2px; padding: 16px 20px; border-radius: 16px; background: rgba(13, 21, 51, .65); border: 1px solid var(--line); color: var(--star); transition: border-color .25s, transform .4s var(--ease); }
a.contacts__item:hover { border-color: var(--sun); transform: translateX(4px); color: var(--star); }
.contacts__item span { font-size: 13px; color: var(--muted); }
.contacts__item b { font-family: var(--display); font-weight: 500; font-size: 17px; }
.form { display: grid; gap: 16px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: rgba(13, 21, 51, .8); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 16px/1.3 var(--body); color: var(--star); background: rgba(6, 10, 28, .7); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; transition: border-color .25s, box-shadow .25s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ion) 50%), linear-gradient(135deg, var(--ion) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form option { color: #111; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 196, 107, .18); }
.form input.invalid { border-color: var(--mars); }
.form textarea { resize: vertical; min-height: 96px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form__hint { margin: 0; color: var(--muted); font-size: 14px; }
.form__hint.ok { color: var(--sun); }

/* декоративная планета */
.planet { position: absolute; border-radius: 50%; pointer-events: none; }
.planet--ringed {
  right: -140px; bottom: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle at 35% 30%, #e9d9b8 0%, #c9ab7c 35%, #6b5238 70%, #2a1e18 100%);
  box-shadow: inset -30px -20px 60px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 196, 107, .12);
  animation: planetFloat 16s ease-in-out infinite;
}
.planet--ringed::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 175%; height: 22%; transform: translate(-50%, -50%) rotate(-18deg);
  border-radius: 50%; border: 14px solid rgba(233, 217, 184, .45); box-shadow: 0 0 0 10px rgba(233, 217, 184, .12);
}
@keyframes planetFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(2deg); } }

/* ---- космическая подсветка при наведении ----
   JS ставит классы .cosmic (блоки) и .cosmic-lite (строки) и передаёт координаты курсора в --mx/--my */
.cosmic, .cosmic-lite { --mx: 50%; --my: 50%; }
@media (hover: hover) {
  .cosmic { position: relative; isolation: isolate; overflow: hidden; }
  .need.cosmic { position: sticky; }
  .cosmic::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
    transition: opacity .6s var(--ease);
    background:
      radial-gradient(1.6px 1.6px at 14px 22px, #fff 60%, transparent 62%),
      radial-gradient(1.2px 1.2px at 63px 9px, #fff 60%, transparent 62%),
      radial-gradient(1px 1px at 41px 58px, #dfe9ff 60%, transparent 62%),
      radial-gradient(1.3px 1.3px at 88px 74px, #fff 60%, transparent 62%),
      radial-gradient(1px 1px at 27px 91px, #ffe9c8 60%, transparent 62%),
      radial-gradient(1.5px 1.5px at 76px 40px, #fff 60%, transparent 62%),
      radial-gradient(340px circle at var(--mx) var(--my), rgba(127, 178, 255, .38) 0%, rgba(74, 52, 150, .34) 32%, rgba(6, 10, 28, 0) 68%);
    background-size: 104px 104px, 104px 104px, 104px 104px, 104px 104px, 104px 104px, 104px 104px, 100% 100%;
    -webkit-mask: radial-gradient(300px circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .55) 40%, transparent 72%);
    mask: radial-gradient(300px circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .55) 40%, transparent 72%);
  }
  .cosmic::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; padding: 1.5px;
    transition: opacity .6s var(--ease);
    background: radial-gradient(280px circle at var(--mx) var(--my), rgba(190, 215, 255, .95), rgba(127, 178, 255, .35) 40%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
  .cosmic:hover::before, .cosmic:hover::after { opacity: 1; }
  .cosmic:hover::before { animation: starsDrift 30s linear infinite; }
  .cosmic:hover { box-shadow: 0 24px 70px -28px rgba(127, 178, 255, .5); }
  @keyframes starsDrift { to { background-position: 104px 0, -104px 0, 0 104px, 104px 104px, -104px -104px, 52px 52px, 0 0; } }

  .cosmic-lite { border-radius: 12px; transition: background-color .4s; }
  .cosmic-lite:hover { background: radial-gradient(260px circle at var(--mx) var(--my), rgba(127, 178, 255, .2), rgba(58, 42, 122, .14) 45%, transparent 75%); }
  .plist li.cosmic-lite { padding-inline: 10px; margin-inline: -10px; }
  .checks li.cosmic-lite { padding: 7px 12px 7px 44px; margin: -7px 0 -7px -12px; }
  .checks li.cosmic-lite::before { left: 12px; top: calc(.35em + 7px); }
  .steps li.cosmic-lite { padding-inline: 12px 12px; padding-left: 86px; margin-inline: -12px; }
  .steps li.cosmic-lite::before { left: 12px; }
  .steps li.cosmic-lite:not(:last-child)::after { left: 36.5px; }
  .hero__facts li.cosmic-lite { padding-top: 6px; padding-bottom: 6px; margin-block: -6px; }
}

/* ---- подвал ---- */
.footer { border-top: 1px solid var(--line); background: #04071a; }
.footer__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px 40px; padding: 28px 0 32px; color: var(--muted); font-size: 14px; }
.footer p { margin: 0; }
.footer__legal { display: grid; gap: 6px; max-width: 70ch; line-height: 1.5; }
.footer__legal a { color: var(--star); text-decoration: none; border-bottom: 1px solid rgba(244, 239, 225, .3); }
.footer__legal a:hover { color: #fff; border-color: #fff; }
.footer__links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__links a, .linklike { color: var(--ion); text-decoration: none; border-bottom: 1px solid rgba(127, 178, 255, .35); font: inherit; background: none; padding: 0; cursor: pointer; }
.footer__links a:hover, .linklike:hover { color: #fff; border-color: #fff; }
.todo { color: var(--sun); }

/* ---- контактная карточка вместо формы ---- */
.contact__card h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 500; font-size: 20px; }
.contact__card p { margin: 0; color: var(--muted); line-height: 1.55; }
.contact__card .form__hint a { color: var(--ion); }

/* ---- уведомление о cookie ---- */
.cookie { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; width: min(calc(100% - 24px), 760px);
  display: grid; gap: 14px; padding: 18px 22px; border-radius: 18px; background: rgba(13, 21, 51, .96); border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); backdrop-filter: blur(10px); color: var(--star); font-size: 14px; line-height: 1.5; }
.cookie p { margin: 0; }
.cookie a { color: var(--ion); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__actions .btn { min-height: 42px; padding: 0 20px; font-size: 14px; }
@media (min-width: 720px) { .cookie { grid-template-columns: 1fr auto; align-items: center; } }

/* ---- страница политики ---- */
.legal { padding-top: clamp(110px, 16vw, 150px); }
.legal__body { max-width: 78ch; color: var(--star); line-height: 1.65; }
.legal__body h1 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; }
.legal__body h2 { font-family: var(--display); font-weight: 500; font-size: 20px; margin: 34px 0 10px; }
.legal__body p, .legal__body li { color: var(--muted); }
.legal__body ul { padding-left: 22px; }
.legal__body li { margin: 6px 0; }
.legal__body a { color: var(--ion); }
.legal__body .meta { font-size: 14px; }
.legal__body b { color: var(--star); font-weight: 500; }

/* ============ адаптив ============ */
@media (max-width: 1000px) {
  .about__grid, .how__grid, .contact__grid { grid-template-columns: 1fr; }
  .formats__grid { grid-template-columns: 1fr; max-width: 640px; }
  .need, .need.cosmic { position: relative; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .hero__facts li:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; background: rgba(6, 10, 28, .96); backdrop-filter: blur(14px); padding: 12px var(--pad) 22px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); border-bottom: 1px solid var(--line); }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(127, 178, 255, .1); }
  .nav__links a::after { display: none; }
  /* телефон в шапке остаётся виден и на мобильных: там звонок нужнее всего */
  .nav__in { gap: 12px; }
  .nav__phone { margin-left: auto; font-size: 13px; padding: 9px 12px; }
  .burger { display: flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__in { padding-top: 120px; }
  .hero__title { max-width: none; }
  .hero__cta .btn { width: 100%; }
  .hero__facts { grid-template-columns: 1fr 1fr; padding-bottom: 30px; }
  .hero__facts li:nth-child(4) { border-left: 1px solid rgba(244, 239, 225, .14); padding-left: 22px; }
  .hero__facts li:nth-child(3), .hero__facts li:nth-child(5) { border-left: 0; padding-left: 0; }
  .form__row { grid-template-columns: 1fr; }
  .fcard { padding: 28px 22px; }
  .steps li { padding-left: 62px; }
  .steps li::before { width: 44px; height: 44px; }
  .steps li:not(:last-child)::after { left: 21.5px; }
  .steps li.cosmic-lite { padding-left: 74px; }
  .steps li.cosmic-lite:not(:last-child)::after { left: 33.5px; }
  .planet--ringed { width: 240px; height: 240px; right: -110px; bottom: -80px; }
}

/* меньше движения: системная настройка или класс .noanim (параметр ?noanim=1) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title .line > span { animation: none; transform: none; }
  .hero__lead, .hero__cta, .hero__facts { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dome__shell { stroke-dashoffset: 0; animation: none; }
  .dome__dim, .dome__note { opacity: 1; transition: none; }
  .dome__beam, .dome__stars circle, .dome__planet, .planet--ringed, .hero__scroll span { animation: none; }
  .tabs__panel { animation: none; }
  .stars { display: none; }
}
html.noanim { scroll-behavior: auto; }
.noanim .hero__title .line > span { animation: none; transform: none; }
.noanim .hero__lead, .noanim .hero__cta, .noanim .hero__facts { animation: none; opacity: 1; }
.js.noanim .reveal { opacity: 1; transform: none; transition: none; }
.noanim .dome__shell { stroke-dashoffset: 0; animation: none; }
.noanim .dome__dim, .noanim .dome__note { opacity: 1; transition: none; }
.noanim .dome__beam, .noanim .dome__stars circle, .noanim .dome__planet, .noanim .planet--ringed, .noanim .hero__scroll span, .noanim .tabs__panel { animation: none; }

/* ---- кнопка звонка на мобильных ---- */
.callfab { display: none; }
@media (max-width: 860px) {
  .callfab { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: inline-flex; align-items: center; gap: 10px;
    min-height: 54px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--sun); color: #2a1a05; text-decoration: none;
    font-family: var(--display); font-weight: 600; font-size: 14px; box-shadow: 0 14px 40px -10px rgba(255, 196, 107, .7); }
  .callfab svg { width: 22px; height: 22px; flex: none; }
  .callfab:active { transform: scale(.97); }
  /* пока открыто уведомление о cookie, кнопка не перекрывает его; номер в шапке остаётся доступен */
  .cookie:not([hidden]) ~ .callfab { display: none; }
  .footer__in { padding-bottom: 96px; }
}
@media (max-width: 600px) {
  /* логотип + номер + меню должны помещаться в 360–400 px без выталкивания бургера */
  .nav__in { gap: 8px; }
  .logo { gap: 8px; min-width: 0; }
  .logo__mark { width: 42px; height: 42px; }
  .logo__text { font-size: 11px; }
  .nav__phone { font-size: 12px; padding: 8px 10px; letter-spacing: -.01em; }
  .burger { flex: none; width: 40px; padding: 8px 6px; }
}
@media (max-width: 350px) {
  /* совсем узкие экраны: вместо номера круглая кнопка с трубкой, ссылка tel: та же */
  .nav__phone { font-size: 0; width: 40px; height: 40px; padding: 0; flex: none;
    background: center/20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4efe1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.8 2z'/%3E%3C/svg%3E"); }
}

/* ==== SEO-блоки: kicker, география, FAQ, посадочные страницы ==== */
.hero__kicker { display: block; max-width: none; margin: 0 0 18px; font-family: var(--body); font-weight: 500; font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); text-shadow: none; }
.fcard__more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--ion); border-bottom: 1px solid rgba(127, 178, 255, .35); }
.fcard__more:hover { color: #fff; border-color: #fff; }

.geo__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.geo__list li { display: grid; gap: 4px; padding: 20px 22px; border-radius: 18px; background: rgba(13, 21, 51, .65); border: 1px solid var(--line); }
.geo__list b { font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--star); }
.geo__list span { color: var(--muted); font-size: 15px; }

.faq__list { display: grid; gap: 10px; max-width: 900px; }
.faq__item { border-radius: 18px; background: rgba(13, 21, 51, .65); border: 1px solid var(--line); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; color: var(--sun); transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item h3 { display: inline; margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.35; }
.faq__item p { margin: 0; padding: 0 22px 20px; color: var(--muted); max-width: 75ch; }

/* посадочные страницы */
.page-hero { padding-top: clamp(120px, 16vw, 170px); padding-bottom: clamp(36px, 5vw, 60px); }
.page-hero h1 { font-size: clamp(30px, 4.8vw, 56px); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; max-width: 20ch; margin-bottom: 22px; }
.page-hero h1 em { font-style: normal; color: var(--sun); }
.page-hero .hero__cta { opacity: 1; animation: none; margin-top: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.prose { max-width: 78ch; }
.prose p, .prose li { color: #d8dcea; }
.prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 8px 0; }
.ideas { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: idea; }
.ideas li { counter-increment: idea; padding: 24px 22px; border-radius: 18px; background: rgba(13, 21, 51, .65); border: 1px solid var(--line); }
.ideas li::before { content: counter(idea, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--sun); margin-bottom: 10px; }
.ideas h3 { font-size: 18px; margin-bottom: 8px; }
.ideas p { margin: 0; color: var(--muted); font-size: 15px; }
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facts li { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(13, 21, 51, .5); }
.facts b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2vw, 24px); color: var(--star); }
.facts span { font-size: 14px; color: var(--muted); }
.cta-band { margin-top: 10px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r); background: linear-gradient(160deg, #2a2160 0%, #171c4a 60%, #0f1740 100%); border: 1px solid rgba(255, 196, 107, .35); }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); }
.cta-band p { color: #d8dcea; max-width: 60ch; }
@media (max-width: 1000px) { .ideas { grid-template-columns: 1fr 1fr; } .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .geo__list, .ideas { grid-template-columns: 1fr; } .page-hero .btn { width: 100%; } }

/* ---- кнопки первого экрана: в покое нейтральные, при наведении загораются синим (а не жёлтым) ---- */
.hero__cta .btn,
.hero__cta .btn--sun {
  background: rgba(6, 10, 28, .25); color: var(--star); border-color: rgba(244, 239, 225, .35);
  box-shadow: none; backdrop-filter: blur(6px);
}
.hero__cta .btn:hover,
.hero__cta .btn:focus-visible,
.hero__cta .btn:active {
  background: rgba(127, 178, 255, .2); color: #fff; border-color: var(--ion);
  box-shadow: 0 0 0 1px rgba(127, 178, 255, .55), 0 12px 44px -10px rgba(127, 178, 255, .85);
  transform: translateY(-2px);
}
.hero__cta .btn:focus-visible { outline-color: var(--ion); }
.hero__cta .btn:active { transform: translateY(0) scale(.98); }

/* ---- вкладки возрастов: загораются синим ТОЛЬКО пока на них наведён курсор; выбранная вкладка не «горит» ---- */
.tabs__list button { transition: background-color .25s, border-color .25s, color .25s, box-shadow .3s var(--ease), transform .3s var(--ease); }
/* выбранная вкладка в покое: без заливки и свечения, только чуть ярче текст и рамка, чтобы было видно, чей список открыт */
.tabs__list button[aria-selected="true"] {
  background: rgba(13, 21, 51, .8); color: #fff; border-color: rgba(244, 239, 225, .55); box-shadow: none; transform: none;
}
/* наведение и фокус с клавиатуры: синяя подсветка, одинаковая для любой вкладки */
.tabs__list button:hover,
.tabs__list button:focus-visible,
.tabs__list button[aria-selected="true"]:hover,
.tabs__list button[aria-selected="true"]:focus-visible {
  background: rgba(127, 178, 255, .2); color: #fff; border-color: var(--ion);
  box-shadow: 0 0 0 1px rgba(127, 178, 255, .55), 0 10px 34px -10px rgba(127, 178, 255, .85);
  transform: translateY(-1px);
}
.tabs__list button:focus-visible { outline-color: var(--ion); }
/* телефоны: наведения нет, поэтому выбранную вкладку отмечаем голубой рамкой, без заливки */
@media (hover: none) { .tabs__list button[aria-selected="true"] { border-color: var(--ion); } }

/* ---- жёлтые обводки убраны, вместо них голубые (по просьбе заказчика, 23.09.2026) ---- */
:focus-visible { outline-color: var(--ion); }
.logo__mark img { box-shadow: 0 0 0 1px rgba(127, 178, 255, .35), 0 6px 22px -8px rgba(127, 178, 255, .6); }
.nav__phone:hover { border-color: var(--ion); color: var(--ion); }
.fcard--accent { border-color: rgba(127, 178, 255, .35); }
.programs__note { border-left-color: var(--ion); }
.steps li::before { border-color: rgba(127, 178, 255, .5); color: var(--ion); }
a.contacts__item:hover { border-color: var(--ion); }
.cta-band { border-color: rgba(127, 178, 255, .35); }

/* ---- кнопки контактов и посадочных: без жёлтой заливки, подсветка синим при наведении (24.09.2026) ---- */
.form__actions .btn--ghost:hover, .form__actions .btn--ghost:focus-visible,
.page-hero .btn--sun, .page-hero .btn--sun:hover {
  background: rgba(127, 178, 255, .2); color: #fff; border-color: var(--ion);
  box-shadow: 0 0 0 1px rgba(127, 178, 255, .55), 0 12px 44px -10px rgba(127, 178, 255, .85);
}
.page-hero .btn--sun { background: rgba(6, 10, 28, .25); color: var(--star); border-color: rgba(244, 239, 225, .35); box-shadow: none; }

/* ---- окно «почтовая программа не открылась» ---- */
.mailfb { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(3, 6, 20, .72); backdrop-filter: blur(6px); }
.mailfb__box { position: relative; width: min(100%, 560px); padding: 30px 30px 26px; border-radius: var(--r); background: rgba(13, 21, 51, .97); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); color: var(--star); }
.mailfb__box h3 { margin: 0 34px 10px 0; font-family: var(--display); font-weight: 500; font-size: 20px; }
.mailfb__box p { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
.mailfb__addr { font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--star) !important; user-select: all; }
.mailfb__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mailfb__actions .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
.mailfb__actions .btn:hover, .mailfb__actions .btn:focus-visible { background: rgba(127, 178, 255, .2); color: #fff; border-color: var(--ion); box-shadow: 0 0 0 1px rgba(127, 178, 255, .55), 0 12px 44px -10px rgba(127, 178, 255, .85); }
.mailfb__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--star); font-size: 24px; line-height: 1; cursor: pointer; }
.mailfb__close:hover { background: rgba(127, 178, 255, .25); }
.mailfb__note { margin: 14px 0 0 !important; color: var(--ion) !important; font-size: 14px; }
@media (max-width: 600px) { .mailfb__box { padding: 24px 20px 20px; } .mailfb__actions .btn { width: 100%; } }
