/* =========================================================
   БАЗОВЫЕ СТИЛИ
   ========================================================= */

/* ---------- Переменные (цвета взяты из кода Base44) ---------- */
:root {
  --bg: #0b0918;                          /* фон страницы */
  --surface: #12121f;                     /* карточки */
  --surface-accent: #14102a;              /* выделенные элементы */
  --border: rgba(255, 255, 255, 0.07);    /* тонкие линии */
  --border-strong: rgba(255, 255, 255, 0.12);

  --text-heading: rgba(255, 255, 255, 0.95);
  --text-body: rgba(255, 255, 255, 0.7);
  --text-caption: rgba(255, 255, 255, 0.45);

  --accent-1: #7c5cff;
  --accent-2: #3b82f6;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));

  --radius: 16px;
  --container: 1200px;
  --container-padding: 20px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- Контейнер и секции ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.section { padding: 80px 0; }

/* ---------- Типографика ---------- */
.h1 { font-size: 40px; line-height: 1.2; font-weight: 700; color: var(--text-heading); }
.h2 { font-size: 36px; line-height: 1.25; font-weight: 700; color: var(--text-heading); }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--text-heading); }
.label { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-caption); }
.text { font-size: 17px; line-height: 1.6; color: var(--text-body); }
.nowrap { white-space: nowrap; }

/* ---------- Карточка ---------- */
.surface {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn-primary { background-image: var(--accent-gradient); color: #fff; }
.btn-secondary { border: 1px solid var(--border-strong); color: var(--text-heading); }
.btn-max { background-image: linear-gradient(90deg, #4800f6, #8a00f5); color: #fff; }  /* фирменный цвет MAX */
.btn--sm { min-height: 40px; padding: 10px 20px; font-size: 15px; border-radius: 10px; }
.btn:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 3px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .section { padding: 64px 0; }
  .h2 { font-size: 30px; }
}
/* Mobile (<768px) */
@media (max-width: 767px) {
  .section { padding: 48px 0; }
  .h1 { font-size: 30px; line-height: 1.25; }
  .h2 { font-size: 26px; }
  .text { font-size: 16px; }
  .btn--mobile-full { width: 100%; }
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header__logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
}

/* =========================================================
   БЛОК 1: HERO
   ========================================================= */
.hero { padding: 40px 0; }

.hero__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.hero__label { font-size: 15px; }

/* Список преимуществ */
.hero__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.icon-check {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--text-heading);
}

/* Кнопка, цена, заяц */
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  align-self: flex-start;
}
.hero__cta-row .btn { white-space: nowrap; }

.hero__rabbit {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--bg);
}
.hero__rabbit--desktop { width: 100px; }
.hero__rabbit--mobile { display: none; width: 120px; margin: 0 auto; }

/* Фото */
.hero__photo {
  width: 100%;
  max-width: 416px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  /* +14px: у исходного фото внизу белая полоса — прячем её за край рамки */
  height: calc(100% + 14px);
  object-fit: cover;
  object-position: 50% 20%;
}

/* Mobile (<768px): фото на первом экране скрыто — сразу текст */
@media (max-width: 767px) {
  .hero { padding: 32px 0 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__media { display: none; }
  .hero__cta-row {
    flex-direction: column;
    align-self: stretch;
    gap: 0;
  }
  .hero__rabbit--desktop { display: none; }
  .hero__rabbit--mobile { display: block; }
}

/* =========================================================
   ОБЩИЕ ЭЛЕМЕНТЫ СЕКЦИЙ
   ========================================================= */
.section__title { margin-bottom: 48px; }

/* Квадратик с иконкой */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}
.icon-box svg { width: 20px; height: 20px; }

@media (max-width: 767px) {
  .section__title { margin-bottom: 32px; }
}

/* =========================================================
   БЛОК 2: КОМУ ПОДОЙДЁТ
   ========================================================= */
.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.audience__card {
  display: flex;
  flex-direction: column;
  padding: 40px;
}
.audience__card .icon-box { margin-bottom: 24px; }
.audience__title { margin-bottom: 16px; }

