/* ── Self-hosted fonts ── */
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/fonts/JetBrainsMono-400-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/fonts/JetBrainsMono-400-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('/fonts/JetBrainsMono-600-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('/fonts/JetBrainsMono-600-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'Manrope'; font-weight: 300; font-style: normal; font-display: swap;
  src: url('/fonts/Manrope-400-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 300; font-style: normal; font-display: swap;
  src: url('/fonts/Manrope-400-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/fonts/Manrope-400-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/fonts/Manrope-400-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('/fonts/Manrope-500-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('/fonts/Manrope-500-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('/fonts/Manrope-600-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('/fonts/Manrope-600-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('/fonts/Manrope-700-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('/fonts/Manrope-700-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'Oswald'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/fonts/Oswald-400-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/fonts/Oswald-400-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('/fonts/Oswald-400-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('/fonts/Oswald-400-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('/fonts/Oswald-600-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('/fonts/Oswald-600-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('/fonts/Oswald-700-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('/fonts/Oswald-700-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── Весь остальной CSS — 1:1 из статичного сайта ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Zero-config fallback only - amper/theme (see /cp/theme-settings) overrides
   every value below at runtime once configured. Kept in sync with that
   module's 'permjakov-dark' preset so disabling the module, or a fresh
   install before migrations run, still renders identically to today. */
:root {
    --bg:           #060609;
    --bg-card:      #0C0C13;
    --bg-card-h:    #111119;
    --accent:       #FF1744;
    --accent-dim:   rgba(255,23,68,.12);
    --accent-2:     #00E5FF;
    --accent-2-dim: rgba(0,229,255,.08);
    --text:         #F0F0EC;
    --text-mid:     #9999AA;
    --text-muted:   #52526A;
    --text-b:       #c8c8d5;
    --border:       #18181F;
    --border-b:     #26263A;
    --f-display:    'Oswald', sans-serif;
    --f-body:       'Manrope', sans-serif;
    --f-mono:       'JetBrains Mono', monospace;
    --ease:         cubic-bezier(.25,.8,.25,1);
}

html { scroll-behavior: smooth; }

body { background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }

body::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999;
}

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
section { padding: 50px 0; }

.section-label { display: flex; align-items: center; gap: 18px; margin-bottom: 64px; }
.section-num { font-family: var(--f-mono); font-size: 16px; color: var(--accent); letter-spacing: .12em; }
.section-title-wrap { display: flex; flex-direction: column; }
.section-title { font-size: clamp(36px, 5vw, 62px); font-weight: 700; line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.section-line { height: 1px; background: linear-gradient(90deg, var(--accent), transparent); margin-top: 8px; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 22px 0; transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(24px); padding: 14px 0; border-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; z-index: 201; display: flex; align-items: center; gap: 10px; }
.nav-logo span { color: var(--accent); }
.nav-logo-img { height: 32px; width: auto; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-link { font-family: var(--f-mono); font-size: 16px; color: var(--text); letter-spacing: .07em; text-transform: uppercase; transition: color .3s; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width .3s var(--ease); }
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-item { display: flex; align-items: center; position: relative; }
.nav-caret { display: inline-block; margin-left: 5px; font-size: 11px; transition: transform .25s var(--ease); }
.nav-item-has-children:hover .nav-caret, .nav-item-has-children:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; padding-top: 14px; min-width: 220px; z-index: 50; }
.nav-dropdown-inner { background: var(--bg-card); border: 1px solid var(--border); padding: 8px 0; }
.nav-item-has-children:hover .nav-dropdown, .nav-item-has-children:focus-within .nav-dropdown { display: flex; }
.nav-dropdown-link { display: block; padding: 11px 20px; font-family: var(--f-mono); font-size: 14px; color: var(--text); letter-spacing: .05em; text-transform: uppercase; transition: color .25s var(--ease), background .25s var(--ease); }
.nav-dropdown-link:hover { color: var(--accent); background: var(--bg-card-h); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone { font-family: var(--f-mono); font-size: 16px; color: var(--text); transition: color .3s; white-space: nowrap; }
.nav-phone:hover { color: var(--text); }
.nav-phone-wrap { position: relative; flex-shrink: 0; }
.nav-phone-wrap .nav-phone { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-phone-chevron { flex-shrink: 0; opacity: .6; }
.nav-phone-dropdown { position: absolute; left: 50%; top: calc(100% + 12px); min-width: 240px; background: var(--bg-card-h); border: 1px solid var(--border-b); z-index: 250; box-shadow: 0 20px 50px rgba(0,0,0,.5); padding: 6px 0; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.nav-phone-dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-phone-wrap:hover .nav-phone-dropdown, .nav-phone-wrap:focus-within .nav-phone-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-phone-option { display: block; padding: 10px 16px; font-family: var(--f-mono); font-size: 14px; color: var(--text-mid); white-space: nowrap; text-align: center; transition: all .2s var(--ease); }
.nav-phone-option:hover { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }
.nav-phone-dept { color: var(--text-muted); }

/* amper/cities: city switcher dropdown - same hover-flyout mechanics as .nav-phone-wrap above */
.nav-city-wrap { position: relative; flex-shrink: 0; }
.nav-city { display: flex; align-items: center; gap: 4px; flex-shrink: 0; cursor: pointer; font-size: 14px; color: var(--text); }
.nav-city-dropdown { position: absolute; left: 50%; top: calc(100% + 12px); min-width: 200px; background: var(--bg-card-h); border: 1px solid var(--border-b); z-index: 250; box-shadow: 0 20px 50px rgba(0,0,0,.5); padding: 6px 0; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.nav-city-dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-city-wrap:hover .nav-city-dropdown, .nav-city-wrap:focus-within .nav-city-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-city-option-current { color: var(--accent); }

/* amper/cities: office map embed on the contact page */
.contact-map { margin-top: 48px; width: 100%; aspect-ratio: 16 / 7; border: 1px solid var(--border); overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; display: block; }
@media (max-width: 768px) { .contact-map { aspect-ratio: 4 / 5; } }
/* content-blocks "social_links" block with "show_map" on - its own grid,
   deliberately NOT .contact-grid (shared with home.blade.php and
   become-client.blade.php - reusing it would mean any future tweak here
   leaks into those unrelated pages). Narrower left column than
   .contact-grid's 1fr/1.6fr split, since this column is a plain contact
   list (no form to fit), so the map gets more room. */
.cb-contact-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 56px; }
@media (max-width: 768px) { .cb-contact-grid { grid-template-columns: 1fr; gap: 40px; } }
/* Centered (align-self) rather than stretched to the row's full height -
   stretching it to match a long contact list would distort/over-tallen
   it; centering keeps its own proportions and just balances the leftover
   vertical space evenly above/below instead of dropping it all below. */
.cb-contact-grid > .contact-map { margin-top: 0; align-self: center; }
/* content-blocks "feedback_form" block with an optional heading/
   description filled in - own grid (not .contact-grid, same reasoning as
   .cb-contact-grid above), same 1fr/1.6fr proportions the original
   hand-built contact page used for its (info : form) pair. */
.cb-lead-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: center; }
@media (max-width: 768px) { .cb-lead-grid { grid-template-columns: 1fr; gap: 40px; } }
.nav-tg, .nav-max { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border-b); color: var(--text); transition: all .3s var(--ease); }
.nav-tg:hover { border-color: var(--accent-2); color: var(--accent-2); background: var(--accent-2-dim); }
.nav-max:hover { border-color: var(--accent-2); color: var(--accent-2); background: var(--accent-2-dim); }

/* Dynamic social links (App\Models\SocialLink) - icons are already self-colored badges, so no extra border/bg wrapper */
.nav-social { display: inline-flex; border-radius: 8px; overflow: hidden; transition: transform .3s var(--ease); }
.nav-social:hover { transform: translateY(-2px); }
.service-cta-social { flex: 1 1 auto; min-width: 48px; display: flex; align-items: center; justify-content: center; }
.footer-404-social { display: inline-flex; align-items: center; gap: 8px; }

/* SHOP TOPBAR - second row under the main nav, shop/search pages only */
.shop-topbar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-b); }
@media (max-width: 768px) {
    .shop-topbar { gap: 12px; }
}

/* LANGUAGE SWITCHER */
[x-cloak] { display: none !important; }
.lang-switch { position: relative; }
.lang-switch-btn { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--border-b); background: transparent; color: var(--text); font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; transition: all .25s var(--ease); }
.lang-switch-btn:hover { border-color: var(--text-mid); }
.lang-switch-flag { display: inline-flex; width: 16px; height: 12px; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.lang-switch-flag svg { width: 100%; height: 100%; display: block; }
.lang-switch-chevron { flex-shrink: 0; transition: transform .2s var(--ease); }
.lang-switch-chevron.is-open { transform: rotate(180deg); }
.lang-switch-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: max-content; min-width: 100%; background: var(--bg-card-h); border: 1px solid var(--border-b); z-index: 250; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.lang-switch-option { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: none; border: none; color: var(--text-mid); font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; transition: all .2s var(--ease); text-align: left; }
.lang-switch-option:hover { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }
.lang-switch-option.is-active { color: var(--accent); background: var(--accent-dim); }
.lang-switch-check { margin-left: auto; color: var(--accent); flex-shrink: 0; }
.lang-switch-transition-enter, .lang-switch-transition-leave { transition: opacity .15s ease, transform .15s ease; }
.lang-switch-transition-enter-start, .lang-switch-transition-leave-end { opacity: 0; transform: translateY(-4px) scale(.97); }
.lang-switch-transition-enter-end, .lang-switch-transition-leave-start { opacity: 1; transform: translateY(0) scale(1); }
.nav-account { display: flex; align-items: center; margin-left: 20px; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 201; padding: 4px; background: none; border: none; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 130px 0 90px; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--text) 1.3%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 1.3%, transparent) 1px, transparent 1px); background-size: 72px 72px; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.glow-r { width: 700px; height: 700px; top: -150px; right: -150px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%); }
.glow-c { width: 500px; height: 500px; bottom: -180px; left: -80px; background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 5.5%, transparent) 0%, transparent 70%); }
.hero-content { position: relative; z-index: 1; max-width: 920px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 14px; color: var(--text); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 28px; }
.hero-eyebrow::before { content: ''; display: block; width: 44px; height: 1px; background: var(--accent); }
.hero-title { font-family: var(--f-display); font-size: clamp(56px, 9vw, 120px); font-weight: 700; line-height: .94; letter-spacing: .01em; text-transform: uppercase; margin-bottom: 34px; }
.hero-title .l1 { display: block; }
.hero-title .l2 { display: block; color: var(--accent); }
.hero-title .l3 { display: block; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 70%, transparent); }
.hero-desc { font-size: 17px; color: var(--text); max-width: 520px; line-height: 1.75; margin-bottom: 52px; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.home-info { padding: 56px 0; border-bottom: 1px solid var(--border); }
.home-info-title { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.3; text-align: center; margin-bottom: 18px; }
.home-info-desc { text-align: center; }
.home-info-desc.prose-content p:last-child { margin-bottom: 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px; font-family: var(--f-display); font-size: 16px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .3s var(--ease); border: none; outline: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); transform: translateY(-2px); box-shadow: 0 14px 44px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-b); }
.btn-ghost:hover { border-color: var(--text-mid); background: color-mix(in srgb, var(--text) 4%, transparent); }
.hero-scroll { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.hero-scroll-bar { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollBlink 2s ease-in-out infinite; }
@keyframes scrollBlink { 0%,100% { opacity: 1; transform: scaleY(1); } 50% { opacity: .4; transform: scaleY(.55); } }

/* SERVICES */
.services { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 1.8%, transparent) 50%, transparent); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.s-card { background: var(--bg-card); padding: 44px 38px 48px; position: relative; overflow: hidden; transition: background .3s var(--ease); display: block; text-decoration: none; color: inherit; }
.s-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.s-card:hover { background: var(--bg-card-h); }
.s-card:hover::before { transform: scaleX(1); }
.s-num { font-family: var(--f-mono); font-size: 11px; color: var(--text-muted); letter-spacing: .1em; margin-bottom: 28px; }
.s-icon { width: 46px; height: 46px; color: var(--accent); margin-bottom: 22px; }
.s-name { font-size: 20px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.s-desc { font-size: 16px; color: var(--text); line-height: 1.7; }
.s-arrow { position: absolute; bottom: 30px; right: 30px; color: var(--border-b); transition: all .3s var(--ease); }
.s-card:hover .s-arrow { color: var(--accent); transform: translate(3px,-3px); }
.s-card-full { grid-column: 1 / -1; }

/* TOOLS */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--border); }
.tool-card { display: flex; flex-direction: column; background: var(--bg-card); padding: 40px 36px 44px; position: relative; overflow: hidden; transition: background .3s var(--ease); cursor: pointer; text-decoration: none; color: inherit; }
.tool-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.tool-card:hover { background: var(--bg-card-h); }
.tool-card:hover::before { transform: scaleX(1); }
.tool-card-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-dim); padding: 4px 10px; margin-bottom: 28px; width: fit-content; }
.tool-card-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.tool-card-name { font-family: var(--f-display); font-size: clamp(22px, 2.5vw, 28px); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; margin-bottom: 16px; transition: color .3s; }
.tool-card:hover .tool-card-name { color: var(--accent); }
.tool-card-desc { font-size: 16px; color: var(--text); line-height: 1.7; flex: 1; }
.tool-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.tool-card-cta { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); transition: color .3s; }
.tool-card:hover .tool-card-cta { color: var(--accent); }
.tool-card-arrow { color: var(--border-b); transition: all .3s var(--ease); }
.tool-card:hover .tool-card-arrow { color: var(--accent); transform: translate(3px,-3px); }

