

/* Start:/local/templates/karad/components/bitrix/news.detail/usluga_v2/style.css?179258920631688*/
/*
 * Страница услуги по макету Figma (шаблон usluga_v2, ТЗ 16.09.2026). Префикс sv- (service v2).
 * Размеры — из макета 1460 (контейнер 1360) и мобильного 390 (контейнер 370).
 */
.sv {
    --sv-accent: #947a63;
    --sv-accent-2: #c9a86a;
    --sv-bg: #121212;
    --sv-card: #15181d;
    --sv-card-2: #1a1e25;
    --sv-dark: #0e1116;
    --sv-line: #2a2e36;
    --sv-muted: #b0b0b0;
    --sv-radius: 4px;
    color: #fff;
}
.sv .visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* секция сама является .container — только вертикальные отступы, shorthand убил бы margin: auto */
.sv-section { margin-top: 0; margin-bottom: 90px; }
.sv-section__title {
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    text-transform: none;
    margin: 0 0 40px;
}
.sv-section__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.sv-section__head .sv-section__title { margin-bottom: 0; }
.sv-section__head--stack { flex-direction: column; gap: 8px; }
.sv-section__sub { margin: 0; font-size: 16px; line-height: 1.2; color: rgba(255,255,255,.6); }

/* ---- кнопки со скошенными углами, как в шапке и подвале сайта ---- */
.sv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 0 40px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    transition: background-color .25s ease, color .25s ease;
}
.sv-btn:hover, .sv-btn:focus-visible { text-decoration: none; }
.sv-btn--accent { background: var(--sv-accent); color: #fff; }
.sv-btn--accent:hover { background: #a98c74; color: #fff; }
.sv-btn--dark { background: var(--sv-card-2); color: #fff; }
.sv-btn--dark:hover { background: #262b34; color: #fff; }
/* Контурная: clip-path режет и рамку, поэтому «рамка» — это фон, а внутренность — псевдоэлемент */
.sv-btn--outline { position: relative; isolation: isolate; background: var(--sv-accent); color: #fff; }
.sv-btn--outline::before {
    content: '';
    position: absolute; inset: 1px; z-index: -1;
    background: var(--sv-bg);
    clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
    transition: background-color .25s ease;
}
.sv-btn--outline:hover { color: #fff; }
.sv-btn--outline:hover::before { background: var(--sv-card-2); }

/* ---- первый экран ---- */
.sv-hero {
    position: relative;
    /* Шапка сайта абсолютная и разной высоты (120…208px) — точное значение ставит script.js в --sv-header */
    margin: var(--sv-header, 121px) 0 10px;
    min-height: 500px;
    background: #040406 center right / cover no-repeat;
    display: flex;
    align-items: stretch;
}
.sv-hero__shade {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(4,4,6,.92) 0%, rgba(4,4,6,.7) 38%, rgba(4,4,6,.12) 70%, rgba(4,4,6,0) 100%);
}
.sv-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 23px;
    padding-bottom: 60px;
}
.sv-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 1.3; color: #fff; margin: 0 0 30px; }
.sv-crumbs a { color: #fff; text-decoration: none; }
.sv-crumbs a:hover { color: var(--sv-accent-2); }
.sv-crumbs span { color: #fff; }
.sv-crumbs__current { color: rgba(255,255,255,.5) !important; }
.sv-hero__title {
    max-width: 670px;
    font-size: 58px;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    text-transform: none;
    margin: 0 0 14px;
}
/* 520px вместо 670 из макета: длинное описание переносится в две ровные строки под заголовком (правки 21.09.2026) */
.sv-hero__text { max-width: 520px; font-size: 16px; line-height: 1.2; color: #fff; margin: 0 0 60px; text-wrap: balance; }
.sv-hero__btn { align-self: flex-start; min-width: 310px; }
.sv-hero__photo { display: none; }
/* Кадр из макета (ТЗ 24.09.2026): градиент уже в картинке, левее неё — сплошной фон #040406.
   Прижат к правому краю и тянется по высоте экрана; на узких ПК лишнее слева уходит за край. */
/* Кадр выводится фоном секции (inline background-image): A/B-замер 25.09.2026 — <img> давал LCP хуже */
.sv-hero--art { background-color: #040406; background-position: right top; background-size: auto 100%; background-repeat: no-repeat; overflow: hidden; }
.sv-hero--art .sv-hero__shade { display: none; }
.sv-hero--art .sv-hero__inner { z-index: 1; }
.sv-hero__art { display: none; }
/* Кадры 1460×500 с высоким мобильным (ТЗ 21.10.2026) свёрстаны под 1460px: уже — сюжет уезжает под текст,
   поэтому слева под текстом возвращается прежнее затемнение */
@media (min-width: 768px) and (max-width: 1459px) {
    .sv-hero--art-tall .sv-hero__shade { display: block; background: linear-gradient(90deg, rgba(4,4,6,.9) 0%, rgba(4,4,6,.8) 40%, rgba(4,4,6,.35) 62%, rgba(4,4,6,0) 80%); }
}

/* ---- три карточки под баннером ---- */
.sv-facts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 90px;
}
.sv-facts__card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    min-height: 80px;
    background: var(--sv-card);
    border-radius: var(--sv-radius);
}
.sv-facts__icon {
    flex: 0 0 40px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1);
    border-radius: var(--sv-radius);
}
.sv-facts__icon img { width: 32px; height: 32px; display: block; }
.sv-facts__text { font-size: 16px; line-height: 1.25; color: #fff; max-width: 200px; }

/* ---- карточка (виды услуги и проекты) ---- */
.sv-card {
    display: flex;
    flex-direction: column;
    background: var(--sv-card-2);
    border-radius: var(--sv-radius);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}
a.sv-card:hover { color: #fff; text-decoration: none; transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.sv-card__img-link { display: block; }
/* Селектор с родителем: в bundle.css есть img:not([draggable]) { height: auto } — он бьёт одиночный класс */
.sv-card .sv-card__img { display: block; width: 100%; height: 230px; object-fit: cover; background: var(--sv-dark); }
.sv-card__img--empty { background: var(--sv-dark); }
.sv-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 20px 20px 20px; gap: 10px; }
.sv-card__title { font-size: 18px; font-weight: 600; line-height: 1.2; color: #fff; text-transform: none; margin: 0; }
.sv-card__title a { color: #fff; text-decoration: none; }
.sv-card__title a:hover { color: var(--sv-accent-2); }
.sv-card__text { flex: 1 1 auto; font-size: 14px; line-height: 1.2; color: var(--sv-muted); margin: 0; }
.sv-card__more { display: inline-block; margin-top: 10px; font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--sv-accent); text-decoration: none; }
.sv-card__more:hover, a.sv-card:hover .sv-card__more { color: var(--sv-accent-2); text-decoration: none; }
/* Нижняя строка карточки кейса: «Смотреть кейс →» слева, цена справа — как на /cases/ (ТЗ 29.09.2026 п.5) */
.sv-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.sv-card__bottom .sv-card__more { margin-top: 0; }
.sv-card__price { font-size: 18px; font-weight: 600; line-height: 1.2; color: #fff; white-space: nowrap; }
@media (max-width: 767px) { .sv-card__price { font-size: 16px; } }

/* ---- виды услуги ---- */
.sv-types__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* Дочерних услуг бывает 2–3 (полировка кузова, декор, керамика кузова) — не растягиваем их на сетку из четырёх */
.sv-types__grid--n2 { grid-template-columns: repeat(2, 1fr); }
.sv-types__grid--n3 { grid-template-columns: repeat(3, 1fr); }
.sv-types .sv-card { min-height: 376px; }

/* ---- галерея: окно по размеру кадра, стрелки внутри, миниатюры лентой по центру ----
   ТЗ 30.09.2026 (как в галерее кейса): без фиксированной высоты и пропорции — кадр целиком, без обрезки,
   растягивания и тёмных полей. Ширина окна — наименьшее из: ширина контейнера, «предел высоты × пропорция»
   и натуральная ширина файла. --sv-r / --sv-w ставят PHP (первый кадр) и script.js (при листании). */
.sv-gallery { outline: none; }
.sv-gallery__main {
    --sv-gal-max: min(80vh, 760px);
    position: relative;
    width: min(100%, calc(var(--sv-gal-max) * var(--sv-r, 100)), var(--sv-w, 100000px));
    margin: 0 auto;
    border-radius: var(--sv-radius);
    overflow: hidden;
}
.sv-gallery__main .sv-gallery__media {
    display: block;
    width: 100%; height: auto; max-width: none;
    /* Плавная смена кадра (правки 21.09.2026): новый элемент появляется через opacity */
    transition: opacity .45s ease;
}
.sv-gallery__main .sv-gallery__media.is-enter { opacity: 0; }
/* Уходящий кадр лежит поверх нового (окно уже по размеру нового), не ловит клики и плавно гаснет */
.sv-gallery__main .sv-gallery__media.is-leave { position: absolute; top: 0; left: 0; pointer-events: none; }
.sv-gallery__main .sv-gallery__media.is-out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .sv-gallery__main .sv-gallery__media { transition: none; } }
.sv-gallery__media--zoom { cursor: zoom-in; }
.fancybox-container { z-index: 2147483647; } /* виджет чата сидит на 2147483646 */
/* Вид стрелок — общий класс .k-arrow (assets/css/k-arrow.css, ТЗ 29.09.2026 п.6); здесь только положение */
.sv-gallery__arrow {
    position: absolute; top: 50%; z-index: 2;
    transform: translateY(-50%);
}
.sv-gallery__arrow--prev { left: 20px; }
.sv-gallery__arrow--next { right: 20px; }
.sv-gallery__thumbs {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    margin: 10px auto 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--sv-accent) transparent;
    padding-bottom: 4px;
}
.sv-gallery__thumb {
    position: relative;
    flex: 0 0 104px;
    width: 104px; height: 80px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--sv-radius);
    background: var(--sv-dark);
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    opacity: .7;
    transition: opacity .2s ease, border-color .2s ease;
}
.sv-gallery__thumb img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.sv-gallery__thumb:hover { opacity: 1; }
.sv-gallery__thumb.is-active { opacity: 1; border-color: var(--sv-accent); }
.sv-gallery__play {
    position: absolute; left: 50%; top: 50%;
    width: 24px; height: 24px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--sv-accent);
}
.sv-gallery__play::after {
    content: '';
    position: absolute; left: 9px; top: 7px;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #fff;
}

/* ---- прайс-лист ---- */
.sv-price__desk { display: block; }
.sv-price__head, .sv-price__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(var(--sv-price-cols, 4), 215px);
    gap: 10px;
    align-items: center;
    padding: 14px 20px;
    border-radius: var(--sv-radius);
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
}
.sv-price__head {
    padding: 0 20px 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--sv-accent);
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--sv-accent);
}
.sv-price__row:nth-child(even) { background: var(--sv-dark); }
.sv-price__row:nth-child(odd) { background: var(--sv-card-2); }
.sv-price__cell { text-align: center; }
.sv-price__cell--service { text-align: left; }
.sv-price__mob { display: none; }

/* ---- что входит в стоимость ---- */
.sv-incl__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 10px; }
.sv-incl__card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: var(--sv-card);
    border-radius: var(--sv-radius);
}
/* Восемь карточек: две последние растягиваются на полторы колонки, как в макете */
.sv-incl__grid--n2 .sv-incl__card:nth-last-child(-n+2) { grid-column: span 3; }
.sv-incl__grid--n1 .sv-incl__card:last-child { grid-column: span 6; }
.sv-incl__head { display: flex; align-items: flex-start; gap: 14px; }
.sv-incl__num { flex: 0 0 auto; font-size: 40px; font-weight: 700; line-height: 1; color: var(--sv-accent); }
.sv-incl__title { font-size: 18px; font-weight: 600; line-height: 1.2; color: #fff; text-transform: none; margin: 9px 0 0; }
.sv-incl__text { margin: 0; font-size: 16px; line-height: 1.25; color: rgba(255,255,255,.5); }

/* ---- форма записи: фото слева, панель справа, на всю ширину экрана ---- */
.sv-form {
    display: grid;
    grid-template-columns: minmax(0, 47%) minmax(0, 53%);
    /* min-height 489px снят (ТЗ 30.09.2026): высота — по содержимому панели, фото слева тянется по ней (cover) */
    margin: 0 0 90px;
    background: var(--sv-card-2);
    scroll-margin-top: var(--sv-header, 120px);
}
.sv-form__media { background: var(--sv-dark) center / cover no-repeat; min-height: 300px; }
.sv-form__panel { padding: 40px 50px 40px 40px; background: var(--sv-accent); color: #fff; }
.sv-form__title { margin: 0 0 14px; font-size: 36px; font-weight: 600; line-height: 1.1; color: #fff; text-transform: none; }
.sv-form__text { margin: 0 0 40px; font-size: 16px; line-height: 1.3; color: #fff; }
.sv-form__form { display: block; }
.sv-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sv-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sv-form__field { position: relative; }
.sv-form__input, .sv-select__trigger {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 20px;
    font-size: 16px;
    line-height: 40px;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid transparent;
    border-radius: var(--sv-radius);
    outline: none;
    transition: background-color .2s ease, border-color .2s ease;
}
.sv-form__input::placeholder { color: rgba(255,255,255,.7); opacity: 1; }
.sv-form__input:focus, .sv-select__trigger:focus-visible, .sv-select.is-open .sv-select__trigger { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
/* Ошибка обязательного поля: красная рамка и подпись под полем (ТЗ п.6) */
.sv-form__field.is-error .sv-form__input { border-color: #ff5a5a; background: rgba(255,90,90,.16); }
.sv-form__error { display: none; margin-top: 4px; font-size: 12px; line-height: 1.2; color: #ffd3d3; }
.sv-form__field.is-error .sv-form__error, .sv-form__agree.is-error .sv-form__error--agree { display: block; }

/* мультивыбор услуг */
.sv-select { position: relative; }
.sv-select__trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.sv-select__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-select__arrow { flex: 0 0 auto; width: 0; height: 0; border-style: solid; border-width: 6px 5px 0 5px; border-color: #fff transparent transparent transparent; transition: transform .2s ease; }
.sv-select.is-open .sv-select__arrow { transform: rotate(180deg); }
.sv-select__list {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
    max-height: 264px;
    overflow-y: auto;
    padding: 6px 0;
    background: var(--sv-card-2);
    border: 1px solid var(--sv-line);
    border-radius: var(--sv-radius);
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.sv-select__list[hidden] { display: none; }
.sv-select__option { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 16px; font-size: 14px; line-height: 1.3; color: #fff; cursor: pointer; }
.sv-select__option:hover { background: rgba(255,255,255,.06); }
.sv-select__check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sv-select__box, .sv-form__agree-box {
    flex: 0 0 16px;
    width: 16px; height: 16px;
    border: 1px solid #fff;
    border-radius: 2px;
    position: relative;
    transition: background-color .15s ease;
}
.sv-select__check:checked + .sv-select__box, .sv-form__checkbox:checked + .sv-form__agree-box { background: #fff; }
.sv-select__check:checked + .sv-select__box::after, .sv-form__checkbox:checked + .sv-form__agree-box::after {
    content: '';
    position: absolute; left: 4px; top: 1px;
    width: 5px; height: 9px;
    border: solid var(--sv-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.sv-select__check:focus-visible + .sv-select__box { outline: 2px solid var(--sv-accent-2); }
.sv-form__agree-box { border-color: #fff; }
.sv-form__agree.is-error .sv-form__agree-box { border-color: #ff5a5a; box-shadow: 0 0 0 2px rgba(255,90,90,.35); }

.sv-form__bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-top: 24px; }
.sv-form__agree { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; line-height: 1.2; color: #fff; cursor: pointer; }
.sv-form__checkbox { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sv-form__agree-text { flex: 1 1 200px; }
.sv-form__agree-text a { color: #fff; text-decoration: underline; }
.sv-form__error--agree { flex-basis: 100%; }
.sv-form__submit { width: 100%; min-height: 58px; padding: 0 20px; }
.sv-form .karad-captcha-note { grid-column: 1 / -1; }

/* Блок мессенджеров под формой (.sv-form__contacts / __socials / __social) снят по ТЗ 30.09.2026 */

/* ---- наши проекты: slick со стрелками в заголовке ---- */
.sv-cases__nav { display: flex; gap: 10px; padding-top: 4px; }
.sv-cases__slider { margin: 0 -10px; }
.sv-cases__slider .slick-list { overflow: hidden; }
.sv-cases__slider .slick-track { display: flex; }
.sv-cases__slide { padding: 0 10px; height: auto; display: flex !important; }
.sv-cases__slide .sv-card { flex: 1 1 auto; min-height: 376px; }
/* до инициализации slick — обычная сетка, чтобы не мигало */
.sv-cases__slider:not(.slick-initialized) { display: grid; grid-template-columns: repeat(3, 1fr); }
.sv-cases__slider:not(.slick-initialized) .sv-cases__slide:nth-child(n+4) { display: none !important; }
.sv-cases__all { display: none; }

/* ---- SEO-текст: обычная ширина, единые интервалы, картинка справа ---- */
.sv-seo__text { font-size: 16px; line-height: 1.3; color: var(--sv-muted); }
.sv-seo__text::after { content: ''; display: table; clear: both; }
.sv-seo__text h2, .sv-seo__text h3 { color: #fff; text-transform: none; font-weight: 600; margin: 30px 0 14px; }
.sv-seo__text h2 { font-size: 24px; line-height: 1.1; }
.sv-seo__text h3 { font-size: 18px; line-height: 1.15; }
.sv-seo__text > :first-child, .sv-seo__text > img:first-child + * { margin-top: 0; }
.sv-seo__text p { margin: 0 0 14px; }
.sv-seo__text ul, .sv-seo__text ol { margin: 0 0 14px; padding-left: 22px; }
.sv-seo__text li { margin: 0 0 8px; }
.sv-seo__text ul li::marker { color: var(--sv-accent); }
.sv-seo__text a { color: var(--sv-accent-2); text-decoration: underline; }
.sv-seo__text a:hover { color: #fff; }
.sv-seo__text b, .sv-seo__text strong { color: #fff; font-weight: 600; }
/* картинки из редактора: справа с обтеканием, пропорции сохраняются */
.sv-seo__text img { max-width: 100%; height: auto; border-radius: var(--sv-radius); display: block; }
.sv-seo__text img[style*="float"] { max-width: 50%; margin: 0 0 20px 40px; }

/* ---- FAQ: разметка brands.faq, стили services-detail__faq-* — на всю ширину контента ---- */
.sv-faq .services-detail__faq-list { max-width: none; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.sv-faq .services-detail__faq-item { background: var(--sv-card-2); padding: 20px; border-radius: var(--sv-radius); position: relative; }
.sv-faq .services-detail__faq-question { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; margin: 0; padding-right: 60px; cursor: pointer; outline: none; }
.sv-faq .services-detail__faq-question-text { font-size: 20px; font-weight: 700; line-height: 1.2; color: #fff; }
.sv-faq .services-detail__faq-item--active .services-detail__faq-question { margin: 0 0 20px; }
.sv-faq .services-detail__faq-question-icon {
    position: absolute; right: 20px; top: 20px;
    width: 40px; height: 40px;
    display: flex; justify-content: center; align-items: center;
    background: var(--sv-card);
    border-radius: var(--sv-radius);
    transition: background-color .3s ease;
}
.sv-faq .services-detail__faq-item--active .services-detail__faq-question-icon { background: var(--sv-accent); }
.sv-faq .services-detail__faq-question-icon svg { transition: transform .3s ease; }
.sv-faq .services-detail__faq-item--active .services-detail__faq-question-icon svg path { fill: #0a0a0b; }
.sv-faq .services-detail__faq-answer-content { font-size: 16px; line-height: 1.3; color: var(--sv-muted); }
.sv-faq .services-detail__faq-answer-content p:last-child { margin-bottom: 0; }

/* ---- адаптив ---- */
@media (max-width: 1300px) {
    .sv-hero { min-height: 440px; }
    .sv-hero__title { font-size: 46px; }
    .sv-types__grid { grid-template-columns: repeat(2, 1fr); }
    .sv-price__head, .sv-price__row { grid-template-columns: minmax(0, 1fr) repeat(var(--sv-price-cols, 4), 150px); }
    .sv-form__panel { padding: 30px; }
    .sv-form__title { font-size: 30px; }
    .sv-cases__slider:not(.slick-initialized) { grid-template-columns: repeat(2, 1fr); }
    .sv-cases__slider:not(.slick-initialized) .sv-cases__slide:nth-child(n+3) { display: none !important; }
}
@media (max-width: 1024px) {
    .sv-section { margin-bottom: 60px; }
    .sv-section__title { font-size: 36px; margin-bottom: 30px; }
    .sv-facts { grid-template-columns: 1fr; margin-bottom: 60px; }
    .sv-incl__card { grid-column: span 3; }
    .sv-incl__grid--n2 .sv-incl__card:nth-last-child(-n+2) { grid-column: span 3; }
    .sv-form { grid-template-columns: 1fr; }
    .sv-form__media { min-height: 320px; }
    .sv-price__head, .sv-price__row { grid-template-columns: minmax(0, 1fr) repeat(var(--sv-price-cols, 4), 110px); }
}
@media (max-width: 767px) {
    /* ===== Мобильный макет (Figma «iPhone 13 & 14», 16.09.2026) ===== */
    .sv-section { margin-bottom: 60px; }
    .sv-section__title { font-size: 28px; line-height: 1.1; margin-bottom: 30px; }
    .sv-section__head { margin-bottom: 30px; }
    .sv-section__sub { font-size: 14px; }
    .sv-btn { min-height: 46px; padding: 0 20px; font-size: 16px; }

    /* Первый экран: текст сверху, фото под ним */
    .sv-hero { min-height: 0; flex-direction: column; background-image: none !important; background-color: #040406; margin-bottom: 10px; }
    .sv-hero__shade { display: none; }
    .sv-hero__inner { padding-top: 10px; padding-bottom: 0; z-index: 1; }
    .sv-crumbs { margin-bottom: 30px; }
    .sv-hero__title { font-size: 32px; line-height: 1; margin: 0 0 14px; }
    .sv-hero__text { font-size: 14px; line-height: 1.2; margin: 0 0 20px; }
    .sv-hero__btn { min-width: 0; width: 100%; }
    .sv-hero__photo {
        display: block;
        position: relative;
        height: 230px;
        margin-top: 20px;
        background: center / cover no-repeat;
    }
    /* Кадр из макета: во всю ширину под текстом, верх с затуханием заходит под кнопку (как в макете, ~70px) */
    .sv-hero__art { display: block; position: relative; width: 100%; margin-top: -70px; background: center / cover no-repeat; }
    /* Высокий кадр 390×600 (ТЗ 21.10.2026): фоном под текстом, прижат к низу во всю ширину. Снизу у текста —
       место под сюжет (--sv-art-reserve считает karadArtReserve() по картинке) плюс зазор: кнопка всегда выше
       сюжета, а лишний тёмный верх кадра уходит за край */
    .sv-hero--art-tall .sv-hero__inner { padding-bottom: calc(var(--sv-art-reserve, 45%) + 12px); }
    .sv-hero--art-tall .sv-hero__art { position: absolute; left: 0; right: 0; bottom: 0; margin-top: 0; background-position: center bottom; }

    /* Три карточки: без подложек, иконка сверху, текст 10px по центру */
    .sv-facts { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 60px; }
    .sv-facts__card { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0; min-height: 0; background: none; }
    .sv-facts__icon { width: 32px; height: 32px; flex-basis: 32px; }
    .sv-facts__icon img { width: 25px; height: 25px; }
    .sv-facts__text { font-size: 10px; line-height: 1.3; max-width: none; }

    /* Виды услуги: карточки одна под другой на всю ширину */
    .sv-types__grid { grid-template-columns: 1fr; gap: 10px; }
    .sv-types .sv-card { min-height: 0; }
    .sv-card .sv-card__img { height: 230px; }

    /* Галерея: 370×350, стрелки внутри, миниатюры лентой */
    .sv-gallery__arrow--prev { left: 10px; }
    .sv-gallery__arrow--next { right: 10px; }
    .sv-gallery__thumbs { width: 100%; justify-content: flex-start; }

    /* Прайс: перевёрнутая таблица, скролл только внутри блока */
    .sv-price__desk { display: none; }
    .sv-price__mob { display: block; }
    .sv-price__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--sv-accent) transparent; }
    .sv-price__table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 14px; line-height: 1.3; color: #fff; }
    .sv-price__table th, .sv-price__table td { padding: 14px 10px; text-align: center; vertical-align: middle; white-space: nowrap; font-weight: 400; }
    .sv-price__table thead th { width: 180px; min-width: 180px; padding: 0 10px 10px; border-bottom: 1px solid var(--sv-accent); white-space: normal; }
    .sv-price__table thead th.sv-price__sticky { text-align: left; font-size: 16px; font-weight: 600; color: var(--sv-accent); }
    .sv-price__table tbody th.sv-price__sticky { text-align: left; font-size: 16px; font-weight: 600; color: var(--sv-accent); }
    .sv-price__table .sv-price__sticky { position: sticky; left: 0; z-index: 1; width: 130px; min-width: 130px; padding-left: 10px; background: var(--sv-bg); }
    .sv-price__table tbody tr:nth-child(odd) td, .sv-price__table tbody tr:nth-child(odd) th { background: var(--sv-card-2); }
    .sv-price__table tbody tr:nth-child(even) td, .sv-price__table tbody tr:nth-child(even) th { background: var(--sv-dark); }
    .sv-price__table tbody tr:first-child th, .sv-price__table tbody tr:first-child td { border-top: 10px solid var(--sv-bg); }

    /* Что входит в стоимость: стопкой */
    .sv-incl__grid { grid-template-columns: 1fr; gap: 10px; }
    .sv-incl__card, .sv-incl__grid--n2 .sv-incl__card:nth-last-child(-n+2), .sv-incl__grid--n1 .sv-incl__card:last-child { grid-column: auto; padding: 20px 10px; gap: 14px; }
    .sv-incl__num { font-size: 32px; }
    .sv-incl__title { margin-top: 5px; }

    /* Форма: фото сверху 250px, панель с отступами 20/10 */
    .sv-form { margin-bottom: 60px; }
    .sv-form__media { min-height: 250px; }
    .sv-form__panel { padding: 20px 10px; }
    .sv-form__title { font-size: 24px; margin-bottom: 10px; }
    .sv-form__text { font-size: 14px; margin-bottom: 30px; }
    .sv-form__grid { grid-template-columns: 1fr; }
    .sv-form__bottom { grid-template-columns: 1fr; margin-top: 20px; }
    .sv-form__submit { min-height: 46px; }

    /* Проекты: стрелки справа под заголовком, одна карточка, кнопка «все кейсы» */
    .sv-cases .sv-section__head { flex-direction: column; align-items: stretch; gap: 10px; }
    .sv-cases__nav { justify-content: flex-end; padding-top: 0; }
    .sv-cases__slider:not(.slick-initialized) { grid-template-columns: 1fr; }
    .sv-cases__slider:not(.slick-initialized) .sv-cases__slide:nth-child(n+2) { display: none !important; }
    .sv-cases__slide .sv-card { min-height: 0; }
    .sv-cases__all { display: inline-flex; width: 100%; margin-top: 20px; }

    /* SEO-текст: картинка на всю ширину между абзацами */
    .sv-seo__text h2 { font-size: 20px; margin-top: 30px; }
    /* !important — перебиваем inline-стили картинки из редактора (float, max-width:50%) */
    .sv-seo__text img, .sv-seo__text img[style*="float"] { float: none !important; max-width: 100% !important; width: 100% !important; height: auto !important; margin: 0 0 20px !important; }

    /* FAQ */
    .sv-faq .sv-section__title { font-size: 32px; line-height: 1.1; }
    .sv-faq .services-detail__faq-item { padding: 20px 10px; }
    .sv-faq .services-detail__faq-question { padding-right: 50px; }
    .sv-faq .services-detail__faq-question-text { font-size: 16px; }
    .sv-faq .services-detail__faq-question-icon { right: 10px; }
    .sv-faq .services-detail__faq-answer-content { font-size: 14px; }
}

/* End */


/* Start:/local/templates/karad/components/bitrix/news.detail/cases_v2/style.css?179259227430379*/
/*
 * Детальная страница кейса (шаблон cases_v2, макет Figma, ТЗ 15.09.2026).
 * Префикс kc- (karad case). Карточки «Наши проекты» намеренно оставлены в прежнем
 * дизайне (классы cases__all-*) — их стили продублированы ниже без изменений.
 */
:root {
    --kc-accent: #947a63;
    --kc-accent-2: #c9a86a;
    --kc-card: #15181d;
    --kc-card-2: #1a1e25;
    --kc-line: #2a2e36;
    --kc-text: #fff;
    --kc-muted: #b0b0b0;
    --kc-radius: 4px;
}

/* Только margin-bottom: секция сама является .container, shorthand убил бы его margin: auto */
.kc-section { margin-top: 0; margin-bottom: 80px; }
.kc-section__title {
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--kc-text);
    text-transform: none;
    margin: 0 0 40px;
}
.kc-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.kc-section__head .kc-section__title { margin-bottom: 40px; }

/* ---- кнопки со скошенными углами, как в шапке и подвале сайта ---- */
.kc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 40px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    transition: background-color .25s ease, color .25s ease;
}
.kc-btn:hover, .kc-btn:focus-visible { text-decoration: none; }
.kc-btn--accent { background: var(--kc-accent); color: #fff; }
.kc-btn--accent:hover { background: #a98c74; color: #fff; }
.kc-btn--white { background: #fff; color: #0a0a0b; }
.kc-btn--white:hover { background: #eee; color: #0a0a0b; }
.kc-btn--dark { background: var(--kc-card-2); color: #fff; }
.kc-btn--dark:hover { background: #262b34; color: #fff; }
/* Контурная: clip-path режет и рамку, поэтому «рамка» — это фон кнопки, а внутренность — псевдоэлемент */
.kc-btn--outline { position: relative; isolation: isolate; background: var(--kc-accent); color: #fff; }
.kc-btn--outline::before {
    content: '';
    position: absolute; inset: 1px; z-index: -1;
    background: #0e1116;
    clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
    transition: background-color .25s ease;
}
.kc-btn--outline:hover { color: #fff; }
.kc-btn--outline:hover::before { background: #1a1e25; }
.kc-related__all { display: none; }

/* ---- первый экран ---- */
.kc-hero {
    position: relative;
    /* Шапка сайта абсолютная и разной высоты на разных ширинах (120…208px) —
       точное значение ставит script.js в --kc-header, здесь запасное */
    margin: var(--kc-header, 121px) 0 14px;
    min-height: 500px;
    background: #0e1116 center right / cover no-repeat;
    display: flex;
    align-items: stretch;
}
.kc-hero__shade {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(14,17,22,.92) 0%, rgba(14,17,22,.75) 40%, rgba(14,17,22,.15) 75%, rgba(14,17,22,0) 100%);
}
.kc-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 40px;
}
.kc-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 30px;
}
.kc-crumbs a { color: #fff; text-decoration: none; }
.kc-crumbs a:hover { color: var(--kc-accent-2); }
.kc-crumbs span { color: rgba(255,255,255,.55); }
.kc-crumbs__current { color: rgba(255,255,255,.55) !important; }
.kc-hero__title {
    max-width: 810px;
    font-size: 58px;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    text-transform: none;
    margin: 0 0 20px;
}
.kc-hero__title-accent { color: var(--kc-accent); }
.kc-hero__text {
    max-width: 810px;
    font-size: 16px;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 40px; /* кнопка идёт сразу за описанием — строка фактов убрана по ТЗ 15.09 */
}
.kc-hero__btn { align-self: flex-start; min-width: 308px; min-height: 60px; }
.kc-hero__photo { display: none; }
/* Кадр из макета (ТЗ 24.09.2026): градиент уже в картинке, левее неё — сплошной фон #040406.
   Прижат к правому краю и тянется по высоте экрана; на узких ПК лишнее слева уходит за край. */
/* Кадр выводится фоном секции (inline background-image): A/B-замер 25.09.2026 — <img> давал LCP хуже */
.kc-hero--art { background-color: #040406; background-position: right top; background-size: auto 100%; background-repeat: no-repeat; overflow: hidden; }
.kc-hero--art .kc-hero__shade { display: none; }
.kc-hero--art .kc-hero__inner { z-index: 1; }
.kc-hero__art { display: none; }
/* Кейс с высоким мобильным кадром (Mazda Miata, ТЗ 21.10.2026): машина в кадре 1460×500 занимает
   x 830–1320, y 180–470. На узких ПК текст лёг бы на неё, поэтому:
   1280–1599 — кадр сдвинут вправо за счёт пустого гаража справа;
   768–1279 — текст на тёмном поле, кадр полосой под ним, верх полосы растушёван. */
@media (min-width: 1280px) and (max-width: 1599px) {
    .kc-hero--art-tall { background-position: right -120px top; }
}
@media (min-width: 768px) and (max-width: 1279px) {
    .kc-hero--art-tall { --kc-band: clamp(300px, 40vw, 470px); min-height: 0; background-size: auto var(--kc-band); background-position: right bottom; }
    .kc-hero--art-tall::before { content: ''; position: absolute; left: 0; right: 0; bottom: calc(var(--kc-band) - 100px); height: 100px; background: linear-gradient(#040406, rgba(4, 4, 6, 0)); pointer-events: none; }
    .kc-hero--art-tall .kc-hero__inner { justify-content: flex-start; padding-bottom: calc(var(--kc-band) * .66 + 16px); }
}

/* ---- автомобиль / услуга / срок ---- */
.kc-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}
.kc-info__card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--kc-card);
    border-radius: var(--kc-radius);
}
.kc-info__icon {
    flex: 0 0 40px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--kc-card-2);
    border-radius: var(--kc-radius);
}
.kc-info__icon img { width: 32px; height: 32px; display: block; }
.kc-info__label { font-size: 20px; font-weight: 700; line-height: 1.1; color: var(--kc-accent); }
.kc-info__value { font-size: 16px; line-height: 1.25; color: #fff; margin-top: 4px; }

/* ---- галерея ---- */
/* По макету 16.09.2026 галерея без подложки на всю ширину — просто контейнер 900×450 по центру */
.kc-gallery { padding: 0; margin: 0 0 80px; background: none; }
.kc-gallery__stage {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 900px) 40px;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
/* ТЗ 30.09.2026: у окна фото нет фиксированной высоты и пропорции — оно принимает размер текущего кадра:
   кадр целиком, без обрезки, растягивания и тёмных полей. Ширина окна — наименьшее из трёх: колонка макета
   (100%), «предел высоты × пропорция кадра» (вертикальный кадр помещается в экран) и натуральная ширина файла
   (маленькие фото не растягиваются). Пропорцию --kc-r и ширину --kc-w ставят PHP (первый кадр) и script.js
   (при листании) по размерам файла из базы — окно принимает форму кадра ещё до его загрузки.
   Без переменных (видео) — на всю колонку, высоту даёт само видео.
   Селекторы с родителем: в bundle.css есть img:not([draggable]) { height: auto }. */
.kc-gallery__main {
    --kc-gal-max: min(80vh, 760px);
    position: relative;
    justify-self: center;
    width: min(100%, calc(var(--kc-gal-max) * var(--kc-r, 100)), var(--kc-w, 100000px));
    margin: 0 auto;
    border-radius: var(--kc-radius);
    overflow: hidden;
}
.kc-gallery__main .kc-gallery__media {
    display: block;
    width: 100%; height: auto; max-width: none;
}
.kc-gallery__media--zoom { cursor: zoom-in; }

/* Полноэкранный просмотр — Fancybox 3 сайта (стили подключены в header.php).
   Поднимаем над виджетом чата (у того 2147483646), иначе он торчит поверх фото */
.fancybox-container { z-index: 2147483647; }
/* Вид стрелок — общий класс .k-arrow (assets/css/k-arrow.css, ТЗ 29.09.2026 п.6); здесь только положение */
.kc-gallery__thumbs {
    position: relative; /* от неё считаются offsetLeft/offsetTop миниатюр в script.js */
    display: flex;
    gap: 10px;
    max-width: 900px;
    margin: 20px auto 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--kc-accent) transparent;
    padding-bottom: 4px;
}
.kc-gallery__thumb {
    position: relative;
    flex: 0 0 104px;
    width: 104px; height: 80px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--kc-radius);
    background: #0e1116;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    opacity: .7;
    transition: opacity .2s ease, border-color .2s ease;
}
.kc-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-gallery__thumb:hover { opacity: 1; }
.kc-gallery__thumb.is-active { opacity: 1; border-color: var(--kc-accent); }
.kc-gallery__play {
    position: absolute; left: 50%; top: 50%; z-index: 1;
    width: 30px; height: 30px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--kc-accent);
}
.kc-gallery__play::after {
    content: '';
    position: absolute; left: 12px; top: 8px;
    border-style: solid;
    border-width: 7px 0 7px 10px;
    border-color: transparent transparent transparent #fff;
}

/* ---- галерея по макету 24.09.2026 (ПК): фото 440×500 по центру, стрелки в 20px от него,
   справа колонка миниатюр 80×92 через 10px (видно пять, остальные прокручиваются) ---- */
@media (min-width: 992px) {
    .kc-gallery .container { position: relative; }
    .kc-gallery__stage { grid-template-columns: 40px 440px 40px; }
    .kc-gallery__thumbs {
        position: absolute; top: 0; left: calc(50% + 320px);
        flex-direction: column;
        /* высота ленты = высоте текущего кадра (JS ставит --kc-gal-h), не больше пяти миниатюр */
        width: 80px; height: var(--kc-gal-h, 500px); max-height: 500px; max-width: none;
        margin: 0; padding: 0;
        overflow-x: hidden; overflow-y: auto;
        scroll-snap-type: y proximity;
        scrollbar-width: none;
    }
    .kc-gallery__thumbs::-webkit-scrollbar { display: none; }
    .kc-gallery__thumb { flex: 0 0 92px; width: 80px; height: 92px; opacity: 1; }
}
/* Миниатюры по макету 24.09.2026 (ПК и телефон): у видео подложка и значок 24px,
   у активной — рамка и затемнение */
.kc-gallery__thumb[data-type="video"]::before,
.kc-gallery__thumb.is-active::after { content: ''; position: absolute; inset: 0; }
.kc-gallery__thumb[data-type="video"]::before { background: rgba(21,24,29,.5); }
.kc-gallery__thumb.is-active::after { background: rgba(18,18,18,.6); }
.kc-gallery__play { width: 24px; height: 24px; }
.kc-gallery__play::after { left: 9px; top: 7.5px; border-width: 4.5px 0 4.5px 7px; }

/* ---- процесс работы ---- */
.kc-process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.kc-process__card {
    display: flex;
    flex-direction: column;
    padding: 20px 10px 10px;
    background: var(--kc-card);
    border-radius: var(--kc-radius);
}
.kc-process__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0 10px;
    min-height: 44px;
}
.kc-process__num {
    flex: 0 0 auto;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--kc-accent);
}
.kc-process__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-transform: none;
    margin: 6px 0 0;
}
.kc-process__text {
    flex: 1 1 auto;
    padding: 0 10px;
    margin: 14px 0 20px;
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
}
.kc-process__img {
    width: 100%;
    aspect-ratio: 312 / 200;
    object-fit: cover;
    border-radius: var(--kc-radius);
    display: block;
}

/* ---- стоимость ---- */
.kc-price__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 20px;
    align-items: start; /* правый блок по своему содержимому, не тянется до низа таблицы (16.09 вернули как было — просьба заказчика) */
}
.kc-price__table {
    padding: 40px;
    background: var(--kc-card-2);
    border-radius: var(--kc-radius);
}
.kc-price__row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--kc-line);
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
}
.kc-price__row span:last-child { white-space: nowrap; font-weight: 600; }
.kc-price__row--head {
    padding-top: 0;
    border-bottom: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--kc-accent);
}
.kc-price__row--head span:last-child { font-weight: 600; }
.kc-price__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--kc-accent);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.kc-price__sum { font-size: 24px; color: var(--kc-accent); }
.kc-price__note { margin: 14px 0 0; font-size: 12px; line-height: 1.4; color: var(--kc-muted); }
.kc-price__cta {
    display: flex;
    flex-direction: column;
    padding: 40px 20px 20px;
    background: var(--kc-accent);
    border-radius: var(--kc-radius);
    color: #fff;
}
.kc-price__cta-title { font-size: 24px; font-weight: 600; line-height: 1.25; margin: 0 0 14px; }
.kc-price__cta-text { font-size: 14px; line-height: 1.3; margin: 0 0 30px; }
.kc-price__cta-btns { display: flex; flex-direction: column; gap: 10px; }
.kc-price__cta-btns .kc-btn { width: 100%; }

/* ---- наши проекты: стрелки в заголовке + slick ---- */
.kc-related { overflow: visible; }
.kc-related__nav { display: flex; gap: 10px; padding-top: 4px; }
.kc-related .cases__all-slider { margin: 0 -10px; }
.kc-related .cases__all-slider .slick-list { overflow: hidden; }
.kc-related .cases__all-slider .slick-track { display: flex; }
/* slick этой версии не оборачивает слайды — .slick-slide это сам .cases__all-item */
.kc-related .cases__all-slider .slick-slide { height: auto; }
.kc-related .cases__all-item { display: flex !important; flex-direction: column; margin: 0 10px; background: var(--kc-card-2); border-radius: var(--kc-radius); overflow: hidden; }
.kc-related .cases__all-item .cases__all-media { flex: 0 0 235px; }
.kc-related .cases__all-content { flex: 1 1 auto; display: flex; flex-direction: column; }
.kc-related .cases__all-price-box { margin-top: auto; }
/* Before deferred Slick initialization: the same card widths, gaps and tallest-card height.
   Keep every original in one clipped flex row, matching the initialized flex track. */
.kc-related .cases__all-slider:not(.slick-initialized) { display: flex; overflow: hidden; }
.kc-related .cases__all-slider:not(.slick-initialized) .cases__all-item { flex: 0 0 calc(100% / 3 - 20px); min-width: 0; }
@media (max-width: 1299.98px) {
    .kc-related .cases__all-slider:not(.slick-initialized) .cases__all-item { flex-basis: calc(50% - 20px); }
}
@media (max-width: 767.98px) {
    .kc-related .cases__all-slider:not(.slick-initialized) .cases__all-item { flex-basis: calc(100% - 20px); }
}

/* прежний дизайн карточек проектов */
.cases__all-media { height: 235px; overflow: hidden; position: relative; }
.cases__all-video-container { position: relative; cursor: pointer; background: #000; width: 100%; height: 100%; }
.cases__all-video-thumb, .cases__all-image { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.cases__all-image-link { display: block; width: 100%; height: 100%; }
.cases__all-video-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: transparent; border: none; cursor: pointer; z-index: 10; padding: 0;
    display: flex; align-items: center; justify-content: center; transition: transform .3s ease;
}
.cases__all-video-play:hover { transform: translate(-50%, -50%) scale(1.1); }
.cases__all-video-play svg { width: 48px; height: 48px; display: block; }
.cases__all-video-container video { width: 100%; height: 100%; position: absolute; top: 0; left: 0; border: none; object-fit: cover; }
.cases__all-badge { position: absolute; top: 10px; padding: 4px 10px; color: #fff; font-size: 10px; font-weight: 600; border-radius: 4px; z-index: 5; }
.cases__all-badge--work { left: 20px; background-color: #3c72ca; }
.cases__all-badge--work-ppf { background-color: #3c72ca; }
.cases__all-badge--work-vinil { background-color: #7a3709; }
.cases__all-badge--work-polirovka { background-color: #198da1; }
.cases__all-badge--work-salon { background-color: #048233; }
.cases__all-badge--work-default { background-color: var(--kc-accent-2); }
.cases__all-badge--material { right: 20px; background-color: var(--kc-card); }
.cases__all-badge-value { line-height: normal; }
.cases__all-content { padding: 20px; }
/* Лента выравнивает карточки по самой высокой — режем заголовок и анонс, иначе пустоты */
.cases__all-title-item { margin: 0 0 10px; font-size: 18px; min-height: 40px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cases__all-title-link { text-decoration: none; color: #fff; font-size: 18px; font-weight: 600; line-height: 120%; text-transform: none; }
.cases__all-title-link:hover { color: var(--kc-accent-2); }
/* Пилюли «гарантия / срок» под названием карточки убраны 16.09 по просьбе заказчика — разметка их больше не выводит. */
.cases__all-info { display: none; }
.cases__all-info-item { padding: 4px 16px; background-color: var(--kc-line); border-radius: 4px; line-height: 100%; }
.cases__all-info-item .cases__all-info-value { color: var(--kc-accent-2); font-size: 14px; font-weight: 400; }
.cases__all-preview-text { margin: 0 0 20px; font-size: 14px; color: var(--kc-muted); line-height: 120%; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cases__all-price-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cases__all-info-item--price .cases__all-info-value { color: #fff; font-weight: 600; font-size: 18px; line-height: 120%; }
.cases__all-button { color: var(--kc-accent); font-size: 16px; font-weight: 500; line-height: 100%; text-decoration: none; white-space: nowrap; transition: color .3s ease; }
.cases__all-button:hover { color: var(--kc-accent-2); }

/* ---- наши услуги ---- */
.kc-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.kc-services__card {
    display: flex;
    flex-direction: column;
    background: var(--kc-card-2);
    border-radius: var(--kc-radius);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}
.kc-services__card:hover { color: #fff; text-decoration: none; transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.kc-services__img { width: 100%; aspect-ratio: 330 / 230; object-fit: cover; display: block; }
.kc-services__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 20px; }
.kc-services__title { font-size: 18px; font-weight: 600; line-height: 1.2; text-transform: none; color: #fff; margin: 0 0 10px; }
.kc-services__text { flex: 1 1 auto; font-size: 14px; line-height: 1.25; color: var(--kc-muted); margin: 0 0 20px; }
.kc-services__more { font-size: 16px; font-weight: 500; color: var(--kc-accent); }
.kc-services__card:hover .kc-services__more { color: var(--kc-accent-2); }

/* ---- модальная форма записи (в стиле «Письма руководителю») ---- */
.kc-modal .modal-content { background: #1a1a1a; border: 1px solid var(--kc-accent); border-radius: var(--kc-radius); color: #fff; }
.kc-modal .modal-header { border-bottom: 1px solid var(--kc-accent); }
.kc-modal .modal-footer { border-top: 1px solid var(--kc-accent); }
.kc-modal .modal-title { color: #fff; font-size: 20px; text-transform: none; }
.kc-modal__text { font-size: 14px; color: var(--kc-muted); margin: 0 0 16px; }
.kc-modal__field { margin-bottom: 12px; }
.kc-modal__field input {
    width: 100%;
    padding: 13px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    background: #0e1116;
    border: 1px solid var(--kc-line);
    border-radius: var(--kc-radius);
}
.kc-modal__field input:focus { outline: none; border-color: var(--kc-accent); }
.kc-modal__agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: #ddd; margin: 4px 0 0; cursor: pointer; }
.kc-modal__agree input { margin-top: 3px; accent-color: var(--kc-accent); }
.kc-modal__agree a { color: #fff; text-decoration: underline; }
.kc-modal__submit { width: 100%; }
.kc-modal__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- адаптив ---- */
@media (max-width: 1300px) {
    .kc-hero { min-height: 440px; }
    .kc-hero__title { font-size: 46px; }
    .kc-process__grid { grid-template-columns: repeat(2, 1fr); }
    .kc-price__grid { grid-template-columns: minmax(0, 1fr) 380px; }
    .kc-services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .kc-section { margin-bottom: 60px; }
    .kc-section__title { font-size: 36px; margin-bottom: 30px; }
    .kc-info { grid-template-columns: 1fr; }
    .kc-price__grid { grid-template-columns: 1fr; }
    .kc-price__table { padding: 24px; }
}
/* До 991px — прежняя галерея (с 992px работает макет 24.09.2026) */
@media (max-width: 991px) {
    .kc-gallery__stage { grid-template-columns: minmax(0, 1fr); }
    .kc-gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
    .kc-gallery__arrow--prev { left: 10px; }
    .kc-gallery__arrow--next { right: 10px; }
}
@media (max-width: 767px) {
    /* ===== Мобильный макет (Figma «iPhone 13 & 14», 16.09.2026) ===== */
    .kc-section { margin-bottom: 60px; }
    .kc-section__title { font-size: 28px; line-height: 1.15; margin-bottom: 30px; }

    /* Первый экран: текст сверху, фото под ним */
    .kc-hero { min-height: 0; flex-direction: column; background-image: none !important; background-color: #0e1116; margin-bottom: 30px; }
    .kc-hero__shade { display: none; }
    .kc-hero__inner { padding-top: 10px; padding-bottom: 0; justify-content: flex-start; z-index: 1; }
    .kc-crumbs { font-size: 14px; gap: 8px; margin-bottom: 30px; }
    .kc-hero__title { font-size: 32px; line-height: 1; margin: 0 0 14px; }
    .kc-hero__text { font-size: 14px; line-height: 1.2; margin: 0 0 20px; }
    .kc-hero__btn { min-width: 0; width: 100%; min-height: 46px; font-size: 16px; }
    .kc-hero__photo {
        display: block;
        position: relative;
        height: 276px;
        margin-top: -46px; /* кнопка лежит на верхнем крае фото, как в макете */
        background: center / cover no-repeat;
    }
    .kc-hero__photo::before {
        content: '';
        position: absolute; inset: 0;
        background: linear-gradient(180deg, #0e1116 0%, rgba(14,17,22,.85) 25%, rgba(14,17,22,0) 100%);
    }
    /* Кадр из макета: во всю ширину под текстом, верх с затуханием заходит под кнопку (как в макете, ~70px) */
    .kc-hero--art { background-color: #040406; }
    .kc-hero__art { display: block; position: relative; width: 100%; margin-top: -70px; background: center / cover no-repeat; }
    /* Высокий кадр (390×600, ТЗ 21.10.2026): фоном под текстом, прижат к низу во всю ширину.
       Снизу у текста резерв под сюжет (--kc-art-reserve считает karadArtReserve() по картинке; запасное — 40%)
       плюс зазор, поэтому кнопка всегда выше машины; лишний тёмный верх кадра уходит за край. */
    .kc-hero--art-tall .kc-hero__inner { padding-bottom: calc(var(--kc-art-reserve, 40%) + 12px); }
    .kc-hero--art-tall .kc-hero__art { position: absolute; left: 0; right: 0; bottom: 0; margin-top: 0; background-position: center bottom; }

    /* Плашки: три в ряд, без подложек, иконка сверху, только значения */
    .kc-info { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 40px; }
    .kc-info__card { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0; background: none; }
    .kc-info__icon { width: 32px; height: 32px; flex-basis: 32px; background: rgba(255,255,255,.1); }
    .kc-info__icon img { width: 25px; height: 25px; }
    .kc-info__label { display: none; }
    .kc-info__value { font-size: 10px; line-height: 1.3; margin: 0; }

    /* Галерея по мобильному макету 24.09.2026: фото 370×500, стрелки внутри в 10px от краёв,
       под фото лента миниатюр 104×80 через 10px, уходит за правый край экрана */
    .kc-gallery { margin-bottom: 60px; }
    .kc-gallery__stage { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .kc-gallery__arrow {
        display: inline-flex;
        position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    }
    .kc-gallery__arrow--prev { left: 10px; }
    .kc-gallery__arrow--next { right: 10px; }
    .kc-gallery__thumbs { margin-top: 10px; margin-right: calc((100vw - 100%) / -2); scrollbar-width: none; }
    .kc-gallery__thumbs::-webkit-scrollbar { display: none; }
    .kc-gallery__thumb { flex-basis: 104px; width: 104px; height: 80px; opacity: 1; }

    /* Процесс: карточки стопкой, без фото */
    .kc-process__grid { grid-template-columns: 1fr; }
    .kc-process__card { padding: 14px 10px; }
    .kc-process__head { padding: 0; min-height: 0; }
    .kc-process__num { font-size: 32px; }
    .kc-process__title { margin-top: 5px; }
    .kc-process__text { padding: 0; margin: 14px 0 0; font-size: 16px; line-height: 1.25; color: rgba(255,255,255,.5); }
    .kc-process__img { display: none; }

    /* Стоимость */
    .kc-price__grid { grid-template-columns: 1fr; gap: 10px; }
    .kc-price__table { padding: 20px 10px; }
    .kc-price__row { gap: 16px; padding: 10px 0; border-color: rgba(255,255,255,.1); }
    .kc-price__row span:first-child { flex: 1 1 auto; }
    .kc-price__row span:last-child { flex: 0 0 auto; white-space: nowrap; font-size: 16px; text-align: right; }
    .kc-price__row--head { padding-top: 0; }
    .kc-price__total { margin-top: 20px; padding-top: 20px; border-top-width: 2px; }
    .kc-price__cta { padding: 20px 10px; }
    .kc-price__cta-title { font-size: 20px; }
    .kc-price__cta-text { margin-bottom: 30px; }
    .kc-price__cta-btns .kc-btn { min-height: 46px; font-size: 16px; }

    /* Наши проекты: стрелки справа под заголовком, одна карточка, кнопка «все кейсы» */
    .kc-section__head { flex-direction: column; align-items: stretch; gap: 10px; }
    .kc-section__head .kc-section__title { margin-bottom: 0; }
    .kc-related__nav { order: 2; justify-content: flex-end; padding-top: 0; margin-bottom: 10px; }
    .kc-related .cases__all-item .cases__all-media { flex-basis: 230px; }
    .cases__all-media { height: 230px; }
    .cases__all-content { padding: 14px 10px 20px; }
    .kc-related__all { display: inline-flex; width: 100%; min-height: 46px; margin-top: 20px; font-size: 16px; }

    /* Наши услуги: стопкой */
    .kc-services__grid { grid-template-columns: 1fr; gap: 10px; }
    .kc-services__img { aspect-ratio: 370 / 230; }
    .kc-services__body { padding: 14px 10px 20px; }

    .kc-btn { padding: 0 20px; font-size: 16px; }
}

/* End */
/* /local/templates/karad/components/bitrix/news.detail/usluga_v2/style.css?179258920631688 */
/* /local/templates/karad/components/bitrix/news.detail/cases_v2/style.css?179259227430379 */
