:root {
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --panel: rgba(255,255,255,.86);
  --solid: #ffffff;
  --text: #0b0b0c;
  --muted: #6e6e73;
  --line: rgba(0,0,0,.09);
  --line-strong: rgba(0,0,0,.14);
  --soft: rgba(0,0,0,.045);
  --soft-2: #ececf0;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --danger: #d70015;
  --success: #087a45;
  --shadow: 0 22px 70px rgba(0,0,0,.08);
  --shadow-soft: 0 8px 30px rgba(0,0,0,.055);
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #000;
  --bg-2: #0b0b0c;
  --panel: rgba(20,20,22,.86);
  --solid: #141416;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.18);
  --soft: rgba(255,255,255,.075);
  --soft-2: #242426;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
  --shadow-soft: 0 8px 30px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: var(--font); background: var(--bg); color: var(--text); transition: background .25s ease, color .25s ease; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 50; height: 64px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.header-inner { width: min(1320px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; text-decoration: none; font-size: 18px; font-weight: 760; letter-spacing: -.035em; }
.desktop-nav { display: flex; align-items: center; gap: 23px; margin-right: auto; }
.desktop-nav a, .desktop-nav button { border: 0; background: transparent; padding: 7px 0; text-decoration: none; color: var(--muted); font-size: 13px; cursor: pointer; transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav button:hover { color: var(--text); }
.desktop-nav .assistant-nav-link { padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--blue) 26%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--blue) 7%, transparent); color: var(--blue); font-weight: 680; }
.desktop-nav .assistant-nav-link:hover { background: color-mix(in srgb, var(--blue) 13%, transparent); color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-icon { position: relative; min-width: 40px; height: 40px; padding: 0 9px; display: grid; place-items: center; border: 0; border-radius: 20px; background: transparent; cursor: pointer; font-size: 19px; transition: background .2s ease, transform .2s ease; }
.header-icon:hover { background: var(--soft); }
.header-icon:active { transform: scale(.96); }
.counter-icon span { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 10px; font-weight: 750; }

.hero { min-height: 650px; padding: 96px 0 82px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: 60px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 730; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(76px, 10vw, 150px); line-height: .86; letter-spacing: -.08em; font-weight: 790; }
.hero-contacts { margin-top: 27px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--muted); font-size: 15px; }
.hero-contacts a { text-decoration: none; }
.hero-contacts a:hover { color: var(--text); }
.hero-text { max-width: 650px; margin: 24px 0 30px; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.48; letter-spacing: -.02em; }
.hero-buttons, .contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-btn, .secondary-btn, .danger-btn, .card-open, .card-add { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 24px; font-weight: 660; text-decoration: none; cursor: pointer; transition: transform .18s ease, filter .18s ease, background .18s ease; }
.primary-btn { background: var(--blue); color: #fff; }
.primary-btn:hover { background: var(--blue-hover); }
.secondary-btn { background: var(--soft); color: var(--text); border: 1px solid var(--line); }
.secondary-btn:hover { background: var(--soft-2); }
.danger-btn { background: rgba(215,0,21,.1); color: var(--danger); }
.primary-btn:active, .secondary-btn:active, .card-open:active, .card-add:active { transform: scale(.98); }
.primary-btn:disabled, .secondary-btn:disabled, .card-open:disabled, .card-add:disabled { opacity: .45; cursor: not-allowed; }

.hero-glow { position: relative; min-height: 490px; border-radius: 56px; overflow: hidden; background: radial-gradient(circle at 56% 44%, rgba(0,113,227,.2), transparent 38%), radial-gradient(circle at 40% 58%, rgba(158,87,255,.17), transparent 38%), linear-gradient(145deg, var(--solid), var(--soft)); box-shadow: inset 0 0 0 1px var(--line); }
.hero-glow::after { content: ""; position: absolute; inset: auto 8% 4%; height: 18%; filter: blur(34px); background: rgba(0,0,0,.17); border-radius: 50%; }
.phone { position: absolute; width: 205px; height: 405px; border-radius: 44px; border: 9px solid #171719; background: linear-gradient(150deg,#f8f8fb,#dcdce4); box-shadow: 0 28px 70px rgba(0,0,0,.22); }
.phone::before { content: ""; position: absolute; left: 50%; top: 10px; width: 78px; height: 22px; transform: translateX(-50%); border-radius: 14px; background: #161618; }
.phone::after { content: ""; position: absolute; inset: 18px; border-radius: 28px; background: radial-gradient(circle at 52% 22%, #fefefe, #e8e9ef 60%, #d4d6df); }
.phone-back { left: 24%; top: 68px; transform: rotate(-10deg) scale(.94); opacity: .86; }
.phone-front { right: 22%; top: 46px; transform: rotate(7deg); }

.category-section, .popular-section, .catalog-section, .benefits, .contacts, .compare-promo { padding: 72px 0; }
.section-title-row { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-title-row h2, .benefits h2, .contact-card h2, .compare-card h2, dialog h2 { margin: 0; font-size: clamp(36px, 4.5vw, 62px); line-height: .98; letter-spacing: -.055em; }
.text-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.text-link:hover { color: var(--text); }
.category-pills, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.category-pill, .chip { border: 1px solid var(--line); background: var(--solid); min-height: 43px; padding: 0 16px; border-radius: 22px; cursor: pointer; box-shadow: var(--shadow-soft); transition: background .18s ease, color .18s ease, transform .18s ease; }
.category-pill:hover, .chip:hover { transform: translateY(-1px); }
.category-pill.active, .chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.popular-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.popular-card { min-height: 340px; padding: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: 30px; background: var(--solid); border: 1px solid var(--line); box-shadow: var(--shadow-soft); cursor: pointer; }
.popular-card:hover .popular-visual { transform: translateY(-5px) scale(1.015); }
.popular-card h3 { margin: auto 0 5px; font-size: 22px; letter-spacing: -.035em; }
.popular-card p { margin: 0; color: var(--muted); font-size: 14px; }
.popular-visual { min-height: 205px; display: grid; place-items: center; transition: transform .25s ease; }

.catalog-heading { align-items: center; }
.catalog-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.search-field { min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 24px; background: var(--solid); }
.search-field span { color: var(--muted); }
.search-field input { width: 190px; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-field input::placeholder { color: var(--muted); }
select { min-height: 46px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: 24px; background: var(--solid); color: var(--text); outline: 0; }
.stock-toggle { min-height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 24px; background: var(--solid); cursor: pointer; }
.stock-toggle input { accent-color: var(--blue); }
.chip-row { margin: 25px 0; }
.catalog-hierarchy { margin: 25px 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .9fr); gap: 12px; align-items: stretch; }
.hierarchy-panel { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 30px; background: color-mix(in srgb, var(--solid) 68%, transparent); box-shadow: var(--shadow-soft); }
.hierarchy-label { display: block; margin: 0 8px 8px; color: var(--muted); font-size: 11px; font-weight: 740; letter-spacing: .06em; text-transform: uppercase; }
.catalog-hierarchy .chip-row { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.model-chip-row .chip { font-size: 13px; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.product-card { position: relative; min-height: 470px; padding: 18px; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--solid); border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: transform .24s ease, box-shadow .24s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-actions { position: absolute; z-index: 3; top: 13px; right: 13px; display: flex; gap: 6px; }
.round-mini { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--solid) 90%, transparent); backdrop-filter: blur(8px); cursor: pointer; }
.round-mini:hover { background: var(--soft-2); }
.round-mini.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.product-visual { height: 250px; margin-bottom: 18px; display: grid; place-items: center; overflow: hidden; border-radius: 21px; background: linear-gradient(145deg, color-mix(in srgb, var(--solid) 80%, var(--bg)), var(--soft)); }
.product-visual img, .model-hero-visual img { width: 100%; height: 100%; object-fit: contain; }
.phone-placeholder { position: relative; width: 94px; height: 188px; border: 5px solid var(--text); border-radius: 24px; background: linear-gradient(150deg, var(--bg-2), var(--soft-2)); opacity: .96; }
.phone-placeholder::before { content: ""; position: absolute; top: 4px; left: 50%; width: 34px; height: 10px; transform: translateX(-50%); border-radius: 7px; background: var(--text); }
.device-placeholder { position: relative; width: 112px; height: 150px; color: var(--text); opacity: .92; }
.device-phone { width: 94px; height: 188px; border: 5px solid currentColor; border-radius: 24px; background: linear-gradient(150deg, var(--bg-2), var(--soft-2)); }
.device-phone::before { content: ""; position: absolute; top: 4px; left: 50%; width: 34px; height: 10px; transform: translateX(-50%); border-radius: 7px; background: currentColor; }
.device-tablet { width: 132px; height: 178px; border: 5px solid currentColor; border-radius: 16px; background: linear-gradient(150deg, var(--bg-2), var(--soft-2)); }
.device-tablet::before { content: ""; position: absolute; top: 6px; left: 50%; width: 5px; height: 5px; transform: translateX(-50%); border-radius: 50%; background: currentColor; }
.device-mac { width: 170px; height: 108px; margin-bottom: 22px; border: 6px solid currentColor; border-radius: 11px; background: linear-gradient(145deg, var(--bg-2), var(--soft-2)); }
.device-mac::before { content: ""; position: absolute; left: 50%; bottom: -19px; width: 206px; height: 14px; transform: translateX(-50%); border-radius: 2px 2px 13px 13px; background: currentColor; clip-path: polygon(8% 0,92% 0,100% 100%,0 100%); }
.device-mac::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 30px; height: 3px; transform: translateX(-50%); border-radius: 0 0 5px 5px; background: var(--bg); }
.device-watch { width: 98px; height: 116px; border: 6px solid currentColor; border-radius: 28px; background: linear-gradient(145deg, var(--bg-2), var(--soft-2)); }
.device-watch::before, .device-watch::after { content: ""; position: absolute; z-index: -1; left: 50%; width: 48px; height: 55px; transform: translateX(-50%); border-radius: 14px; background: currentColor; }
.device-watch::before { top: -50px; } .device-watch::after { bottom: -50px; }
.device-airpods { width: 132px; height: 112px; border: 5px solid currentColor; border-radius: 28px 28px 38px 38px; background: linear-gradient(145deg, var(--bg-2), var(--soft-2)); }
.device-airpods::before { content: ""; position: absolute; left: 23px; top: -48px; width: 25px; height: 80px; border: 5px solid currentColor; border-radius: 17px 17px 12px 12px; background: var(--bg-2); box-shadow: 57px 0 0 -5px var(--bg-2), 57px 0 0 0 currentColor; }
.device-tv { width: 160px; height: 105px; border: 6px solid currentColor; border-radius: 18px; background: linear-gradient(145deg, var(--bg-2), var(--soft-2)); }
.device-tv::before { content: ""; position: absolute; left: 50%; bottom: -25px; width: 52px; height: 25px; transform: translateX(-50%); border-bottom: 7px solid currentColor; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.device-vision { width: 174px; height: 92px; border: 6px solid currentColor; border-radius: 48px 48px 35px 35px; background: linear-gradient(145deg, var(--bg-2), var(--soft-2)); }
.device-vision::before { content: ""; position: absolute; inset: 20px 18px; border: 3px solid currentColor; border-radius: 30px; }
.device-speaker { width: 112px; height: 148px; border: 5px solid currentColor; border-radius: 34px; background: radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--blue) 35%, var(--solid)), transparent 24%), linear-gradient(145deg, var(--bg-2), var(--soft-2)); }
.device-speaker::before { content: ""; position: absolute; inset: 9px 16px auto; height: 18px; border-radius: 50%; border: 2px solid currentColor; }
.device-accessory { width: 126px; height: 126px; border: 5px solid currentColor; border-radius: 30px; background: linear-gradient(145deg, var(--bg-2), var(--soft-2)); transform: rotate(8deg); }
.device-accessory::before { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; font-weight: 260; transform: rotate(-8deg); }
.product-card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.025em; }
.card-meta { min-height: 38px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.card-bottom { margin-top: auto; padding-top: 15px; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.price { display: flex; flex-direction: column; font-size: 18px; font-weight: 730; }
.price small { margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 520; }
.card-buttons { display: flex; gap: 6px; }
.card-open { min-height: 38px; padding: 0 14px; background: var(--text); color: var(--bg); font-size: 12px; }
.card-add { min-height: 38px; padding: 0 14px; background: var(--blue); color: #fff; font-size: 12px; }
.product-badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 6px 9px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 10px; font-weight: 740; }

.compare-card { padding: 42px; display: flex; align-items: end; justify-content: space-between; gap: 30px; border-radius: 36px; background: linear-gradient(135deg, var(--solid), var(--soft)); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.compare-card > div { max-width: 780px; }
.compare-card p:not(.eyebrow) { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.5; }

.benefits h2 { max-width: 760px; }
.benefit-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.benefit-grid article { min-height: 210px; padding: 24px; display: flex; flex-direction: column; border-radius: 26px; background: var(--solid); border: 1px solid var(--line); }
.benefit-icon { width: 40px; height: 40px; margin-bottom: auto; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-weight: 760; }
.benefit-grid strong { margin-top: 26px; font-size: 17px; }
.benefit-grid p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.contact-card { padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; border-radius: 38px; background: var(--solid); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.contact-address { margin: 22px 0 28px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.map-placeholder { min-height: 300px; padding: 32px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 29px; background: radial-gradient(circle at 52% 45%, rgba(0,113,227,.22), transparent 10%), linear-gradient(145deg, var(--soft), var(--bg)); border: 1px solid var(--line); }
.map-placeholder::before, .map-placeholder::after { content: ""; position: absolute; inset: 18% -10%; border-top: 1px solid var(--line-strong); transform: rotate(-11deg); }
.map-placeholder::after { inset: 48% -10%; transform: rotate(13deg); }
.map-dot { position: absolute; top: 42%; left: 53%; width: 20px; height: 20px; border: 6px solid var(--blue); border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px rgba(0,113,227,.12); }
.map-placeholder strong, .map-placeholder span { position: relative; z-index: 2; }
.map-placeholder span { max-width: 330px; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 34px 0 95px; }
.footer-inner { width: min(1320px, calc(100% - 48px)); margin: 0 auto; display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.footer-inner > div { display: flex; flex-direction: column; gap: 4px; }
.footer-inner span { color: var(--muted); font-size: 12px; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer nav a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.admin-access-dot { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.admin-access-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 62%, transparent); box-shadow: inset 0 0 0 1px var(--line); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.admin-access-dot:hover::before, .admin-access-dot:focus-visible::before { transform: scale(1.2); background: var(--muted); box-shadow: 0 0 0 7px var(--soft); }

.mobile-bottom-nav { display: none; }
.compare-fab { position: fixed; z-index: 45; right: 22px; bottom: 22px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 26px; background: var(--text); color: var(--bg); box-shadow: 0 15px 45px rgba(0,0,0,.22); cursor: pointer; }
.compare-fab span { margin-left: 4px; opacity: .7; }

.sheet-dialog { width: min(920px, calc(100% - 28px)); max-height: min(88vh, 920px); padding: 34px; border: 1px solid var(--line); border-radius: 30px; background: var(--solid); color: var(--text); box-shadow: 0 35px 100px rgba(0,0,0,.26); overflow: auto; }
.sheet-dialog::backdrop { background: rgba(0,0,0,.35); backdrop-filter: blur(10px); }
.wide-dialog { width: min(1220px, calc(100% - 28px)); }
.search-dialog { width: min(720px, calc(100% - 28px)); }
.admin-access-dialog { width: min(440px, calc(100% - 28px)); }
.admin-access-form { margin-top: 24px; }
.dialog-close { position: sticky; z-index: 5; top: 0; float: right; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--soft); color: var(--text); cursor: pointer; font-size: 22px; }
.dialog-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.switch-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.switch-line input { accent-color: var(--blue); }
.search-modal-field { margin: 26px 0 14px; }
.search-modal-field input { width: 100%; font-size: 18px; }
.search-results { display: grid; gap: 8px; }
.search-result { width: 100%; min-height: 58px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover { background: var(--soft); }
.search-result small { color: var(--muted); }
.model-hero { margin-bottom: 35px; display: grid; grid-template-columns: 330px 1fr; gap: 32px; align-items: center; }
.model-hero-visual { min-height: 340px; display: grid; place-items: center; border-radius: 26px; background: var(--soft); overflow: hidden; }
.model-title h2 { margin-bottom: 16px; }
.model-description { color: var(--muted); line-height: 1.55; }
.offer-list { display: grid; gap: 9px; margin: 12px 0 35px; }
.offer-row { padding: 14px; display: grid; grid-template-columns: minmax(180px,1.4fr) minmax(120px,1fr) auto auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 18px; }
.status-pill { color: var(--muted); font-size: 12px; }
.offer-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 730; white-space: nowrap; }
.old-price { color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: line-through; }
.spec-list { margin-top: 12px; border-top: 1px solid var(--line); }
.spec-line { padding: 13px 0; display: grid; grid-template-columns: minmax(160px,.8fr) 1.2fr; gap: 22px; border-bottom: 1px solid var(--line); }
.spec-line span { color: var(--muted); }
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare-table th, .compare-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
.compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; z-index: 2; background: var(--solid); }
.compare-table .different td { background: color-mix(in srgb, var(--blue) 6%, var(--solid)); }
.cart-line { padding: 14px 0; display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.cart-line small { display: block; margin-top: 4px; color: var(--muted); }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); color: var(--text); cursor: pointer; }
.cart-total { margin: 20px 0; display: flex; justify-content: space-between; font-size: 20px; }
.stack-form { display: grid; gap: 14px; }
.stack-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.stack-form input { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); outline: 0; }
.order-contact-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.telegram-order-btn { min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; background: #229ed9; color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 10px 28px rgba(34,158,217,.24); }
.telegram-order-btn:hover { background: #168dcc; transform: translateY(-1px); }
.telegram-order-btn.disabled, .telegram-order-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.telegram-order-btn .ui-icon { width: 19px; height: 19px; }
.stack-form .callback-choice { min-height: 52px; padding: 0 16px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--text); font-size: 14px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.stack-form .callback-choice input { position: absolute; width: 1px; height: 1px; min-height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.callback-check { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--solid); }
.callback-choice input:checked + .callback-check { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 16px var(--neon-blue); }
.callback-choice input:checked + .callback-check::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.telegram-order-hint { margin: -3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-message { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.empty-state { padding: 32px; border: 1px dashed var(--line-strong); border-radius: 20px; color: var(--muted); text-align: center; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 20px); max-width: min(420px, calc(100% - 30px)); padding: 12px 16px; border-radius: 18px; background: var(--text); color: var(--bg); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; box-shadow: 0 18px 55px rgba(0,0,0,.25); font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { grid-template-columns: 1fr 430px; gap: 34px; }
  .hero h1 { font-size: clamp(68px, 10vw, 112px); }
  .catalog-grid, .popular-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .catalog-tools { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .section-shell, .header-inner, .footer-inner { width: min(100% - 28px, 1320px); }
  .site-header { height: 58px; }
  .header-actions .counter-icon:nth-of-type(2) { display: none; }
  .header-icon { min-width: 36px; height: 36px; padding: 0 7px; }
  .hero { min-height: auto; padding: 62px 0 44px; grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-glow { order: 2; min-height: 300px; border-radius: 34px; }
  .hero h1 { font-size: clamp(66px, 21vw, 112px); }
  .hero-contacts, .hero-buttons { justify-content: center; }
  .hero-text { margin-left: auto; margin-right: auto; font-size: 17px; }
  .phone { width: 135px; height: 270px; border-radius: 31px; border-width: 6px; }
  .phone::before { width: 53px; height: 15px; }
  .phone::after { inset: 12px; border-radius: 20px; }
  .phone-back { left: 24%; top: 35px; }
  .phone-front { right: 24%; top: 24px; }
  .category-section, .popular-section, .catalog-section, .benefits, .contacts, .compare-promo { padding: 52px 0; }
  .section-title-row { align-items: flex-start; }
  .section-title-row h2, .benefits h2, .contact-card h2, .compare-card h2, dialog h2 { font-size: clamp(34px, 10vw, 50px); }
  .category-pills, .chip-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .category-pills::-webkit-scrollbar, .chip-row::-webkit-scrollbar { display: none; }
  .category-pill, .chip { flex: 0 0 auto; }
  .popular-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .popular-card { min-height: 275px; padding: 18px; }
  .product-card { min-height: 390px; padding: 11px; border-radius: 21px; }
  .product-visual { height: 205px; margin-bottom: 12px; border-radius: 16px; }
  .product-card h3 { font-size: 14px; }
  .card-meta { font-size: 10px; }
  .card-bottom { align-items: flex-start; flex-direction: column; }
  .card-buttons { width: 100%; }
  .card-open, .card-add { flex: 1; padding: 0 8px; }
  .catalog-tools { width: 100%; }
  .search-field { flex: 1 1 100%; }
  .search-field input { width: 100%; }
  select, .stock-toggle { flex: 1 1 calc(50% - 5px); }
  .compare-card { padding: 28px; align-items: flex-start; flex-direction: column; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: 185px; }
  .contact-card { padding: 26px; grid-template-columns: 1fr; border-radius: 28px; }
  .map-placeholder { min-height: 240px; }
  .footer { padding-bottom: 100px; }
  .footer-inner { flex-direction: column; }
  .mobile-bottom-nav { position: fixed; z-index: 48; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); height: 64px; padding: 5px 7px; display: grid; grid-template-columns: repeat(6,1fr); border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--solid) 88%, transparent); backdrop-filter: blur(22px); box-shadow: 0 18px 50px rgba(0,0,0,.16); }
  .mobile-bottom-nav a, .mobile-bottom-nav button { border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; cursor: pointer; }
  .mobile-bottom-nav span { font-size: 18px; line-height: 1; }
  .mobile-bottom-nav small { font-size: 9px; }
  .compare-fab { bottom: 84px; right: 14px; }
  .sheet-dialog { padding: 24px 18px; border-radius: 24px; }
  .model-hero { grid-template-columns: 1fr; }
  .model-hero-visual { min-height: 260px; }
  .offer-row { grid-template-columns: 1fr auto; }
  .offer-row > div:nth-child(2) { grid-column: 1 / 2; }
  .offer-price { grid-column: 2; grid-row: 1; }
  .offer-row .primary-btn { grid-column: 2; grid-row: 2; }
  .dialog-title-row { align-items: flex-start; flex-direction: column; }
  .cart-line { grid-template-columns: 1fr auto; }
  .cart-line > strong { grid-column: 1 / -1; }
  .order-contact-row { grid-template-columns: 1fr; }
  .stack-form .callback-choice { justify-content: center; }
}

@media (max-width: 430px) {
  .header-actions { gap: 0; }
  .header-icon { min-width: 33px; font-size: 17px; }
  .counter-icon span { transform: scale(.9); }
  .hero-contacts span { display: none; }
  .hero-contacts { flex-direction: column; }
  .popular-grid, .catalog-grid { grid-template-columns: 1fr 1fr; }
  .product-visual { height: 180px; }
  .phone-placeholder { width: 77px; height: 154px; border-radius: 20px; }
}

/* pro | Apple brand and the complete Series → model → offer hierarchy. */
.brand-mark { display: inline-flex; align-items: center; gap: .18em; color: var(--text); text-decoration: none; text-transform: none; white-space: nowrap; }
.brand-pro { font-weight: 420; letter-spacing: -.045em; }
.brand-divider { width: .035em; min-width: 2px; height: .92em; margin: 0 .12em; border-radius: 2px; background: #1fcf83; box-shadow: 0 0 12px rgba(31,207,131,.24); }
.brand-apple { font-weight: 820; letter-spacing: -.055em; }
.hero .hero-brand { display: inline-flex; gap: .1em; font-size: clamp(72px, 9.4vw, 142px); letter-spacing: 0; }
.hero-brand .brand-divider { min-width: 4px; }
.why-phone-kicker .brand-mark { color: var(--text); font-size: 14px; }
.why-phone-kicker .brand-divider { min-width: 1px; }

.desktop-nav { gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--solid) 76%, transparent); box-shadow: var(--shadow-soft); }
.desktop-nav a, .desktop-nav button { min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 999px; }
.desktop-nav a:hover, .desktop-nav button:hover { background: var(--soft); }
.desktop-nav .assistant-nav-link { min-height: 36px; padding: 0 14px; }
.category-pill, .chip { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.popular-card { color: var(--text); text-decoration: none; }

.catalog-breadcrumb { min-height: 34px; margin: 2px 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.catalog-breadcrumb a { color: var(--muted); text-decoration: none; }
.catalog-breadcrumb a:hover { color: var(--blue); }
.catalog-breadcrumb strong { color: var(--text); }
.detail-breadcrumb { margin-bottom: 28px; }

.catalog-level-card { min-height: 430px; padding: 22px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 34px; background: var(--solid); color: var(--text); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.catalog-level-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); box-shadow: var(--shadow); }
.level-card-visual { min-height: 275px; margin-bottom: 22px; display: grid; place-items: center; overflow: hidden; border-radius: 25px; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--blue) 10%, var(--solid)), var(--soft) 72%); }
.level-card-visual img { width: 100%; height: 275px; object-fit: contain; transition: transform .25s ease; }
.catalog-level-card:hover .level-card-visual img { transform: translateY(-4px) scale(1.02); }
.catalog-level-card h3 { margin: 0; font-size: 27px; line-height: 1; letter-spacing: -.045em; }
.catalog-level-card span:not(.eyebrow) { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.catalog-level-card b { color: var(--blue); font-size: 18px; }

.product-card { cursor: pointer; }
.card-stretched-link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.product-card:focus-within { outline: 3px solid color-mix(in srgb, var(--blue) 35%, transparent); outline-offset: 3px; }
.product-card .card-actions, .product-card .card-buttons { position: relative; z-index: 3; }
.product-card .card-actions { position: absolute; }
.product-card .card-open { text-decoration: none; }
.product-card .card-add, .product-card .round-mini { position: relative; z-index: 4; }

.model-listing-head { min-height: 350px; padding: 42px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 42px; background: radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 34%), linear-gradient(145deg, var(--solid), var(--soft)); box-shadow: var(--shadow-soft); }
.model-listing-head h1 { margin: 0; font-size: clamp(54px, 7vw, 96px); line-height: .9; letter-spacing: -.068em; }
.model-listing-head p:not(.eyebrow) { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.model-heading-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.model-heading-actions button { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--solid) 82%, transparent); color: var(--text); cursor: pointer; }
.model-heading-actions button:hover { background: var(--soft-2); }
.model-heading-actions .ui-icon { width: 17px; height: 17px; }
.model-listing-photo { height: 300px; display: grid; place-items: center; }
.model-listing-photo img { width: 100%; height: 100%; object-fit: contain; }
.model-offer-listing { padding-top: 70px; }
.listing-title-row { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.listing-title-row h2 { margin: 0; font-size: clamp(39px, 5vw, 68px); line-height: .96; letter-spacing: -.055em; }
.listing-title-row > span { color: var(--muted); }
.offer-filter-bar { margin-bottom: 25px; padding: 14px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; border: 1px solid var(--line); border-radius: 28px; background: var(--solid); box-shadow: var(--shadow-soft); }
.offer-filter-bar label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.offer-filter-bar select { width: 100%; min-width: 0; }
.model-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.offer-detail-variant { margin: 15px 0 0; color: var(--blue); font-size: 18px; font-weight: 740; }
.offer-detail-facts { margin: 22px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.offer-detail-facts > div { padding: 15px; display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 18px; background: var(--solid); }
.offer-detail-facts span { color: var(--muted); font-size: 11px; }
.offer-detail-facts strong { font-size: 14px; }
.all-model-offers-link { width: 100%; margin-top: 10px; }
.search-result { color: var(--text); text-decoration: none; }

@media (max-width: 1100px) {
  .offer-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero .hero-brand { font-size: clamp(60px, 20vw, 102px); }
  .catalog-level-card { min-height: 345px; padding: 14px; border-radius: 26px; }
  .level-card-visual, .level-card-visual img { min-height: 210px; height: 210px; }
  .catalog-level-card h3 { font-size: 22px; }
  .model-listing-head { min-height: 0; padding: 28px 22px; grid-template-columns: 1fr; border-radius: 30px; }
  .model-listing-head h1 { font-size: clamp(48px, 15vw, 74px); }
  .model-listing-photo { height: 230px; order: -1; }
  .offer-filter-bar { grid-template-columns: 1fr 1fr; padding: 10px; border-radius: 22px; }
  .model-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-title-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .brand { font-size: 17px; }
  .model-product-grid { grid-template-columns: 1fr; }
  .offer-filter-bar { grid-template-columns: 1fr; }
  .catalog-level-card { min-height: 325px; }
}


/* === Pro Apple visual refresh: clearer icons, softer geometry, stronger comparison/offers === */
:root {
  --radius: 34px;
  --neon-blue: rgba(0,113,227,.24);
  --neon-violet: rgba(142,72,255,.18);
}

.section-shell { width: min(1380px, calc(100% - 52px)); }
.header-inner, .footer-inner { width: min(1380px, calc(100% - 52px)); }
.site-header { height: 68px; }
.brand { font-size: 19px; }
.desktop-nav a, .desktop-nav button { font-size: 14px; }
.header-icon { min-width: 43px; height: 43px; border-radius: 23px; }
.ui-icon { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-icon .ui-icon { width: 22px; height: 22px; }
.header-icon:hover { background: color-mix(in srgb, var(--blue) 8%, var(--soft)); color: var(--blue); box-shadow: 0 0 22px var(--neon-blue); }
.header-icon.has-items { color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--solid)); box-shadow: 0 0 20px var(--neon-blue); }
.counter-icon span { top: -1px; right: -1px; }

.hero { min-height: 700px; padding: 104px 0 88px; grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr); gap: 68px; }
.hero h1 { font-size: clamp(82px, 10.4vw, 158px); }
.hero-contacts { margin-top: 31px; gap: 10px; }
.hero-contact-link { min-height: 43px; padding: 0 14px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--solid) 82%, transparent); box-shadow: var(--shadow-soft); color: var(--muted); transition: transform .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.hero-contact-link .ui-icon { width: 18px; height: 18px; color: var(--blue); }
.hero-contact-link:hover { color: var(--text); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); transform: translateY(-1px); box-shadow: 0 9px 26px var(--neon-blue); }
.hero-text { margin-top: 28px; font-size: clamp(18px, 1.65vw, 23px); font-weight: 510; }
.primary-btn, .secondary-btn, .danger-btn, .card-open, .card-add { min-height: 50px; padding: 0 22px; border-radius: 999px; font-size: 15px; }
.primary-btn { box-shadow: 0 10px 28px var(--neon-blue); }
.primary-btn:hover { box-shadow: 0 13px 34px rgba(0,113,227,.32); transform: translateY(-1px); }
.secondary-btn:hover { border-color: color-mix(in srgb, var(--blue) 28%, var(--line)); box-shadow: 0 9px 24px rgba(0,113,227,.1); }
.icon-btn { gap: 9px; }
.icon-btn .ui-icon { width: 19px; height: 19px; }

.hero-glow { min-height: 540px; padding: 34px; display: grid; place-items: center; border-radius: 62px; background: radial-gradient(circle at 50% 35%, rgba(0,113,227,.25), transparent 34%), radial-gradient(circle at 28% 72%, rgba(142,72,255,.2), transparent 34%), linear-gradient(145deg, var(--solid), var(--soft)); box-shadow: inset 0 0 0 1px var(--line), 0 26px 80px rgba(0,0,0,.07); }
.hero-glow::before { content: ""; position: absolute; width: 68%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(0,113,227,.22), rgba(142,72,255,.08) 45%, transparent 72%); filter: blur(18px); }
.hero-glow::after { inset: auto 14% 4%; height: 11%; filter: blur(30px); background: rgba(0,0,0,.18); }
.why-phone { position: relative; z-index: 2; width: min(345px, 82%); min-height: 465px; padding: 9px; border-radius: 54px; background: var(--text); box-shadow: 0 34px 75px rgba(0,0,0,.22), 0 0 58px var(--neon-blue), 0 0 86px var(--neon-violet); transform: rotate(1.5deg); }
.why-phone-screen { position: relative; min-height: 447px; padding: 66px 24px 24px; overflow: hidden; border-radius: 45px; background: radial-gradient(circle at 75% 12%, rgba(0,113,227,.19), transparent 28%), radial-gradient(circle at 12% 90%, rgba(142,72,255,.15), transparent 32%), linear-gradient(160deg, var(--solid), color-mix(in srgb, var(--soft) 64%, var(--solid))); color: var(--text); }
.why-phone-notch { position: absolute; top: 15px; left: 50%; width: 92px; height: 27px; transform: translateX(-50%); border-radius: 18px; background: var(--text); }
.why-phone-kicker { margin: 0 0 8px; color: var(--blue); font-size: 12px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.why-phone h2 { margin: 0; max-width: 260px; font-size: 32px; line-height: .98; letter-spacing: -.05em; }
.why-phone-list { margin: 25px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.why-phone-list li { padding: 12px 13px; display: grid; grid-template-columns: 29px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 19px; background: color-mix(in srgb, var(--solid) 76%, transparent); box-shadow: 0 7px 20px rgba(0,0,0,.04); }
.why-check { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 0 18px var(--neon-blue); }
.why-phone-list strong { display: block; font-size: 14px; line-height: 1.18; }
.why-phone-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }

/* Hero phone: a tall, recognisable smartphone rather than a nearly square card. */
.hero-glow { min-height: 625px; }
.why-phone { width: min(322px, 76%); min-height: 548px; border-radius: 52px; transform: rotate(1.2deg); }
.why-phone::before, .why-phone::after { content: ""; position: absolute; z-index: 1; left: -3px; width: 4px; border-radius: 4px 0 0 4px; background: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.why-phone::before { top: 116px; height: 52px; box-shadow: 0 70px 0 color-mix(in srgb, var(--text) 82%, var(--muted)); }
.why-phone::after { left: auto; right: -3px; top: 156px; height: 78px; border-radius: 0 4px 4px 0; }
.why-phone-screen { position: relative; z-index: 2; min-height: 530px; padding: 76px 22px 25px; border-radius: 43px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--solid) 18%, transparent); }
.why-phone-notch { top: 15px; width: 94px; height: 26px; }
.why-phone h2 { max-width: 245px; font-size: 31px; }
.why-phone-list { margin-top: 31px; gap: 12px; }
.why-phone-list li { padding: 14px 13px; border-radius: 20px; }

