/* Шаблон «Комплектация». Макет: десктоп 1820, контент 1392; мобильный 402 */

@font-face {
    font-family: 'Mabry';
    src: url('../fonts/Mabry-Light.woff2') format('woff2'), url('../fonts/Mabry-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mabry';
    src: url('../fonts/Mabry-Regular.woff2') format('woff2'), url('../fonts/Mabry-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* Medium и Bold в макете — у сайта есть только Light и Regular, браузер дорисует жирность */

:root {
    --kp-bg: #f3f2ed;
    --kp-tile: #e7e5db;
    --kp-white: #fff;
    --kp-black: #121212;
    --kp-text: #414141;
    --kp-muted: #888f7a;
    --kp-accent: #ce988f;
    --kp-accent-hover: #c0857b;
    --kp-line: #d9d9d9;
    --kp-dark-2: #181818;
    --kp-dark-3: #222;
    --kp-content: 1392px;
    --kp-gutter: 16px;
    --kp-section-gap: 80px;
    --kp-gap: 8px;
    --kp-font: 'Mabry', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

.kp-body {
    margin: 0;
    background: var(--kp-bg);
    color: var(--kp-black);
    font-family: var(--kp-font);
    font-weight: 300;
    font-size: 15px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
.kp-body img { max-width: 100%; }
.kp-body a { color: inherit; }
.kp-body button, .kp-body input, .kp-body select, .kp-body textarea { font: inherit; color: inherit; }

.kp-container {
    width: min(var(--kp-content), 100% - var(--kp-gutter) * 2);
    margin-left: auto;
    margin-right: auto;
}

.kp-visually-hidden, .kp-hp {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.kp-empty { padding: 80px 0; text-align: center; }

/* ---------- Кнопки ---------- */

.kp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 16px 32px;
    border: 0;
    border-radius: 4px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, opacity .2s;
}
.kp-body .kp-btn--accent { background: var(--kp-accent); color: var(--kp-white); }
.kp-body .kp-btn--accent:hover { background: var(--kp-accent-hover); }
.kp-body .kp-btn--dark { background: var(--kp-black); color: var(--kp-white); }
.kp-body .kp-btn--dark:hover { background: #2a2a2a; }
.kp-body .kp-btn--light { background: var(--kp-white); color: var(--kp-black); }
.kp-body .kp-btn--light:hover { background: var(--kp-tile); }
.kp-btn--w248 { min-width: 248px; padding-left: 24px; padding-right: 24px; }
.kp-btn--w264 { min-width: 264px; }
.kp-btn--w228 { min-width: 228px; }
.kp-btn--wide { width: 100%; }
.kp-btn--icon { min-height: 48px; padding: 12px 16px; }
.kp-btn--icon img { flex: none; }
.kp-btn:disabled, .kp-btn.is-loading { opacity: .6; cursor: default; }

.kp-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--kp-gap);
    margin-top: 32px;
}

/* ---------- Шапка ---------- */

.kp-header { background: var(--kp-bg); }
.kp-header__bar {
    display: flex;
    gap: 4px;
    padding: 4px;
    height: 80px;
}
.kp-header__tile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    height: 72px;
    padding: 0 26px;
    border-radius: 4px;
    background: var(--kp-tile);
    color: var(--kp-black);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s;
}
.kp-body a.kp-header__tile:hover { background: #dedbcf; }
.kp-header__logo, .kp-header__brand { padding: 0; background: none; overflow: hidden; }
.kp-header__logo img, .kp-header__brand img { display: block; }
.kp-header__brand { border-radius: 4px 0 0 4px; }
.kp-header__phone { flex: 1 1 auto; justify-content: flex-end; }
.kp-header__phone a { text-decoration: none; transition: color .2s; }
.kp-header__phone a:hover { color: var(--kp-accent); }
.kp-header__icon { width: 84px; padding: 0; }

/* ---------- Первый экран ---------- */

.kp-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 600px;
    padding: 80px var(--kp-gutter) 64px;
    background: #2b2a27;
    color: var(--kp-white);
    text-align: center;
    overflow: hidden;
}
.kp-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none !important;
}
.kp-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1088px;
}
.kp-hero__kicker { font-size: 14px; line-height: 16px; color: rgba(255,255,255,.7); }
.kp-hero__title {
    margin: 0;
    font-weight: 300;
    font-size: 56px;
    line-height: 1;
    letter-spacing: 0;
}
.kp-hero__lead {
    max-width: 800px;
    font-size: 20px;
    line-height: 28px;
    color: rgba(255,255,255,.9);
}
.kp-hero__lead p { margin: 0; }
.kp-hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--kp-gap); }