/* WHY */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.stat { background: var(--bg-card); padding: 44px 36px; }
.stat-num { font-family: var(--f-display); font-size: clamp(52px, 6vw, 76px); font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat-lbl { font-family: var(--f-mono); font-size: 14px; color: var(--text); letter-spacing: .07em; text-transform: uppercase; }
.features { display: flex; flex-direction: column; }
.feat { display: flex; align-items: flex-start; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.feat:first-child { padding-top: 0; }
.feat:last-child { border-bottom: none; padding-bottom: 0; }
.feat-ico { flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--border-b); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.feat-text h4 { font-size: 17px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.feat-text p { font-size: 16px; color: var(--text); line-height: 1.65; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; }
.c-info-title { font-family: var(--f-display); font-size: clamp(26px, 3vw, 42px); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; margin-bottom: 20px; }
.c-info-desc { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 48px; }
.c-links { display: flex; flex-direction: column; }
.c-link { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); transition: padding-left .3s var(--ease); }
.c-link:first-child { border-top: 1px solid var(--border); }
.c-link:hover { padding-left: 10px; }
.c-link-ico { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border-b); color: var(--text); transition: all .3s var(--ease); }
.c-link:hover .c-link-ico { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.c-link-lbl { font-size: 10px; color: var(--text-b); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.c-link-dept { text-transform: none; letter-spacing: normal; color: var(--text-muted); }
.c-link-val { font-size: 16px; color: var(--text); }

/* FORM */
.form-box { background: var(--bg-card); border: 1px solid var(--border); padding: 50px 44px; position: relative; }
.form-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-group { margin-bottom: 18px; }
.f-group label:not(.f-label) { margin-right: 10px; }
.f-group input[type="radio"] { margin-right: 5px; }
.f-label { display: block; font-size: 16px; color: var(--text); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.f-input, .f-textarea { width: 100%; background: var(--bg); border: 1px solid var(--border-b); color: var(--text); padding: 14px 16px; font-family: var(--f-body); font-size: 15px; outline: none; transition: border-color .3s, background .3s; border-radius: 1px; appearance: none; }
.f-input::placeholder, .f-textarea::placeholder { color: var(--text-muted); }
.f-input:focus, .f-textarea:focus { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 2.5%, transparent); }
.f-textarea { min-height: 120px; resize: vertical; }
.f-check-wrap { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; cursor: pointer; }
.f-check-wrap input[type="checkbox"] { display: none; }
.check-box { flex-shrink: 0; width: 20px; height: 20px; border: 1px solid var(--text-muted); background: var(--bg); display: flex; align-items: center; justify-content: center; transition: all .25s var(--ease); margin-top: 2px; }
.check-box svg { display: none; color: #fff; }
.f-check-wrap input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.f-check-wrap input:checked + .check-box svg { display: block; }
.check-text { font-size: 13px; color: var(--text); line-height: 1.55; }
.check-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.btn-submit { width: 100%; background: var(--accent); color: #fff; border: none; padding: 17px 32px; font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: all .3s var(--ease); position: relative; overflow: hidden; }
.btn-submit::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 10%, transparent), transparent); transition: left .5s ease; }
.btn-submit:hover:not(:disabled)::before { left: 100%; }
.btn-submit:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, white); transform: translateY(-1px); box-shadow: 0 10px 32px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn-submit:active:not(:disabled) { transform: none; }
.btn-submit:disabled { background: var(--bg-card-h); color: var(--text-muted); cursor: not-allowed; border: 1px solid var(--border-b); }
.f-status { display: none; padding: 14px 16px; font-size: 14px; margin-top: 16px; line-height: 1.5; }
.f-status.ok { display: block; background: rgba(0,200,83,.08); border: 1px solid rgba(0,200,83,.25); color: #00C853; }
.f-status.err { display: block; background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); color: var(--accent); }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-logo { font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.footer-logo span { color: var(--accent); }
.footer-logo-img { height: 28px; width: auto; object-fit: contain; }
.footer-tagline, .footer-address { font-family: var(--f-mono); font-size: 13px; color: var(--text-mid); }
.footer-phones { display: flex; flex-direction: column; gap: 2px; }
.footer-phone { font-family: var(--f-mono); font-size: 14px; color: var(--text-b); transition: color .3s; }
.footer-phone:hover { color: var(--accent); }
.footer-phone-dept { color: var(--text-muted); }
.footer-copy { font-family: var(--f-mono); font-size: 16px; color: var(--text-b); }
.footer-mail { font-family: var(--f-mono); font-size: 16px; color: var(--text-b); letter-spacing: .04em; transition: color .3s; }
.footer-mail:hover { color: var(--accent); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-card-h); border: 1px solid var(--border-b); max-width: 680px; width: 100%; max-height: 82vh; display: flex; flex-direction: column; transform: translateY(20px); transition: transform .3s var(--ease); position: relative; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 28px 36px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-title { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.modal-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-b); background: none; color: var(--text-muted); cursor: pointer; transition: all .25s var(--ease); flex-shrink: 0; }
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-body { overflow-y: auto; padding: 32px 36px 36px; font-size: 14px; color: var(--text-mid); line-height: 1.75; }
.modal-body::-webkit-scrollbar { width: 3px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border-b); }
.modal-body h3 { font-family: var(--f-display); font-size: 15px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text); margin: 28px 0 10px; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 12px; }
.modal-body ul { padding-left: 20px; margin-bottom: 12px; }
.modal-body ul li { margin-bottom: 6px; }
.modal-body a { color: var(--accent); text-underline-offset: 2px; }
.modal-updated { display: inline-block; font-family: var(--f-mono); font-size: 11px; color: var(--text-muted); letter-spacing: .06em; margin-bottom: 24px; padding: 6px 12px; border: 1px solid var(--border); }

