/*
Theme Name: Yoga Studio
Theme URI:
Author: Custom Theme
Description: Элегантная минималистичная тема для студии йоги
Version: 1.0
*/

/* ─── Переменные ─── */
:root {
  --cream:      #FAFAF6;
  --warm-white: #F4F1EB;
  --sage:       #7A9A7C;
  --sage-dark:  #5C7D5E;
  --brown:      #6B5740;
  --charcoal:   #1E1E1E;
  --gray:       #6B6B6B;
  --border:     #E4DDD4;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Inter', sans-serif;

  --max-w: 1160px;
  --section-pad: 100px 24px;
}

/* ─── Сброс ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ─── Типографика ─── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

/* ─── Утилиты ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad); }

.btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1.5px solid var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}
.btn:hover { background: var(--charcoal); color: var(--cream); }

.btn-fill {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}
.btn-fill:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }

/* ─── Шапка / Навигация ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--charcoal);
}
.site-logo span { color: var(--sage-dark); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}
.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--charcoal); }

.nav-cta { display: none; }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-content {
  padding: 80px 60px 80px 80px;
}

.hero-content .eyebrow { margin-bottom: 24px; }
.hero-content h1 { margin-bottom: 28px; color: var(--charcoal); }
.hero-content h1 em {
  font-style: italic;
  color: var(--sage-dark);
}

.hero-text {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 440px;
  margin-bottom: 48px;
}

.hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.hero-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.hero-link:hover { border-color: var(--charcoal); }

.hero-image {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--warm-white);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(122,154,124,0.12) 0%, transparent 60%);
}

/* Декоративный элемент */
.hero-badge {
  position: absolute;
  bottom: 60px;
  left: -20px;
  width: 140px;
  height: 140px;
  background: var(--warm-white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--brown);
  border: 1px solid var(--border);
  padding: 16px;
}
.hero-badge strong { font-size: 2.2rem; display: block; line-height: 1; margin-bottom: 4px; }

/* ─── О студии ─── */
.about { background: var(--warm-white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-image { position: relative; }

.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center center;
}

.about-image-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 60%;
  aspect-ratio: 1;
  background: var(--sage);
  opacity: 0.1;
  border-radius: 50% 0 0 0;
  z-index: 0;
}

.about-content .eyebrow { margin-bottom: 20px; }
.about-content h2 { margin-bottom: 28px; }
.about-content p { color: var(--gray); margin-bottom: 20px; }

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-item strong {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--charcoal);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item span { font-size: 0.85rem; color: var(--gray); }

/* ─── Направления ─── */
.classes { background: var(--cream); }

.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-header .eyebrow { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--gray); max-width: 480px; margin: 0 auto; }

.classes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

.class-card {
  background: var(--cream);
  padding: 52px 44px;
  transition: background 0.3s;
  cursor: default;
}
.class-card:hover { background: var(--warm-white); }

.class-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  opacity: 0.7;
}

.class-card h3 { margin-bottom: 14px; }
.class-card p  { font-size: 0.95rem; color: var(--gray); margin-bottom: 28px; }

.class-meta {
  display: flex;
  gap: 24px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

/* ─── Расписание ─── */
.schedule { background: var(--charcoal); color: var(--cream); }
.schedule .section-header .eyebrow { color: var(--sage); }
.schedule .section-header p { color: rgba(250,250,246,0.6); }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,250,246,0.45);
  padding: 0 0 24px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.schedule-table td {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  vertical-align: middle;
}

.schedule-table tr:last-child td { border-bottom: none; }

.schedule-time {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--sage);
  width: 140px;
}

.schedule-class { font-size: 1.05rem; font-weight: 400; }
.schedule-instructor { color: rgba(250,250,246,0.55); font-size: 0.9rem; }
.schedule-level {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.level-all    { border-color: var(--sage); color: var(--sage); }
.level-begin  { border-color: #A8C5AA; color: #A8C5AA; }
.level-inter  { border-color: #C8A882; color: #C8A882; }
.level-adv    { border-color: #E8A0A0; color: #E8A0A0; }

.schedule-days {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.day-tab {
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(250,250,246,0.6);
  background: none;
}
.day-tab.active,
.day-tab:hover { background: var(--sage); border-color: var(--sage); color: #fff; }

/* ─── Отзывы ─── */
.testimonials {
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
}

.testimonials-deco {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-35%);
  width: 560px;
  pointer-events: none;
  z-index: 0;
}

.testimonials-deco img {
  width: 100%;
  height: auto;
  display: block;
}

.testimonials-deco::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--warm-white) 0%, transparent 55%),
    linear-gradient(to bottom, var(--warm-white) 0%, transparent 18%, transparent 82%, var(--warm-white) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  padding: 44px 36px;
  background: var(--cream);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--sage);
  opacity: 0.3;
  position: absolute;
  top: 28px;
  left: 32px;
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 28px;
  margin-top: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.4;
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-name { font-size: 0.9rem; font-weight: 500; margin-bottom: 2px; }
.testimonial-since { font-size: 0.78rem; color: var(--gray); }

.stars { color: var(--sage-dark); font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 12px; }

/* ─── CTA / Запись ─── */
.cta-section {
  background: var(--sage);
  padding: 100px 24px;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 20px;
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 440px;
  margin: 0 auto 48px;
}

.cta-section .btn {
  border-color: #fff;
  color: #fff;
  font-size: 0.82rem;
  padding: 16px 44px;
}
.cta-section .btn:hover { background: #fff; color: var(--sage-dark); }

/* ─── Контакты ─── */
.contact { background: var(--cream); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 28px; }
.contact-info p  { color: var(--gray); margin-bottom: 48px; }

.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:first-child { border-top: 1px solid var(--border); }
.contact-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  min-width: 90px;
  padding-top: 2px;
}
.contact-value { font-size: 0.95rem; color: var(--charcoal); }

/* Форма */
.contact-form { padding-top: 8px; }

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--sage-dark); }

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #c87a7a; }

.form-group .error-msg {
  display: none;
  font-size: 0.75rem;
  color: #c87a7a;
  margin-top: 6px;
}
.form-group.has-error .error-msg { display: block; }

.form-group textarea { resize: none; height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ─── Подвал ─── */
.site-footer {
  background: var(--charcoal);
  color: rgba(250,250,246,0.55);
  padding: 64px 24px 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .site-logo { color: var(--cream); margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 260px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 24px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-social { display: flex; gap: 16px; margin-top: 32px; }
.social-link {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  color: rgba(250,250,246,0.55);
}
.social-link:hover { border-color: var(--sage); color: var(--sage); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* ─── Адаптив ─── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 60px 40px; }
  .hero-image { height: 50vh; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .classes-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px 20px; }

  .site-header { padding: 0 20px; }
  .site-nav { display: none; }
  .nav-cta { display: block; }

  .hero-content { padding: 48px 20px; }
  .hero-content h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }

  .about-stats { gap: 24px; flex-wrap: wrap; }

  .classes-grid { grid-template-columns: 1fr; }
  .class-card { padding: 40px 28px; }

  .schedule-table { font-size: 0.9rem; }
  .schedule-time { width: 100px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
}