.kp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--kp-gap);
    margin-top: 24px;
}
.kp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 31px 32px;
    background: var(--kp-white);
    text-align: center;
}
.kp-stat__icon { width: 40px; height: 40px; }
.kp-stat__value { font-weight: 400; font-size: 40px; line-height: 60px; color: var(--kp-black); }
.kp-stat__label { font-size: 14px; line-height: 21px; color: var(--kp-muted); }

/* ---------- Секции ---------- */

.kp-main { padding-bottom: 96px; }
.kp-section { margin-top: var(--kp-section-gap); }
.kp-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 0 auto 32px;
    text-align: center;
}
.kp-head .kp-lead { max-width: 800px; }
.kp-h2 {
    margin: 0;
    font-weight: 300;
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--kp-black);
}
.kp-h2--40 { font-size: 40px; }
.kp-lead { font-size: 20px; line-height: 28px; color: var(--kp-black); }
.kp-lead p { margin: 0; }

.kp-stack { display: flex; flex-direction: column; gap: var(--kp-gap); }
.kp-grid { display: grid; gap: var(--kp-gap); }
.kp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.kp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.kp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.kp-grid--top { align-items: start; }

.kp-rule { width: 100%; height: 0; margin: 8px 0; border: 0; border-top: .6px solid var(--kp-line); }

/* Карточка */
.kp-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 24px;
    background: var(--kp-white);
}
.kp-card__icon { width: 40px; height: 40px; }
.kp-card__num { font-weight: 500; font-size: 40px; line-height: 1.2; color: var(--kp-accent); }
.kp-card__title { font-weight: 400; font-size: 18px; line-height: 23.4px; color: var(--kp-black); }
.kp-card__text { font-size: 15px; line-height: 24px; color: var(--kp-text); }
.kp-card__text p { margin: 0 0 12px; }
.kp-card__text p:last-child { margin-bottom: 0; }
.kp-card__text a { text-decoration: none; }
.kp-card__text a:hover { color: var(--kp-accent); }
.kp-card__accent { font-weight: 400; font-size: 18px; line-height: 23.4px; color: var(--kp-accent); }
.kp-card--split { justify-content: space-between; }
.kp-card__body, .kp-card__result { display: flex; flex-direction: column; gap: 16px; }

/* Баннер «Мы берём всё это на себя» */
.kp-banner {
    position: relative;
    height: 464px;
    overflow: hidden;
    background: #3a352f;
}
.kp-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none !important;
}
.kp-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,0));
}
.kp-banner__text {
    position: absolute;
    left: 56px;
    bottom: 48px;
    z-index: 1;
    max-width: 800px;
    padding-right: 24px;
    font-size: 40px;
    line-height: 1.2;
    color: var(--kp-white);
}

/* Мелкие подписи «2023 • 220 м²» */
.kp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: .6px;
    color: var(--kp-muted);
}
.kp-meta span { display: inline-flex; align-items: center; gap: 12px; }
.kp-meta span + span::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--kp-muted);
}
.kp-meta--upper { text-transform: uppercase; }

