/* TegMed storefront — theme overrides + layout. Loads after base.css (Nocturne component layer). */
:root {
  --color-bg: #f4f6f9; --color-surface: #fdfdfe; --color-text: #17202e; --color-accent: #1667c7; --color-divider: #dde2e9;
  --color-accent-100: #0b2a52; --color-accent-200: #123f78; --color-accent-300: #1a56a0; --color-accent-400: #1459ad; --color-accent-500: #1667c7;
  --color-accent-600: #4b8ad6; --color-accent-700: #8fb6e8; --color-accent-800: #dce9f8; --color-accent-900: #eef4fc;
  --color-neutral-100: #141a24; --color-neutral-200: #2a3240; --color-neutral-300: #3f4858; --color-neutral-400: #56606f; --color-neutral-500: #6a7383;
  --color-neutral-600: #9aa2b0; --color-neutral-700: #c3c9d3; --color-neutral-800: #e6e9ee; --color-neutral-900: #f0f3f7;
  --shadow-sm: 0 0 0 1px #e3e7ed;
  --shadow-md: 0 0 0 1px #dde2e9, 0 6px 18px rgba(20,30,50,.08);
  --shadow-lg: 0 0 0 1px #d3d9e2, 0 16px 40px rgba(20,30,50,.16);
  --on-accent: #fdfdfe; --navy: #0b2a52; --navy-ink: #c9d7ea;
  --pad-x: clamp(16px, 4vw, 48px); --sec-gap: 48px;
}
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--color-bg); color: var(--color-text); text-wrap: pretty; }
a { color: #1667c7; } a:hover { color: #1a56a0; }
::selection { background: #cfe0f6; }
button { font: inherit; }
[hidden] { display: none !important; }
.sr-skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: var(--radius-md); background: var(--color-accent); color: var(--on-accent); text-decoration: none; }
.sr-skip:focus { top: 8px; color: var(--on-accent); }
.unbtn { all: unset; box-sizing: border-box; cursor: pointer; }
.unbtn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.tnum { font-feature-settings: 'tnum' 1; }
.muted { color: var(--color-neutral-500); }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--pad-x); }
.surface { border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--color-accent); color: var(--on-accent); border-color: var(--color-accent); }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--color-accent-400); color: var(--on-accent); }
.btn-soft { background: var(--color-surface); border-color: var(--color-divider); }
.link-accent { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--color-accent); }
.link-accent:hover { color: var(--color-accent-300); }
@keyframes tgIn { from { transform: translateX(24px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes tgDrop { from { transform: translateY(-6px); opacity: 0 } to { transform: none; opacity: 1 } }

/* top bar */
.topbar { background: var(--navy); color: var(--navy-ink); font-size: 12px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding-block: 7px; }
.topbar a { color: inherit; text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: var(--on-accent); }
.topbar-note { margin-left: auto; display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* header */
.header { position: sticky; top: 0; z-index: 30; background: var(--color-surface); box-shadow: 0 1px 0 var(--color-divider); }
.header-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none; flex-shrink: 0; min-width: 0; }
.logo:hover { color: var(--color-text); }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--color-accent); color: var(--on-accent); font-size: 11px; letter-spacing: .04em; font-weight: 600; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-size: 18px; font-weight: 600; color: var(--color-accent-100); }
.logo-sub { font-size: 11px; color: var(--color-neutral-500); white-space: nowrap; }
.cat-btn { min-height: 42px; padding: 0 16px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.cat-btn .ph { font-size: 17px; }
.lbl-short { display: none; }
.search { position: relative; flex: 1 1 260px; min-width: 0; }
.search > .ph { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--color-neutral-500); font-size: 17px; pointer-events: none; }
.search .input { padding-left: 38px; min-height: 42px; background: var(--color-neutral-900); border-color: var(--color-neutral-800); }
.phone { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--color-text); text-decoration: none; flex-shrink: 0; }
.phone:hover { color: var(--color-accent); }
.phone > .ph { font-size: 22px; color: var(--color-accent); }
.phone-text { display: flex; flex-direction: column; line-height: 1.2; }
.phone-num { font-size: 15px; font-weight: 600; white-space: nowrap; font-feature-settings: 'tnum' 1; }
.phone-sub { font-size: 11px; color: var(--color-neutral-500); white-space: nowrap; }
.phone-icon { display: none; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--color-divider); color: var(--color-accent); text-decoration: none; }
.phone-icon .ph { font-size: 21px; }
.cart-btn { min-height: 42px; min-width: 42px; padding: 0 12px; gap: 10px; white-space: nowrap; flex-shrink: 0; border-color: var(--color-divider); }
.cart-ico { position: relative; display: flex; }
.cart-ico .ph { font-size: 22px; color: var(--color-accent); }
.badge { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d6453d; color: var(--on-accent); font-size: 11px; line-height: 18px; text-align: center; font-feature-settings: 'tnum' 1; }
.cart-sum { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.cart-sum small { font-size: 11px; color: var(--color-neutral-500); }
.cart-sum b { font-size: 13px; font-weight: 600; font-feature-settings: 'tnum' 1; }
.header-break { display: none; }

/* catalog mega menu */
.mega-backdrop { position: fixed; inset: 0; z-index: 1; }
.mega { position: absolute; top: calc(100% - 4px); left: var(--pad-x); right: var(--pad-x); z-index: 2; max-width: 900px; max-height: calc(100vh - 140px); overflow: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, 1fr); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-lg); animation: tgDrop .16s ease-out; }
.mega-list { padding: 6px; background: var(--color-neutral-900); display: flex; flex-direction: column; gap: 2px; }
.mega-item { display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 44px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; color: var(--color-text); text-decoration: none; }
.mega-item:hover, .mega-item.is-on { color: var(--color-accent); }
.mega-item.is-on { background: var(--color-surface); }
.mega-item > .ph:first-child { font-size: 18px; color: var(--color-accent); }
.mega-item span { flex: 1; }
.mega-item .ph-caret-right { font-size: 12px; color: var(--color-neutral-600); }
.mega-sub { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mega-title { display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 600; color: var(--color-text); text-decoration: none; }
.mega-title:hover { color: var(--color-accent); }
.mega-title small { font-size: 12px; font-weight: 400; color: var(--color-neutral-500); white-space: nowrap; }
.mega-title .ph { font-size: 14px; color: var(--color-accent); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 24px; }
.mega-group { display: flex; flex-direction: column; gap: 3px; padding: 4px 0; }
.mega-group a { color: var(--color-text); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.35; }
.mega-group a.sub { font-size: 13px; font-weight: 400; color: var(--color-neutral-500); padding-left: 10px; }
.mega-group a:hover { color: var(--color-accent); }

/* common sections */
.section { padding-bottom: var(--sec-gap); }
.h2 { font-size: clamp(22px, 2.4vw, 26px); margin: 0; font-weight: 600; }
.h2-sm { font-size: clamp(20px, 2.2vw, 24px); margin: 0; font-weight: 600; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sec-head > a { font-size: 14px; text-decoration: none; white-space: nowrap; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--color-neutral-500); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--color-accent); }
.crumbs .ph { font-size: 10px; }

