/* =========================================================
   AlaSound — стили
   Токены цвета собраны в :root — их удобно менять для правок.
   ========================================================= */

:root {
  --ink: #0b0a0d;
  --panel: #141218;
  --panel-2: #1b1820;
  --line: #2b2733;
  --bone: #f1ece4;
  --muted: #96908b;
  --flame: #ff5a36;
  --flame-dim: #b33f22;
  --gold: #c9a227;

  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;

  --wrap: 1180px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;

  --ease: cubic-bezier(.19,1,.22,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; color: var(--muted); }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

button { font: inherit; }

.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;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--flame);
  color: #0b0a0d;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--flame); color: #150a06; }
.btn-primary:hover { background: #ff6c4b; }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--bone);
}
.btn-outline:hover { border-color: var(--flame); color: var(--flame); }

.btn-ghost {
  background: transparent;
  color: var(--bone);
  padding: 10px 20px;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--bone); }

.btn-lg { padding: 17px 32px; font-size: 16px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,10,13,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--bone);
}
.logo-mark { color: var(--flame); display: flex; }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--bone); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--flame);
  transition: right .25s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { display: inline-flex; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--bone);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.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); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 26px;
  border-top: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.mobile-nav.is-open { display: flex; max-height: 560px; }
.mobile-nav a {
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
}
.mobile-nav .btn { margin-top: 16px; align-self: flex-start; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 76px;
  border-bottom: 1px solid var(--line);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.waveform {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 4%;
  opacity: 0.5;
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
}
.waveform span {
  flex: 1;
  background: linear-gradient(to top, var(--flame), transparent);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: wave 2.6s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(255,90,54,0.16), transparent 65%);
  filter: blur(10px);
}

.hero-inner { position: relative; z-index: 1; max-width: 780px; }

.hero-kicker { font-size: 14px; font-weight: 700; color: var(--flame); margin-bottom: 18px; }

.hero-title { font-size: clamp(2.6rem, 8vw, 5.6rem); margin-bottom: 24px; }
.reveal-line { display: block; overflow: hidden; }
.reveal-line span {
  display: block;
  transform: translateY(110%);
  animation: revealUp 0.9s var(--ease) forwards;
}
.reveal-line:nth-child(2) span { animation-delay: 0.12s; color: var(--flame); }

@keyframes revealUp { to { transform: translateY(0); } }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--bone);
  opacity: .82;
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}
.hero-secondary-link:hover { color: var(--bone); border-color: var(--bone); gap: 12px; }
.hero-secondary-link svg { transform: rotate(90deg); }

.hero-meta {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-meta span { position: relative; padding-left: 16px; }
.hero-meta span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--flame);
  transform: translateY(-50%);
}

/* ---------- Общие заголовки секций ---------- */
section { padding: 96px 0; }

.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-head p { font-size: 16.5px; }

/* ---------- Направления (треклист) ---------- */
.directions { border-bottom: 1px solid var(--line); }

.track-list { border-top: 1px solid var(--line); }

.track-row { border-bottom: 1px solid var(--line); }

.track-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 4px;
  background: transparent;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .3s ease, padding-left .3s var(--ease);
}
.track-trigger:hover, .track-trigger:focus-visible { background: var(--panel); padding-left: 20px; }

.track-main { display: block; max-width: 720px; }

.track-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(201,162,39,0.4);
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.track-desc { display: block; font-size: 15.5px; max-width: 60ch; color: var(--muted); }

.track-arrow {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--muted);
  transition: color .3s ease, transform .3s var(--ease);
}
.track-trigger:hover .track-arrow, .track-trigger:focus-visible .track-arrow { color: var(--flame); transform: rotate(45deg); }

/* ---------- Почему AlaSound ---------- */
.why { background: var(--panel); border-bottom: 1px solid var(--line); }

.why-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }

.why-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 18px; }
.why-lead { font-size: 17px; color: var(--bone); opacity: .85; }

.why-list { display: grid; gap: 0; }
.why-list li { display: flex; gap: 22px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.why-list li:first-child { padding-top: 0; }
.why-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--flame); min-width: 58px; }
.why-list p { font-size: 15.5px; }

/* ---------- Первое занятие ---------- */
.first-lesson { position: relative; }
.first-lesson-inner {
  max-width: 700px;
  position: relative;
  padding-left: 2px;
}
.first-lesson-inner::before {
  content: "”";
  position: absolute;
  top: -70px;
  left: -18px;
  font-family: var(--font-display);
  font-size: 220px;
  line-height: 1;
  color: var(--flame);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}
.first-lesson h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 20px; max-width: 18ch; }
.first-lesson p { font-size: 16.5px; margin-bottom: 32px; max-width: 55ch; }

/* ---------- Цены ---------- */
.pricing { border-bottom: 1px solid var(--line); }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s var(--ease);
}
.price-card:hover { border-color: var(--flame); transform: translateY(-4px); }

.price-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--bone);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}