/* One visual language for search, sorting and availability controls. */
.catalog-tools { gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 30px; background: color-mix(in srgb, var(--solid) 68%, transparent); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.catalog-control { position: relative; min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--solid) 92%, var(--soft)); color: var(--text); box-shadow: 0 5px 18px rgba(0,0,0,.035); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease; }
.catalog-control:hover { border-color: color-mix(in srgb, var(--blue) 32%, var(--line)); transform: translateY(-1px); }
.catalog-control:focus-within { border-color: color-mix(in srgb, var(--blue) 58%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 11%, transparent), 0 8px 24px rgba(0,113,227,.09); }
.catalog-control > .ui-icon { flex: 0 0 auto; width: 18px; height: 18px; color: var(--blue); }
.catalog-control.search-field { padding: 0 16px; }
.catalog-control.search-field input { width: clamp(150px, 15vw, 210px); }
.select-field { min-width: 220px; padding-right: 14px; }
.select-field select { width: 100%; min-height: 48px; padding: 0 32px 0 0; border: 0; border-radius: 0; appearance: none; -webkit-appearance: none; background: transparent; color: var(--text); cursor: pointer; }
.select-chevron { position: absolute; right: 17px; width: 8px; height: 8px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: translateY(-2px) rotate(45deg); pointer-events: none; }
.stock-toggle.catalog-control { padding: 0 17px; gap: 9px; }
.stock-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.stock-check { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--solid); transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.stock-toggle input:checked + .stock-check { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 18px var(--neon-blue); }
.stock-toggle input:checked + .stock-check::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.stock-toggle:has(input:checked) { border-color: color-mix(in srgb, var(--blue) 42%, var(--line)); background: color-mix(in srgb, var(--blue) 7%, var(--solid)); }
.chip-row { padding: 8px; gap: 7px; border: 1px solid var(--line); border-radius: 29px; background: color-mix(in srgb, var(--solid) 62%, transparent); box-shadow: var(--shadow-soft); }
.chip-row .chip { min-height: 42px; box-shadow: none; }
.chip-row .chip.active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 8px 22px var(--neon-blue); }