/* hero */
.hero { padding: 20px 0 8px; }
.hero-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: center; gap: 20px; padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius-lg); background: radial-gradient(600px 380px at 95% 110%, #d3e4fa, transparent 70%), linear-gradient(135deg, #eaf2fd, #f7faff); }
.hero-copy { display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-300); font-weight: 500; }
.hero h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0; color: var(--color-accent-100); font-weight: 600; }
.hero p { font-size: 15px; line-height: 1.6; max-width: 46ch; margin: 0; color: var(--color-neutral-300); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.hero-actions .btn { min-height: 44px; padding: 0 20px; font-size: 14px; white-space: nowrap; }
.btn-phone { font-weight: 600; font-feature-settings: 'tnum' 1; color: var(--color-accent-300); border-color: var(--color-accent-700); background: var(--color-surface); }
.btn-phone:hover { color: var(--color-accent-200); background: var(--color-accent-900); }
.hero-media { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.hero-media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(20,40,80,.14)); }

.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; margin: 12px 0 32px; padding: 14px 20px; }
.perk { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.perk > .ph { font-size: 26px; color: var(--color-accent); }
.perk b { display: block; font-size: 14px; font-weight: 600; }
.perk small { font-size: 13px; color: var(--color-neutral-500); }

/* popular categories */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.cat-tile-head { display: flex; align-items: center; gap: 12px; color: var(--color-text); text-decoration: none; }
.cat-tile-head:hover { color: var(--color-accent); }
.cat-tile-ico { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--color-accent-900); }
.cat-tile-ico .ph { font-size: 24px; color: var(--color-accent); }
.cat-tile-head b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.cat-tile-head small { font-size: 12px; color: var(--color-neutral-500); font-feature-settings: 'tnum' 1; }
.cat-tile-links { display: flex; flex-direction: column; gap: 5px; }
.cat-tile-links a { font-size: 13px; line-height: 1.35; color: var(--color-neutral-400); text-decoration: none; }
.cat-tile-links a:hover { color: var(--color-accent); }
.cat-tile-links a.more { color: var(--color-accent); }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(240px, calc((100% - 32px) / 3)), 1fr)); gap: 16px; }
.grid-home { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, calc(50% - 6px)), 1fr)); gap: 12px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.pcard:hover { box-shadow: var(--shadow-md); }
.pcard-media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; margin: 8px 8px 0; border-radius: var(--radius-md); background: #fdfdfe; box-shadow: inset 0 0 0 1px var(--color-neutral-800); overflow: hidden; }
.pcard-media img { width: 94%; height: 94%; object-fit: contain; color: transparent; font-size: 0; }
.pcard-media .ph { font-size: 44px; color: var(--color-neutral-700); }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; min-width: 0; }
.pcard-meta { font-size: 12px; color: var(--color-neutral-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-name { flex: 1; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--color-text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name:hover { color: var(--color-accent); }
.pcard-price { font-size: 18px; font-weight: 600; margin-top: 2px; font-feature-settings: 'tnum' 1; }
.pcard-price.is-muted { color: var(--color-neutral-400); }
.pcard-add { min-height: 40px; margin-top: 6px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
.qty { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; min-height: 40px; border-radius: var(--radius-md); background: var(--color-accent-900); color: var(--color-accent-300); box-shadow: inset 0 0 0 1px var(--color-accent-800); }
.qty .btn { width: 40px; height: 40px; padding: 0; flex-shrink: 0; color: inherit; }
.qty span { font-size: 13px; font-weight: 500; white-space: nowrap; font-feature-settings: 'tnum' 1; }
.grid-sm .pcard-media img { width: 88%; height: 88%; }
.grid-sm .pcard-price { font-size: 16px; }

/* catalog */
.cat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 18px 0 16px; }
.cat-head-l { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cat-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.share-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-accent-300); }
.share-btn:hover { color: var(--color-accent); }
.sort { position: relative; }
.sort-btn { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 14px; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); font-size: 14px; white-space: nowrap; }
.sort-btn:hover, .sort-btn[aria-expanded="true"] { box-shadow: 0 0 0 1px var(--color-accent); }
.sort-btn > .ph:first-child { font-size: 17px; color: var(--color-accent); }
.sort-btn .ph:last-child { font-size: 12px; color: var(--color-neutral-500); margin-left: 2px; }
.sort-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; min-width: 100%; width: max-content; padding: 6px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; animation: tgDrop .14s ease-out; }
.sort-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-md); font-size: 14px; white-space: nowrap; }
.sort-opt:hover { background: var(--color-accent-900); color: var(--color-accent); }
.sort-opt[aria-selected="true"] { background: var(--color-accent-900); color: var(--color-accent); font-weight: 600; }
.sort-opt .ph { font-size: 16px; width: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; }
.chip { min-height: 32px; padding: 0 12px; flex-shrink: 0; white-space: nowrap; background: var(--color-surface); border-color: var(--color-divider); }
.chip small { font-size: 12px; color: var(--color-neutral-500); font-feature-settings: 'tnum' 1; }
.cat-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.filters-toggle { display: none; }
.side { flex: 1 1 240px; max-width: 290px; display: flex; flex-direction: column; gap: 18px; padding: 16px; }
.side-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.tree { display: flex; flex-direction: column; }
.tree a { display: flex; align-items: flex-start; gap: 6px; padding: 5px 10px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.35; color: var(--color-text); text-decoration: none; }
.tree a:hover { color: var(--color-accent); }
.tree a.d1 { padding-left: 24px; font-size: 13px; } .tree a.d2 { padding-left: 38px; font-size: 13px; } .tree a.d3 { padding-left: 52px; font-size: 13px; }
.tree a.dim { color: var(--color-neutral-300); }
.tree a.open { font-weight: 600; }
.tree a.is-on { color: var(--color-accent); background: var(--color-accent-900); font-weight: 600; }
.tree .ph { flex-shrink: 0; width: 11px; margin-top: 4px; font-size: 11px; color: var(--color-neutral-600); }
.tree span { flex: 1; }
.tree small { font-size: 12px; color: var(--color-neutral-500); font-feature-settings: 'tnum' 1; }
.results { flex: 999 1 480px; min-width: 0; }
.empty { padding: 48px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty b { font-size: 18px; font-weight: 600; }
.empty p { font-size: 14px; color: var(--color-neutral-500); max-width: 48ch; margin: 0; }
.more-row { display: flex; justify-content: center; margin-top: 20px; }
.more-row .btn { min-height: 44px; padding: 0 24px; font-size: 14px; white-space: nowrap; }

/* SEO text */
.seo { margin-bottom: var(--sec-gap); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.seo h2 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; margin: 0; font-weight: 600; max-width: 40ch; }
.seo-body { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; max-width: 78ch; font-size: 15px; line-height: 1.65; color: var(--color-neutral-300); }
.seo-body.is-clipped { max-height: 190px; }
.seo-body.is-clipped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(to bottom, transparent, var(--color-surface)); pointer-events: none; }
.seo-body h3 { font-size: 17px; line-height: 1.3; margin: 8px 0 0; font-weight: 600; color: var(--color-text); }
.seo-body p { margin: 0; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ticks li { display: flex; gap: 10px; }
.ticks .ph { color: var(--color-accent); margin-top: 5px; flex-shrink: 0; }
.seo-toggle { align-self: flex-start; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--color-accent); }
.seo-toggle:hover { color: var(--color-accent-300); }

