/* ============================================================
   Асана — студия йоги
   Тёмная тёплая палитра · редакторская типографика · mobile-first
   ============================================================ */

:root {
  --bg-page: #1c1a17;
  --bg-card: #28241f;
  --bg-card-2: #302b25;
  --bg-sunken: #191712;
  --accent: #e0c9a3;
  --accent-strong: #f0ddba;
  --brand: #b8a88c;
  --text-primary: #f4efe6;
  --text-muted: #b4aa9c;
  --text-on-accent: #211c15;
  --line: #3a342c;
  --morning: #d9b98a;
  --evening: #7f92a8;
  --radius: 14px;
  --radius-lg: 22px;
  --font-heading: Georgia, "Times New Roman", "Liberation Serif", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  text-wrap: balance;
}

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

/* ---------- Icons ---------- */
.ico {
  width: 18px;
  height: 18px;
  flex: none;
}

.ico-lg {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

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

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 0 0 0 rgba(224, 201, 163, 0.45);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--text-on-accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(224, 201, 163, 0.22);
}

.btn-small {
  padding: 10px 18px;
  font-size: 14px;
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line);
}

.btn-small:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

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

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-logo:hover {
  color: var(--accent-strong);
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 26, 23, 0.55) 0%, rgba(28, 26, 23, 0.35) 45%, rgba(28, 26, 23, 0.92) 100%),
    linear-gradient(90deg, rgba(28, 26, 23, 0.82) 0%, rgba(28, 26, 23, 0.35) 70%, rgba(28, 26, 23, 0.25) 100%);
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 20px 72px;
}

.breath {
  width: 2px;
  height: 220px;
  flex: none;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--accent) 45%, var(--accent) 55%, transparent);
  box-shadow: 0 0 18px rgba(224, 201, 163, 0.55);
  transform-origin: center;
  animation: breathe 6s ease-in-out infinite;
}

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

.hero-copy {
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(3rem, 11vw, 6.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.02;
  margin-bottom: 20px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  line-height: 1.35;
  color: var(--text-primary);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hero-hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-hours .ico {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin-bottom: 12px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 36px;
}

/* ---------- Schedule ---------- */
.schedule-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.schedule {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 15px;
}

.schedule thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.schedule tbody th,
.schedule tbody td {
  padding: 15px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.schedule tbody tr:last-child th,
.schedule tbody tr:last-child td {
  border-bottom: none;
}

.day-cell {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-primary);
  white-space: nowrap;
}

.time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.class-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* morning / evening tint via left accent */
.slot-morning td:first-of-type,
.slot-morning .time {
  box-shadow: inset 3px 0 0 var(--morning);
}

.slot-evening td:first-of-type,
.slot-evening .time {
  box-shadow: inset 3px 0 0 var(--evening);
}

.slot-weekend td:first-of-type,
.slot-weekend .time {
  box-shadow: inset 3px 0 0 var(--brand);
}

.slot-off .day-cell {
  color: var(--text-muted);
}

.off-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--bg-card-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  margin-right: 10px;
}

.off-note {
  color: var(--text-muted);
  font-size: 14px;
}

.schedule-legend {
  display: flex;
  gap: 22px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-morning {
  background: var(--morning);
}

.dot-evening {
  background: var(--evening);
}

/* ---------- Pricing ---------- */
.pricing-banner {
  text-align: center;
  margin-bottom: 26px;
}

.pricing-banner-mark {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--accent);
  padding: 10px 22px;
  border: 1px dashed var(--brand);
  border-radius: 999px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}

.price-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.price-value {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 6vw, 2.9rem);
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 10px;
}

.price-note {
  color: var(--text-muted);
  font-size: 15px;
}

.price-card-featured {
  border-color: var(--brand);
  background: var(--bg-card-2);
  box-shadow: 0 0 0 1px var(--brand) inset;
}

.price-ribbon {
  position: absolute;
  top: -11px;
  right: 22px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
}

.pricing-foot {
  margin-top: 26px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 150px;
  height: 180px;
  margin: 0 auto 18px;
  border-radius: 150px 150px 20px 20px;
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-sunken));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.03);
}

.team-photo span {
  font-family: var(--font-heading);
  font-size: 44px;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--brand);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-quote {
  color: var(--text-muted);
  font-size: 15px;
  font-style: italic;
  max-width: 300px;
  margin: 0 auto;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.5;
}

.contact-value a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand);
}

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

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.contact-cta-text {
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
}

.footer-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-phone a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-phone a:hover {
  color: var(--accent-strong);
}

/* ---------- Focus (a11y) ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .breath {
    animation: none;
  }
  .btn, .price-card, .team-photo {
    transition: none;
  }
}

/* ---------- Tablet (>= 768px) ---------- */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .section {
    padding: 96px 0;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .footer-phone {
    margin-left: auto;
  }
}

/* ---------- Desktop (>= 1024px) ---------- */
@media (min-width: 1024px) {
  .hero-inner {
    gap: 44px;
  }
  .breath {
    height: 260px;
  }
}

/* ---------- Hide nav links on very small screens ---------- */
@media (max-width: 560px) {
  .nav-links {
    display: none;
  }
}
