
        :root {
            --red: #E1251B;
            --red-dark: #B71C13;
            --navy: #0E1730;
            --navy-2: #14213D;
            --ink: #0E1730;
            --muted: #6B7385;
            --line: rgba(14, 23, 48, 0.08);
            --bg: #F4F5F8;
            --white: #ffffff;
            --shadow: 0 12px 40px rgba(14, 23, 48, 0.12);
            --shadow-sm: 0 4px 16px rgba(14, 23, 48, 0.07);
            --nav-h: 68px;
        }

        * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        html, body { margin: 0; padding: 0; height: 100%; }

        body {
            background: var(--bg);
            color: var(--ink);
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
        }

        /* ============ Экраны ============ */
        .screen { display: none; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 20px); animation: fade .35s ease; }
        .screen.active { display: block; }
        @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

        .wrap { padding: 0 20px; }

        /* ============ Reveal при скролле ============ */
        .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
        .reveal.in { opacity: 1; transform: none; }

        /* ============ HERO (Главная) ============ */
        .hero {
            position: relative;
            min-height: 92vh;
            background: radial-gradient(120% 80% at 80% 0%, #1E2E57 0%, var(--navy) 55%, #0A1128 100%);
            color: var(--white);
            padding: calc(env(safe-area-inset-top) + 20px) 24px 48px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .hero::before {
            content: "";
            position: absolute; inset: 0;
            background-image:
                linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
            background-size: 40px 40px;
            mask-image: radial-gradient(120% 90% at 50% 10%, #000 30%, transparent 75%);
            pointer-events: none; z-index: 1;
        }
        .glow { position: absolute; width: 420px; height: 420px; border-radius: 50%;
            background: radial-gradient(circle, rgba(225,37,27,.45) 0%, transparent 65%);
            top: -140px; right: -160px; filter: blur(4px); pointer-events: none; z-index: 1; }

        /* Видео-фон hero (если assets/hero.mp4 отсутствует — остаётся градиент) */
        .hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
        .hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
        .hero-media .scrim { position: absolute; inset: 0;
            background: linear-gradient(180deg, rgba(10,17,40,.62) 0%, rgba(10,17,40,.58) 32%, rgba(8,14,34,.98) 100%); }

        .topbar { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
        .topbar img { width: 40px; height: 40px; }
        .topbar .name { font-size: 20px; font-weight: 800; letter-spacing: 3px; }
        .topbar .tag { font-size: 10px; letter-spacing: 2px; color: rgba(255,255,255,.5); text-transform: uppercase; margin-top: 2px; }

        .hero-mid { position: relative; z-index: 2; margin-top: auto; }
        .eyebrow {
            display: inline-flex; align-items: center; gap: 7px;
            font-size: 12px; font-weight: 600; letter-spacing: .5px;
            color: #fff; background: rgba(255,255,255,.08);
            border: 1px solid rgba(255,255,255,.14);
            padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
        }
        .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(225,37,27,.25); }

        .hero h1 {
            margin: 0; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -1.5px;
        }
        .hero h1 .accent { color: var(--red); }
        .hero p.lead {
            display: inline-block; width: fit-content;
            margin: 0 0 0; padding: 14px 18px;
            font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.92); max-width: 330px;
            background: rgba(255,255,255,.10);
            -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
            border: 1px solid rgba(255,255,255,.16); border-radius: 22px;
        }
        .hero-greet {
            display: inline-flex; align-items: center; gap: 9px; width: fit-content;
            margin: 24px 0 10px; padding: 9px 16px;
            font-size: 15px; font-weight: 600; color: rgba(255,255,255,.95);
            background: rgba(255,255,255,.10);
            -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
            border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
        }
        .hero-greet::before { content: ""; width: 20px; height: 2px; background: var(--red); border-radius: 2px; }
        .hero-greet b { color: var(--red); font-weight: 800; }

        .cta-row { display: flex; gap: 12px; margin-top: 30px; position: relative; z-index: 2; }
        .btn {
            border: none; border-radius: 15px; padding: 16px 22px; font-size: 15px; font-weight: 700;
            cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
            display: inline-flex; align-items: center; gap: 8px; font-family: inherit;
        }
        .btn:active { transform: scale(.96); }
        .btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 26px rgba(225,37,27,.4); }
        .btn-primary:active { background: var(--red-dark); }
        .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.16); }

        .scroll-hint { text-align: center; margin-top: 34px; color: rgba(255,255,255,.4); font-size: 22px; position: relative; z-index: 2;
            animation: bob 1.8s ease-in-out infinite; }
        @keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

        /* ============ Stats ============ */
        .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 8px; }
        .stat { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px 12px; text-align: center; box-shadow: var(--shadow-sm); }
        .stat .num { font-size: 26px; font-weight: 800; letter-spacing: -1px; color: var(--navy); }
        .stat .num .u { color: var(--red); }
        .stat .lbl { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.3; }

        /* ============ Секции ============ */
        .section { margin-top: 40px; }
        .kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); }
        .h2 { font-size: 27px; font-weight: 800; letter-spacing: -.8px; margin: 8px 0 0; line-height: 1.15; }
        .body { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; }

        /* Направления */
        .dir { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
        .dir-card {
            position: relative; border-radius: 22px; overflow: hidden; min-height: 168px;
            display: flex; align-items: flex-end; padding: 20px; color: #fff; box-shadow: var(--shadow);
        }
        .dir-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
        .dir-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,23,48,.05) 0%, rgba(14,23,48,.82) 100%); z-index: 1; }
        .dir-card .t { position: relative; z-index: 2; }
        .dir-card .t h3 { margin: 0; font-size: 20px; font-weight: 800; }
        .dir-card .t span { font-size: 13px; opacity: .82; }
        .dir-card .arrow { position: absolute; z-index: 2; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%;
            background: rgba(255,255,255,.15); backdrop-filter: blur(6px); display: grid; place-items: center; }

        /* Почему мы */
        .feat { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
        .feat-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
        .feat-row:last-child { border-bottom: none; }
        .feat-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(225,37,27,.1); color: var(--red); display: grid; place-items: center; }
        .feat-tx h4 { margin: 0; font-size: 16px; font-weight: 700; }
        .feat-tx p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

        /* CTA-блок */
        .cta-block { margin-top: 40px; background: linear-gradient(135deg, var(--navy-2), var(--navy)); border-radius: 26px; padding: 32px 26px; color: #fff; position: relative; overflow: hidden; }
        .cta-block .glow2 { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(225,37,27,.4), transparent 65%); bottom: -120px; left: -80px; }
        .cta-block h3 { position: relative; margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
        .cta-block p { position: relative; margin: 10px 0 22px; font-size: 14.5px; color: rgba(255,255,255,.7); }
        .cta-block .btn { position: relative; width: 100%; justify-content: center; }

        /* ============ Каталог ============ */
        .page-head { padding: calc(env(safe-area-inset-top) + 24px) 20px 6px; }
        .page-head .kicker { color: var(--red); }
        .page-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 0; }

        .search {
            margin: 18px 0 0; display: flex; align-items: center; gap: 10px;
            background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; box-shadow: var(--shadow-sm);
        }
        .search svg { flex: none; color: var(--muted); }
        .search input { border: none; outline: none; background: transparent; padding: 15px 0; width: 100%; font-size: 16px; color: var(--ink); font-family: inherit; }
