/* Новая карточка работы портфолио (template-parts/kc-work): галерея, вкладки, пошаговый калькулятор, отзывы. Подключается только на карточках работ. Токены — из темы kamnelab (style.css):
   основной #115353 → #0b3b3b, текст #35352d, подложки #f7f9f9, линии #d7e2e2 / #e9efef, кремовый на темном #fff7da. */
:root {
  --kc-primary: #115353; --kc-primary-dark: #0b3b3b; --kc-hover: #1a7d7d; --kc-ink: #35352d;
  --kc-muted: #6d736f; --kc-soft: #f7f9f9; --kc-line: #d7e2e2; --kc-line-2: #e9efef; --kc-cream: #fff7da; --kc-error: #b75050;
  --kc-tint: #f1f6f5; --kc-grad: linear-gradient(87.67deg, #115353 30%, #0b3b3b);
}


/* ===== Галерея: фото целиком в 4:3 (тема резала до 570×325), счетчик, миниатюры ===== */
.kc-gal { display: grid; gap: 14px }
.kc-gal__main { position: relative; border-radius: 15px; overflow: hidden; background: #f4f4f4 }
.kc-gal__track { display: flex; aspect-ratio: 4 / 3; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none }
.kc-gal__track::-webkit-scrollbar { display: none }
.kc-gal__slide { flex: 0 0 100%; scroll-snap-align: start; display: block }
.kc-gal__slide img { display: block; width: 100%; height: 100%; object-fit: cover }
.kc-gal__badge, .kc-gal__zoom { position: absolute; top: 14px; border-radius: 8px; background: rgba(255, 255, 255, .92); pointer-events: none }
.kc-gal__badge { left: 14px; padding: 6px 10px; color: var(--kc-primary); font-size: 13px; font-weight: 600 }
.kc-gal__zoom { right: 14px; display: grid; place-items: center; width: 34px; height: 34px }
.kc-gal__zoom svg { width: 18px; height: 18px; fill: none; stroke: var(--kc-primary); stroke-width: 2; stroke-linecap: round }
.kc-gal__count { position: absolute; left: 14px; bottom: 14px; padding: 4px 10px; border-radius: 20px; background: rgba(11, 59, 59, .78); color: #fff; font-size: 13px; pointer-events: none }
.kc-gal__arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 10px; background: var(--kc-grad); cursor: pointer; transition: opacity .2s }
.kc-gal__arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--kc-cream); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
.kc-gal__arrow_prev { left: 14px } .kc-gal__arrow_next { right: 14px }
.kc-gal__arrow:disabled { opacity: 0; pointer-events: none }
.kc-gal__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 3px; scrollbar-width: none }
.kc-gal__thumb { position: relative; flex: 0 0 104px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #f4f4f4; cursor: pointer; opacity: .7; transition: opacity .2s }
.kc-gal__thumb img { display: block; width: 100%; height: 100%; object-fit: cover }
.kc-gal__thumb:hover { opacity: 1 }
.kc-gal__thumb.is-current { opacity: 1; outline: 2px solid var(--kc-primary); outline-offset: 2px }
.kc-gal.is-single .kc-gal__arrow, .kc-gal.is-single .kc-gal__count, .kc-gal.is-single .kc-gal__thumbs { display: none }
@media (max-width: 767px) {
  .kc-gal__main { margin: 0 -15px; border-radius: 0 }
  .kc-gal__arrow, .kc-gal__thumbs { display: none }
}

/* Смартфон: заголовок над фото (колонку справа «раскрываем», заголовок поднимаем первым) */
@media (max-width: 767px) {
  .single-product__row { display: flex; flex-direction: column }
  .single-product__col_right { display: contents }
  .single-product__title { order: -1; margin-bottom: 16px }
}

/* ===== Правая колонка: главное о работе, цена, две кнопки ===== */
.kc-spec__all { display: inline-block; margin-top: 16px; color: var(--kc-primary); font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px }
.kc-offer { display: grid; gap: 22px; margin-top: 32px; padding: 26px 28px; border-radius: 15px; background: var(--kc-soft) }
.kc-offer__price { display: grid; gap: 2px }
.kc-offer__label { font-size: 14px; color: var(--kc-muted) }
.kc-offer__sum { font-size: 18px; color: var(--kc-ink) }
.kc-offer__sum strong { font-family: PlayfairDisplayFont, serif; font-weight: 800; font-size: 32px; line-height: 1.15; font-feature-settings: 'pnum' on, 'lnum' on }
.kc-offer__note { font-size: 14px; color: var(--kc-muted) }
.kc-offer__actions { display: flex; flex-wrap: wrap; gap: 10px }
.kc-offer__btn.btn { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; max-width: none; min-height: 54px; padding: 12px 18px; font-size: 16px; white-space: nowrap; line-height: 1.2 }
@media (max-width: 767px) {
  .kc-offer { margin-left: -15px; margin-right: -15px; margin-top: 28px; border-radius: 0; padding: 24px 15px }
  .kc-offer__actions { grid-template-columns: 1fr }
  .kc-offer__ask { display: none !important } /* на смартфоне эта кнопка есть в нижней панели */
}

/* ===== Воздух: тема ставит между всеми блоками по 25px ===== */
.product-page__breadcrumbs { margin-bottom: 28px }
.product-page__single-product, .product-page__benefits, .product-page__tabs { margin-bottom: 72px }
.single-product__title:not(:last-child) { margin-bottom: 28px }
@media (min-width: 992px) {
  .single-product__col_left { padding-right: 35px }
  .single-product__col_right { padding-left: 35px }
}
@media (max-width: 767px) {
  .product-page__single-product, .product-page__benefits, .product-page__tabs { margin-bottom: 48px }
}

/* ===== Вкладки: равные кнопки в одну строку ===== */
#kcTabs { scroll-margin-top: 110px }
#kcTabs .tabs__switcher { margin-bottom: 40px }
@media (min-width: 992px) {
  #kcTabs .tabs__switcher .switcher__item { flex: 1 1 0; padding: 20px 16px; white-space: nowrap }
}
@media (max-width: 767px) { #kcTabs .tabs__switcher { margin-bottom: 28px } #kcTabs .switcher__item { white-space: nowrap } }

/* Характеристики — две колонки */
.kc-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px }
@media (max-width: 767px) { .kc-specs { grid-template-columns: 1fr; gap: 6px } }

/* Тексты вкладок */
.kc-tab { color: var(--kc-ink); font-size: 17px; line-height: 1.6 }
.kc-tab p { margin: 0 }
.kc-tab__title { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-family: PlayfairDisplayFont, serif; font-weight: 800; font-size: 24px; line-height: 1.2; font-feature-settings: 'pnum' on, 'lnum' on }
.kc-tab__title svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--kc-primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round }
/* описание */
.kc-tab_desc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start }
.kc-tab__text { display: grid; gap: 16px; max-width: 680px }
.kc-tab__lead { font-family: PlayfairDisplayFont, serif; font-weight: 700; font-size: 24px; line-height: 1.35 }
.kc-tab__promo { display: grid; gap: 8px; padding: 28px; border-radius: 15px; background: linear-gradient(87.67deg, #115353 0, #0b3b3b 99.61%); color: #fff }
.kc-tab__promo strong { font-family: PlayfairDisplayFont, serif; font-weight: 800; font-size: 26px; line-height: 1.2; color: var(--kc-cream) }
.kc-tab__promo span { font-size: 16px; opacity: .9 }
/* светлая кнопка темы (.btn_secondary): своя подсветка при наведении, текст не пропадает */
.kc-tab__btn.btn { margin-top: 12px; max-width: none; padding: 14px 20px 12px; font-size: 16px }
/* оплата и доставка */
.kc-tab_cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px }
.kc-tab__card { padding: 32px; border-radius: 15px; background: var(--kc-soft) }
.kc-tab__list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none }
.kc-tab__list li { display: grid; gap: 2px; padding-left: 26px; background: url(https://kamnelab.ru/wp-content/themes/kamnelab/images/marker.svg) no-repeat 0 6px / 13px 13px }
.kc-tab__list b { font-weight: 600 }
.kc-tab__list span { color: var(--kc-muted); font-size: 16px }
.kc-tab__rows { margin: 0; padding: 0; list-style: none }
.kc-tab__rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--kc-line) }
.kc-tab__rows li:first-child { padding-top: 0 }
.kc-tab__rows b { flex: none; font-weight: 600; color: var(--kc-primary); white-space: nowrap }
.kc-tab__note { margin-top: 16px !important; font-size: 15px; line-height: 1.5; color: var(--kc-muted) }
/* установка */
.kc-tab_install { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start }
.kc-tab__fact { display: grid; gap: 4px; padding: 32px; border-radius: 15px; background: var(--kc-soft) }
.kc-tab__fact strong { font-family: PlayfairDisplayFont, serif; font-weight: 800; font-size: 48px; line-height: 1; color: var(--kc-primary); font-feature-settings: 'pnum' on, 'lnum' on }
.kc-tab__fact span { font-size: 17px }
.kc-tab__checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin: 0; padding: 0; list-style: none }
.kc-tab__checks li { position: relative; padding-left: 34px }
.kc-tab__checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #cfe3e1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23115353' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px }
@media (max-width: 991px) {
  .kc-tab_desc, .kc-tab_install { grid-template-columns: 1fr; gap: 28px }
}
@media (max-width: 767px) {
  .kc-tab { font-size: 16px }
  .kc-tab_cards { grid-template-columns: 1fr; gap: 16px }
  .kc-tab__card, .kc-tab__promo, .kc-tab__fact { padding: 24px 20px }
  .kc-tab__lead { font-size: 20px }
  .kc-tab__title { font-size: 21px; margin-bottom: 16px }
  .kc-tab__checks { grid-template-columns: 1fr }
  .kc-tab__rows li { flex-direction: column; gap: 2px }
}

