/* ============================================================
   LaDenta — «освежение» главной, версия 1.0 (01.10.2026)
   Слой поверх main.css: бренд-бук не меняется (цвета, шрифты, тексты).
   Подключает mu-плагин ladenta-refresh.php; действует, только когда у <body>
   есть класс ld-v2, и не трогает версию для слабовидящих (html.ld-a11y).
   Что делаем:
     1. Подписи над заголовками — обычным регистром, без разрядки.
     2. Полоса «рассрочка / вычет / ДМС» — одна компактная плашка вместо
        трёх высоких карточек (убирает пустоту под первым экраном).
     3. Услуги — 4 колонки (8 карточек = два ровных ряда), плоские карточки.
     4. «Как проходит первый визит» — тёмно-синяя полоса с линией этапов:
        единственный яркий акцент страницы.
     5. «Понятные правила» — список с линиями вместо четырёх коробок.
     6. Цены — крупные суммы, чтобы цифры читались с первого взгляда.
     7. Без двойного отступа между светлыми секциями подряд.
   ============================================================ */

/* ── 7. Ритм ── */
/* две светлые секции подряд (цены → отзывы) не должны давать двойной отступ */
html:not(.ld-a11y) body.ld-v2 section.soft + section.soft{padding-top:0}
html:not(.ld-a11y) body.ld-v2 .sec-head{margin-bottom:36px}

/* ── 1. Подписи над заголовками ── */
html:not(.ld-a11y) body.ld-v2 .kicker{
  text-transform:none;letter-spacing:0;font-size:15px;font-weight:700;
  color:var(--blue);margin-bottom:10px;
}
html:not(.ld-a11y) body.ld-v2 .kicker::before{width:18px;background:var(--teal)}
html:not(.ld-a11y) body.ld-v2 .svc-card .grp,
html:not(.ld-a11y) body.ld-v2 .doc-card .role{
  text-transform:none;letter-spacing:0;font-size:13px;font-weight:700;
}

