/* ===========================
   AURORAICE TRACKS — GLOBAL
   ОБНОВЛЁННЫЙ ДИЗАЙН
   =========================== */

/* ШРИФТЫ (локальные ttf из папки /fonts) */
@font-face {
  font-family: "AuroraManrope";
  src: url("../fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AuroraManrope";
  src: url("../fonts/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AuroraManrope";
  src: url("../fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AuroraRusso";
  src: url("../fonts/RussoOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* НОВАЯ ПАЛИТРА: ЛЕДЯНОЙ ГРАФИТ + СВЕТ ЛАМПЫ */

:root {
  --ai-color-bg: #050609;              /* ночь над льдом */
  --ai-color-bg-elevated: #0d1016;     /* графит */
  --ai-color-bg-soft: #141922;         /* сланец */

  --ai-color-aurora-1: #ffb347;        /* янтарный свет лампы */
  --ai-color-aurora-2: #ffd97a;        /* тёплый отблеск */
  --ai-color-aurora-3: #6ec3ff;        /* ледяная искра */

  --ai-color-text-main: #f6f3ee;
  --ai-color-text-soft: #d2d7e0;
  --ai-color-text-muted: #8b93a3;

  --ai-color-border-soft: rgba(255, 197, 122, 0.32);
  --ai-color-chip-bg: rgba(12, 17, 26, 0.96);

  --ai-radius-lg: 24px;
  --ai-radius-md: 16px;
  --ai-radius-pill: 999px;

  --ai-shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.7);
  --ai-shadow-glow: 0 0 42px rgba(255, 179, 71, 0.45);

  --ai-header-height: 76px;

  --ai-transition-fast: 160ms ease-out;
  --ai-transition-base: 220ms ease-out;

  --ai-max-width: 1180px;
}

/* БАЗА */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.ai-body {
  min-height: 100vh;
  font-family: "AuroraManrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ai-color-text-main);
  background:
    radial-gradient(circle at 10% 110%, rgba(255, 179, 71, 0.17) 0, transparent 55%),
    radial-gradient(circle at 90% -10%, rgba(110, 195, 255, 0.18) 0, transparent 55%),
    linear-gradient(180deg, #050609 0%, #05070b 50%, #040509 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Контейнер */

.ai-wrap {
  width: 100%;
  max-width: var(--ai-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Картинки: не более 350px в ширину в секциях */

.ai-section img {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 18px;
}

/* ХЕДЕР — НОВАЯ ФАКТУРА (как приборная панель в снегу) */

.ai-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  height: var(--ai-header-height);
  z-index: 40;
  background-image:
    linear-gradient(to bottom, rgba(7, 9, 14, 0.98), rgba(10, 14, 22, 0.98)),
    repeating-linear-gradient(
      to right,
      rgba(255, 197, 122, 0.09) 0,
      rgba(255, 197, 122, 0.09) 1px,
      transparent 1px,
      transparent 12px
    );
  border-bottom: 1px solid rgba(255, 197, 122, 0.35);
  backdrop-filter: blur(22px);
  transition:
    background-image var(--ai-transition-base),
    border-color var(--ai-transition-base),
    transform 200ms ease-out;
}

.ai-header--scrolled {
  background-image:
    linear-gradient(to bottom, rgba(7, 9, 14, 0.98), rgba(7, 9, 14, 0.99)),
    repeating-linear-gradient(
      to right,
      rgba(110, 195, 255, 0.18) 0,
      rgba(110, 195, 255, 0.18) 1px,
      transparent 1px,
      transparent 14px
    );
  border-bottom-color: rgba(110, 195, 255, 0.5);
}

.ai-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ЛОГОТИП */

.ai-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--ai-color-text-main);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-logo__mark {
  font-family: "AuroraRusso", system-ui, sans-serif;
  font-size: 1.06rem;
  padding: 4px 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 179, 71, 0.35), transparent 60%),
    linear-gradient(130deg, #1d1810, #262229);
  border: 1px solid rgba(255, 197, 122, 0.7);
  box-shadow: 0 0 18px rgba(255, 179, 71, 0.5);
}

.ai-logo__text {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--ai-color-text-soft);
}

/* НАВИГАЦИЯ */

.ai-nav {
  position: relative;
}

.ai-nav__list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-nav__link {
  position: relative;
  font-size: 0.92rem;
  color: var(--ai-color-text-soft);
  text-decoration: none;
  padding-block: 6px;
  transition: color var(--ai-transition-fast);
}

.ai-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -4px;
  height: 2px;
  border-radius: 999px;
  transform-origin: center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--ai-color-aurora-1), var(--ai-color-aurora-3));
  transition: transform var(--ai-transition-base);
}

.ai-nav__link:hover,
.ai-nav__link:focus-visible {
  color: var(--ai-color-text-main);
}

.ai-nav__link:hover::after,
.ai-nav__link:focus-visible::after,
.ai-nav__link--active::after {
  transform: scaleX(1);
}

/* Бургер */

/* КРАСИВЫЙ БУРГЕР В КРУГЛОЙ КНОПКЕ */

.ai-nav__toggle {
  display: none; /* на десктопе скрыт */
  border: none;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 179, 71, 0.4), transparent 55%),
    linear-gradient(135deg, #161118, #090b12);
  border: 1px solid rgba(255, 197, 122, 0.6);
  box-shadow:
    0 0 0 1px rgba(5, 7, 12, 0.9),
    0 0 14px rgba(255, 179, 71, 0.5);
  align-items: center;
  justify-content: center;
  transition:
    background var(--ai-transition-base),
    box-shadow var(--ai-transition-base),
    transform var(--ai-transition-fast);
}