/* ===== Калькулятор: секция после вкладок ===== */
.kc-wrap { margin: 0 0 80px }
.kc { scroll-margin-top: 110px; padding: 44px 48px 48px; border-radius: 15px; background: var(--kc-soft); color: var(--kc-ink) }
.kc__head { display: grid; gap: 6px; margin-bottom: 28px }
.kc__title { margin: 0; font-family: PlayfairDisplayFont, serif; font-weight: 800; font-size: 30px; line-height: 1.2; font-feature-settings: 'pnum' on, 'lnum' on }
.kc__sub { margin: 0; font-size: 15px; line-height: 1.45; color: var(--kc-muted) }
.kc__sub a { color: var(--kc-primary) }

/* Шаги */
.kc__steps { scroll-margin-top: 110px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 36px; padding: 0; list-style: none }
.kc__step { display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--kc-line-2); color: var(--kc-muted); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer; transition: background .2s, color .2s }
.kc__step-n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--kc-line-2); color: var(--kc-ink); font-size: 14px }
.kc__step:hover { box-shadow: inset 0 0 0 1px var(--kc-primary) }
.kc__step.is-done { color: var(--kc-ink) }
.kc__step.is-done .kc__step-n { background: #cfe3e1; color: var(--kc-primary) }
.kc__step.is-current { background: var(--kc-grad); box-shadow: none; color: #fff }
.kc__step.is-current .kc__step-n { background: var(--kc-cream); color: var(--kc-primary) }

.kc__body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start }
.kc__panes { display: grid; gap: 32px; min-width: 0 }
.kc__pane { display: grid; gap: 32px; min-width: 0 }
.kc__pane[hidden] { display: none }
.kc__group { display: grid; gap: 12px; min-width: 0 }
.kc__label { font-weight: 600; font-size: 16px; line-height: 1.25 }
.kc__label_sm { font-size: 14px }
.kc__label-note { margin-left: 6px; font-weight: 400; font-size: 13px; color: var(--kc-muted) }
.kc__hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--kc-muted) }
.kc__hint:empty { display: none }
.kc__hint.is-error { color: var(--kc-error) }