/* Mobile (<768px) */
@media (max-width: 767px) {
  .audience__grid { grid-template-columns: 1fr; }
  .audience__card { padding: 24px; }
}

/* =========================================================
   БЛОК 3: БОЛИ «Сайт нужен, но всё время что-то мешает»
   ========================================================= */
.pains__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pains__card {
  display: flex;
  padding: 40px;
}
.pains__quote {
  font-weight: 600;
  color: var(--text-heading);
}
.pains__outro {
  margin-top: 40px;
  text-align: center;
}

@media (max-width: 1023px) {
  .pains__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .pains__card { padding: 24px; }
  .pains__outro { margin-top: 32px; }
}
/* Узкие телефоны — одна колонка */
@media (max-width: 639px) {
  .pains__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   БЛОК 4: УСЛУГИ «Всё, что нужно для запуска»
   ========================================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.services__card {
  display: flex;
  flex-direction: column;
  padding: 40px;
}
.services__price {
  margin: 12px 0 20px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-heading);
}
.services__price--with-note { margin-bottom: 4px; }
.services__note {
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-caption);
}
.services__outro {
  margin-top: 40px;
  text-align: center;
}
.services__cta {
  margin-top: 40px;
  text-align: center;
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__card { padding: 24px; }
  .services__outro,
  .services__cta { margin-top: 32px; }
}

/* ---------- Скрыто визуально, но доступно поисковикам и экранным дикторам ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* =========================================================
   БЛОК 5: СРАВНЕНИЕ «Фото для сайта без студии и фотографа»
   ========================================================= */
.compare__container { max-width: 960px; }

.compare__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.compare__table th,
.compare__table td {
  padding: 20px 24px 20px 0;
  vertical-align: top;
}
/* Заголовки колонок */
.compare__table thead th {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
}
.compare__table thead tr { border-bottom: 1px solid var(--border); }
/* Строки */
.compare__table tbody tr + tr { border-top: 1px solid var(--border); }
.compare__table tbody th {
  font-weight: 500;
  color: var(--text-heading);
}
.compare__table tbody td {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
}
/* Выделенная колонка «Нейрофото» */
.compare__table .compare__accent {
  padding-left: 28px;
  padding-right: 28px;
  background-color: var(--surface-accent);
  color: var(--text-heading);
}
.compare__accent--top { border-radius: 16px 16px 0 0; }
.compare__accent--bottom { border-radius: 0 0 16px 16px; }

.compare__outro { margin-top: 40px; }
.compare__btn { margin-top: 40px; }

/* Mobile (<768px): строки таблицы превращаются в карточки */
@media (max-width: 767px) {
  .compare__table thead { display: none; }
  .compare__table,
  .compare__table tbody,
  .compare__table tr,
  .compare__table th,
  .compare__table td { display: block; width: 100%; }

  .compare__table tbody tr {
    margin-bottom: 16px;
    padding: 24px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .compare__table tbody tr + tr { border-top: 1px solid var(--border); }

  .compare__table tbody th {
    padding: 0 0 16px;
    font-weight: 600;
  }
  .compare__table tbody td,
  .compare__table .compare__accent {
    padding: 0;
    background: none;
    border-radius: 0;
    font-size: 16px;
    color: var(--text-body);
  }
  .compare__table tbody td + td { margin-top: 8px; }
  .compare__table tbody td::before {
    content: attr(data-label) " ";
    font-weight: 500;
    color: var(--text-heading);
  }

  .compare__outro { margin-top: 16px; }
  .compare__btn { margin-top: 32px; }
}

/* =========================================================
   БЛОК 6: ЭТАПЫ «От первого сообщения до работающего сайта»
   ========================================================= */
.steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
/* Горизонтальная линия через кружки */
.steps__list::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border-strong);
}
.steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.steps__num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--surface-accent);
  border: 1px solid var(--border-strong);
  color: var(--text-heading);
  font-size: 18px;
  font-weight: 600;
}
.steps__card {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding: 24px;
}
.steps__when { margin-bottom: 12px; }
.steps__title {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading);
}

