/* Комплекты и решения: kv-* поверх системы главной (home.css) и шапки страницы категории (category.css) */

/* шапка: текст слева, при наличии картинка справа */
.kv-head__grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--hm-gap);align-items:center}
.kv-head__grid > div:first-child{grid-column:1 / span 8;min-width:0}
.kv-head__grid--side > div:first-child{grid-column:1 / span 6}
.kv-hero__img{grid-column:8 / -1;border-radius:var(--hm-r);overflow:hidden;background:var(--ks-surface);aspect-ratio:4 / 3}
.kv-hero__img img{display:block;width:100%;height:100%;object-fit:cover}
.kv-head .hm-lead{margin:16px 0 0;max-width:60ch}
.kv-aud{margin:20px 0 0;font-size:15px;font-weight:700;color:var(--ks-dark)}
.kv-act{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:24px}
.kv-head .ks-quick{margin-top:12px}
.kv-sec{padding-top:0}

/* список комплектов: строка = фото, название и «для кого», три цифры, стрелка */
.kv-rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--hm-line)}
.kv-rows li{border-bottom:1px solid var(--hm-line)}
.kv-rows a{display:grid;grid-template-columns:200px minmax(0,1fr) minmax(0,300px) 32px;align-items:center;gap:var(--hm-gap);padding:24px 0;color:var(--ks-dark);text-decoration:none}
.kv-row__img{display:block;aspect-ratio:3 / 2;border-radius:14px;overflow:hidden;background:var(--ks-surface)}
.kv-row__img img{display:block;width:100%;height:100%;object-fit:cover}
.kv-row__t{display:flex;flex-direction:column;gap:6px;min-width:0}
.kv-row__t b{font-size:20px;line-height:1.25;font-weight:700}
.kv-row__d{font-size:15px;line-height:1.5;font-weight:500;color:var(--hm-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.kv-row__s{display:grid;gap:0;margin:0}
.kv-row__s > div{display:flex;flex-direction:column-reverse;justify-content:flex-end;padding:8px 0;border-top:1px solid var(--hm-line)}
.kv-row__s > div:first-child{border-top:0}
.kv-row__s dd{margin:0;font-size:17px;font-weight:800}
.kv-row__s dt{font-size:13px;line-height:1.35;font-weight:500;color:var(--hm-muted)}
.kv-row__go{color:var(--ks-blue);transition:transform .25s var(--hm-ease)}
.kv-item__go{color:var(--ks-blue);transition:transform .25s var(--hm-ease)}
.kv-rows a:hover .kv-row__go,.kv-items a:hover .kv-item__go{transform:translateX(6px)}
.kv-rows a:hover .kv-row__t b,.kv-items a:hover .kv-item__t b{color:var(--ks-blue)}

/* «Не нашли свой случай» */
.kv-ask{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--hm-gap);align-items:center}
.kv-ask > div:first-child{grid-column:1 / span 7}
.kv-ask__act{grid-column:9 / -1;display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px}

/* страница комплекта: цифры, состав, текст, калькулятор */
.kv-statsec{padding-bottom:0}
.kv-stats{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:0 var(--hm-gap);margin:0}
.kv-stats > div{display:flex;flex-direction:column;padding:16px 0;border-top:1px solid var(--hm-line)}
.kv-stats dd{margin:0;font-size:clamp(22px,2.2vw,30px);line-height:1.15;font-weight:800;color:var(--ks-dark)}
.kv-stats dt{margin-top:4px;font-size:14px;line-height:1.4;font-weight:500;color:var(--hm-muted)}
.kv-items{list-style:none;margin:0;padding:0;border-top:1px solid var(--hm-line)}
.kv-items li{border-bottom:1px solid var(--hm-line)}
.kv-items a{display:grid;grid-template-columns:64px 112px minmax(0,1fr) 32px;align-items:center;gap:var(--hm-gap);padding:16px 0;color:var(--ks-dark);text-decoration:none}
.kv-item__q{font-size:22px;font-weight:800;color:var(--ks-blue)}
.kv-item__img{display:block;aspect-ratio:4 / 3;border-radius:12px;background:var(--ks-surface);overflow:hidden}
.kv-item__img img{display:block;width:100%;height:100%;object-fit:contain;padding:8%;box-sizing:border-box;mix-blend-mode:multiply}
.kv-item__t{display:flex;flex-direction:column;gap:2px;min-width:0}
.kv-item__t b{font-size:17px;line-height:1.3;font-weight:700}
.kv-body{max-width:70ch;font-size:17px;line-height:1.6;font-weight:500}
.kv-body h2,.kv-body h3{font-family:Unbounded,sans-serif;font-weight:700;color:var(--ks-dark);line-height:1.2;margin:1.6em 0 .6em}
.kv-body h2{font-size:clamp(22px,2.4vw,30px)}
.kv-body h3{font-size:clamp(18px,1.8vw,22px)}
.kv-body > :first-child{margin-top:0}
.kv-calc{min-width:0}

/* решения: две колонки плиток с фото */
.kv-sol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px var(--hm-gap)}
.kv-sol a{display:block;color:var(--ks-dark);text-decoration:none}
.kv-sol__img{display:block;aspect-ratio:4 / 3;border-radius:var(--hm-r);overflow:hidden;background:var(--ks-surface)}
.kv-sol__img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s var(--hm-ease)}
.kv-sol a:hover .kv-sol__img img{transform:scale(1.03)}
.kv-sol__t{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin-top:14px}
.kv-sol__t > span{display:flex;flex-direction:column;gap:2px;min-width:0}
.kv-sol__t b{font-size:clamp(18px,1.6vw,22px);line-height:1.25;font-weight:700}
.kv-sol__t .hm-muted{font-size:14px;font-weight:500}
.kv-sol__t svg{flex:none;color:var(--ks-blue);transition:transform .25s var(--hm-ease)}
.kv-sol a:hover .kv-sol__t svg{transform:translateX(6px)}