.ai-nav__toggle:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(5, 7, 12, 1),
    0 0 22px rgba(255, 179, 71, 0.9);
}

.ai-nav__toggle:focus-visible {
  outline: 2px solid var(--ai-color-aurora-3);
  outline-offset: 3px;
}

/* Три полоски внутри кнопки */

.ai-nav__line {
  display: block;
  height: 2px;
  width: 22px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--ai-color-aurora-3),
    var(--ai-color-aurora-1)
  );
  box-shadow: 0 0 6px rgba(255, 179, 71, 0.7);
  transition:
    transform var(--ai-transition-fast),
    opacity var(--ai-transition-fast),
    width var(--ai-transition-fast),
    background var(--ai-transition-fast);
}

.ai-nav__line + .ai-nav__line {
  margin-top: 5px;
}

/* Чуть разная длина полосок для «живости» */

.ai-nav__line--top {
  width: 18px;
}

.ai-nav__line--mid {
  width: 14px;
  opacity: 0.9;
}

.ai-nav__line--bot {
  width: 22px;
}

/* Анимация в «крестик» при открытом меню */

.ai-header--nav-open .ai-nav__toggle {
  background:
    radial-gradient(circle at 100% 0, rgba(110, 195, 255, 0.35), transparent 60%),
    linear-gradient(135deg, #181018, #090b12);
  box-shadow:
    0 0 0 1px rgba(5, 7, 12, 1),
    0 0 26px rgba(110, 195, 255, 0.9);
}

.ai-header--nav-open .ai-nav__line {
  background: linear-gradient(
    90deg,
    var(--ai-color-aurora-1),
    var(--ai-color-aurora-3)
  );
  width: 22px;
}

.ai-header--nav-open .ai-nav__line--top {
  transform: translateY(7px) rotate(42deg);
}

.ai-header--nav-open .ai-nav__line--mid {
  opacity: 0;
}

.ai-header--nav-open .ai-nav__line--bot {
  transform: translateY(-7px) rotate(-42deg);
}


/* MAIN & FOOTER */

.ai-main {
  padding-top: calc(var(--ai-header-height) + 26px);
  padding-bottom: 80px;
}

.ai-section {
  padding-block: 72px;
}

.ai-footer {
  border-top: 1px solid rgba(255, 197, 122, 0.32);
  background:
    radial-gradient(circle at 0 0, rgba(255, 179, 71, 0.18), transparent 55%),
    linear-gradient(to top, #050609, #090b11);
  padding-block: 28px 32px;
  margin-top: auto;
}

.ai-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--ai-color-text-soft);
}

