/* Montserrat (SIL Open Font License) — свои копии, чтобы браузер читателя не ходил на серверы Google */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/montserrat-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/montserrat-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/montserrat-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/montserrat-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* Дентометр — визуальная система по референсу clinicsoncall: белые скруглённые карточки,
   голубоватый фон, синий акцент с градиентом, кнопки-пилюли, кольцо оценки, сайдбар-аккордеоны. */
:root{
  --ground:#F4F7FB; --surface:#FFF; --ink:#22273A; --ink-soft:#4A5268; --muted:#6B7488;
  --line:#E5EAF3; --accent:#3E6FDA; --accent-2:#2C58BE; --accent-soft:#EAF1FF; --accent-text:#2F5FCB;
  --grad:linear-gradient(90deg,#3A6FD8 0%,#2C58BE 100%); --ok:#2E9E6B; --warn:#C0392B;
  --r:20px; --r-sm:12px; --shadow:0 10px 30px rgba(36,60,120,.08); --shadow-sm:0 4px 14px rgba(36,60,120,.06);
}
*{box-sizing:border-box}
body{margin:0;background:var(--ground);color:var(--ink);font-family:Montserrat,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:15.5px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:var(--accent-text);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px;width:100%}

/* верх */
.draft-bar{background:#22273A;color:#C9D2E6;font-size:12px;letter-spacing:.04em;text-transform:uppercase;padding:6px 0}
.draft-bar .wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.top{background:var(--surface);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:78px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}
.brand:hover{text-decoration:none}
.brand .mark{width:46px;height:46px;display:flex;align-items:center;justify-content:center;flex:none}
.brand .mark svg{width:46px;height:46px}
.brand b{display:block;font-size:24px;font-weight:800;letter-spacing:-.02em;line-height:1.05}
.brand b span{color:var(--accent)}
.brand .tag{display:block;font-size:11.5px;color:var(--muted);letter-spacing:.02em;margin-top:2px;font-weight:500}
.top-right{display:flex;align-items:center;gap:22px;font-size:14px;color:var(--ink-soft)}
.menu{background:var(--surface)}
.menu .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px;flex-wrap:wrap}
.nav{display:flex;gap:26px;font-size:16px;font-weight:500;flex-wrap:wrap;min-width:0}
.nav a{color:var(--ink-soft)}
.nav a:hover{color:var(--accent);text-decoration:none}
.nav a.dd::after{content:"";display:inline-block;margin-left:7px;border:5px solid transparent;border-top-color:var(--accent);vertical-align:1px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--grad);color:#fff;border-radius:999px;
  padding:13px 30px;font-weight:600;font-size:15px;box-shadow:0 8px 20px rgba(47,95,203,.28);text-decoration:none;border:0;cursor:pointer}
.btn:hover{text-decoration:none;filter:brightness(1.05)}
.btn.ghost{background:var(--surface);color:var(--accent-text);box-shadow:none;border:1.5px solid var(--accent)}
.btn.ghost:hover{background:var(--accent-soft)}
.btn.sm{padding:10px 22px;font-size:14px}

/* крошки */
.crumbs{font-size:14px;color:var(--muted);padding:22px 0 6px;display:flex;gap:8px;flex-wrap:wrap}
.crumbs a{color:var(--accent-text)}

/* сетка листинга */
.page{display:grid;grid-template-columns:300px 1fr;gap:28px;padding:22px 0 70px;align-items:start;min-width:0}
.page>*{min-width:0}
@media(max-width:900px){.page{grid-template-columns:1fr}}
.hero{padding:30px 0 6px}
h1{font-size:clamp(30px,4vw,44px);font-weight:800;letter-spacing:-.02em;line-height:1.1;margin:0 0 12px}
.lead{max-width:70ch;color:var(--ink-soft);font-size:16.5px;margin:0}

