:root {
  --accent: #17b3a3;
  --accent-dark: #0e8d80;
  --accent-soft: #e8f8f6;
  --ink: #14241f;
  --muted: #5d7370;
  --line: #e3ebe9;
  --bg: #ffffff;
  --bg-alt: #f5faf9;
  --radius: 16px;
  --shadow: 0 2px 4px rgba(16, 42, 38, .04), 0 12px 32px rgba(16, 42, 38, .06);
  --wrap: 1140px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 700; }
h2 { font-size: clamp(25px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: inherit; }

img, iframe { max-width: 100%; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent); border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--accent-dark); border-color: var(--line); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.logo__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); }
.logo__mark svg { width: 21px; height: 21px; }
.logo__text b { color: var(--accent-dark); font-weight: 700; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 15px; text-decoration: none; transition: color .15s ease; }
.nav a:hover { color: var(--accent-dark); }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--accent-dark); }

.burger { display: none; width: 40px; height: 40px; padding: 10px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 68px 0 76px; background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 78%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  color: var(--accent-dark); font-size: 13px; font-weight: 600;
}
.lead { max-width: 30em; color: var(--muted); font-size: 17px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 34px; margin: 0; padding: 0; list-style: none; }
.hero__badges li { color: var(--muted); font-size: 14px; }
.hero__badges b { display: block; color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }

.hero__media { position: relative; }
.hero__card {
  position: absolute; left: -18px; bottom: 28px;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 18px; background: #fff;
  border-radius: 14px; box-shadow: var(--shadow);
}
.hero__card b { display: block; font-size: 14px; }
.hero__card small { color: var(--muted); font-size: 13px; }
.hero__card-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47, 191, 113, .18); }

/* placeholders */
.ph {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #d7f0ec 0%, #bfe4de 55%, #a8d8d1 100%);
  border-radius: var(--radius);
  color: rgba(14, 141, 128, .75); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.ph--hero { aspect-ratio: 4 / 3.2; box-shadow: var(--shadow); }
.ph--doc { aspect-ratio: 1 / 1; margin-bottom: 16px; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head p { margin: 0; color: var(--muted); font-size: 17px; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- cards ---------- */
.card {
  padding: 26px 24px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.card__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px;
  background: var(--accent-soft); border-radius: 12px; font-size: 22px;
}
.card p { color: var(--muted); font-size: 15px; }
.card__price { color: var(--accent-dark); font-size: 15px; font-weight: 650; }

.feature { padding: 22px 0 0; border-top: 2px solid var(--accent); }
.feature b { display: block; margin-bottom: 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.doctor { padding: 16px 16px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.doctor h3 { margin-bottom: 4px; }
.doctor p { color: var(--muted); font-size: 15px; }
.doctor__role { margin-bottom: 12px; color: var(--accent-dark) !important; font-size: 14px !important; font-weight: 600; }

/* ---------- price table ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.price { width: 100%; min-width: 420px; border-collapse: collapse; }
.price th, .price td { padding: 15px 24px; text-align: left; }
.price th { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.price th:last-child, .price td:last-child { text-align: right; white-space: nowrap; }
.price tbody tr { border-top: 1px solid var(--line); }
.price tbody tr:hover { background: var(--accent-soft); }
.price td:last-child { font-weight: 600; }
.note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- reviews ---------- */
.review { margin: 0; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.review p { color: var(--muted); font-size: 15px; }
.review footer { color: var(--ink); font-size: 14px; font-weight: 600; }
.stars { margin-bottom: 12px; color: #f5a623; font-size: 15px; letter-spacing: 2px; }

/* ---------- faq ---------- */
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  color: var(--accent-dark); font-size: 22px; font-weight: 400; line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-dark); }
.faq p { margin: -4px 0 18px; padding: 0 22px; max-width: 62ch; color: var(--muted); font-size: 15px; }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 420px; gap: 28px; align-items: start; }

.contacts__info dl { display: grid; grid-template-columns: 140px 1fr; gap: 12px 16px; margin: 0 0 22px; }
.contacts__info dt { color: var(--muted); font-size: 14px; }
.contacts__info dd { margin: 0; font-size: 15px; font-weight: 550; }
.contacts__info a { text-decoration: none; }
.contacts__info a:hover { color: var(--accent-dark); }
.contacts__links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

.map { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ---------- form ---------- */
.form { padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form h3 { margin-bottom: 4px; }
.form__sub { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.form label { display: block; margin-bottom: 14px; }
.form label > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 550; }
.form label i { color: var(--muted); font-style: normal; font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23, 179, 163, .16);
}
.form input:user-invalid { border-color: #e05b52; }
.form__note { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.form__ok {
  margin: 14px 0 0; padding: 12px 14px;
  background: var(--accent-soft); border-radius: 10px;
  color: var(--accent-dark); font-size: 14px; font-weight: 600;
}

/* ---------- footer ---------- */
.footer { padding: 56px 0 28px; background: #10201c; color: #b7c9c5; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer p { margin: 12px 0 0; max-width: 26em; line-height: 1.6; }
.footer b { display: block; margin-bottom: 12px; color: #fff; font-size: 15px; }
.footer a, .footer span { display: block; margin-bottom: 8px; color: #b7c9c5; text-decoration: none; }
.footer a:hover { color: #fff; }
.logo--footer { color: #fff; }
.logo--footer .logo__text b { display: inline; margin: 0; color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  color: #7e918d; font-size: 12.5px;
}
.footer__bottom span { margin: 0; }

/* ---------- floating cta ---------- */
.callback {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: none; padding: 14px 24px;
  background: var(--accent); color: #fff;
  border-radius: 999px; box-shadow: 0 8px 24px rgba(23, 179, 163, .4);
  font-size: 15px; font-weight: 600; text-decoration: none;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 520px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .header__phone { display: none; }
  .burger { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    padding: 8px 20px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 56px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero__badges { gap: 24px; }
  .hero__card { left: 10px; bottom: 12px; }
  .contacts__info dl { grid-template-columns: 1fr; gap: 2px 0; }
  .contacts__info dt { margin-top: 10px; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .form { padding: 22px 18px; }
  .callback { display: block; }
  .header .btn--sm { display: none; }
}

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