:root {
  --bg: #fffcf7;
  --surface: #ffffff;
  /* фирменный цвет логотипа — #86babd, графит надписи — #343a3f */
  --soft: #ebf4f4;
  --sun-soft: #fff6dc;
  --mint: #86babd;
  --mint-dark: #3f7a7e; /* для текста и кнопок: контраст 4.9:1 на белом */
  --sun: #f7c948;
  --sun-dark: #e5b42c;
  --text: #343a3f;
  --muted: #6a7477;
  --line: #e4ebeb;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(63, 122, 126, 0.08);
  --font: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--mint-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: #4a5457; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-sun { background: var(--sun); color: var(--text); box-shadow: 0 6px 18px rgba(247, 201, 72, .35); }
.btn-sun:hover { background: var(--sun-dark); }
.btn-line { background: transparent; border-color: var(--mint); color: var(--mint-dark); }
.btn-line:hover { background: var(--soft); }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--mint-dark); font: 700 15px var(--font); cursor: pointer; }
.btn:focus-visible, .link-btn:focus-visible, .chip:focus-visible, .slot:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 252, 247, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { flex: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; }
.logo-img { height: 44px; width: auto; }
.logo-full { height: 46px; width: auto; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--mint-dark); }
.header-phone { font-weight: 800; text-decoration: none; color: var(--text); white-space: nowrap; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: var(--soft); border-radius: 12px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--text); border-radius: 2px; content: ''; }
.burger span { top: 20px; } .burger span::before { top: -6px; left: 0; } .burger span::after { top: 6px; left: 0; }

/* hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--mint-dark); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.badges li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #4a5457; }
.badges li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); flex: none; }
.hero-media { position: relative; }
.hero-img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 40% 40% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob-1 { width: 180px; height: 180px; background: var(--sun); right: -30px; top: -20px; opacity: .55; }
.blob-2 { width: 140px; height: 140px; background: var(--mint); left: -30px; bottom: 30px; opacity: .35; }

.ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--soft), var(--sun-soft)); color: var(--mint-dark); font-weight: 700; font-size: 14px; }
.ph span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); }

/* sections */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-sun { background: var(--sun-soft); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.about-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.point { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.point-num { font-weight: 800; color: var(--mint); font-size: 28px; margin-bottom: 6px; }
.point p { margin: 0; color: var(--muted); font-size: 16px; }

.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.dir-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dir-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dir-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.dir-body p { color: var(--muted); font-size: 16px; flex: 1; }
.dir-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dir-meta span { padding: 4px 12px; border-radius: 999px; background: var(--sun-soft); font-size: 14px; font-weight: 600; }

/* schedule */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font: 700 15px var(--font); color: var(--text); cursor: pointer; }
.chip.active { background: var(--mint-dark); border-color: var(--mint-dark); color: #fff; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; min-width: 0; }
.day-name { font-weight: 800; margin-bottom: 10px; text-align: center; }
.d-full { display: none; }
.day-slots { display: flex; flex-direction: column; gap: 8px; }
.slot {
  text-align: left; border: 0; border-radius: 14px; padding: 10px; cursor: pointer;
  background: var(--soft); color: var(--text); font-family: inherit; display: flex; flex-direction: column; gap: 2px;
  transition: background .15s, transform .15s;
}
.slot:hover { background: #d6e9ea; transform: translateY(-1px); }
.slot-time { font-weight: 800; font-size: 17px; }
.slot-title { font-weight: 700; font-size: 14px; line-height: 1.25; }
.slot-meta { font-size: 13px; color: var(--muted); }
.slot-cta { font-size: 13px; font-weight: 700; color: var(--mint-dark); margin-top: 4px; }
.slot[hidden], .slot-empty[hidden] { display: none; }
.slot-empty { text-align: center; color: #b5bdbf; padding: 10px 0; }

/* prices */
.price-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.price { position: relative; background: var(--surface); border-radius: var(--radius); padding: 26px 20px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.price-hl { outline: 3px solid var(--sun); }
.price-tag { position: absolute; top: -13px; left: 20px; background: var(--sun); padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.price-val { font-size: 30px; font-weight: 800; color: var(--mint-dark); }
.price ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; font-size: 15px; }
.price li { padding: 4px 0 4px 22px; position: relative; }
.price li::before { content: '✓'; position: absolute; left: 0; color: var(--mint); font-weight: 800; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-top: 24px; }
.coach-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.coach h3 { margin-bottom: 2px; }
.coach-role { color: var(--mint-dark); font-weight: 700; margin-bottom: 8px; }
.coach p { color: var(--muted); font-size: 16px; }

/* faq */
.faq { max-width: 820px; }
.faq-item { background: var(--surface); border-radius: 18px; padding: 4px 22px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::after { content: '+'; color: var(--mint-dark); font-size: 24px; line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--muted); }

/* contacts */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.c-row { display: flex; flex-direction: column; margin-bottom: 14px; font-weight: 700; }
.c-row .muted { font-weight: 400; font-size: 14px; }
.c-row a { color: var(--text); text-decoration: none; }
.msgs, .map-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.msg { padding: 10px 18px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; }
.msg-wa { background: #1f9e54; } .msg-tg { background: #2280c2; } .msg-max { background: #5b4ee0; }
.map-links a { font-weight: 700; }
.map { width: 100%; min-height: 380px; border: 0; border-radius: var(--radius); }
.map-ph { display: grid; place-items: center; text-align: center; background: linear-gradient(135deg, var(--soft), var(--sun-soft)); padding: 24px; }

/* footer */
.footer { background: #23302f; color: #dbe5e3; padding: 34px 0 100px; font-size: 14px; }
.footer a { color: #b3d6d8; }
.footer .muted { color: #9fb0ad; }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-name { font-weight: 800; font-size: 18px; color: #fff; }
.footer-req { text-align: right; }

.sticky-cta { display: none; }

/* modal */
.modal { border: 0; padding: 0; background: transparent; max-width: 460px; width: calc(100% - 32px); }
.modal::backdrop { background: rgba(35, 48, 47, .45); }
.modal-box { position: relative; background: var(--surface); border-radius: 26px; padding: 30px 26px 26px; }
.modal-box h3 { font-size: 24px; margin-bottom: 4px; padding-right: 30px; }
.modal-x { position: absolute; right: 16px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); font-size: 22px; cursor: pointer; line-height: 1; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.field input, .field select {
  font: 400 17px var(--font); padding: 12px 14px; border: 2px solid var(--line);
  border-radius: 14px; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--mint); }
.dates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.date-opt { position: relative; }
.date-opt input { position: absolute; opacity: 0; }
.date-opt span { display: block; padding: 9px 14px; border-radius: 14px; border: 2px solid var(--line); font-weight: 700; font-size: 15px; cursor: pointer; }
.date-opt input:checked + span { border-color: var(--mint-dark); background: var(--soft); }
.date-opt input:focus-visible + span { outline: 3px solid var(--mint); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 16px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--mint-dark); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-err { color: #c0392b; font-weight: 700; font-size: 14px; min-height: 0; margin-bottom: 8px; }
.form-err:empty { display: none; }
.modal-ok { text-align: center; }
.ok-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--soft); color: var(--mint-dark); display: grid; place-items: center; font-size: 32px; font-weight: 800; }

/* privacy */
.prose { max-width: 820px; }
.prose h1 { font-size: 36px; }
.prose h2 { font-size: 22px; margin-top: 1.4em; }

/* responsive */
@media (max-width: 1080px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .points { grid-template-columns: repeat(2, 1fr); }
  .week { grid-template-columns: repeat(4, 1fr); }
  .logo-full { height: 36px; }
  .header-in, .nav { gap: 16px; }
}
@media (max-width: 1000px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .header-in { gap: 12px; }
  .header-phone { margin-left: auto; }
  .header-cta { display: none; }
}
@media (max-width: 900px) {
  .hero-in, .about, .contacts { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 28px; }
  .hero-media { max-width: 460px; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .header-phone { display: none; }
  .burger { margin-left: auto; }
  .logo-full { height: 38px; }
  .dir-grid, .price-grid, .points { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; gap: 8px; }
  .day { display: grid; grid-template-columns: 1fr; padding: 14px; }
  .day[data-empty] { display: none; }
  .day-name { text-align: left; }
  .d-full { display: inline; } .d-short { display: none; }
  .day-slots { display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-req { text-align: left; }
  .sticky-cta {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 252, 247, .96); border-top: 1px solid var(--line);
  }
  .sticky-cta .btn-line { background: #fff; }
  .modal-box { padding: 26px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .slot { transition: none; }
}
