/* ============================================================
   DENTAL CARE — "South Broad" (визуальная система не менялась
   при ребрендинге; исходно снята с фасада реального здания
   прежнего клиента — белые складчатые панели, красный кирпич).
   Мобильный первым. Никаких фреймворков.
   ============================================================ */

:root{
  --ink:    #16202B;
  --ink-80: #33414F;
  --paper:  #FFFFFF;
  --panel:  #EDF1F4;
  --panel-2:#E2E9EF;
  --brand:  #1F5FA8;
  --brand-d:#17497F;
  --brick:  #A8412C;
  --brick-d:#8C3423;
  --muted:  #5C6B7A;
  --line:   #D6DEE5;

  --cut: 22px;                 /* срез угла = складка крыши здания */
  --wrap: 1180px;
  --gut: 20px;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --sp-s: 12px;
  --sp-m: 24px;
  --sp-l: 48px;
  --sp-xl: 72px;
}

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

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

body{
  font-family:var(--f-body);
  font-size:16.5px;
  line-height:1.62;
  color:var(--ink);
  background:var(--paper);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:var(--brand); text-decoration:none; }
a:hover{ color:var(--brand-d); }
ul{ list-style:none; }
button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; }

:focus-visible{
  outline:3px solid var(--brand);
  outline-offset:3px;
}
.section--brick :focus-visible,
.section--ink :focus-visible,
.facts :focus-visible,
.footer :focus-visible,
.menu :focus-visible,
.lb :focus-visible{ outline-color:#FFD9A0; }

/* ---------- Типографика ---------- */
h1,h2,h3,h4{
  font-family:var(--f-display);
  font-weight:700;
  font-stretch:112%;
  letter-spacing:-0.02em;
  line-height:1.08;
  text-wrap:balance;
}
h1{ font-size:clamp(33px, 8.2vw, 52px); font-weight:800; line-height:1.02; letter-spacing:-0.028em; }
h2{ font-size:clamp(27px, 5.6vw, 42px); }
h3{ font-size:20px; letter-spacing:-0.01em; }
h4{ font-size:17px; letter-spacing:-0.005em; }

p{ text-wrap:pretty; }

.eyebrow{
  font-family:var(--f-body);
  font-size:14px;
  font-weight:600;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--brand);
  display:block;
  margin-bottom:14px;
}
.eyebrow--brick{ color:var(--brick); }
.eyebrow--light{ color:#9FC2E8; }
.section--brick .eyebrow--light{ color:#FADFD8; }

.lead{ font-size:17.5px; color:var(--ink-80); }
.muted{ color:var(--muted); }
.small{ font-size:14px; }

/* ---------- Раскладка ---------- */
.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gut); }

