:root{--bg:#f3ede3;--brand:#BF9C75;--brand-soft:#d8b898;--brand-dark:#a9855e;--sand:#E6D5B8;--cream:#faf6ef;--blue:#89C4E1;--mint:#A2D9C5;--ink:#2f2924;--muted:#655d53;--white:#fff;--line:#eadfce;--card:#fffdfa;--shadow:0 16px 42px rgba(191,156,117,.12);}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;font-family:Manrope,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.6} a{color:inherit;text-decoration:none} img{display:block;max-width:100%}
.wrap{width:min(1200px,calc(100% - 48px));margin:0 auto}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid #e6dccb;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 100px;
  padding: 0 40px;
  gap: 12px;
}
.logo img { height: 76px; width: auto; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.topbar-actions .btn { min-height: 44px; white-space: nowrap; }
.topbar .phone { color: #9a6f45; font-size: 17px; font-weight: 800; white-space: nowrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #b08556;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-shadow: none;
}
.btn:hover { background: #9a6f45; }
.btn.secondary { background: var(--cream); color: #3a2c1e; border-color: #b08556; }
.btn.secondary:hover { background: #fff; border-color: #9a6f45; }
.hero > .wrap { width: 100%; }
.hero-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #392b24;
}
.hero-video, .hero-video iframe, .hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.hero-video video { object-fit: cover; }
.hero-overlay {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 44vw, 600px);
}
.hero-left { width: min(100%, 1180px); margin-inline: auto; padding: 48px 20px; }
.hero-content { max-width: 600px; color: #fff; }
.kicker {
  margin-bottom: 16px;
  color: #f1d6b6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.3vw, 60px);
  line-height: 1.07;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero-lead { margin: 0 0 20px; max-width: 42ch; color: #fff; font-size: 16px; line-height: 1.55; }
.hero-lead p { margin: 0 0 .5em; }
.bullets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.bullets span {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { min-height: 48px; text-align: center; }
.hero-actions .btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.section{padding:60px 0}
.section.alt{background:var(--cream)}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:var(--brand-dark);margin:0 0 14px}
.section h2{font-size:clamp(24px,2.7vw,34px);line-height:1.1;letter-spacing:-.03em;margin:0 0 18px}
.lead{margin:0 0 34px;max-width:720px;color:var(--muted);font-size:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{background:var(--card);border:1px solid var(--line);border-radius:26px;overflow:hidden;box-shadow:var(--shadow)}
.card-media{height:275px;position:relative;background:#f6ede3;overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover;display:block}
.card-body{padding:26px}
.card h3{margin:0 0 10px;font-size:20px;line-height:1.15}
.card p{margin:0;color:var(--muted)}
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.feature{background:var(--white);border:1px solid var(--line);border-radius:24px;padding:28px;min-height:222px}
.badge{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg, rgba(191,156,117,.16), rgba(230,213,184,.55));color:var(--brand-dark);font-weight:800;font-size:20px;margin-bottom:18px}
.feature h3{margin:0 0 10px;font-size:19px;line-height:1.2}
.feature p{margin:0;color:var(--muted);font-size:14px}
#doctors { background: #efe8db; border-radius: 24px; margin-inline: 20px; }
#doctors > .wrap { width: min(1140px, calc(100% - 40px)); }
.doctors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doctor {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #faf6ef;
  border: 1px solid #e6dccb;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(58,44,30,.08);
  color: #3a2c1e;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.doctor-photo { aspect-ratio: 1; background: #efe6d6; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor-info { display: flex; flex: 1; flex-direction: column; padding: 18px 20px; }
.doctor-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #3f7d54;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.doctor-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.doctor-info h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.4; }
.doctor-info h3 a:hover { color: #9a6f45; }
.doctor-specs, .doctor-ratings, .doctor-metrics { display: flex; flex-wrap: wrap; }
.doctor-specs { gap: 4px; margin-bottom: 8px; }
.doctor-ratings { gap: 10px; margin-bottom: 10px; }
.doctor-specs > span, .doctor-ratings > span { background: #f0e6d5; }
.doctor-specs > span { border-radius: 6px; padding: 2px 7px; font-size: 10px; font-weight: 600; color: #6f5e4c; }
.doctor-ratings > span { border-radius: 8px; padding: 4px 9px; font-size: 12px; }
.doctor-ratings b { color: #9a6f45; }
.doctor-star { color: #b87819; }
.doctor-metrics { gap: 4px 10px; border-top: 1px solid #e6dccb; padding-top: 10px; font-size: 11px; color: #6f5e4c; }
.doctor-clinics { display: grid; gap: 6px; margin-top: auto; padding-top: 12px; }
.doctor-clinics .btn {
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
}
.doctor-clinics .btn span:first-child { flex-shrink: 0; }
.doctor-clinics .btn span:last-child { text-align: right; font-size: 12px; font-weight: 600; }
.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 22px; }
.plan{background:var(--white);border:1px solid var(--line);border-radius:28px;overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow)}
.plan-media{height:clamp(200px,24vw,310px);padding:12px;background:#f0e6d8}
.plan-media img{width:100%;height:100%;object-fit:contain;display:block}
.plan-body{padding:26px 26px 30px;display:flex;flex-direction:column;flex:1}
.plan .label{display:inline-flex;align-items:center;padding:7px 13px;border-radius:999px;background:rgba(191,156,117,.12);color:var(--brand-dark);font-size:12px;font-weight:800;width:max-content}
.plan h3{font-size:21px;margin:18px 0 10px}
.plan p{margin:0 0 18px;color:var(--muted)}
.plan .cost{font-size:28px;line-height:1.1;letter-spacing:-.04em;font-weight:800;margin:6px 0 22px;color:var(--brand-dark)}
.plan-actions{display:flex;flex-direction:column;gap:12px;margin-top:auto}
.bundle{margin-top:26px;background:linear-gradient(135deg, #bf9c75 0%, #caa983 36%, #e6d5b8 100%);border-radius:32px;padding:38px 42px;display:flex;justify-content:space-between;gap:28px;align-items:center;color:#fff;box-shadow:var(--shadow)}
.bundle .eyebrow{color:rgba(255,255,255,.82)}
.bundle h3{font-size:24px;line-height:1.15;margin:0 0 10px;max-width:640px}
.bundle p{margin:0;color:rgba(255,255,255,.88)}
.bundle-price{font-size:32px;font-weight:800;letter-spacing:-.04em;white-space:nowrap;text-align:right}
.bundle-price del{display:block;font-size:20px;font-weight:600;opacity:.78}
.filelink{display:inline-flex;align-items:center;gap:10px;margin-top:18px;color:var(--brand-dark);font-weight:800}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.step{padding-top:20px;border-top:3px solid rgba(191,156,117,.48)}
.step-thumb{height:122px;border-radius:20px;overflow:hidden;border:1px solid var(--line);background:#f8f3ed;margin:0 0 18px}
.step-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.step b{font-size:24px;color:var(--brand-dark)}
.step h3{margin:10px 0 8px;font-size:20px}
.step p{margin:0;color:var(--muted);font-size:14px}
.faq details{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:18px 20px;margin-bottom:14px}
.faq summary{cursor:pointer;font-weight:800;font-size:16px}
.faq p{margin:12px 0 0;color:var(--muted)}
.cta{border-radius:32px;background:linear-gradient(135deg, rgba(191,156,117,.14), rgba(230,213,184,.52));border:1px solid var(--line);padding:42px 46px;display:flex;align-items:center;justify-content:space-between;gap:26px}
.cta h2{font-size:28px;margin:0 0 12px}
.cta p{margin:0;color:var(--muted)}
:root { --ml-disclaimer-h: 34px; }
body { padding-bottom: var(--ml-disclaimer-h); }
.disclaimer {
  position: fixed;
  inset: auto 0 0;
  z-index: 2000;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: #2c2018;
  color: #c9b9a1;
  font: 600 13px/1.6 "Segoe UI", system-ui, sans-serif;
  text-align: center;
}
.footer {
  padding: 30px 0;
  background: #3a2b20;
  color: #d8c9b3;
  font: 13px/1.6 "Segoe UI", system-ui, sans-serif;
}
.footer .wrap {
  width: min(1140px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand strong { color: #f3ede3; }
.footer a:hover { text-decoration: underline; }
@media (max-width: 639px) {
  :root { --ml-disclaimer-h: 50px; }
  .disclaimer { min-height: 50px; font-size: 11px; padding: 4px 12px; line-height: 1.25; }
}
label{display:block;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--brand-dark);margin-top:12px}
input{width:100%;padding:14px 15px;border-radius:14px;border:1px solid var(--line);margin-top:6px;font:inherit}
@media (max-width:1080px){.features,.programs,.grid-3,.doctors{grid-template-columns:1fr 1fr} .bundle,.cta{flex-direction:column;align-items:flex-start} .steps{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.wrap{width:min(1200px,calc(100% - 32px))} .grid-3,.features,.doctors,.programs,.steps{grid-template-columns:1fr} .section{padding:44px 0} .cta{padding:32px 24px} .plan{min-height:auto}}

/* Подарки в программе ведения беременности */
.gifts-section{background:var(--bg)}
.gifts-section .gifts-heading{text-align:center;margin-bottom:40px}
.gifts-section .gifts-heading .lead{margin:0 auto;max-width:760px}
.gifts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.gift-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:28px;overflow:visible;box-shadow:var(--shadow);display:flex;flex-direction:column}
.gift-photo{margin:14px 14px 0;border-radius:20px;overflow:hidden;aspect-ratio:1.26;background:#f6eee5}
.gift-photo img{width:100%;height:100%;object-fit:cover;display:block}
.gift-card:first-child .gift-photo img,.gift-card:last-child .gift-photo img{object-position:center 49%}
.gift-card:nth-child(2) .gift-photo img{object-position:center 40%}
.gift-content{padding:24px 24px 30px;flex:1}
.gift-number{color:var(--brand-dark);font-weight:800;letter-spacing:.08em;font-size:14px;margin-bottom:10px}
.gift-card h3{font-size:20px;line-height:1.22;margin:0 0 12px}
.gift-card p{font-size:15px;color:var(--muted);margin:0}
.gift-arrow{position:absolute;right:-25px;top:31%;z-index:2;width:24px;height:24px;display:grid;place-items:center;color:var(--brand-dark);font-size:21px;line-height:1;background:#faf6ef;border-radius:50%}
@media(max-width:950px){.gifts-grid{gap:16px}.gift-arrow{right:-20px}.gift-content{padding:20px 18px 26px}.gift-card h3{font-size:20px}}
@media(max-width:760px){.gifts-grid{grid-template-columns:1fr;gap:28px}.gift-photo{aspect-ratio:1.5}.gift-arrow{right:calc(50% - 12px);top:auto;bottom:-26px;transform:rotate(90deg)}.gift-content{padding:22px 24px 28px}}

.program-details-button { margin-top: 16px; width: 100%; cursor: pointer; font: inherit; }
.program-dialog { position: fixed; inset: 0; margin: auto; width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); overflow: auto; }
.program-dialog::backdrop { background: rgba(47, 41, 36, .55); }
.program-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.program-dialog-header h2 { margin: 0; font-size: clamp(22px, 5vw, 30px); }
.program-dialog-header form { margin: 0; }
.program-dialog-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 28px; cursor: pointer; }
.program-dialog-content { overflow-wrap: anywhere; }
.program-dialog-content iframe, .program-dialog-content table { max-width: 100%; }
.program-dialog-content table { width: 100%; }
.program-details-button:focus-visible, .program-dialog-close:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 3px; }
html:has(.program-dialog[open]) { overflow: hidden; }
@media (max-width: 760px) { .program-dialog { padding: 20px; } }
.hero-overlay { pointer-events: none; }
.hero-content a { pointer-events: auto; }
.hero-video:empty { display: none; }
#preview { background: #fef3c7; color: #713f12; text-align: center; padding: 8px; }
.section[id] { scroll-margin-top: 110px; }
@media (max-width: 900px) {
  .hero-overlay { min-height: clamp(420px, 62vh, 540px); }
}
@media (max-width: 760px) {
  .topbar .wrap { min-height: 80px; padding: 0 20px; }
  .logo img { height: 64px; max-width: 42vw; object-fit: contain; }
  .section[id] { scroll-margin-top: 92px; }
  .hero-overlay {
    min-height: clamp(380px, 58vh, 480px);
  }
  .hero-left { padding: 28px 20px 64px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 44px); }
  .hero-actions .btn { flex: 1 1 180px; }
}
@media (max-width: 480px) {
  .topbar .wrap { padding-inline: 12px; }
  .topbar-actions { flex-direction: column; align-items: flex-end; gap: 2px; padding-block: 6px; }
  .topbar .phone { font-size: 14px; }
  .topbar-actions .btn { padding: 8px 16px; font-size: 13px; }
  #doctors { margin-inline: 8px; border-radius: 16px; }
  #doctors > .wrap { width: calc(100% - 24px); }
  .doctor-status, .doctor-specs > span, .doctor-metrics { font-size: 12px; }
  .doctor-clinics .btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.manager-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 24px;
  border: 1px solid #e6dccb;
  border-radius: 16px;
  background: var(--cream);
  color: var(--ink);
}
.manager-dialog::backdrop { background: rgba(58,44,30,.45); }
.manager-dialog h2 { margin: 0 32px 8px 0; font-size: 22px; }
.manager-dialog .close { float: right; border: 0; background: none; font: inherit; font-size: 24px; cursor: pointer; }
.manager-dialog select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.manager-dialog input[type=checkbox] { width: auto; margin-right: 8px; }
.manager-dialog form > .btn { margin-top: 16px; }
.manager-dialog [role=status] { white-space: pre-line; }
.manager-dialog a { text-decoration: underline; }

/* Align trimester card prices and actions. */
.programs { align-items: stretch; grid-auto-rows: 1fr; }
.plan-media { flex-shrink: 0; }
.plan .cost { margin-top: auto; padding-top: 6px; }
.plan-actions { margin-top: 0; }

/* Fill trimester image areas edge to edge. */
.plan-media { padding: 0; }
.plan-media img { object-fit: cover; border-radius: 0; }
