/* ========== ЭТАП 0: Глобальные стили и переменные ========== */
:root {
  /* ПАЛИТРА (свежая, небанальная) */
  --bg: #0e0f12;             /* угольно-графитовый фон */
  --surface: #15171c;        /* карточки/хедер */
  --text: #e8eaf0;           /* основной текст */
  --muted: #a9afbd;          /* второй текст */
  --primary: #7be0b8;        /* мятно-бирюзовый акцент */
  --primary-600: #59c8a1;
  --accent: #a78bfa;         /* лавандовый для вторичных штрихов */
  --line: #23262d;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  --container: 1200px;

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 10% -10%, rgba(167,139,250,.12), transparent 40%),
              radial-gradient(1000px 700px at 110% 10%, rgba(123,224,184,.10), transparent 40%),
              var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Сброс отступов для типографики */
h1, h2, h3, h4, h5, h6, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -40px; left: 16px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  transition: top .2s ease;
  z-index: 1000;
}
.skip-link:focus { top: 8px; }

/* ========== ЭТАП 1: Хедер ========== */
.header {
  position: sticky;
  top: 0; z-index: 100;
  backdrop-filter: saturate(160%) blur(10px);
  background: rgba(14,15,18, .65);
  border-bottom: 1px solid var(--line);
}
.header__container {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

/* Лого */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .2px;
}
.logo__mark {
  width: 24px; height: 24px;
  border-radius: 7px;
  background:
    conic-gradient(from 180deg at 50% 50%, var(--primary) 0 25%, transparent 25% 50%, var(--accent) 50% 75%, transparent 75% 100%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), var(--shadow);
}
.logo__text { font-feature-settings: "ss01" 1; }

/* Навигация */
.header__nav { margin-left: auto; }
.nav__list {
  display: none;
  align-items: center;
  gap: 18px;
}
.nav__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 8px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color .2s ease, background .2s ease, transform .15s ease;
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav__item--cta .button { margin-left: 6px; }

/* Кнопки */
.button {
  --btn-bg: var(--primary);
  --btn-bg-hover: var(--primary-600);
  --btn-fg: #0a0b0d;
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 14px;
  border-radius: 12px;
  text-decoration: none; font-weight: 600;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 0 6px 14px rgba(123,224,184,.25), inset 0 0 0 1px rgba(0,0,0,.2);
  transform: translateY(0);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button--primary{}

.nav-toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}
.nav-toggle i { width: 20px; height: 20px; }

/* ========== Футер (ЭТАП 2) ========== */
.footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23,24,29,.4), rgba(17,18,21,1) 40%);
}
.footer__container {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  padding-block: 32px;
}
.footer__logo .logo__mark { width: 28px; height: 28px; }
.footer__tagline { color: var(--muted); margin-top: 10px; max-width: 40ch; }
.footer__title { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.footer__links a {
  color: var(--text); text-decoration: none; opacity: .85;
  display: inline-block; padding: 6px 0;
}
.footer__links a:hover { opacity: 1; text-decoration: underline; }
.footer__contacts li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.footer__contacts a { color: var(--text); text-decoration: none; }
.footer__contacts i { width: 18px; height: 18px; color: var(--primary); margin-top: 3px; }
.footer__address { font-style: normal; color: var(--text); opacity: .9; }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  background: rgba(0,0,0,.15);
}
.footer__bottom-container {
  display: flex; align-items: center; justify-content: space-between;
}
.footer__copy { color: var(--muted); font-size: 14px; }
.footer__up {
  color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}

/* ========== Главный контейнер (будущие секции) ========== */
.main { min-height: 40vh; }

/* ========== RESPONSIVE (mobile-first) ========== */
@media (min-width: 780px) {
  .nav-toggle { display: none; }
  .nav__list { display: flex; }
  .footer__container { grid-template-columns: 1.2fr 1fr 1fr 1.1fr; }
}