@media (max-width:1100px){
  .kv-head__grid > div:first-child,.kv-head__grid--side > div:first-child{grid-column:1 / -1}
  .kv-hero__img{grid-column:1 / -1;margin-top:8px}
  .kv-rows a{grid-template-columns:140px minmax(0,1fr) 32px;row-gap:12px}
  .kv-row__s{grid-column:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px}
  .kv-row__s > div,.kv-row__s > div:first-child{border-top:1px solid var(--hm-line)}
  .kv-row__go{grid-row:1;grid-column:3}
  .kv-ask > div:first-child,.kv-ask__act{grid-column:1 / -1}
  .kv-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .kv-rows a{grid-template-columns:96px minmax(0,1fr) 24px;gap:12px 16px;padding:16px 0}
  .kv-row__t b{font-size:17px}
  .kv-row__d{display:none}
  .kv-row__s{grid-column:1 / -1;grid-template-columns:repeat(3,minmax(0,1fr))}
  .kv-row__s dd{font-size:15px}
  .kv-items a{grid-template-columns:32px 56px minmax(0,1fr) 20px;gap:12px}
  .kv-item__t .hm-muted{font-size:13px}
  .kv-item__q{font-size:17px}
  .kv-sol{grid-template-columns:minmax(0,1fr);gap:24px}
  .kv-act .button{width:100%}
}
@media (prefers-reduced-motion:reduce){.kv-row__go,.kv-sol__img img,.kv-sol__t svg{transition:none}}

/* заголовки страниц комплектов и решений: длинные слова («самообслуживания») помещаются в колонку; воздух под шапкой равен ритму секций */
.kv-head .hm-h1{font-size:clamp(28px,3vw,42px)}
.kv-head.cat-head{padding-bottom:clamp(32px,4vw,56px)}
@media (max-width:700px){.kv-head .hm-h1{font-size:clamp(24px,7vw,30px)}}

.kv-page .ks-quick__link{min-height:44px}
@media (max-width:420px){.kv-head .hm-h1{font-size:clamp(20px,5.9vw,24px)}}

/* вкладки калькуляторов */
.kv-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}