/* Нижняя плашка */
.steps__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 32px;
}
.steps__btn { flex-shrink: 0; }

/* Tablet (768px - 1024px): вертикальный таймлайн, кружок слева
   (отступление от Base44: пять колонок на планшете слишком узкие) */
@media (max-width: 1024px) {
  .steps__list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .steps__list::before { display: none; }
  .steps__item {
    position: relative;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }
  /* Линия от кружка к следующему кружку (у последнего шага её нет) */
  .steps__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 56px;
    bottom: -16px;
    left: 28px;
    width: 1px;
    background-color: var(--border-strong);
  }
}

/* Mobile (<768px): кружок по центру над карточкой, как в оригинале */
@media (max-width: 767px) {
  .steps__list { gap: 32px; }
  .steps__item:not(:last-child)::after { display: none; }
  .steps__item {
    flex-direction: column;
    align-items: center;
  }
  .steps__bar {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }
}

/* =========================================================
   БЛОК 7: ОБО МНЕ
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}
.about__photo img {
  width: 100%;
  /* +14px: у исходного фото внизу белая полоса — прячем её за край рамки */
  height: calc(100% + 14px);
  object-fit: cover;
  object-position: 50% 20%;
}
.about__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { max-width: 400px; margin: 0 auto; }
}

/* =========================================================
   БЛОК 8: ЦЕНЫ «Цена известна заранее»
   ========================================================= */
.pricing__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  text-align: center;
}
.pricing__lead { max-width: 600px; margin-top: 16px; }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
/* Главная карточка: чуть крупнее, рамка переливается фиолетовый ↔ синий (как в Base44) */
@property --pricing-angle {
  syntax: "<angle>";
  initial-value: 135deg;
  inherits: false;
}
.pricing__card--primary {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(var(--pricing-angle), rgba(124, 92, 255, 0.6), rgba(59, 130, 246, 0.6)) border-box;
  transform: scale(1.05);
  z-index: 1;
  animation: pricing-border-spin 6s linear infinite;
}
@keyframes pricing-border-spin {
  to { --pricing-angle: 495deg; }
}

/* Наведение: карточка приподнимается и светится фиолетовым */
.pricing__grid .pricing__card {
  transition:
    opacity .6s ease, translate .6s ease,
    transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
@media (hover: hover) {
  .pricing__card:hover {
    transform: translateY(-6px);
    border-color: rgba(160, 140, 255, 0.3);
    box-shadow: 0 10px 40px rgba(124, 92, 255, 0.25);
  }
  .pricing__card--primary:hover {
    transform: translateY(-6px) scale(1.05);
    border-color: transparent;
  }
}

.pricing__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background-image: var(--accent-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.pricing__name {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
}
.pricing__price {
  margin-bottom: 16px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-heading);
}
.pricing__desc { font-size: 15px; color: var(--text-body); }

.pricing__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-body);
}
.icon-check--sm { width: 16px; height: 16px; margin-top: 3px; }

.pricing__note {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
}
.pricing__cta { margin-top: 32px; text-align: center; }

/* ---------- Анимация появления (только если работает JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 30px;
}
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }

.js [data-reveal-item] {
  opacity: 0;
  translate: 0 8px;
  transition: opacity .4s ease, translate .4s ease;
}
.js .is-visible [data-reveal-item] { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-item] {
    opacity: 1; translate: none; transition: none;
  }
  .pricing__card--primary { animation: none; }
  .pricing__card:hover { transform: none; }
  .pricing__card--primary:hover { transform: scale(1.05); }
}

/* Mobile (<768px): карточки друг под другом, «Лендинг» первым */
@media (max-width: 767px) {
  .pricing__head { margin-bottom: 40px; }
  .pricing__grid { grid-template-columns: 1fr; gap: 20px; }
  .pricing__card--primary { order: -1; transform: none; }
  .pricing__card--primary:hover { transform: translateY(-6px); }
  .pricing__price { font-size: 32px; }
}

/* =========================================================
   БЛОК 9: FAQ «Отвечаю на частые вопросы»
   ========================================================= */