/* info pages */
.info { padding: 18px 0 40px; display: flex; flex-direction: column; gap: 16px; }
.info-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.info-nav { flex: 1 1 240px; max-width: 290px; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.info-nav-title { font-size: 13px; font-weight: 600; padding: 8px 10px 6px; }
.info-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.3; text-decoration: none; color: var(--color-text); }
.info-nav a:hover { color: var(--color-accent); }
.info-nav a[aria-current="page"] { color: var(--color-accent); background: var(--color-accent-900); font-weight: 600; }
.info-nav a .ph { font-size: 18px; color: var(--color-accent); flex-shrink: 0; }
.call-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--color-neutral-900); color: var(--color-text); text-decoration: none; }
.call-card:hover { color: var(--color-accent); }
.call-card > .ph { font-size: 20px; color: var(--color-accent); }
.call-card span { display: flex; flex-direction: column; line-height: 1.25; }
.call-card b { font-size: 14px; font-weight: 600; font-feature-settings: 'tnum' 1; }
.call-card small { font-size: 12px; color: var(--color-neutral-500); }
.info-nav .call-card { margin-top: 8px; }
.article { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 40px); }
.article h1 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.015em; margin: 0; font-weight: 600; color: var(--color-accent-100); max-width: 28ch; }
.article .lead { margin: 0 0 6px; font-size: 16px; line-height: 1.65; color: var(--color-neutral-300); max-width: 70ch; }
.article h2 { font-size: 19px; line-height: 1.3; margin: 18px 0 0; font-weight: 600; }
.article p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--color-neutral-300); max-width: 72ch; }
.article p a { white-space: nowrap; }
.numbered { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; max-width: 78ch; font-size: 15px; line-height: 1.65; }
.numbered span:first-child { color: var(--color-neutral-500); font-feature-settings: 'tnum' 1; }
.numbered span:last-child { color: var(--color-neutral-300); }
.dots { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; max-width: 72ch; }
.dots li { display: flex; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--color-neutral-300); }
.dots li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--color-accent); }
.note { display: flex; gap: 12px; max-width: 76ch; padding: 14px 16px; border-radius: var(--radius-md); background: var(--color-accent-900); box-shadow: inset 0 0 0 1px var(--color-accent-800); font-size: 14px; line-height: 1.6; color: var(--color-accent-200); }
.note .ph { font-size: 20px; color: var(--color-accent); flex-shrink: 0; margin-top: 1px; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.info-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius-md); background: var(--color-neutral-900); color: var(--color-text); text-decoration: none; }
.info-card > .ph { font-size: 24px; color: var(--color-accent); margin-bottom: 4px; }
.info-card b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.info-card small { font-size: 13px; line-height: 1.5; color: var(--color-neutral-500); }
a.info-card { background: var(--color-accent-900); box-shadow: inset 0 0 0 1px var(--color-accent-800); }
a.info-card:hover { box-shadow: inset 0 0 0 1px var(--color-accent); color: var(--color-accent); }
a.info-card b { font-size: 17px; font-feature-settings: 'tnum' 1; }

