/* Оформление лендинга «Лабиринт Аватар».
   Тёмная база с бирюзовым акцентом, крупные скруглённые карточки,
   размытые цветные пятна на фоне. Подключается после bootstrap.css
   и перекрывает его там, где нужно. */

:root {
  --ink: #0a1628;
  --ink-deep: #060f1c;
  --ink-soft: #12233c;
  --turquoise: #00d9c0;
  --neon: #39ff14;
  --purple: #a855f7;
  --pink: #ec4899;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.5);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --hairline: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --section: 96px;
}

.av body,
body.av {
  background: var(--ink);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.av h1, .av h2, .av h3, .av h4,
.av .display {
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--text);
}

/* Общее правило для ссылок намеренно узкое: если красить все <a> подряд,
   оно перебивает цвет текста у кнопок и ссылок-компонентов, и надпись
   сливается с фоном. Компоненты задают свой цвет сами. */
.av a { text-decoration: none; }
.av p a,
.av li a,
.av td a,
.av .av-page a,
.av .form-policy a { color: var(--turquoise); }
.av p a:hover,
.av li a:hover,
.av td a:hover,
.av .av-page a:hover,
.av .form-policy a:hover { color: var(--neon); }

.av-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.av-section {
  position: relative;
  padding: var(--section) 0;
  /* фоновые пятна вылезают за края секции — обрезаем, иначе появляется
     горизонтальная прокрутка страницы */
  overflow: hidden;
}

.av-section--tinted {
  background: linear-gradient(180deg, var(--ink), rgba(10, 79, 107, 0.2), var(--ink));
}

/* размытые пятна — фоновая атмосфера, к содержимому отношения не имеют */
.av-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.av-orb--turquoise { background: rgba(0, 217, 192, 0.12); }
.av-orb--purple { background: rgba(168, 85, 247, 0.12); }
.av-orb--pink { background: rgba(236, 72, 153, 0.1); }

.av-section > .av-wrap { position: relative; z-index: 1; }

.av-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(0, 217, 192, 0.1);
  border: 1px solid rgba(0, 217, 192, 0.25);
  color: var(--turquoise);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.av-title {
  font-size: clamp(30px, 4.4vw, 48px);
  margin: 0 0 16px;
}

.av-lead {
  max-width: 62ch;
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 48px;
}

.av-section--center { text-align: center; }
.av-section--center .av-lead { margin-left: auto; margin-right: auto; }

/* ── шапка ─────────────────────────────────────────────── */
.av-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.av-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.av-brand {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  white-space: nowrap;
}
.av-brand:hover { color: var(--turquoise); }
.av-brand span { color: var(--turquoise); }

.av-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}
.av-nav a { color: var(--text-muted); }
.av-nav a:hover { color: var(--turquoise); }

.av-header__phone {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.av-header__phone:hover { color: var(--turquoise); }

/* ── кнопки ────────────────────────────────────────────── */
.av-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
/* цвет текста кнопок задаём с запасом по специфичности, чтобы его
   не перебивали общие правила для ссылок */
.av .av-btn--primary,
.av a.av-btn--primary {
  background: var(--turquoise);
  color: var(--ink-deep);
  box-shadow: 0 10px 30px rgba(0, 217, 192, 0.25);
}
.av .av-btn--primary:hover,
.av a.av-btn--primary:hover {
  color: var(--ink-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 217, 192, 0.35);
}
.av .av-btn--ghost,
.av a.av-btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}
.av .av-btn--ghost:hover,
.av a.av-btn--ghost:hover { background: var(--surface-hover); color: var(--text); }
.av-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── герой ─────────────────────────────────────────────── */
.av-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 var(--section);
  background: radial-gradient(1000px 500px at 80% -10%, rgba(0, 217, 192, 0.14), transparent 60%),
              var(--ink);
}

.av-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.av-hero h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  margin: 0 0 20px;
}
.av-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--turquoise), var(--neon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.av-hero__lead {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 54ch;
}

.av-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.av-chip {
  padding: 7px 15px;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--text-muted);
}

.av-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
}
.av-price__value {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 42px);
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}
.av-price__note { color: var(--text-faint); font-size: 15px; }

.av-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.av-hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.av-hero__media img { display: block; width: 100%; height: auto; }

/* ── сетки карточек ────────────────────────────────────── */
.av-grid { display: grid; gap: 20px; }
.av-grid--2 { grid-template-columns: repeat(2, 1fr); }
.av-grid--3 { grid-template-columns: repeat(3, 1fr); }
.av-grid--4 { grid-template-columns: repeat(4, 1fr); }

.av-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  transition: background .3s ease, transform .3s ease;
}
.av-card:hover { background: var(--surface-hover); transform: translateY(-3px); }
.av-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.av-card p { color: var(--text-muted); margin: 0; font-size: 15px; }

.av-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 20px;
  background: rgba(0, 217, 192, 0.12);
  color: var(--turquoise);
}
.av-card:nth-child(4n+2) .av-card__icon { background: rgba(168, 85, 247, .12); color: var(--purple); }
.av-card:nth-child(4n+3) .av-card__icon { background: rgba(236, 72, 153, .12); color: var(--pink); }
.av-card:nth-child(4n+4) .av-card__icon { background: rgba(57, 255, 20, .12); color: var(--neon); }

