/* ============================================================
   Асана — студия йоги, Екатеринбург
   Design tokens: тёмный тёплый зал, золотой акцент, шалфей.
   ============================================================ */

:root {
  /* palette */
  --bg-page: #171814;
  --bg-card: #20221c;
  --bg-card-2: #262822;
  --text-primary: #f2efe8;
  --text-muted: #b3aea2;
  --accent: #d6a756;
  --accent-hover: #c19342;
  --accent-ink: #1f1a0e;
  --brand: #9aae93;
  --border: #33352d;
  --border-strong: #44473a;

  /* type — system stacks only (no external fonts at runtime) */
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* rhythm */
  --section-gap: clamp(4.5rem, 10vw, 7.5rem);
  --container: 1080px;
  --radius: 16px;
  --radius-top: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.2rem, 6.5vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

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

.sprite {
  display: none;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #171814;
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--text-primary);
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.main-nav {
  display: flex;
  flex-basis: 100%;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 7px 13px;
  white-space: nowrap;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.main-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--bg-card);
}

.header-cta {
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 28px rgba(214, 167, 86, 0.22);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn .ico {
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 12vh, 7rem);
  background:
    radial-gradient(56rem 56rem at 88% -12%, rgba(214, 167, 86, 0.09), transparent 58%),
    radial-gradient(46rem 46rem at -12% 112%, rgba(154, 174, 147, 0.09), transparent 60%);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 24, 20, 0.62) 0%,
    rgba(23, 24, 20, 0.82) 55%,
    rgba(23, 24, 20, 0.96) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero__title {
  margin-bottom: 1.1rem;
}

.hero__tagline {
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 26em;
  margin-bottom: 2.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero__hint .ico {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* breathing line */
.breath-line {
  margin-top: 3rem;
  width: 1px;
  height: 72px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent),
    transparent
  );
  transform-origin: center;
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section {
  padding-block: var(--section-gap);
}

.section__head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

/* ------------------------------------------------------------
   Schedule
   ------------------------------------------------------------ */
.day-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.day-pills::-webkit-scrollbar {
  display: none;
}

.day-pills a {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 9px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.15s ease, border 0.15s ease, background 0.15s ease;
}

.day-pills a:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.day-pills a.is-rest {
  color: var(--text-muted);
  opacity: 0.7;
  border-style: dashed;
}

.schedule {
  display: grid;
  gap: 20px;
}

.day {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  scroll-margin-top: 90px;
}

.day__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 1.1rem;
}

.day__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.day__rest {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.day__group {
  margin-top: 0.4rem;
}

.day__group-title {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 1.2rem 0 0.7rem;
}

.day__group:first-of-type .day__group-title {
  margin-top: 0;
}

.classes {
  display: grid;
  gap: 12px;
}

.class-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px 16px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-top) var(--radius-top) 10px 10px;
  padding: 14px 16px;
}

.class-card__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.05rem;
}

.class-card__main {
  min-width: 0;
}

.class-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  margin: 0;
}

.class-card__meta {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.class-card__meta strong {
  color: var(--text-primary);
  font-weight: 500;
}

.class-card__duration {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.class-card__book {
  grid-column: 2 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--accent);
}

.class-card__book .ico {
  width: 15px;
  height: 15px;
}

.class-card__book:hover {
  color: var(--accent-hover);
}

@media (min-width: 560px) {
  .class-card {
    grid-template-columns: 72px 1fr auto auto;
  }
  .class-card__book {
    grid-column: auto;
    justify-self: auto;
  }
}

/* ------------------------------------------------------------
   Prices
   ------------------------------------------------------------ */
.prices {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .prices {
    grid-template-columns: repeat(2, 1fr);
  }
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3.5vw, 1.8rem);
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(214, 167, 86, 0.12);
}

.price-card__tag {
  display: inline-block;
  align-self: flex-start;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.price-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.price-card__price {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
  line-height: 1;
}

.price-card__note {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: auto;
}

.price-card__note--free {
  color: var(--brand);
}

.payment-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.payment-note .ico {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex: 0 0 auto;
}

/* ------------------------------------------------------------
   Teachers
   ------------------------------------------------------------ */
.teachers {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .teachers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.teacher-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.6rem);
  text-align: center;
}

.teacher-card__photo {
  width: 128px;
  height: 128px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card-2);
  box-shadow: 0 0 0 1px var(--border), 0 14px 44px rgba(154, 174, 147, 0.14);
  transition: transform 0.25s ease;
}

.teacher-card:hover .teacher-card__photo {
  transform: scale(1.03);
}

.teacher-card__photo svg {
  width: 100%;
  height: 100%;
}

.teacher-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.teacher-card__role {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.teacher-card__exp {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ------------------------------------------------------------
   Gallery
   ------------------------------------------------------------ */
.gallery {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery__caption {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Contacts
   ------------------------------------------------------------ */
.contacts {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .contacts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3.5vw, 1.7rem);
}

.contact-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.contact-card__label .ico {
  width: 17px;
  height: 17px;
}

.contact-card__value {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.contact-card__value a {
  color: var(--accent);
}

.contact-card__value a:hover {
  color: var(--accent-hover);
}

.contact-card__sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* ------------------------------------------------------------
   Final CTA
   ------------------------------------------------------------ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2.2rem, 6vw, 4rem);
  text-align: center;
}

.cta__title {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  margin-bottom: 0.7rem;
}

.cta__lead {
  color: var(--text-muted);
  max-width: 34em;
  margin: 0 auto 1.8rem;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  margin-top: var(--section-gap);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer__copy {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.site-footer__nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer__nav a:hover {
  color: var(--text-primary);
}

/* ------------------------------------------------------------
   Icons
   ------------------------------------------------------------ */
.ico {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .breath-line {
    animation: none;
    opacity: 0.7;
  }
  .btn,
  .teacher-card__photo,
  .main-nav a,
  .day-pills a,
  .class-card__book {
    transition: none;
  }
  .btn-primary:hover {
    transform: none;
  }
  .teacher-card:hover .teacher-card__photo {
    transform: none;
  }
}