.faq__container { max-width: 760px; }

.faq__item { border-bottom: 1px solid var(--border); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;                 /* убираем стандартный треугольник */
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-heading);
}
.faq__question:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-caption);
  transition: transform .2s ease;
}
.no-js .faq__item[open] .faq__chevron { transform: rotate(180deg); }

.faq__answer { padding: 0 32px 20px 0; }
.faq__answer .text { font-size: 16px; }

/* Плавное выезжание ответа делает scripts.js (анимация высоты).
   Без JS ответ просто открывается сразу. */
.faq__answer { overflow: hidden; }
.faq__item.is-open .faq__chevron { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .faq__chevron { transition: none; }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .faq__question h3 { font-size: 16px; }
  .faq__answer { padding-right: 0; }
}

/* =========================================================
   БЛОК 10: КОНТАКТЫ
   ========================================================= */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}
.contacts__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.contacts__lead { max-width: 560px; }
.contacts__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.contacts__rabbit {
  width: 160px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--bg);
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .contacts__grid { grid-template-columns: 1fr; gap: 40px; }
  .contacts__content { align-items: stretch; }
  .contacts__buttons { flex-direction: column; }
  .contacts__media { justify-self: center; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer__col > * + * { margin-top: 4px; }
.footer__title { font-weight: 500; color: var(--text-heading); }
.footer__caption { color: var(--text-caption); }
.footer__link {
  color: var(--text-body);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__link:hover { color: var(--text-heading); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .footer { padding: 48px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================
   СТРАНИЦЫ ОФЕРТЫ И ПОЛИТИКИ (offer.html, privacy.html)
   ========================================================= */
.legal__container { max-width: 760px; }
.legal__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--text-caption);
}
.legal__back:hover { color: var(--text-heading); }
.legal__title { margin-bottom: 40px; }
.legal__section + .legal__section { margin-top: 32px; }
.legal__h2 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-heading);
}
.legal__link {
  color: var(--text-heading);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal__other {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-caption);
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .legal__title { margin-bottom: 32px; }
  .legal__h2 { font-size: 18px; }
}

/* =========================================================
   УВЕДОМЛЕНИЕ О COOKIE
   ========================================================= */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  width: calc(100% - 40px);
  max-width: 720px;
  padding: 16px 20px;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.cookie.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.cookie__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
}
.cookie__link {
  color: var(--text-heading);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie__btn { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .cookie { transition: none; }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .cookie {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 16px;
  }
  .cookie__btn { width: 100%; }
}

/* =========================================================
   ПЛАШКА АКЦИИ С ТАЙМЕРОМ
   ========================================================= */
.promo {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 101;
  width: 340px;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(124, 92, 255, 0.7), rgba(59, 130, 246, 0.7)) border-box;
  box-shadow: 0 10px 40px rgba(124, 92, 255, 0.25), 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(calc(100% + 40px));
  pointer-events: none;
  transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1), bottom .3s ease;
}
.promo.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.promo__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-caption);
  transition: color .2s, background-color .2s;
}
.promo__close:hover { color: var(--text-heading); background-color: rgba(255, 255, 255, 0.06); }
.promo__close:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; }
.promo__close svg { width: 18px; height: 18px; }

.promo__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-image: var(--accent-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
.promo__title {
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-heading);
}
.promo__text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-body);
}
.promo__timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.promo__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  border-radius: 10px;
  background-color: var(--surface-accent);
  border: 1px solid var(--border-strong);
}
.promo__num {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-heading);
  font-variant-numeric: tabular-nums;   /* цифры не «прыгают» */
}
.promo__label {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-caption);
}
.promo__btn { width: 100%; margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  .promo { transition: opacity .2s ease; transform: none; }
}

/* Mobile (<768px): на всю ширину снизу, компактнее */
@media (max-width: 767px) {
  .promo {
    left: 12px;
    right: 12px;
    width: auto;
    padding: 16px;
    transform: translateY(calc(100% + 40px));
  }
  .promo__title { font-size: 20px; padding-right: 32px; }
  .promo__num { font-size: 20px; }
}