/* ── плитки характеристик ──────────────────────────────── */
.av-stat {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.av-stat__value {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--turquoise);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.av-stat__label { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* ── медиа-карточки ────────────────────────────────────── */
.av-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.av-media img,
.av-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.av-media img { transition: transform .5s ease; }
.av-media:hover img { transform: scale(1.04); }

.av-media__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(6, 15, 28, 0.9));
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.av-media--tall { grid-row: span 2; }
.av-media--wide { grid-column: span 2; }

.av-scheme {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #fff;
  padding: 16px;
}
.av-scheme img { display: block; width: 100%; height: auto; }

/* ── цена и условия ────────────────────────────────────── */
.av-offer {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
  background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.av-offer__price {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 52px);
  color: var(--neon);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.av-list { list-style: none; margin: 0; padding: 0; }
.av-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.av-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  border-radius: 9999px;
  background: rgba(0, 217, 192, .15);
  border: 1px solid var(--turquoise);
}
.av-list li:last-child { margin-bottom: 0; }

/* ── форма ─────────────────────────────────────────────── */
.av-form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}
.av-form .form-group { margin-bottom: 18px; }
.av-form label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.av-form .form-control,
.av-form input[type="text"],
.av-form input[type="tel"],
.av-form input[type="email"],
.av-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--hairline);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}
.av-form .form-control:focus,
.av-form input:focus,
.av-form textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(0, 217, 192, .18);
  background: rgba(255, 255, 255, .09);
}
.av-form .form-control::placeholder { color: var(--text-faint); }
.av-form button[type="submit"] {
  width: 100%;
  padding: 15px 28px;
  border-radius: 9999px;
  border: none;
  background: var(--turquoise);
  color: var(--ink-deep);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.av-form button[type="submit"]:disabled { opacity: .45; cursor: not-allowed; }
.av-form .form-policy { font-size: 13px; color: var(--text-muted); }
.av-form .form-policy a { color: var(--turquoise); }
.av-form .form-policy label { display: inline; margin: 0; font-size: 13px; }
.av-form .alert { border-radius: 12px; }

/* ── контакты ──────────────────────────────────────────── */
.av-contact {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
}
.av-contact__label {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.av-contact__value {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}
.av-contact__value a { color: var(--text); }
.av-contact__value a:hover { color: var(--turquoise); }
.av-contact small { display: block; color: var(--text-muted); margin-top: 6px; font-size: 14px; }

/* реквизиты продавца — строка под карточками контактов */
.av-requisites {
  margin-top: 20px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.av-requisites__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 32px;
}
.av-requisites__grid span {
  display: block;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.av-requisites__grid b {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── подвал ────────────────────────────────────────────── */
.av-footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0;
  background: var(--ink-deep);
}
.av-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 18px; }
.av-footer__legal a { color: var(--text-muted); font-size: 14px; }
.av-footer__legal a:hover { color: var(--turquoise); }
.av-footer__copy { color: var(--text-faint); font-size: 14px; }

/* ── внутренние страницы ───────────────────────────────── */
.av-page { padding: 56px 0 var(--section); }
.av-page h1, .av-page h2, .av-page h3 { margin-top: 32px; }
.av-page p, .av-page li { color: var(--text-muted); }
.av-page table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.av-page th, .av-page td {
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  text-align: left;
}
.av-page img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ── cookie-баннер ─────────────────────────────────────── */
/* У баннера и окна настроек своя светлая подложка, а тема сайта тёмная:
   без этого белый текст ложится на белый фон. */
.av #cookie-modal h3,
.av #cookie-modal label,
.av #cookie-modal p,
.av #cookie-modal div {
  color: #16202b;
}
.av #cookie-modal button {
  background: var(--turquoise);
  color: #060f1c;
  border: none;
  border-radius: 9999px;
  padding: 9px 20px;
  font-weight: 600;
  cursor: pointer;
}
.av #cookie-modal #close-modal {
  background: transparent;
  color: #5a6875;
  border: 1px solid #dde2e7;
}
.av #cookie-notification span,
.av #cookie-notification div { color: #4b5563; }
.av #cookie-notification a { color: #0f766e; text-decoration: underline; }
.av #cookie-notification .cookie { color: #16202b; }

/* ── адаптив ───────────────────────────────────────────── */
@media (max-width: 992px) {
  .av-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .av-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .av-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .av-offer { grid-template-columns: 1fr; padding: 28px; }

  /* на узком экране меню уезжает под шапку отдельной лентой,
     иначе якоря на разделы становятся недоступны */
  .av-header__inner { flex-wrap: wrap; gap: 12px 16px; padding: 12px 0; }
  .av-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .av-nav::-webkit-scrollbar { display: none; }
  .av-nav a { white-space: nowrap; }
  .av-header__phone { margin-left: auto; }
}

@media (max-width: 576px) {
  :root { --section: 64px; }
  .av-wrap { padding: 0 16px; }
  .av-grid--2, .av-grid--3, .av-grid--4 { grid-template-columns: 1fr; }
  .av-media--wide, .av-media--tall { grid-column: auto; grid-row: auto; }
  .av-form { padding: 24px; }
  .av-header__phone { font-size: 15px; }
  .av-header .av-btn { padding: 11px 18px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .av-card, .av-media img, .av-btn { transition: none; }
  .av-card:hover, .av-btn:hover { transform: none; }
}