/* COOKIE */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(20px); border-top: 1px solid var(--border-b); padding: 22px 0; transform: translateY(100%); transition: transform .45s cubic-bezier(.25,.8,.25,1); }
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cookie-bar-icon { flex-shrink: 0; font-size: 26px; line-height: 1; }
.cookie-bar-text { flex: 1; min-width: 240px; font-size: 13.5px; color: var(--text-mid); line-height: 1.55; }
.cookie-bar-text strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.cookie-bar-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 10px 26px; font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border: none; transition: all .25s var(--ease); }
.cookie-btn-accept { background: var(--accent); color: #fff; }
.cookie-btn-accept:hover { background: color-mix(in srgb, var(--accent) 88%, white); box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.cookie-btn-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--border-b); }
.cookie-btn-decline:hover { border-color: var(--text-mid); color: var(--text); }

/* INNER PAGE HELPERS */
.page-hero { padding: 140px 0 80px; border-bottom: 1px solid var(--border); }
/* Extra top clearance on shop/search pages - the .shop-topbar row makes the
   fixed nav taller than the 140px this padding was originally tuned for. */
body.shop-context .page-hero { padding-top: 210px; }
.page-hero-eyebrow { font-family: var(--f-mono); font-size: 16px; color: var(--accent); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 16px; }
.page-hero h1 { font-family: var(--f-display); text-align: center; font-size: clamp(36px, 6vw, 80px); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1; margin-bottom: 20px; }
.page-hero p { font-size: 16px; color: var(--text-mid); max-width: 560px; line-height: 1.7; }

.inner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
@media (max-width: 1024px) { .inner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .inner-grid { grid-template-columns: 1fr; } }