/* ========== Стили для страниц политик (Этап 5, задел сейчас) ========== */
.pages {
  padding-block: 40px;
}
.pages .container {
  max-width: 860px;
}
.pages h1 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.pages h2 {
  font-size: 22px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.pages p { color: var(--text); opacity: .95; margin: 10px 0; }
.pages ul { list-style: disc; padding-left: 20px; }
.pages li { margin: 6px 0; }
.pages a { color: var(--primary); text-underline-offset: 3px; }

/* ========== ЭТАП 3: HERO ========== */
.hero {
  position: relative;
  overflow: clip;
  padding: 72px 0 64px;
  isolation: isolate;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; opacity: .5;
}
.hero__container {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero__content { max-width: 640px; }
.hero__title {
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: .2px;
  margin-bottom: 12px;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero__subtitle {
  color: var(--muted);
  font-size: clamp(16px, 2.6vw, 18px);
  margin-bottom: 18px;
}
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.button--ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.button--ghost:hover { background: rgba(255,255,255,.05); }

.hero__bullets { display: grid; gap: 8px; margin-top: 6px; }
.hero__bullet {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted);
}
.hero__bullet i { width: 18px; height: 18px; color: var(--primary); }

.hero__media {
  position: relative;
  justify-self: center;
  max-width: 520px; width: 100%;
}
.hero__img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}
.hero__badge {
  position: absolute; bottom: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px;
  background: rgba(21,23,28,.8);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  font-weight: 600;
}
.hero__badge i { width: 16px; height: 16px; color: var(--accent); }

/* Hover-параллакс на курсоре */
@media (hover: hover) and (pointer: fine) {
  .hero__img { transition: transform .3s ease; }
  .hero__media:hover .hero__img { transform: translateY(-2px) scale(1.01); }
}

/* Layout ≥ 900px */
@media (min-width: 900px) {
  .hero { padding: 96px 0 88px; }
  .hero__container {
    grid-template-columns: 1.05fr .95fr;
    gap: 36px;
  }
}

/* Предпочтение уменьшенной анимации */
@media (prefers-reduced-motion: reduce) {
  .hero__canvas { display: none; }
}

/* ========== ЭТАП 3: КУРСЫ ========== */
.section-head { margin-bottom: 18px; }
.section-head__title {
  font-size: clamp(22px, 4.5vw, 32px);
  margin-bottom: 6px;
}
.section-head__subtitle { color: var(--muted); }

.filters {
  display: inline-flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  padding: 6px; border-radius: 12px;
}
.filters__btn {
  appearance: none; border: 0; cursor: pointer;
  padding: 8px 10px; border-radius: 10px;
  background: transparent; color: var(--muted); font-weight: 600;
}
.filters__btn:hover { background: rgba(255,255,255,.05); color: var(--text); }
.filters__btn.is-active { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

.courses { padding: 28px 0 8px; }
.courses__grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.course-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21,23,28,.65), rgba(17,18,21,.95));
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transform: translateY(0); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(123,224,184,.35); }

.course-card__img { width: 100%; height: 180px; object-fit: cover; display: block; }

.course-card__body { padding: 14px; }
.course-card__title { font-size: 20px; margin-bottom: 8px; }

.course-card__meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.badge {
  display: inline-flex; align-items: center; height: 26px;
  padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(123,224,184,.14); color: var(--text);
  border: 1px solid rgba(123,224,184,.28);
}
.badge--alt {
  background: rgba(167,139,250,.14);
  border-color: rgba(167,139,250,.28);
}
.badge--level {
  background: rgba(255,255,255,.06);
  border-color: var(--line);
}

.course-card__bullets { color: var(--muted); display: grid; gap: 6px; margin-bottom: 12px; }
.course-card__bullets li { list-style: none; position: relative; padding-left: 16px; }
.course-card__bullets li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.course-card__actions { display: flex; justify-content: flex-start; }

