/*
 * Новая главная по концепту (пока для администраторов).
 * Разметка - local/templates/desktop/include/zn-home2.php. Все классы с префиксом znh-,
 * чтобы не столкнуться с bootstrap и старыми стилями шаблона.
 */
.znh {
    --znh-red: #d32f2f;
    --znh-red-h: #b71c1c;
    --znh-tint: #ffebee;
    --znh-dark: #1e242b;
    --znh-text: #2b3038;
    --znh-muted: #5b616a;
    --znh-line: #e6e8eb;
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding: 8px 0 72px;
    color: var(--znh-text);
    font-size: 16px;
    line-height: 1.6;
}
.znh *,
.znh *::before,
.znh *::after { box-sizing: border-box; }
.znh h1, .znh h2, .znh h3, .znh p, .znh ul { margin: 0; }
.znh ul { padding: 0; list-style: none; }
/* в стилях шаблона голый button получает позицию и размеры кнопок галереи - сбрасываем */
.znh button { position: static; width: auto; height: auto; min-width: 0; margin: 0; opacity: 1; }

/* кнопки */
.znh .znh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: var(--znh-red);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.znh .znh-btn:hover,
.znh .znh-btn:focus-visible { background: var(--znh-red-h); color: #fff; text-decoration: none; }
.znh .znh-btn--ghost { background: transparent; border: 1.5px solid #4a525c; }
.znh .znh-btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #6b737d; }
.znh .znh-btn--light { min-height: 46px; padding: 0 20px; background: #fff; border: 1.5px solid #dfe2e6; color: var(--znh-dark); font-size: 15px; white-space: nowrap; }
.znh .znh-btn--light:hover { background: #fff; border-color: var(--znh-red); color: var(--znh-red-h); }
.znh .znh-btn--block { width: 100%; min-height: 48px; font-size: 15px; }

/* заголовки разделов */
.znh-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; max-width: 820px; }
.znh-head--row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; }
.znh-head--row > div { display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.znh .znh-title { font-size: 30px; line-height: 1.2; font-weight: 800; color: var(--znh-dark); letter-spacing: -0.5px; }
.znh .znh-lead { font-size: 16px; color: var(--znh-muted); }
.znh-box { background: #fff; border-radius: 20px; padding: 44px 48px; }

/* ── главный экран ── */
.znh-hero {
    background: var(--znh-dark);
    border-radius: 20px;
    color: #fff;
    padding: 56px;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
}
.znh-hero__main { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.znh .znh-hero__title { font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -1px; color: #fff; }
.znh .znh-hero__title span { color: #ff8a80; }
.znh .znh-hero__lead { font-size: 18px; color: #c9ced6; max-width: 600px; }
.znh .znh-hero__bullets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; font-size: 15px; color: #e8ebef; margin-top: 4px; }
.znh .znh-hero__bullets li { display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.znh .znh-hero__bullets svg { flex: 0 0 auto; color: #ff6b6b; }
.znh-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

/* форма экспресс-расчета */
.znh-form { background: #fff; color: var(--znh-text); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.znh .znh-form__title { font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--znh-dark); }
.znh .znh-form__lead { font-size: 14px; line-height: 1.5; color: var(--znh-muted); }
.znh .znh-form__field { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0; font-size: 13px; font-weight: 700; color: var(--znh-dark); }
.znh .znh-form__field select,
.znh .znh-form__field input {
    width: 100%;
    height: 44px;
    border: 1.5px solid #dfe2e6;
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
    color: var(--znh-text);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
}
.znh .znh-form__field select:focus,
/* обводка вокруг рамки - как у всех полей сайта (zn-focus.css, спокойная серая в 1 px) */
.znh .znh-form__field input:focus { outline: 0; border-color: var(--znh-red); box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.znh .znh-form__field input.is-error { border-color: var(--znh-red); }

/* свой выпадающий список вместо системного (zn-home2.js); select остается скрытым и хранит значение */
.znh-select { position: relative; }
.znh-select.is-ready select { display: none; }
.znh .znh-select__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #dfe2e6;
    border-radius: 10px;
    background: #fff;
    color: var(--znh-text);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.znh .znh-select__btn:hover { border-color: #c5cad1; }
.znh .znh-select__btn:focus-visible,
.znh-select.is-open .znh-select__btn { outline: 0; border-color: var(--znh-red); box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.znh-select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.znh-select__arrow { flex: 0 0 auto; color: var(--znh-muted); transition: transform .2s ease; }
.znh-select.is-open .znh-select__arrow { transform: rotate(180deg); color: var(--znh-red); }
.znh .znh-select__list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1.5px solid #dfe2e6;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(30, 36, 43, .14);
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.znh-select.is-open .znh-select__list { opacity: 1; visibility: visible; transform: none; transition: opacity .15s ease, transform .15s ease; }
.znh .znh-select__opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--znh-text);
    cursor: pointer;
}
.znh .znh-select__opt.is-active { background: #f4f5f7; }
.znh .znh-select__opt[aria-selected="true"] { color: var(--znh-red); font-weight: 700; }
.znh-select__opt svg { flex: 0 0 auto; visibility: hidden; }
.znh-select__opt[aria-selected="true"] svg { visibility: visible; }
.znh .znh-form__msg { font-size: 14px; font-weight: 600; line-height: 1.45; }
.znh .znh-form__msg.is-ok { color: #0e7a54; }
.znh .znh-form__msg.is-error { color: var(--znh-red-h); }
.znh .znh-form__check { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--znh-muted); cursor: pointer; }
.znh .znh-form__check input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--znh-red); cursor: pointer; }
.znh .znh-form__check span { flex: 1 1 auto; min-width: 0; }
.znh .znh-form__check a { color: var(--znh-red); text-decoration: none; }
.znh .znh-form__check a:hover { text-decoration: underline; }
.znh .znh-form__check.is-error { color: var(--znh-red-h); }
.znh .znh-form__check.is-error input { outline: 1.5px solid var(--znh-red); outline-offset: 1px; border-radius: 3px; }

/* текст согласия на обработку ПД - по ссылке "согласие" в форме */
.znh-policy { width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 28px 28px 24px; border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(30, 36, 43, .25); color: #2b3038; font-family: inherit; }
.znh-policy::backdrop { background: rgba(30, 36, 43, .55); }
/* старый normalize шаблона ставит dialog { display: block } - закрытое окно прячем явно */
.znh-policy:not([open]) { display: none; }
.znh-policy[open] { display: flex; flex-direction: column; gap: 14px; }
.znh-policy .znh-policy__title { margin: 0; padding-right: 36px; font-size: 20px; line-height: 1.3; font-weight: 800; color: #1e242b; }
.znh-policy__text { overflow-y: auto; max-height: 60vh; padding-right: 6px; font-size: 13px; line-height: 1.55; color: #444; }
.znh-policy__text p { margin: 0 0 8px; }
.znh-policy .znh-policy__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #6b717a; cursor: pointer; }
.znh-policy .znh-policy__close:hover { background: #f4f5f7; color: #1e242b; }
.znh-form.is-sent .znh-form__field,
.znh-form.is-sent .znh-form__check,
.znh-form.is-sent .znh-form__row,
.znh-form.is-sent .znh-file,
.znh-form.is-sent button { display: none; }

/* ссылка на подробную заявку под кнопкой */
.znh .znh-form__more { align-self: center; padding: 0; border: 0; border-bottom: 1px dashed currentColor; border-radius: 0; background: none; color: var(--znh-red); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.znh .znh-form__more:hover { color: var(--znh-red-h); }

/* окно подробной заявки: та же форма без своей подложки */
.znh-calc { width: min(560px, calc(100% - 32px)); overflow-y: auto; }
.znh-calc .znh-form--detail { padding: 0; border-radius: 0; gap: 13px; }
.znh-form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.znh .znh-form__field textarea { width: 100%; min-height: 76px; padding: 10px 14px; border: 1.5px solid #dfe2e6; border-radius: 10px; background: #fff; color: var(--znh-text); font: inherit; font-size: 15px; font-weight: 500; line-height: 1.45; resize: vertical; }
.znh .znh-form__field textarea:focus { outline: 0; border-color: var(--znh-red); box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.znh-file { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 12px; border: 1.5px dashed #c9ced6; border-radius: 10px; color: var(--znh-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.znh-file:hover { border-color: var(--znh-red); background: #fff8f8; }
.znh-file:focus-within { border-color: var(--znh-red); }
.znh-file svg { flex: 0 0 auto; }
.znh-file__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.znh-file__hint { flex: 0 0 auto; font-size: 12px; font-weight: 500; color: #8a9099; }
.znh-file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.znh .znh-file__clear { display: none; flex: 0 0 auto; width: 28px; height: 28px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px; background: none; color: #6b717a; cursor: pointer; }
.znh .znh-file__clear:hover { background: #f4f5f7; color: var(--znh-dark); }
.znh-file.has-file { border-style: solid; border-color: #b9dcc9; background: #f3faf6; color: var(--znh-dark); }
.znh-file.has-file .znh-file__hint { display: none; }
.znh .znh-file.has-file .znh-file__clear { display: flex; }
.znh-file.is-error { border-color: var(--znh-red); }

/* полоса доверия */
.znh-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: -36px; }
.znh-trust__item { background: #fff; border-radius: 14px; padding: 22px 24px; display: flex; align-items: center; gap: 16px; }
.znh-trust__ico { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--znh-tint); color: var(--znh-red); display: flex; align-items: center; justify-content: center; }
.znh-trust__text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; color: var(--znh-muted); }
.znh-trust__text b { font-size: 17px; font-weight: 800; color: var(--znh-dark); }

/* каталог */
.znh-hub { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.znh-card { background: #fff; border: 1px solid #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.znh-card:hover { box-shadow: 0 12px 32px rgba(30, 36, 43, .1); transform: translateY(-3px); }
.znh-card--hit { border: 2px solid var(--znh-red); }
.znh-card__top { padding: 16px 22px; border-bottom: 1px solid #eef0f3; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.znh-card__tag { font-size: 11px; font-weight: 800; line-height: 1.3; text-transform: uppercase; letter-spacing: .5px; padding: 4px 8px; border-radius: 5px; background: #f1f3f5; color: var(--znh-dark); }
.znh-card--hit .znh-card__tag { background: var(--znh-tint); color: var(--znh-red-h); }
.znh-card__kind { font-size: 12px; color: #6b717a; white-space: nowrap; }
.znh-card__body { padding: 22px; display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto; }
.znh .znh-card__name { font-size: 21px; line-height: 1.25; font-weight: 800; color: var(--znh-dark); }
.znh .znh-card__features { display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.znh .znh-card__features li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.45; color: var(--znh-muted); }
.znh .znh-card__features li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--znh-red); }
.znh-card__price { border-top: 1px dashed #dfe2e6; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.znh-card__price span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #6b717a; }
.znh-card__price b { font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--znh-dark); }

/* таблица профилей */
.znh-table { overflow-x: auto; border: 1px solid var(--znh-line); border-radius: 14px; }
.znh-table table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.znh-table th { background: #f6f7f9; padding: 16px 20px; text-align: left; font-size: 13px; font-weight: 800; color: var(--znh-dark); vertical-align: bottom; }
.znh-table td { padding: 16px 20px; border-top: 1px solid #eef0f3; vertical-align: top; }
.znh-table td b { color: var(--znh-dark); white-space: nowrap; }
.znh-table td:last-child { color: var(--znh-muted); }
.znh-table tbody tr:hover td { background: #fafbfc; }

/* наши работы */
.znh-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.znh-case { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.znh-case__photo { position: relative; height: 220px; background: #dde1e6; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: 14px; color: var(--znh-muted); }
.znh-case__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.znh-case__place { position: absolute; top: 14px; left: 14px; background: rgba(30, 36, 43, .85); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3; padding: 5px 10px; border-radius: 6px; }
.znh-case__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.znh .znh-case__title { font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--znh-dark); }
.znh .znh-case__title a { color: inherit; text-decoration: none; }
.znh .znh-case__title a:hover { color: var(--znh-red); }
/* анонс из "Готовых проектов" бывает в абзац - на карточке три строки */
.znh .znh-case__meta { font-size: 14px; line-height: 1.5; color: var(--znh-muted); flex: 1 1 auto; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.znh-case__price { border-top: 1px solid #eef0f3; padding-top: 14px; margin-top: 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: #6b717a; }
.znh-case__price b { font-size: 22px; font-weight: 800; color: var(--znh-red); white-space: nowrap; }

/* отзывы: лента всех фото и видео, под ней карусель отзывов в одну строку
   (вид home компонента zn:reviews; попап - в стилях компонента) */
.znh-rev__strip { position: relative; margin-bottom: 24px; }
.znh-rev__media { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.znh-rev__media::-webkit-scrollbar { display: none; }
.znh-rev .zn-fb-media { position: relative; flex: 0 0 auto; width: 132px; height: 132px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #e9ecef; cursor: pointer; }
.znh-rev .zn-fb-media img,
.znh-rev .zn-fb-media__v { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.znh-rev .zn-fb-media__v { background: #000; pointer-events: none; }
.znh-rev .zn-fb-media:hover img,
.znh-rev .zn-fb-media:hover .zn-fb-media__v { transform: scale(1.04); }
.znh-rev .zn-fb-media__play { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(0, 0, 0, .5); pointer-events: none; }
.znh-rev .zn-fb-media__play::after { content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.znh-rev .zn-fb-media__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(30, 36, 43, .55); color: #fff; font-size: 15px; font-weight: 800; }
.znh .znh-rev__snav { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--znh-dark); box-shadow: 0 4px 14px rgba(30, 36, 43, .18); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.znh .znh-rev__snav[hidden] { display: none; }
.znh .znh-rev__snav:hover { color: var(--znh-red-h); }
.znh-rev__snav--prev { left: -12px; }
.znh-rev__snav--next { right: -12px; }

.znh-rev__track { margin: -14px -20px -30px; padding: 14px 20px 30px; }
.znh-rev__track:not(.swiper-initialized) { overflow-x: auto; scrollbar-width: none; }
.znh-rev__track:not(.swiper-initialized)::-webkit-scrollbar { display: none; }
.znh-rev__track:not(.swiper-initialized) .swiper-wrapper { gap: 20px; }
.znh .znh-review { width: calc((100% - 40px) / 3); height: auto; background: #fff; border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: box-shadow .2s ease; }
.znh .znh-review:hover { box-shadow: 0 8px 20px rgba(30, 36, 43, .10); }
.znh .znh-review:focus-visible { outline: 2px solid var(--znh-red); outline-offset: 2px; }
.znh-review__stars { display: flex; gap: 2px; }
.znh-review__photos { display: flex; gap: 6px; }
.znh-rev .znh-review__photos .zn-fb-media { width: 64px; height: 64px; border-radius: 8px; }
.znh-rev .znh-review__photos .zn-fb-media__play { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.znh-rev .znh-review__photos .zn-fb-media__play::after { border-width: 5px 0 5px 8px; }
/* полный текст - в попапе, на карточке семь строк */
.znh .znh-review__text { margin: 0; font-size: 15px; line-height: 1.65; flex: 1 1 auto; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.znh-review__who { border-top: 1px solid #eef0f3; padding-top: 14px; display: flex; align-items: center; gap: 12px; }
.znh-review__ini { flex: 0 0 40px; height: 40px; border-radius: 50%; background: #f1f3f5; color: var(--znh-dark); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.znh-review__who > span:last-child { display: flex; flex-direction: column; line-height: 1.35; font-size: 13px; color: #6b717a; }
.znh-review__who b { font-size: 15px; font-weight: 800; color: var(--znh-dark); }
.znh .znh-review__who a { color: #6b717a; }
.znh .znh-review__who a:hover { color: var(--znh-red-h); }
.znh-rev.is-static .znh-sol__progress,
.znh-rev.is-static .znh-arrow { display: none; }

/* вопросы */
.znh-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.znh-faq .znh-head { margin: 0; }
.znh-faq__list { border-top: 1px solid var(--znh-line); }
.znh-faq__item { border-bottom: 1px solid var(--znh-line); }
.znh .znh-faq__item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 20px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--znh-dark);
    cursor: pointer;
}
.znh .znh-faq__item summary::-webkit-details-marker { display: none; }
.znh .znh-faq__item summary::after {
    content: "";
    flex: 0 0 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b3038' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 12h12M12 6v12'/%3E%3C/svg%3E") no-repeat center / contain;
}
.znh .znh-faq__item[open] summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d32f2f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}
.znh .znh-faq__item summary:hover { color: var(--znh-red-h); }
.znh .znh-faq__a { padding: 0 40px 20px 0; font-size: 16px; line-height: 1.65; color: var(--znh-muted); }
.znh .znh-faq__a p { margin: 0 0 10px; }
.znh .znh-faq__a p:last-child { margin: 0; }

/* оконные решения: карусель на Swiper (перетаскивание мышью и свайп), настройка - zn-home2.js */
.znh-sol__nav,
.znh-head--row > .znh-sol__nav { display: flex; flex-direction: row; align-items: center; gap: 10px; flex: 0 0 auto; max-width: none; }
.znh .znh-arrow { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px; border: 1.5px solid #dfe2e6; background: #fff; color: var(--znh-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .2s ease, border-color .2s ease, opacity .2s ease; }
.znh .znh-arrow:hover { border-color: var(--znh-red); color: var(--znh-red-h); }
.znh .znh-arrow--next { background: var(--znh-red); border-color: var(--znh-red); color: #fff; }
.znh .znh-arrow--next:hover { background: var(--znh-red-h); border-color: var(--znh-red-h); color: #fff; }
.znh .znh-arrow:disabled { opacity: .45; cursor: default; }
.znh .znh-arrow:disabled:hover { border-color: #dfe2e6; color: var(--znh-dark); }
.znh .znh-arrow--next:disabled:hover { background: var(--znh-red); border-color: var(--znh-red); color: #fff; }
/* запас под тень карточки при наведении: по бокам ровно зазор между карточками, чтобы соседние не выглядывали */
.znh-sol__track { margin: -14px -20px -30px; padding: 14px 20px 30px; }
/* Swiper не загрузился - лента листается обычной прокруткой */
.znh-sol__track:not(.swiper-initialized) { overflow-x: auto; scrollbar-width: none; }
.znh-sol__track:not(.swiper-initialized)::-webkit-scrollbar { display: none; }
.znh-sol__track:not(.swiper-initialized) .swiper-wrapper { gap: 20px; }
.znh .znh-sol__card { width: calc((100% - 60px) / 4); height: auto; background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; color: var(--znh-text); text-decoration: none; transition: box-shadow .2s ease; }
.znh .znh-sol__card:hover { color: var(--znh-text); text-decoration: none; box-shadow: 0 8px 20px rgba(30, 36, 43, .10); }
.znh-sol__img { display: block; aspect-ratio: 3 / 2; background: #eef0f3; }
.znh-sol__img img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.znh-sol__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.znh-sol__name { font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--znh-dark); }
.znh-sol__card:hover .znh-sol__name { color: var(--znh-red-h); }
.znh-sol__bars,
.znh-sol__specs { display: flex; flex-direction: column; gap: 7px; }
.znh-sol__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; line-height: 1.4; color: var(--znh-muted); }
.znh-sol__cells { display: flex; gap: 3px; flex: 0 0 auto; }
.znh-sol__cells i { width: 18px; height: 6px; border-radius: 3px; background: var(--znh-line); }
.znh-sol__cells i.is-on { background: var(--znh-red); }
.znh-sol__spec { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.4; border-bottom: 1px dotted #dfe2e6; padding-bottom: 6px; }
.znh-sol__spec span { color: #6b717a; }
.znh-sol__spec b { color: var(--znh-dark); text-align: right; }
.znh-sol__foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.znh-sol__price { display: flex; flex-direction: column; gap: 1px; }
.znh-sol__price span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #6b717a; }
.znh-sol__price b { font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--znh-dark); }
.znh-sol__go { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; background: var(--znh-tint); color: var(--znh-red); display: flex; align-items: center; justify-content: center; }
.znh-sol__progress { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.znh-sol__rail { flex: 1 1 auto; height: 4px; border-radius: 2px; background: #e1e4e8; position: relative; overflow: hidden; }
.znh-sol__rail i { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; border-radius: 2px; background: var(--znh-red); transition: left .2s linear; }
.znh-sol__count { font-size: 13px; font-weight: 700; color: #6b717a; white-space: nowrap; }
.znh-sol.is-static .znh-sol__progress,
.znh-sol.is-static .znh-arrow { display: none; }

/* ── узкие экраны ── */
@media (max-width: 1199px) {
    .znh-hero { grid-template-columns: minmax(0, 1fr); padding: 40px; gap: 32px; }
    .znh-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -24px; }
    .znh-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .znh-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .znh .znh-review { width: calc((100% - 20px) / 2); }
    .znh-faq { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .znh .znh-sol__card { width: calc((100% - 40px) / 3); }
}

@media (max-width: 767.98px) {
    .znh { gap: 32px; padding: 0 0 40px; font-size: 15px; }
    .znh-head { margin-bottom: 14px; }
    .znh-head--row { flex-direction: column; align-items: stretch; gap: 12px; }
    .znh .znh-title { font-size: 22px; letter-spacing: -0.3px; }
    .znh .znh-lead { font-size: 14px; }
    .znh-box { padding: 20px 16px; border-radius: 14px; }

    .znh-hero { padding: 24px 18px; border-radius: 16px; gap: 20px; }
    .znh-hero__main { gap: 16px; align-items: stretch; }
    .znh .znh-hero__title { font-size: 27px; line-height: 1.15; letter-spacing: -0.5px; }
    .znh .znh-hero__lead { font-size: 15px; }
    .znh .znh-hero__bullets { grid-template-columns: minmax(0, 1fr); gap: 9px; font-size: 14px; }
    .znh-hero__actions { flex-direction: column; margin-top: 0; }
    .znh .znh-btn { min-height: 50px; }
    .znh-form { padding: 18px 16px; gap: 12px; }
    .znh-form__row { grid-template-columns: minmax(0, 1fr); }
    .znh-file__hint { display: none; }
    .znh-calc { width: calc(100% - 16px); max-height: calc(100vh - 16px); padding: 22px 16px 18px; }
    .znh .znh-form__title { font-size: 20px; }

    .znh-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 0; }
    .znh-trust__item { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
    .znh-trust__ico { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; }
    .znh-trust__ico svg { width: 20px; height: 20px; }
    .znh-trust__text { font-size: 12px; }
    .znh-trust__text b { font-size: 15px; }

    .znh-hub { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .znh-card:hover { transform: none; }
    .znh-card__top { padding: 12px 16px; }
    .znh-card__body { padding: 16px; gap: 12px; }
    .znh .znh-card__name { font-size: 18px; }
    .znh .znh-card__features li { font-size: 13px; }
    .znh-card__price b { font-size: 20px; }

    /* таблица превращается в карточки */
    .znh-table { border: 0; border-radius: 0; overflow: visible; }
    .znh-table thead { display: none; }
    .znh-table table,
    .znh-table tbody,
    .znh-table tr,
    .znh-table td { display: block; width: 100%; }
    .znh-table tr { border: 1px solid var(--znh-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
    .znh-table td { padding: 0; border: 0; font-size: 13px; }
    .znh-table tbody tr:hover td { background: none; }
    .znh-table td:first-child,
    .znh-table td:last-child { grid-column: 1 / -1; }
    .znh-table td:first-child { font-size: 16px; }
    .znh-table td:not(:first-child):not(:last-child)::before { content: attr(data-label); display: block; font-size: 11px; color: #6b717a; }

    .znh-cases { display: flex; overflow-x: auto; gap: 10px; margin: 0 -12px; padding: 0 12px 6px; scroll-snap-type: x mandatory; }
    .znh-case { flex: 0 0 82%; scroll-snap-align: start; }
    .znh-case__photo { height: 160px; }
    .znh-case__body { padding: 16px; }
    .znh .znh-review { width: 85%; padding: 16px; border-radius: 14px; }
    .znh .znh-review__text { font-size: 14px; }
    .znh-rev .znh-review__photos .zn-fb-media { width: 56px; height: 56px; }
    .znh-rev__strip { margin: 0 -12px 16px; }
    .znh-rev__media { gap: 8px; padding: 0 12px; }
    .znh-rev .znh-rev__media .zn-fb-media { width: 104px; height: 104px; border-radius: 10px; }
    .znh .znh-rev__snav { display: none; }
    .znh-rev__track { margin: -4px -12px; padding: 4px 12px; }
    .znh-rev__track:not(.swiper-initialized) .swiper-wrapper { gap: 12px; }

    .znh-head--row > .znh-sol__nav { justify-content: flex-end; }
    .znh-sol__track { margin: -4px -12px; padding: 4px 12px; }
    .znh-sol__track:not(.swiper-initialized) .swiper-wrapper { gap: 12px; }
    .znh .znh-sol__card { width: 78%; border-radius: 14px; }
    .znh-sol__body { padding: 16px 18px 18px; gap: 12px; }
    .znh-sol__name { font-size: 16px; }
    .znh-sol__price b { font-size: 20px; }
    .znh-sol__progress { margin-top: 14px; }

    .znh .znh-faq__item summary { padding: 14px 0; font-size: 15px; }
    .znh .znh-faq__a { padding: 0 0 14px; font-size: 14px; }
}