/* Цифры «12 позиций» */
.kp-figures { display: flex; gap: 20px; max-width: 480px; }
.kp-figure { flex: 1 1 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kp-figure__value { font-weight: 700; font-size: 24px; line-height: 28.8px; color: var(--kp-accent); }
.kp-figure__label { font-size: 14px; line-height: 19.6px; color: var(--kp-muted); }

/* ---------- Объекты ---------- */

.kp-object {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--kp-white);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}
.kp-object__img { aspect-ratio: 456 / 405; background: var(--kp-tile); overflow: hidden; }
.kp-object__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.kp-object:hover .kp-object__img img { transform: scale(1.03); }
.kp-object__body { display: flex; flex-direction: column; gap: 12px; padding: 32px 24px; }
.kp-object__info { display: flex; flex-direction: column; gap: 12px; }
.kp-object__name { font-weight: 400; font-size: 24px; line-height: 28px; color: var(--kp-black); }
.kp-object__designer { font-size: 14px; line-height: 20px; color: var(--kp-muted); }
.kp-object__extra { display: flex; flex-direction: column; gap: 24px; }
.kp-quote {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 32px;
    border-left: 3.75px solid var(--kp-accent);
    background: var(--kp-bg);
    font-size: 15px;
    line-height: 24px;
    color: var(--kp-text);
}
.kp-quote__title { font-weight: 500; }

/* ---------- Отзывы ---------- */

.kp-stat--plain { gap: 12px; }
.kp-review { display: flex; flex-direction: column; background: var(--kp-white); }
.kp-review--video { gap: 24px; padding-bottom: 24px; }
.kp-review__poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 192 / 108;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--kp-tile);
    overflow: hidden;
    cursor: pointer;
}
.kp-review__poster:disabled { cursor: default; }
.kp-review__poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kp-review__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    background: url('../images/icons/play.svg') center / contain no-repeat;
    transition: transform .2s;
}
.kp-review__poster:not(:disabled):hover .kp-review__play { transform: scale(1.1); }
.kp-review--case { color: inherit; text-decoration: none; }
.kp-review--case .kp-review__poster img { transition: transform .4s; }
.kp-review--case:hover .kp-review__poster img { transform: scale(1.03); }
.kp-review__who { display: flex; flex-direction: column; gap: 8px; }
.kp-review--video .kp-review__who { padding: 0 24px; }
.kp-review__author { font-weight: 400; font-size: 18px; line-height: 23.4px; color: var(--kp-black); }
.kp-review--text { justify-content: space-between; gap: 24px; min-height: 220px; padding: 24px; }
.kp-review__body { display: flex; flex-direction: column; gap: 8px; }
.kp-review__role { font-size: 12px; line-height: 14px; letter-spacing: .6px; color: var(--kp-muted); }
.kp-review__text { font-size: 15px; line-height: 24px; color: var(--kp-text); }
.kp-review__text p { margin: 0; }

/* ---------- Для кого ---------- */

.kp-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--kp-gap); }
.kp-tab {
    padding: 12px 16px;
    border: 0;
    border-radius: 4px;
    background: var(--kp-white);
    color: var(--kp-black);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.kp-tab:hover { background: var(--kp-tile); }
.kp-tab.is-active { background: var(--kp-black); color: var(--kp-white); }

.kp-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--kp-gap); }
.kp-split[hidden] { display: none; }
.kp-split__media { background: var(--kp-white); }
.kp-split__media img { display: block; width: 100%; aspect-ratio: 192 / 108; height: 100%; object-fit: cover; }

/* Панель — белая карточка с крупным заголовком */
.kp-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
    background: var(--kp-white);
}
.kp-panel__title { font-weight: 400; font-size: 24px; line-height: 28px; color: var(--kp-black); }
.kp-panel__bottom { display: flex; flex-direction: column; gap: 16px; }
.kp-panel--dark { justify-content: space-between; background: var(--kp-black); }
.kp-panel--dark .kp-panel__title { color: var(--kp-white); }
.kp-panel--dark .kp-card__text { color: var(--kp-tile); }
.kp-panel__body { display: flex; flex-direction: column; gap: 24px; }
.kp-panel .kp-btn { align-self: flex-start; }

.kp-list, .kp-rich ul {
    margin: 0;
    padding: 0 0 0 22.5px;
    font-size: 15px;
    line-height: 24px;
    color: var(--kp-text);
}
.kp-list li, .kp-rich li { margin-bottom: 12px; }
.kp-list li:last-child, .kp-rich li:last-child { margin-bottom: 0; }
.kp-list li::marker, .kp-rich li::marker { color: var(--kp-muted); font-size: .8em; }

/* ---------- Сравнение ---------- */

