/* ================================================================
   Комплексная стоматология — общие стили сайта
   Извлечено из исходного index.html без изменений внешнего вида.
   Фоны героя вынесены в CSS-переменные: их задаёт админка инлайном.
   ================================================================ */
:root{
  --teal:#0e7c86;          /* акцент / кнопки (из Figma) */
  --teal-dark:#0b636b;
  --headline:#16323a;      /* тёмный заголовок (из Figma) */
  --label:#0e7c86;         /* подпись над заголовком */
  --text:#16323a;          /* основной текст */
  --white:#ffffff;
  --header-h:78px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',-apple-system,'Segoe UI','Roboto',Arial,sans-serif;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit}

/* ================= ШАПКА ================= */
.header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  height:var(--header-h);
  display:flex;align-items:center;gap:28px;
  padding:0 clamp(18px,4vw,56px);
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(23,62,62,.06);
  transition:background .25s, box-shadow .25s;
}
/* при прокрутке — плотная белая плашка с тенью */
.header.scrolled{
  background:#fff;
  box-shadow:0 6px 22px rgba(22,50,58,.10);
  border-bottom-color:transparent;
}
.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}
.brand img{height:46px;width:auto;display:block}
.brand .brand-txt{display:flex;flex-direction:column;line-height:1.1}
.brand .brand-txt b{color:var(--headline);font-size:15px;letter-spacing:.2px}
.brand .brand-txt span{color:var(--label);font-size:11.5px}

.nav{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  display:flex;align-items:center;gap:26px;
}
.nav a{
  font-size:15px;font-weight:500;color:var(--headline);
  position:relative;padding:6px 0;transition:color .2s;
}
.nav a::after{
  content:"";position:absolute;left:0;right:100%;bottom:0;height:2px;
  background:var(--teal);transition:right .25s ease;
}
.nav a:hover{color:var(--teal)}
.nav a:hover::after{right:0}

.header-right{display:flex;align-items:center;gap:22px;margin-left:auto}
.addr{
  display:flex;align-items:center;gap:7px;
  font-size:13px;color:var(--text);white-space:nowrap;
}
.addr svg{width:16px;height:16px;fill:var(--teal);flex-shrink:0}
.phone{
  display:flex;align-items:center;gap:8px;
  font-size:17px;font-weight:700;color:var(--headline);white-space:nowrap;
  transition:color .2s;
}
.phone:hover{color:var(--teal)}
.phone svg{width:17px;height:17px;fill:var(--teal)}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--teal);color:#fff;font-weight:600;
  border:none;cursor:pointer;white-space:nowrap;
  transition:background .2s,transform .15s,box-shadow .2s;
}
.btn:hover{background:var(--teal-dark);transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(26,157,148,.35)}
.btn-header{padding:11px 22px;border-radius:26px;font-size:14.5px}