.inner-card { background: var(--bg-card); padding: 40px 36px; position: relative; overflow: hidden; transition: background .3s var(--ease); display: block; text-decoration: none; color: inherit; }
.inner-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.inner-card:hover { background: var(--bg-card-h); }
.inner-card:hover::before { transform: scaleX(1); }
.inner-card h3 { font-family: var(--f-display); font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; transition: color .3s; }
.inner-card:hover h3 { color: var(--accent); }
.inner-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card { display: block; text-decoration: none; color: inherit; background: var(--bg-card); padding: 36px 32px 44px; position: relative; overflow: hidden; transition: background .3s var(--ease); }
.blog-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.blog-card:hover { background: var(--bg-card-h); }
.blog-card:hover::before { transform: scaleX(1); }
.blog-card-cat { font-family: var(--f-mono); font-size: 10px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.blog-card h3 { font-family: var(--f-display); font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; margin-bottom: 12px; transition: color .3s; }
.blog-card:hover h3 { color: var(--accent); }
.blog-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 24px; }
.blog-card-meta { font-family: var(--f-mono); font-size: 11px; color: var(--text-muted); }

.breadcrumb { font-family: var(--f-mono); font-size: 11px; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 32px; }
.breadcrumb a { color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* amper/breadcrumb-dropdown: Bitrix-style hover flyout of subcategories on a linked breadcrumb segment */
.breadcrumb-item { position: relative; display: inline-block; }
.breadcrumb-caret { display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; opacity: .6; transition: transform .2s ease; }
.breadcrumb-item:hover > .breadcrumb-caret { transform: rotate(180deg); opacity: 1; }
.breadcrumb-dropdown { display: none; position: absolute; top: 100%; left: 0; z-index: 100; min-width: 240px; margin: 8px 0 0; padding: 8px 0; list-style: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.25); text-transform: none; letter-spacing: normal; font-family: var(--f-body); }
/* Invisible bridge over the margin gap so the cursor doesn't lose :hover crossing from the crumb to the list */
.breadcrumb-dropdown::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.breadcrumb-item:hover > .breadcrumb-dropdown { display: block; }
.breadcrumb-dropdown-item { padding: 0; margin: 0; font-weight: 400; }
.breadcrumb-dropdown-item a { display: block; padding: 6px 16px; color: var(--text); font-size: 13px; font-weight: 400; white-space: nowrap; text-decoration: none; }
.breadcrumb-dropdown-item a:hover { background: var(--bg-card-h); color: var(--accent); }

.prose-content { font-size: 15px; color: var(--text-b); line-height: 1.8; }
.prose-content h2 { font-family: var(--f-display); font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--text); margin: 40px 0 16px; }
.prose-content h3 { font-family: var(--f-display); font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--text); margin: 32px 0 12px; }
.prose-content p { margin-bottom: 16px; }
.prose-content ul, .prose-content ol { padding-left: 24px; margin-bottom: 16px; }
.prose-content li { margin-bottom: 8px; }
.prose-content a { color: var(--accent); text-underline-offset: 2px; }
.prose-content strong { color: var(--text); }

.cta-section { padding: 100px 0; text-align: center; border-top: 1px solid var(--border); }
.cta-section h2 { font-family: var(--f-display); font-size: clamp(28px, 4vw, 52px); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 16px; }
.cta-section p { font-size: 16px; color: var(--text-mid); margin-bottom: 40px; }

/* CALCULATOR PROMO BANNER */
.calc-promo { padding: 0 0 40px; }
.calc-promo-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 40px 44px; text-decoration: none; color: inherit; transition: border-color .3s var(--ease), background .3s var(--ease); }
.calc-promo-card:hover { border-color: var(--accent); background: var(--bg-card-h); }
.calc-promo-card:hover .calc-promo-btn { background: color-mix(in srgb, var(--accent) 88%, white); transform: translateY(-2px); box-shadow: 0 14px 44px color-mix(in srgb, var(--accent) 32%, transparent); }
.calc-promo-eyebrow { font-family: var(--f-mono); font-size: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.calc-promo-title { font-family: var(--f-display); font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 8px; }
.calc-promo-desc { font-size: 15px; max-width: 480px; line-height: 1.6; }
.calc-promo-btn { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; background: var(--accent); color: #fff; padding: 15px 28px; border-radius: 2px; font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: all .3s var(--ease); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; gap: 56px; }
    .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}
/* Nav collapse to the hamburger/fullscreen-menu treatment - deliberately
   its OWN breakpoint (1200px), separate from the shared 768px content
   block below. Found 2026-09-13 while checking amper/cities' new header
   city-switcher: at the old 768px threshold, the header had NO safe
   range at all between "menu fits in one row" and "mobile menu" - from
   roughly 769px to ~1180px the main nav-menu and nav-right (phone/
   language/city switchers) ran out of room and touched with zero gap
   (measured on a real live page, not guessed) - a pre-existing squeeze
   that already happened with just phone+language, which the city
   switcher's extra width simply made more visible. Content-only rules
   (grids, form padding, etc.) below keep the original 768px - only the
   nav itself needed the wider threshold. */
@media (max-width: 1200px) {
    .nav-menu { display: none; position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 97%, transparent); flex-direction: column; align-items: center; justify-content: center; gap: 44px; z-index: 200; overflow-y: auto; padding: 40px 0; }
    .nav-menu.open { display: flex; }
    .nav-menu .nav-link { font-size: 16px; }
    .nav-menu .nav-item { flex-direction: column; }
    .nav-menu .nav-dropdown { display: flex; position: static; padding-top: 20px; align-items: center; gap: 20px; min-width: 0; }
    .nav-menu .nav-dropdown-inner { display: contents; }
    .nav-menu .nav-dropdown-link { padding: 0; font-size: 14px; color: var(--text-mid); }
    .nav-menu .nav-dropdown-link:hover { color: var(--accent); background: none; }
    .nav-right { display: none; }
    .nav-account { margin-left: 0; }
    .burger { display: flex; margin-left: 20px; }
}
@media (max-width: 768px) {
    section { padding: 76px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .f-row { grid-template-columns: 1fr; }
    .form-box { padding: 32px 24px; }
    .calc-promo-card { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
    .calc-promo-btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
    .cookie-bar-actions { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
    .modal-head { padding: 22px 20px 18px; }
    .modal-body { padding: 24px 20px 28px; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-brand { align-items: center; }
    .footer-phones { align-items: center; }
}

/* FAQ */
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: none; border: none; text-align: left; padding: 26px 4px; font-family: var(--f-body); font-size: 17px; font-weight: 600; color: var(--text); cursor: pointer; }
.faq-q-ico { flex-shrink: 0; color: var(--accent); transition: transform .3s var(--ease); }
.faq-item.open .faq-q-ico { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 4px 26px; font-size: 15px; color: var(--text-mid); line-height: 1.75; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* CALLBACK WIDGET */
.callback-fab { position: fixed; right: 28px; bottom: 28px; z-index: 1500; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.callback-fab:hover { transform: scale(1.08); box-shadow: 0 10px 34px color-mix(in srgb, var(--accent) 50%, transparent); }
@media (max-width: 640px) { .callback-fab { right: 18px; bottom: 18px; width: 50px; height: 50px; } }

/* BANNER SLIDER - always the first section under the fixed .nav now (nav
   clears content via each section's own top padding, not body margin), so
   this needs the same nav-clearance as .hero used to provide when the
   slider only ever rendered after it. */
.banner-strip { padding-bottom: 0px; margin-top: 50px; }
/* В каталоге шапка выше (строка поиска и корзина), и первым блоком идёт слайдер —
   отступ под шапку нужен ему, а заголовку страницы он уже не нужен. */
body.shop-context .banner-strip { margin-top: 120px; }
body.shop-context .banner-strip + .page-hero { padding-top: 50px; }
.banner-slider { position: relative; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); margin-bottom: 1px; touch-action: pan-y; }
.banner-slider-track { position: relative; width: 100%; }
.banner-slide { user-select: none; }
.banner-slide picture, .banner-slide-img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }

/* "Слайд" (default): slides sit side by side in a row, the track itself
   translates - both the smooth transition and the live drag-follow act on
   this one transform. */
.banner-slider[data-effect="slide"] .banner-slider-track { display: flex; transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.banner-slider[data-effect="slide"] .banner-slider-track.is-dragging { transition: none; }
.banner-slider[data-effect="slide"] .banner-slide { flex: 0 0 100%; min-width: 0; }

/* "Плавное появление" (fade): slides stack in place, crossfade via opacity -
   needs an explicit height source since absolutely-positioned slides don't
   contribute to the track's own height. */
.banner-slider[data-effect="fade"] .banner-slider-track { aspect-ratio: 2.55 / 1; max-height: 420px; }
.banner-slider[data-effect="fade"] .banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; z-index: 0; }
.banner-slider[data-effect="fade"] .banner-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.banner-slider[data-effect="fade"] .banner-slide-img { width: 100%; height: 100%; object-fit: cover; }

.banner-slide-link { display: block; position: relative; text-decoration: none; color: inherit; height: 100%; cursor: grab; }
.banner-slider-track.is-dragging .banner-slide-link { cursor: grabbing; }
.banner-slide-img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

/* "Текст на изображении с тонировкой": text centered over the whole image
   behind a dark tint, not anchored to one corner. */
.banner-slide-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 32px; }
.banner-slide-overlay-tint { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 32px; background: rgba(6,6,9,.62); border-radius: 6px; max-width: 720px; }

/* "Текст справа/слева, изображение с другой стороны": image and a solid
   text panel side by side, sharing whatever height the image naturally
   gets (slide effect) or the fade track's computed height (fade effect,
   via the existing .banner-slide-link{height:100%} chain resolving for
   real once an ancestor actually has a definite height). */
.banner-slide-split { display: flex; align-items: stretch; height: 100%; }
.banner-slide-variant-text_left .banner-slide-split { flex-direction: row-reverse; }
.banner-slide-split-image { flex: 0 0 50%; min-width: 0; overflow: hidden; }
.banner-slide-split-image img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }
.banner-slider[data-effect="fade"] .banner-slide-split-image img { height: 100%; max-height: none; }
.banner-slide-split-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 32px 40px; background: var(--bg-card); }
.banner-slide-split-text .banner-slide-title, .banner-slide-split-text .banner-slide-sub { color: var(--text); }
.banner-slide-split-text .banner-slide-btn { color: var(--text); border-color: var(--border-b); align-self: flex-start; }

