/* ============================================================
   Борис СП — лендинг. Палитра «Тёплая семейная».
   Один файл, без сборки. Правится напрямую.
   ============================================================ */

:root {
  --green-deep: #3D5E51;
  --green: #5E8C7B;
  --green-700: #34503f;
  --green-soft: #EAF1EC;
  --gold: #C8A35B;
  --gold-dark: #a9863f;
  --cream: #F6F1E9;
  --cream-2: #FBF8F2;
  --ink: #2E342F;
  --muted: #6B7269;
  --line: #E6DFD2;
  --white: #ffffff;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(61, 94, 81, .09);
  --shadow-sm: 0 3px 12px rgba(61, 94, 81, .07);

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

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

h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }

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

section[id] { scroll-margin-top: 80px; }

.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--solid { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: #3a2c10; }
.btn--gold:hover { background: var(--gold-dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--green-deep); border-color: var(--green); }
.btn--ghost:hover { background: var(--green-soft); }
.btn--lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar { background: var(--green-deep); color: #dbe6df; font-size: 13.5px; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 12px 18px; flex-wrap: wrap; }
.topbar__address{display:flex;align-items:center;gap:.35em;font-size:.85rem}
.topbar__schedule { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.topbar__address{display:flex;align-items:center;gap:.35em;font-size:.85rem}
.topbar__schedule .icon { width: 17px; height: 17px; color: var(--gold); }
.topbar__phones { display: flex; gap: 18px; }
.topbar__phones { display: flex; align-items: center; gap: 18px; }
.topbar__phones .icon { width: 17px; height: 17px; color: var(--gold); margin-right: 5px; }
.topbar__phones a { font-weight: 600; color: #fff; }
.topbar__phones a:hover { color: var(--gold); }

.navbar { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.navbar__row { display: flex; align-items: center; gap: 18px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.brand__icon { width: 38px; height: 38px; flex: none; color: var(--green-deep); display: flex; align-items: center; justify-content: center; }
.brand__icon .icon { width: 34px; height: 34px; stroke-width: 1.5; }
.brand__name { display: inline-flex; align-items: center; gap: 6px; font-size: 25px; font-weight: 800; color: var(--green-deep); letter-spacing: .005em; }
.brand__badge { font-size: 12px; font-weight: 700; color: #fff; background: var(--gold); padding: 2px 6px; border-radius: 5px; letter-spacing: .05em; }
.brand__tag { margin-left: 5px; padding-left: 11px; border-left: 1px solid var(--line); font-size: 10.5px; line-height: 1.2; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; max-width: 96px; }
.brand__mark { font-size: 21px; font-weight: 700; color: var(--green-deep); letter-spacing: .01em; }
.brand__mark--light { color: var(--white); font-size: 24px; }

.nav { display: flex; gap: 22px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--green); border-color: var(--gold); }

.navbar__actions { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; gap: 2px; }
.lang { font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 7px; border-radius: 7px; }
.lang:hover { color: var(--green-deep); background: var(--green-soft); }
.lang.is-active { color: #fff; background: var(--green); }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--green-soft); color: var(--green-deep); border: none; border-radius: var(--radius-sm); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--cream) 0%, var(--cream-2) 70%); padding: 52px 0 58px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.hero__main { max-width: 600px; }
.hero__eyebrow { margin: 0 0 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--green-deep); background: var(--white); padding: 7px 15px; border-radius: 100px; box-shadow: var(--shadow-sm); }
.hero__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero__title { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.03; color: var(--green-deep); margin-bottom: 18px; }
.hero__subtitle { font-size: clamp(16px, 2.1vw, 19px); color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 520px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat__num { display: block; font-size: 30px; font-weight: 800; color: var(--gold-dark); line-height: 1; margin-bottom: 7px; }
.stat__label { font-size: 13px; color: var(--muted); line-height: 1.35; }

.hero__art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__art-glow { position: absolute; width: 84%; aspect-ratio: 1 / 1; border-radius: 50%; background: radial-gradient(circle, rgba(94,140,123,.22), rgba(200,163,91,.13) 55%, rgba(246,241,233,0) 72%); }
.hero__art img { position: relative; width: 100%; max-width: 410px; height: auto; filter: drop-shadow(0 22px 38px rgba(61,94,81,.22)); }

/* ---------- Sections ---------- */
.section { padding: 66px 0; }
.section--alt { background: var(--cream-2); }
.section__head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.section__title { font-size: clamp(25px, 3.6vw, 34px); color: var(--green-deep); }
.section__title::after { content: ""; display: block; width: 46px; height: 3px; background: var(--gold); border-radius: 3px; margin: 14px auto 0; }
.section__subtitle { margin: 16px 0 0; color: var(--muted); font-size: 16.5px; }

/* ---------- About ---------- */
.about__text { max-width: 820px; margin: 0 auto; text-align: center; }
.about__lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--ink); font-weight: 500; margin: 6px 0 18px; }
.about__body { color: var(--muted); font-size: 16px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--services { grid-template-columns: repeat(4, 1fr); }
.grid--adv { grid-template-columns: repeat(3, 1fr); gap: 26px 30px; }
.grid--doctors { grid-template-columns: repeat(3, 1fr); }
.grid--reviews { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Service ---------- */
.service { padding: 30px 26px; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9cfbb; }
.service__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 17px; background: var(--green-deep); color: var(--gold); margin-bottom: 18px; box-shadow: inset 0 0 0 1px rgba(200,163,91,.28); }
.service__icon .icon { width: 36px; height: 36px; stroke-width: 1.6; }
.service__title { font-size: 19px; color: var(--green-deep); margin-bottom: 8px; }
.service__text { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- Advantages ---------- */
.adv { display: flex; gap: 16px; align-items: flex-start; padding: 6px 0; }
.adv__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--green-deep); color: var(--gold); }
.adv__icon .icon { width: 24px; height: 24px; }
.adv__title { font-size: 17px; color: var(--green-deep); margin-bottom: 4px; }
.adv__text { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- Doctors ---------- */
.doctor { padding: 28px 24px; text-align: center; }
.doctor__photo { width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; background: var(--green-soft); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor__name { font-size: 19px; color: var(--green-deep); margin-bottom: 4px; }
.doctor__role { color: var(--gold-dark); font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.doctor__bio { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; text-align: left; }

/* ---------- Prices (accordion) ---------- */
.prices { max-width: 880px; margin: 0 auto; }
.prices__updated { text-align: center; font-size: 14px; color: #6b7c70; margin-bottom: 24px; cursor: default; user-select: none; transition: opacity 0.3s; }
.prices__hint { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.price-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.price-group__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 22px; cursor: pointer; list-style: none; font-weight: 600; color: var(--green-deep); font-size: 17px; user-select: none; }
.price-group__head::-webkit-details-marker { display: none; }
.price-group__head:hover { background: var(--green-soft); }
.price-group__chev { color: var(--green); transition: transform .2s ease; }
.price-group[open] > .price-group__head { background: var(--green-soft); border-bottom: 1px solid var(--line); }
.price-group[open] > .price-group__head .price-group__chev { transform: rotate(180deg); }
.price-group__body { padding: 6px 22px 14px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table tr { border-bottom: 1px solid var(--line); }
.price-table tr:last-child { border-bottom: none; }
.price-table__name { padding: 11px 14px 11px 0; font-size: 15px; color: var(--ink); }
.price-table__price { padding: 11px 0; text-align: right; white-space: nowrap; font-weight: 600; color: var(--green-700); font-size: 15px; }

/* ---------- Reviews ---------- */
.review { padding: 24px 22px; display: flex; flex-direction: column; }
.review__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 12px; }
.review__stars .icon { width: 18px; height: 18px; }
.review__text { margin: 0 0 18px; font-size: 15px; color: var(--ink); line-height: 1.6; flex: 1; }
.review__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.review__name { font-weight: 600; color: var(--green-deep); font-size: 15px; }
.review__tag { font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 100px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.contact__cta { margin: 0 0 22px; font-size: 18px; color: var(--ink); font-weight: 500; }
.contact__list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .icon { width: 24px; height: 24px; color: var(--green); margin-top: 2px; }
.contact__label { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
.contact__phone { display: block; font-weight: 600; font-size: 17px; color: var(--green-deep); }
.contact__phone:hover { color: var(--gold-dark); }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; box-shadow: var(--shadow-sm); }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #cdd9d0; padding: 48px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand { max-width: 400px; }
.footer__logo { font-size: 1.5rem; font-weight: 700; color: #fff; display: block; margin-bottom: 12px; }
.footer__about { font-size: 14px; line-height: 1.65; margin: 0; }
.footer__crest { text-align: center; }
.footer__crest img { width: 120px; height: auto; opacity: .9; }
.footer__contacts { display: flex; flex-direction: column; gap: 12px; justify-self: end; text-align: right; }
.footer__contacts > div { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.footer__contacts .icon { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.footer__phones div { display: flex; flex-direction: column; gap: 2px; }
.footer__phones a { font-weight: 600; color: #fff; font-size: 15px; }
.footer__phones a:hover { color: var(--gold); }
.footer__address span, .footer__hours span { font-size: 14px; }
.footer__langs { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.footer__langs-row { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.footer__lang { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: 14px; text-decoration: none; transition: color .2s; }
.footer__lang:hover { color: #fff; }
.footer__flag { width: 24px; height: 18px; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.footer__bottom { background: rgba(0,0,0,.15); padding: 20px 0; margin-top: 30px; }
.footer__keywords { font-size: 12px; line-height: 1.7; color: #9fb0a5; margin: 0 0 10px; }
.footer__copy { font-size: 13px; color: #8ea096; margin: 0; }
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .footer__brand, .footer__crest, .footer__contacts { justify-self: center; }
  .footer__contacts { text-align: center; }
  .footer__contacts > div { justify-content: center; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--doctors, .grid--reviews { grid-template-columns: repeat(2, 1fr); }
  .grid--adv { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .hero__main { max-width: none; order: 2; }
  .hero__art { order: 1; }
  .hero__art img { max-width: 320px; }
  .hero__stats { max-width: none; }
}

@media (max-width: 880px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 22px 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .navbar { position: sticky; }
  .navbar__row { position: relative; }
  .nav-toggle { display: inline-flex; }
  .navbar .btn--gold { display: none; }
  .brand__tag { display: none; }
  .topbar__row { justify-content: center; gap: 8px 16px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 36px 0 40px; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat { padding: 13px 12px; }
  .stat__num { font-size: 25px; }
  .grid--services { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid--adv { grid-template-columns: 1fr; }
  .grid--doctors, .grid--reviews { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
  .hero__art img { max-width: 260px; }
  .topbar__phones { gap: 12px; font-size: 13px; }
}

@media (max-width: 420px) {
  .grid--services { grid-template-columns: 1fr; }
  .service { display: flex; align-items: flex-start; gap: 14px; padding: 18px; }
  .service__icon { margin-bottom: 0; width: 54px; height: 54px; }
  .service__icon .icon { width: 30px; height: 30px; }
}

/* ============================================================
   Facts Slider
   ============================================================ */
.section--facts { background: linear-gradient(135deg, #f8f5f0 0%, #f0ebe4 100%); }
.facts-slider { position: relative; overflow: hidden; }
.facts-slider__track { display: flex; gap: 24px; transition: transform 0.5s ease; }
.fact-card { flex: 0 0 calc(33.333% - 16px); background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); text-align: center; }
.fact-card__img { width: 120px; height: 120px; margin: 0 auto 20px; }
.fact-card__img img { width: 100%; height: 100%; object-fit: contain; }
.fact-card__title { font-size: 18px; font-weight: 600; color: #1e3a2f; margin: 0 0 12px; line-height: 1.3; }
.fact-card__text { font-size: 14px; color: #5a6b62; line-height: 1.6; margin: 0; }

.facts-slider__nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; }
.facts-slider__btn { width: 48px; height: 48px; border-radius: 50%; background: #1e3a2f; color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.facts-slider__btn:hover { background: #c9a227; transform: scale(1.1); }
.facts-slider__btn--prev .icon { transform: rotate(90deg); }
.facts-slider__btn--next .icon { transform: rotate(-90deg); }
.facts-slider__btn .icon { width: 20px; height: 20px; }

.facts-slider__dots { display: flex; gap: 8px; }
.facts-slider__dot { width: 10px; height: 10px; border-radius: 50%; background: #c9d5cf; border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.facts-slider__dot.is-active { background: #c9a227; transform: scale(1.2); }

@media (max-width: 900px) {
  .fact-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 600px) {
  .fact-card { flex: 0 0 100%; }
  .fact-card__img { width: 100px; height: 100px; }
  .fact-card__title { font-size: 16px; }
}
