/* =========================================================
   Студия Пилатес Екатерины Степаненко — стили лендинга
   ========================================================= */

/* ----------------------- Tokens ------------------------- */
:root {
  --bg:          #f3ece2;
  --bg-soft:     #efe5d8;
  --bg-panel:    #f6f0e8;

  --accent:      #c56a45;   /* терракотовые кнопки */
  --accent-dark: #b25d3a;
  --accent-2:    #d67652;   /* акцент логотипа */
  --gold:        #e7b76f;

  --ink:         #3d342b;   /* основной текст */
  --ink-soft:    #5b5043;
  --muted:       #8a7d6d;   /* приглушённый текст */

  --dark:        #2a2018;   /* тёмные карточки прайса */
  --dark-2:      #221a13;   /* бейджи */
  --on-dark:     #efe6d8;
  --on-dark-soft:#c8bcaa;
  --on-dark-mut: #9b8e7c;

  --line:        #ddd0bf;

  --serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --sans:  'Montserrat', 'Arial', sans-serif;

  --container: 1380px;
  --radius:    16px;
}

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

/* [hidden] должен скрывать даже элементы с собственным display (.form{display:flex}) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ----------------------- Buttons ------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
  padding: 14px 30px;
  transition: background .25s, color .25s, border-color .25s, transform .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--primary:active { transform: translateY(1px); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 500;
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm  { padding: 10px 24px; font-size: .82rem; }
.btn--block { width: 100%; }

/* ----------------------- Titles ------------------------- */
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: .06em;
  margin: 0;
  color: var(--ink);
}
.title-rule {
  display: block;
  width: 54px;
  height: 3px;
  background: var(--accent);
  margin: 18px 0 26px;
  border-radius: 2px;
}

.block-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  letter-spacing: .05em;
  line-height: 1;
  margin: 0 0 38px;
  color: var(--ink);
}
.block-title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
  margin-top: 4px;
}
.block-title--right { /* выравнивание заголовка прайса */ }

/* ======================= HEADER ========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 236, 226, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 88px;
}
.header__logo { flex: 0 0 auto; }
.header__logo img { height: 52px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav__link {
  font-size: .9rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: .01em;
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .25s;
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { width: 100%; }

.header__cta { margin-left: 8px; }

/* burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  margin-left: auto;
}
.burger span {
  display: block;
  height: 2px; width: 26px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================== HERO ========================== */