.banner-slide-title { font-family: var(--f-display); font-size: clamp(20px, 3vw, 30px); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 8px; color: #fff; }
.banner-slide-sub { font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 16px; max-width: 560px; }
.banner-slide-overlay .banner-slide-sub { margin-left: auto; margin-right: auto; }
.banner-slide-btn { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 10px 20px; }
.banner-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(6,6,9,.55); border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer; transition: all .25s var(--ease); z-index: 2; }
.banner-slider-arrow:hover { background: var(--accent); border-color: var(--accent); }
.banner-slider-prev { left: 16px; }
.banner-slider-next { right: 16px; }
.banner-slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; z-index: 2; }
.banner-slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; transition: background .25s var(--ease), transform .25s var(--ease); }
.banner-slider-dot.active { background: var(--accent); transform: scale(1.3); }
@media (max-width: 640px) {
    .banner-slide-overlay { padding: 20px 20px 24px; }
    .banner-slider-arrow { width: 36px; height: 36px; }
    .banner-slide-split { flex-direction: column !important; }
    .banner-slide-split-image { flex: 0 0 auto; width: 100%; }
    .banner-slide-split-image img { max-height: 220px; }
    .banner-slide-split-text { padding: 20px 20px 24px; }
}

/* DOCUMENTS */
.docs-groups { display: flex; flex-direction: column; gap: 48px; }
.docs-group-title { font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
.docs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: var(--border); }
.doc-card { display: flex; align-items: center; gap: 18px; background: var(--bg-card); padding: 22px 24px; text-decoration: none; color: inherit; transition: background .3s var(--ease); }
.doc-card:hover { background: var(--bg-card-h); }
.doc-card-ico { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--accent-dim); color: var(--accent); font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.doc-card-body { flex: 1; min-width: 0; }
.doc-card-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.doc-card-meta { font-size: 12px; color: var(--text-muted); font-family: var(--f-mono); }
.doc-card-desc { font-size: 13px; color: var(--text-mid); line-height: 1.5; margin-bottom: 6px; }
.doc-card svg { flex-shrink: 0; color: var(--text-muted); transition: color .3s; }
.doc-card:hover svg { color: var(--accent); }