.category-section, .popular-section, .catalog-section, .benefits, .contacts, .compare-promo { padding: 78px 0; }
.section-title-row h2, .benefits h2, .contact-card h2, .compare-card h2, dialog h2 { font-size: clamp(39px, 4.7vw, 66px); }
.category-pill, .chip { min-height: 46px; padding: 0 18px; border-radius: 999px; font-size: 14px; }
.popular-card { min-height: 360px; padding: 26px; border-radius: 36px; }
.popular-card h3 { font-size: 23px; }
.product-card { min-height: 500px; padding: 20px; border-radius: var(--radius); }
.product-visual { height: 270px; border-radius: 27px; }
.product-card h3 { font-size: 19px; }
.card-meta { font-size: 13px; }
.price { font-size: 20px; }
.card-open, .card-add { min-height: 42px; padding: 0 15px; font-size: 13px; }
.round-mini { width: 39px; height: 39px; }
.round-mini .ui-icon { width: 19px; height: 19px; }
.round-mini[data-compare].active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 0 24px var(--neon-blue); }

.compare-card { padding: 48px; border-radius: 44px; box-shadow: var(--shadow-soft), inset 0 0 45px color-mix(in srgb, var(--blue) 4%, transparent); }
.compare-card p:not(.eyebrow) { font-size: 18px; color: color-mix(in srgb, var(--text) 72%, var(--muted)); }
.benefit-grid article { min-height: 225px; padding: 27px; border-radius: 32px; }
.benefit-icon { width: 44px; height: 44px; }
.benefit-icon .ui-icon { width: 20px; height: 20px; }
.benefit-grid strong { font-size: 18px; }
.benefit-grid p { font-size: 14px; }

