﻿:root {
  color-scheme: light;
  --bg: #f7efe6;
  --surface: #ffffff;
  --surface-soft: #faf3eb;
  --text: #3d3229;
  --text-muted: #7f7060;
  --accent: #b65a40;
  --accent-soft: #e5b99e;
  --accent-2: #7b8b74;
  --border: #e6dbd1;
  --shadow: 0 24px 60px rgba(90, 56, 38, 0.12);
  --radius: 30px;
  --radius-sm: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 239, 230, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(185, 141, 120, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.14rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.nav {
  flex: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  color: var(--text);
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-cta {
  background: linear-gradient(135deg, var(--accent), #cd714e);
  color: #fff;
  box-shadow: 0 18px 42px rgba(182, 90, 64, 0.2);
}

.btn-ghost {
  background: rgba(182, 90, 64, 0.12);
  color: var(--accent);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 141, 120, 0.22);
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hamburger span {
  position: relative;
}

.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger span::before {
  top: -7px;
}

.hamburger span::after {
  top: 7px;
}

.hero {
  padding: 80px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-text h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 720px;
}

.lead {
  max-width: 600px;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-media {
  min-height: 520px;
  max-width: 560px;
  width: 100%;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  justify-self: end;
  background: transparent;
  display: grid;
  place-items: center;
}

.hero-media img {
  width: 100%;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  background: transparent;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}

.cards-grid,
.prices-grid,
.trainers-grid,
.reviews-grid {
  display: grid;
  gap: 24px;
}

.cards-grid,
.reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.class-card,
.card,
.trainer-card,
.test-card,
.price-card,
.schedule-row,
.signup-form,
.hero-media {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.card,
.class-card,
.trainer-card,
.test-card,
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 28px;
}

.card-icon,
.thumb {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(182, 90, 64, 0.12);
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.card h3,
.class-card h3,
.price-card h4,
.trainer-card h4 {
  margin-bottom: 12px;
}

.card p,
.class-card p,
.price-card p,
.trainer-card p,
.test-card p,
.footer p {
  color: var(--text-muted);
}

.class-card {
  padding: 32px 28px;
}

.class-card .thumb {
  margin-bottom: 18px;
}

.trainers-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.trainer-card {
  text-align: center;
  padding-top: 20px;
}

.trainer-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  margin-bottom: 18px;
}

.trainer-card .role {
  margin-top: 8px;
  color: var(--accent-2);
  font-weight: 700;
}

.schedule-list {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--surface-soft);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.testimonials .reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.test-card {
  padding: 28px;
  border-radius: 28px;
  background: var(--surface-soft);
}

.test-card cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-weight: 700;
  color: var(--text);
}

.prices-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.price-card {
  text-align: center;
  padding: 34px 28px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 48px rgba(90, 56, 38, 0.16);
}

.price-card .price-card-btn {
  display: inline-flex;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.price-card:hover .price-card-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.price-card.popular {
  border-color: rgba(182, 90, 64, 0.22);
  background: linear-gradient(180deg, #fffaf5 0%, #f7efe6 100%);
}

.price-card .price {
  margin: 20px 0 10px;
  font-size: 2.1rem;
  color: var(--accent);
  font-weight: 800;
}

.price-card .badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(182, 90, 64, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.signup-form {
  max-width: 900px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 36px;
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.signup-form input,
.signup-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  background: var(--surface-soft);
  color: var(--text);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  padding: 48px 0 24px;
}

.site-footer {
  background: #f2ebe2;
  border-top: 1px solid rgba(185, 141, 120, 0.22);
}

.site-footer strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--accent);
}

.site-footer a {
  color: var(--text);
}

.footer-bottom {
  padding: 18px 0 34px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 420px;
  }
}

@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    background: rgba(247, 239, 230, 0.98);
    flex-direction: column;
    gap: 18px;
    padding: 22px 24px 30px;
    border-bottom: 1px solid rgba(185, 141, 120, 0.22);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: inline-flex;
  }

  .header-actions {
    justify-content: flex-end;
  }

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

@media (max-width: 640px) {
  .header-inner {
    gap: 14px;
    flex-wrap: wrap;
  }

  .nav-menu {
    top: 72px;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