/* Responsive */
@media (min-width: 680px) {
  .courses__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .course-card__img { height: 200px; }
}
@media (min-width: 1024px) {
  .courses__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .course-card__img { height: 210px; }
}


/* ========== ЭТАП 3: ФОРМАТЫ ОБУЧЕНИЯ ========== */
.formats { padding: 28px 0 8px; }

.tabs {
  display: inline-flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  padding: 6px; border-radius: 12px;
}
.tabs__btn {
  appearance: none; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 10px;
  background: transparent; color: var(--muted); font-weight: 700;
}
.tabs__btn:hover { background: rgba(255,255,255,.05); color: var(--text); }
.tabs__btn.is-active { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

.tabs__panels { margin-top: 16px; }

.format-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21,23,28,.65), rgba(17,18,21,.95));
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  overflow: hidden;
  transform: translateY(0);
}
.format-card.is-active { outline: 1px solid rgba(123,224,184,.3); }

.format-card__grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.format-card__img {
  width: 100%; height: 210px; object-fit: cover; display: block;
}
.format-card__content {
  padding: 16px;
}
.format-card__title {
  font-size: 20px; margin-bottom: 10px;
}
.format-card__list {
  color: var(--muted); display: grid; gap: 6px; margin-bottom: 14px;
}
.format-card__list li { list-style: none; position: relative; padding-left: 16px; }
.format-card__list li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}

/* Анимация появления панели */
.format-card[hidden] { display: none !important; }
.format-card.animate-in {
  animation: panelIn .18s ease-out both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (min-width: 860px) {
  .format-card__grid { grid-template-columns: 1.1fr .9fr; }
  .format-card__img { height: 100%; min-height: 260px; }
}

/* ========== ЭТАП 3: ПРЕПОДАВАТЕЛИ ========== */
.team { padding: 32px 0; }
.team__grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.teacher-card {
  background: linear-gradient(180deg, rgba(21,23,28,.7), rgba(17,18,21,.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.teacher-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(123,224,184,.3);
}

.teacher-card__img {
  width: 100%; height: 220px; object-fit: cover;
  display: block;
}
.teacher-card__body { padding: 14px; }
.teacher-card__name {
  font-size: 18px; font-weight: 700;
  margin-bottom: 4px;
}
.teacher-card__role {
  font-size: 14px; color: var(--muted);
  margin-bottom: 10px;
}
.teacher-card__skills {
  color: var(--text); opacity: .9;
  display: grid; gap: 4px;
  font-size: 14px;
  list-style: disc;
  padding-left: 20px;
}

/* Responsive */
@media (min-width: 640px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .team__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========== ЭТАП 3: РАСПИСАНИЕ ========== */
.schedule { padding: 32px 0; }

.schedule__filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 12px;
}
.select {
  display: grid; gap: 6px;
}
.select__label {
  font-size: 12px; color: var(--muted); letter-spacing: .04em;
}
.select__field {
  appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 180px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.select__field:focus { outline: 2px solid rgba(123,224,184,.35); outline-offset: 2px; }

.table-wrap {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(21,23,28,.65), rgba(17,18,21,.95));
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.schedule__table {
  width: 100%;
  border-collapse: collapse;
}
.schedule__table thead {
  background: rgba(255,255,255,.04);
}
.schedule__table th,
.schedule__table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.schedule__table th { font-weight: 700; font-size: 14px; color: var(--muted); }
.schedule__table tbody tr:hover { background: rgba(255,255,255,.03); }

.ta-right { text-align: right; }

/* Мобильная адаптация таблицы: превращаем строки в карточки */
@media (max-width: 720px) {
  .schedule__table thead { display: none; }
  .schedule__table, .schedule__table tbody, .schedule__table tr, .schedule__table td { display: block; width: 100%; }
  .schedule__table tr { border-bottom: 1px solid var(--line); }
  .schedule__table td {
    display: grid; grid-template-columns: 120px 1fr; gap: 8px;
    border: 0; padding: 10px 14px;
  }
  .schedule__table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
  }
  .ta-right { text-align: left; }
}


/* ========== ЭТАП 3: ОТЗЫВЫ ========== */
.reviews { padding: 32px 0; position: relative; }
.reviews__viewport {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21,23,28,.65), rgba(17,18,21,.95));
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform .3s ease;
  will-change: transform;
}
.review-card {
  padding: 16px;
}
.review-card__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.review-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
}
.review-card__name { font-weight: 700; }
.review-card__meta { color: var(--muted); font-size: 14px; }
.review-card__text { color: var(--text); opacity: .95; }

