/* ============================================================
   LaDenta — версия 1.18 (06.10.2026)
   ============================================================ */

/* ── I1. Рисунок в карточке варианта ── */
.vc-pic{margin:-6px -6px 4px;border-radius:14px;overflow:hidden;background:#F7FAFE;border:1px solid var(--line)}
.vc-pic svg{display:block;width:100%;height:auto}

/* ── I2. До / после ── */
.ldx-ba{margin:8px 0 34px}
.ldx-ba h2{margin-bottom:6px}
.ba-stage{position:relative;aspect-ratio:400/180;border-radius:22px;overflow:hidden;box-shadow:var(--shadow);margin-top:14px;user-select:none}
.ba-img{position:absolute;inset:0}
.ba-img svg{display:block;width:100%;height:100%}
.ba-after{clip-path:inset(0 0 0 var(--p))}
.ldx-ba .ba-tag{position:absolute;left:14px;bottom:12px;background:rgba(4,37,84,.85);color:#fff;font-weight:700;font-size:13px;border-radius:999px;padding:6px 12px}
.ldx-ba .ba-tag.r{left:auto;right:14px}
.ba-handle{position:absolute;top:0;bottom:0;left:var(--p);width:3px;margin-left:-1.5px;background:#fff;box-shadow:0 0 0 1px rgba(4,37,84,.15);pointer-events:none}
.ba-handle i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;background:#fff;color:var(--blue);font-style:normal;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(4,37,84,.25)}
.ba-range{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0}

/* ── I3. Счётчики «О клинике» ── */
.ldx-cnt{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-top:30px}
.cnt-it{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 20px}
.cnt-it b{display:block;font:800 clamp(30px,3.4vw,42px)/1.1 var(--font-head);color:var(--blue);font-variant-numeric:tabular-nums}
.cnt-it span{font-size:14.5px;color:var(--ink)}

/* ── I4. Запись по шагам ── */
.ldx-steps{margin:-6px 0 14px}
.stp-bar{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0 0 14px;padding:0;counter-reset:st}
.stp-bar li{counter-increment:st;font-size:11.5px;font-weight:700;color:var(--muted);text-align:center;padding-top:30px;position:relative}
.stp-bar li::before{content:counter(st);position:absolute;left:50%;top:0;transform:translateX(-50%);width:24px;height:24px;border-radius:50%;background:var(--bg-blue);color:var(--blue);font:800 12px/24px var(--font-head)}
.stp-bar li::after{content:'';position:absolute;top:11px;left:calc(50% + 16px);right:calc(-50% + 16px);height:2px;background:var(--line)}
.stp-bar li:last-child::after{display:none}
.stp-bar li.on{color:var(--navy)}
.stp-bar li.on::before{background:var(--blue);color:#fff}
.stp-bar li.done::before{content:'✓';background:#35C77D;color:#fff}
.stp-bar li.done::after{background:#35C77D}
.stp-chips{display:flex;flex-wrap:wrap;gap:8px}
.stp-chips button,.stp-clinics button,.stp-times button{font:inherit;cursor:pointer;border:1.5px solid #C6DCF4;background:#fff;color:var(--navy);border-radius:14px;transition:border-color .15s,background .15s}
.stp-chips button{border-radius:999px;padding:9px 14px;font-weight:700;font-size:14px}
.stp-clinics,.stp-times{display:grid;gap:8px}
.stp-times{grid-template-columns:1fr 1fr}
.stp-clinics button,.stp-times button{text-align:left;padding:12px 14px;display:grid;gap:2px}
.stp-clinics b,.stp-times b{font-family:var(--font-head);font-size:15px}
.stp-clinics span,.stp-times span{font-size:13px;color:var(--muted)}
.stp-chips button:hover,.stp-clinics button:hover,.stp-times button:hover{border-color:var(--blue)}
.stp-chips button.on,.stp-clinics button.on,.stp-times button.on{background:var(--bg-blue);border-color:var(--blue)}
.stp-note{font-size:12.5px;color:var(--muted);margin:8px 0 0}
.stp-sum{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.stp-sum span{font-size:12.5px;font-weight:700;color:var(--blue);background:var(--bg-blue);border-radius:999px;padding:4px 10px}
.stp-nav{display:flex;justify-content:space-between;align-items:center;margin-top:12px}
.stp-skip{border:0;background:none;color:var(--muted);font:inherit;font-size:13px;text-decoration:underline;cursor:pointer;margin-left:auto}
.stp-back{padding:7px 14px !important;font-size:13px !important}
form[data-book].stp-hide{display:none}

/* ── I5. «Пациентам»: плитки разного размера ── */
#memos .memo-grid{grid-template-columns:repeat(4,1fr);grid-auto-flow:dense}
#memos .memo-card:nth-child(1){grid-column:span 2;grid-row:span 2;background:linear-gradient(150deg,#0B3E8C,#0055BA);color:#fff;border-color:transparent;justify-content:flex-end;min-height:280px}
#memos .memo-card:nth-child(1) h3{color:#fff;font-size:24px}
#memos .memo-card:nth-child(1) p{color:#DCE8F7}
#memos .memo-card:nth-child(1) .memo-card-more{color:var(--teal-l)}
#memos .memo-card:nth-child(1) .memo-card-ic{background:rgba(255,255,255,.15)}
#memos .memo-card:nth-child(1) .memo-card-ic svg{stroke:#fff}
#memos .memo-card:nth-child(4){grid-column:span 2;background:#E6F8EF;border-color:transparent}
#memos .memo-card:nth-child(7){grid-column:span 2;background:#EFE8FF;border-color:transparent}
#memos .memo-card:nth-child(3n+2){background:#F2F8FF}
@media(max-width:900px){#memos .memo-grid{grid-template-columns:repeat(2,1fr)}#memos .memo-card:nth-child(1){grid-row:auto;min-height:0}}
@media(max-width:600px){#memos .memo-grid{grid-template-columns:1fr}#memos .memo-card{grid-column:auto !important}}

/* ── I6. Лента систем и материалов ── */
.ldx-brands{padding:26px 0 !important;background:#fff;overflow:hidden}
.br-t{font-weight:800;color:var(--navy);margin-bottom:12px}
.br-mq{display:flex;width:max-content;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.ldx-brands .br-mq{width:100%;overflow:hidden}
.br-in{display:flex;flex:0 0 auto;gap:12px;padding-right:12px;animation:br-mq 45s linear infinite}
.br-mq:hover .br-in{animation-play-state:paused}
@keyframes br-mq{to{transform:translateX(-100%)}}
.br-it{display:flex;flex-direction:column;gap:2px;background:var(--bg-soft);border:1px solid var(--line);border-radius:14px;padding:12px 18px;white-space:nowrap}
.br-it b{font:800 16px var(--font-head);color:var(--navy);letter-spacing:-.01em}
.br-it small{font-size:12px;color:var(--muted)}
@media (prefers-reduced-motion: reduce){.br-in{animation:none}}

/* ── I7. Значки к частым вопросам ── */
.acc-it summary{display:flex;align-items:center;gap:12px}
.faq-ic{flex:0 0 auto;width:34px;height:34px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-size:16px;font-weight:800;color:var(--blue)}
.ldx-steps [hidden]{display:none !important}
.ldx-ba .ba-tag{display:inline-block !important;width:auto !important;height:auto !important;min-height:0 !important;top:auto !important;line-height:1.3 !important;max-width:46%;white-space:nowrap;inset:auto auto 12px 14px !important}.ldx-ba .ba-tag.r{inset:auto 14px 12px auto !important}

/* 1.19: «Всё направление» в меню «Услуги» — заметная синяя плашка во всех направлениях */
.mega__hub{display:flex !important;align-items:center;justify-content:space-between;gap:10px;width:100%;box-sizing:border-box;
  background:linear-gradient(135deg,#0055BA,#2C7BE5);color:#fff !important;font-weight:800 !important;font-size:15px !important;
  border-radius:14px;padding:12px 16px !important;margin-bottom:18px !important;box-shadow:0 8px 20px rgba(0,85,186,.22);transition:filter .2s,transform .2s}
.mega__hub:hover{filter:brightness(1.08);transform:translateY(-1px);color:#fff !important}

/* ── 1.19. Фото вместо рисунков (Google Flow) ── */
.xr-smile img,.xr-ray img,.ba-img img{display:block;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none;pointer-events:none}
.xr-ray{background:#0B1420}
.impl-pic{position:relative;width:100%;aspect-ratio:1376/768;border-radius:24px;overflow:hidden;background:#D7E6F4;box-shadow:var(--shadow)}
.impl-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity 1.2s ease,transform 1.6s cubic-bezier(.2,.7,.25,1);-webkit-user-drag:none}
.impl-pic .ip-b{opacity:0;transform:scale(.96)}
.ldx-impl.is-open .impl-pic .ip-a{opacity:0;transform:scale(1.04)}
.ldx-impl.is-open .impl-pic .ip-b{opacity:1;transform:none}
.impl-pic .part{position:absolute;border-radius:18px;transition:left 1.2s ease,top 1.2s ease,width 1.2s ease,height 1.2s ease,box-shadow .3s,background .3s;z-index:2}
.impl-pic .crown{left:41%;top:9%;width:19%;height:31%}
.impl-pic .abut{left:44.6%;top:39%;width:11.5%;height:7.5%}
.impl-pic .fix{left:45%;top:47%;width:10%;height:46%}
.ldx-impl.is-open .impl-pic .crown{left:43%;top:4%;width:14%;height:28.5%}
.ldx-impl.is-open .impl-pic .abut{left:45.2%;top:33%;width:9.6%;height:25.5%}
.ldx-impl.is-open .impl-pic .fix{left:45.6%;top:61%;width:8.8%;height:34%}
.impl-pic .badge{position:absolute;left:calc(100% + 10px);top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;background:var(--navy);color:#fff;font:800 14px/30px var(--font-head);text-align:center;opacity:0;transition:opacity .4s;box-shadow:0 0 0 3px #fff}
.ldx-impl.is-open .impl-pic .badge{opacity:1;transition-delay:.9s}
.ldx-impl[data-hl="crown"] .impl-pic .crown,.ldx-impl[data-hl="abut"] .impl-pic .abut,.ldx-impl[data-hl="fix"] .impl-pic .fix{box-shadow:0 0 0 3px #5AAEFF,0 0 24px 6px rgba(90,174,255,.55);background:rgba(90,174,255,.08)}
.ldx-impl[data-hl="crown"] .impl-pic .crown .badge,.ldx-impl[data-hl="abut"] .impl-pic .abut .badge,.ldx-impl[data-hl="fix"] .impl-pic .fix .badge{background:var(--blue)}
@media (prefers-reduced-motion: reduce){.impl-pic img,.impl-pic .part{transition:none}}
.ldx-impl .impl-tap{z-index:4}
.ldx-impl .impl-stage{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
@media(max-width:900px){.ldx-impl .impl-stage{grid-template-columns:1fr}}

/* ── 1.20 ── */
/* меню: тема при наведении заливает ссылки светлым фоном — плашка «всё направление» оставалась пустой */
.dd-menu a.mega__hub,.dd-menu a.mega__hub:hover,.dd-menu a.mega__hub:focus{background:linear-gradient(135deg,#0055BA,#2C7BE5) !important;color:#fff !important}
/* шаги этапов: до прокрутки были бледными (opacity .6) — теперь всегда чёткие, текущий шаг выделен рамкой */
ol.vc-steps.ldx-tl li{opacity:1 !important}
ol.vc-steps.ldx-tl li p,ol.vc-steps.ldx-tl li .muted{color:var(--ink) !important}
/* первый экран услуги: плитки цен ровно — подпись сверху, цена снизу */
.shero-tiles{grid-template-columns:repeat(auto-fit,minmax(150px,1fr)) !important}
.shero-tile{justify-content:space-between !important}
.shero-tile span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* блок на голубом фоне вплотную к следующему заголовку */
.svc-body > section.sp-main{padding:26px 26px 30px !important;margin-bottom:48px !important}
@media(max-width:700px){.svc-body > section.sp-main{padding:22px 18px 26px !important}}
.ldx-avg td.avg .na{opacity:1;font-size:12.5px;color:#9AA8BA}
/* аудит 20.10, A19: короткая запись и «сменить» клинику в итоге */
.stp-quick{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 14px;padding:12px 14px;border-radius:14px;background:var(--bg-blue)}
.stp-quick[hidden]{display:none}
.stp-quick p{margin:0;flex:1 1 220px;font-size:13.5px;color:var(--navy)}
.stp-chg{border:0;background:none;padding:0;margin-left:4px;color:var(--blue);text-decoration:underline;font:inherit;font-size:12px;cursor:pointer}