/* CMS-страницы: текст до 72ch, широкие блоки (цифры, галерея, этапы, контакты, вопросы) на всю ширину контейнера */
.pg-body{font-size:17px;line-height:1.65;font-weight:500}
.pg-body > *{max-width:72ch}
.pg-body > .ks-facts,.pg-body > .ks-gallery,.pg-body > .ks-contacts,.pg-body > .ks-faq,.pg-body > .ks-timeline,.pg-body > p:first-child:has(img){max-width:none}
.pg-body p,.pg-body ul,.pg-body ol{margin:0 0 1em}
.pg-body h2{margin:clamp(40px,5vw,72px) 0 20px;font-family:Unbounded,sans-serif;font-size:clamp(22px,2.2vw,30px);line-height:1.2;font-weight:700;color:var(--ks-dark);text-wrap:balance}
.pg-body > :first-child{margin-top:0}
.pg-body h3{margin:32px 0 12px;font-size:19px;line-height:1.3;font-weight:800}
.pg-body a:not(.button){color:var(--ks-blue);text-decoration:underline;text-underline-offset:3px}
.pg-body ul:not(.ks-timeline){padding-left:1.2em}
.pg-body li{margin:0 0 .6em}
.pg-body img{max-width:100%;height:auto;border-radius:14px}
.pg-body > p:first-child img{display:block;width:100%;aspect-ratio:16 / 7;object-fit:cover;border-radius:var(--hm-r)}
.pg-body .ks-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 var(--hm-gap);margin:32px 0 0}
.pg-body .ks-facts div{background:none;border-radius:0;padding:16px 0 0;border-top:1px solid var(--hm-line);font-size:14px;line-height:1.4;color:var(--hm-muted)}
.pg-body .ks-facts b{display:block;margin-bottom:4px;font-size:clamp(26px,3vw,40px);line-height:1.1;font-weight:800;color:var(--ks-dark)}
.pg-body .ks-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--hm-gap);margin:0 0 8px}
.pg-body .ks-gallery img{width:100%;aspect-ratio:4 / 3;object-fit:cover;border-radius:14px}
.pg-body .ks-timeline{list-style:none;margin:0;padding:0;border:0;border-top:1px solid var(--hm-line)}
.pg-body .ks-timeline li{display:grid;grid-template-columns:120px minmax(0,1fr);gap:var(--hm-gap);margin:0;padding:18px 0;border-bottom:1px solid var(--hm-line)}
.pg-body .ks-timeline li::before{display:none}
.pg-body .ks-timeline b{font-size:20px;font-weight:800;color:var(--ks-blue)}
.pg-body .ks-contacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--hm-gap);margin:0 0 24px}
.pg-body .ks-contacts div{background:none;border-radius:0;padding:18px 0;border-top:1px solid var(--hm-line);font-size:16px;line-height:1.55}
.pg-body .ks-contacts span{display:block;margin-bottom:6px;font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--hm-muted);opacity:1}
.pg-body .ks-faq{border-top:1px solid var(--hm-line)}
.pg-body .ks-faq details{padding:0;border-bottom:1px solid var(--hm-line)}
.pg-body .ks-faq summary{min-height:44px;align-items:center;padding:14px 0;font-size:17px}
.pg-body .ks-faq summary::after{color:var(--ks-blue)}
.pg-body .ks-faq details p{margin:0 0 16px;max-width:72ch;color:var(--hm-muted)}
@media (max-width:1100px){.pg-body .ks-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.pg-body .ks-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){
  .pg-body{font-size:16px}
  .pg-body > p:first-child img{aspect-ratio:4 / 3}
  .pg-body .ks-gallery{grid-template-columns:minmax(0,1fr)}
  .pg-body .ks-contacts{grid-template-columns:minmax(0,1fr)}
  .pg-body .ks-timeline li{grid-template-columns:64px minmax(0,1fr);gap:12px}
  .pg-body .ks-timeline b{font-size:17px}
}
.kv-tabs .cat-chip{white-space:normal;height:auto;min-height:44px;line-height:1.3;padding-block:10px;max-width:100%}

/* новости, кейсы, документы, поиск */
.kv-rows--2 a{grid-template-columns:200px minmax(0,1fr) 32px}
.kv-meta{margin:0;font-size:14px;font-weight:600}
.kv-pager{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:32px 0 0}
.kv-note{margin:24px 0 0;font-size:14px}
.pg-cover{display:block;width:100%;aspect-ratio:16 / 7;object-fit:cover;border-radius:var(--hm-r);margin:0 0 clamp(32px,4vw,56px)}
.pg-quote{margin:0;max-width:900px}
.pg-quote p{margin:0;font-family:Unbounded,sans-serif;font-size:clamp(20px,2.4vw,32px);line-height:1.3;font-weight:700;color:var(--ks-dark)}
.pg-quote footer{margin-top:16px;font-size:15px;font-weight:600}
.pg-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--hm-gap)}
.pg-gallery a{display:block;border-radius:14px;overflow:hidden}
.pg-gallery img{display:block;width:100%;aspect-ratio:4 / 3;object-fit:cover}
.pg-docs{list-style:none;margin:0;padding:0;border-top:1px solid var(--hm-line)}
.pg-doc{display:grid;grid-template-columns:120px minmax(0,1fr);gap:var(--hm-gap);padding:24px 0;border-bottom:1px solid var(--hm-line)}
.pg-doc__img{display:block;border-radius:10px;overflow:hidden;border:1px solid var(--hm-line);background:#fff;align-self:start}
.pg-doc__img img{display:block;width:100%;height:auto}
.pg-doc h3{margin:0 0 12px;font-size:18px;line-height:1.35;font-weight:800;color:var(--ks-dark)}
.pg-doc dl{margin:0 0 12px;display:grid;gap:8px}
.pg-doc dl > div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:var(--hm-gap);font-size:15px;line-height:1.5}
.pg-doc dt{color:var(--hm-muted);font-weight:500}
.pg-doc dd{margin:0;font-weight:600}
.pg-doc .hm-muted{margin:0 0 8px;font-size:14px}
.pg-search{display:flex;gap:12px;max-width:680px;margin-top:24px}
.pg-search input{flex:1;min-width:0;min-height:52px;padding:0 16px;border:1px solid rgba(21,38,65,.22);border-radius:12px;background:#fff;font:inherit;font-size:17px;color:var(--ks-dark)}
.pg-search input:focus-visible{outline:none;border-color:var(--ks-blue);box-shadow:0 0 0 3px rgba(35,80,210,.35)}
.pg-search .button{flex:none;min-height:52px}
@media (max-width:1100px){.kv-rows--2 a{grid-template-columns:140px minmax(0,1fr) 32px}.pg-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){
  .kv-rows--2 a{grid-template-columns:96px minmax(0,1fr) 24px}
  .kv-rows--2 .kv-row__d{display:none}
  .pg-gallery{grid-template-columns:minmax(0,1fr)}
  .pg-doc{grid-template-columns:72px minmax(0,1fr);gap:16px}
  .pg-doc dl > div{grid-template-columns:minmax(0,1fr);gap:0}
  .pg-search{flex-direction:column}
  .pg-search .button{width:100%}
  .pg-cover{aspect-ratio:4 / 3}
}

/* ревью: белые рендеры на плашке, соседние белые секции без двойного отступа, шапка статьи, документы и «О компании» */
.kv-row__img img{mix-blend-mode:multiply}
.pg-cover{background:var(--ks-surface);object-fit:contain;mix-blend-mode:multiply}
.kv-page .hm-sec:not(.hm-sec--tint):not(.hm-sec--dark) + .hm-sec:not(.hm-sec--tint):not(.hm-sec--dark){padding-top:0}
.kv-items--noq a{grid-template-columns:112px minmax(0,1fr) 32px}
.kv-head .kv-meta{margin-top:16px}
.kv-calc .ks-calc__head .rightsans{font-size:clamp(22px,2.4vw,32px);line-height:1.2}
.pg-body--cta p:has(> .button){display:none}
.pg-body .ks-timeline li{grid-template-columns:120px minmax(0,72ch)}
.pg-body .ks-gallery:has(> :nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr))}
.pg-body .ks-gallery:has(> :nth-child(5):last-child) > :nth-child(-n+2){grid-column:span 3}
.pg-body .ks-gallery:has(> :nth-child(5):last-child) > :nth-child(n+3){grid-column:span 2}
@media (max-width:1100px){.pg-body .ks-gallery:has(> :nth-child(5):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}.pg-body .ks-gallery:has(> :nth-child(5):last-child) > *{grid-column:auto}}
@media (max-width:700px){
  .kv-head .cat-crumbs [aria-current],.kv-head .cat-crumbs span[aria-hidden]:last-of-type{display:none}
  .pg-body .ks-timeline li{grid-template-columns:64px minmax(0,1fr)}
  .pg-doc__b{display:contents}
  .pg-doc h3{grid-column:2;align-self:center}
  .pg-doc dl,.pg-doc .hm-muted,.pg-doc .hm-link{grid-column:1 / -1}
  .pg-body .ks-gallery:has(> :nth-child(5):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}
