/* restore-100: общие исправления адаптива; mobile-first. */
:focus-visible{outline:3px solid #dfc08d;outline-offset:5px}
.rv{opacity:1;transform:none}
@media(prefers-reduced-motion:no-preference){.rv.reveal-ready:not(.on){opacity:0;transform:translateY(18px)}}
main{overflow-wrap:anywhere}.grid>*{min-width:0}.btns .btn{width:100%;text-align:center;justify-content:center}
.table-wrap{max-width:100%;overflow-x:auto}.pj-price .nowrap{white-space:normal}
.service-hero{display:grid;gap:28px;padding-top:32px;padding-bottom:32px}
.service-hero img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px}
.service-hero .kicker{margin-bottom:18px}.service-hero .lede{max-width:40em}
.service-steps{list-style:none;padding:0;display:grid;gap:20px;counter-reset:step}
.service-steps li{padding:24px;border-top:1px solid var(--line-2);background:var(--surface);counter-increment:step}
.service-steps li:before{content:'0' counter(step);display:block;color:var(--accent-on-dark);font-size:24px;margin-bottom:18px}
.service-note{border-left:3px solid var(--accent);padding:16px 22px;background:var(--surface)}
@media(min-width:700px){.btns .btn{width:auto}.service-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px){.service-hero{grid-template-columns:1.1fr 1fr;align-items:center;padding-top:54px;padding-bottom:54px}.service-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}

.restore-project-video{display:block;width:100%;height:auto;max-height:580px;object-fit:contain;background:#171612}

/* Подписи остаются в потоке, вне обрезаемого кадра. */
.kc-shot-figure{margin:0;min-width:0}.kc-shot-figure .kc-shot{width:100%}
.kc-shot-figure .cap{display:block;margin:8px 0 14px;font-size:14px;line-height:1.5;color:var(--muted)}
.lyudi-ph .cap{display:block;padding:14px 18px;font-size:14px;line-height:1.5;color:var(--muted)}
.cta-step{margin-top:32px;padding-top:24px}
.arg-n{font-size:clamp(26px,3.5vw,42px);line-height:1.2;overflow-wrap:normal}

/* Бургер доступен с клавиатуры; checkbox сохраняет работу без JavaScript. */
.nav-t{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.nav-t:focus-visible + .burger{outline:3px solid #dfc08d;outline-offset:3px}
@media(min-width:1000px){.nav-t{display:none}}

/* Неявная колонка auto учитывала собственную ширину фото и длинных строк.
   Ограничиваем саму сетку, а не обрезаем содержимое на уровне страницы. */
:where(.grid,.tiles,.steps,.geo-list,.faq,.args,.pj-grid,.pj-specs,.pj-prices,
       .pj-gallery,.pj-videos,.pj-pack,.lyudi,.lyudi-imena,.lyudi-opyt,.cta-step-l,
       .usl,.service-hero,.service-steps,.ftr-top,.ftr-act,.ftr-map,
       .gl-trust-in,.gl-trust-i,.gl-ways,.gl-path,.gl-after,
       .kc-hero-grid,.kc-body--pair,.kc-tr,.kc-budget,.kc-grid){
  grid-auto-columns:minmax(0,1fr);
}
:where(.grid,.tiles,.steps,.geo-list,.faq,.args,.pj-grid,.pj-specs,.pj-prices,
       .pj-gallery,.pj-videos,.pj-pack,.lyudi,.lyudi-imena,.lyudi-opyt,.cta-step-l,
       .usl,.service-hero,.service-steps,.ftr-top,.ftr-act,.ftr-map,
       .gl-trust-in,.gl-trust-i,.gl-ways,.gl-path,.gl-after,
       .kc-hero-grid,.kc-body--pair,.kc-tr,.kc-budget,.kc-grid) > *{min-width:0}
.art-tbl,.table-wrap{min-width:0;max-width:100%}
main video,main iframe{max-width:100%}
@media(max-width:619px){
  .arg-n,.pj-vd{white-space:normal;overflow-wrap:anywhere}
  .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}
}

/* Цена: единица отдельной строкой; кегль зависит от ширины самой карточки. */
.price-stages .arg{min-width:0;container-type:inline-size}
.price-stages .arg-n{font-size:clamp(20px,7.5cqi,32px);white-space:nowrap;overflow-wrap:normal;line-height:1.25}
.price-stages .arg-n small{display:block;margin:4px 0 0;white-space:nowrap}