/* сайдбар */
.side{display:grid;gap:22px;align-self:start;min-width:0}
.box{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden}
.box h4{margin:0;background:var(--grad);color:#fff;font-size:18px;font-weight:600;padding:16px 22px;display:flex;justify-content:space-between;align-items:center}
.box h4::after{content:"";border:6px solid transparent;border-top-color:#fff;margin-top:6px}
.box ul{list-style:none;margin:0;padding:0}
.box li{border-top:1px solid var(--line)}
.box li>a,.box li>span{display:flex;align-items:center;gap:12px;padding:13px 22px;color:var(--ink-soft);font-size:15px}
.box li a:hover{background:var(--accent-soft);text-decoration:none;color:var(--accent-text)}
.box li.on a{color:var(--accent-text);font-weight:600}
.box li i{width:20px;height:20px;border-radius:50%;border:2px solid var(--accent);display:inline-flex;align-items:center;justify-content:center;flex:none;font-style:normal;color:var(--accent);font-size:13px;font-weight:700;line-height:1}
.box li i.dot{border:0;background:var(--accent);width:10px;height:10px;margin:0 5px}
.box .note{padding:12px 22px;font-size:13px;color:var(--muted);border-top:1px solid var(--line)}

/* карточка */
.list{display:grid;gap:22px}
.card{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:26px;display:grid;
  grid-template-columns:140px 1fr 150px;gap:26px;align-items:start}
.photo{width:140px;height:200px;border-radius:var(--r-sm);overflow:hidden;background:var(--accent-soft);display:flex;align-items:center;justify-content:center}
.photo img{width:100%;height:100%;object-fit:cover;display:block}
.photo.logo img{object-fit:contain;padding:14px;background:#fff}
.photo .mono{font-size:34px;font-weight:800;color:var(--accent)}
.card h3{margin:0 0 8px;font-size:26px;font-weight:800;letter-spacing:-.015em;line-height:1.15;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.card h3 a{color:var(--ink)}
.card h3 .tooth{width:26px;height:26px;color:var(--accent);flex:none}
.card h3 .ver{width:22px;height:22px;color:var(--accent);flex:none}
.rows{display:grid;gap:4px;margin:0 0 12px;font-size:15px}
.rows div{color:var(--muted)}
.rows div::before{content:"•";color:var(--accent);margin-right:8px}
.rows b{font-weight:500;color:var(--accent-text)}
.rank-pill{display:inline-block;background:var(--accent-soft);color:var(--accent-text);border-radius:999px;padding:3px 12px;font-size:13px;font-weight:600;margin-left:6px;vertical-align:middle}
.summary{color:var(--ink-soft);margin:0 0 6px;font-size:15px}
.more{display:inline-block;margin:0 0 14px;font-size:15px}
.nums{color:var(--muted);font-size:14.5px;margin:0 0 16px}
.nums b{color:var(--accent-text);font-weight:600}
.ring-wrap{text-align:center;display:grid;justify-items:center;gap:6px}
.ring{position:relative;width:78px;height:78px}
.ring svg{width:78px;height:78px;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:6;stroke-linecap:round}
.ring .bg{stroke:var(--accent-soft)}
.ring .fg{stroke:var(--accent)}
.ring b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800;color:var(--ink)}
.ring-wrap .lbl{font-size:12.5px;color:var(--muted)}
.stars{display:block;letter-spacing:1px;font-size:16px;line-height:1;white-space:nowrap}
.stars i{font-style:normal}.stars i.on{color:#F5A524}.stars i.off{color:#DCE2EE}
@media(max-width:760px){.card{grid-template-columns:100px 1fr;padding:18px}.photo{width:100px;height:140px}
  .ring-wrap{grid-column:1/3;justify-items:start;grid-auto-flow:column;align-items:center;gap:14px}}

/* «вне топа» */
h2.sec{font-size:26px;font-weight:800;margin:40px 0 8px;letter-spacing:-.015em}
p.sub{color:var(--muted);font-size:14.5px;margin:0 0 16px;max-width:70ch}
.plain{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.plain li{background:var(--surface);border-radius:var(--r-sm);padding:12px 16px;font-size:14.5px;box-shadow:var(--shadow-sm)}
.plain .why{display:block;font-size:12.5px;color:var(--muted);margin-top:2px}

/* страница клиники — галерея с явными размерами: картинки абсолютные внутри ячеек,
   чтобы ни один браузер не растягивал их за пределы сетки */
.gallery{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:8px 0 26px;height:420px}
.gallery .big,.gallery .cell{position:relative;border-radius:var(--r);overflow:hidden;background:var(--accent-soft);min-height:0}
.gallery .big{height:420px}
.gallery .grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:14px;height:420px;min-height:0}
.gallery .grid.one{grid-template-columns:1fr;grid-template-rows:1fr}
.gallery .grid.two{grid-template-columns:1fr;grid-template-rows:1fr 1fr}
.gallery img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.gallery .logo-cell{background:#fff}
.gallery .logo-cell img{object-fit:contain;padding:28px}
.gallery .empty{display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px;text-align:center;padding:20px}
@media(max-width:760px){.gallery{grid-template-columns:1fr;height:auto}.gallery .big{height:240px}.gallery .grid{height:200px}}
.titlebar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 6px;flex-wrap:wrap}
.titlebar h1{margin:0}
.addr{color:var(--muted);font-size:15.5px;margin:0 0 22px}
.cols{display:grid;grid-template-columns:1fr 360px;gap:28px;align-items:start;padding-bottom:70px}
@media(max-width:900px){.cols{grid-template-columns:1fr}}
.article h2{font-size:28px;font-weight:800;letter-spacing:-.015em;margin:26px 0 10px}
.article p{color:var(--ink-soft);margin:0 0 12px;max-width:72ch}
.infobox{background:var(--accent-soft);border-left:4px solid var(--accent);border-radius:var(--r-sm);padding:18px 22px;margin:14px 0 20px}
.infobox ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.infobox li{display:flex;justify-content:space-between;gap:14px;align-items:baseline;color:var(--ink-soft)}
.infobox li::before{content:"◆";color:var(--accent);font-size:11px;margin-right:10px}
.infobox li span{flex:1}
.infobox li em{font-style:normal;font-size:12px;color:var(--muted);white-space:nowrap}
.infobox li.ok em{color:var(--ok)}.infobox li.claim em{color:var(--accent-text)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{font-size:13.5px;color:var(--accent-text);background:var(--accent-soft);padding:6px 14px;border-radius:999px}
.calc{width:100%;border-collapse:collapse;font-size:15px}
.calc td{padding:10px 0;border-bottom:1px solid var(--line);vertical-align:top}
.calc td:last-child{text-align:right;white-space:nowrap;color:var(--accent-text);font-weight:700}
.calc tr:last-child td{border-bottom:none}
.calc .why{display:block;font-size:12.5px;color:var(--muted);margin-top:2px}
.starlist{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.starlist li{display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:start;font-size:14.5px}
.starlist li i{font-style:normal;font-size:20px;color:#DCE2EE;line-height:1.1}
.starlist li.on i{color:#F5A524}
.starlist b{display:block;font-weight:600}
.starlist span{display:block;font-size:12.5px;color:var(--muted)}
.links{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}
/* синий виджет */
.widget{position:relative;background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);margin-top:54px}
.widget .head{border-radius:var(--r) var(--r) 0 0}
.widget .plus{position:absolute;left:50%;top:-48px;transform:translateX(-50%);width:96px;height:96px;border-radius:50%;background:var(--grad);display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(47,95,203,.3)}
.widget .plus svg{width:40px;height:40px}
.widget .head{background:var(--grad);color:#fff;padding:64px 26px 26px;text-align:center}
.widget .head b{display:block;font-size:22px;font-weight:700;margin-bottom:6px}
.widget .head span{font-size:14.5px}
.widget .body{padding:22px 26px 26px;text-align:center}
.widget .body ul{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:12px;color:var(--ink-soft);font-size:15px}
.panel{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:22px 24px;margin-top:22px}
.panel h3{margin:0 0 14px;font-size:18px;font-weight:700}
.kv{display:grid;grid-template-columns:100px 1fr;gap:8px 14px;font-size:14.5px;margin:0}
.kv dt{color:var(--muted)}.kv dd{margin:0;color:var(--ink-soft);word-break:break-word}
footer{background:var(--surface);border-top:1px solid var(--line)}
footer .wrap{padding:26px 24px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--muted)}

/* аудит 09.09.2026: на 375px сайдбар, меню и боксы вылезали на 24px за экран */
html,body{max-width:100%;overflow-x:clip}
.photo{position:relative}
.photo.noimg,.cell.noimg,.big.noimg{background:var(--accent-soft)}
.photo.noimg::after,.cell.noimg::after,.big.noimg::after{content:"";position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px;text-align:center}
@media(max-width:760px){
  .wrap{padding:0 14px}
  .box h4{font-size:16px;padding:14px 18px}
  .box li>a,.box li>span{padding:12px 18px;min-width:0}
  .nav{gap:16px;font-size:15px}
  .top .wrap{min-height:64px;padding:10px 14px}
  .menu .wrap{min-height:58px;padding-top:8px;padding-bottom:8px}
  .card h3{font-size:21px}
  .btn{padding:12px 24px}
  h1{font-size:28px}
}

/* ================= правки по UX-исследованию 09.09.2026 ================= */

/* мелкие кегли подняты: ими набраны пояснения к цифрам рейтинга */
.calc .why,.starlist span,.plain .why{font-size:13.5px}
.ring-wrap .lbl{font-size:13px}
footer .wrap,.box .note{font-size:14px}

/* видимый фокус для клавиатуры — в CSS не было ни одного правила focus */
:where(a,button,input,summary):focus-visible{outline:2px solid var(--accent-2);outline-offset:3px;border-radius:6px}
.btn:focus-visible{outline-color:#0B2E6F}

/* ссылка-пропуск и текст только для скринридера */
.vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{left:12px;top:12px;z-index:50}
.skip:focus{position:fixed;width:auto;height:auto;clip:auto;margin:0;padding:10px 18px;background:var(--surface);
  border:2px solid var(--accent);border-radius:999px;color:var(--accent-text)}

/* кольцо: подпись знаменателя в две строки */
.ring-wrap .lbl.small{font-size:11.5px;opacity:.85;margin-top:-2px}
.stars-link{font-size:13px;color:var(--accent-text);white-space:nowrap}
.starlist li i{font-size:20px}

/* карточка: телефон, чипы-различители, два действия */
.card .rows div{color:var(--muted);font-size:14.5px}
.card .rows div::before{content:none}
.card .tel{color:var(--accent-text);font-weight:500}
.card .chips{margin:10px 0 10px}
.card .chip{font-size:12.5px}
.acts{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.acts .btn.ghost.sm{box-shadow:none}
.box li .cnt{margin-left:auto;color:var(--muted);font-size:13px}
.box li>span{width:100%}

/* таблица баллов: непосчитанное серым, итог отбит */
.calc tr.pending td{color:var(--muted)}
.calc tr.pending td:last-child{color:var(--muted);font-weight:500}
.calc tr.total td{border-top:2px solid var(--line);border-bottom:none;padding-top:12px;font-weight:700}
.calc tr.total td:last-child{color:var(--ink)}

/* оговорки на первом экране */
.disclaimer{margin:14px 0 0;color:var(--muted);font-size:14px;max-width:78ch}
h2.sec.first{margin-top:0}

/* ---------- мобильный ---------- */
@media(max-width:900px){
  /* липкий сайдбар прибивался к верху и закрывал весь список клиник */
  .side{position:static}
  .cols>*,.cols aside>*{min-width:0}
  /* контакты и «это ваша клиника» — выше простыни текста */
  .cols aside{display:contents}
  .cols aside .panel{order:-1;margin-top:0}
  .cols .article{order:0}
  .cols aside .widget{order:1;margin-top:34px}
}
@media(max-width:760px){
  .infobox li{flex-wrap:wrap}
  .infobox li em{white-space:normal}
  .brand .tag{display:none}
  .top-right{display:none}
  .gallery{height:auto}

  /* компактная карточка: текст получает ширину, страница становится вдвое короче */
  .card{display:flex;flex-wrap:wrap;align-items:center;gap:12px 10px;padding:16px}
  .card>.photo{flex:0 0 56px;width:56px;height:56px;order:1}
  .card>.photo.logo img{padding:3px}
  .card>.ring-wrap{order:2;flex:1 1 0;min-width:0;display:flex;flex-direction:row;
    justify-content:flex-start;align-items:center;gap:10px;text-align:left}
  .card>.ring-wrap .lbl.small{display:none}
  .card .ring,.card .ring svg{width:56px;height:56px}
  .card .ring b{font-size:18px}
  .card>div:not(.photo):not(.ring-wrap){order:3;flex:1 1 100%;min-width:0}
  .acts .btn{flex:1 1 100%;justify-content:center}
}

/* полировка мобильного: кольцо и шапка съедали первый экран */
@media(max-width:760px){
  .draft-bar .wrap{flex-direction:row;gap:8px;font-size:10.5px;line-height:1.3}
  .top .wrap{min-height:56px}
  .brand .mark{width:38px;height:38px}
  .brand .mark svg{width:38px;height:38px}
  .brand b{font-size:20px}
  .menu .wrap{gap:10px;flex-wrap:nowrap;justify-content:space-between}
  .menu .btn{padding:9px 16px;font-size:13.5px;white-space:nowrap}
  .nav{gap:14px;font-size:14px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  .nav a{white-space:nowrap}

  /* кольцо на странице клиники: подписи в столбик рядом с числом, без «в методике 100» */
  .titlebar{gap:12px}
  .titlebar .ring-wrap{display:flex;flex-direction:row;align-items:center;gap:12px;text-align:left;flex-wrap:wrap}
  .titlebar .ring,.titlebar .ring svg{width:62px;height:62px}
  .titlebar .ring b{font-size:20px}
  .titlebar .ring-wrap .lbl{font-size:12.5px;max-width:9em}
  .titlebar .ring-wrap .lbl.small{display:none}
  .titlebar .stars{width:100%;font-size:15px}
  h1{font-size:26px}
  .addr{font-size:14.5px}
}

/* на телефоне сначала клиники, потом справочные боксы; меню не наезжает на кнопку */
@media(max-width:900px){
  .page{display:flex;flex-direction:column}
  .page>main{order:0}
  .page>.side{order:1;margin-top:10px}
  .side .box h4{cursor:default}
}
@media(max-width:760px){
  .menu .wrap{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}
  .nav{min-width:0;overflow-x:auto}
  .menu .btn{padding:8px 14px;font-size:13px}
}
@media(max-width:430px){
  .menu .wrap{grid-template-columns:1fr}
  .menu .btn{display:none}
  .nav{justify-content:space-between;gap:10px;width:100%}
}

/* сайдбар едет вместе со страницей: прибитый верх прятал нижние направления,
   а внутренняя прокрутка внутри липкого блока неочевидна для человека */
.side{position:static}

/* медаль-розетка лидеров: зубчатый круг с лентами */
.medal{display:inline-block;width:40px;height:49px;flex:none;line-height:0;vertical-align:-14px}
.medal svg{width:100%;height:100%;display:block;filter:drop-shadow(0 2px 4px rgba(36,60,120,.22))}
.card.leader{box-shadow:0 12px 34px rgba(36,60,120,.13)}
.card h3{gap:12px}
/* звёзды на витрине подписаны: это условия проверки, а не оценка лечения */
.ring-wrap .stars{margin-top:7px}
.ring-wrap .stars-link{display:block;margin-top:3px;font-size:12px}
@media(max-width:760px){
  .medal{width:32px;height:39px;vertical-align:-11px}
  .card>.ring-wrap{flex-wrap:wrap}
  .card>.ring-wrap .stars{margin-top:0}
}

/* полоса поиска — как первое действие на странице */
.searchbar{background:#E8EFFA;border-bottom:1px solid var(--line)}
.searchbar .wrap{padding-top:14px;padding-bottom:14px}
.search{display:flex;gap:12px;align-items:center;position:relative}
.search .ico{position:absolute;left:16px;width:20px;height:20px;color:var(--muted);pointer-events:none}
.search input{flex:1;min-width:0;height:50px;border-radius:12px;border:1px solid var(--line);
  background:var(--surface);padding:0 16px 0 46px;font:inherit;font-size:15.5px;color:var(--ink)}
.search input::placeholder{color:var(--muted)}
.search input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.search .btn{height:50px;border-radius:12px;padding:0 34px;flex:none}
.search-hint{margin:10px 0 0;font-size:14px;color:var(--ink-soft)}
@media(max-width:620px){
  .search .btn{padding:0 20px;font-size:14px}
  .search input{height:46px;font-size:15px}
  .search .btn{height:46px}
  .searchbar .wrap{padding-top:10px;padding-bottom:10px}
}

/* кабинет клиники */
.cab{padding-bottom:70px}
.cab-cols{display:grid;grid-template-columns:1fr 1fr;gap:22px}
@media(max-width:820px){.cab-cols{grid-template-columns:1fr}}
.cab .panel{margin-top:22px}
.cab-cols .panel{margin-top:0}
.form{display:grid;gap:16px}
.form label{display:grid;gap:6px;font-size:14.5px;color:var(--ink-soft)}
.form input,.form select,.form textarea{width:100%;border:1px solid var(--line);border-radius:12px;
  padding:12px 14px;font:inherit;font-size:15.5px;color:var(--ink);background:var(--surface);min-height:46px}
.form textarea{min-height:auto;resize:vertical}
.form input:focus,.form select:focus,.form textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.form .hint{font-size:12.5px;color:var(--muted)}
.form .btn{justify-self:start}
.form-msg{margin:0;font-size:14px;padding:10px 14px;border-radius:10px}
.form-msg.ok{background:#E7F6EF;color:#1D6B4A}
.form-msg.err{background:#FDECEA;color:#9C2C2C}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:620px){.grid2{grid-template-columns:1fr}}
.marks{margin:0;padding-left:20px;display:grid;gap:8px;color:var(--ink-soft);font-size:15px}
.note-panel{background:var(--accent-soft)}
.equip-list{display:grid;gap:12px}
.equip{border:1px solid var(--line);border-radius:var(--r-sm);padding:14px 16px;display:grid;gap:10px;
  justify-items:start;background:var(--surface)}
.equip-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;width:100%}
.equip-head em{font-style:normal;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.equip.s-approved{border-color:#BFE3D2;background:#F3FBF7}
.equip.s-approved .equip-head em{color:var(--ok)}
.equip.s-pending .equip-head em{color:var(--accent-text)}
.equip.s-rejected{border-color:#F2C9C4;background:#FDF6F5}
.equip.s-rejected .equip-head em{color:var(--warn)}
.equip.working{opacity:.55;pointer-events:none}
.equip-why{margin:0;font-size:13.5px;color:var(--muted)}
.equip .file{cursor:pointer}

/* подсказки поиска: выпадающий список, клик открывает клинику */
.suggest-host{position:relative;display:block;width:100%}
.suggest{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:40;margin:0;padding:6px;
  list-style:none;background:var(--surface);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 18px 44px rgba(36,60,120,.16);max-height:420px;overflow:auto}
.suggest li a{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;
  padding:9px 10px;border-radius:10px;text-decoration:none;color:var(--ink)}
.suggest li a:hover,.suggest li.on a{background:var(--accent-soft);text-decoration:none}
.suggest img,.suggest .ph{width:44px;height:44px;border-radius:9px;object-fit:cover;background:var(--accent-soft);display:block}
.suggest .txt{min-width:0}
.suggest .txt b{display:block;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggest .txt em{display:block;font-style:normal;font-size:12.5px;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggest .pl{font-size:12.5px;color:var(--accent-text);font-weight:600;white-space:nowrap}
@media(max-width:620px){
  .suggest{max-height:320px}
  .suggest li a{grid-template-columns:36px 1fr auto;gap:10px}
  .suggest img,.suggest .ph{width:36px;height:36px}
}

/* источник фотографий — рядом с самими фотографиями, а не только в подвале */
.photo-src{margin:-16px 0 22px;font-size:12.5px;color:var(--muted)}
.photo-src a{color:var(--accent-text)}

/* поле поиска занимает всю ширину полосы */
.searchbar .wrap{display:block}
.search{width:100%}
.search input{flex:1 1 auto;min-width:0}

/* сайдбар направлений: название занимает свободное место и не рвётся из-за союза */
.box li .nm{flex:1 1 auto;min-width:0;text-wrap:balance;padding:0;display:block}
.box li .cnt{flex:0 0 auto;padding:0 0 0 10px;display:block}

/* подвал: две колонки ссылок, реквизиты справа, оговорка снизу */
footer .wrap{display:block;padding:34px 24px 30px;font-size:13.5px;line-height:1.6;color:var(--muted)}
.foot-cols{display:grid;grid-template-columns:1fr 1.3fr 1.4fr;gap:32px;align-items:start}
.foot-col h5{margin:0 0 14px;font-size:12px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--ink-soft)}
.foot-col ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.foot-col a{color:var(--muted);text-decoration:underline;text-underline-offset:3px;
  text-decoration-color:var(--line)}
.foot-col a:hover{color:var(--accent-text);text-decoration-color:currentColor}
.foot-legal p{margin:0 0 8px}
.foot-legal .copy{margin-top:14px}
.foot-note{margin:28px 0 0;padding-top:20px;border-top:1px solid var(--line);font-size:12.5px}
.age{display:inline-block;border:1px solid var(--line);border-radius:6px;
  padding:1px 7px;font-weight:600;color:var(--ink-soft)}
@media(max-width:900px){
  .foot-cols{grid-template-columns:1fr 1fr;gap:26px}
  .foot-legal{grid-column:1 / -1}
}
@media(max-width:560px){.foot-cols{grid-template-columns:1fr;gap:24px}}

/* согласие на обработку данных в формах кабинета */
.form .check{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;line-height:1.5;color:var(--muted)}
.form .check input{margin-top:3px;flex:none;width:16px;height:16px;accent-color:var(--accent)}
.form .check a{color:var(--accent-text)}

/* таблица шкалы на странице «Как мы считаем» */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 10px}
table.scale{width:100%;border-collapse:collapse;font-size:14.5px;min-width:640px}
table.scale th{text-align:left;font-size:12px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);font-weight:700;padding:0 14px 10px 0;border-bottom:1px solid var(--line)}
table.scale td{padding:14px 14px 14px 0;border-bottom:1px solid var(--line);vertical-align:top;color:var(--ink-soft)}
table.scale td:first-child{font-weight:600;color:var(--ink);white-space:nowrap}
table.scale .num{text-align:right;white-space:nowrap;padding-right:20px}
table.scale td.num{font-weight:700;color:var(--ink)}
.tag{display:inline-block;padding:2px 9px;border-radius:20px;font-size:12px;font-weight:600;white-space:nowrap}
.tag-ok{background:#E7F4EC;color:#1F7A50}
.tag-wait{background:var(--accent-soft);color:var(--accent-text)}

/* клиника без места: плашка нейтральная, не как номер в рейтинге */
.rank-pill.rank-soft{background:var(--ground);color:var(--muted);font-weight:500}

/* выпадающее меню направлений: открывается наведением, без клика */
.nav .dd{position:relative;outline:none}
.dd-label{cursor:default;display:inline-flex;align-items:center;gap:6px;color:var(--ink-soft);white-space:nowrap}
.dd-label::after{content:"";border:5px solid transparent;border-top-color:currentColor;margin-top:5px;
  transition:transform .15s ease}
.nav .dd:hover .dd-label,.nav .dd:focus-within .dd-label{color:var(--accent-text)}
.nav .dd:hover .dd-label::after,.nav .dd:focus-within .dd-label::after{transform:rotate(180deg);margin-top:-4px}
/* мост между надписью и меню: курсор не проваливается в зазор */
.nav .dd::after{content:"";position:absolute;top:100%;left:0;right:0;height:14px}
.dd-menu{opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .14s ease,transform .14s ease,visibility .14s;
  position:absolute;top:calc(100% + 10px);left:0;z-index:60;min-width:270px;padding:6px;
  background:var(--surface);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 18px 44px rgba(36,60,120,.16);display:grid;gap:2px}
.dd-menu a{display:flex;justify-content:space-between;gap:14px;padding:9px 12px;border-radius:9px;
  color:var(--ink-soft);font-size:14.5px;white-space:nowrap}
.dd-menu a:hover{background:var(--accent-soft);color:var(--accent-text);text-decoration:none}
.dd-menu a span{color:var(--muted);font-size:13px}
.nav .dd:hover .dd-menu,.nav .dd:focus-within .dd-menu{opacity:1;visibility:visible;transform:none}
@media(max-width:900px){
  .nav .dd{position:static}
  .dd-menu{left:12px;right:12px;min-width:0}
}

/* ссылки на другие направления внизу страницы направления */
.dir-links{display:flex;flex-wrap:wrap;gap:10px}
.dir-links a{display:inline-flex;align-items:center;gap:8px;padding:9px 15px;border-radius:20px;
  background:var(--surface);border:1px solid var(--line);color:var(--ink-soft);font-size:14.5px}
.dir-links a:hover{border-color:var(--accent);color:var(--accent-text);text-decoration:none}
.dir-links a span{color:var(--muted);font-size:13px}

/* главная: плитки направлений и объяснения */
.home-hero{padding-bottom:8px}
.home-hero .acts{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin:6px 0 8px}
.tiles-wide{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.tile{display:block;padding:18px 20px;border-radius:var(--r-sm);background:var(--surface);
  border:1px solid var(--line);color:var(--ink);box-shadow:var(--shadow-sm)}
a.tile:hover{border-color:var(--accent);text-decoration:none;box-shadow:var(--shadow)}
.tile b{display:block;font-size:16px;font-weight:600;margin-bottom:5px}
.tile span{display:block;font-size:13.5px;color:var(--muted);line-height:1.5}
.tile.flat{box-shadow:none;background:var(--accent-soft);border-color:transparent}

/* переход к полному рейтингу с главной: заметная кнопка, а не строка */
.more{display:flex;justify-content:center;margin:26px 0 8px}
.btn.big{font-size:16.5px;padding:16px 34px;box-shadow:0 10px 26px rgba(46,86,190,.24)}
.btn.big:hover{box-shadow:0 14px 32px rgba(46,86,190,.3)}
@media(max-width:560px){.btn.big{width:100%;justify-content:center;text-align:center;padding:15px 20px;font-size:15.5px}}

/* кнопка «показать ещё» под списком */
.more .btn.big[hidden]{display:none}
.list[data-batch] > article[hidden]{display:none}

/* компактный блок направлений: заголовок в одну строку, плотные пункты */
.box-tight h4{padding:12px 18px;font-size:15px;letter-spacing:.01em}
.box-tight li>a,.box-tight li>span{padding:9px 18px;font-size:14px;gap:10px}
.box-tight li i{width:17px;height:17px;font-size:11px;border-width:1.5px}
.box-tight .cnt{font-size:12.5px}
@media(max-width:900px){
  .box-tight h4{padding:11px 16px}
  .box-tight li>a,.box-tight li>span{padding:8px 16px}
}

/* страница рейтинга без сайдбара: список во всю ширину */
.page-wide{display:block}
.page-wide > main{min-width:0}

/* подвал без колонки реквизитов: две колонки ссылок */
.foot-cols{grid-template-columns:1fr 1fr;max-width:760px}
@media(max-width:560px){.foot-cols{grid-template-columns:1fr}}

/* пометка под таблицей расчёта: оценочное суждение и порядок спора */
.calc-note{margin:12px 0 0;font-size:13px;line-height:1.55;color:var(--muted)}
.calc-note a{color:var(--accent-text)}

/* кнопка «наверх»: появляется после первого экрана, кольцо показывает пройденную долю страницы */
.to-top{position:fixed;right:24px;bottom:24px;z-index:60;width:52px;height:52px;padding:0;border:0;border-radius:50%;
  background:var(--surface);color:var(--accent);box-shadow:0 10px 30px rgba(36,60,120,.16);cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .25s ease,transform .25s ease,visibility .25s,box-shadow .2s}
.to-top.on{opacity:1;visibility:visible;transform:none}
.to-top:hover{color:var(--accent-2);box-shadow:0 14px 34px rgba(36,60,120,.24)}
.to-top:hover path{transform:translateY(-2px)}
.to-top:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.to-top svg{display:block;width:100%;height:100%}
.to-top circle{fill:none;stroke-width:3}
.to-top .tt-bg{stroke:var(--accent-soft)}
.to-top .tt-fg{stroke:var(--accent);stroke-dasharray:100;stroke-dashoffset:100;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%}
.to-top path{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
@media(max-width:560px){.to-top{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:46px;height:46px}}
@media(prefers-reduced-motion:reduce){.to-top,.to-top path{transition:none}}

/* липкое меню: строка с логотипом уезжает, строка меню остаётся (top задаёт скрипт по высоте .top) */
.masthead{position:sticky;top:0;z-index:55}
.masthead .menu{border-bottom:1px solid transparent;transition:box-shadow .2s ease,border-color .2s ease}
.masthead.stuck .menu{border-bottom-color:var(--line);box-shadow:0 8px 24px rgba(36,60,120,.08)}
@media(min-width:761px){.nav{margin-right:auto}}
.mini-brand{display:none}
@media(min-width:1024px){
  .mini-brand{display:flex;align-items:center;flex:none;width:0;margin-right:-16px;opacity:0;overflow:hidden;color:var(--ink);
    transition:width .22s ease,margin-right .22s ease,opacity .18s ease}
  .mini-brand svg{width:34px;height:34px;flex:none}
  .masthead.stuck .mini-brand{width:34px;margin-right:12px;opacity:1}
}
.skip{z-index:70}
@media(prefers-reduced-motion:reduce){.masthead .menu,.mini-brand{transition:none}}

/* Страница клиники: логотип с сайта клиники вместо галереи (фотографии не публикуем, 10.09.2026) */
.brand-row{display:flex;align-items:center;gap:22px;margin:6px 0 26px}
.logo-tile{flex:0 0 auto;width:280px;height:140px;box-sizing:border-box;padding:22px;border-radius:var(--r);
  background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.logo-tile img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.logo-tile.dark,.photo.logo.dark img{background:#1f2937}
.logo-tile.dark{border-color:#1f2937}
.logo-tile .mono{font-size:46px;font-weight:800;color:var(--accent)}
.logo-tile.noimg{background:var(--accent-soft)}
.brand-note{margin:0;max-width:440px;color:var(--muted);font-size:14px;line-height:1.5}
.brand-note a{color:var(--accent-text)}
@media(max-width:560px){.brand-row{flex-direction:column;align-items:stretch;gap:12px}.logo-tile{width:100%;height:120px}}

/* Карточка списка: вместо высокого кадра под фотографию — белая плитка под логотип (10.09.2026) */
@media(min-width:761px){
  .card>.photo{height:140px}
}
.card>.photo.logo{background:#fff;border:1px solid var(--line);box-sizing:border-box}
.card>.photo.logo img{padding:12px;background:transparent}
.card>.photo.logo.dark{background:#1f2937;border-color:#1f2937}
@media(max-width:760px){
  .card>.photo.logo{flex:0 0 92px;width:92px}
  .card>.photo.logo img{padding:5px}
}