/* GALLERY */
.albums-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--border); }
.album-card { display: block; background: var(--bg-card); text-decoration: none; color: inherit; overflow: hidden; transition: background .3s var(--ease); }
.album-card:hover { background: var(--bg-card-h); }
.album-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.album-card-body { padding: 20px 24px 24px; }
.album-card-title { font-family: var(--f-display); font-size: 18px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 6px; }
.album-card-count { font-size: 12px; color: var(--text-muted); font-family: var(--f-mono); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.photo-grid-item { display: block; overflow: hidden; aspect-ratio: 1; }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.photo-grid-item:hover img { transform: scale(1.05); }
.lightbox-overlay { position: fixed; inset: 0; z-index: 2100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 40px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.lightbox-overlay.open { opacity: 1; pointer-events: all; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-b); background: none; color: #fff; cursor: pointer; }
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

/* VIDEO GALLERY */
.video-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.video-card { flex: 1 1 100%; background: var(--bg-card); border: 1px solid var(--border); padding: 16px; }
@media (min-width: 768px) { .video-card { flex: 1 1 calc(50% - 12px); } }
@media (min-width: 1200px) { .video-card { flex: 1 1 calc(33.333% - 16px); } }
.video-card-embed { position: relative; width: 100%; padding-bottom: 56.25%; overflow: hidden; background: #000; }
.video-card-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-card-title { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--text); }
.video-card-desc { margin-top: 6px; font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* SMARTCAPTCHA */
[data-smartcaptcha] { margin: 10px 0; }

/* SHOP: catalog grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--border); }
.product-card { display: block; position: relative; background: var(--bg-card); text-decoration: none; color: inherit; overflow: hidden; transition: background .3s var(--ease); }
.product-card:hover { background: var(--bg-card-h); }
.product-card-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.product-card-body { padding: 20px 22px 24px; }
.product-card-title { font-family: var(--f-display); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 8px; }
.product-card-price { font-family: var(--f-mono); font-size: 15px; color: var(--accent); }
.product-card-price-old { font-family: var(--f-mono); font-size: 12px; color: var(--text-muted); text-decoration: line-through; margin-right: 6px; }
.product-card-oos { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }

/* SHOP: product badges (Новинка/Скидки/... overlay icons on the card + product page) */
.product-card-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.product-card-badge { height: 28px; width: auto; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }

/* SHOP: recommendation-technology notice under algorithmically-picked product blocks (новинки/хиты/скидки/рекомендуемые/похожие) */
.recommendation-notice { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin: -12px 0 24px; text-decoration: none; }
.recommendation-notice:hover { color: var(--accent); }
.recommendation-notice:hover .recommendation-notice-icon { color: var(--accent); }
.recommendation-notice-icon { flex-shrink: 0; }

/* SHOP: product rating (real approved-review average when amper/reviews has
   any, otherwise falls back to the admin's own manually-set rating_value/
   rating_votes - see Product::reviewsRatingSummary(), product page) */
.product-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.product-rating-star { color: var(--border); font-size: 16px; line-height: 1; }
.product-rating-star.filled { color: var(--accent); }
.product-rating-count { color: var(--text-mid); }

/* SHOP: product reviews section (amper/reviews, product page) */
.review-list { display: flex; flex-direction: column; gap: 20px; }
.review-item { padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border-b); }
.review-item-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-item-author { font-weight: 600; color: var(--text); }
.review-item-date { color: var(--text-muted); font-size: 12px; margin-left: auto; }
.review-item-text { margin-top: 8px; color: var(--text-mid); line-height: 1.5; }
.rating-input { display: flex; gap: 4px; }
.rating-input-star { font-size: 24px; cursor: pointer; }

/* SHOP: gift-with-purchase promotions (amper/gifts, product page + cart) */
.gift-promo { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.gift-promo-note { padding: 10px 14px; background: var(--bg-card); border: 1px dashed var(--accent); font-size: 13px; line-height: 1.5; }
.gift-promo-cart { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.gift-promo-card { padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border-b); }
.gift-promo-title { font-weight: 600; }
.gift-promo-pick-hint { margin-top: 6px; font-size: 13px; color: var(--text-mid); }
.gift-promo-options { margin-top: 8px; }
.gift-option-btn[disabled] { opacity: .6; cursor: default; }

/* SHOP: product page */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.product-gallery-main { width: 100%; max-height: 520px; object-fit: cover; background: var(--bg-card); }
.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-gallery-thumb { width: 70px; height: 70px; object-fit: cover; cursor: pointer; border: 1px solid var(--border-b); }
.product-price { font-family: var(--f-display); font-size: 32px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.product-price-old { font-family: var(--f-mono); font-size: 16px; color: var(--text-muted); text-decoration: line-through; margin-bottom: 20px; }

/* SHOP: cart */
.cart-table { display: flex; flex-direction: column; gap: 1px; background: var(--border); margin-bottom: 40px; }
.cart-row { display: flex; align-items: center; gap: 20px; background: var(--bg-card); padding: 20px 24px; flex-wrap: wrap; }
.cart-row-img { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; }
.cart-row-body { flex: 1; min-width: 180px; }
.cart-row-title { font-weight: 600; color: var(--text); }
.cart-row-variant { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.cart-row-price { font-family: var(--f-mono); font-size: 13px; color: var(--text-mid); margin-top: 6px; }
.cart-row-qty { display: flex; gap: 8px; align-items: center; }
.cart-row-total { font-family: var(--f-mono); font-weight: 700; min-width: 100px; text-align: right; }
.cart-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cart-summary-total { font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.cart-summary-discount { font-size: 13px; color: var(--accent); margin-bottom: 6px; }
.cart-coupon { margin-bottom: 20px; }
.cart-coupon-form { display: flex; gap: 10px; }
.cart-coupon-applied { font-size: 14px; color: var(--text-mid); }
.cart-coupon-applied strong { color: var(--text); letter-spacing: .05em; }
.cart-coupon-remove { background: none; border: none; padding: 0; margin-left: 8px; color: var(--text-muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
.cart-coupon-remove:hover { color: var(--accent); }
.bonus-balance-card { background: var(--bg-card); border: 1px solid var(--border); padding: 24px 32px; margin-bottom: 24px; }
.bonus-balance-label { font-size: 13px; color: var(--text-mid); text-transform: uppercase; letter-spacing: .05em; }
.bonus-balance-amount { font-family: var(--f-display); font-size: 36px; font-weight: 700; color: var(--accent); margin: 4px 0; }
.bonus-balance-hint { font-size: 13px; color: var(--text-muted); margin: 0; }

/* SHOP: checkout */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }

/* SHOP/SEARCH: category page and search results - products + filter
   sidebar. A separate class from .checkout-grid (not just a narrower
   override of it) so the checkout page's form/summary split is never
   affected by changes made here - filters sidebar half as wide as the
   old shared 1.4fr/1fr split, products column takes the rest. */
.catalog-grid { display: grid; grid-template-columns: 1.65fr 0.35fr; gap: 36px; align-items: start; }
.checkout-summary { background: var(--bg-card); border: 1px solid var(--border); padding: 32px; position: sticky; top: 100px; }
.checkout-summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-mid); padding: 10px 0; border-bottom: 1px solid var(--border); }
.checkout-summary-total { display: flex; justify-content: space-between; font-family: var(--f-display); font-size: 18px; font-weight: 700; padding-top: 16px; }

/* SHOP: delivery/payment method radio cards on checkout */
.method-option-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.method-option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border-b); cursor: pointer; transition: border-color .2s var(--ease); }
.method-option:has(input:checked) { border-color: var(--accent); }
.method-option input[type="radio"] { flex-shrink: 0; accent-color: var(--accent); }
.method-option-image { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.method-option-body { display: flex; justify-content: space-between; align-items: center; flex: 1; gap: 12px; flex-wrap: wrap; }
.method-option-name { font-size: 14px; }
.method-option-price { font-family: var(--f-mono); font-size: 13px; color: var(--text-mid); white-space: nowrap; }

/* SHOP: cart icon in nav */
.nav-cart { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border-b); color: var(--text); transition: all .3s var(--ease); }
.nav-cart:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.nav-cart-badge { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff; font-size: 10px; font-family: var(--f-mono); min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

@media (max-width: 1024px) {
    .product-page { grid-template-columns: 1fr; gap: 32px; }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
    .cart-row { flex-direction: column; align-items: flex-start; }
    .cart-row-total { text-align: left; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* SHOP: brands */
.brand-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-chip { display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 24px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-mid); text-decoration: none; font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; transition: border-color .3s var(--ease), color .3s var(--ease); }
.brand-chip:hover { border-color: var(--accent); color: var(--text); }
.brand-chip img { max-height: 32px; max-width: 140px; object-fit: contain; }

/* SHOP: product specs table */
.product-specs { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 14px; }
.product-specs tr { border-bottom: 1px solid var(--border); }
.product-specs td { padding: 10px 0; color: var(--text-mid); }
.product-specs td:first-child { color: var(--text); width: 40%; }

/* DADATA: suggestion dropdowns (organization field on checkout, delivery address autocomplete) */
.dadata-suggestions { position: relative; z-index: 20; display: none; background: var(--bg-card); border: 1px solid var(--border); border-top: none; max-height: 240px; overflow-y: auto; }
.dadata-suggestions__item { padding: 10px 14px; font-size: 15px; color: var(--text-b); cursor: pointer; border-bottom: 1px solid var(--border); }
.dadata-suggestions__item:last-child { border-bottom: none; }
.dadata-suggestions__item:hover { background: var(--accent-dim); color: var(--text); }
.dadata-preview { margin-top: 8px; font-size: 14px; color: var(--text-b); line-height: 1.6; }
.dadata-preview ul { list-style: none; padding: 0; margin: 0; }
.dadata-preview li { padding: 3px 0; }

/* SEARCH: nav search box - lives in the dedicated .shop-topbar row, so it
   gets a real fixed width (centered via .shop-topbar's justify-content)
   instead of the cramped width it needed when squeezed into the main nav
   row alongside phone/tg/max icons. */
.nav-search { display: flex; align-items: center; height: 42px; border: 1px solid var(--border-b); transition: border-color .3s var(--ease); flex: 0 1 480px; }
.nav-search:focus-within { border-color: var(--accent); }
.nav-search-input { background: transparent; border: none; outline: none; color: var(--text); font-family: var(--f-mono); font-size: 14px; flex: 1; min-width: 0; padding: 0 0 0 16px; }
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; background: none; border: none; color: var(--text); cursor: pointer; transition: color .3s var(--ease); }
.nav-search-btn:hover { color: var(--accent); }

/* CATALOG MENU: multi-level category flyout, left of the search box in
   .shop-topbar. Alpine toggles the top-level panel open/closed; every
   nested level below that is plain CSS :hover (no JS) - hovering a row
   that has children reveals its own flyout immediately to its right,
   which can itself contain a row with a further flyout, and so on to
   whatever depth the category tree actually has (3 levels deep in
   practice: top-level list -> first flyout -> second flyout). Plain
   :hover rather than a click toggle because the second version of this
   menu tried onclick-driven expand/collapse and the user explicitly
   asked for real hover flyouts instead, like the reference CMS. */
.catalog-menu { position: relative; flex-shrink: 0; }
.catalog-menu-btn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; background: none; border: 1px solid var(--border-b); color: var(--text); font-family: var(--f-mono); font-size: 14px; cursor: pointer; transition: border-color .3s var(--ease), color .3s var(--ease); white-space: nowrap; }
.catalog-menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.catalog-menu-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: 300px; background: var(--bg-card); border: 1px solid var(--border-b); padding: 8px 0; }
.catalog-menu-tree { list-style: none; margin: 0; padding: 0; }
.catalog-menu-item { position: relative; }
.catalog-menu-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 20px; font-size: 14px; color: var(--text-mid); text-decoration: none; transition: color .3s var(--ease), background .3s var(--ease); }
.catalog-menu-link:hover { color: var(--accent); background: var(--bg-card-h); }
.catalog-menu-arrow { flex-shrink: 0; color: var(--text-muted); transform: rotate(0deg); }
.catalog-menu-item:hover > .catalog-menu-link .catalog-menu-arrow { color: var(--accent); }
.catalog-menu-flyout { display: none; list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 0; left: 100%; min-width: 240px; max-width: 300px; background: var(--bg-card); border: 1px solid var(--border-b); z-index: 1; }
.catalog-menu-item:hover > .catalog-menu-flyout { display: block; }

/* SEARCH/CATALOG: facet sidebar on the search results page and every
   category page. Each dimension (brand, price, one row per characteristic)
   is its own collapsible <details> - a real "cool store" filter sidebar
   isn't one long always-open list, it's a stack of sections a shopper
   opens/closes, and a facet with many values (e.g. a 15-value Feature)
   scrolls inside its own fixed-height box instead of pushing the whole
   sidebar down. Checking a value's checkbox also surfaces a small "Показать
   (N)" button right on that row (facet-quick-apply-script.blade.php) using
   the same per-value count already rendered next to it - a one-click
   shortcut to the same form submit the bottom "Применить" button does,
   not a separate live-AJAX facet count (this stays a plain GET reload,
   same as the rest of this sidebar). */
.search-facets { display: flex; flex-direction: column; gap: 20px; }
.search-facet-group { border-bottom: 1px solid var(--border-b); padding-bottom: 16px; }
.search-facet-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
.search-facet-group summary::-webkit-details-marker { display: none; }
.search-facet-title { font-family: var(--f-display); font-size: 14px; font-weight: 700; color: var(--text); }
.search-facet-chevron { flex-shrink: 0; color: var(--text-muted); transition: transform .2s var(--ease); }
.search-facet-group[open] summary .search-facet-chevron { transform: rotate(180deg); }
.search-facet-options { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; max-height: 220px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-b) transparent; }
.search-facet-options::-webkit-scrollbar { width: 6px; }
.search-facet-options::-webkit-scrollbar-thumb { background: var(--border-b); }
.search-facet-item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 4px; font-size: 14px; color: var(--text-mid); text-decoration: none; }
.search-facet-item span { font-family: var(--f-mono); font-size: 12px; color: var(--text-muted); }
.search-facet-item:hover { color: var(--text); }
.search-facet-item--active { color: var(--accent); font-weight: 600; }
.search-price-range { display: flex; gap: 8px; margin-top: 10px; }
.search-price-range .f-input { width: 100%; }
.search-facet-checkbox { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 14px; color: var(--text-mid); cursor: pointer; }
.search-facet-checkbox-count { font-family: var(--f-mono); font-size: 12px; color: var(--text-muted); margin-left: auto; }
.search-facet-checkbox:has(.facet-quick-apply) .search-facet-checkbox-count { display: none; }
.facet-quick-apply { flex-shrink: 0; margin-left: auto; background: var(--text); color: var(--bg); border: none; padding: 5px 12px; font-family: var(--f-mono); font-size: 11px; white-space: nowrap; cursor: pointer; }