.hero {
  position: relative;
  padding: 28px 0 96px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(540px, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  min-height: 560px;
}

.hero {
  position: relative;
  padding: 28px 0 110px;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__curve {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 120px;
  z-index: 0;
  pointer-events: none;
}

.hero__curve-path {
  fill: none;
  stroke: #dcc7b4;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  /* анимация "рисования" */
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: heroLineDraw 2.0s ease-out forwards 0.25s;
}

@keyframes heroLineDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero__text {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.4rem, 7.2vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  margin: 0 0 22px;
  color: var(--ink);
}

.hero__subtitle {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 42px;
  max-width: 260px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero__slogan {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--ink);
}

.hero__slogan em {
  font-style: italic;
}

.hero__divider {
  display: inline-block;
  width: 1px;
  height: 56px;
  background: #d7b79d;
  flex-shrink: 0;
}

.hero__media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__oval {
  position: relative;
  width: min(100%, 860px);
  aspect-ratio: 1.72 / 1;
  overflow: hidden;
  border-radius: 50%;
  transform: rotate(-11deg);
  box-shadow: 0 30px 60px -30px rgba(80, 55, 35, 0.35);
  background: #e9ddcf;
}

.hero__oval img {
  width: 112%;
  height: 112%;
  display: block;
  object-fit: cover;
  object-position: 56% 50%;
  transform: rotate(11deg) scale(1.08);
  transform-origin: center;
}

/* ====================== HERO RESPONSIVE ====================== */
@media (max-width: 980px) {
  .hero {
    padding-bottom: 82px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
  }

  .hero__media {
    justify-content: center;
  }

  .hero__oval {
    width: min(100%, 720px);
    aspect-ratio: 1.68 / 1;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 18px;
    padding-bottom: 72px;
  }

  .hero::after {
    height: 60px;
    bottom: 0;
    background-size: 100% 60px;
  }

  .hero__title {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .hero__subtitle {
    margin-bottom: 28px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .hero__divider {
    display: none;
  }

  .hero__oval {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    transform: rotate(-9deg);
  }

  .hero__oval img {
    width: 116%;
    height: 116%;
    transform: rotate(9deg) scale(1.08);
    object-position: 58% 50%;
  }
}

/* ======================== ABOUT ========================= */
.about { padding: 60px 0 30px; }
.about__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.about__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 30px;
}
.about__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.about__img {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 18px 40px -28px rgba(80, 55, 35, .5);
}
.about__img img { width: 100%; height: 100%; object-fit: cover; }

/* ======================== YOGA ========================== */
.yoga {
  padding: 30px 0 10px;
  overflow: hidden;
}
.yoga__word {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(7rem, 20vw, 17rem);
  line-height: .8;
  letter-spacing: .02em;
  user-select: none;
}
.yoga__word span {
  background: linear-gradient(180deg, #ece2d1 0%, #ddc8a6 60%, #e6d6ba 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .85;
}

/* =================== SERVICES + PRICES =================== */
.offer { padding: 30px 0 40px; }
.offer__inner {
  display: grid;
  grid-template-columns: 0.72fr 2.28fr;
  gap: 48px;
  align-items: start;
}

/* services list */
.service {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.services__list .service:first-of-type { border-top: 1px solid var(--line); }
.service__num {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.service__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  margin: 2px 0 6px;
  color: var(--ink);
}
.service__desc {
  font-size: .86rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* price cards */
.prices { display: flex; flex-direction: column; gap: 22px; }
.block-title--right { align-self: flex-start; }

.price-card {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: 12px;
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 0.82fr 3.18fr;
  gap: 0;
}
.price-card__trainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 26px;
}
.price-card__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.price-card__role {
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--on-dark-mut);
  margin-bottom: 8px;
}
.price-card__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: .03em;
  margin: 0 0 12px;
  color: var(--gold);
}
.price-card__note {
  font-size: .72rem;
  color: var(--on-dark-soft);
  letter-spacing: .02em;
}

.price-col { border-left: 1px solid rgba(255,255,255,.09); padding: 2px 22px; }
.price-col__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .84rem;
  line-height: 1.35;
  color: var(--on-dark);
  margin: 0 0 20px;
  min-height: 4em;
}
.price-col__sub {
  display: block;
  font-weight: 400;
  font-size: .74rem;
  color: var(--on-dark-mut);
  margin-top: 2px;
}
.price-row {
  font-size: .76rem;
  line-height: 1.5;
  color: var(--on-dark-soft);
  margin: 0 0 14px;
}
.price-row b { color: var(--on-dark); font-weight: 600; white-space: nowrap; }
.price-row .disc { color: var(--on-dark-mut); font-size: .72rem; }

/* =================== RULES + CERTIFICATE ================ */
.info { padding: 30px 0 50px; }
.info__inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}
.info-card {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  background: var(--bg-panel);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 14px;
  padding: 30px 32px;
}
.info-card__badge {
  flex: 0 0 auto;
  width: 84px; height: 84px;
  border-radius: 12px;
  background: var(--dark-2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card__badge--text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: .02em;
}
.info-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: .05em;
  margin: 4px 0 12px;
  color: var(--ink);
}
.info-card__text {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
}
.info-card__body .btn { margin-top: 2px; }

/* ======================= CONTACTS ======================= */
.contacts { padding: 30px 0 60px; }
.contacts__inner {
  display: flex;
  align-items: center;
  gap: 44px;
  background: var(--bg-panel);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius);
  padding: 40px 54px;
}
.contacts__intro { flex: 0 0 auto; }
.contacts__lead {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 16px 0 0;
}
.contacts__socials {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 32px;
}
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .2s;
}
.contact:hover { transform: translateX(3px); }
.contact__icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__text { display: flex; flex-direction: column; line-height: 1.3; }
.contact__text b { font-weight: 600; font-size: .92rem; color: var(--ink); }
.contact__text span { font-size: .82rem; color: var(--muted); }