.price-count { font-size: 14px; font-weight: 700; color: var(--muted); }
.price-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }
.price-value i { font-style: normal; font-size: 1rem; color: var(--muted); font-family: var(--font-body); }
.price-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

.price-card--best {
  background: linear-gradient(160deg, rgba(255,90,54,0.14), var(--panel));
  border-color: var(--flame-dim);
}
.price-best-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--flame);
  color: #150a06;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}

.price-info {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  cursor: default;
}
.price-info:hover, .price-info:focus-visible { color: var(--flame); border-color: var(--flame); }

.price-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 240px;
  background: var(--ink);
  border: 1px solid var(--flame-dim);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bone);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow: 0 14px 30px rgba(0,0,0,.5);
}
.price-info:hover .price-tooltip,
.price-info:focus-visible .price-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.price-details {
  padding: 0 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-per { font-size: 14.5px; font-weight: 700; color: var(--flame); margin: 0; }
.price-fit { font-size: 13.5px; margin: 0; color: var(--muted); }

.promo {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px dashed var(--flame-dim);
  border-radius: var(--radius-m);
  padding: 28px 30px;
  background: rgba(255,90,54,0.05);
}
.promo-badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--flame); margin-bottom: 8px; }
.promo-text h3 { font-size: 1.4rem; margin-bottom: 8px; }
.promo-text p { font-size: 14.5px; max-width: 52ch; }
.promo-text strong { color: var(--bone); }

/* ---------- Гибкий график ---------- */
.schedule { background: var(--panel); border-bottom: 1px solid var(--line); }
.schedule-inner { display: grid; grid-template-columns: auto 1fr; gap: 52px; align-items: center; }
.schedule-text h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 16px; }
.schedule-text p { font-size: 16.5px; max-width: 50ch; }

/* ---------- Отзывы ---------- */
.reviews { border-bottom: 1px solid var(--line); }

.review-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.review-list::-webkit-scrollbar { height: 6px; }
.review-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.review-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--panel);
  border-left: 3px solid var(--flame);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-list li:nth-child(2) { border-left-color: var(--gold); }
.review-list li:nth-child(3) { border-left-color: var(--muted); }
.review-list li:nth-child(4) { border-left-color: var(--flame-dim); }
.review-list li:nth-child(5) { border-left-color: var(--gold); }

.review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--bone);
}

.review-text { font-size: 15px; color: var(--bone); opacity: .9; }

.review-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-name { font-size: 13.5px; font-weight: 700; color: var(--muted); }

/* ---------- Локация ---------- */
.location { border-bottom: 1px solid var(--line); }
.location-text { max-width: 620px; }
.location-text h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 20px; }
.location-address { font-size: 1.25rem; font-weight: 700; color: var(--bone); margin-bottom: 6px; }
.location-text p { font-size: 15.5px; margin-bottom: 26px; }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .25s ease, transform .25s var(--ease), background-color .25s ease;
}
.contact-card:hover { border-color: var(--flame); background: var(--panel); transform: translateY(-3px); }
.contact-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.contact-value { font-size: 16px; font-weight: 700; }

/* ---------- Финальный CTA ---------- */
.final-cta { padding: 120px 0; }
.final-cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.final-cta h2 { font-size: clamp(2rem, 6vw, 3.4rem); max-width: 16ch; }

/* ---------- Футер ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 110px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.footer-inner a:hover { color: var(--bone); }

/* ---------- Мобильная кнопка записи ---------- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  text-align: center;
  background: var(--flame);
  color: #150a06;
  font-weight: 700;
  padding: 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

/* ---------- Модальное окно направления ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6,5,7,0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal-overlay[hidden] { display: none; }

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 44px 38px;
  transform: translateY(16px) scale(0.98);
  transition: transform .3s var(--ease);
}
.modal-overlay.is-open .modal-panel { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.modal-close:hover { border-color: var(--flame); color: var(--flame); }

.modal-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(201,162,39,0.4);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.modal-panel h3 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 14px;
  padding-right: 30px;
}

.modal-lead { font-size: 16px; color: var(--bone); opacity: .88; margin-bottom: 24px; }

.modal-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.modal-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--muted);
}
.modal-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--flame);
  border-radius: 2px;
}

.modal-fit {
  font-size: 13.5px;
  color: var(--bone);
  opacity: .75;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 26px;
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 980px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }

  .why-grid, .schedule-inner { grid-template-columns: 1fr; }

  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero { padding: 56px 0 60px; }
  .hero-meta { margin-top: 36px; }
  .price-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .promo { flex-direction: column; align-items: flex-start; }
  .site-footer { padding-bottom: 120px; }
  .mobile-sticky-cta { display: block; }
  .track-trigger:hover, .track-trigger:focus-visible { padding-left: 4px; }
  .review-card { flex-basis: 82vw; }
  .modal-panel { padding: 34px 24px; }
  .first-lesson-inner::before { font-size: 140px; top: -40px; }
}