.kp-compare {
    position: relative;
    padding: 32px 24px;
    background: var(--kp-white);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.kp-compare__table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 25.5px;
    text-align: left;
}
.kp-compare__table th, .kp-compare__table td {
    padding: 16px 16px 16px 0;
    border-bottom: .6px solid var(--kp-line);
    vertical-align: top;
}
.kp-compare__table tbody tr:last-child th, .kp-compare__table tbody tr:last-child td { border-bottom: 0; }
.kp-compare__table thead th { padding-top: 0; font-weight: 500; color: var(--kp-black); }
.kp-compare__table tbody th { width: 26%; font-weight: 500; color: var(--kp-black); }
.kp-compare__table td { font-weight: 300; color: var(--kp-text); }
.kp-compare__table th:last-child, .kp-compare__table td:last-child {
    padding-left: 32px;
    background: rgba(206, 152, 143, .1);
}
.kp-compare__table thead th:last-child { box-shadow: 0 -24px 0 rgba(206, 152, 143, .1); }
.kp-compare__table tbody tr:last-child td:last-child { box-shadow: 0 24px 0 rgba(206, 152, 143, .1); }

/* ---------- Чек-лист ---------- */

.kp-checklist-form { display: flex; flex-direction: column; gap: 24px; }
.kp-line-field { display: flex; flex-direction: column; gap: 8px; }
.kp-line-field__label { font-size: 14px; line-height: 20px; color: var(--kp-black); }
.kp-line-field input {
    width: 100%;
    padding: 8px 0 8px 16px;
    border: 0;
    border-bottom: 1px solid var(--kp-black);
    border-radius: 0;
    background: transparent;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    outline: none;
}
.kp-line-field input:focus { border-bottom-color: var(--kp-accent); }
.kp-checklist-form__submit { display: flex; align-items: center; gap: 24px; }
.kp-checklist-form__submit .kp-card__text { flex: 1 1 auto; }

/* ---------- Бренды ---------- */

.kp-brands {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(151px, 1fr);
    gap: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.kp-brands::-webkit-scrollbar { display: none; }
.kp-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 0 12px;
    border-radius: 4px;
    background: var(--kp-white);
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--kp-black);
}
.kp-brand img { display: block; max-width: 136px; max-height: 58px; width: auto; height: auto; object-fit: contain; }
a.kp-brand:hover img { opacity: .7; }
.kp-brand span { font-size: 18px; line-height: 1.2; text-align: center; }

/* ---------- Вопросы ---------- */

.kp-faq { display: flex; justify-content: center; padding: 48px 24px; background: var(--kp-white); }
.kp-faq__list { width: 100%; max-width: 752px; }
.kp-faq__item { border-bottom: .6px solid var(--kp-line); }
.kp-faq__item:last-child { border-bottom: 0; }
.kp-faq__item + .kp-faq__item { margin-top: 0; }
.kp-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 0;
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    color: var(--kp-black);
    list-style: none;
    cursor: pointer;
}
.kp-faq__item:first-child .kp-faq__q { padding-top: 0; }
.kp-faq__q::-webkit-details-marker { display: none; }
.kp-faq__icon { position: relative; flex: none; width: 20px; height: 20px; }
.kp-faq__icon::before, .kp-faq__icon::after {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 20px;
    height: 2px;
    background: var(--kp-accent);
    transition: transform .25s;
}
.kp-faq__icon::after { transform: rotate(90deg); }
.kp-faq__item[open] .kp-faq__icon::after { transform: rotate(180deg); }
.kp-faq__a { margin-top: -8px; padding: 0 0 32px; font-size: 15px; line-height: 24px; color: var(--kp-text); }
.kp-faq__a p { margin: 0 0 12px; }
.kp-faq__a p:last-child { margin: 0; }

/* ---------- Форма сметы ---------- */

.kp-smeta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
    background: var(--kp-white);
}
.kp-smeta__head { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-bottom: 16px; text-align: center; }
.kp-smeta__messengers { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--kp-gap); }