.contacts__cta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-left: 44px;
  border-left: 1px solid var(--line);
}
.contacts__cta-label { font-size: .92rem; color: var(--ink-soft); }

/* ======================== FOOTER ======================== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid rgba(0,0,0,.05);
  padding: 30px 0 26px;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer__logo img { height: 56px; width: auto; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-left: auto;
}
.footer__nav a {
  font-size: .88rem;
  color: var(--ink-soft);
  transition: color .2s;
}
.footer__nav a:hover { color: var(--accent); }
.footer .btn { margin-left: 8px; }
.footer__copy {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.06);
  text-align: right;
  font-size: .8rem;
  color: var(--muted);
}

/* ======================== MODAL ========================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 30, 22, .55);
  backdrop-filter: blur(3px);
  animation: fade .25s ease;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fbf6ef;
  border-radius: 18px;
  padding: 38px 36px 32px;
  box-shadow: 0 40px 80px -30px rgba(40, 25, 15, .6);
  animation: pop .28s ease;
}
.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 38px; height: 38px;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  transition: color .2s;
}
.modal__close:hover { color: var(--accent); }

.modal__head { text-align: center; margin-bottom: 24px; }
.modal__eyebrow {
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
}
.modal__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: .03em;
  margin: 8px 0 8px;
  color: var(--ink);
}
.modal__sub {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  font-weight: 500;
}
.field__input {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(197, 106, 69, .12);
}
.field__input::placeholder { color: #b7ab9b; }
.field__input.is-invalid { border-color: #cc5b46; box-shadow: 0 0 0 3px rgba(204, 91, 70, .12); }

.form .btn { margin-top: 6px; }
.form__hint {
  font-size: .7rem;
  color: var(--muted);
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.4;
}

.modal__success { text-align: center; padding: 12px 0; }
.modal__success-icon { color: var(--accent); margin-bottom: 16px; }
.modal__success-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.8rem;
  margin: 0 0 10px;
  color: var(--ink);
}
.modal__success-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 22px;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ MODAL: подарочный сертификат ============= */
.cert-modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  width: 100%;
  max-width: 940px;
  max-height: 92vh;
  overflow: hidden;
  background: #fbf6ef;
  border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(40, 25, 15, .6);
  animation: pop .28s ease;
}
.cert-modal__media { position: relative; min-height: 100%; }
.cert-modal__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cert-modal__close { color: var(--accent); z-index: 2; }