.ai-footer__brand strong {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* КНОПКИ, ЧИПЫ */

.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: var(--ai-radius-pill);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--ai-transition-base),
    border-color var(--ai-transition-base),
    color var(--ai-transition-base),
    transform var(--ai-transition-fast),
    box-shadow var(--ai-transition-fast);
}

/* Новая кнопка: свет лампы */
.ai-btn--primary {
  background:
    radial-gradient(circle at 0 0, rgba(255, 179, 71, 0.6), transparent 60%),
    linear-gradient(130deg, #ffb347, #ff7e45, #ffd97a);
  color: #2b1505;
  box-shadow: var(--ai-shadow-glow);
}

.ai-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(255, 179, 71, 0.9);
}

.ai-btn--ghost {
  background: rgba(10, 13, 20, 0.8);
  border-color: rgba(110, 195, 255, 0.5);
  color: var(--ai-color-text-soft);
}

.ai-btn--ghost:hover {
  border-color: var(--ai-color-aurora-3);
  color: var(--ai-color-text-main);
  background: radial-gradient(circle at 100% 0, rgba(110, 195, 255, 0.16), transparent 60%);
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--ai-radius-pill);
  border: 1px solid rgba(255, 197, 122, 0.4);
  background:
    linear-gradient(135deg, rgba(12, 17, 26, 0.96), rgba(9, 13, 21, 0.98)),
    radial-gradient(circle at 0 0, rgba(255, 179, 71, 0.2), transparent 55%);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* REVEAL-АНИМАЦИЯ */

.ai-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}

.ai-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ключевые кадры для лёгкого "дрейфа" */

@keyframes ai-drift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Мягкие полосы света вместо старой ауроры */
@keyframes ai-aurora-flow {
  0% { transform: translateX(-8%); opacity: 0.65; }
  50% { transform: translateX(5%); opacity: 0.9; }
  100% { transform: translateX(-8%); opacity: 0.65; }
}

/* АДАПТИВ */

/* Планшеты и ниже */
@media (max-width: 992px) {
  .ai-nav__list {
    position: fixed;
    inset-inline: 16px;
    inset-block-start: calc(var(--ai-header-height) + 10px);
    padding: 18px 18px 16px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(5, 7, 12, 0.98), rgba(5, 7, 12, 0.98)),
      radial-gradient(circle at 0 0, rgba(255, 179, 71, 0.22), transparent 60%);
    box-shadow: var(--ai-shadow-soft);
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--ai-transition-base), transform var(--ai-transition-base);
  }

  .ai-header--nav-open .ai-nav__list {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .ai-nav__toggle {
    display: inline-flex;
  }
}

/* Мобильные < 640px */
@media (max-width: 640px) {
  .ai-main {
    padding-top: calc(var(--ai-header-height) + 18px);
  }

  .ai-section {
    padding-block: 56px;
  }

  .ai-footer__grid {
    flex-direction: column;
  }
}

/* Очень узкие устройства */
@media (max-width: 400px) {
  .ai-wrap {
    padding-inline: 14px;
  }
}
.ai-footer__legal {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.82rem;
}

.ai-footer__legal-link {
  color: var(--ai-color-text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--ai-transition-fast), border-color var(--ai-transition-fast);
}

.ai-footer__legal-link:hover,
.ai-footer__legal-link:focus-visible {
  color: var(--ai-color-text-main);
  border-color: rgba(255, 197, 122, 0.7);
}

.ai-footer__divider {
  color: var(--ai-color-text-muted);
  opacity: 0.7;
}

/* на мобилке — в две-три строки по необходимости */
@media (max-width: 640px) {
  .ai-footer__legal {
    gap: 4px;
  }
}