/* Навигация по шагам */
.kc__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--kc-line-2) }
.kc__back { padding: 10px 0; border: 0; background: none; color: var(--kc-primary); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer }
.kc__nav-total { display: none; margin-left: auto; font-size: 15px; color: var(--kc-muted) }
.kc__nav-total b { color: var(--kc-ink) }
.kc__next.btn { max-width: none; min-width: 230px; padding: 15px 22px; font-size: 16px }
.kc__next.btn:disabled { opacity: .45 }
.kc__next[hidden] { display: none }

/* Плитки формы — иконки из калькулятора сайта */
.kc__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.kc__tile { display: grid; justify-items: center; gap: 2px; padding: 8px 8px 12px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--kc-line); color: var(--kc-ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: box-shadow .2s, color .2s }
.kc__tile img { display: block; width: 100%; max-width: 130px; height: auto; aspect-ratio: 260 / 194; object-fit: contain }
.kc__tile:hover { box-shadow: inset 0 0 0 1px var(--kc-primary) }
.kc__tile[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--kc-primary); color: var(--kc-primary); font-weight: 600 }

/* Поля */
.kc__dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px }
.kc__field { display: grid; gap: 4px; font-size: 13px; color: var(--kc-muted); min-width: 0 }
.kc__field b { color: var(--kc-primary); font-weight: 700 }
.kc__field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--kc-line-2); border-radius: 10px; background: #fdfdfd; box-shadow: inset 0 0 11px rgba(219, 219, 219, .25); color: var(--kc-ink); font: inherit; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; -moz-appearance: textfield }
.kc__field input::-webkit-outer-spin-button, .kc__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.kc__field input:focus { outline: none; border-color: var(--kc-primary); background-color: #fff }
.kc__field input.is-error { border-color: var(--kc-error) }
.kc__field_sm input { height: 40px; width: 96px }

/* Остров и стеновая панель */
.kc__toggles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.kc__option { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--kc-line-2) }
.kc__switch { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 600; cursor: pointer }
.kc__switch input { position: absolute; opacity: 0; width: 1px; height: 1px }
.kc__switch-ui { position: relative; flex: 0 0 40px; width: 40px; height: 22px; border-radius: 11px; background: var(--kc-line); transition: background .2s }
.kc__switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s }
.kc__switch input:checked + .kc__switch-ui { background: var(--kc-primary) }
.kc__switch input:checked + .kc__switch-ui::after { transform: translateX(18px) }
.kc__switch input:focus-visible + .kc__switch-ui { outline: 2px solid var(--kc-hover); outline-offset: 2px }
.kc__inline { display: flex; align-items: flex-end; gap: 6px }
.kc__inline[hidden] { display: none }
.kc__times { padding-bottom: 10px; color: var(--kc-muted) }
.kc__note { padding: 0 0 4px 4px; font-size: 13px; line-height: 1.3; color: var(--kc-muted); max-width: 120px }
.kc__field_sm span { white-space: nowrap }