/* ── 2. Плашка «рассрочка / вычет / ДМС» ── */
html:not(.ld-a11y) body.ld-v2 section:has(> .container > .perks-grid){padding:28px 0 8px}
html:not(.ld-a11y) body.ld-v2 .perks-grid{
  gap:0;background:var(--bg-blue);border:1px solid #D6E8FB;border-radius:22px;overflow:hidden;
}
html:not(.ld-a11y) body.ld-v2 .perk-card{
  background:none;border:0;border-radius:0;min-height:0;padding:22px 26px;
  display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:16px;row-gap:4px;
}
html:not(.ld-a11y) body.ld-v2 .perk-card + .perk-card{border-left:1px solid #CFE2F7}
html:not(.ld-a11y) body.ld-v2 .perk-card:hover{box-shadow:none}
html:not(.ld-a11y) body.ld-v2 .perk-top{display:contents}
html:not(.ld-a11y) body.ld-v2 .perk-ic{grid-row:1 / span 2;grid-column:1;width:46px;height:46px;border-radius:50%}
html:not(.ld-a11y) body.ld-v2 .perk-card h3{grid-column:2;font-size:18px;max-width:none}
html:not(.ld-a11y) body.ld-v2 .perk-card p{grid-column:2;margin:0;padding:0;font-size:14px}
html:not(.ld-a11y) body.ld-v2 .perk-card .perk-soon{
  justify-self:start;align-self:start;line-height:1.5;text-align:left;margin:2px 0 0;font-family:var(--font-body);font-size:12.5px;font-weight:800;
  color:var(--blue);background:#fff;border-radius:999px;padding:3px 12px;letter-spacing:0;
}
@media(max-width:980px){
  html:not(.ld-a11y) body.ld-v2 .perks-grid{grid-template-columns:1fr}
  html:not(.ld-a11y) body.ld-v2 .perk-card + .perk-card{border-left:0;border-top:1px solid #CFE2F7}
}

/* ── 3. Услуги ── */
html:not(.ld-a11y) body.ld-v2 .svc-grid{grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:1100px){html:not(.ld-a11y) body.ld-v2 .svc-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){html:not(.ld-a11y) body.ld-v2 .svc-grid{grid-template-columns:1fr}}
html:not(.ld-a11y) body.ld-v2 .svc-card{
  background:var(--bg-soft);border-color:transparent;padding:24px 22px 20px;gap:8px;
}
html:not(.ld-a11y) body.ld-v2 .svc-card:hover{background:#fff;border-color:#C6DCF4}
html:not(.ld-a11y) body.ld-v2 .svc-card .ic{background:#fff;width:46px;height:46px}
html:not(.ld-a11y) body.ld-v2 .svc-card h3{font-size:18px}
html:not(.ld-a11y) body.ld-v2 .svc-card .from{
  margin-top:6px;padding-top:12px;border-top:1px solid var(--line);
  font-family:var(--font-head);font-size:15.5px;color:var(--navy);
}
html:not(.ld-a11y) body.ld-v2 .svc-card .go{top:20px;right:20px;background:#fff;border-color:#fff}

/* ── 4. Первый визит — тёмная полоса с линией этапов ── */
html:not(.ld-a11y) body.ld-v2 section.soft:has(.steps){
  background:var(--navy);color:#fff;position:relative;overflow:hidden;
}
html:not(.ld-a11y) body.ld-v2 section.soft:has(.steps)::after{
  content:'';position:absolute;right:-180px;top:-220px;width:560px;height:560px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(90,174,255,.28),rgba(90,174,255,0));pointer-events:none;
}
html:not(.ld-a11y) body.ld-v2 section.soft:has(.steps) h2{color:#fff}
html:not(.ld-a11y) body.ld-v2 section.soft:has(.steps) h2 em{color:var(--sky)}
html:not(.ld-a11y) body.ld-v2 section.soft:has(.steps) .sec-head p{color:#C9D8EE}
html:not(.ld-a11y) body.ld-v2 section.soft:has(.steps) .kicker{color:var(--teal-l)}
html:not(.ld-a11y) body.ld-v2 section.soft:has(.steps) .btn-ghost{
  background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.35);color:#fff;
}
html:not(.ld-a11y) body.ld-v2 section.soft:has(.steps) .btn-ghost:hover{background:rgba(255,255,255,.16)}
html:not(.ld-a11y) body.ld-v2 .steps{gap:0;position:relative;z-index:1}
html:not(.ld-a11y) body.ld-v2 .step{background:none;border-radius:0;padding:0 22px 0 0;position:relative}
/* линия, которая соединяет номера этапов */
html:not(.ld-a11y) body.ld-v2 .step::after{
  content:'';position:absolute;left:52px;right:0;top:21px;height:2px;
  background:linear-gradient(90deg,rgba(111,237,228,.7),rgba(111,237,228,.15));
}
html:not(.ld-a11y) body.ld-v2 .step:last-child::after{display:none}
html:not(.ld-a11y) body.ld-v2 .step::before{
  content:counter(st);width:44px;height:44px;padding:0;border-radius:50%;margin-bottom:18px;
  display:flex;align-items:center;justify-content:center;font-size:17px;
  background:transparent;color:var(--teal-l);border:2px solid var(--teal-l);
}
html:not(.ld-a11y) body.ld-v2 .step:first-child::before{background:var(--teal-l);color:var(--navy)}
html:not(.ld-a11y) body.ld-v2 .step h3{color:#fff;font-size:17.5px;margin-bottom:8px}
html:not(.ld-a11y) body.ld-v2 .step p{color:#C9D8EE;font-size:14px}
@media(max-width:980px){
  html:not(.ld-a11y) body.ld-v2 .steps{grid-template-columns:1fr;gap:26px}
  html:not(.ld-a11y) body.ld-v2 .step{display:grid;grid-template-columns:44px 1fr;column-gap:18px;padding:0}
  html:not(.ld-a11y) body.ld-v2 .step::before{grid-row:1 / span 2;margin:0}
  html:not(.ld-a11y) body.ld-v2 .step::after{left:21px;top:52px;bottom:-22px;right:auto;width:2px;height:auto;
    background:linear-gradient(180deg,rgba(111,237,228,.7),rgba(111,237,228,.15))}
}

/* ── 5. «Понятные правила» — список с линиями ── */
html:not(.ld-a11y) body.ld-v2 .val-grid{gap:0 56px}
html:not(.ld-a11y) body.ld-v2 .val-it{
  background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:26px 0 30px;
}
html:not(.ld-a11y) body.ld-v2 .val-it:hover{box-shadow:none}
html:not(.ld-a11y) body.ld-v2 .val-it .ic{width:52px;height:52px;border-radius:50%}
html:not(.ld-a11y) body.ld-v2 .val-it h3{font-size:19px}
html:not(.ld-a11y) body.ld-v2 .val-it p{font-size:15px}

/* ── 6. Цены — крупные суммы ── */
html:not(.ld-a11y) body.ld-v2 section.soft .grid-3 > div[style]{
  padding:26px 26px 24px !important;border-color:transparent !important;
  box-shadow:0 1px 0 rgba(4,37,84,.04);display:flex;flex-direction:column;
}
html:not(.ld-a11y) body.ld-v2 section.soft .grid-3 > div[style] > h3{order:2;font-size:16px !important;margin:10px 0 2px !important}
html:not(.ld-a11y) body.ld-v2 section.soft .grid-3 > div[style] > div{
  order:1;font-size:clamp(30px,3vw,38px) !important;color:var(--navy) !important;letter-spacing:-.02em;line-height:1.1;
}
html:not(.ld-a11y) body.ld-v2 section.soft .grid-3 > div[style] > p{order:3}

@media (prefers-reduced-motion: reduce){
  html:not(.ld-a11y) body.ld-v2 .svc-card{transition:none}
}
