/* ==========================================================================
   Riverpools — дополнения к базовой теме
   ========================================================================== */

body { font-feature-settings: "tnum" 0; }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; }

/* ----------------------------------------------------------------- Шапка */

.topline { background: var(--navy); color: #b9d3e6; }
.topline nav a:hover, .topline .right a:hover { color: #fff; }
.topline nav a.active { color: var(--aqua); }
.tl-phone { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; }
.tl-hours { opacity: .8; }

.logo img { height: 46px; width: auto; }
.logo picture { display: block; }
.header { box-shadow: 0 1px 0 var(--border); border-bottom: 0; }
.catalog-btn { border-radius: 14px; }
.search input { border-radius: 14px; }

/* ----------------------------------------------------------------- Первый экран */

.rp-hero {
    position: relative; overflow: hidden; padding: 56px 0 120px;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(44, 195, 232, .25), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(10, 138, 208, .18), transparent 60%),
        linear-gradient(180deg, #e6f5fd 0%, #f6fbfe 100%);
}
.rp-hero-glow {
    position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .8), transparent 60%);
    animation: rp-float 14s ease-in-out infinite alternate; pointer-events: none;
}
.rp-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.rp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 16px;
    background: rgba(10, 138, 208, .1); color: var(--accent-text); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; margin-bottom: 18px;
}
.rp-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(44, 195, 232, .25); }
.rp-hero h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.05; margin-bottom: 18px; color: var(--navy); }
.rp-hero p { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); max-width: 540px; margin-bottom: 28px; }
.rp-hero .btn-outline { background: rgba(255, 255, 255, .7); border-color: rgba(12, 42, 68, .15); }
.rp-hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 32px; flex-wrap: wrap; }
.rp-hero-facts li { display: grid; }
.rp-hero-facts b { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.rp-hero-facts span { font-size: 14px; color: var(--muted); }

.rp-hero-art { position: relative; aspect-ratio: 1.15; }
.rp-hero-art img { position: absolute; height: auto; filter: drop-shadow(0 30px 40px rgba(12, 42, 68, .12)); }
.rp-art-main { width: 84%; right: 0; top: 22%; animation: rp-bob 7s ease-in-out infinite; }
.rp-art-a { width: 46%; left: 2%; top: 2%; animation: rp-bob 8s ease-in-out -2s infinite; }
.rp-art-b { width: 44%; left: 0; bottom: 2%; animation: rp-bob 9s ease-in-out -4s infinite; }

.rp-waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; pointer-events: none; }
.rp-waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.rp-waves path { fill: var(--bg); }
.rp-waves .w1 { opacity: .5; animation: rp-wave 18s linear infinite; }
.rp-waves .w2 { animation: rp-wave 26s linear infinite reverse; }

@keyframes rp-wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rp-float { from { transform: translate(0, 0); } to { transform: translate(-6vw, 4vw); } }

.rp-benefits { margin-top: -36px; position: relative; z-index: 2; }
.rp-benefits .benefit { background: var(--card); box-shadow: var(--shadow); }

/* ----------------------------------------------------------------- Типы бассейнов */