.contact-card { padding: 50px; border-radius: 46px; }
.contact-lines { margin: 25px 0 31px; display: grid; gap: 9px; }
.contact-line { width: fit-content; min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--muted); text-decoration: none; font-size: 17px; transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.contact-line .ui-icon { width: 18px; height: 18px; color: var(--blue); }
.contact-line:hover { color: var(--text); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); transform: translateX(2px); }
.map-placeholder { border-radius: 35px; }

.compare-fab { min-height: 54px; padding: 0 20px; display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; background: var(--blue); color: #fff; box-shadow: 0 16px 46px rgba(0,113,227,.32), 0 0 28px var(--neon-blue); }
.compare-fab .ui-icon { width: 20px; height: 20px; }
.compare-fab strong { font-weight: 720; }
.compare-fab span { min-width: 24px; height: 24px; margin-left: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); opacity: 1; }
.sheet-dialog { border-radius: 38px; }
.wide-dialog { width: min(1280px, calc(100% - 28px)); }
.offer-row { padding: 18px; gap: 17px; border-radius: 24px; font-size: 15px; background: color-mix(in srgb, var(--solid) 92%, var(--soft)); box-shadow: 0 6px 18px rgba(0,0,0,.035); }
.offer-row strong { font-size: 16px; }
.status-pill { font-size: 13px; }
.offer-price { font-size: 17px; color: var(--text); }
.old-price { font-size: 12px; }
.compare-table { min-width: 780px; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 15px 14px; font-size: 14px; }
.compare-table th { font-size: 15px; font-weight: 750; }
.compare-table td:first-child { font-weight: 680; color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.compare-table .different td { background: color-mix(in srgb, var(--blue) 13%, var(--solid)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--blue) 16%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--blue) 16%, transparent); }
.switch-line { font-size: 14px; font-weight: 620; color: var(--text); }
.cart-line { padding: 17px 0; }
.stack-form input { border-radius: 19px; }
.empty-state { border-radius: 27px; }

