/* ===== Лендинг «Мать и дитя» — СШОР №3 ===== */

:root {
  --primary: #C24E2C;
  --primary-dark: #9A3B1F;
  --sun: #FFC94D;
  --sun-soft: #FFF3D1;
  --sun-text: #6B4A00;
  --mint: #8FCFAE;
  --mint-soft: #DCF2E6;
  --mint-text: #2F7A55;

  --bg: #FFF8F3;
  --bg-soft: #FFEFE5;
  --peach: #FDE3D6;
  --peach-photo: #FCDCCB;
  --line: #F3E2D8;
  --input-line: #E6CFC3;

  --text: #2E1F1A;
  --text-2: #5C4740;
  --text-3: #6B544B;

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 32px;
  --font-head: 'Nunito', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
p { margin: 0; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
input, select, textarea, button { font: inherit; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.container { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--bg-soft); color: var(--primary-dark); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--lg { font-size: 17px; padding: 16px 30px; box-shadow: 0 8px 20px rgba(194,78,44,.22); }
.btn--block { width: 100%; min-height: 54px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: wait; }

.link-strong { font-weight: 700; text-decoration: none; padding: 14px 8px; }

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 12px; padding-bottom: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--peach); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text b { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.logo__text small { font-size: 13px; color: var(--text-3); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--primary); }
.header__phone { font-weight: 700; text-decoration: none; padding: 10px 0; white-space: nowrap; }

/* ===== Первый экран ===== */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  padding-top: 64px; padding-bottom: 96px;
}
.hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero h1 { font-weight: 900; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.01em; }
.hero__lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.hero__media { flex: 1 1 420px; min-width: 0; position: relative; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
}
.chip--sun { background: var(--sun-soft); color: var(--sun-text); }

.bubble { position: absolute; border-radius: 50%; }
.bubble--sun { width: 120px; height: 120px; background: var(--sun); top: -26px; right: -18px; opacity: .9; }
.bubble--ring1 { width: 34px; height: 34px; border: 3px solid var(--mint); bottom: 30px; left: -22px; }
.bubble--ring2 { width: 18px; height: 18px; border: 3px solid var(--mint); bottom: 78px; left: -44px; }

.wave { position: absolute; left: 0; width: 100%; display: block; fill: var(--bg); }
.wave--bottom { bottom: -1px; height: 50px; }
.wave--top { top: -1px; height: 44px; }

/* ===== Фото (с заглушкой, пока нет файла) ===== */
.photo {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--peach);
  border: 2px dashed #EDB79C;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark); font-weight: 600; font-size: 15px; text-align: center; padding: 16px;
}
.photo::before { content: attr(data-label); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo:has(img) { border: 0; }
.photo--hero { border-radius: 36px; background: var(--peach-photo); border-color: #E9A889; }

/* ===== Секции ===== */
.section { padding: 64px 0; }
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 36px; }
.section__head p { color: var(--text-2); }
.eyebrow { font-weight: 700; color: var(--primary); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }

/* Карточки */
.cards, .gallery, .prices { display: grid; gap: 20px; }
.cards, .gallery { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery { margin-top: 20px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 2px 0 var(--line);
}
.card h3 { font-weight: 800; font-size: 21px; }
.card p { color: var(--text-2); font-size: 16px; }
.card__icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.card__icon--peach { background: var(--peach); color: var(--primary); }
.card__icon--sun { background: var(--sun-soft); color: #8A5F00; }
.card__icon--mint { background: var(--mint-soft); color: var(--mint-text); }

/* Цены */
.prices { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.price {
  position: relative; overflow: hidden;
  background: #fff; border: 2px solid var(--line); border-radius: 28px; padding: 32px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.price h3 { font-weight: 800; font-size: 24px; }
.price__value { font-family: var(--font-head); font-weight: 900; font-size: 48px; line-height: 1; }
.price__note { color: var(--text-3); font-size: 16px; }
.price .btn { margin-top: auto; }
.price--accent { background: var(--primary); border-color: var(--primary); color: #fff; }
.price--accent::after {
  content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.08); right: -40px; top: -50px;
}
.price--accent .price__note { color: #FFF1EA; }
.schedule { font-weight: 600; }
.badge { padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.badge--sun { background: var(--sun); color: #3D2A00; }
.badge--peach { background: var(--peach); color: var(--primary-dark); }

/* ===== Запись ===== */
.signup { position: relative; background: var(--bg-soft); }
.signup__inner { position: relative; z-index: 1; }
.signup__inner {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px;
  padding-top: 104px; padding-bottom: 88px;
}
.signup__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; color: var(--text-2); font-size: 16px; }
.steps b { font-size: 18px; color: var(--text); }
.steps__num {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 900; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.steps__num--sun { background: var(--sun); color: #3D2A00; }

.notice {
  background: #fff; border-radius: 20px; padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start; color: var(--primary);
}
.notice svg { flex: none; margin-top: 2px; }
.notice p { font-size: 15px; color: var(--text-2); }
.notice b { color: var(--text); }

/* Форма */
.form-card {
  flex: 1 1 440px; min-width: 0;
  background: #fff; border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 18px 40px rgba(46,31,26,.08);
}
.form { display: flex; flex-direction: column; gap: 18px; }
.form h3, .form-success h3 { font-weight: 800; font-size: 26px; }
.form__row { display: flex; flex-wrap: wrap; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 120px; }
.field--grow { flex: 2 1 200px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--input-line); border-radius: var(--radius-sm);
  background: #FFFCFA; color: var(--text); font-size: 16px;
}
.field input:focus, .field select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(194,78,44,.15); }
.field input[aria-invalid="true"] { border-color: #B3261E; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }

.form__error { background: #FDE8E3; color: #8E2A14; border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.form__hint { font-size: 13px; color: var(--text-3); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 12px 0; }
.form-success p { color: var(--text-2); }
.form-success__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--peach); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
[hidden] { display: none !important; }

/* ===== Контакты ===== */
.contacts { display: flex; flex-wrap: wrap; gap: 24px; }
.contacts__info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact { display: flex; gap: 14px; align-items: flex-start; color: var(--primary); }
.contact svg { flex: none; }
.contact address { font-style: normal; color: var(--text); display: flex; flex-direction: column; }
.contact address span { color: var(--text-2); }
.contact__phones { display: flex; flex-direction: column; gap: 2px; }
.contact__phones a { font-weight: 700; font-size: 18px; text-decoration: none; }
.contact__phones span { color: var(--text-3); font-size: 14px; }

.docs {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.docs h3 { font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.docs a {
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  font-weight: 600; border-bottom: 1px solid #F6E9E1;
}
.docs a:last-child { border-bottom: 0; }
.docs a::before {
  content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.map {
  flex: 1.4 1 420px; min-width: 0; min-height: 380px;
  border-radius: 28px; overflow: hidden; background: var(--peach);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ===== Подвал ===== */
.footer { background: var(--text); color: #E8D6CD; }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-top: 36px; padding-bottom: 36px; font-size: 15px;
}
.footer b { color: #fff; }
.footer a { color: var(--sun); font-weight: 700; text-decoration: none; padding: 10px 0; }
.footer a:hover { color: #FFE08F; }

/* ===== Адаптив ===== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header { position: static; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 4px 12px; }
  .hero__inner { padding-top: 40px; padding-bottom: 72px; gap: 36px; }
  .bubble--sun { width: 80px; height: 80px; top: -16px; right: -8px; }
  .bubble--ring1, .bubble--ring2 { display: none; }
  .section { padding: 48px 0; }
  .signup__inner { padding-top: 80px; padding-bottom: 64px; gap: 32px; }
  .price { padding: 26px; }
  .price__value { font-size: 42px; }
}
@media (max-width: 400px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