/* Категории, бренды, серии */
.kc__chips, .kc__seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px }
#kcSink { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)) }
.kc__chip, .kc__seg-item { display: grid; align-content: center; gap: 2px; padding: 9px 6px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--kc-line); color: var(--kc-ink); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; transition: box-shadow .2s, background .2s, color .2s }
.kc__chip small, .kc__seg-item small { font-size: 12px; font-weight: 500; color: var(--kc-muted) }
.kc__chip small { white-space: nowrap }
.kc__chip:hover, .kc__seg-item:hover { box-shadow: inset 0 0 0 1px var(--kc-primary) }
.kc__chip[aria-checked="true"], .kc__seg-item[aria-checked="true"] { background: var(--kc-grad); box-shadow: none; color: #fff }
.kc__chip[aria-checked="true"] small, .kc__seg-item[aria-checked="true"] small { color: var(--kc-cream) }
.kc__seg_sm .kc__seg-item { font-size: 14px; padding: 8px 6px }

.kc__brands { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px }
.kc__brand { display: grid; justify-items: center; gap: 2px; padding: 4px 4px 8px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--kc-line); font: inherit; cursor: pointer; transition: box-shadow .2s }
.kc__brand img { display: block; width: 100%; max-width: 104px; height: auto; aspect-ratio: 422 / 300; object-fit: contain; mix-blend-mode: multiply }
.kc__brand small { font-size: 12px; color: var(--kc-muted); white-space: nowrap }
.kc__brand:hover { box-shadow: inset 0 0 0 1px var(--kc-primary) }
.kc__brand[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--kc-primary); background: var(--kc-tint) }