.cert-modal__content {
  padding: 48px 50px 40px;
  max-height: 92vh;
  overflow-y: auto;
}
.cert-modal__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: .02em;
  margin: 0;
  color: var(--ink-soft);
}
.cert-modal__rule {
  display: block;
  width: 66px;
  height: 2px;
  background: var(--accent);
  margin: 22px 0;
  border-radius: 2px;
}
.cert-modal__lead {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.cert-feats {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 32px;
}
.cert-feat { display: flex; align-items: center; gap: 16px; }
.cert-feat__icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(197, 106, 69, .38);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-feat__text {
  font-size: .9rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.cert-modal__btn {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  padding: 16px 30px;
}
.cert-modal__link {
  display: block;           /* вместо inline-block */
  text-align: center;       /* центрируем текст */
  font-size: .86rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.cert-modal__link:hover { color: var(--accent-dark); }

@media (max-width: 760px) {
  .cert-modal__dialog {
    grid-template-columns: 1fr;
    max-width: 460px;
    overflow-y: auto;
  }
  .cert-modal__media { height: 220px; min-height: 0; }
  .cert-modal__content { padding: 32px 28px 30px; max-height: none; overflow: visible; }
  .cert-modal__rule { margin: 18px 0; }
}

/* ==================== Кнопка «Наверх» =================== */
.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(80, 40, 20, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, background .25s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-dark); }
.to-top.is-visible:active { transform: translateY(2px); }

@media (max-width: 680px) {
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .contacts__cta .btn {
    margin-left: 10px; /* или любое другое значение */
    margin-bottom: 25px;
  }

  /* Отступ слева для кнопки в футере */
  .footer__inner .btn {
    margin-left: 10px;
  }
}

/* ============== scroll-reveal animation =============== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1080px) {
  .offer__inner { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .services, .prices { min-width: 0; }
  .price-card { grid-template-columns: 1fr; }
  .price-card__trainer {
    flex-direction: row; align-items: baseline; gap: 16px;
    padding: 0 0 18px; margin-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,.09);
  }
  .price-card__name { margin: 0; }
  .price-card__role, .price-card__note { margin: 0; }
  .price-card__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .price-col { border-left: none; padding: 0 26px; }
  .price-col:nth-child(odd) { padding-left: 0; }
  .price-col:nth-child(even) { border-left: 1px solid rgba(255,255,255,.09); }
  .price-col__title { min-height: 3em; }
}

/* Навигация: бургер появляется, пока полное меню перестаёт помещаться */
@media (max-width: 1150px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 88px; left: 0; right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 18px;
    margin: 0;
  }
  .nav.is-open .nav__link { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.05); }
}

/* Контакты: одна строка перестаёт помещаться — складываем */
@media (max-width: 1080px) {
  .contacts__inner { flex-direction: column; align-items: stretch; gap: 28px; padding: 34px 36px; }
  .contacts__socials { flex-wrap: wrap; justify-content: flex-start; gap: 22px 44px; }
  .contacts__cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 0;
    padding-top: 26px;
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .hero__media { justify-content: center; }
  .hero__oval { max-width: 520px; }

  .about__inner { grid-template-columns: 1fr; gap: 34px; }

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

@media (max-width: 680px) {
  .container { padding: 0 22px; }
  .nav.is-open { padding: 8px 22px 18px; }
  .hero__title { font-size: clamp(3rem, 14vw, 4.4rem); }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 22px; }

  .about__gallery { grid-template-columns: 1fr 1fr; }
  .about__img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

  .price-card { grid-template-columns: 1fr; padding: 26px 24px; }
  .price-card__trainer { flex-direction: column; align-items: flex-start; gap: 2px; padding-bottom: 16px; margin-bottom: 18px; }
  .price-card__role { margin-bottom: 6px; }
  .price-card__name { margin: 0 0 6px; }
  .price-card__cols { grid-template-columns: 1fr; gap: 0; }
  .price-col { border-left: none !important; padding: 18px 0 0 !important; border-top: 1px solid rgba(255,255,255,.09); }
  .price-col:first-child { border-top: none; padding-top: 0 !important; }
  .price-col__title { min-height: 0; }

  .info-card { flex-direction: column; gap: 18px; }
  .info-card__body { min-width: 0; }

  .contacts__socials { flex-direction: column; align-items: flex-start; gap: 18px; }
  .contacts__cta { flex-direction: column; align-items: flex-start; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__nav { margin-left: 0; }
  .footer__copy { text-align: left; padding-top: 20px;}
}

@media (max-width: 420px) {
  .about__gallery { grid-template-columns: 1fr; }
  .about__img:first-child { aspect-ratio: 3 / 4; }
  .modal__dialog { padding: 30px 22px 26px; }
}

/* Вертикальный разделитель в Hero */

@media (max-width: 980px) {
  .hero {
    padding-bottom: 90px;
  }

  .hero__curve {
    height: 95px;
    bottom: 0;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-bottom: 72px;
  }

  .hero__curve {
    height: 72px;
  }

  .hero__curve-path {
    stroke-width: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__curve-path {
    animation: none;
    stroke-dashoffset: 0;
  }
}