.section{ padding-block:var(--sp-xl); }
.section--panel{ background:var(--panel); }
.section--ink{ background:var(--ink); color:#DDE6EE; }
.section--brick{ background:var(--brick); color:#FBEEE9; }
.section--tight{ padding-block:var(--sp-l); }

.section__head{ max-width:60ch; margin-bottom:var(--sp-l); }
.section__head p{ margin-top:14px; color:var(--muted); font-size:17px; }
.section--ink .section__head p,
.section--brick .section__head p{ color:inherit; opacity:.82; }

/* ---------- Срезанный угол ---------- */
.cut{
  clip-path:polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.cut--bl{
  clip-path:polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

/* ---------- Кнопки ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:52px; padding:0 26px;
  font-family:var(--f-display); font-weight:700; font-stretch:112%;
  font-size:15px; letter-spacing:.005em;
  white-space:nowrap;
  border:1.5px solid transparent;
  transition:background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
  clip-path:polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.btn:active{ transform:translateY(1px); }
.btn--primary{ background:var(--brand); color:#fff; }
.btn--primary:hover{ background:var(--brand-d); color:#fff; }
.btn--ghost{ border-color:var(--line); color:var(--ink); background:var(--paper); }
.btn--ghost:hover{ border-color:var(--ink); color:var(--ink); }
.btn--onink{ border-color:rgba(255,255,255,.34); color:#fff; }
.btn--onink:hover{ border-color:#fff; background:rgba(255,255,255,.09); color:#fff; }
.btn--onbrick{ background:#fff; color:var(--brick-d); }
.btn--onbrick:hover{ background:#FBEEE9; color:var(--brick-d); }
.btn--sm{ min-height:44px; padding:0 18px; font-size:14px; }
.btn svg{ width:17px; height:17px; flex:none; }

.btn-row{ display:flex; flex-wrap:wrap; gap:12px; }

/* ============================================================
   ШАПКА
   ============================================================ */
.header{
  position:sticky; top:0; z-index:60;
  background:var(--paper);
  border-bottom:1px solid var(--line);
  transition:transform 260ms ease;
}
.header.is-hidden{ transform:translateY(-102%); }

.header__bar{
  display:flex; align-items:center; gap:14px;
  min-height:66px;
}
.brand{ display:flex; align-items:center; margin-right:auto; }
.brand img{ width:auto; height:38px; }

.nav{ display:none; }

.header__tools{ display:flex; align-items:center; gap:10px; }

.langswitch{
  display:flex; align-items:center;
  border:1px solid var(--line);
  font-size:14px; font-weight:600; letter-spacing:.08em;
}
.langswitch a{
  display:flex; align-items:center; justify-content:center;
  min-width:44px; min-height:44px; padding:0 6px;
  color:var(--muted);
}
.langswitch a[aria-current="true"]{ background:var(--brand); color:#fff; }

.iconbtn{
  display:flex; align-items:center; justify-content:center;
  width:46px; height:46px;
  border:1px solid var(--line);
  color:var(--ink);
}
.iconbtn svg{ width:21px; height:21px; }
.iconbtn:hover{ border-color:var(--ink); color:var(--ink); }

.header .btn{ display:none; }
.header__phone{ display:none; }

/* мобильное меню */
.menu{
  position:fixed; inset:0; z-index:70;
  background:var(--ink); color:#fff;
  padding:22px var(--gut) 40px;
  display:flex; flex-direction:column;
  transform:translateY(-100%);
  visibility:hidden;
  transition:transform 300ms cubic-bezier(.4,0,.2,1), visibility 300ms;
  overflow-y:auto;
}
.menu.is-open{ transform:translateY(0); visibility:visible; }
.menu__top{ display:flex; justify-content:flex-end; margin-bottom:26px; }
.menu__close{ display:flex; align-items:center; justify-content:center; width:46px; height:46px; border:1px solid rgba(255,255,255,.3); color:#fff; }
.menu__close svg{ width:21px; height:21px; }
.menu__list{ display:flex; flex-direction:column; }
.menu__list a{
  font-family:var(--f-display); font-weight:700; font-stretch:112%;
  font-size:27px; letter-spacing:-0.02em;
  color:#fff; padding:13px 0;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.menu__list a[aria-current="page"]{ color:#7FB2E8; }
.menu__foot{ margin-top:auto; padding-top:30px; display:grid; gap:12px; }
.menu__foot .small{ color:#9FB0C0; }

/* ============================================================
   ПЕРВЫЙ ЭКРАН
   ============================================================ */
.hero{ background:var(--panel); }
.hero__grid{ display:grid; }
.hero__text{ padding:44px var(--gut) 40px; max-width:var(--wrap); margin-inline:auto; width:100%; }
.hero__kicker{
  font-size:14px; font-weight:600; letter-spacing:.15em; text-transform:uppercase;
  color:var(--brick); display:flex; align-items:center; gap:10px; margin-bottom:18px;
}
.hero__kicker::after{ content:""; height:1px; flex:1; background:var(--line); max-width:120px; }
.hero h1{ margin-bottom:20px; }
.hero h1 em{ font-style:normal; color:var(--brand); }
.hero__sub{ font-size:17.5px; color:var(--ink-80); max-width:46ch; margin-bottom:14px; }
.hero__es{
  display:inline-flex; align-items:center; gap:8px;
  font-size:14px; font-weight:600; color:var(--brick);
  border:1px solid rgba(168,65,44,.3); padding:6px 12px; margin-bottom:26px;
}
.hero__media{ position:relative; }
.hero__media img{ width:100%; height:260px; object-fit:cover; }

.facts{ background:var(--ink); color:#fff; }
.facts__grid{
  display:grid; grid-template-columns:repeat(2,1fr);
}
.fact{
  padding:18px 16px;
  border-bottom:1px solid rgba(255,255,255,.13);
  border-right:1px solid rgba(255,255,255,.13);
}
.fact:nth-child(2n){ border-right:none; }
.fact:nth-last-child(-n+2){ border-bottom:none; }
.fact strong{
  display:block; font-family:var(--f-display); font-weight:800; font-stretch:112%;
  font-size:21px; letter-spacing:-0.02em; color:#fff; line-height:1.15;
}
.fact > span{ display:block; font-size:14px; color:#9FB0C0; margin-top:3px; }
.fact strong span{ display:inline; font-size:inherit; color:inherit; margin:0; }

/* ============================================================
   КАРТОЧКИ-ПАНЕЛИ (хайрлайн вместо тени — плоские панели, не «пух»)
   ============================================================ */
.pc{
  background:var(--line);
  padding:1px;
  transition:background 220ms ease, translate 220ms ease;
  clip-path:polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.pc__in{
  background:var(--paper);
  height:100%;
  padding:26px 24px 28px;
  clip-path:polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
@media (hover:hover){
  a.pc:hover, .pc:hover{ background:var(--brand); translate:0 -3px; }
}
.section--panel .pc__in{ background:var(--paper); }

/* ---------- Услуги ---------- */
.svc-grid{ display:grid; gap:18px; }
.svc__icon{ width:34px; height:34px; color:var(--brand); margin-bottom:16px; }
.svc h3{ margin-bottom:9px; }
.svc__blurb{ color:var(--muted); font-size:15.5px; margin-bottom:18px; }
.svc__list{ border-top:1px solid var(--line); }
.svc__list li{ border-bottom:1px solid var(--line); }
.svc__list li:last-child{ border-bottom:none; }
.svc__list a, .svc__list span{
  display:block; padding:11px 0; font-size:15.5px; color:var(--ink);
  position:relative; padding-right:20px;
}
.svc__list a::after{
  content:"→"; position:absolute; right:0; top:11px; color:var(--brand);
  opacity:0; transform:translateX(-5px); transition:200ms ease;
}
.svc__list a:hover{ color:var(--brand); }
.svc__list a:hover::after{ opacity:1; transform:translateX(0); }

/* ---------- Почему мы ---------- */
.why-grid{ display:grid; gap:1px; background:var(--line); border:1px solid var(--line); }
.why{ background:var(--paper); padding:26px 22px; }
.why__n{
  font-family:var(--f-display); font-weight:800; font-stretch:112%;
  font-size:14px; letter-spacing:.1em; color:var(--brick); display:block; margin-bottom:12px;
}
.why h3{ font-size:19px; margin-bottom:8px; }
.why p{ font-size:15.5px; color:var(--muted); }

/* ---------- Команда ---------- */
.team-grid{ display:grid; gap:20px; }
.doc__photo{
  width:100%; aspect-ratio:3/4; object-fit:cover; object-position:center top;
  background:var(--panel-2);
  clip-path:polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.doc h3{ margin-top:16px; }
.doc__role{ font-size:14px; font-weight:600; color:var(--brand); margin-top:5px; }
.doc__bio{ font-size:15.5px; color:var(--muted); margin-top:10px; }

.team-photo{ margin-top:var(--sp-xl); max-width:760px; }
.team-photo img{ width:100%; }
.team-photo figcaption{ font-size:14px; color:var(--muted); margin-top:12px; }

/* ============================================================
   ДОСТИЖЕНИЯ КЛИНИКИ
   ============================================================ */
.creds{ display:grid; gap:34px; }
.cred{ display:grid; gap:20px; align-content:start; }
.cred__plate{
  background:var(--paper);
  border:1px solid var(--line);
  min-height:132px; padding:24px 28px;
  display:flex; align-items:center; justify-content:center;
  clip-path:polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.cred__plate img{ width:100%; max-width:430px; height:auto; }
.cred__plate--ada img{ max-width:220px; }
.cred__text h3{ font-size:21px; margin-bottom:10px; }
.cred__text p{ color:var(--muted); font-size:16px; max-width:44ch; }
.cred__text em{ font-style:italic; }

/* ============================================================
   СТЕНА БЛАГОДАРНОСТЕЙ — сигнатурный блок
   ============================================================ */
.notes{ position:relative; overflow:hidden; }
.notes::before{
  content:""; position:absolute; inset:0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 1px, transparent 1px 74px);
  opacity:.55; pointer-events:none;
}
.notes .wrap{ position:relative; z-index:1; }
.notes__head{ display:grid; gap:16px; margin-bottom:var(--sp-l); }
.notes__head h2{ color:#fff; }
.notes__head p{ color:#FBEEE9; max-width:54ch; }

.notes__rail{
  display:flex; gap:16px;
  overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:14px; margin-inline:calc(var(--gut) * -1); padding-inline:var(--gut);
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.note{
  flex:0 0 min(78%, 320px); scroll-snap-align:center;
  background:#fff; padding:9px;
  transform:rotate(var(--rot));
  transition:transform 260ms ease, translate 260ms ease;
  cursor:zoom-in;
  box-shadow:0 10px 26px rgba(40,10,4,.26);
}
@media (hover:hover){
  .note:hover{ transform:rotate(0deg); translate:0 -4px; }
}
.note:focus-visible{ transform:rotate(0deg); translate:0 -4px; }
.note img{ width:100%; }
.notes__foot{ margin-top:26px; font-size:14px; color:#FBEEE9; }

/* лайтбокс с листанием */
.lb{
  position:fixed; inset:0; z-index:90;
  background:#0E141A;
  display:none; flex-direction:column;
  padding:64px 16px 20px;
}
.lb.is-open{ display:flex; }
.lb__stage{
  flex:1; min-height:0;
  display:flex; align-items:center; justify-content:center; gap:10px;
}
.lb__img{
  max-width:min(1000px, 100%); max-height:100%;
  width:auto; height:auto; object-fit:contain;
  background:#fff; padding:8px;
}
.lb__foot{
  flex:none; text-align:center; padding-top:14px;
  display:grid; gap:6px;
}
.lb__cap{ color:#DDE6EE; font-size:15px; max-width:70ch; margin-inline:auto; }
.lb__count{ color:#8FA2B4; font-size:14px; letter-spacing:.08em; }
.lb__close,
.lb__prev,
.lb__next{
  width:52px; height:52px; flex:none;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.28); color:#fff;
  background:rgba(22,32,43,.55);
  transition:background 180ms ease, border-color 180ms ease;
}
.lb__close:hover,
.lb__prev:hover,
.lb__next:hover{ background:rgba(255,255,255,.14); border-color:#fff; color:#fff; }
.lb__close{ position:absolute; top:12px; right:12px; }
.lb__close svg{ width:22px; height:22px; }
.lb__prev svg, .lb__next svg{ width:24px; height:24px; }
.lb__nav[hidden]{ display:none; }
.lb__hint{
  position:absolute; top:22px; left:16px;
  color:#8FA2B4; font-size:14px; letter-spacing:.06em;
  display:none;
}
@media (min-width:900px) and (hover:hover){
  .lb__hint{ display:block; }
}
@media (max-width:820px){
  .lb__stage{ position:relative; gap:0; }
  .lb__prev, .lb__next{ position:absolute; top:50%; translate:0 -50%; z-index:2; }
  .lb__prev{ left:0; }
  .lb__next{ right:0; }
  .lb__img{ max-width:100%; }
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО «ЗАПИСАТЬСЯ»
   ============================================================ */
.book{
  position:fixed; inset:0; z-index:95;
  background:rgba(10,14,19,.72);
  display:none; align-items:flex-start; justify-content:center;
  padding:16px;
  overflow-y:auto;
}
.book.is-open{ display:flex; }
.book__panel{
  background:var(--paper);
  width:100%; max-width:520px;
  margin:auto;
  padding:26px 22px 28px;
  position:relative;
  clip-path:polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px);
}
.book__close{
  position:absolute; top:10px; right:10px;
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
}
.book__close:hover{ color:var(--ink); }
.book__close svg{ width:20px; height:20px; }
.book__head{ margin:16px 0 22px; padding-right:52px; }
.book__head h2{ font-size:26px; }
.book__head p{ margin-top:10px; font-size:15.5px; color:var(--muted); }
.book__phone{
  margin-top:20px; padding-top:18px; border-top:1px solid var(--line);
  font-size:15px; color:var(--muted);
}
.book__phone a{ font-weight:600; }

/* ============================================================
   ОТЗЫВЫ GOOGLE
   ============================================================ */
.rating{
  display:grid; gap:18px; align-items:center;
  padding:24px; background:var(--paper); border:1px solid var(--line);
  margin-bottom:var(--sp-l);
}
.rating__score{
  font-family:var(--f-display); font-weight:800; font-stretch:112%;
  font-size:52px; line-height:1; letter-spacing:-0.03em;
}
.rating__meta{ font-size:15px; color:var(--muted); }
.stars{ display:inline-flex; gap:2px; color:#B87914; }
.stars svg{ width:16px; height:16px; }

.rev-rail{
  display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory;
  margin-inline:calc(var(--gut) * -1); padding:0 var(--gut) 14px;
}
.rev{ flex:0 0 min(84%, 340px); scroll-snap-align:start; }
.rev__top{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.rev__av{
  width:40px; height:40px; flex:none; border-radius:50%;
  background:var(--brand); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--f-display); font-weight:700; font-size:17px;
}
.rev__name{ display:block; font-weight:600; font-size:15px; line-height:1.3; }
.rev__when{ display:block; font-size:14px; color:var(--muted); }
.rev__g{ margin-left:auto; width:19px; height:19px; flex:none; }
.rev__text{ font-size:15.5px; color:var(--ink-80); }
.rev__more{
  font-size:14px; font-weight:600; color:var(--brand); margin-top:10px;
  display:inline-block;
}

/* ============================================================
   ДО / ПОСЛЕ
   ============================================================ */
.ba-grid{ display:grid; gap:26px; }
.ba{ }
.ba__stage{
  position:relative; width:100%; aspect-ratio:3/2;
  overflow:hidden; background:var(--panel-2);
  clip-path:polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  touch-action:pan-y;
  user-select:none;
}
.ba__stage img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ba__after{ clip-path:inset(0 0 0 var(--pos,50%)); }
.ba__handle{
  position:absolute; top:0; bottom:0; left:var(--pos,50%);
  width:3px; background:#fff; transform:translateX(-1.5px);
  pointer-events:none;
}
.ba__knob{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:44px; height:44px; background:#fff; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--ink); box-shadow:0 3px 12px rgba(0,0,0,.3);
}
.ba__knob svg{ width:20px; height:20px; }
.ba__range{
  position:absolute; inset:0; width:100%; height:100%;
  opacity:0; cursor:ew-resize; margin:0;
}
.ba__tag{
  position:absolute; bottom:12px; z-index:2;
  font-size:14px; font-weight:600; letter-spacing:.09em; text-transform:uppercase;
  background:rgba(22,32,43,.82); color:#fff; padding:5px 10px;
  pointer-events:none;
}
.ba__tag--b{ left:12px; }
.ba__tag--a{ right:12px; }
.ba__label{ margin-top:14px; font-weight:600; font-size:16px; }

/* ============================================================
   ГАЛЕРЕЯ КАБИНЕТА
   ============================================================ */
.gal{ display:grid; gap:14px; }
.gal figure{ margin:0; }
.gal img{
  width:100%; aspect-ratio:4/3; object-fit:cover; background:var(--panel-2);
  clip-path:polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  cursor:zoom-in;
}
.gal figcaption{ font-size:14px; color:var(--muted); margin-top:9px; }

/* ============================================================
   СТРАХОВКИ
   ============================================================ */
.ins-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.ins{
  background:var(--paper); min-height:96px;
  display:flex; align-items:center; justify-content:center; padding:18px 14px;
}
.ins img{ max-height:34px; width:auto; object-fit:contain; }

/* ============================================================
   ЧАСЫ / КОНТАКТЫ / КАРТА
   ============================================================ */
.hours{ border-top:1px solid var(--line); }
.hours li{
  display:flex; justify-content:space-between; gap:16px;
  padding:11px 0; border-bottom:1px solid var(--line);
  font-size:15.5px;
}
.hours li.is-today{ font-weight:600; }
.hours li.is-today .hours__d::before{
  content:""; display:inline-block; width:7px; height:7px; background:var(--brand);
  border-radius:50%; margin-right:8px; vertical-align:middle;
}
.hours__t{ color:var(--muted); text-align:right; }
.hours li.is-today .hours__t{ color:var(--ink); }
.section--ink .hours{ border-color:rgba(255,255,255,.16); }
.section--ink .hours li{ border-color:rgba(255,255,255,.16); }
.section--ink .hours__t{ color:#9FB0C0; }
.section--ink .hours li.is-today .hours__t{ color:#fff; }
.section--ink .hours li.is-today .hours__d::before{ background:#7FB2E8; }

.contact-grid{ display:grid; gap:var(--sp-l); }
.cline{ display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--line); }
.cline svg{ width:20px; height:20px; flex:none; color:var(--brand); margin-top:3px; }
.cline dt{ font-size:14px; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:var(--muted); }
.cline dd{ font-size:16.5px; margin-top:3px; }
.section--ink .cline{ border-color:rgba(255,255,255,.16); }
.section--ink .cline svg{ color:#7FB2E8; }
.section--ink .cline dt{ color:#8FA2B4; }
.section--ink .cline a{ color:#fff; text-decoration:underline; text-underline-offset:3px; }

.map{
  width:100%; height:340px; border:0; display:block; background:var(--panel-2);
  clip-path:polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

/* ---------- Форма ---------- */
.form{ display:grid; gap:16px; }
.field label{
  display:block; font-size:14px; font-weight:600; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted); margin-bottom:7px;
}
.field input, .field select, .field textarea{
  width:100%; min-height:50px; padding:13px 14px;
  font-family:var(--f-body); font-size:16px; color:var(--ink);
  background:var(--paper); border:1px solid var(--line);
  transition:border-color 180ms ease;
}
.field textarea{ min-height:112px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--brand); outline-offset:1px; }
.form__note{ font-size:14px; color:var(--muted); }
/* ловушка для ботов: человек её не видит и не может сфокусировать,
   бот заполняет всё подряд и выдаёт себя */
.honeypot{
  position:absolute; width:1px; height:1px;
  margin:-1px; padding:0; border:0;
  clip-path:inset(50%); overflow:hidden; white-space:nowrap;
}
.formmsg{
  display:none; padding:14px 16px; font-size:15px;
  border-left:3px solid var(--brand); background:var(--panel);
}
.formmsg.is-ok{ display:block; border-color:#2E7D4F; background:#EDF6F0; color:#1B4D30; }
.formmsg.is-err{ display:block; border-color:var(--brick); background:#FBEEE9; color:var(--brick-d); }

/* ============================================================
   ПОЛОСА-ПРИЗЫВ
   ============================================================ */
.cta__grid{ display:grid; gap:26px; align-items:center; }
.cta h2{ color:#fff; }
.cta p{ color:#9FB0C0; margin-top:14px; max-width:48ch; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer{ background:var(--ink); color:#9FB0C0; padding-block:var(--sp-l) 28px; font-size:15px; }

.footer__grid{ display:grid; gap:36px; }
.footer h4{
  color:#fff; font-size:14px; letter-spacing:.13em; text-transform:uppercase;
  font-family:var(--f-body); font-weight:600; margin-bottom:18px;
}
.footer a{ color:#C6D3DE; }
.footer a:hover{ color:#fff; }
.footer__links li + li{ margin-top:10px; }
.footer__links a{ display:inline-block; padding:3px 0; }

.footer__logo{ width:auto; height:84px; margin-bottom:16px; filter:brightness(0) invert(1); }
.footer__about p{ max-width:36ch; }
.footer__area{ margin-top:16px; font-size:14px; color:#7D8E9E; max-width:40ch; }

/* часы в подвале — без линеек, компактно, время не переносится */
.footer .hours{ border-top:none; }
.footer .hours li{
  display:grid; grid-template-columns:auto 1fr; gap:14px;
  padding:0 0 10px; border-bottom:none;
  font-size:15px; align-items:baseline;
}
.footer .hours li:last-child{ padding-bottom:0; }
.footer .hours .hours__t{ white-space:nowrap; text-align:right; color:#8FA2B4; }
.footer .hours li.is-today .hours__t{ color:#fff; }

/* плашка с логотипами доверия */
.footer__badges{
  margin-top:36px; padding-top:28px;
  border-top:1px solid rgba(255,255,255,.14);
  display:flex; flex-wrap:wrap; gap:22px 30px;
}
.badge-item{ display:flex; flex-direction:column; gap:11px; }
.badge{
  background:#fff; padding:13px 18px;
  display:flex; align-items:center; justify-content:center;
  align-self:flex-start;
  clip-path:polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.badge-item > span{ font-size:14px; color:#8FA2B4; max-width:30ch; line-height:1.45; }
.badge--award img{ height:62px; width:auto; }
.badge--ada img{ height:42px; width:auto; }

.footer__bottom{
  margin-top:26px; padding-top:20px; border-top:1px solid rgba(255,255,255,.14);
  display:grid; gap:10px; font-size:14px; color:#7D8E9E;
}

/* ---------- Плавающая кнопка звонка ---------- */
.fab{
  position:fixed; right:16px; bottom:16px; z-index:50;
  width:58px; height:58px; border-radius:50%;
  background:var(--brand); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 20px rgba(22,32,43,.34);
  transition:background 200ms ease, transform 200ms ease;
}
@media (hover:hover){
  .fab:hover{ background:var(--brand-d); color:#fff; transform:translateY(-2px); }
}
.fab svg{ width:24px; height:24px; }

.skip{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--ink); color:#fff; padding:12px 18px;
}
.skip:focus{ left:8px; top:8px; color:#fff; }

/* ---------- Появление при прокрутке ---------- */
.rise{ opacity:0; translate:0 18px; transition:opacity 520ms ease, translate 520ms ease; }
.rise.is-in{ opacity:1; translate:0 0; }

/* очень узкие экраны — шапка компактнее */
@media (max-width:420px){
  .brand img{ height:30px; }
  .header__bar{ gap:6px; }
  .langswitch a{ min-width:44px; min-height:44px; }
  .iconbtn{ width:44px; height:44px; }
}
@media (max-width:360px){
  :root{ --gut:14px; }
  .brand img{ height:26px; }
}

/* ============================================================
   ПЛАНШЕТ
   ============================================================ */
@media (min-width:700px){
  :root{ --gut:32px; --cut:26px; }

  .hero__media img{ height:380px; }
  .facts__grid{ grid-template-columns:repeat(4,1fr); }
  .fact{ border-bottom:none; }
  .fact:nth-child(2n){ border-right:1px solid rgba(255,255,255,.13); }
  .fact:last-child{ border-right:none; }

  .svc-grid{ grid-template-columns:repeat(2,1fr); }
  .why-grid{ grid-template-columns:repeat(2,1fr); }
  .team-grid{ grid-template-columns:repeat(3,1fr); }
  .team-grid--full{ grid-template-columns:repeat(2,1fr); gap:34px 26px; }
  .ba-grid{ grid-template-columns:repeat(2,1fr); }
  .gal{ grid-template-columns:repeat(3,1fr); }
  .ins-grid{ grid-template-columns:repeat(3,1fr); }
  .rating{ grid-template-columns:auto 1fr auto; }
  .contact-grid{ grid-template-columns:1fr 1fr; }
  .footer__grid{ grid-template-columns:1.5fr 1fr; column-gap:48px; row-gap:40px; }
  .footer__bottom{ grid-template-columns:1fr auto; align-items:center; }
  .badge--award img{ height:84px; }
  .badge--ada img{ height:52px; }
  .footer__badges{ gap:22px 44px; }
  .map{ height:420px; }
  .notes__head{ grid-template-columns:1fr auto; align-items:end; }
  .creds{ grid-template-columns:repeat(2,1fr); gap:44px; }
  .cred__plate{ min-height:158px; }
  .cta__grid{ grid-template-columns:1fr auto; }
}

/* ============================================================
   ДЕСКТОП
   ============================================================ */
@media (min-width:1060px){
  :root{ --sp-xl:104px; --sp-l:64px; --cut:30px; }

  body{ font-size:17px; }

  .nav{
    display:flex; align-items:center; gap:26px;
    margin-right:26px;
  }
  .nav a{
    font-size:15px; font-weight:600; color:var(--ink-80);
    padding:6px 0; border-bottom:2px solid transparent;
    white-space:nowrap;
  }
  .nav a:hover{ color:var(--brand); }
  .nav a[aria-current="page"]{ color:var(--ink); border-bottom-color:var(--brand); }

  .header__bar{ min-height:78px; }
  .header .btn{ display:inline-flex; }
  .header__phone{
    display:flex; flex-direction:column; line-height:1.15; margin-right:6px;
  }
  .header__phone span{ font-size:14px; letter-spacing:.11em; text-transform:uppercase; color:var(--muted); }
  .header__phone a{
    font-family:var(--f-display); font-weight:700; font-stretch:112%;
    font-size:18px; color:var(--ink); letter-spacing:-0.01em;
    white-space:nowrap;
  }
  .header__phone a:hover{ color:var(--brand); }
  .iconbtn--menu, .iconbtn--call{ display:none; }
  .brand img{ height:47px; }

  .fab{ display:none; }

  .hero__grid{ grid-template-columns:minmax(0,1.02fr) minmax(0,1fr); }
  .hero__text{
    padding:88px 56px 88px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
    max-width:none; margin:0;
    display:flex; flex-direction:column; justify-content:center;
  }
  .hero__media img{ height:100%; min-height:560px; }
  .hero__media{
    clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
  }
  .hero__media img{
    --cut:78px;
    clip-path:polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  }

  .svc-grid{ grid-template-columns:repeat(4,1fr); }
  .creds{ gap:56px; }
  .cred__plate{ min-height:182px; padding:28px 36px; }
  .cred__plate img{ max-width:490px; }
  .cred__plate--ada img{ max-width:260px; }
  .why-grid{ grid-template-columns:repeat(3,1fr); }
  .team-grid{ grid-template-columns:repeat(3,1fr); gap:18px; }
  .doc h3{ font-size:18px; }
  /* страница врачей: пять в ряд слишком мелко — три, крупнее */
  .team-grid--full{ grid-template-columns:repeat(3,1fr); gap:36px 28px; }
  .team-grid--full .doc h3{ font-size:23px; margin-top:20px; }
  .team-grid--full .doc__bio{ font-size:16px; }

  .notes__rail{
    display:grid; grid-template-columns:repeat(3,1fr); gap:26px 22px;
    overflow:visible; margin-inline:0; padding-inline:0;
  }
  .note{ flex:none; }

  .rev-rail{
    display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
    overflow:visible; margin-inline:0; padding:0;
  }
  .rev{ flex:none; }

  .ba-grid{ grid-template-columns:repeat(3,1fr); }
  .gal{ grid-template-columns:repeat(4,1fr); }
  .ins-grid{ grid-template-columns:repeat(6,1fr); }
  .footer__grid{ grid-template-columns:1.7fr 1fr 1.15fr 1.25fr; column-gap:56px; }
  .section__head{ margin-bottom:56px; }
}

/* Ноутбуки 1060–1279px: полное меню помещается только в ужатом виде.
   Ужимаем отступы и кегль, но не трогаем текст кнопок и не уводим
   ничего под минимум 44px. */
@media (min-width:1060px) and (max-width:1279px){
  .nav{ gap:18px; margin-right:18px; }
  .nav a{ font-size:14px; }
  .brand img{ height:39px; }
  .header__phone a{ font-size:16px; }
  .header__phone span{ font-size:12px; letter-spacing:.08em; }
  .header__bar{ gap:10px; }
  .btn{ padding:0 18px; font-size:14px; }
  .langswitch a{ min-width:40px; }
}

/* ============================================================
   ДОСТУПНОСТЬ
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
  .rise{ opacity:1; translate:0 0; }
}

@media print{
  .header,.fab,.menu,.lb{ display:none !important; }
}

/* иконки, вставляемые скриптом */
.btn > [data-icon], .iconbtn > [data-icon], .svc__icon, .cline > [data-icon]{
  display:flex; align-items:center; justify-content:center;
}
.cline > [data-icon]{ width:20px; height:20px; flex:none; color:var(--brand); margin-top:3px; }
.section--ink .cline > [data-icon]{ color:#7FB2E8; }
