/* ============================================================
   «Асана» — студия йоги в Екатеринбурге
   Тёмная «тихая» палитра: графитово-зелёный фон, тёплый песочный свет.
   ============================================================ */

:root {
  --bg-page: #141816;
  --bg-card: #1c2320;
  --bg-elevated: #222a26;
  --brand: #7c9a8e;
  --accent: #d9a86b;
  --accent-hover: #c3905a;
  --accent-ink: #1b1711;
  --text-primary: #f2f0ea;
  --text-muted: #b9c0ba;
  --border: rgba(242, 240, 234, 0.10);
  --border-strong: rgba(242, 240, 234, 0.18);

  --font-display: Georgia, 'Times New Roman', 'Liberation Serif', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --section-pad: clamp(72px, 9vw, 120px);
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

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

p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* In-text links get a non-color cue (underline) so they are distinguishable
   from surrounding text even without color vision. */
p a, li a, .schedule-note a, .pricing-note a, .free-sub a, .footer-bottom a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(217, 168, 107, 0.55);
}
p a:hover, li a:hover { text-decoration-color: var(--accent); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.container-narrow { max-width: 720px; }

.ico { width: 20px; height: 20px; flex: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease, color .2s ease;
  white-space: nowrap;
}
.btn .ico { width: 19px; height: 19px; }

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-accent:active { transform: translateY(0); }

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

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .18s ease, background-color .18s ease;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.is-active { color: var(--accent); }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

/* ---------- mobile nav dialog ---------- */
.mobile-nav {
  border: none;
  background: var(--bg-card);
  color: var(--text-primary);
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 24px 28px;
  border-radius: 0;
}
.mobile-nav[open] { display: flex; flex-direction: column; gap: 28px; }
.mobile-nav::backdrop { background: rgba(10, 12, 11, 0.6); }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav-head .brand-name { font-size: 26px; }
.nav-close {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}
.nav-close .ico { width: 26px; height: 26px; }

.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-links a {
  font-size: 24px;
  font-weight: 500;
  font-family: var(--font-display);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-hint {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(124, 154, 142, 0.16), transparent 60%),
    radial-gradient(50% 60% at 12% 82%, rgba(217, 168, 107, 0.08), transparent 60%),
    var(--bg-page);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  min-height: clamp(560px, 82vh, 720px);
  padding-block: clamp(64px, 10vh, 120px);
  position: relative;
  z-index: 1;
}

.hero-kicker {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 600;
  max-width: 16ch;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-style: italic;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-hint {
  color: var(--text-muted);
  font-size: 14.5px;
}

.hero-visual {
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 1 / 1;
  animation: breathe 7s ease-in-out infinite;
  transform-origin: center;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: var(--section-pad); }
.section-alt {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); }
.section-lede {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 60ch;
}

/* page hero (standalone pages) */
.page-hero {
  padding-block: clamp(48px, 8vw, 88px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(124, 154, 142, 0.14), transparent 60%),
    var(--bg-page);
}
.page-title { font-size: clamp(34px, 5vw, 56px); }
.page-lede {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 19px;
  max-width: 60ch;
  line-height: 1.6;
}

/* ============================================================
   Schedule table
   ============================================================ */
.schedule-scroll { overflow-x: auto; }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  min-width: 640px;
}
.schedule-table th, .schedule-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.schedule-table thead th {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
  padding-block: 12px;
}
.schedule-table tbody tr { transition: background-color .15s ease; }
.schedule-table tbody tr:hover { background: rgba(242, 240, 234, 0.035); }

.schedule-table th[scope="row"] {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  position: sticky;
  left: 0;
  background: var(--bg-card);
  z-index: 1;
}
.section:not(.section-alt) .schedule-table th[scope="row"] { background: var(--bg-page); }
.schedule-table .day-full { display: inline; }
.schedule-table .day-short { display: none; }

.time-cell {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.class-name { font-weight: 600; color: var(--text-primary); }
.teacher-cell { color: var(--text-muted); }

.dur-col { text-align: center !important; width: 72px; }
.dur {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 26px;
  padding-inline: 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* current day — warm sand line on the left */
.schedule-table .is-today {
  box-shadow: inset 3px 0 0 0 var(--accent);
}
.schedule-table .is-today th[scope="row"] { color: var(--accent); }

.is-rest { color: var(--text-muted); }
.rest {
  font-style: italic;
  color: var(--text-muted);
}
.rest-cell { color: var(--text-muted); font-style: italic; }

.schedule-note, .pricing-note {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .18s ease, border-color .18s ease;
}
.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.price-name {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 14px;
}
.price-value {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  line-height: 1;
}
.price-foot {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.free-banner {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(120deg, rgba(217, 168, 107, 0.16), rgba(217, 168, 107, 0.05));
  border: 1px solid rgba(217, 168, 107, 0.35);
  border-radius: var(--radius);
  padding: 28px 32px;
  flex-wrap: wrap;
}
.free-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.free-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  margin-top: 6px;
}
.free-sub {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 15px;
}

/* ============================================================
   Team
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.teacher-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.teacher-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.teacher-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(80% 90% at 50% 110%, rgba(124, 154, 142, 0.28), transparent 65%),
    linear-gradient(180deg, #26302b, #1c2320);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.teacher-photo-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 240, 234, 0.14);
}
.teacher-photo-bg .pose { width: 70%; height: auto; }
.teacher-initials {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.55;
  letter-spacing: 0.02em;
}

.teacher-info { padding: 24px 26px 28px; }
.teacher-name { font-size: 23px; }
.teacher-meta {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.teacher-bio {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 15px;
  max-width: 42ch;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.contact-ico {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(217, 168, 107, 0.12);
  color: var(--accent);
}
.contact-ico .ico { width: 20px; height: 20px; }
.contact-label {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-value {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
.contact-link:hover { color: var(--accent); }
.contact-muted { color: var(--text-muted); font-weight: 400; }
.contact-cta { margin-top: 26px; }
.contact-link { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Lead form
   ============================================================ */
.lead-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 44px);
}
.lead-form-head { margin-bottom: 24px; }
.lead-form-title { font-size: 26px; }
.lead-form-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 52ch;
}
.lead-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(124, 154, 142, 0.14);
  border: 1px solid rgba(124, 154, 142, 0.4);
  color: var(--text-primary);
  font-weight: 500;
}
.lead-success .ico { color: var(--brand); margin-top: 2px; }

.lead-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lead-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.lead-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.lead-opt { color: var(--text-muted); font-weight: 400; }
.lead-field input,
.lead-field textarea {
  font: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease;
}
.lead-field input::placeholder,
.lead-field textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
.lead-field input:focus-visible,
.lead-field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 168, 107, 0.25);
}
.lead-field textarea { resize: vertical; min-height: 84px; }
.lead-submit { width: 100%; }

@media (max-width: 640px) {
  .lead-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #101312;
  border-top: 1px solid var(--border);
  padding-block: clamp(48px, 6vw, 72px) 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .brand-mark { margin-top: 4px; }
.footer-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.footer-tagline { color: var(--text-muted); margin-top: 4px; font-size: 15px; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text-muted); font-size: 15.5px; transition: color .15s ease; }
.footer-nav a:hover { color: var(--accent); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 600;
}
.footer-phone:hover { color: var(--accent); }
.footer-phone .ico { width: 18px; height: 18px; color: var(--accent); }
.footer-hours { color: var(--text-muted); font-size: 15px; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    width: 55%;
    justify-self: end;
  }
  .hero-copy { position: relative; z-index: 2; max-width: 100%; }

  .pricing-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-inner { min-height: auto; padding-block: 72px 80px; }
  .hero-visual { width: 70%; opacity: 0.4; }
  .hero-title { max-width: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions .btn { width: 100%; }

  /* schedule → vertical cards */
  .schedule-scroll { overflow: visible; }
  .schedule-table { min-width: 0; display: block; }
  .schedule-table thead { display: none; }
  .schedule-table tbody { display: flex; flex-direction: column; gap: 14px; }
  .schedule-table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    gap: 4px;
  }
  .schedule-table tbody tr:hover { background: var(--bg-elevated); }
  .schedule-table th[scope="row"] {
    position: static;
    background: transparent;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--border);
    font-size: 19px;
  }
  .schedule-table .day-short { display: none; }
  .schedule-table .day-full { display: inline; }
  .schedule-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
  }
  .schedule-table td:last-child { border-bottom: none; }
  .schedule-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.04em;
  }
  .schedule-table .rest-cell { justify-content: flex-start; }
  .schedule-table .is-today { box-shadow: inset 3px 0 0 0 var(--accent); }

  .free-banner { flex-direction: column; align-items: flex-start; }
  .free-banner .btn { width: 100%; }

  .header-inner { gap: 12px; }
  .header-cta { padding: 11px 16px; }
  .header-cta .ico { width: 17px; height: 17px; }
  .brand-name { font-size: 21px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual img { animation: none; }
  .btn, .price-card, .teacher-card { transition: none; }
  .btn:hover, .price-card:hover, .teacher-card:hover { transform: none; }
}
