:root {
  --bg: #f7f4f5;       /* светлый серо-розовый */
  --bg-alt: #f0ecee;   /* чуть темнее для чередующихся секций */
  --text: #1a1819;     /* почти чёрный с тёплым подтоном */
  --muted: #6b6568;    /* тёмный приглушённый */
  --accent: #2d5a3d;   /* тёмно-зелёный (лесной) */
  --accent-soft: rgba(45, 90, 61, 0.1);
  --border: #c9c2c5;   /* контрастный тёплый серый */
  --radius: 10px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 80px 0; }

.section-alt { background: var(--bg-alt); }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 40px;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { background: #1e3a5f; border-color: #1e3a5f; }
.btn:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--text);
}

/* HERO */
.hero {
  padding: 100px 0 90px;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
  max-width: 720px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stats div strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}
.hero-stats div span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* DIRECTIONS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card .icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 0.95rem; }

/* COACH */
.coach {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.coach-photo {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.coach-info h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}
.coach-info .role {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}
.coach-info p {
  color: var(--muted);
  margin-bottom: 14px;
}

.achievements {
  list-style: none;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
.achievements li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.achievements li span { color: var(--muted); }

/* SCHOOLS */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.school {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.school-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  min-width: 40px;
  opacity: 0.8;
}

.school h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.school p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.school .time {
  color: var(--text);
  font-size: 0.85rem;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-weight: 500;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--border);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Большая первая фотография */
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1/1;
}

.gallery-item:nth-child(5) {
  grid-column: span 2;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 3rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 20px 15px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  border-radius: 8px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  max-width: 80%;
}

/* Mobile gallery */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 4/3;
  }
  .gallery-item:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
  .lightbox-close {
    right: 20px;
    font-size: 2.5rem;
  }
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.price-card.featured {
  border-color: var(--accent);
  transform: scale(1.02);
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.price-card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.price-card .price {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 16px 0;
  color: var(--text);
}
.price-card .price small {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}
.price-card ul {
  list-style: none;
  margin: 20px 0 28px;
  text-align: left;
}
.price-card ul li {
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.price-card ul li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

/* CONTACT / FORM */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-list {
  list-style: none;
}
.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li strong {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  font-weight: 600;
}

form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}

.contact-card {
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: left;
  margin: 0;
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-phone {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-phone:hover {
  color: #1e3a5f;
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.contact-note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 640px) {
  .contact-card {
    padding: 36px 24px;
  }
}

.contact-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

textarea { resize: vertical; min-height: 90px; }

form .btn { width: 100%; }

/* FOOTER */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
}

.copyright {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* MOBILE */
@media (max-width: 900px) {
  section { padding: 60px 0; }
  .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .schools-grid { grid-template-columns: 1fr; }
  .coach { grid-template-columns: 1fr; gap: 30px; }
  .coach-photo { max-width: 360px; margin: 0 auto; }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(5) { grid-column: span 2; }
  .contact-wrap { grid-template-columns: 1fr; gap: 30px; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  }
  .nav-links.open { transform: translateY(0); }
  .burger { display: block; }

  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 24px; }
  .hero-stats div strong { font-size: 1.6rem; }
}