.mobile-bottom-nav .ui-icon { width: 20px; height: 20px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 450px; gap: 38px; }
  .why-phone { width: min(310px, 76%); }
  .catalog-tools { width: 100%; justify-content: stretch; }
  .catalog-control { flex: 1 1 210px; }
}

@media (max-width: 760px) {
  .section-shell, .header-inner, .footer-inner { width: min(100% - 28px, 1380px); }
  .site-header { height: 60px; }
  .hero { padding: 66px 0 48px; }
  .hero-glow { min-height: 555px; border-radius: 40px; padding: 24px; }
  .why-phone { width: min(290px, 78%); min-height: 490px; border-radius: 45px; }
  .why-phone-screen { min-height: 472px; padding: 62px 18px 20px; border-radius: 37px; }
  .why-phone-notch { top: 12px; width: 78px; height: 23px; }
  .why-phone h2 { font-size: 27px; }
  .why-phone-list { margin-top: 22px; gap: 9px; }
  .why-phone-list li { padding: 11px 10px; border-radius: 16px; }
  .why-phone-list small { font-size: 10px; }
  .hero-contact-link { min-height: 41px; }
  .category-section, .popular-section, .catalog-section, .benefits, .contacts, .compare-promo { padding: 56px 0; }
  .popular-card { min-height: 290px; }
  .product-card { min-height: 410px; border-radius: 26px; }
  .product-visual { height: 210px; border-radius: 21px; }
  .product-card h3 { font-size: 15px; }
  .card-meta { font-size: 11px; }
  .compare-card { padding: 31px; border-radius: 34px; }
  .contact-card { padding: 29px; border-radius: 34px; }
  .contact-line { max-width: 100%; font-size: 15px; }
  .sheet-dialog { border-radius: 30px; }
  .offer-row { padding: 16px; border-radius: 21px; }
  .catalog-tools { padding: 7px; border-radius: 26px; }
  .catalog-control, .select-field { flex: 1 1 100%; width: 100%; min-width: 0; }
  .catalog-control.search-field input { width: 100%; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 25px; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip-row .chip { flex: 0 0 auto; }
}

@media (max-width: 430px) {
  .hero-contact-link { width: 100%; max-width: 320px; justify-content: center; }
  .why-phone { width: min(280px, 86%); }
  .why-phone h2 { font-size: 25px; }
  .header-icon { min-width: 35px; height: 37px; }
  .header-icon .ui-icon { width: 20px; height: 20px; }
}

/* Stable single-column hero for phones, large phones and narrow tablet windows. */
@media (max-width: 900px) {
  .catalog-hierarchy { grid-template-columns: 1fr; }
  .hero {
    min-height: auto;
    padding: 62px 0 72px;
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    text-align: center;
  }
  .hero-copy { order: 1; width: 100%; max-width: 680px; margin: 0 auto; }
  .hero h1 { font-size: clamp(62px, 14vw, 102px); line-height: .88; }
  .hero-contacts, .hero-buttons { justify-content: center; }
  .hero-text { max-width: 590px; margin: 24px auto 28px; font-size: clamp(16px, 2.7vw, 19px); }
  .hero-glow {
    order: 2;
    width: 100%;
    max-width: 620px;
    min-height: 660px;
    margin: 0 auto;
    padding: 34px 20px;
    border-radius: 46px;
  }
  .why-phone {
    width: min(300px, 72vw);
    min-height: 578px;
    padding: 8px;
    border-radius: 49px;
    transform: rotate(.55deg);
  }
  .why-phone-screen {
    min-height: 562px;
    padding: 72px 19px 22px;
    border-radius: 41px;
  }
  .why-phone-notch { top: 14px; width: 84px; height: 24px; }
  .why-phone-kicker { font-size: 11px; }
  .why-phone h2 { max-width: 240px; margin-left: auto; margin-right: auto; font-size: 29px; }
  .why-phone-list { margin-top: 28px; gap: 11px; }
  .why-phone-list li { padding: 13px 12px; text-align: left; }
  .why-phone-list strong { font-size: 13px; }
  .why-phone-list small { font-size: 10px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 46px; gap: 36px; }
  .hero h1 { font-size: clamp(61px, 21vw, 88px); }
  .hero-contacts { flex-direction: column; }
  .hero-contacts span { display: inline; }
  .hero-contact-link { width: 100%; max-width: 340px; justify-content: center; }
  .hero-buttons { display: grid; grid-template-columns: 1fr; }
  .hero-buttons a { width: 100%; }
  .hero-glow { min-height: 635px; padding: 28px 14px; border-radius: 36px; }
  .why-phone { width: min(270px, 80vw); min-height: 570px; border-radius: 46px; }
  .why-phone-screen { min-height: 554px; padding: 68px 17px 20px; border-radius: 38px; }
  .why-phone h2 { font-size: 26px; }
  .why-phone-list { margin-top: 25px; gap: 10px; }
  .why-phone-list li { padding: 12px 10px; grid-template-columns: 27px 1fr; gap: 9px; }
  .why-check { width: 27px; height: 27px; }
}

/* Guided product assistant */
.assistant-dialog { width: min(880px, calc(100% - 28px)); }
.assistant-heading { display: flex; align-items: center; gap: 16px; padding-right: 45px; }
.assistant-avatar { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, var(--blue), #8459ef); color: #fff; font-size: 24px; box-shadow: 0 12px 34px var(--neon-blue); }
.assistant-heading h2 { font-size: clamp(34px, 5vw, 58px); }
.assistant-bubble { max-width: 720px; margin: 24px 0; padding: 17px 19px; border-radius: 8px 22px 22px 22px; background: color-mix(in srgb, var(--blue) 9%, var(--solid)); color: color-mix(in srgb, var(--text) 84%, var(--muted)); line-height: 1.5; }
.assistant-form { display: grid; gap: 22px; }
.assistant-form fieldset { margin: 0; padding: 0; border: 0; }
.assistant-form legend { margin-bottom: 11px; font-size: 17px; font-weight: 720; }
.assistant-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.assistant-choices label { cursor: pointer; }
.assistant-choices input { position: absolute; opacity: 0; pointer-events: none; }
.assistant-choices label > span { min-height: 84px; padding: 14px; display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); font-weight: 680; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.assistant-choices label > span:hover { transform: translateY(-1px); }
.assistant-choices small { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.35; }
.assistant-choices input:checked + span { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 11%, var(--solid)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 9%, transparent); }
.assistant-budget { width: min(290px, 100%); min-height: 54px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
.assistant-budget input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 20px; font-weight: 720; }
.assistant-budget span { color: var(--muted); }
.assistant-budget-chips { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 7px; }
.assistant-budget-chips button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--solid); color: var(--muted); cursor: pointer; }
.assistant-budget-chips button:hover { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.assistant-results { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.assistant-notice { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.assistant-result-list { display: grid; gap: 10px; }
.assistant-result-card { display: grid; grid-template-columns: 105px 1fr auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 24px; background: var(--soft); }
.assistant-result-visual { height: 105px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: var(--solid); }
.assistant-result-visual img { width: 100%; height: 100%; object-fit: contain; }
.assistant-result-visual .phone-placeholder { width: 41px; height: 82px; border-width: 3px; border-radius: 11px; }
.assistant-result-visual .phone-placeholder::before { width: 16px; height: 5px; }
.assistant-result-copy h3 { margin: 0 0 5px; font-size: 20px; }
.assistant-result-copy p:not(.eyebrow) { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.assistant-result-copy strong { font-size: 17px; }
.assistant-result-actions { display: grid; gap: 7px; }
.assistant-result-actions .primary-btn, .assistant-result-actions .secondary-btn { min-height: 40px; padding: 0 15px; font-size: 13px; }
.assistant-empty { padding: 25px; border: 1px dashed var(--line-strong); border-radius: 22px; text-align: center; }
.assistant-empty strong { font-size: 20px; }
.assistant-empty p { color: var(--muted); line-height: 1.5; }

@media (max-width: 760px) {
  .assistant-choices { grid-template-columns: 1fr 1fr; }
  .assistant-result-card { grid-template-columns: 82px 1fr; }
  .assistant-result-visual { height: 82px; }
  .assistant-result-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
  .assistant-choices { grid-template-columns: 1fr; }
  .assistant-heading { align-items: flex-start; }
  .assistant-avatar { width: 46px; height: 46px; border-radius: 15px; }
}

/* Offer cards: each catalog tile is one purchasable configuration. */
.offer-card-specs { min-height: 64px; display: grid; gap: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.offer-card-specs strong { color: var(--text); }
.card-stock, .stock-line { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--muted); font-size: 12px; font-weight: 650; }
.card-stock > span, .stock-line > i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #8e8e93; box-shadow: 0 0 0 4px color-mix(in srgb, #8e8e93 12%, transparent); }
.card-stock.stock-in_stock > span, .card-stock.stock-low > span, .stock-line.stock-in_stock > i, .stock-line.stock-low > i { background: #27a65b; box-shadow: 0 0 0 4px rgba(39,166,91,.12); }
.card-stock.stock-preorder > span, .stock-line.stock-preorder > i { background: #d18b00; box-shadow: 0 0 0 4px rgba(209,139,0,.12); }
.card-stock.stock-out_of_stock > span, .stock-line.stock-out_of_stock > i { background: #d70015; box-shadow: 0 0 0 4px rgba(215,0,21,.1); }
.card-old-price { color: var(--muted); font-size: 12px; font-weight: 520; text-decoration: line-through; }
.product-card .price { min-width: 102px; }
.product-card .card-bottom { align-items: flex-end; flex-direction: column; }
.product-card .card-buttons { width: 100%; }
.product-card .card-buttons > * { flex: 1 1 0; }

/* Dedicated model page and variant configurator. */
.model-page-view { min-height: 80vh; padding: 104px 0 90px; }
.model-page-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.model-back { min-height: 42px; margin-bottom: 25px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--solid); color: var(--text); cursor: pointer; font-weight: 650; }
.model-back:hover { background: var(--soft); }
.model-product-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(410px, .96fr); gap: 38px; align-items: start; }
.model-gallery { position: sticky; top: 86px; }
.model-main-photo { min-height: 610px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 44px; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--blue) 9%, var(--solid)), var(--soft) 68%); box-shadow: var(--shadow-soft); }
.model-main-photo img { width: 100%; height: 100%; max-height: 610px; object-fit: contain; }
.model-main-photo .phone-placeholder { width: 170px; height: 340px; border-width: 8px; border-radius: 43px; }
.model-main-photo .device-placeholder { transform: scale(1.45); }
.model-thumbnails { margin-top: 12px; display: flex; gap: 9px; overflow-x: auto; }
.model-thumbnails button { width: 82px; height: 82px; flex: 0 0 auto; padding: 5px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--solid); cursor: pointer; }
.model-thumbnails button.active { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 11%, transparent); }
.model-thumbnails img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.model-configurator { padding: 18px 4px 0; }
.model-configurator h1 { margin: 0; font-size: clamp(48px, 5.6vw, 82px); line-height: .92; letter-spacing: -.065em; }
.model-configurator .model-description { margin: 22px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.variant-group { margin: 0; padding: 19px 0; border: 0; border-top: 1px solid var(--line); }
.variant-group legend { width: 100%; margin-bottom: 12px; padding: 0; color: var(--muted); font-size: 13px; }
.variant-group legend strong { color: var(--text); }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option { min-height: 45px; padding: 0 15px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--solid); color: var(--text); cursor: pointer; font-weight: 650; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.variant-option:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.variant-option.active { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--solid)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 9%, transparent); }
.variant-option.unavailable { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.color-dot { width: 24px; height: 24px; display: inline-block; border: 2px solid var(--solid); border-radius: 50%; background: #9b9ba0; box-shadow: 0 0 0 1px var(--line-strong); }
.color-dot.swatch-black { background: #1d1d1f; }.color-dot.swatch-white { background: #f2f2f0; }.color-dot.swatch-silver { background: #d8d9da; }
.color-dot.swatch-natural { background: #b7aa95; }.color-dot.swatch-blue { background: #426783; }.color-dot.swatch-orange { background: #e87542; }
.color-dot.swatch-green { background: #8fae9b; }.color-dot.swatch-yellow { background: #e6cf66; }.color-dot.swatch-pink { background: #e4a8b5; }
.color-dot.swatch-purple { background: #8a7fa2; }.color-dot.swatch-red { background: #b82c34; }.color-dot.swatch-gold { background: #d6c4a9; }
.selected-offer-summary { margin-top: 12px; padding: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 26px; background: var(--soft); }
.selected-offer-summary small { margin-top: 8px; display: block; color: var(--muted); line-height: 1.45; }
.selected-price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.selected-price strong { font-size: 28px; letter-spacing: -.035em; }
.selected-price span { margin-top: 4px; color: #168447; font-size: 12px; font-weight: 680; }
.model-old-price { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.model-add-button { width: 100%; min-height: 56px; margin-top: 10px; border-radius: 21px; font-size: 16px; }
.model-quick-actions { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.model-quick-actions button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 18px; background: var(--solid); color: var(--text); cursor: pointer; }
.model-quick-actions .ui-icon { width: 18px; height: 18px; }
.all-offers-section, .model-specifications { padding-top: 92px; }
.all-offers-section > h2, .model-specifications > h2 { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.model-offer-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.model-offer-card { min-height: 98px; padding: 18px; display: grid; grid-template-columns: 1fr auto auto; gap: 15px; align-items: center; border: 1px solid var(--line); border-radius: 24px; background: var(--solid); color: var(--text); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.model-offer-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.model-offer-card.active { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, var(--solid)); }
.model-offer-card.sold-out { opacity: .62; }
.model-offer-card span:first-child { display: grid; gap: 5px; }
.model-offer-card small { color: var(--muted); }
.model-offer-status { color: var(--muted); font-size: 12px; }
.spec-category-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.spec-category { overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: var(--solid); box-shadow: var(--shadow-soft); }
.spec-category h2 { margin: 0; padding: 23px 24px 18px; font-size: 22px; letter-spacing: -.035em; }
.spec-category .spec-line { padding: 14px 24px; grid-template-columns: minmax(135px, .8fr) minmax(0, 1.2fr); }
.spec-category .spec-line:last-child { border-bottom: 0; }

/* Full comparison: sticky models, categories and visible differences. */
.wide-dialog { width: min(1440px, calc(100% - 22px)); max-height: 94vh; }
.compare-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.compare-wrap { max-height: calc(94vh - 155px); border: 1px solid var(--line); border-radius: 24px; }
.compare-table { min-width: 900px; table-layout: fixed; }
.compare-table th:first-child, .compare-table td:first-child { width: 220px; }
.compare-table thead th { position: sticky; z-index: 5; top: 0; background: color-mix(in srgb, var(--solid) 94%, var(--soft)); box-shadow: inset 0 -1px 0 var(--line); }
.compare-table thead th:first-child { z-index: 7; left: 0; }
.compare-table tbody tr:not(.compare-category-row):nth-child(odd) td { background: color-mix(in srgb, var(--soft) 55%, var(--solid)); }
.compare-table tbody tr.different td:not(:first-child) { background: color-mix(in srgb, var(--blue) 13%, var(--solid)); font-weight: 650; }
.compare-category-row th { padding: 17px 14px 10px; border-bottom: 2px solid var(--line-strong); background: var(--solid); color: var(--blue); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.compare-model-head { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.compare-model-head button { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); color: var(--muted); cursor: pointer; font-size: 18px; }
.compare-model-head button:hover { color: var(--danger); }

body.model-route .compare-fab { display: none; }

@media (max-width: 900px) {
  .model-page-view { padding-top: 84px; }
  .model-product-layout { grid-template-columns: 1fr; }
  .model-gallery { position: static; }
  .model-main-photo { min-height: 500px; }
  .model-configurator { padding-top: 4px; }
  .spec-category-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .catalog-hierarchy { margin: 18px 0; gap: 8px; }
  .hierarchy-panel { padding: 9px; border-radius: 26px; }
  .model-page-shell { width: min(100% - 28px, 1320px); }
  .model-main-photo { min-height: 400px; border-radius: 30px; }
  .model-main-photo img { max-height: 400px; }
  .model-main-photo .phone-placeholder { width: 118px; height: 236px; border-width: 6px; border-radius: 30px; }
  .model-configurator h1 { font-size: clamp(44px, 14vw, 68px); }
  .selected-offer-summary { align-items: flex-start; flex-direction: column; }
  .selected-price { align-items: flex-start; }
  .model-quick-actions { grid-template-columns: 1fr; }
  .model-offer-grid { grid-template-columns: 1fr; }
  .model-offer-card { grid-template-columns: 1fr auto; }
  .model-offer-status { grid-column: 1; grid-row: 2; }
  .model-offer-card > strong { grid-column: 2; grid-row: 1 / 3; }
  .all-offers-section, .model-specifications { padding-top: 66px; }
  .spec-category { border-radius: 24px; }
  .spec-category .spec-line { grid-template-columns: 1fr; gap: 6px; padding: 14px 18px; }
  .compare-title-row { align-items: flex-start; flex-direction: column; }
  .compare-dialog-actions { justify-content: flex-start; }
  .compare-wrap { max-height: calc(94vh - 205px); }
  .compare-table { min-width: 760px; }
  .compare-table th:first-child, .compare-table td:first-child { width: 165px; }
  .compare-table th, .compare-table td { min-width: 220px; }
  .compare-table th:first-child, .compare-table td:first-child { min-width: 165px; }
  body.model-route .mobile-bottom-nav { display: none; }
}

@media (max-width: 430px) {
  .variant-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .variant-option { width: 100%; justify-content: center; padding: 0 10px; font-size: 12px; }
  .color-option { justify-content: flex-start; }
  .model-main-photo { min-height: 350px; }
}