.kc__series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.kc__ser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--kc-line); color: var(--kc-ink); font: inherit; text-align: left; cursor: pointer; transition: box-shadow .2s }
.kc__ser b { font-size: 15px; font-weight: 600; line-height: 1.2 }
.kc__ser span { grid-column: 1; font-size: 13px; color: var(--kc-muted) }
.kc__ser em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-weight: 600; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums }
.kc__ser:hover { box-shadow: inset 0 0 0 1px var(--kc-primary) }
.kc__ser[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--kc-primary); background: var(--kc-tint) }

/* Карточки с фото: мойки из камня и профили кромки — лента с прокруткой */
.kc__cards { display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--kc-line) transparent }
.kc__cards[hidden] { display: none }
.kc__card { display: grid; align-content: start; gap: 3px; padding: 0 0 9px; border: 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--kc-line); color: var(--kc-ink); font: inherit; text-align: center; cursor: pointer; scroll-snap-align: start }
.kc__card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 4px }
.kc__card b { padding: 0 6px; font-size: 14px; font-weight: 600; line-height: 1.2 }
.kc__card em { padding: 0 6px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--kc-primary) }
.kc__card i { font-style: normal; font-weight: 500; font-size: 11px; color: var(--kc-muted) }
.kc__card small { padding: 0 6px; font-size: 12px; line-height: 1.25; color: var(--kc-muted) }
/* у картинок профилей сверху старая цена, снизу подпись — показываем середину */
.kc__cards_edge .kc__card img { aspect-ratio: 375 / 190; object-position: 50% 45% }
.kc__card:hover { box-shadow: inset 0 0 0 1px var(--kc-primary) }
.kc__card[aria-checked="true"] { outline: 2px solid var(--kc-primary); outline-offset: -2px; background: var(--kc-tint) }

/* Еще опции */
.kc__more { border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--kc-line-2) }
.kc__more summary { padding: 12px 14px; font-weight: 600; color: var(--kc-primary); cursor: pointer; list-style: none }
.kc__more summary::-webkit-details-marker { display: none }
.kc__more summary::after { content: "+"; float: right; font-weight: 600 }
.kc__more[open] summary::after { content: "−" }
.kc__more-hint { font-weight: 400 }
.kc__more-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; padding: 0 14px 14px }
.kc__check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; cursor: pointer }
.kc__check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--kc-primary) }
.kc__check em { font-style: normal; color: var(--kc-muted); white-space: nowrap }