.search .clear { border: none; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; padding: 4px; display: none; }
.fav-filter { flex: none; border: none; background: transparent; color: var(--red); font-size: 25px; cursor: pointer; padding: 2px; }

        .chips { display: flex; gap: 8px; padding: 16px 20px 4px; overflow-x: auto; scrollbar-width: none; }
        .chips::-webkit-scrollbar { display: none; }
        .chip { flex: none; border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s ease; font-family: inherit; }
        .chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

        /* ТОП / Хиты продаж */
        .hits-block { margin-top: 4px; }
        .hits-head { display: flex; align-items: center; padding: 16px 20px 10px; }
        .hits-head .t { font-size: 16px; font-weight: 800; }
        .hits { display: flex; gap: 12px; padding: 0 20px 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
        .hits::-webkit-scrollbar { display: none; }
        .hit-card { flex: none; width: 150px; scroll-snap-align: start; cursor: pointer; transition: transform .15s ease; }
        .hit-card:active { transform: scale(.97); }
        .hit-img { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: #eceef3; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
        .hit-img img { width: 100%; height: 100%; object-fit: cover; }
        .card-favorite { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f3f4f7; color: #6b7280; font-size: 19px; line-height: 30px; padding: 0; cursor: pointer; }
        .card-favorite.active { color: var(--red); }
        .hit-badge { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 4px 8px; border-radius: 7px; box-shadow: 0 3px 8px rgba(225,37,27,.4); }
        .hit-name { font-size: 13px; font-weight: 700; margin-top: 9px; line-height: 1.25; }
        .hit-price { font-size: 14.5px; font-weight: 800; color: var(--navy); }
        .hit-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

        .count-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 20px 8px; }
        .count-row .t { font-size: 15px; font-weight: 700; }
        .count-row .c { font-size: 13px; color: var(--muted); }

        .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .15s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.my-orders { display: flex; flex-direction: column; gap: 12px; }
.my-order { padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.my-order-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 15px; font-weight: 800; }
.my-order-meta { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }
        .card:active { transform: scale(.97); box-shadow: var(--shadow); }
        .card-img { position: relative; aspect-ratio: 3/4; background: #eceef3; }
        .card-img img { width: 100%; height: 100%; object-fit: cover; }
        .card-name-row, .hit-name-row { display: flex; align-items: flex-start; gap: 7px; }
        .card-name-row .card-name, .hit-name-row .hit-name { flex: 1; min-width: 0; }
        .card-body { padding: 13px 13px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
        .card-name { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
        .card-spec { font-size: 12px; color: var(--muted); }
        .card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
        .price { font-size: 17px; font-weight: 800; color: var(--navy); }
        .price small { font-size: 11px; font-weight: 500; color: var(--muted); }
        .add { position: relative; border: none; width: 34px; height: 34px; border-radius: 11px; background: var(--red); color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; transition: transform .12s ease, background .12s ease; }
        .add:active { transform: scale(.88); background: var(--red-dark); }
        .add-badge { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; display: none; place-items: center; border: 2px solid var(--white); }
        .empty { text-align: center; padding: 60px 20px; color: var(--muted); display: none; }
        .empty p { margin: 14px 0 0; font-size: 15px; }
        .grid-sentinel { display: none; align-items: center; justify-content: center; padding: 22px 0 8px; }
        .spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(225,37,27,.2); border-top-color: var(--red); animation: spin .7s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .skeleton-card { overflow: hidden; min-height: 290px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
        .skeleton-shine { height: 100%; background: linear-gradient(100deg, #f0f1f4 20%, #fafafa 40%, #f0f1f4 60%); background-size: 200% 100%; animation: skeleton 1.2s infinite; }
        @keyframes skeleton { to { background-position: -200% 0; } }

        /* ============ Контакты ============ */
        .contact-card { display: flex; align-items: center; gap: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 17px; margin-top: 12px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .12s; }
        .contact-card:active { transform: scale(.98); }
        .contact-card .ic { flex: none; width: 46px; height: 46px; border-radius: 13px; background: rgba(14,23,48,.06); color: var(--navy); display: grid; place-items: center; }
        .contact-card .l { font-size: 12px; color: var(--muted); }
        .contact-card .v { font-size: 16px; font-weight: 700; margin-top: 1px; }

        /* ============ Нижнее меню ============ */
        .tabbar {
            position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
            height: calc(var(--nav-h) + env(safe-area-inset-bottom));
            padding-bottom: env(safe-area-inset-bottom);
            display: flex; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(20px);
            border-top: 1px solid var(--line);
        }
        .tab { flex: 1; border: none; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 600; transition: color .18s; }
        .tab svg { width: 24px; height: 24px; }
        .tab-ic { font-size: 22px; line-height: 1; }
        .tab.active { color: var(--red); }

        .toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); transform: translateX(-50%) translateY(20px); opacity: 0; visibility: hidden; background: var(--navy); color: #fff; padding: 13px 22px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s ease, visibility 0s linear .35s; z-index: 300; display: flex; align-items: center; gap: 9px; }
        .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
        .toast .d { color: var(--red); font-size: 16px; }

        /* ============ Установка ярлыка ============ */
        .install-layer { position: fixed; inset: 0; z-index: 500; display: none; align-items: flex-end; background: rgba(14,23,48,.48); }
        .install-layer.show { display: flex; }
        .install-card { width: 100%; padding: 26px 20px calc(env(safe-area-inset-bottom) + 22px); background: var(--white); border-radius: 26px 26px 0 0; box-shadow: 0 -12px 40px rgba(14,23,48,.2); }
        .install-card h2 { margin: 0; font-size: 24px; letter-spacing: -.5px; }
        .install-card p { margin: 10px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.5; }
        .install-actions { display: flex; flex-direction: column; gap: 10px; }
        .install-actions .btn { justify-content: center; width: 100%; }
        .install-status { min-height: 20px; margin-top: 12px; color: var(--muted); text-align: center; font-size: 13px; }

        /* ============ Корзина ============ */
        .cart-fab {
            position: fixed; right: 16px; z-index: 150;
            bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
            width: 56px; height: 56px; border-radius: 18px; border: none;
            background: var(--red); color: #fff; cursor: pointer;
            display: none; align-items: center; justify-content: center;
            box-shadow: 0 10px 26px rgba(225,37,27,.45); transition: transform .15s ease;
        }
        .cart-fab.show { display: inline-flex; }
        .cart-fab:active { transform: scale(.9); }
        .cart-fab svg { width: 26px; height: 26px; }
        .cart-count {
            position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
            border-radius: 11px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800;
            display: grid; place-items: center; border: 2px solid var(--bg);
        }
        .cart-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(8,14,34,.55);
            opacity: 0; pointer-events: none; transition: opacity .3s ease;
            -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
        .cart-overlay.show { opacity: 1; pointer-events: auto; }
        .cart-sheet {
            position: fixed; left: 0; right: 0; bottom: 0; z-index: 220; background: var(--white);
            border-radius: 24px 24px 0 0; padding: 0 20px calc(env(safe-area-inset-bottom) + 20px);
            max-height: 86vh; display: flex; flex-direction: column;
            transform: translateY(101%); transition: transform .35s cubic-bezier(.2,.8,.2,1), bottom .25s ease;
            box-shadow: 0 -12px 40px rgba(14,23,48,.18);
        }
.cart-sheet.show { transform: none; bottom: var(--kb, 0px); }
/* Форма звонка не должна целиком «улетать» над iOS-клавиатурой. */
#leadSheet.show { bottom: 0; }
        .cart-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 10px auto 4px; }
        .cart-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 12px; }
        .cart-head h3 { margin: 0; font-size: 20px; font-weight: 800; }
        .cart-close { border: none; background: var(--bg); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
        .cart-clear { border: none; background: transparent; color: var(--red); font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 4px; }
        .kb-done { display: none; border: none; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; padding: 7px 15px; border-radius: 999px; }
        .cart-sheet:focus-within .kb-done { display: inline-flex; }
        .cart-items { overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
        .cart-item { display: flex; align-items: center; gap: 12px; }
        .cart-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #eceef3; flex: none; }
        .ci-info { flex: 1; min-width: 0; }
        .ci-name { font-size: 14px; font-weight: 700; line-height: 1.25; }
        .ci-price { font-size: 13px; color: var(--muted); margin-top: 2px; }
        .cart-qty { display: flex; align-items: center; gap: 10px; flex: none; }
        .cart-qty button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--white); font-size: 18px; font-weight: 700; color: var(--navy); cursor: pointer; line-height: 1; }
        .cart-qty button:active { transform: scale(.9); }
        .cart-qty .q { min-width: 18px; text-align: center; font-weight: 800; font-size: 15px; }
        .cart-empty { text-align: center; padding: 40px 0 30px; color: var(--muted); display: none; }
        .cart-empty .ic { font-size: 40px; }
        .cart-empty p { margin: 10px 0 0; font-size: 15px; }
        .cart-foot { padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--line); }
        .cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 15px; color: var(--muted); }
        .cart-total b { font-size: 22px; font-weight: 800; color: var(--navy); }

        /* ============ Оформление / оплата ============ */
        .checkout { position: fixed; inset: 0; z-index: 240; background: var(--bg); display: flex; flex-direction: column;
            transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.checkout.show { transform: none; }
/* Только для ввода адреса: не даём iOS-клавиатуре перекрыть нижнюю часть оформления. */
.checkout.address-input-active { bottom: var(--kb, 0px); }
        .co-head { display: flex; align-items: center; gap: 12px; background: var(--white); border-bottom: 1px solid var(--line);
            padding: calc(env(safe-area-inset-top) + 16px) 20px 14px; }
        .co-back { border: none; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--navy); line-height: 1; }
        /* внутри Telegram: своя стрелка не нужна (есть родная «Назад»); шапку опускаем ниже панели Telegram */
        body.tg .co-back { display: none; }
        body.tg .co-head { padding-top: calc(env(safe-area-inset-top) + 54px); }
        .co-head h3 { margin: 0; font-size: 19px; font-weight: 800; }
        .co-body { flex: 1; overflow-y: auto; padding: 20px; }
        .co-group { margin-bottom: 24px; }
        .co-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 10px; }
        .co-opts { display: flex; flex-direction: column; gap: 10px; }
        .co-seg { display: flex; gap: 10px; }
        .co-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--white);
            border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; font-size: 15px; font-weight: 600; color: var(--ink);
            cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s; }
        .co-opt .co-ic { font-size: 20px; }
        .co-opt small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
        .co-opt.active { border-color: var(--red); background: rgba(225,37,27,.05); }
        .co-opts .co-opt.active::after { content: "✓"; margin-left: auto; color: var(--red); font-weight: 800; }
        .co-opt.disabled { opacity: .4; pointer-events: none; }
        .co-seg .co-opt { flex: 1; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 10px; }
        .co-input { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 16px; font-size: 16px; font-family: inherit; outline: none; }
        .co-input:focus { border-color: var(--navy); }
        .co-map { height: 210px; border-radius: 16px; overflow: hidden; margin-bottom: 12px; background: #eceef3; border: 1px solid var(--line); }
        .co-hint { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

        /* ============ Страница товара ============ */
        .product { position: fixed; inset: 0; z-index: 250; background: var(--bg); display: flex; flex-direction: column;
            transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
        .product.show { transform: none; }
        .pr-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
        .pr-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; }
        .pr-gallery::-webkit-scrollbar { display: none; }
        .pr-gallery img { flex: none; width: 100%; height: 360px; object-fit: contain; scroll-snap-align: center; background: #fff; }
        .pr-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 2px; }
        .pr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: all .2s; }
        .pr-dot.active { background: var(--red); width: 18px; border-radius: 4px; }
        .pr-content { padding: 8px 20px 24px; }
        .pr-cat { color: var(--red); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
        .pr-name { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin: 6px 0 4px; line-height: 1.15; }
        .pr-spec { color: var(--muted); font-size: 14px; }
.pr-price { font-size: 26px; font-weight: 800; color: var(--navy); margin-top: 14px; }
.pr-availability { display: inline-flex; margin-top: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(24, 151, 87, .1); color: #147a46; font-size: 13px; font-weight: 700; }
.pr-availability.out { background: rgba(225,37,27,.1); color: var(--red); }
.pr-documents { display: flex; flex-direction: column; gap: 8px; }
.pr-document { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.product-actions { display: flex; gap: 8px; margin-top: 15px; }
.product-action { flex: 1; padding: 10px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.product-action.active { color: var(--red); border-color: rgba(225,37,27,.35); background: rgba(225,37,27,.06); }
        .pr-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
        .pr-section { margin-top: 24px; }
        .pr-section h4 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
        .pr-desc { font-size: 15px; line-height: 1.6; color: #374151; }
        .pr-usage { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
        .pr-usage li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #374151; line-height: 1.4; }
        .pr-usage li::before { content: "✓"; color: var(--red); font-weight: 800; flex: none; }
        .pr-specs { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
        .pr-specs .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
        .pr-specs .row:last-child { border-bottom: none; }
        .pr-specs .row .k { color: var(--muted); }
        .pr-specs .row .v { font-weight: 700; text-align: right; }
        .address-field { position: relative; }
        .address-suggestions { position: absolute; z-index: 260; top: calc(100% + 6px); left: 0; right: 0; display: none; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
        .address-suggestions.show { display: block; }
        .address-suggestion { display: block; width: 100%; padding: 13px 15px; border: none; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer; }
        .address-suggestion:last-child { border-bottom: none; }
        .address-suggestion:active { background: var(--bg); }
        .co-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); }
        .co-line:last-child { border-bottom: none; }
        .co-line b { font-weight: 700; white-space: nowrap; }
        .co-foot { padding: 16px 20px calc(env(safe-area-inset-bottom) + 16px); background: var(--white); border-top: 1px solid var(--line); }
    