.rp-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rp-type {
    display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.rp-type:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.rp-type-img { aspect-ratio: 4 / 3; overflow: hidden; background: #eef7fc; }
.rp-type-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform .6s ease; }
.rp-type:hover .rp-type-img img { transform: scale(1.26); }
.rp-type-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.rp-type-body h3 { font-size: 22px; font-weight: 800; }
.rp-type-body p { color: var(--text-2); font-size: 15px; flex: 1; }

/* ----------------------------------------------------------------- Сравнение */

.rp-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.rp-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.rp-table th, .rp-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.rp-table thead th { background: var(--navy); color: #fff; font-size: 16px; }
.rp-table tbody tr:last-child td { border-bottom: 0; }
.rp-table tbody tr:nth-child(even) td { background: var(--surface); }
.rp-table td:first-child { font-weight: 700; color: var(--text); width: 18%; }
.rp-table td { color: var(--text-2); }

/* ----------------------------------------------------------------- Комплектующие */

.rp-acc { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.rp-acc-tile {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 12px 20px;
    border-radius: var(--radius); background: var(--surface); transition: transform .25s, box-shadow .25s; font-size: 15px;
}
.rp-acc-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.rp-acc-tile img { width: 96px; height: 96px; border-radius: 50%; mix-blend-mode: multiply; }

/* ----------------------------------------------------------------- Этапы */

.rp-steps {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 40px; align-items: center;
    padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-lg); color: #fff;
    background: radial-gradient(600px 300px at 100% 0%, rgba(44, 195, 232, .35), transparent 60%), linear-gradient(135deg, #0b2236, #0d3a5c);
}
.rp-steps h2 { color: #fff; }
.rp-steps-head p { color: #b9d3e6; margin-bottom: 22px; }
.rp-steps .btn-primary { background: var(--aqua); color: var(--navy); box-shadow: none; }
.rp-steps .btn-primary:hover { background: #5fd4f0; color: var(--navy); }
.rp-steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.rp-steps-list li { counter-increment: st; padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 6px; }
.rp-steps-list li::before { content: "0" counter(st); font-weight: 800; color: var(--aqua); font-size: 14px; letter-spacing: .1em; }
.rp-steps-list b { font-size: 18px; }
.rp-steps-list span { color: #b9d3e6; font-size: 14.5px; }

/* ----------------------------------------------------------------- Статьи */

.rp-post { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); transition: transform .25s, box-shadow .25s; }
.rp-post:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.rp-post h3 { font-size: 20px; }
.rp-post .link-more { margin-top: auto; padding-top: 8px; }

/* ----------------------------------------------------------------- CTA */

.rp-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent), #19b4e0); color: #fff;
}
.rp-cta h2 { color: #fff; margin-bottom: 8px; }
.rp-cta p { margin: 0; opacity: .9; max-width: 560px; }
.rp-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rp-cta-phone { background: #fff; color: var(--navy); }
.rp-cta-phone:hover { background: #eaf7fd; color: var(--navy); }
.rp-cta .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.rp-cta .btn-outline:hover { border-color: #fff; color: #fff; }

/* ----------------------------------------------------------------- Карточки, каталог */

.product-card .media { background: #eef7fc; }
.product-card .media img { mix-blend-mode: multiply; }
.gallery-main, .gallery-thumbs button { background: #eef7fc; }
.cat-tile img { mix-blend-mode: multiply; }
.badge-hit { background: var(--aqua); color: var(--navy); }

/* ----------------------------------------------------------------- Подвал */

.footer { position: relative; background: var(--navy); color: #b9d3e6; margin-top: 90px; padding-top: 40px; }
.footer-wave { position: absolute; left: 0; right: 0; top: -59px; height: 60px; }
.footer-wave svg { width: 100%; height: 100%; display: block; }
.footer-wave path { fill: var(--navy); }
.footer h4 { color: #fff; }
.footer ul { color: #b9d3e6; }
.footer a:hover { color: #fff; }
.footer .about { color: #b9d3e6; }
.footer-logo img { height: 46px; width: auto; margin-bottom: 14px; }
.footer .addr { display: flex; gap: 8px; align-items: flex-start; color: #8fb0c8; font-size: 14.5px; max-width: 320px; }
.footer .addr .icon { margin-top: 3px; color: var(--aqua); }
.f-phone { font-weight: 800; color: #fff; font-size: 17px; }
.riverus-link {
    display: inline-grid; gap: 2px; margin-top: 18px; padding: 10px 14px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .15); transition: border-color .2s, background .2s;
}
.riverus-link span { font-size: 12px; color: #8fb0c8; text-transform: uppercase; letter-spacing: .06em; }
.riverus-link b { color: #fff; }
.riverus-link:hover { border-color: var(--aqua); background: rgba(44, 195, 232, .08); }
.footer-bottom { border-top-color: rgba(255, 255, 255, .1); color: #7f9db4; }

/* ----------------------------------------------------------------- Контакты */

.rp-map { margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); height: 380px; background: var(--surface); }
.rp-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ----------------------------------------------------------------- Появление при прокрутке */

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .rp-waves svg, .rp-hero-art img, .rp-hero-glow { animation: none; }
}

/* ----------------------------------------------------------------- Тёмная тема */

@media (prefers-color-scheme: dark) {
    .rp-hero { background: radial-gradient(900px 500px at 85% 20%, rgba(44, 195, 232, .18), transparent 60%), linear-gradient(180deg, #0a1c2a, #07131d); }
    .rp-hero h1, .rp-hero-facts b { color: #fff; }
    .rp-hero-glow { display: none; }
    .rp-hero .btn-outline { background: transparent; border-color: var(--border); }
    .product-card .media img, .rp-acc-tile img, .cat-tile img { mix-blend-mode: normal; }
    .product-card .media, .gallery-main, .gallery-thumbs button, .rp-type-img { background: #eef7fc; }
    .footer, .footer-wave path { background: #04101a; fill: #04101a; }
    .footer-wave { background: none; }
    .rp-table thead th { background: #04101a; }
}

/* ----------------------------------------------------------------- Адаптив */

@media (max-width: 1100px) {
    .rp-hero-inner { grid-template-columns: minmax(0, 1fr); }
    .rp-hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
    .rp-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-acc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rp-steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .logo { font-size: inherit; }
    .logo img { height: 34px; }
    .rp-hero { padding: 32px 0 90px; }
    .rp-hero-facts { gap: 20px; }
    .rp-hero-facts b { font-size: 21px; }
    .rp-types { grid-template-columns: minmax(0, 1fr); }
    .rp-acc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-steps-list { grid-template-columns: minmax(0, 1fr); }
    .rp-benefits { margin-top: -20px; }
    .rp-cta-actions, .rp-cta-actions .btn { width: 100%; }
}

/* Тень закрытых панелей не должна выглядывать из-за края экрана */
.drawer:not(.open), .filter-panel:not(.open) { box-shadow: none; }

/* ----------------------------------------------------------------- Калькулятор */

.calc-head { margin-bottom: 24px; }
.calc-head p { color: var(--text-2); max-width: 760px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.calc-main { display: grid; gap: 22px; }
.calc-step { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); }
.calc-step h2 { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-bottom: 18px; }
.calc-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc-type, .calc-opt, .calc-model { position: relative; cursor: pointer; }
.calc-type input, .calc-opt input, .calc-model input, .calc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.calc-type > span, .calc-opt > span {
    display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 2px solid transparent;
    transition: border-color .15s, box-shadow .15s; height: 100%;
}
.calc-type b { font-size: 17px; }
.calc-type small, .calc-opt small { color: var(--muted); font-size: 13.5px; }
.calc-type input:checked + span, .calc-opt input:checked + span, .calc-model input:checked + .calc-model-card { border-color: var(--accent); box-shadow: 0 6px 20px rgba(10, 138, 208, .12); }
.calc-type input:focus-visible + span, .calc-opt input:focus-visible + span, .calc-model input:focus-visible + .calc-model-card, .calc-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-opt > span { padding-left: 50px; }
.calc-opt > span::before {
    content: ""; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border);
    background: var(--card) center/14px no-repeat;
}
.calc-opt input:checked + span::before {
    background-color: var(--accent); border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}
.calc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.calc-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.calc-model-card { display: grid; gap: 4px; padding: 10px 12px 14px; border-radius: 14px; background: var(--card); border: 2px solid transparent; height: 100%; transition: border-color .15s, box-shadow .15s; }
.calc-model-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; mix-blend-mode: multiply; background: #eef7fc; }
.calc-model-card b { font-size: 14px; line-height: 1.3; }
.calc-model-card small { color: var(--muted); font-size: 12.5px; }

.calc-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 16px; }
.calc-label { font-weight: 700; font-size: 15px; }
.calc-seg, .calc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-seg label { position: relative; cursor: pointer; }
.calc-seg span, .calc-swatch {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px;
    background: var(--card); border: 2px solid transparent; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: border-color .15s;
}
.calc-seg small, .calc-swatch small { color: var(--muted); font-weight: 500; }
.calc-seg input:checked + span, .calc-swatch.active { border-color: var(--accent); color: var(--accent-text); }
.calc-swatch { font-family: inherit; color: var(--text); }
.dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(12, 42, 68, .18); flex: none; }

.calc-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.calc-dims-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-dim { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 8px 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--card); }
.calc-dim > span { grid-column: 1 / -1; font-weight: 700; font-size: 14.5px; }
.calc-dim input[type=number] { height: 40px; padding: 0 10px; text-align: center; font-weight: 700; }
.calc-dim input[type=range] { width: 100%; accent-color: var(--accent); }

.calc-summary { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.calc-card { padding: 24px; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--border); display: grid; gap: 12px; }
.calc-card.loading { opacity: .65; transition: opacity .2s; }
.calc-title { font-size: 19px; font-weight: 800; line-height: 1.3; }
.calc-params, .calc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.calc-params li, .calc-lines li { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; }
.calc-params span { color: var(--muted); }
.calc-lines { padding-top: 12px; border-top: 1px dashed var(--border); }
.calc-lines span { display: grid; }
.calc-lines small { color: var(--muted); font-size: 12.5px; }
.calc-lines b { white-space: nowrap; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 2px solid var(--text); }
.calc-total span { font-weight: 700; }
.calc-total b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-text); }
.calc-total b.bump { animation: rp-bump .35s ease; }
@keyframes rp-bump { 40% { transform: scale(1.06); } }
.calc-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.calc-request h3 { margin: 0; }
.calc-request .muted { margin: -6px 0 4px; font-size: 14px; }
.calc-request .alert { margin: 0; }
.calc-request textarea { min-height: 80px; }

.rp-hero .btn-calc { background: var(--navy); color: #fff; }

.calc-bar { display: none; }
@media (max-width: 1100px) {
    .calc-bar {
        position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 12px;
        padding: 12px 18px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
    }
    .calc-bar:hover { color: #fff; }
    .calc-bar b { font-size: 20px; font-weight: 800; }
    .calc-bar-go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--aqua); font-weight: 700; }
    .calc { grid-template-columns: minmax(0, 1fr); }
    .calc-summary { position: static; }
}
@media (max-width: 760px) {
    .calc-step { padding: 18px 14px; }
    .calc-types, .calc-options, .calc-dims, .calc-dims-2 { grid-template-columns: minmax(0, 1fr); }
    .calc-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .calc-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calc-total b { font-size: 26px; }
}
@media (prefers-color-scheme: dark) {
    .calc-model-card img { mix-blend-mode: normal; }
}

/* ----------------------------------------------------------------- Меню каталога */

.catalog-menu { padding: 24px 0 28px; max-height: calc(100vh - var(--header-h) - 20px); overflow-y: auto; }
.catalog-menu .cols { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.cm-card {
    display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 16px; border-radius: var(--radius);
    background: var(--surface); transition: transform .2s, box-shadow .2s; font-size: 15px;
}
.cm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.cm-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; mix-blend-mode: multiply; background: #eef7fc; }
.cm-list { padding: 6px 8px; }
.cm-list h4 { margin: 0 0 10px; }
.cm-list ul { gap: 7px; }
.cm-calc { justify-content: center; background: linear-gradient(135deg, var(--accent), #19b4e0); color: #fff; }
.cm-calc:hover { color: #fff; }
.cm-calc span { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.cm-calc small { opacity: .85; font-size: 13px; }
@media (max-width: 1100px) { .catalog-menu .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-color-scheme: dark) { .cm-card img { mix-blend-mode: normal; } }

/* ----------------------------------------------------------------- 3D-конструктор */

.cons { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 28px; align-items: start; }
.cons-stage { position: sticky; top: calc(var(--header-h) + 16px); }
.cons-view {
    position: relative; height: min(720px, calc(100vh - var(--header-h) - 32px)); min-height: 380px; border-radius: var(--radius-lg);
    overflow: hidden; background: linear-gradient(#cfe6f5, #b6d3a0); box-shadow: var(--shadow);
}
.cons-view canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.cons-view canvas:active { cursor: grabbing; }
.cons-tools { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; pointer-events: none; }
.cons-tool {
    pointer-events: auto; height: 34px; padding: 0 12px; border-radius: 10px; border: 0; font: inherit; font-size: 13.5px; font-weight: 700;
    background: rgba(255, 255, 255, .82); color: #0c2a44; backdrop-filter: blur(6px); cursor: pointer;
}
.cons-tool.active { background: var(--accent); color: #fff; }
.cons-info {
    position: absolute; left: 12px; bottom: 12px; display: grid; gap: 2px; max-width: calc(100% - 200px); padding: 10px 14px; border-radius: 12px;
    background: rgba(9, 30, 50, .72); color: #fff; backdrop-filter: blur(6px); font-size: 13.5px; z-index: 2; pointer-events: none;
}
.cons-info b { font-size: 15px; }
.cons-info span { color: #a9dcf2; font-weight: 700; }
.cons-save { position: absolute; right: 12px; bottom: 12px; z-index: 2; }
.cons-hint { position: absolute; right: 14px; top: 56px; font-size: 12px; color: rgba(12, 42, 68, .6); pointer-events: none; }
.cons-noscript, .cons-no3d::after { position: absolute; inset: 0; display: grid; place-items: center; color: #0c2a44; font-weight: 700; }
.cons-no3d::after { content: "3D-просмотр недоступен в этом браузере"; }
.cons-dims-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cons-dim {
    position: absolute; left: 0; top: 0; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .9); color: #0c2a44;
    font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.cons-dim-depth { background: rgba(10, 138, 208, .9); color: #fff; }

.cons-side { display: grid; gap: 18px; }
.cons-side .calc-step { padding: 20px; }
.cons-side .calc-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cons-types, .cons-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cons-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cons-sizes .calc-type > span { padding: 12px; }
.cons-types .calc-type b { font-size: 15.5px; }
.cons-models { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 4px; }
.cons-models .calc-model-card { padding: 8px 8px 10px; }
.cons-models .calc-model-card b { font-size: 12.5px; }
.cons-dims { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.cons-dims-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cons-dims .calc-dim { grid-template-columns: minmax(0, 1fr) 72px; padding: 10px 12px; }
.cons-options, .cons-ct-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cons-ct-opts { margin-top: 16px; }
.cons-options .calc-opt > span, .cons-ct-opts .calc-opt > span { padding: 12px 12px 12px 44px; }
.cons-options .calc-opt > span::before, .cons-ct-opts .calc-opt > span::before { left: 14px; top: 14px; }
.cons-opt-wide { grid-column: 1 / -1; }
.cons-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.cons-compare { margin-top: 40px; }
.cons-compare-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cons-compare-head h2 { margin: 0; }
.cons-compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card); }
.cons-compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
.cons-compare-table th, .cons-compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cons-compare-table th { width: 150px; color: var(--muted); font-weight: 600; }
.cons-compare-table tr:last-child th, .cons-compare-table tr:last-child td { border-bottom: 0; }
.cons-compare-table img { display: block; width: 100%; max-width: 280px; border-radius: 10px; margin-bottom: 8px; }
.cons-cmp-total { font-size: 20px; }
.cons-compare-table td.best .cons-cmp-total { color: var(--accent-text); }

.cm-3d { justify-content: center; background: linear-gradient(135deg, #0c2a44, #1a5b8a); color: #fff; }
.cm-3d:hover { color: #fff; }
.cm-3d span { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.cm-3d small { opacity: .85; font-size: 13px; }

@media (max-width: 1100px) {
    .cons { grid-template-columns: minmax(0, 1fr); }
    .cons-stage { top: var(--header-h); z-index: 20; margin: 0 -16px; }
    .cons-view { height: 46vh; min-height: 280px; border-radius: 0; }
    .cons-hint { display: none; }
}
@media (max-width: 760px) {
    .cons-tool { height: 30px; padding: 0 9px; font-size: 12.5px; }
    .cons-info { max-width: calc(100% - 150px); padding: 7px 10px; font-size: 12px; }
    .cons-info b { font-size: 13px; }
    .cons-save { padding: 0 12px; height: 38px; font-size: 13.5px; }
    .cons-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cons-sizes { grid-template-columns: minmax(0, 1fr); }
}

/* Свой цвет и свой размер (калькулятор и 3D-конструктор) */
.cons-own { position: relative; cursor: pointer; }
.cons-own > input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.cons-own > span {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 8px; border-radius: 12px;
    background: var(--card); border: 2px dashed var(--border); font-weight: 600; font-size: 14.5px; transition: border-color .15s;
}
.cons-own small, .cons-own-sw small { color: var(--muted); font-weight: 500; }
.cons-own > input:checked + span { border-style: solid; border-color: var(--accent); color: var(--accent-text); }
.cons-own > input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
input[data-own-color], .calc-seg input[data-own-color] {
    position: static; opacity: 1; pointer-events: auto;
    width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; flex: none;
    box-shadow: inset 0 0 0 1px rgba(12, 42, 68, .18);
}
input[data-own-color]::-webkit-color-swatch-wrapper { padding: 0; }
input[data-own-color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
input[data-own-color]::-moz-color-swatch { border: 0; border-radius: 50%; }
.cons-own-sw { padding-left: 8px; border-style: dashed; border-color: var(--border); }
.cons-own-sw.active { border-style: solid; }
.cons-own-card { place-content: center; justify-items: center; text-align: center; min-height: 150px; border: 2px dashed var(--border); }
.calc-model input:checked + .cons-own-card { border-style: solid; }
.cons-own-card i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 138, 208, .12); color: var(--accent-text); font-style: normal; font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.cons-custom { margin-top: 6px; padding: 4px 0 2px; }
.cons-custom[hidden] { display: none; }
.cons-custom .cons-dims { margin-top: 10px; }
.calc .cons-custom .calc-dims { margin-top: 10px; }