.reviews__controls {
  position: absolute; inset: auto 10px 10px auto;
  display: flex; gap: 8px;
}
.reviews__btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.reviews__btn i { width: 18px; height: 18px; }

.reviews__dots {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; gap: 6px;
}
.reviews__dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}
.reviews__dot.is-active { background: var(--primary); border-color: rgba(123,224,184,.6); }

/* Swipe на больших экранах показываем по две карточки */
@media (min-width: 900px) {
  .reviews__track { grid-auto-columns: 50%; }
}

/* ========== ЭТАП 4: КОНТАКТЫ ========== */
.contact { padding: 36px 0 44px; }
.contact__grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
.contact__form, .contact__aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21,23,28,.65), rgba(17,18,21,.95));
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.contact__form { padding: 16px; }
.contact__aside { padding: 16px; }

.form__row { margin-bottom: 12px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.field__input {
  width: 100%; height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.field__input:focus { outline: 2px solid rgba(123,224,184,.35); outline-offset: 2px; }
.field__error {
  min-height: 18px;
  color: #ffb4b4;
  font-size: 13px;
}

.captcha__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.captcha__task { font-family: var(--font-mono); color: var(--text); opacity: .9; }
.captcha__input { height: 44px; }
.captcha__refresh {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
}
.captcha__refresh i { width: 18px; height: 18px; }

.check { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; }
.check__input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface);
  display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  position: relative;
}
.check__input:checked + .check__box::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 4px; background: var(--primary);
}
.check__label { color: var(--text); }
.form__hint { color: var(--muted); font-size: 13px; margin-top: 6px; }

.form__actions { margin-top: 8px; }
.form__submit { position: relative; min-width: 150px; }
.btn__spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: transparent;
  display: none; margin-right: 8px;
  animation: spin .8s linear infinite;
}
.form__submit.is-sending .btn__spinner { display: inline-block; }
.form__submit.is-sending .btn__text { opacity: .8; }

@keyframes spin { to { transform: rotate(360deg); } }

.form__status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(123,224,184,.12);
  border: 1px solid rgba(123,224,184,.35);
  color: var(--text);
  display: none;
}
.form__status.is-visible { display: block; }

.contact__list { display: grid; gap: 10px; }
.contact__list li { display: flex; align-items: center; gap: 10px; }
.contact__list i { width: 18px; height: 18px; color: var(--primary); }
.contact__note { color: var(--muted); margin-top: 8px; }

/* Error state */
.field__input[aria-invalid="true"] { border-color: rgba(255, 100, 100, .55); }

/* Responsive */
@media (min-width: 860px) {
  .contact__grid { grid-template-columns: 1.2fr .8fr; gap: 20px; }
}

/* ========== ЭТАП 5: COOKIE POP-UP ========== */
.cookie {
  position: fixed; inset: auto 16px 16px 16px;
  z-index: 999;
  display: none; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21,23,28,.9), rgba(17,18,21,.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cookie.is-visible { display: flex; animation: cookieIn .22s ease-out both; }
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie__icon i { width: 20px; height: 20px; color: var(--accent); }
.cookie__text { color: var(--text); opacity: .95; }
.cookie__text a { color: var(--primary); text-underline-offset: 3px; }

@media (min-width: 820px) {
  .cookie { left: 50%; right: auto; transform: translateX(-50%); width: min(840px, 94vw); }
}