/* product page */
.pdp { padding: 18px 0 40px; display: flex; flex-direction: column; gap: 16px; }
.pdp-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 10px; padding: 12px; min-width: 0; }
.stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-md); background: #fdfdfe; box-shadow: inset 0 0 0 1px var(--color-neutral-800); overflow: hidden; touch-action: pan-y; }
.track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; }
.slide img { width: 86%; height: 86%; object-fit: contain; }
.stage-empty { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-empty .ph { font-size: 96px; color: var(--color-neutral-700); }
.stage-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-surface); box-shadow: var(--shadow-md); color: var(--color-text); }
.stage-nav:hover { color: var(--color-accent); }
.stage-nav.prev { left: 10px; } .stage-nav.next { right: 10px; }
.stage-nav .ph { font-size: 18px; }
.stage-count { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 12px; background: rgba(23,32,46,.72); color: var(--on-accent); font-size: 12px; font-feature-settings: 'tnum' 1; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.thumb { flex: 0 0 68px; height: 68px; border-radius: var(--radius-md); background: #fdfdfe; box-shadow: inset 0 0 0 1px var(--color-neutral-800); display: grid; place-items: center; }
.thumb:hover { box-shadow: 0 0 0 2px var(--color-accent-700); }
.thumb.is-on { box-shadow: 0 0 0 2px var(--color-accent); }
.thumb img { width: 84%; height: 84%; object-fit: contain; }
.buybox { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; padding: clamp(16px, 2.4vw, 24px); min-width: 0; }
.buybox .tag { align-self: flex-start; background: var(--color-accent-800); color: var(--color-accent-200); }
.buybox h1 { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.22; letter-spacing: -.01em; margin: 0; font-weight: 600; }
.keyspecs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.keyspecs dt { color: var(--color-neutral-500); } .keyspecs dd { margin: 0; font-feature-settings: 'tnum' 1; }
.buy { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; box-shadow: 0 -1px 0 var(--color-neutral-800); }
.buy-price { font-size: 30px; font-weight: 600; font-feature-settings: 'tnum' 1; }
.buy-price.is-muted { color: var(--color-neutral-400); }
.buy .btn-accent { min-height: 48px; font-size: 15px; white-space: nowrap; }
.buy-row { display: flex; flex-wrap: wrap; gap: 8px; }
.buy-row .qty { flex: 1 1 180px; min-height: 48px; margin: 0; }
.buy-row .qty .btn { width: 48px; height: 48px; }
.buy-row .qty span { font-size: 14px; }
.buy-row .btn-accent { flex: 1 1 160px; }
.assure { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--color-neutral-400); }
.assure span { display: flex; gap: 10px; align-items: center; }
.assure .ph { font-size: 18px; color: var(--color-accent); }
.pdp-info { padding: clamp(16px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.pdp-info h2 { font-size: 20px; margin: 0; font-weight: 600; }
.pdp-info h2 + h2, .pdp-info .desc + h2 { margin-top: 18px; }
.desc { display: flex; flex-direction: column; gap: 12px; max-width: 76ch; font-size: 15px; line-height: 1.65; color: var(--color-neutral-300); }
.desc p { margin: 0; }
.specs { max-width: 760px; display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 0 0 1px var(--color-neutral-800); }
.specs div { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.specs div:nth-child(odd) { background: var(--color-neutral-900); }
.specs dt { color: var(--color-neutral-500); } .specs dd { margin: 0; font-feature-settings: 'tnum' 1; }
.related { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }

/* viewed + CTA */
.viewed { display: flex; flex-direction: column; gap: 14px; }
.viewed .sec-head { margin: 0; }
.clear-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-neutral-500); }
.clear-btn:hover { color: var(--color-accent); }
.cta { margin-bottom: var(--sec-gap); padding: clamp(22px, 3.5vw, 36px); border-radius: var(--radius-lg); background: linear-gradient(135deg, #eaf2fd, #f7faff); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px 40px; align-items: center; }
.cta h2 { font-size: clamp(20px, 2.2vw, 24px); margin: 0 0 6px; font-weight: 600; color: var(--color-accent-100); }
.cta p { font-size: 14px; line-height: 1.6; margin: 0; color: var(--color-neutral-300); max-width: 52ch; }
.cta .btn { justify-self: start; min-height: 52px; padding: 0 24px; font-size: 18px; font-weight: 600; white-space: nowrap; gap: 10px; font-feature-settings: 'tnum' 1; }
.cta .btn .ph { font-size: 22px; }

/* footer */
.footer { background: var(--navy); color: var(--navy-ink); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, calc(50% - 12px)), 1fr)); gap: 28px 24px; padding-block: 40px 24px; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col > b { font-weight: 600; color: var(--on-accent); margin-bottom: 4px; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--on-accent); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-mark { width: 34px; height: 34px; background: var(--on-accent); color: var(--navy); }
.footer-brand b { font-size: 18px; font-weight: 600; color: var(--on-accent); }
.footer-about { line-height: 1.6; max-width: 32ch; }
.footer-phone { color: var(--on-accent) !important; font-size: 18px; font-weight: 600; font-feature-settings: 'tnum' 1; }
.messengers { display: flex; gap: 8px; flex-wrap: wrap; }
.msg { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius-md); color: var(--on-accent) !important; font-size: 13px; font-weight: 500; }
.msg .ph-fill { font-size: 16px; }
.msg-viber { background: #7360f2; } .msg-viber:hover { background: #5e4bd8; }
.msg-tg { background: #2aabee; } .msg-tg:hover { background: #1b93d3; }
.footer-legal { padding-block: 16px 24px; font-size: 12px; color: #8fa6c6; box-shadow: 0 -1px 0 #1d3d6b; }

.fab { position: fixed; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 30; display: flex; flex-direction: column; gap: 10px; }
.fab a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--on-accent); text-decoration: none; box-shadow: 0 6px 18px rgba(20,30,50,.22); transition: transform .15s; }
.fab a:hover { transform: scale(1.08); color: var(--on-accent); }
.fab .ph-fill { font-size: 26px; }

/* cart drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(11,26,46,.45); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--color-surface); box-shadow: var(--shadow-lg); animation: tgIn .22s ease-out; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; box-shadow: 0 1px 0 var(--color-divider); }
.drawer-head b { font-size: 18px; font-weight: 600; }
.drawer-scroll { flex: 1; overflow: auto; padding: 0 20px; }
.drawer-foot { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -1px 0 var(--color-divider); }
.drawer-foot .btn-accent { min-height: 46px; font-size: 15px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total span { font-size: 14px; color: var(--color-neutral-400); }
.total b { font-size: 20px; font-weight: 600; font-feature-settings: 'tnum' 1; }
.total-note { font-size: 12px; color: var(--color-neutral-500); text-align: right; margin-top: -6px; }
.cart-empty { padding: 48px 0; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.cart-empty .ph { font-size: 40px; color: var(--color-neutral-700); }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 0; box-shadow: 0 1px 0 var(--color-neutral-800); }
.line-img { grid-row: span 2; width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--radius-md); background: #fdfdfe; box-shadow: inset 0 0 0 1px var(--color-neutral-800); overflow: hidden; }
.line-img img { width: 86%; height: 86%; object-fit: contain; }
.line-img .ph { font-size: 26px; color: var(--color-neutral-700); }
.line-name { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--color-text); text-decoration: none; }
.line-name:hover { color: var(--color-accent); }
.line-meta { font-size: 12px; color: var(--color-neutral-500); }
.line-sum { font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; font-feature-settings: 'tnum' 1; }
.stepper { display: flex; align-items: center; border: 1px solid var(--color-divider); border-radius: var(--radius-md); justify-self: start; }
.stepper .btn { width: 36px; height: 36px; padding: 0; }
.stepper span { min-width: 24px; text-align: center; font-size: 13px; font-feature-settings: 'tnum' 1; }
.line-del { justify-self: end; color: var(--color-neutral-500); }
.order-form { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.order-fields { flex: 1; overflow: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.order-fields .btn-ghost { align-self: flex-start; }
.field-error { font-size: 12px; color: #c0392f; margin-top: 6px; }
.order-hint { padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-neutral-900); font-size: 13px; color: var(--color-neutral-400); line-height: 1.5; }
.done { flex: 1; padding: 48px 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.done-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e3f4ea; }
.done-ico .ph { font-size: 30px; color: #1e7a45; }
.done b { font-size: 20px; font-weight: 600; }
.done p { font-size: 14px; line-height: 1.6; color: var(--color-neutral-400); max-width: 34ch; margin: 0; }
.done .btn { min-height: 40px; padding: 0 18px; margin-top: 8px; }
body.is-locked { overflow: hidden; }

/* tablet */
@media (max-width: 1099px) {
  .search { flex-basis: 100%; order: 10; }
}

/* phone */
@media (max-width: 719px) {
  :root { --sec-gap: 32px; }
  .topbar .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .topbar .wrap::-webkit-scrollbar { display: none; }
  .topbar-note { display: none; }
  .header-row { gap: 10px; padding-block: 10px; }
  .header-break { display: block; flex: 0 0 100%; height: 0; order: 3; }
  .cat-btn { order: 4; padding: 0 14px; }
  .lbl-long { display: none; } .lbl-short { display: inline; }
  .search { order: 5; flex: 1 1 0; }
  .phone { display: none; }
  .phone-icon { display: grid; order: 1; margin-left: auto; }
  .cart-btn { order: 2; }
  .cart-sum { display: none; }
  .mega { grid-template-columns: minmax(0, 1fr); }
  .mega-list { background: var(--color-surface); }
  .mega-sub { display: none; }

  .hero { padding: 12px 0 4px; }
  .hero-media { aspect-ratio: 16 / 9; max-height: 200px; }
  .perks { padding: 6px 16px; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tile { padding: 12px; }
  .cat-tile-links { display: none; }

  .sort-btn .sort-prefix { display: none; }
  .sort-list { right: auto; left: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad-x)); padding-inline: var(--pad-x); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { min-height: 38px; }
  .cat-layout { gap: 12px; }
  .filters-toggle { display: flex; flex: 1 1 100%; min-height: 44px; justify-content: space-between; padding: 0 14px; background: var(--color-surface); border-color: var(--color-divider); font-size: 14px; }
  .filters-toggle span { display: flex; align-items: center; gap: 8px; }
  .filters-toggle .ph-funnel-simple { font-size: 17px; color: var(--color-accent); }
  .side { max-width: 100%; display: none; }
  .side.is-open { display: flex; }
  .grid, .grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard-body { padding: 10px 10px 12px; }
  .pcard-name { font-size: 13px; }
  .pcard-price { font-size: 16px; }
  .qty .qty-prefix { display: none; }

  .info-nav { max-width: 100%; position: static; }
  .buybox { position: static; }
  .fab { transform: scale(.85); transform-origin: bottom right; }
}