/* Sitewide pagination (vendor/pagination/site.blade.php) - replaces
   Laravel's stock Tailwind view everywhere ->links() is called. */
.site-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--f-mono); font-size: 13px; margin-top: 40px; }
.site-pagination-link, .site-pagination-arrow { display: flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; color: var(--text-mid); text-decoration: none; border: 1px solid transparent; transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease); }
.site-pagination-link:hover, .site-pagination-arrow:hover { color: var(--accent); border-color: var(--border-b); }
.site-pagination-link.is-active { color: var(--bg); background: var(--accent); }
.site-pagination-arrow.is-disabled { color: var(--text-muted); opacity: .4; pointer-events: none; }
.site-pagination-dots { color: var(--text-muted); padding: 0 4px; }

@media (max-width: 768px) {
    .nav-search { flex-basis: 0; }
}

/* LANDING BUILDER (amper/landing): block types with no existing sitewide analog */
.landing-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.landing-logo-item { display: block; opacity: .6; transition: opacity .3s var(--ease); filter: grayscale(1); }
.landing-logo-item:hover { opacity: 1; filter: grayscale(0); }
.landing-logo-item img { max-height: 40px; width: auto; display: block; }

.landing-cta-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 60px 40px; }

.landing-countdown { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.landing-countdown-unit { background: var(--bg-card); border: 1px solid var(--border); padding: 20px 28px; min-width: 90px; text-align: center; }
.landing-countdown-num { display: block; font-family: var(--f-display); font-size: clamp(32px, 4vw, 48px); font-weight: 700; color: var(--accent); line-height: 1; }
.landing-countdown-lbl { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--text-mid); text-transform: uppercase; letter-spacing: .07em; margin-top: 6px; }

