/* ============================================================
   Online coaching template — styles
   Палитра: холодный светлый фон, глубокая хвойная зелень как
   единственный акцент, песочный для чередования секций.
   ============================================================ */

:root{
  --bg:        #F6F7F4;
  --surface:   #FFFFFF;
  --sand:      #F0EDE5;
  --ink:       #17201C;
  --muted:     #5C6B63;
  --line:      #E1E5DE;
  --accent:    #206A53;
  --accent-dk: #17513F;
  --accent-sf: #E4EFE8;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --pad: clamp(20px, 4vw, 32px);
  --sec: clamp(64px, 9vw, 116px);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.skip{
  position:absolute; left:-9999px; top:0;
  background: var(--ink); color:#fff; padding:12px 18px; z-index:100;
}
.skip:focus{ left:12px; top:12px; }

/* ---------- Типографика ---------- */

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0 0 18px;
}

h1{ font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
h2{ font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 28px; }
h3{ font-size: 1.18rem; line-height: 1.25; margin-bottom: 10px; }

p{ margin: 0 0 16px; }

.eyebrow{
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.lead{
  font-size: 1.09rem;
  color: var(--muted);
  max-width: 54ch;
}
.lead--center{ margin: -8px auto 44px; text-align: center; }

/* ---------- Каркас ---------- */

.container{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.container--narrow{ max-width: 780px; }

.section{ padding: var(--sec) 0; }
.section--alt{ background: var(--sand); }

/* ---------- Хедер ---------- */

.topbar{
  position: sticky;
  top: 14px;
  z-index: 50;
  padding: 0 var(--pad);
  margin-top: 14px;
}
.topbar__inner{
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 14px 22px;
}

.brand{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.nav{ display: flex; align-items: center; gap: 26px; }
.nav a{ color: var(--muted); font-size: .97rem; }
.nav a:hover{ color: var(--ink); }
.nav .btn{ color: #fff; }

.burger{
  display: none;
  width: 42px; height: 34px;
  background: none; border: 0; padding: 6px;
  cursor: pointer;
}
.burger span{
  display: block; height: 2.5px; border-radius: 2px;
  background: var(--ink); margin: 5px 0;
  transition: transform .25s ease, opacity .2s ease;
}

/* ---------- Кнопки ---------- */

.btn{
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover{ background: var(--accent-dk); transform: translateY(-1px); }
.btn--sm{ padding: 9px 18px; font-size: .93rem; }
.btn--ghost{
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover{ background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.actions{ display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.actions--center{ justify-content: center; }

/* ---------- Плейсхолдеры картинок ---------- */

.ph{
  width: 100%;
  background: var(--accent-sf);
  border: 1.5px dashed rgba(32,106,83,.45);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.ph span{
  display: block;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.ph em{
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: .82rem;
  opacity: .7;
  margin-top: 4px;
}
.ph--portrait{ aspect-ratio: 4 / 5; }
.ph--wide{ aspect-ratio: 3 / 2; }
.ph--square{ aspect-ratio: 1 / 1; }

.ph-img{ border-radius: var(--r-md); width: 100%; height: 100%; object-fit: cover; }
.ph.is-filled{
  display: block;
  border: 0;
  padding: 0;
  background: none;
  overflow: hidden;
}

/* ---------- Hero ---------- */

.hero{ padding-top: clamp(40px, 6vw, 72px); }
.hero__grid{
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}
.hero__media{ position: relative; }
.hero__text{ padding-top: clamp(0px, 2vw, 26px); }

/* подпись-виджет со слотами — единственный «характерный» элемент */
.slots{
  position: absolute;
  right: -14px;
  bottom: 26px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 14px 18px;
  min-width: 168px;
  box-shadow: 6px 6px 0 rgba(23,32,28,.08);
}
.slots__title{
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 600;
}
.slots ul{ list-style: none; margin: 0; padding: 0; }
.slots li{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.slots li::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.slots li span{ color: var(--muted); min-width: 34px; }

.facts{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  padding: 0;
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.facts strong{
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.facts span{ font-size: .9rem; color: var(--muted); }

/* ---------- Шаги ---------- */

.steps{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.steps li{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px 24px;
}
.steps__n{
  display: block;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.steps p{ color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Сплит-секция ---------- */

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.checks{ list-style: none; padding: 0; margin: 24px 0 0; }
.checks li{
  position: relative;
  padding: 11px 0 11px 32px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.checks li::before{
  content: "";
  position: absolute;
  left: 4px; top: 19px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Тарифы ---------- */

.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.card--lead{
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(23,32,28,.07);
}
.card__flag{
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-sf);
  color: var(--accent-dk);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  margin: 0 0 14px;
}
.price{
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.price small{
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0;
}
.card__note{ font-size: .92rem; color: var(--muted); margin-bottom: 20px; }
.card ul{
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex: 1 1 auto;
}
.card ul li{
  padding: 9px 0 9px 20px;
  position: relative;
  font-size: .97rem;
  border-top: 1px solid var(--line);
}
.card ul li::before{
  content: "";
  position: absolute;
  left: 2px; top: 18px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.card .btn, .card .btn--ghost{ text-align: center; }

/* ---------- Тренеры ---------- */

.coaches{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.coach .ph{ margin-bottom: 18px; }
.coach h3{ margin-bottom: 4px; }
.coach__role{
  font-size: .88rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.coach p{ color: var(--muted); font-size: .97rem; }

/* ---------- FAQ ---------- */

.faq details{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  padding: 4px 22px;
}
.faq summary{
  cursor: pointer;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "";
  position: absolute;
  right: 4px; top: 24px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after{ transform: rotate(-135deg); top: 26px; }
.faq details p{
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 62ch;
}

/* ---------- CTA ---------- */

.cta__inner{
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 70px) var(--pad);
  text-align: center;
  max-width: 1180px;
}
.cta__inner p{ color: rgba(255,255,255,.82); max-width: 46ch; margin: 0 auto; }
.cta .btn{ background: #fff; color: var(--accent-dk); }
.cta .btn:hover{ background: rgba(255,255,255,.88); }
.cta .btn--ghost{
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5);
}
.cta .btn--ghost:hover{ background: rgba(255,255,255,.12); color:#fff; box-shadow: inset 0 0 0 1.5px #fff; }

/* ---------- Футер ---------- */

.footer{
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: var(--bg);
}
.footer__grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer__grid nav, .footer__grid div:last-child{
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer__grid a{ color: var(--muted); font-size: .95rem; }
.footer__grid a:hover{ color: var(--accent); }
.footer__muted{ color: var(--muted); font-size: .95rem; }
.brand--footer{ margin-bottom: 4px; }
.footer__bottom{
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.footer__bottom p{ margin: 0; }
.footer__bottom .footer__legal{ margin-bottom: 8px; max-width: 76ch; }

/* ---------- Текстовая страница (privacy) ---------- */

.doc{ padding: clamp(48px, 7vw, 88px) 0 var(--sec); }
.doc__meta{ color: var(--muted); font-size: .94rem; margin-bottom: 32px; }
.doc h2{ font-size: 1.35rem; margin: 44px 0 14px; }
.doc h3{ font-size: 1.05rem; margin: 26px 0 8px; }
.doc p, .doc li{ color: #2C3A34; }
.doc ul{ padding-left: 22px; margin: 0 0 18px; }
.doc li{ margin-bottom: 7px; }
.doc__note{
  background: var(--accent-sf);
  border-radius: var(--r-md);
  padding: 18px 22px;
  color: var(--accent-dk);
  font-size: .95rem;
}
.doc__note p{ color: inherit; margin: 0; }
.doc__note .doc__note-sub{ margin-top: 10px; font-size: .88rem; opacity: .85; }
.doc__table{ overflow-x: auto; margin: 0 0 22px; }
.doc__table table{
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 420px;
}
.doc__table th, .doc__table td{
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc__table th{
  font-weight: 600;
  background: var(--accent-sf);
  color: var(--accent-dk);
  border-bottom-color: transparent;
}
.doc__table tr:last-child td{ border-bottom: 0; }
.back{
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent);
  font-weight: 600;
  font-size: .95rem;
}

/* ---------- Появление при скролле ---------- */

.reveal{ opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in{ opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */

@media (max-width: 900px){
  .hero__grid, .split, .steps, .cards, .coaches{ grid-template-columns: 1fr; }
  .steps, .cards, .coaches{ gap: 18px; }
  .footer__grid{ grid-template-columns: 1fr 1fr; }
  .slots{ right: 12px; bottom: 12px; }
}

@media (max-width: 720px){
  body{ font-size: 16px; }
  .burger{ display: block; }
  .nav{
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border: 1.5px solid var(--ink);
    border-radius: var(--r-md);
    padding: 14px;
    display: none;
  }
  .topbar__inner{ position: relative; }
  .topbar.is-open .nav{ display: flex; }
  .nav a{ padding: 10px 6px; font-size: 1rem; }
  .nav .btn{ text-align: center; margin-top: 6px; }
  .footer__grid{ grid-template-columns: 1fr; }
  .facts{ gap: 14px 24px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .btn:hover{ transform: none; }
}