/* Шаг 4: итог */
.kc__result { display: grid; gap: 6px; padding: 20px 22px; border-radius: 15px; background: linear-gradient(87.67deg, #115353 0, #0b3b3b 99.61%); color: #fff }
.kc__total-label { font-size: 14px; opacity: .85 }
.kc__total { font-size: 18px }
.kc__total strong { font-family: PlayfairDisplayFont, serif; font-weight: 800; font-size: 38px; line-height: 1.1; color: var(--kc-cream); font-variant-numeric: tabular-nums; font-feature-settings: 'pnum' on, 'lnum' on }
.kc__pm { font-size: 15px; opacity: .9 }
.kc__line { margin: 6px 0 0; font-size: 14px; line-height: 1.45; opacity: .9 }
.kc__break summary { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--kc-cream); cursor: pointer }
.kc__break ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px }
.kc__break li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed rgba(255, 255, 255, .25) }
.kc__break li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums }
.kc__fine { margin: 6px 0 0; font-size: 13px; line-height: 1.4; opacity: .8 }
.kc__actions { display: grid; gap: 12px }
.kc__cta.btn { display: flex; align-items: center; justify-content: center; width: 100%; max-width: none; min-height: 56px; padding: 12px 14px; font-size: 17px }
.kc__send { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.kc__send-label { grid-column: 1 / -1; font-size: 14px; color: var(--kc-muted) }
.kc__msg.btn { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: none; min-height: 48px; padding: 10px 12px; font-size: 16px }
.kc__msg svg { flex: 0 0 20px; width: 20px; height: 20px; fill: currentColor }
.kc__reset { justify-self: center; padding: 4px 0; border: 0; background: none; color: var(--kc-primary); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
[data-step="4"] .kc__nav { border-top: 0; padding-top: 0 }

/* Чертеж и итог справа */
.kc__visual { position: sticky; top: 110px; display: grid; gap: 14px; padding: 24px; border-radius: 15px; background: #fff; box-shadow: inset 0 0 0 1px var(--kc-line-2) }
.kc__plan_m { display: none }
.kc__plan svg { display: block; width: 100%; height: auto; max-height: 300px }
.kc-plan__top { fill: #e3eceb; stroke: var(--kc-primary); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round }
.kc-plan__wall rect { fill: var(--kc-primary); opacity: .55 }
.kc-plan__dim line { stroke: var(--kc-muted); stroke-width: 1; vector-effect: non-scaling-stroke }
.kc-plan__dim text { fill: var(--kc-ink); font-weight: 600 }
.kc-plan__in { fill: var(--kc-primary); font-weight: 500 }
.kc__plan-cap { margin: 0; font-size: 13px; line-height: 1.45; color: var(--kc-muted) }
.kc__legend { display: inline-block; width: 14px; height: 6px; margin: 0 6px 2px 0; border-radius: 2px; background: var(--kc-primary); opacity: .55; vertical-align: middle }
.kc__mini { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--kc-line-2) }
.kc__mini-label { font-size: 13px; color: var(--kc-muted) }
.kc__mini-total { font-size: 18px; color: var(--kc-ink) }
.kc__mini-total b { font-family: PlayfairDisplayFont, serif; font-weight: 800; font-size: 30px; color: var(--kc-primary); font-feature-settings: 'pnum' on, 'lnum' on }
.kc__mini-pm { font-size: 13px; color: var(--kc-muted) }
[data-step="4"] .kc__mini { display: none }

/* ===== Отзывы: свой блок, карточки листаются, текст раскрывается на месте ===== */
.kc-rev-wrap { margin: 0 0 80px }
.kc-rev { display: grid; gap: 28px }
.kc-rev__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px }
.kc-rev__title { margin: 0; font-family: PlayfairDisplayFont, serif; font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--kc-ink); font-feature-settings: 'pnum' on, 'lnum' on }
.kc-rev__score { display: flex; align-items: center; gap: 12px }
.kc-rev__score strong { font-family: PlayfairDisplayFont, serif; font-weight: 800; font-size: 40px; line-height: 1; color: var(--kc-primary); font-feature-settings: 'pnum' on, 'lnum' on }
.kc-rev__score small { display: block; margin-top: 2px; font-size: 14px; color: var(--kc-muted) }
.kc-rev__stars { position: relative; display: inline-block; justify-self: start; width: max-content; font-size: 20px; line-height: 1; letter-spacing: 2px; color: var(--kc-line) }
.kc-rev__stars::before { content: "★★★★★" }
.kc-rev__stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--kc-rate); overflow: hidden; color: #f5b301; white-space: nowrap }
.kc-rev__stars_sm { font-size: 16px }
.kc-rev__nav { display: flex; gap: 10px; margin-left: auto }
.kc-rev__arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 10px; background: var(--kc-grad); cursor: pointer; transition: opacity .2s }
.kc-rev__arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--kc-cream); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
.kc-rev__arrow:disabled { opacity: .3; cursor: default }
.kc-rev__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: stretch; outline: none }
.kc-rev__photos { display: flex; gap: 8px; flex-wrap: wrap }
.kc-rev__photos a { display: block; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #e9efef }
.kc-rev__photos img { display: block; width: 100%; height: 100%; object-fit: cover }
.kc-rev__track::-webkit-scrollbar { display: none }
.kc-rev__card { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: 15px; background: var(--kc-soft); scroll-snap-align: start }
.kc-rev__who { display: flex; align-items: center; gap: 12px }
.kc-rev__who div { display: grid; gap: 2px; min-width: 0 }
.kc-rev__who b { font-size: 17px; font-weight: 600; color: var(--kc-ink) }
.kc-rev__who small { font-size: 14px; color: var(--kc-muted) }
.kc-rev__ava { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #cfe3e1; color: var(--kc-primary); font-weight: 600; font-size: 18px }
.kc-rev__sample { margin-left: auto; padding: 3px 8px; border-radius: 6px; background: var(--kc-cream); color: #8a7a3c; font-size: 12px; font-weight: 600 }
.kc-rev__what { margin: 0; font-size: 14px; font-weight: 600; color: var(--kc-primary) }
.kc-rev__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--kc-ink); white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden }
/* Окно «Отзыв целиком» */
.hystmodal__window.kc-revm { max-width: 720px; padding: 44px 44px 36px; border-radius: 15px; text-align: left }
.kc-revm__body { display: grid; gap: 14px }
.kc-revm .kc-rev__text { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: 17px; line-height: 1.65 }
.kc-revm .kc-rev__ava { width: 52px; height: 52px; font-size: 20px }
.kc-revm .kc-rev__who b { font-size: 19px }
.kc-revm__photos { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 10px; overflow-x: auto; padding-bottom: 4px }
.kc-revm__photos a { display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #e9efef }
.kc-revm__photos img { display: block; width: 100%; height: 100%; object-fit: cover }
.kc-revm__cta { display: grid; gap: 18px; margin-top: 28px; padding: 24px; border-radius: 15px; background: linear-gradient(87.67deg, #115353 0, #0b3b3b 99.61%); color: #fff }
.kc-revm__cta-text { display: grid; gap: 4px }
.kc-revm__cta-text b { font-family: PlayfairDisplayFont, serif; font-weight: 800; font-size: 24px; line-height: 1.2; color: var(--kc-cream) }
.kc-revm__cta-text span { font-size: 15px; line-height: 1.5; opacity: .9 }
.kc-revm__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.kc-revm__btn.btn { display: flex; align-items: center; justify-content: center; max-width: none; min-height: 52px; padding: 12px 14px; font-size: 16px; white-space: nowrap }
.kc-revm__btn_ghost.btn { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 247, 218, .6); color: var(--kc-cream) }
.kc-revm__btn_ghost.btn:hover, .kc-revm__btn_ghost.btn:focus { background: rgba(255, 255, 255, .08); color: var(--kc-cream) }
@media (max-width: 767px) {
  .hystmodal__window.kc-revm { padding: 40px 20px 24px }
  .kc-revm__btns { grid-template-columns: 1fr }
  .kc-revm__photos { grid-auto-columns: 140px }
  .kc-revm__cta { padding: 20px }
}
.kc-rev__more { justify-self: start; padding: 0; border: 0; background: none; color: var(--kc-primary); font: inherit; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
.kc-rev__more[hidden] { display: none }
@media (max-width: 991px) { .kc-rev__track { grid-auto-columns: calc((100% - 24px) / 2) } }
@media (max-width: 767px) {
  .kc-rev-wrap { margin-bottom: 48px }
  .kc-rev { gap: 20px }
  .kc-rev__title { font-size: 24px; width: 100% }
  .kc-rev__nav { display: none }
  .kc-rev__track { grid-auto-columns: 86%; gap: 12px; margin: 0 -15px; padding: 0 15px; scroll-padding: 0 15px }
  .kc-rev__card { padding: 22px 20px }
}

/* Сводка расчета в модальном окне */
.kc-modal-sum { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--kc-soft); font-size: 14px; line-height: 1.45; color: var(--kc-ink) }
.kc-modal-sum b { display: block; margin-bottom: 4px }

/* Ноутбук */
@media (min-width: 992px) and (max-width: 1199px) {
  .kc__body { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px }
  .kc__brands { grid-template-columns: repeat(4, minmax(0, 1fr)) }
  .kc__toggles { grid-template-columns: 1fr }
}
/* Планшет и смартфон: чертеж над шагом 1, на других шагах — сумма у кнопки «Далее» */
@media (max-width: 991px) {
  .kc__body { grid-template-columns: 1fr; gap: 16px }
  .kc__visual { display: none }
  .kc__plan_m { display: block; padding: 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--kc-line-2) }
  .kc__nav-total { display: inline }
  .kc__brands { grid-template-columns: repeat(4, minmax(0, 1fr)) }
}
@media (max-width: 767px) {
  .kc-wrap { margin-top: 0 }
  .kc-wrap { margin-bottom: 48px }
  .kc { padding: 32px 15px; margin-left: -15px; margin-right: -15px; border-radius: 0 }
  .kc__head { margin-bottom: 20px }
  .kc__title { font-size: 24px }
  .kc__pane, .kc__panes { gap: 26px }
  .kc__steps { gap: 4px; margin-bottom: 26px }
  .kc__step { flex-direction: column; justify-content: flex-start; gap: 4px; padding: 8px 2px; font-size: 12px; text-align: center }
  .kc__plan svg { max-height: 220px }
  .kc__toggles { grid-template-columns: 1fr }
  .kc__series, .kc__more-body { grid-template-columns: 1fr }
  .kc__brands { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .kc__nav-total { display: none }
  .kc__next.btn { min-width: 0; flex: 1 }
  .kc__total strong { font-size: 32px }
  .product-page__breadcrumbs .breadcrumbs__list { display: flex; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none }
  .product-page__breadcrumbs .breadcrumbs__list::-webkit-scrollbar { display: none }
}
@media (max-width: 479px) {
  #kcSink { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .kc__more-hint { display: none }
  .kc__tile { font-size: 14px }
}

/* Нижняя панель на смартфоне */
.kc-bar { display: none }
@media (max-width: 767px) {
  .kc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 10px 15px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -6px 20px rgba(17, 83, 83, .12) }
  .kc-bar__price { display: grid; line-height: 1.15; min-width: 0 }
  .kc-bar__price > span { font-size: 12px; color: var(--kc-muted) }
  .kc-bar__price strong { font-size: 19px; font-weight: 700; color: var(--kc-primary); font-variant-numeric: tabular-nums; white-space: nowrap }
  .kc-bar__btn.btn { padding: 13px 14px; font-size: 15px; line-height: 1.1 }
  .kc-bar__share { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--kc-primary); background: #fff; cursor: pointer }
  .kc-bar__share svg { width: 22px; height: 22px; fill: none; stroke: var(--kc-primary); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round }
  .kc-bar__menu { position: absolute; right: 15px; bottom: calc(100% + 8px); display: grid; gap: 6px; width: 230px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .18) }
  .kc-bar__menu[hidden] { display: none }
  .kc-bar__menu span { font-size: 13px; color: var(--kc-muted) }
  .kc-bar__menu button, .kc-bar__menu a { display: flex; text-decoration: none; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--kc-soft); color: var(--kc-primary); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer }
  .kc-bar__menu svg { width: 20px; height: 20px; fill: currentColor }
  body.kc-has-bar { padding-bottom: 72px }
}

@media (prefers-reduced-motion: reduce) { .kc *, .kc-gal *, .kc-bar { transition: none !important } }

/* Короткое сообщение внизу экрана (копирование расчета для MAX) */
.kc-toast { position: fixed; left: 50%; bottom: 90px; z-index: 1000; width: min(460px, calc(100% - 30px)); padding: 14px 16px; border-radius: 10px; background: #1f2a2a; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s }
.kc-toast.is-shown { opacity: 1; transform: translate(-50%, 0) }
@media (min-width: 768px) { .kc-toast { bottom: 30px } }

/* Отправка расчета: если мессенджер один — кнопка во всю ширину */
.kc__send_one { grid-template-columns: 1fr }