.kp-form { display: flex; flex-direction: column; gap: 24px; }
.kp-field { display: flex; flex-direction: column; gap: 8px; }
.kp-field__label { font-size: 14px; line-height: 21px; color: var(--kp-muted); }
.kp-field input {
    width: 100%;
    height: 57px;
    padding: 16px 20px;
    border: .625px solid var(--kp-tile);
    border-radius: 0;
    background: var(--kp-bg);
    font-weight: 300;
    font-size: 16px;
    color: var(--kp-black);
    outline: none;
    transition: border-color .2s;
}
.kp-field input::placeholder { color: var(--kp-muted); }
.kp-field input:focus { border-color: var(--kp-accent); }
.kp-body .is-invalid input, .kp-body input.is-invalid { border-color: #d14b4b; }

.kp-file {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 16px 20px;
    border: .625px dashed var(--kp-black);
    font-size: 16px;
    line-height: 1.3;
    color: var(--kp-muted);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.kp-file:hover, .kp-file.is-drag { border-color: var(--kp-accent); background: var(--kp-bg); }
.kp-file.has-file { color: var(--kp-black); }
.kp-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.kp-form__consent { margin: 0; font-size: 15px; line-height: 24px; color: var(--kp-text); text-align: center; }
.kp-form__consent a { color: inherit; }

.kp-form-message:empty { display: none; }
.kp-form-message { font-size: 15px; line-height: 22px; color: var(--kp-black); }
.kp-form-message.is-error { color: #d14b4b; }
.kp-form-message.is-success { color: #3d7a4f; }

/* ---------- Подвал ---------- */

.kp-footer {
    padding: 4px;
    background: var(--kp-black);
    color: var(--kp-white);
}
.kp-footer a { text-decoration: none; }
.kp-footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.kp-footer__photo { min-height: 678px; border-radius: 4px; overflow: hidden; }
.kp-footer__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kp-footer__service { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.kp-footer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 20px; }
.kp-footer__title { font-size: 50px; line-height: 55px; }
.kp-footer__ymaps { flex: none; margin: 72px 116px 0 0; }
.kp-footer__ymaps img { display: block; }
.kp-footer__reviews { display: flex; flex-direction: column; gap: 4px; }
.kp-footer__review { padding: 20px; border-radius: 4px; background: var(--kp-dark-2); font-size: 16.25px; line-height: 23.47px; }
.kp-footer__review-name { font-weight: 400; }
.kp-footer__review-date { margin: 4px 0 12px; font-size: 16px; line-height: 16px; color: rgba(255,255,255,.4); }
.kp-footer__review-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.kp-footer__bottom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.kp-footer__cell {
    display: flex;
    flex-direction: column;
    min-height: 285px;
    padding: 20px;
    border-radius: 3.6px;
    background: var(--kp-dark-2);
}
.kp-footer__contacts { justify-content: space-between; gap: 32px; }
.kp-footer__logo img { display: block; width: 228px; height: auto; }
.kp-footer__contacts-list { font-weight: 400; font-size: 12px; line-height: 16.8px; opacity: .52; }
.kp-footer__contacts-list a:hover { opacity: .8; }
.kp-footer__cell-title { font-weight: 400; font-size: 20px; line-height: 14.4px; }
.kp-footer__catalog { justify-content: space-between; gap: 32px; }
.kp-footer__menu { display: flex; flex-direction: column; gap: 8.6px; margin: 0; padding: 0; list-style: none; font-weight: 400; font-size: 12px; line-height: 16.8px; }
.kp-footer__menu--bottom { gap: 15px; }
.kp-footer__menu a:hover, .kp-footer__menu a.is-active { color: var(--kp-accent); }
.kp-footer__club { gap: 12px; }
.kp-footer__club-title { font-size: 20px; line-height: 24px; }
.kp-footer__club-text { font-size: 12.64px; line-height: 15.17px; opacity: .8; }
.kp-footer__club-form { position: relative; display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.kp-footer__club-form input[type="email"] {
    flex: 1 1 200px;
    min-width: 0;
    height: 50.5px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--kp-dark-3);
    color: var(--kp-white);
    font-weight: 400;
    font-size: 16px;
    outline: none;
}
.kp-footer__club-form input::placeholder { color: rgba(231,229,219,.4); }
.kp-footer__club-form input:focus { box-shadow: inset 0 0 0 1px rgba(231,229,219,.4); }
.kp-footer__club-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 50.5px;
    height: 50.5px;
    padding: 0;
    border: .625px solid var(--kp-tile);
    border-radius: 50%;
    background: var(--kp-tile);
    cursor: pointer;
    transition: opacity .2s;
}
.kp-footer__club-form button:hover { opacity: .85; }
.kp-footer__club-form .kp-form-message { flex: 1 0 100%; font-size: 13px; line-height: 18px; color: var(--kp-tile); }
.kp-footer__club-form .kp-form-message.is-error { color: #ff8a80; }

/* ---------- Модальные окна ---------- */

.kp-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.kp-modal[hidden] { display: none; }
.kp-modal__overlay { position: absolute; inset: 0; background: rgba(18,18,18,.6); }
.kp-modal__box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    padding: 40px 32px 32px;
    background: var(--kp-white);
    overflow-y: auto;
}
.kp-modal__title { margin-bottom: 12px; font-size: 32px; line-height: 1.2; }
.kp-modal__text { margin: 0 0 24px; color: var(--kp-text); }
.kp-modal__close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    cursor: pointer;
}
.kp-modal__close::before, .kp-modal__close::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 19px;
    width: 20px;
    height: 2px;
    background: var(--kp-black);
    transform: rotate(45deg);
}
.kp-modal__close::after { transform: rotate(-45deg); }
.kp-modal--video .kp-modal__box { max-width: 1100px; padding: 48px 0 0; background: #000; }
.kp-modal--video .kp-modal__close::before, .kp-modal--video .kp-modal__close::after { background: var(--kp-white); }
.kp-modal__video { position: relative; aspect-ratio: 16 / 9; }
.kp-modal__video iframe, .kp-modal__video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kp-body.kp-lock { overflow: hidden; }

/* ---------- Адаптив ---------- */

@media (max-width: 1440px) {
    .kp-hero__title { font-size: clamp(40px, 3.9vw, 56px); }
    .kp-h2 { font-size: clamp(36px, 3.3vw, 48px); }
    .kp-footer__title { font-size: clamp(36px, 3.4vw, 50px); line-height: 1.1; }
    .kp-footer__ymaps { margin-right: 24px; }
}

@media (max-width: 1199px) {
    :root { --kp-section-gap: 72px; }
    .kp-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .kp-stats { grid-template-columns: repeat(4, 1fr); }
    .kp-stat { padding: 24px 16px; }
    .kp-header__brand { display: none; }
    .kp-footer__bottom { grid-template-columns: repeat(2, 1fr); }
    .kp-footer__photo { min-height: 520px; }
}

@media (max-width: 1023px) {
    .kp-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .kp-grid--3.kp-grid--keep { grid-template-columns: repeat(3, 1fr); }
    .kp-split { grid-template-columns: 1fr; }
    .kp-split__media img { height: auto; }
    .kp-stats { grid-template-columns: repeat(2, 1fr); }
    .kp-banner { height: 400px; }
    .kp-banner__text { left: 32px; bottom: 32px; font-size: 32px; }
    .kp-footer__top { grid-template-columns: 1fr; }
    .kp-footer__photo { min-height: 0; aspect-ratio: 16 / 9; }
    .kp-footer__head { padding: 20px 4px; }
    .kp-footer__ymaps { margin: 12px 0 0; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* три карточки в две колонки: последняя нечётная — на всю ширину */
    .kp-grid--3:not(.kp-grid--keep) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    /* объекты на планшете — горизонтальные карточки */
    .kp-grid--objects { grid-template-columns: 1fr; }
    .kp-grid--objects > :last-child:nth-child(odd) { grid-column: auto; }
    .kp-object { flex-direction: row; }
    .kp-object__img { flex: 0 0 42%; aspect-ratio: auto; min-height: 320px; }
    .kp-object__body { flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 767px) {
    :root { --kp-section-gap: 64px; }
    .kp-header__bar { height: auto; }
    .kp-header__phone { display: none; }
    .kp-header__logo { flex: none; }
    .kp-header__icon { flex: 1 1 0; width: auto; min-width: 56px; }
    .kp-header__cta { flex: 1 1 0; padding: 0 12px; font-size: 14px; line-height: 18px; white-space: normal; }

    .kp-hero { min-height: 600px; padding: 64px var(--kp-gutter) 48px; align-items: center; }
    .kp-hero__title { font-size: 28px; line-height: 1.1; }
    .kp-hero__lead { font-size: 15px; line-height: 24px; }
    .kp-hero__buttons { flex-direction: column; width: 100%; max-width: 380px; }
    .kp-hero__buttons .kp-btn { width: 100%; min-width: 0; }

    .kp-stat__value { font-size: 32px; line-height: 44px; }
    .kp-stat__label { font-size: 13px; line-height: 18px; }

    .kp-head { gap: 16px; margin-bottom: 24px; }
    .kp-h2, .kp-h2--40 { font-size: 28px; }
    .kp-lead { font-size: 17px; line-height: 24px; }

    .kp-grid--2, .kp-grid--3, .kp-grid--4 { grid-template-columns: 1fr; }
    .kp-grid--3.kp-grid--keep { grid-template-columns: 1fr; }

    .kp-card { padding: 24px 16px; }
    .kp-panel { padding: 24px 16px; }
    .kp-object__body { padding: 24px 16px; }
    .kp-quote { padding: 16px; }
    .kp-figures { gap: 12px; }
    .kp-figure__value { font-size: 20px; line-height: 24px; }
    .kp-figure__label { font-size: 12px; line-height: 16px; }

    .kp-banner { height: auto; min-height: 330px; display: flex; align-items: flex-end; }
    .kp-banner__text { position: relative; left: auto; bottom: auto; padding: 16px; font-size: 24px; }

    .kp-review--text { min-height: 0; padding: 16px; }
    .kp-review--video .kp-review__who { padding: 0 16px; }

    .kp-tabs { width: 100%; flex-wrap: nowrap; }
    .kp-tab { flex: 1 1 0; padding: 12px 8px; font-size: 15px; }

    .kp-compare { margin-left: calc(var(--kp-gutter) * -1); margin-right: calc(var(--kp-gutter) * -1); padding: 24px 16px; }
    .kp-compare__table { min-width: 560px; font-size: 13px; line-height: 20px; }
    .kp-compare__table th:last-child, .kp-compare__table td:last-child { padding-left: 16px; }

    .kp-checklist-form__submit { flex-direction: column; align-items: stretch; text-align: center; }
    .kp-panel .kp-btn, .kp-btn--w248 { width: 100%; min-width: 0; }

    .kp-brands { margin-right: calc(var(--kp-gutter) * -1); grid-auto-columns: 112px; }
    .kp-brand { aspect-ratio: auto; height: 108px; }
    .kp-brand img { max-width: 92px; max-height: 40px; }

    .kp-faq { padding: 24px 16px; }
    .kp-faq__q { font-size: 18px; line-height: 24px; padding: 20px 0; }
    .kp-faq__a { margin-top: -4px; padding-bottom: 20px; }
    .kp-br { display: none; }

    .kp-smeta { padding: 24px 16px; }
    .kp-smeta__messengers { flex-direction: column; width: 100%; }
    .kp-smeta__messengers .kp-btn { width: 100%; }
    .kp-file { min-height: 80px; font-size: 14px; }
    .kp-actions .kp-btn { width: 100%; }
    .kp-main { padding-bottom: 64px; }

    .kp-footer__title { font-size: 36px; line-height: 40px; }
    .kp-footer__head { flex-direction: column; gap: 12px; }
    .kp-footer__review { padding: 16px; font-size: 15px; line-height: 22px; }
    .kp-footer__bottom { grid-template-columns: 1fr; }
    .kp-footer__cell { min-height: 0; gap: 24px; }
    .kp-footer__catalog { gap: 24px; }
    .kp-modal__box { padding: 40px 16px 24px; }
    .kp-modal__title { font-size: 26px; }
}

@media (max-width: 400px) {
    .kp-header__logo img { width: 72px; height: auto; }
    .kp-header__icon { min-width: 48px; }
    .kp-stat { padding: 20px 8px; }
    .kp-stat__icon { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .kp-body * { transition: none !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }
