/* ============================================================
   Асана — студия йоги
   Тёплый тёмный полумрак: фон #1a1814, карточки #24201a,
   акцент #d8ab72, бренд #c46f4e.
   ============================================================ */

/* ---- Fonts (self-hosted woff2, cyrillic + latin subsets) ---- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/manrope-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/manrope-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/manrope-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/manrope-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/manrope-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/manrope-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/manrope-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/manrope-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-cyrillic-500-italic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-compatible fallbacks (no layout shift during swap). */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Cormorant Garamond Fallback";
  src: local("Georgia");
  size-adjust: 108%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ---- Design tokens ---- */
:root {
  --bg-page: #1a1814;
  --bg-card: #24201a;
  --bg-card-hover: #2b2620;
  --accent: #d8ab72;
  --accent-strong: #e8c695;
  --brand: #c46f4e;
  --text-primary: #f3ece2;
  --text-muted: #b8ab99;
  --border: #3a342b;
  --font-heading: "Cormorant Garamond", "Cormorant Garamond Fallback", Georgia, serif;
  --font-body: "Manrope", "Manrope Fallback", Arial, sans-serif;
  --radius: 0.75rem;
  --container: 1100px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--text-primary);
}

p { margin: 0; }

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

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

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

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

.icon-sprite { display: none; }

.skip-link {
  position: absolute;
  left: 0; top: -100%;
  z-index: 100;
  background: var(--accent);
  color: #241f18;
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  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;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #241f18;
  box-shadow: 0 0 0 0 rgba(216, 171, 114, 0.35);
}
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-lg { padding: 0.95rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.ico {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 24, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-primary);
}
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.btn-nav { margin-left: 0.5rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 12vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  text-align: left;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 78% 12%, rgba(196, 111, 78, 0.22), transparent 60%),
    radial-gradient(50% 70% at 12% 85%, rgba(216, 171, 114, 0.14), transparent 55%),
    var(--bg-page);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  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='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 820px; }
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(3.5rem, 13vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  font-weight: 500;
  color: var(--text-primary);
  margin: 1.25rem 0 2rem;
  max-width: 30ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-hours .ico { color: var(--accent); }
.hero-note {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 60ch;
  text-wrap: pretty;
}

/* Soft breathing pulse on the CTA (composited-only). */
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 171, 114, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(216, 171, 114, 0); }
}
.btn-primary.btn-lg { animation: breathe 3s ease-in-out infinite; }

/* ---- Sections ---- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--bg-card); }
.section-head { max-width: 640px; margin-bottom: 2.25rem; }
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
}
.section-sub { color: var(--text-muted); margin-top: 0.5rem; max-width: 60ch; text-wrap: pretty; }

/* ---- Schedule ---- */
.schedule {
  width: 100%;
  border-collapse: collapse;
}
.schedule thead th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.schedule thead th:first-child { width: 160px; }

.schedule-row { border-bottom: 1px solid var(--border); }
.schedule-row:last-child { border-bottom: none; }
.schedule-row.is-today .schedule-day { color: var(--accent); }
.schedule-row.is-today .schedule-day-full { border-left: 3px solid var(--accent); }

.schedule-day {
  vertical-align: top;
  padding: 1.1rem 1rem 1.1rem 0;
}
.schedule-day-short { display: none; }
.schedule-day-full {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  padding-left: 0.75rem;
}
.schedule-day .schedule-day-short + .schedule-day-full { padding-left: 0; }

.schedule-classes { padding: 1.1rem 1rem; }

.class-list { list-style: none; margin: 0; padding: 0; }
.class {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  grid-template-areas:
    "time name duration"
    "time instructor instructor";
  column-gap: 1rem;
  row-gap: 0.1rem;
  align-items: baseline;
  padding: 0.55rem 0;
}
.class:first-child { padding-top: 0; }
.class:last-child { padding-bottom: 0; }
.class + .class { border-top: 1px solid rgba(184, 171, 153, 0.12); }

.class-time {
  grid-area: time;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.class-name { grid-area: name; font-weight: 600; color: var(--text-primary); }
.class-instructor { grid-area: instructor; color: var(--text-muted); font-size: 0.9rem; }
.class-duration {
  grid-area: duration;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.class.is-past { opacity: 0.4; }

.day-off {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  padding: 0.5rem 0;
}
.day-off .ico { color: var(--accent); width: 1.3em; height: 1.3em; }

.schedule-row.is-closed { opacity: 0.85; }
.schedule-row.is-closed .schedule-day-full { color: var(--text-muted); }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  overflow: hidden;
}
.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.price-card-featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(216, 171, 114, 0.10), var(--bg-card));
}
.price-ribbon {
  display: inline-block;
  background: var(--accent);
  color: #241f18;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.price-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.price-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--text-primary);
}
.price-card-featured .price-value { color: var(--accent); }
.price-note { margin-top: 0.6rem; color: var(--text-muted); font-size: 0.85rem; }

.pricing-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 70ch;
  text-wrap: pretty;
}
.pricing-foot .ico { color: var(--accent); }

/* ---- Instructors ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.instructor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.instructor-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.instructor-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(216, 171, 114, 0.16), transparent 60%),
    var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}
.instructor-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  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='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.instructor-initial {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.instructor-body { padding: 1.25rem; }
.instructor-name { font-size: 1.4rem; font-weight: 600; }
.instructor-specialty { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: 0.2rem; }
.instructor-bio { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.6rem; }

/* ---- Contacts ---- */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-ico { width: 1.6em; height: 1.6em; color: var(--accent); margin-top: 0.15rem; }
.contact-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.contact-value { font-size: 1.1rem; color: var(--text-primary); }
.contact-link {
  color: var(--text-primary);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.contact-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand { font-family: var(--font-heading); font-weight: 600; font-size: 1.4rem; }
.footer-meta { color: var(--text-muted); font-size: 0.9rem; }

/* ---- Mobile fixed CTA ---- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, var(--bg-page) 60%, rgba(26, 24, 20, 0));
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }

  /* Schedule: table → vertical day cards, no horizontal scroll. */
  .schedule, .schedule tbody, .schedule thead, .schedule tr, .schedule th, .schedule td {
    display: block;
  }
  .schedule thead { display: none; }
  .schedule {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .schedule-row {
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
  }
  .schedule-row:last-child { border-bottom: none; }
  .schedule-row.is-today { box-shadow: inset 3px 0 0 var(--accent); }
  .schedule-day {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(184, 171, 153, 0.12);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .schedule-day-short { display: inline-block; color: var(--text-muted); font-weight: 600; }
  .schedule-day-full { padding-left: 0; }
  .schedule-classes { padding: 0.25rem 1rem 0.75rem; }

  .class {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "time name"
      "time instructor"
      "time duration";
    column-gap: 0.75rem;
    padding: 0.6rem 0;
  }
  .class-duration { text-align: left; }

  .pricing-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }

  .mobile-cta { display: block; }
  body { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary.btn-lg { animation: none; }
  .btn, .price-card, .instructor-card { transition: none; }
}