/* иконки-кнопки (моб.) */
.icon-actions{display:none;align-items:center;gap:12px;margin-left:auto}
.icon-btn{
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:transform .15s,box-shadow .2s;
}
.icon-btn:hover{transform:translateY(-1px)}
.icon-btn svg{width:21px;height:21px;fill:#fff}
.icon-phone{background:var(--teal)}
.icon-wa{background:#25d366}

/* бургер */
.burger{
  display:none;width:44px;height:44px;border:none;background:transparent;
  cursor:pointer;flex-direction:column;justify-content:center;gap:5px;
  padding:0 10px;margin-left:4px;
}
.burger span{height:2.5px;width:24px;background:var(--headline);border-radius:2px;transition:.3s}
.burger.open span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.burger.open span:nth-child(2){opacity:0}
.burger.open span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

/* ================= ГЕРОЙ ================= */
.hero{
  position:relative;min-height:100vh;
  padding-top:var(--header-h);
  display:flex;align-items:center;
  background:#eaeef0;
  overflow:hidden;
}
/* сам снимок: отдельный слой, чтобы можно было масштабировать независимо от вуали */
.hero-bg{
  position:absolute;inset:0;z-index:1;
  background-image:var(--hero-bg-d);
  background-repeat:no-repeat;
  /* cover, отдалённый на 10%: ширина «покрывающего» кадра = max(100%, 179.2vh)
     (179.2vh — высота секции × пропорции снимка 2752×1536), берём от неё 90% */
  background-size:calc(max(100%, 179.2vh) * .9) auto;
  /* позиция по вертикали 25% опускает девушку ниже — голова не упирается в шапку,
     по горизонтали кадр уходит на 30px за правый край */
  background-position:right -30px top 25%;
  /* левая кромка отдалённого кадра растворяется в фоне — стыка не видно */
  -webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,0) 10%,#000 19%);
  mask-image:linear-gradient(90deg,rgba(0,0,0,0) 10%,#000 19%);
}
/* светлая вуаль слева для читаемости текста — градиент из Figma */
.hero::before{
  content:"";position:absolute;inset:0;z-index:2;
  background:linear-gradient(90deg,
    rgba(255,255,255,.92) 0%,
    rgba(255,255,255,.84) 38%,
    rgba(255,255,255,.55) 56%,
    rgba(255,255,255,.18) 68%,
    rgba(153,153,153,0) 78%);
}
.hero-inner{
  position:relative;z-index:3;
  width:100%;max-width:1320px;margin:0 auto;
  padding:0 clamp(18px,4vw,56px);
}
.hero-content{max-width:640px;position:relative;transform:translateY(-30px)}
/* белая подложка под текстовым блоком — мягкое пятно без видимых краёв */
.hero-content::before{
  content:"";position:absolute;z-index:-1;display:block;
  left:-90px;right:-150px;top:-60px;bottom:-50px;
  background:radial-gradient(ellipse 80% 75% at 34% 48%,
    rgba(255,255,255,.96) 0%,
    rgba(255,255,255,.9) 46%,
    rgba(255,255,255,.5) 70%,
    rgba(255,255,255,0) 88%);
  filter:blur(8px);
}
.hero .label{
  color:var(--label);font-size:clamp(15px,1.55vw,20px);
  font-weight:500;letter-spacing:1.2px;margin-bottom:14px;
}
.hero h1{
  font-family:'Rubik',sans-serif;
  color:var(--headline);
  font-size:clamp(46px,6.6vw,85px);
  font-weight:500;line-height:1.02;letter-spacing:.06em;
  text-transform:uppercase;margin-bottom:16px;
}
.hero .subhead{
  font-family:'Rubik',sans-serif;
  color:var(--headline);
  font-size:clamp(24px,3.5vw,45px);
  font-weight:500;margin-bottom:34px;
}
.hero p.lead{
  font-size:clamp(16px,1.5vw,20px);line-height:1.55;
  color:var(--text);max-width:520px;margin-bottom:40px;
}
.btn-hero{
  padding:19px 40px;border-radius:40px;
  font-size:clamp(16px,1.5vw,19px);font-weight:600;
  box-shadow:0 10px 30px rgba(26,157,148,.3);
}

/* стеклянные плашки-преимущества под кнопкой */
.hero-perks{
  display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:12px;
  margin-top:34px;max-width:none;
}
.perk{
  flex:0 0 auto;white-space:nowrap;
  display:flex;align-items:center;gap:13px;
  padding:16px 22px;border-radius:16px;
  font-family:'Inter',sans-serif;
  font-size:16px;line-height:1.3;color:var(--headline);
  background:rgba(255,255,255,.32);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border:1px solid rgba(255,255,255,.6);
  box-shadow:0 8px 22px rgba(16,124,134,.12),
             inset 0 1px 0 rgba(255,255,255,.5);
}
.perk b{font-weight:700}
.perk-ic{
  flex-shrink:0;width:38px;height:38px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(14,124,134,.12);
}
.perk-ic svg{width:20px;height:20px;fill:var(--teal)}

/* ================= МОБИЛЬНОЕ МЕНЮ ================= */
.mobile-menu{
  position:fixed;top:var(--header-h);left:0;right:0;z-index:49;
  background:#fff;transform:translateY(-120%);transition:transform .32s ease;
  box-shadow:0 18px 30px rgba(23,62,62,.12);
  padding:12px 22px 26px;
}
.mobile-menu.open{transform:translateY(0)}
.mobile-menu a.m-link{
  display:block;padding:15px 4px;font-size:18px;font-weight:600;
  color:var(--headline);border-bottom:1px solid rgba(23,62,62,.07);
}
.mobile-menu .m-addr{
  display:flex;align-items:center;gap:8px;padding:16px 4px 6px;
  font-size:14px;color:var(--text);
}
.mobile-menu .m-addr svg{width:16px;height:16px;fill:var(--teal)}
.mobile-menu .btn{width:100%;padding:16px;border-radius:30px;font-size:17px;margin-top:14px}

/* ================= АДАПТИВ ================= */
/* Абсолютно центрированное меню из семи пунктов на ноутбучных ширинах
   наезжает на телефон справа, поэтому ниже 1360px оно становится
   обычным флекс-элементом: соседи его больше не перекрывают. */
@media (max-width:1360px){
  .nav{position:static;transform:none;margin:0 auto;gap:16px}
  .nav a{font-size:14px}
}
@media (max-width:1180px){
  .addr{display:none}
  .header-right{gap:16px}
  /* три карточки в строку не помещаются — складываем в столбик */
  .hero-perks{flex-direction:column;max-width:460px}
}
@media (max-width:1100px){
  .nav{display:none}
  .phone{display:none}
  .btn-header{display:none}
  .burger{display:flex}
  .icon-actions{display:flex}
  .brand .brand-txt{display:none}
  .header{gap:12px}
}
@media (max-width:960px){
  /* на мобильном фон снизу, текст сверху на белой вуали */
  .hero::before{
    background:linear-gradient(180deg,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.9) 42%,
      rgba(255,255,255,.35) 68%,
      rgba(255,255,255,0) 100%);
  }
  /* планшет и телефон остаются на прежнем кадре, прижатом к низу */
  .hero-bg{
    background-image:var(--hero-bg-t);
    background-position:center bottom;background-size:cover;
    -webkit-mask-image:none;mask-image:none;
  }
  /* белая подложка под текстом — только десктоп, здесь работает верхняя вуаль */
  .hero-content::before{display:none}
  .hero{align-items:flex-start}
  .hero-content{padding-top:26px;transform:none}
  .hero-perks{flex-direction:column;max-width:460px}
  /* в столбик ширину задаёт колонка, поэтому длинный текст переносим, а не тянем строкой */
  .perk{flex:none;white-space:normal}
}
@media (max-width:520px){
  :root{--header-h:66px}
  .brand img{height:40px}
  /* мобильный фон */
  .hero-bg{
    background-image:var(--hero-bg-m);
    background-size:cover;
    background-position:center top;
  }
  /* забеливание только под текстом сверху — с девушки убрано */
  .hero::before{
    background:linear-gradient(180deg,
      rgba(255,255,255,.97) 0%,
      rgba(255,255,255,.9) 30%,
      rgba(255,255,255,.45) 44%,
      rgba(255,255,255,0) 56%);
  }
  .hero-content::before{display:none}
  /* +30px высоты первому экрану: плашки снизу не упираются в край */
  .hero{min-height:calc(100vh + 30px)}
  /* размеры текста для телефона */
  .hero .label{font-size:13px}
  .label-sep{display:none}
  .label-addr{display:block}
  .hero h1{font-size:30px;letter-spacing:.03em}
  .hero .subhead{font-size:16px}
  .hero p.lead{font-size:13px;line-height:1.5}
  /* 176px = 96px + 80px: опускает кнопку, а вместе с ней и плашки под ней */
  .btn-hero{width:100%;padding:17px;margin-top:176px}
  .hero-perks{margin-top:16px;max-width:none}
  .perk{padding:12px 15px;font-size:14px;gap:12px}
  .perk-ic{width:34px;height:34px;border-radius:10px}
  .perk-ic svg{width:18px;height:18px}
}

/* ================= УСЛУГИ ================= */
.services{background:#EDF7F4;padding:clamp(56px,7vw,104px) 0}
.services-inner{
  max-width:1320px;margin:0 auto;padding:0 clamp(18px,4vw,56px);
  display:flex;align-items:center;gap:clamp(28px,4vw,64px);
}
.services-head{flex:0 0 32%;max-width:420px}
.services-title{
  font-family:'Rubik',sans-serif;text-transform:uppercase;
  font-size:clamp(34px,4.4vw,58px);font-weight:700;line-height:1.02;
  letter-spacing:.02em;color:var(--headline);
}
.services-sub{
  margin-top:20px;font-size:clamp(15px,1.35vw,18px);line-height:1.55;
  color:#3a5a5a;
}

.fan{display:flex;gap:14px;flex:1;height:460px;min-width:0}
.petal{
  position:relative;flex:1 1 0;min-width:0;overflow:hidden;cursor:pointer;
  border-radius:150px 150px 24px 24px;
  background-image:var(--img);background-size:cover;background-position:center;
  box-shadow:0 16px 34px rgba(16,124,134,.16);
  transition:flex .55s cubic-bezier(.4,0,.2,1);
}
.petal::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(14,124,134,0) 32%,rgba(9,52,58,.86) 100%);
  transition:background .4s;
}
.petal-tab{
  position:absolute;bottom:24px;left:50%;z-index:2;
  transform:translateX(-50%) rotate(180deg);writing-mode:vertical-rl;
  white-space:nowrap;color:#fff;font-weight:600;font-size:16px;letter-spacing:.4px;
  text-shadow:0 2px 8px rgba(0,0,0,.45);transition:opacity .3s;
}
.petal-panel{
  position:absolute;left:0;bottom:0;z-index:2;width:340px;max-width:100%;
  padding:26px 26px 30px;color:#fff;
  opacity:0;transform:translateY(16px);pointer-events:none;
  transition:opacity .4s .08s,transform .4s .08s;
}
.petal-panel h3{font-family:'Rubik',sans-serif;font-size:22px;font-weight:600;margin-bottom:13px}
.petal-panel ul{list-style:none;display:flex;flex-direction:column;gap:9px}
.petal-panel li{
  position:relative;padding-left:17px;font-size:14.5px;line-height:1.35;color:#eaf6f3;
}
.petal-panel li::before{
  content:"";position:absolute;left:0;top:7px;width:7px;height:7px;
  border-radius:50%;background:#66cfc4;
}
/* раскрытие: hover только там, где есть указатель */
@media (hover:hover) and (min-width:961px){
  .petal:hover{flex:4.4 1 0}
  .petal:hover .petal-tab{opacity:0}
  .petal:hover .petal-panel{opacity:1;transform:translateY(0);pointer-events:auto}
  .petal:hover::after{background:linear-gradient(180deg,rgba(14,124,134,.2) 0%,rgba(9,52,58,.9) 100%)}
}
.petal.open{flex:4.4 1 0}
.petal.open .petal-tab{opacity:0}
.petal.open .petal-panel{opacity:1;transform:translateY(0);pointer-events:auto}
.petal.open::after{background:linear-gradient(180deg,rgba(14,124,134,.2) 0%,rgba(9,52,58,.9) 100%)}

/* ---- мобильный/планшетный аккордеон ---- */
@media (max-width:960px){
  .services-inner{flex-direction:column;align-items:stretch;gap:26px}
  .services-head{flex:none;max-width:none}
  .fan{flex-direction:column;height:auto;gap:12px}
  .petal{
    flex:none;height:76px;border-radius:18px;
    transition:height .5s cubic-bezier(.4,0,.2,1);
  }
  .petal::after{background:linear-gradient(90deg,rgba(9,52,58,.82) 0%,rgba(9,52,58,.35) 60%,rgba(9,52,58,.15) 100%)}
  .petal-tab{
    writing-mode:horizontal-tb;transform:none;
    left:22px;bottom:auto;top:26px;font-size:17px;
  }
  .petal-panel{position:absolute;top:60px;bottom:auto;width:100%;padding:4px 22px 20px}
  .petal.open{flex:none;height:238px}
  .petal.open::after{background:linear-gradient(90deg,rgba(9,52,58,.9) 0%,rgba(9,52,58,.6) 100%)}
  .petal.open .petal-tab{opacity:1}
}
@media (max-width:520px){
  .petal.open{height:250px}
}

/* ================= ВРАЧИ ================= */
.doctors{background:var(--white);padding:clamp(56px,7vw,104px) 0}
.doctors-inner{max-width:1320px;margin:0 auto;padding:0 clamp(18px,4vw,56px)}
.doctors-head{
  max-width:600px;margin-left:auto;text-align:right;
  margin-bottom:clamp(34px,4vw,56px);
}
.doctors-title{
  font-family:'Rubik',sans-serif;text-transform:uppercase;
  font-size:clamp(34px,4.4vw,58px);font-weight:700;line-height:1.02;
  letter-spacing:.02em;color:var(--headline);
}
.doctors-sub{
  margin-top:18px;font-size:clamp(15px,1.35vw,18px);line-height:1.55;color:#3a5a5a;
}

.doctors-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(18px,2vw,28px)}
.doc-card{
  display:flex;flex-direction:column;overflow:hidden;
  background:#fff;border:1px solid rgba(16,124,134,.12);border-radius:24px;
  box-shadow:0 14px 34px rgba(16,124,134,.10);
  transition:transform .3s,box-shadow .3s;
}
.doc-card:hover{transform:translateY(-6px);box-shadow:0 22px 46px rgba(16,124,134,.18)}
.doc-photo{
  position:relative;aspect-ratio:4/5;overflow:hidden;
  background:linear-gradient(180deg,#eef3f4 0%,#e2eaec 100%);
}
.doc-photo img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.doc-badge{
  position:absolute;left:16px;bottom:16px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  color:var(--teal);font-size:13px;font-weight:600;
  padding:7px 15px;border-radius:20px;
  box-shadow:0 4px 14px rgba(16,124,134,.14);
}
.doc-body{padding:20px 20px 22px;display:flex;flex-direction:column;gap:12px;flex:1}
.doc-name{font-family:'Rubik',sans-serif;font-size:20px;font-weight:600;line-height:1.28;color:var(--headline)}
.doc-spec{font-size:14.5px;line-height:1.5;color:#3a5a5a}
.doc-actions{display:flex;gap:10px;margin-top:auto;padding-top:4px}
.btn-card{flex:1;padding:12px 10px;border-radius:26px;font-size:14.5px}
.btn-ghost{
  background:transparent;color:var(--teal);
  border:1.5px solid rgba(14,124,134,.35);
}
.btn-ghost:hover{
  background:rgba(14,124,134,.08);color:var(--teal-dark);
  border-color:var(--teal);box-shadow:none;
}

/* ---- выезжающая карточка врача ---- */
.sheet-overlay{
  position:fixed;inset:0;z-index:80;
  background:rgba(11,40,46,.55);
  opacity:0;pointer-events:none;transition:opacity .35s;
}
.sheet-overlay.open{opacity:1;pointer-events:auto}
.sheet{
  position:fixed;left:0;right:0;bottom:0;z-index:81;
  background:#fff;border-radius:28px 28px 0 0;
  max-height:90vh;overflow-y:auto;overscroll-behavior:contain;
  box-shadow:0 -18px 50px rgba(11,40,46,.28);
  transform:translateY(100%);
  transition:transform .45s cubic-bezier(.22,.8,.24,1);
}
.sheet.open{transform:translateY(0)}
.sheet-grab{
  position:sticky;top:0;z-index:3;background:#fff;
  padding:12px 0 6px;border-radius:28px 28px 0 0;
  display:flex;justify-content:center;
}
.sheet-grab i{display:block;width:52px;height:4px;border-radius:3px;background:#cddedd}
.sheet-close{
  position:absolute;top:14px;right:clamp(16px,4vw,40px);z-index:4;
  width:38px;height:38px;border-radius:50%;border:none;cursor:pointer;
  background:#eef5f4;display:flex;align-items:center;justify-content:center;
  transition:background .2s;
}
.sheet-close:hover{background:#dceceb}
.sheet-close svg{width:16px;height:16px;fill:var(--headline)}
.sheet-inner{max-width:1060px;margin:0 auto;padding:6px clamp(18px,4vw,40px) 34px}

.sheet-hero{display:flex;gap:clamp(20px,3vw,34px);align-items:flex-start}
.sheet-photo{
  flex:0 0 clamp(160px,20vw,230px);aspect-ratio:4/5;
  border-radius:20px;overflow:hidden;
  background:linear-gradient(180deg,#eef3f4,#e2eaec);
}
.sheet-photo img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.sheet-info{flex:1;min-width:0}
.sheet-role{
  display:inline-block;background:rgba(14,124,134,.1);color:var(--teal);
  font-size:13px;font-weight:600;padding:6px 14px;border-radius:20px;margin-bottom:12px;
}
.sheet-name{
  font-family:'Rubik',sans-serif;font-size:clamp(24px,3vw,34px);
  font-weight:600;line-height:1.15;color:var(--headline);margin-bottom:14px;
}
.sheet-text{font-size:15.5px;line-height:1.6;color:#3a5a5a;margin-bottom:16px}
.sheet-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.sheet-tags span{
  font-size:13.5px;color:#2f5c5c;background:#eff7f5;
  padding:7px 13px;border-radius:18px;border:1px solid rgba(16,124,134,.12);
}
.sheet-where{
  display:flex;align-items:flex-start;gap:9px;
  font-size:14.5px;line-height:1.5;color:#3a5a5a;
  background:#f4f9f8;border-radius:14px;padding:13px 16px;
}
.sheet-where svg{width:17px;height:17px;fill:var(--teal);flex-shrink:0;margin-top:2px}

.sheet-revhead{
  display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
  margin:30px 0 16px;padding-top:26px;border-top:1px solid rgba(16,124,134,.12);
}
.sheet-revhead h4{font-family:'Rubik',sans-serif;font-size:21px;font-weight:600;color:var(--headline)}
.sheet-revhead a{font-size:14px;color:var(--teal);font-weight:500;margin-left:auto}
.sheet-revhead a:hover{text-decoration:underline}
.revs{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.rev{background:#f4f9f8;border-radius:16px;padding:16px 18px}
.rev-top{display:flex;align-items:center;gap:10px;margin-bottom:9px}
.rev-av{
  width:34px;height:34px;border-radius:50%;flex-shrink:0;
  background:var(--teal);color:#fff;font-size:14px;font-weight:600;
  display:flex;align-items:center;justify-content:center;
}
.rev-who{min-width:0;display:flex;flex-direction:column;gap:2px}
.rev-name{font-size:14.5px;font-weight:600;color:var(--headline);line-height:1.2;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rev-date{font-size:12.5px;color:#7d9797;line-height:1.2}
.stars{display:flex;gap:2px;margin-left:auto;flex-shrink:0}
.stars svg{width:14px;height:14px;fill:#f5b301}
.rev-text{font-size:14.5px;line-height:1.55;color:#3a5a5a}

.sheet-cta{
  display:flex;gap:12px;align-items:center;flex-wrap:wrap;
  margin-top:26px;padding-top:24px;border-top:1px solid rgba(16,124,134,.12);
}
.sheet-cta .btn{padding:16px 40px;border-radius:32px;font-size:16px}
.sheet-cta .sheet-phone{
  display:flex;align-items:center;gap:8px;
  font-size:16px;font-weight:600;color:var(--headline);
}
.sheet-cta .sheet-phone svg{width:17px;height:17px;fill:var(--teal)}

@media (max-width:960px){
  .doctors-head{max-width:none;text-align:left;margin-left:0}
  .doctors-grid{grid-template-columns:repeat(2,1fr)}
  .sheet-hero{flex-direction:column;align-items:stretch}
  .sheet-photo{flex:none;width:150px;aspect-ratio:1/1;border-radius:18px}
}
@media (max-width:620px){
  .doctors-grid{grid-template-columns:1fr;max-width:420px}
  .doc-photo{aspect-ratio:1/1}
  .sheet{max-height:92vh;border-radius:22px 22px 0 0}
  .sheet-cta .btn{width:100%}
  .sheet-cta .sheet-phone{justify-content:center;width:100%}
}

/* ================================================================
   НОВЫЕ БЛОКИ (добавлены вместе с админкой)
   Тот же визуальный язык: Rubik в заголовках, бирюза, скруглённые
   карточки с мягкой тенью.
   ================================================================ */

/* общая обёртка и заголовок секции */
.sec{padding:clamp(56px,7vw,104px) 0}
.sec-light{background:#fff}
.sec-tint{background:#EDF7F4}
.sec-inner{max-width:1320px;margin:0 auto;padding:0 clamp(18px,4vw,56px)}
.sec-head{max-width:720px;margin-bottom:clamp(30px,3.6vw,52px)}
.sec-head.center{margin-left:auto;margin-right:auto;text-align:center}
.sec-title{
  font-family:'Rubik',sans-serif;text-transform:uppercase;
  font-size:clamp(34px,4.4vw,58px);font-weight:700;line-height:1.02;
  letter-spacing:.02em;color:var(--headline);
}
.sec-sub{margin-top:18px;font-size:clamp(15px,1.35vw,18px);line-height:1.55;color:#3a5a5a}
.sec-sub a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.sec-sub a:hover{color:var(--teal-dark)}
/* уменьшенный заголовок — для юридических страниц с длинными названиями */
.sec-title-sm .sec-title{font-size:clamp(24px,2.6vw,36px);line-height:1.12}

/* --- текстовый блок --- */
.prose{max-width:820px;font-size:clamp(15px,1.35vw,17.5px);line-height:1.7;color:#3a5a5a}
.prose.center{margin-left:auto;margin-right:auto;text-align:center}
.prose p{margin-bottom:16px}
.prose p:last-child{margin-bottom:0}
.prose h3{
  font-family:'Rubik',sans-serif;font-size:clamp(20px,2.2vw,26px);
  font-weight:600;color:var(--headline);margin:26px 0 12px;
}
.prose ul,.prose ol{margin:0 0 16px 0;padding-left:0;list-style:none}
.prose ol{counter-reset:n}
.prose li{position:relative;padding-left:26px;margin-bottom:10px}
.prose ul li::before{
  content:"";position:absolute;left:4px;top:10px;width:8px;height:8px;
  border-radius:50%;background:var(--teal);
}
.prose ol li{counter-increment:n}
.prose ol li::before{
  content:counter(n) ".";position:absolute;left:0;top:0;
  color:var(--teal);font-weight:700;
}
.prose a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.prose b,.prose strong{color:var(--headline);font-weight:700}

/* --- преимущества сеткой --- */
.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2vw,26px)}
.feat{
  background:#fff;border:1px solid rgba(16,124,134,.12);border-radius:22px;
  padding:clamp(22px,2.4vw,30px);
  box-shadow:0 12px 30px rgba(16,124,134,.08);
  transition:transform .3s,box-shadow .3s;
}
.feat:hover{transform:translateY(-5px);box-shadow:0 20px 42px rgba(16,124,134,.15)}
.feat-ic{
  width:52px;height:52px;border-radius:15px;margin-bottom:16px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(14,124,134,.11);
}
.feat-ic svg{width:26px;height:26px;fill:var(--teal)}
.feat-num{
  font-family:'Rubik',sans-serif;font-size:34px;font-weight:700;
  color:var(--teal);line-height:1;margin-bottom:12px;
}
.feat h3{
  font-family:'Rubik',sans-serif;font-size:19px;font-weight:600;
  color:var(--headline);margin-bottom:9px;line-height:1.3;
}
.feat p{font-size:15px;line-height:1.6;color:#3a5a5a}
@media (max-width:960px){.feat-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.feat-grid{grid-template-columns:1fr}}

/* --- прайс --- */
.price-group{margin-bottom:clamp(26px,3vw,40px)}
.price-group:last-child{margin-bottom:0}
.price-group h3{
  font-family:'Rubik',sans-serif;font-size:clamp(20px,2.2vw,25px);font-weight:600;
  color:var(--headline);margin-bottom:16px;
}
.price-table{
  background:#fff;border:1px solid rgba(16,124,134,.12);border-radius:20px;
  overflow:hidden;box-shadow:0 12px 30px rgba(16,124,134,.08);
}
.price-row{
  display:flex;align-items:baseline;gap:14px;
  padding:16px clamp(16px,2vw,24px);
  border-bottom:1px solid rgba(16,124,134,.09);
}
.price-row:last-child{border-bottom:none}
.price-row:nth-child(odd){background:#fbfdfd}
.price-name{font-size:15.5px;line-height:1.45;color:var(--text)}
/* точечный поводок между названием и ценой */
.price-dots{flex:1;min-width:18px;border-bottom:1px dotted rgba(16,124,134,.4);transform:translateY(-4px)}
.price-val{
  font-family:'Rubik',sans-serif;font-size:16.5px;font-weight:600;
  color:var(--teal);white-space:nowrap;
}
@media (max-width:520px){
  .price-row{flex-wrap:wrap;gap:4px}
  .price-dots{display:none}
  .price-val{width:100%}
}

/* --- галерея --- */
.gal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(12px,1.6vw,20px)}
.gal-item{
  position:relative;border-radius:20px;overflow:hidden;
  box-shadow:0 12px 30px rgba(16,124,134,.12);
  background:linear-gradient(180deg,#eef3f4,#e2eaec);
}
.gal-item img{
  width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;display:block;
  transition:transform .45s cubic-bezier(.3,0,.2,1);
}
.gal-item:hover img{transform:scale(1.05)}
.gal-cap{
  position:absolute;left:0;right:0;bottom:0;
  padding:26px 18px 14px;color:#fff;font-size:14.5px;line-height:1.4;
  background:linear-gradient(180deg,rgba(9,52,58,0),rgba(9,52,58,.85));
}
@media (max-width:960px){.gal-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.gal-grid{grid-template-columns:1fr}}

/* --- призыв к действию --- */
.cta-band{
  background:linear-gradient(120deg,#0e7c86 0%,#0b636b 100%);
  border-radius:clamp(22px,3vw,34px);
  padding:clamp(34px,5vw,66px) clamp(24px,4vw,60px);
  color:#fff;text-align:center;
  box-shadow:0 22px 50px rgba(14,124,134,.28);
}
.cta-band h2{
  font-family:'Rubik',sans-serif;font-size:clamp(26px,3.6vw,44px);
  font-weight:700;line-height:1.12;margin-bottom:14px;
}
.cta-band p{
  font-size:clamp(15px,1.5vw,18px);line-height:1.6;
  color:rgba(255,255,255,.9);max-width:640px;margin:0 auto 28px;
}
.cta-actions{display:flex;gap:14px;justify-content:center;align-items:center;flex-wrap:wrap}
.btn-white{
  background:#fff;color:var(--teal);
  padding:17px 42px;border-radius:34px;font-size:16.5px;
}
.btn-white:hover{background:#eef7f6;color:var(--teal-dark);box-shadow:0 10px 26px rgba(0,0,0,.18)}
.cta-phone{
  display:flex;align-items:center;gap:9px;
  font-size:17px;font-weight:600;color:#fff;
}
.cta-phone svg{width:18px;height:18px;fill:#fff}
@media (max-width:520px){
  .btn-white{width:100%}
  .cta-phone{width:100%;justify-content:center}
}

/* --- контакты --- */
.contacts-grid{display:grid;grid-template-columns:0.9fr 1.1fr;gap:clamp(20px,3vw,40px);align-items:start}
.contact-list{display:flex;flex-direction:column;gap:14px}
.contact-item{
  display:flex;align-items:flex-start;gap:14px;
  background:#fff;border:1px solid rgba(16,124,134,.12);border-radius:18px;
  padding:18px 20px;box-shadow:0 10px 26px rgba(16,124,134,.07);
}
.contact-ic{
  flex-shrink:0;width:42px;height:42px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(14,124,134,.11);
}
.contact-ic svg{width:21px;height:21px;fill:var(--teal)}
.contact-item b{
  display:block;font-family:'Rubik',sans-serif;font-size:13px;font-weight:600;
  color:var(--teal);text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px;
}
.contact-item span,.contact-item a{font-size:16px;line-height:1.45;color:var(--headline)}
.contact-item a:hover{color:var(--teal)}
.contact-map{
  border-radius:22px;overflow:hidden;min-height:340px;
  background:#eef3f4;box-shadow:0 14px 34px rgba(16,124,134,.12);
}
.contact-map iframe{width:100%;height:100%;min-height:340px;border:0;display:block}
@media (max-width:860px){.contacts-grid{grid-template-columns:1fr}}

/* --- подвал --- */
.footer{background:#16323a;color:#c9dcdd;padding:clamp(40px,5vw,64px) 0 28px}
.footer-inner{max-width:1320px;margin:0 auto;padding:0 clamp(18px,4vw,56px)}
.footer-top{
  display:flex;gap:clamp(24px,4vw,60px);flex-wrap:wrap;
  padding-bottom:26px;border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-brand{flex:0 1 auto;min-width:0}
.footer-brand img{height:44px;width:auto;display:block;margin-bottom:14px;filter:brightness(0) invert(1);opacity:.92}
.footer-brand p{font-size:14.5px;line-height:1.6;color:#9fbcbd;max-width:320px}
.footer-legal{flex-basis:100%;order:5;margin-top:6px;display:flex;flex-direction:row;justify-content:center;gap:28px}
.footer-legal a{font-size:13.5px;line-height:1.4;color:#9fbcbd;text-decoration:underline;text-underline-offset:2px}
.footer-legal a:hover{color:#fff}
.footer-col{flex:0 1 auto;min-width:150px}
.footer-col--contacts{margin-left:auto}
.footer-nav-grid{display:grid;grid-template-columns:repeat(2,minmax(0,max-content));column-gap:34px}
.footer-col b{
  display:block;font-family:'Rubik',sans-serif;color:#fff;font-size:15px;
  font-weight:600;margin-bottom:14px;
}
.footer-col a,.footer-col span{display:block;font-size:14.5px;line-height:1.5;margin-bottom:10px;color:#c9dcdd}
.footer-col a:hover{color:#fff}
.footer-bottom{
  padding-top:20px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  font-size:13px;color:#7f9c9d;
}
.footer-bottom a:hover{color:#c9dcdd}
@media (max-width:620px){
  .footer-top{gap:20px}
  .footer-brand{flex-basis:100%;order:0}
  .footer-brand p{max-width:none}
  .footer-legal{order:1;flex-direction:column;align-items:center;text-align:center;margin-top:16px;gap:9px}
  .footer-col--nav{order:2;margin-left:0;flex-basis:100%}
  .footer-col--contacts{order:3;margin-left:0}
}

/* ===================== АКЦИИ ===================== */
/* Готовые макеты акций: две картинки в ряд, прижаты влево,
   под ними одна кнопка записи. */
.promo-wrap{max-width:820px;margin-inline:auto}
.promo-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(14px,1.6vw,22px)}
.promo-card{margin:0;border-radius:18px;overflow:hidden;background:#eef4f4;
  box-shadow:0 10px 30px rgba(22,50,58,.10)}
/* пропорции заданы заранее — место под картинку резервируется до загрузки */
.promo-card img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block}
.promo-btn{
  display:flex;width:max-content;margin:clamp(18px,2vw,26px) auto 0;
  padding:16px 34px;border-radius:30px;font-size:16px;
}
@media (max-width:520px){
  .promo-grid{gap:10px}
  .promo-card{border-radius:13px}
  .promo-btn{width:100%;padding:15px 20px;font-size:15px}
}

/* ================= БЕГУЩАЯ ЛЕНТА ФОТО ================= */
.marq-sec{overflow:hidden}
/* заголовок отбит от ленты, сама лента идёт от края до края */
.marq-sec .sec-head{margin-bottom:clamp(26px,3vw,44px)}

.marq{
  --marq-gap:clamp(12px,1.4vw,20px);
  --marq-h:clamp(180px,21vw,300px);
  position:relative;
  overflow:hidden;
  padding:6px 0;
  /* края растворяются, чтобы фото не обрывались резко об экран */
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.marq-track{
  display:flex;
  gap:var(--marq-gap);
  width:max-content;
  animation:marq-run var(--marq-time,60s) linear infinite;
  will-change:transform;
}
.marq-set{display:flex;gap:var(--marq-gap)}

/* сдвиг на половину дорожки плюс половина промежутка — иначе на стыке
   копии появляется лишний зазор и лента дёргается */
@keyframes marq-run{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(calc(-50% - var(--marq-gap)/2),0,0)}
}

.marq:hover .marq-track,
.marq:focus-within .marq-track,
.marq.paused .marq-track{animation-play-state:paused}

.marq-item{
  flex:0 0 auto;
  display:block;
  height:var(--marq-h);
  padding:0;border:0;background:none;
  border-radius:18px;
  overflow:hidden;
  cursor:zoom-in;
  transition:transform .28s ease;
}
.marq-item img{
  display:block;
  height:100%;width:auto;
  max-width:none;
  object-fit:cover;
  -webkit-user-select:none;user-select:none;
}
.marq-item:hover,
.marq-item:focus-visible{
  transform:translateY(-6px);
}
.marq-item:focus-visible{outline:3px solid var(--teal);outline-offset:3px}

/* ---- увеличенное фото ---- */
.lightbox{
  position:fixed;inset:0;z-index:120;
  display:flex;align-items:center;justify-content:center;
  padding:clamp(16px,4vw,48px);
  background:rgba(10,32,36,.86);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  opacity:0;visibility:hidden;
  transition:opacity .24s ease, visibility .24s;
}
.lightbox.open{opacity:1;visibility:visible}
.lightbox-fig{
  margin:0;max-width:min(1100px,100%);max-height:100%;
  display:flex;flex-direction:column;align-items:center;gap:14px;
  transform:scale(.96);transition:transform .24s ease;
}
.lightbox.open .lightbox-fig{transform:scale(1)}
.lightbox img{
  display:block;
  max-width:100%;max-height:82vh;
  width:auto;height:auto;
  border-radius:18px;
  box-shadow:0 30px 70px rgba(0,0,0,.45);
}
.lightbox figcaption{
  color:#eaf6f3;font-size:15px;line-height:1.45;text-align:center;
  max-width:70ch;
}
.lightbox-close{
  position:absolute;top:clamp(12px,2vw,26px);right:clamp(12px,2vw,26px);
  width:46px;height:46px;border:0;border-radius:50%;
  background:rgba(255,255,255,.14);color:#fff;
  font-size:26px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s;
}
.lightbox-close:hover{background:rgba(255,255,255,.26)}

@media (max-width:620px){
  .marq{--marq-h:clamp(150px,44vw,210px)}
  .marq-item{border-radius:14px}
  .lightbox img{max-height:74vh}
}

/* уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion:reduce){
  .marq{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .marq-track{animation:none}
  .marq-set:last-child{display:none}
  .marq-item{transition:none}
}

/* название рядом с логотипом в подвале — та же вёрстка, что в шапке,
   только белым по тёмному */
.footer-brand-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.footer-brand-head img{margin-bottom:0}
.footer-brand .brand-txt{display:flex;flex-direction:column;line-height:1.1}
.footer-brand .brand-txt b{color:#fff;font-size:15px;letter-spacing:.2px}
.footer-brand .brand-txt span{color:#fff;font-size:11.5px}

/* ссылка в нижней строке подвала — подчёркнутая, иначе неотличима от текста */
.footer-bottom a{color:#c9dcdd;text-decoration:underline;text-underline-offset:2px}
.footer-bottom a:hover{color:#fff}

/* ===================== КВИЗ ===================== */
.quiz-sec .sec-head{margin-bottom:clamp(26px,3vw,40px)}
.quiz{
  position:relative;
  max-width:780px;margin:0 auto;
  background:#fff;
  border:1px solid rgba(16,124,134,.14);
  border-radius:24px;
  padding:clamp(22px,3vw,38px);
  box-shadow:0 18px 44px rgba(16,124,134,.10);
}
/* полоса прогресса */
.quiz-bar{height:5px;border-radius:4px;background:#e8f2f1;overflow:hidden;margin-bottom:clamp(20px,2.4vw,30px)}
.quiz-bar-fill{
  display:block;height:100%;width:0;
  background:var(--teal);border-radius:4px;
  transition:width .32s ease;
}

/* шаги: показан один, остальные убраны из потока */
.quiz-step{display:none}
.quiz-step.active{display:block;animation:quiz-in .28s ease}
@keyframes quiz-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.quiz-num{
  font-family:'Rubik',sans-serif;font-size:12.5px;font-weight:600;
  letter-spacing:.6px;text-transform:uppercase;color:var(--label);
  margin-bottom:10px;
}
.quiz-q{
  font-family:'Rubik',sans-serif;font-weight:700;
  font-size:clamp(19px,2.1vw,26px);line-height:1.25;color:var(--headline);
  margin-bottom:clamp(16px,2vw,24px);
}
.quiz-opts{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.quiz-opt{
  text-align:left;
  padding:16px 18px;
  border:1.5px solid rgba(16,124,134,.22);border-radius:14px;
  background:#fff;color:var(--text);
  font-family:inherit;font-size:15.5px;line-height:1.35;
  cursor:pointer;
  transition:border-color .18s,background .18s,transform .18s;
}
.quiz-opt:hover{border-color:var(--teal);background:#f2fbf9;transform:translateY(-2px)}
.quiz-opt:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.quiz-opt.picked{border-color:var(--teal);background:var(--teal);color:#fff}

.quiz-back{
  margin-top:18px;padding:0;border:0;background:none;
  font-family:inherit;font-size:14.5px;color:var(--label);cursor:pointer;
}
.quiz-back:hover{color:var(--teal-dark);text-decoration:underline}

/* последний экран */
.quiz-final-text{font-size:15.5px;line-height:1.6;color:#3a5a5a;margin-bottom:18px}

@media (max-width:620px){
  .quiz-opts{grid-template-columns:1fr}
  .quiz-opt{padding:14px 16px;font-size:15px}
  .quiz-actions .btn{width:100%}
}

/* заголовок квиза — целая фраза, а не пара слов: капслок и размер
   секционного заголовка её ломают на четыре строки */
.quiz-sec .sec-head{max-width:820px}
.quiz-sec .sec-title{
  text-transform:none;
  font-size:clamp(24px,2.9vw,38px);
  line-height:1.18;
  letter-spacing:0;
}

/* форма на последнем шаге квиза */
.quiz-form{display:grid;gap:14px;max-width:440px}
.quiz-field{display:flex;flex-direction:column;gap:6px}
.quiz-field span{font-size:13.5px;color:var(--label);font-weight:600}
.quiz-field input{
  padding:14px 16px;
  border:1.5px solid rgba(16,124,134,.22);border-radius:12px;
  font-family:inherit;font-size:16px;color:var(--text);background:#fff;
  transition:border-color .18s;
}
.quiz-field input:focus{outline:none;border-color:var(--teal)}
.quiz-field input::placeholder{color:#9db3b3}
/* ловушка для ботов: с экрана убрана, но остаётся в форме */
.quiz-trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.quiz-submit{padding:15px 28px;border-radius:30px;font-size:16px;justify-self:start}
.quiz-submit:disabled{opacity:.7;cursor:default;transform:none}
.quiz-err{display:none;font-size:14px;color:#c0392b}
.quiz-err.show{display:block}
.quiz-note{font-size:12.5px;line-height:1.45;color:#7b9797}

@media (max-width:620px){
  .quiz-form{max-width:none}
  .quiz-submit{width:100%;justify-self:stretch}
}

/* ===================== ОТЗЫВЫ БЕГУЩЕЙ СТРОКОЙ ===================== */
.rv-sec{overflow:hidden}
.rv-sec .sec-head{margin-bottom:clamp(24px,3vw,40px)}

.rv-row{
  --rv-gap:clamp(14px,1.6vw,22px);
  position:relative;overflow:hidden;
  padding:8px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
}
.rv-row + .rv-row{margin-top:var(--rv-gap)}
.rv-track{display:flex;gap:var(--rv-gap);width:max-content;animation:rv-run var(--rv-time,75s) linear infinite;will-change:transform}
.rv-set{display:flex;gap:var(--rv-gap)}
/* вторая строка едет в обратную сторону */
.rv-row.reverse .rv-track{animation-direction:reverse}
@keyframes rv-run{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(calc(-50% - var(--rv-gap)/2),0,0)}
}
.rv-row:hover .rv-track,
.rv-row:focus-within .rv-track,
.rv-row.paused .rv-track{animation-play-state:paused}

.rv-card{
  flex:0 0 auto;
  width:clamp(268px,25vw,340px);
  min-height:210px;
  display:flex;flex-direction:column;
  background:#0E7C86;color:#fff;
  border-radius:20px;
  padding:20px 22px;
}
.rv-top{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.rv-ava{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0;background:rgba(255,255,255,.18)}
.rv-ava-empty{
  display:flex;align-items:center;justify-content:center;
  font-family:'Rubik',sans-serif;font-weight:600;font-size:18px;color:#fff;
}
.rv-name{font-family:'Rubik',sans-serif;font-weight:600;font-size:15.5px;line-height:1.2;color:#fff;margin-bottom:5px}
.rv-stars{display:flex;gap:2px}
.rv-star svg{width:15px;height:15px;display:block;fill:#FFC93F}
.rv-star.empty svg{fill:rgba(255,255,255,.3)}
.rv-text{
  font-size:14.5px;line-height:1.5;color:rgba(255,255,255,.92);
  /* длинные отзывы обрезаем: карточки в строке должны быть одной высоты */
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:7;overflow:hidden;
}

/* кнопка «больше отзывов» */
.rv-more{display:flex;justify-content:center;margin-top:clamp(24px,3vw,38px)}
.rv-more-btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:14px 26px;border-radius:30px;
  border:1.5px solid rgba(16,124,134,.3);background:#fff;
  font-size:15.5px;font-weight:600;color:var(--teal);
  transition:border-color .2s,box-shadow .2s,transform .2s;
}
.rv-more-btn:hover{border-color:var(--teal);box-shadow:0 10px 26px rgba(16,124,134,.16);transform:translateY(-1px)}
.rv-more-btn .ya-pin{width:22px;height:22px;display:block;flex-shrink:0}

@media (max-width:620px){
  .rv-card{width:clamp(240px,80vw,290px);min-height:196px;padding:18px}
  .rv-text{-webkit-line-clamp:6}
  .rv-more-btn{width:100%;justify-content:center;text-align:center}
}

@media (prefers-reduced-motion:reduce){
  .rv-row{overflow-x:auto}
  .rv-track{animation:none}
  .rv-set:last-child{display:none}
}

/* ===================== ДО И ПОСЛЕ ===================== */
.ba-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2vw,26px)}
.ba-card{margin:0}
.ba-frame{
  position:relative;
  aspect-ratio:16/10;
  border-radius:20px;overflow:hidden;
  background:#e8f2f1;
  box-shadow:0 14px 34px rgba(16,124,134,.12);
  /* фото у пар сняты по-разному: общая пропорция + cover держат кадры вровень */
  touch-action:pan-y;
}
.ba-img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;
  -webkit-user-select:none;user-select:none;
}
/* верхний слой обрезаем по позиции бегунка */
.ba-img-before{clip-path:inset(0 calc(100% - var(--ba-pos)) 0 0)}

.ba-tag{
  position:absolute;top:12px;z-index:2;
  padding:5px 12px;border-radius:20px;
  font-size:12.5px;font-weight:600;letter-spacing:.3px;
  background:rgba(22,50,58,.62);color:#fff;
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  pointer-events:none;
}
.ba-tag-l{left:12px}
.ba-tag-r{right:12px}

.ba-line{
  position:absolute;top:0;bottom:0;left:var(--ba-pos);
  width:3px;margin-left:-1.5px;z-index:3;
  background:#fff;box-shadow:0 0 0 1px rgba(16,124,134,.25);
  pointer-events:none;
}
.ba-grip{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:40px;height:40px;border-radius:50%;
  background:#fff;box-shadow:0 4px 14px rgba(16,50,58,.28);
}
/* стрелки внутри кружка */
.ba-grip::before,.ba-grip::after{
  content:'';position:absolute;top:50%;width:0;height:0;
  border-top:5px solid transparent;border-bottom:5px solid transparent;
  transform:translateY(-50%);
}
.ba-grip::before{left:9px;border-right:7px solid var(--teal)}
.ba-grip::after{right:9px;border-left:7px solid var(--teal)}

/* сам бегунок — обычный range во всю карточку: тянется мышью, пальцем
   и стрелками с клавиатуры, но визуально его не видно */
.ba-range{
  position:absolute;inset:0;z-index:4;
  width:100%;height:100%;margin:0;
  -webkit-appearance:none;appearance:none;
  background:none;cursor:ew-resize;
}
.ba-range::-webkit-slider-thumb{-webkit-appearance:none;width:44px;height:100%;cursor:ew-resize}
.ba-range::-moz-range-thumb{width:44px;height:100%;border:0;background:transparent;cursor:ew-resize}
.ba-range:focus{outline:none}
.ba-range:focus-visible + .ba-tag,
.ba-frame:focus-within .ba-line{box-shadow:0 0 0 2px var(--teal)}

.ba-cap{margin-top:12px;font-size:14.5px;line-height:1.4;color:#3a5a5a;text-align:center}

@media (max-width:960px){.ba-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){
  .ba-grid{grid-template-columns:1fr;max-width:420px;margin:0 auto}
  .ba-frame{border-radius:16px}
}

/* ===================== ОКНО ЗАПИСИ ===================== */
.book{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:20px}
.book[hidden]{display:none}
.book-back{position:absolute;inset:0;background:rgba(12,42,48,.55);backdrop-filter:blur(3px);
  opacity:0;transition:opacity .22s}
.book.open .book-back{opacity:1}
.book-card{
  position:relative;width:100%;max-width:430px;background:#fff;border-radius:24px;
  padding:clamp(24px,3vw,34px);box-shadow:0 30px 70px rgba(12,42,48,.28);
  opacity:0;transform:translateY(14px) scale(.98);transition:opacity .22s,transform .22s;
  max-height:calc(100vh - 40px);overflow-y:auto;
}
.book.open .book-card{opacity:1;transform:none}
.book-close{
  position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:50%;
  background:#f0f6f6;display:flex;align-items:center;justify-content:center;
  border:none;cursor:pointer;transition:background .2s;
}
.book-close:hover{background:#e2eeee}
.book-close svg{width:17px;height:17px;fill:var(--headline)}
.book-title{
  font-family:'Rubik',sans-serif;font-size:24px;font-weight:700;line-height:1.15;
  color:var(--headline);padding-right:30px;
}
.book-sub{margin-top:10px;font-size:14.5px;line-height:1.55;color:#3a5a5a}
.book-form{margin-top:20px;display:flex;flex-direction:column;gap:13px}
.book-field{display:block}
.book-field>span{display:block;font-size:12.5px;font-weight:600;color:#6b8789;margin-bottom:6px}
.book-field input{
  width:100%;padding:13px 15px;font:inherit;font-size:15px;color:var(--text);
  border:1px solid #dfe8e9;border-radius:12px;background:#fbfdfd;
  transition:border-color .15s,box-shadow .15s;
}
.book-field input:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(14,124,134,.14)}
.book-trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
/* галочка согласия */
.book-agree{display:flex;gap:10px;align-items:flex-start;cursor:pointer;margin-top:2px}
.book-agree input{position:absolute;opacity:0;width:0;height:0}
.book-tick{
  flex-shrink:0;width:20px;height:20px;margin-top:1px;border-radius:6px;
  border:1.5px solid #cfdedf;background:#fff;position:relative;transition:background .15s,border-color .15s;
}
.book-tick::after{
  content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(.6);
  opacity:0;transition:opacity .15s,transform .15s;
}
.book-agree input:checked+.book-tick{background:var(--teal);border-color:var(--teal)}
.book-agree input:checked+.book-tick::after{opacity:1;transform:rotate(45deg) scale(1)}
.book-agree input:focus-visible+.book-tick{box-shadow:0 0 0 3px rgba(14,124,134,.2)}
.book-agree-txt{font-size:12.5px;line-height:1.5;color:#6b8789}
.book-agree-txt a{color:var(--teal);text-decoration:underline}
.book-submit{width:100%;padding:15px 20px;border-radius:30px;font-size:15.5px;margin-top:4px}
.book-err{font-size:13px;color:#c0392b;display:none}
.book-err.show{display:block}
.book-call{margin-top:16px;text-align:center;font-size:13.5px;color:#6b8789}
.book-call a{color:var(--teal);font-weight:600;white-space:nowrap}
/* экран «отправлено» */
.book-done{text-align:center;padding:10px 0}
.book-done[hidden]{display:none}
.book-ok{
  display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;
  border-radius:50%;background:var(--teal);margin-bottom:16px;
}
.book-ok svg{width:28px;height:28px;fill:#fff}
.book-done .book-title{padding-right:0}
.book-done .book-submit{margin-top:20px}
@media (max-width:520px){
  .book{padding:14px}
  .book-card{border-radius:20px;max-height:calc(100vh - 28px)}
  .book-title{font-size:21px}
}

/* ================= ПЛАШКА COOKIE ================= */
.cookie{
  position:fixed;left:16px;right:16px;bottom:16px;z-index:60;
  opacity:0;transform:translateY(16px);
  transition:opacity .3s ease,transform .3s ease;
  pointer-events:none;
}
.cookie.show{opacity:1;transform:none;pointer-events:auto}
.cookie-inner{
  max-width:760px;margin:0 auto;
  display:flex;align-items:center;gap:18px;
  background:#fff;color:var(--text);
  border:1px solid rgba(23,62,62,.08);
  border-radius:18px;
  padding:16px 20px;
  box-shadow:0 18px 44px rgba(12,42,48,.18);
}
.cookie-txt{
  margin:0;flex:1;
  font-size:14px;line-height:1.5;color:var(--headline);
}
.cookie-txt a{color:var(--teal);font-weight:600;text-decoration:underline}
.cookie-txt a:hover{color:var(--teal-dark)}
.cookie-ok{
  flex:0 0 auto;
  padding:12px 28px;border-radius:30px;
  font-size:15px;
}
@media (max-width:520px){
  .cookie{left:12px;right:12px;bottom:12px}
  .cookie-inner{flex-direction:column;align-items:stretch;gap:14px;padding:16px}
  .cookie-txt{font-size:13.5px}
  .cookie-ok{width:100%;padding:14px}
}
