
        :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-greeting { display: none; width: fit-content; margin: 11px 0 0; padding: 5px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); font-size: 12px; font-weight: 700; letter-spacing: .1px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
        .hero-greeting b { color: #ff6158; }
        .hero-greeting.show { display: inline-flex; align-items: center; gap: 4px; }
        .hero p.lead {
            display: inline-block; width: fit-content;
            margin: 12px 0 0; padding: 12px 16px;
            font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.92); max-width: 350px;
            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; }
        .dir-more { width: 100%; padding: 15px 18px; border: 1px solid var(--line); border-radius: 15px; color: var(--navy); background: var(--white); font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; box-shadow: var(--shadow-sm); }
        .dir-more:active { transform: scale(.98); }

        .legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 30px 0 10px; color: #98a0b0; font-size: 11.5px; line-height: 1.5; text-align: center; }
        .legal-links a { color: #7b8498; text-decoration: none; }
        .legal-links a:active { color: var(--red); }

        /* Почему мы */
        .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; }

        .catalog-search-row { display: flex; align-items: stretch; gap: 10px; margin-top: 18px; }
        .search {
            flex: 1; min-width: 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 { position: relative; flex: none; width: 52px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--red); box-shadow: var(--shadow-sm); font-size: 24px; line-height: 1; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
        .fav-filter:active { transform: scale(.94); }
        .fav-filter.active { border-color: rgba(225,37,27,.32); background: #fff4f3; }
        .fav-filter i { position: absolute; top: -7px; right: -6px; display: none; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border: 2px solid var(--bg); border-radius: 999px; background: var(--red); color: #fff; font-family: inherit; font-size: 10px; font-style: normal; font-weight: 800; line-height: 16px; text-align: center; }
        .fav-filter i.show { display: block; }

        .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; min-height: 286px; display: flex; flex-direction: column; 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-row { min-height: 42px; margin-top: 9px; }
        .hit-name { font-size: 13px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
        .hit-price { font-size: 14.5px; font-weight: 800; color: var(--navy); white-space: nowrap; }
        .hit-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

        .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; }
.web-orders-info { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 18px; }
.web-orders-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 19px; border-radius: 18px; color: var(--red); background: rgba(225,37,27,.09); font-size: 33px; font-weight: 700; }
.web-orders-info h2 { margin: 0; color: var(--ink); font-size: 23px; letter-spacing: -.4px; }
.web-orders-info p { max-width: 340px; margin: 12px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.web-orders-link { display: inline-flex; align-items: center; gap: 9px; padding: 13px 17px; border-radius: 13px; color: #fff; background: var(--navy); font-size: 15px; font-weight: 750; text-decoration: none; box-shadow: 0 8px 20px rgba(14,23,48,.18); }
.web-orders-link span { color: #fff; font-size: 18px; line-height: 1; }
.web-orders-note { max-width: 330px; margin-top: 27px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.web-cabinet-login { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 8px; }
.web-cabinet-login h2, .web-cabinet-head h2 { margin: 0; color: var(--ink); font-size: 23px; letter-spacing: -.4px; }
.web-cabinet-login p { max-width: 345px; margin: 12px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cabinet-form { display: grid; width: min(100%, 360px); gap: 10px; text-align: left; }
.cabinet-form .co-input { width: 100%; box-sizing: border-box; }
.cabinet-form .btn { width: 100%; }
.cabinet-methods { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 360px); margin: 0 0 10px; padding: 3px; border-radius: 12px; background: #eef0f4; }
.cabinet-methods button { padding: 9px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 700 12px inherit; cursor: pointer; }
.cabinet-methods button.active { color: var(--navy); background: var(--white); box-shadow: 0 2px 6px rgba(14,23,48,.09); }
.cabinet-switch { margin-top: 13px; border: 0; background: transparent; color: var(--red); font: 700 13px inherit; cursor: pointer; }
.cabinet-error { width: min(100%, 360px); margin: 0 0 10px; padding: 10px 12px; box-sizing: border-box; border-radius: 11px; background: rgba(225,37,27,.08); color: var(--red-dark); font-size: 13px; text-align: left; }
.web-cabinet-login .web-orders-note { margin-top: 19px; }
.web-cabinet-head { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 4px 0 2px; }
.web-cabinet-head .kicker { margin-bottom: 4px; }
.cabinet-profile-open { padding: 9px 11px; border: 1px solid rgba(225,37,27,.2); border-radius: 10px; color: var(--red); background: rgba(225,37,27,.05); font: 700 12px inherit; cursor: pointer; }
.cabinet-logout { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--white); font-size: 12px; cursor: pointer; }
.web-profile-panel { display: none; }
.web-profile-panel.show { display: block; }
.web-profile-form { display: none; grid-template-columns: 1fr; gap: 10px; margin: 12px 0 16px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); }
.web-profile-form.show { display: grid; }
.web-profile-title { margin-bottom: 2px; color: var(--ink); font-size: 15px; font-weight: 800; }
.telegram-app .profile-contacts { margin-top: 28px; }
.web-profile-form .co-input, .web-profile-form .btn { width: 100%; box-sizing: border-box; }
.web-profile-form .btn { min-height: 47px; }
        .web-password-toggle { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-start; margin: -5px 0 16px; }
        .cabinet-delete { border-color: rgba(225,37,27,.25); color: var(--red); background: rgba(225,37,27,.04); }
.web-password-form { margin-top: -7px; }
.cabinet-login-links { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.my-order-comment { margin-top: 10px; padding: 10px; border-radius: 10px; background: #f6f7f9; color: var(--ink); font-size: 12.5px; line-height: 1.4; }
        .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 { display: flex; flex-direction: column; color: var(--navy); }
        .price b { font-size: 17px; font-weight: 800; line-height: 1.12; }
        .price small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.1; }
        .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; }
        .catalog-end { display: none; padding: 20px 18px 30px; color: var(--muted); text-align: center; }
        .catalog-end.show { display: block; }
        .catalog-end span { display: block; font-size: 22px; line-height: 1; opacity: .7; }
        .catalog-end p { margin: 8px 0 0; font-size: 12px; line-height: 1.45; }
        .cabinet-consent { display: flex; align-items: flex-start; gap: 9px; margin: 12px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.38; text-align: left; cursor: pointer; }
        .cabinet-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--red); }
        .cabinet-consent a { color: var(--red); text-decoration: none; }
        .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);
        }
        .notification-bell { position: fixed; top: calc(env(safe-area-inset-top) + 16px); right: 18px; z-index: 160; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(14,23,48,.58); color: #fff; box-shadow: 0 7px 20px rgba(8,14,34,.2); backdrop-filter: blur(10px); cursor: pointer; }
        /* В Telegram статусы приходят в сам чат: центр уведомлений нужен только веб-версии. */
        .telegram-app .notification-bell,
        .telegram-app .notification-overlay,
        .telegram-app .notification-sheet { display: none !important; }
        .notification-bell svg { width: 22px; height: 22px; }
        .notification-count { position: absolute; top: -6px; right: -6px; display: none; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid var(--bg); border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; place-items: center; }
        .notification-count.show { display: grid; }
        .notification-overlay { position: fixed; inset: 0; z-index: 210; opacity: 0; pointer-events: none; background: rgba(8,14,34,.55); transition: opacity .25s ease; }
        .notification-overlay.show { opacity: 1; pointer-events: auto; }
        .notification-sheet { position: fixed; z-index: 220; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; max-height: 76vh; padding: 0 20px calc(env(safe-area-inset-bottom) + 20px); border-radius: 24px 24px 0 0; background: var(--white); box-shadow: 0 -12px 40px rgba(14,23,48,.18); transform: translateY(102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
        .notification-sheet.show { transform: none; }
        .notification-list { display: flex; flex: 1; flex-direction: column; gap: 10px; overflow-y: auto; padding: 3px 0 8px; }
        .notification-item { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
        .notification-item.unread { border-color: rgba(225,37,27,.3); background: rgba(225,37,27,.035); }
        .notification-item h4 { margin: 0; color: var(--navy); font-size: 14px; line-height: 1.35; }
        .notification-item p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
        .notification-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; color: #9098a8; font-size: 11px; }
        .notification-empty { padding: 38px 12px; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
        .notification-empty b { display: inline-block; margin-bottom: 4px; color: var(--navy); font-size: 16px; }
        .notification-enable { display: block; margin: 18px auto 0; border: 0; border-radius: 12px; padding: 12px 16px; background: var(--red); color: #fff; font: 800 13px inherit; box-shadow: 0 10px 20px rgba(225,37,27,.2); cursor: pointer; }
        .notification-head-actions { display: flex; align-items: center; gap: 10px; }
        .notification-clear { border: 0; padding: 8px 4px; background: transparent; color: var(--red); font: 800 13px inherit; cursor: pointer; }
        .notification-clear:disabled { opacity: .5; cursor: wait; }
        .app-update { position: fixed; right: 16px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); z-index: 700; display: none; align-items: center; gap: 11px; max-width: calc(100% - 32px); padding: 11px 11px 11px 14px; border-radius: 15px; background: var(--navy); color: #fff; box-shadow: 0 12px 32px rgba(8,14,34,.35); font-size: 13px; font-weight: 700; }
        .app-update.show { display: flex; }
        .app-update button { border: 0; border-radius: 10px; padding: 9px 11px; background: var(--red); color: #fff; font: 800 13px inherit; cursor: pointer; }
        .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; }
        .push-offer { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-end; justify-content: center; padding: 18px 16px max(22px, env(safe-area-inset-bottom)); background: rgba(7,12,28,.48); backdrop-filter: blur(3px); }
        .push-card { width: min(100%, 410px); padding: 26px 22px 19px; border-radius: 25px; background: var(--navy); color: #fff; text-align: center; box-shadow: 0 18px 45px rgba(7,12,28,.42); }
        .push-bell { width: 56px; height: 56px; display: grid; place-items: center; margin: -50px auto 13px; border-radius: 20px; background: var(--red); font-size: 28px; box-shadow: 0 9px 22px rgba(225,37,27,.34); }

        /* ===== Фирменные SVG-иконки ===== */
        .ic-svg { width: 24px; height: 24px; flex: none; }
        [data-ic] { display: inline-flex; align-items: center; justify-content: center; }
        .tab-ic svg { width: 25px; height: 25px; display: block; }
        .feat-ic svg { width: 25px; height: 25px; }
        .contact-card .ic svg { width: 23px; height: 23px; }
        .co-opt .co-ic { display: grid; place-items: center; font-size: 0; }
        .co-opt .co-ic svg { width: 22px; height: 22px; }
        .cart-empty .ic svg { width: 46px; height: 46px; color: #c9cdd6; }
        .push-bell svg { width: 28px; height: 28px; color: #fff; }
        .hits-head .t { display: inline-flex; align-items: center; gap: 8px; }
        .hits-head .t [data-ic] svg { width: 20px; height: 20px; color: var(--red); }
        .catalog-end [data-ic] svg { width: 46px; height: 46px; color: #c9cdd6; }
        .pr-document svg { width: 18px; height: 18px; vertical-align: -3.5px; margin-right: 7px; color: var(--red); }
        .app-update [data-ic] { vertical-align: -4px; margin-right: 5px; }
        .app-update [data-ic] svg { width: 16px; height: 16px; }
        .st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
        .my-order-comment svg, .my-order-meta svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 5px; }
        .push-card h3 { margin: 0; font-size: 21px; letter-spacing: -.3px; }
        .push-card p { margin: 9px 0 15px; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.45; }
        .push-arrow { margin: 2px 0 8px; color: #ffd9d5; font-size: 13px; font-weight: 750; animation: pushArrow 1s ease-in-out infinite; }
        .push-enable { width: 100%; border: 0; border-radius: 14px; padding: 15px 12px; background: var(--red); color: #fff; font: 800 16px inherit; box-shadow: 0 8px 20px rgba(225,37,27,.3); }
        .push-close { margin-top: 9px; border: 0; background: transparent; color: rgba(255,255,255,.65); font: 600 14px inherit; padding: 7px 12px; }
        @keyframes pushArrow { 50% { transform: translateY(5px); } }

        .promo-install-hint { position: fixed; left: 14px; right: 14px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); z-index: 320; display: flex; align-items: flex-start; gap: 11px; max-width: 520px; margin: auto; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(14,23,48,.96); color: #fff; box-shadow: 0 15px 36px rgba(7,12,28,.35); opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .24s ease, transform .24s ease; }
        .promo-install-hint.show { opacity: 1; transform: none; pointer-events: auto; }
        .promo-install-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--red); color: #fff; }
        .promo-install-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linejoin: round; }
        .promo-install-copy { min-width: 0; }
        .promo-install-hint b { display: block; font-size: 14px; line-height: 1.2; }
        .promo-install-hint span { display: block; margin-top: 5px; color: rgba(255,255,255,.74); font-size: 12px; line-height: 1.55; }
        .promo-inline-icon { display: inline-grid; width: 17px; height: 17px; margin: 0 1px -4px 3px; color: #fff; vertical-align: baseline; }
        .promo-inline-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
        .promo-add-home { display: inline-flex; align-items: center; gap: 3px; margin-left: 2px; padding: 1px 5px 1px 3px; border-radius: 7px; background: rgba(36,133,255,.18); color: #6eb1ff; font-style: normal; font-weight: 750; white-space: nowrap; }
        .promo-add-home svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
        .promo-install-hint button { flex: none; width: 28px; height: 28px; margin: -4px -4px 0 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font: 500 24px/1 Arial, sans-serif; cursor: pointer; }

        /* ============ Страница товара ============ */
        .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; align-items: flex-start; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
        .co-line:last-child { border-bottom: none; }
        .co-line b { font-weight: 700; white-space: nowrap; }
        .co-line-product { display: grid; min-width: 0; gap: 3px; }
        .co-line-name { line-height: 1.35; }
        .co-line-spec { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; line-height: 1.35; }
        .co-foot { padding: 16px 20px calc(env(safe-area-inset-bottom) + 16px); background: var(--white); border-top: 1px solid var(--line); }
    