.landing-anchor-menu { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--border); }
.landing-anchor-menu-inner { display: flex; gap: 28px; overflow-x: auto; padding: 16px 24px; }
.landing-anchor-menu-link { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mid); text-decoration: none; white-space: nowrap; transition: color .25s var(--ease); }
.landing-anchor-menu-link:hover { color: var(--accent); }
.footer-links a{
    color: var(--text-b);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 10px;
    transition: color .3s var(--ease);
}
.footer-links a:hover { color: var(--accent); }
/* SHOP: personal cabinet (account) */
.account-form-wrap { max-width: 480px; margin: 0 auto; }
.account-form-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-mid); }
.account-form-hint { font-size: 14px; color: var(--text-mid); margin-bottom: 20px; line-height: 1.6; }
.account-tabs { display: flex; gap: 8px; margin-bottom: 32px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.account-tab { padding: 14px 20px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-mid); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; }
.account-tab:hover { color: var(--text); }
.account-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.account-tab-logout { margin-left: auto; }
.account-order-row { text-decoration: none; color: inherit; justify-content: space-between; }
.account-order-status { font-family: var(--f-mono); font-size: 12px; padding: 4px 10px; border: 1px solid var(--status-color, #999); color: var(--status-color, #999); white-space: nowrap; }

/* SHOP: category page - per-subcategory sections (table/list view) */
.category-section { margin-bottom: 64px; }
.category-section:last-child { margin-bottom: 0; }
.category-section-title { font-family: var(--f-display); font-size: 28px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.category-section-description { color: var(--text-mid); font-size: 14px; line-height: 1.7; max-width: 760px; margin-bottom: 16px; }
.category-section-image { max-width: 280px; height: auto; margin-bottom: 20px; }

/* SHOP: sort + grid/list toolbar - category (leaf, no table_features)/brand/all-products/search */
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.listing-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; font-family: var(--f-mono); font-size: 13px; }
.listing-sort-label { color: var(--text-muted); }
.listing-sort-link { color: var(--text-mid); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color .2s var(--ease); }
.listing-sort-link:hover { color: var(--text); }
.listing-sort-link--active { color: var(--accent); }
.listing-sort-arrow { font-size: 11px; }
.listing-view-toggle { display: flex; gap: 4px; }
.listing-view-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--border-b); color: var(--text-mid); transition: all .2s var(--ease); }
.listing-view-btn:hover { color: var(--text); border-color: var(--text-mid); }
.listing-view-btn--active { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

/* SHOP: tabular product listing - spec table (table_features configured) and compact list (no table_features / view=list toggle) share this markup */
.table-scroll { width: 100%; overflow-x: auto; margin-bottom: 32px; }
.catalog-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.catalog-table thead th { text-align: left; padding: 12px 16px; background: var(--bg-card); border-bottom: 2px solid var(--border); font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.catalog-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-mid); vertical-align: middle; }
.catalog-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 3%, transparent); }
.catalog-table-photo-col { width: 56px; }
.catalog-table-photo { width: 44px; height: 44px; object-fit: cover; }
.catalog-table-name { color: var(--text); text-decoration: none; white-space: normal; }
.catalog-table-name:hover { color: var(--accent); }
.catalog-table-price { color: var(--text); font-family: var(--f-mono); font-weight: 700; }
.table-buy-form { display: flex; align-items: center; gap: 6px; }
.table-buy-qty { width: 48px; background: var(--bg); border: 1px solid var(--border-b); color: var(--text); padding: 6px 4px; font-size: 13px; text-align: center; }
.table-buy-btn { background: var(--accent); color: #fff; border: none; padding: 8px 14px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; transition: background .2s var(--ease); white-space: nowrap; }
.table-buy-btn:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.table-buy-oos { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

@media (max-width: 768px) {
    .listing-toolbar { flex-direction: column; align-items: flex-start; }
}

/* SHOP: personal cabinet - collapsible "add company/ИП" disclosure on the profile page */
.account-party-disclosure { margin-bottom: 18px; border: 1px solid var(--border-b); }
.account-party-disclosure summary { padding: 14px 16px; cursor: pointer; font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); list-style: none; }
.account-party-disclosure summary::-webkit-details-marker { display: none; }
.account-party-disclosure[open] summary { border-bottom: 1px solid var(--border-b); }
.account-party-disclosure-body { padding: 16px; }

/* amper/ads: cabinet banner rotator */
.ad-rotator {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    min-height: 60px;
}
.ad-rotator-item {
    display: block;
}
.ad-rotator-item-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.ad-rotator-item-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 10px;
    color: var(--text);
    text-align: center;
    font-size: 15px;
}
.ad-price-hint {
    color: var(--text-muted);
    font-size: 14px;
    margin: 8px 0 16px;
}
.ad-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* THE single date-picker component for the whole public site
   (resources/views/components/date-field.blade.php) - every module's
   customer-facing date field uses this now (birth_date in the profile
   form, amper/ads' campaign dates), none use a bare native
   <input type="date"> any more, so there's no appearance:auto override
   needed here either. */
.date-field { position: relative; }
.date-field-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.date-field-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
.date-field-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    width: 280px;
    max-width: 90vw;
    background: var(--bg);
    border: 1px solid var(--border-b);
    border-radius: 1px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.date-field-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text);
}
.date-field-panel-head button {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
}
.date-field-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.date-field-dow { text-align: center; font-size: 11px; color: var(--text-muted); padding: 4px 0; }
.date-field-day {
    background: none;
    border: none;
    color: var(--text);
    font-size: 13px;
    padding: 6px 0;
    cursor: pointer;
    border-radius: 1px;
}
.date-field-day:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.date-field-day.is-muted { color: var(--text-muted); opacity: .4; }
.date-field-day.is-selected { background: var(--accent); color: #fff; }
.date-field-day:disabled { opacity: .25; cursor: not-allowed; }
