/* ══════════════════════════════════════
   RESET & VARIABLES
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Core surfaces (very subtly warm-tinted toward #f26a0f hue) ── */
  --bg:        #141210;
  --surface:   #1f1d1b;
  --surface2:  #272422;
  --border:    #312e2b;
  --orange:    #f26a0f;
  --orange-d:  #c4540a;
  --orange-g:  linear-gradient(135deg, #f26a0f, #ff9843);
  --text:      #f0ede8;
  --muted:     #8a8480;
  --radius:    6px;
  --surface-hover: #1c1917; /* card hover: slightly lighter than --bg, warm-tinted */

  /* ── Semantic / status colors ── */
  --color-success:      #25d366;
  --color-success-bg:   rgba(37, 211, 102, .10);
  --color-success-bd:   rgba(37, 211, 102, .20);
  --color-error:        #ff6464;
  --color-error-bg:     rgba(255, 100, 100, .10);
  --color-error-bd:     rgba(255, 100, 100, .20);

  /* ── Social platform colors ── */
  --color-vk:      #0077ff;
  --color-max:     #6c3fff;
  --color-wa:      #25d366;
  --color-tg:      #229ed9;
  --color-ig:      #e4405f;

  /* ── UI element colors ── */
  --color-star:    #f5a623; /* gold for star ratings — distinct from brand orange */
}

html { scroll-behavior: smooth; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 9999;
  background: var(--orange); color: #fff;
  font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 700;
  padding: 10px 20px; border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Global focus indicator ── */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Remove outline for mouse users on elements that have custom hover styles */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  padding-top: 64px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ══════════════════════════════════════
   UTILITIES
══════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.tag {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 3px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: 2px;
}
.section-title span { color: var(--orange); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.text-muted { color: var(--muted); }

/* ── Scroll Reveal (smooth entrance animations) ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }
.reveal-d6 { transition-delay: .48s; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange-g); color: #fff;
  font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--radius);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(242,106,15,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(242,106,15,.4); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--text);
  font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--radius);
  border: 1px solid var(--border); text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

.btn-outline {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--orange);
  font-size: 14px; font-weight: 600; letter-spacing: .5px;
  padding: 10px 24px; border-radius: var(--radius);
  border: 1px solid rgba(242,106,15,.4); text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-outline:hover { background: rgba(242,106,15,.1); }

.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--color-wa); color: #fff;
  font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 700;
  padding: 15px; border-radius: var(--radius);
  text-decoration: none; transition: filter .2s, transform .2s;
}
.btn-whatsapp:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-whatsapp.btn-block { width: 100%; font-size: 16px; padding: 16px; }

.btn-telegram {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--color-tg); color: #fff;
  font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 700;
  padding: 15px; border-radius: var(--radius);
  text-decoration: none; transition: filter .2s, transform .2s;
}
.btn-telegram:hover { filter: brightness(1.1); transform: translateY(-2px); }

.btn-vk {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--color-vk); color: #fff;
  font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 700;
  padding: 15px; border-radius: var(--radius);
  text-decoration: none; transition: filter .2s, transform .2s;
}
.btn-vk:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-vk.btn-block { width: 100%; font-size: 16px; padding: 16px; }

.btn-max {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--color-max); color: #fff;
  font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 700;
  padding: 15px; border-radius: var(--radius);
  text-decoration: none; transition: filter .2s, transform .2s;
}
.btn-max:hover { filter: brightness(1.1); transform: translateY(-2px); }

.btn-call {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--surface2); color: var(--text);
  font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 600;
  padding: 15px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.btn-call:hover { border-color: var(--orange); color: var(--orange); }

.btn-whatsapp-sm, .btn-telegram-sm, .btn-vk-sm {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; padding: 9px 16px;
  min-height: 44px; /* touch target */
  border-radius: var(--radius); text-decoration: none;
  transition: filter .2s;
}
.btn-whatsapp-sm { background: var(--color-wa);  color: #fff; }
.btn-telegram-sm { background: var(--color-tg);  color: #fff; }
.btn-vk-sm       { background: var(--color-vk);  color: #fff; }
.btn-whatsapp-sm:hover, .btn-telegram-sm:hover, .btn-vk-sm:hover { filter: brightness(1.1); }

.btn-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-g); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: var(--radius);
  text-decoration: none; white-space: nowrap;
  transition: opacity .2s;
}
.btn-nav-cta:hover { opacity: .88; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  text-decoration: none; display: flex; align-items: center;
}
.nav-logo-img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); }

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: 8px 14px;
  color: var(--muted); font-size: 13px; font-weight: 500;
  letter-spacing: .5px; text-decoration: none;
  border-radius: 4px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links .has-dropdown:hover > a { color: var(--orange); }

/* ── Cascade dropdown ── */
.dropdown {
  display: none; list-style: none; padding: 6px 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.45);
  min-width: 210px; z-index: 200;
}

/* L1: opens downward below "Каталог" */
.dropdown--l1 {
  position: absolute; top: calc(100% + 6px); left: 0;
}
.dropdown--l1::before {
  content: ''; position: absolute; top: -6px; left: 0; right: 0; height: 6px;
}
.has-dropdown:hover > .dropdown--l1 { display: block; }

/* L2 & L3: fly out to the right */
.dropdown--l2,
.dropdown--l3 {
  position: absolute; top: -7px; left: 100%;
  margin-left: 4px;
}
.dropdown--l2::before,
.dropdown--l3::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -4px; width: 4px;
}

/* Show L2 when hovering an L1 item that has-sub */
.dropdown--l1 > li.dd-has-sub { position: relative; }
.dropdown--l1 > li.dd-has-sub:hover > .dropdown--l2 { display: block; }

/* Show L3 when hovering an L2 item that has-sub */
.dropdown--l2 > li.dd-has-sub { position: relative; }
.dropdown--l2 > li.dd-has-sub:hover > .dropdown--l3 { display: block; }

/* Items */
.dropdown li { position: relative; }
.dd-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px; font-size: 13px; color: var(--muted);
  white-space: nowrap; gap: 12px;
}
.dd-item:hover { color: var(--orange); background: rgba(242,106,15,.07); }
.dd-arrow { color: var(--muted); font-size: 16px; line-height: 1; opacity: .5; flex-shrink: 0; }
.dd-item:hover .dd-arrow { color: var(--orange); opacity: 1; }
.dd-more a { padding: 7px 16px; font-size: 12px; color: var(--orange); border-top: 1px solid var(--border); display: block; }
.dd-more a:hover { background: rgba(242,106,15,.07); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; display: block; }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 250;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Mobile menu header */
.mob-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.mob-logo {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px;
  color: var(--text); text-decoration: none;
}
.mob-logo span { color: var(--orange); }
.mob-close {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.mob-close:hover { color: var(--orange); border-color: var(--orange); }

/* Mobile menu links */
.mob-links {
  flex: 1; padding: 16px 24px; display: flex; flex-direction: column; gap: 2px;
}
.mob-link {
  display: flex; align-items: center; gap: 14px;
  color: var(--text); text-decoration: none;
  font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 600;
  padding: 14px 16px; border-radius: 10px;
  transition: background .2s, color .2s;
}
.mob-link svg { color: var(--muted); flex-shrink: 0; transition: color .2s; }
.mob-link:hover { background: var(--surface2); color: var(--orange); }
.mob-link:hover svg { color: var(--orange); }

.mob-sub {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 10px 16px 10px 48px; gap: 0;
}
.mob-sub--deep {
  padding-left: 64px; font-size: 13px; color: var(--muted);
}

/* Mobile menu footer */
.mob-footer {
  padding: 16px 24px 24px; flex-shrink: 0;
  border-top: 1px solid var(--border);
}
.mob-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px;
  background: var(--orange); color: #fff;
  font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 700;
  border-radius: 10px; text-decoration: none;
  transition: opacity .2s;
}
.mob-cta:hover { opacity: .88; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: clamp(480px, calc(100svh - 64px), calc(100vh - 64px));
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 140px 0;
  background: url("../img/hero-bg.88646d05b658.png") center / cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, var(--bg) 4%, transparent 22%),
    linear-gradient(to top, var(--bg) 0%, var(--bg) 4%, transparent 22%),
    linear-gradient(to right, var(--bg) 0%, transparent 8%),
    linear-gradient(to left, var(--bg) 0%, transparent 8%),
    linear-gradient(90deg, rgba(20,18,16,.82) 35%, rgba(20,18,16,.45) 100%);
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero {
  --text: #f0ede8;
  --muted: #a8a29e;
  color: var(--text);
}

/* Grid: 7 / 5 split */
.hero-grid-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
}
.hero-left { display: flex; flex-direction: column; gap: 32px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; }
.hero-eyebrow .line { width: 48px; height: 2px; background: var(--orange); flex-shrink: 0; }
.hero-eyebrow span { font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--orange); }
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 7vw, 96px);
  line-height: .9; letter-spacing: 2px; margin: 0;
}
.hero-gradient {
  background: linear-gradient(135deg, var(--orange) 0%, #fc7d24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-family: inherit;
  font-size: 17px; line-height: 1.8; color: #d4d0cc;
  max-width: 540px; margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; margin-top: 72px;
  border-top: 1px solid var(--border); padding-top: 36px; gap: 0;
}
.hero-stat { flex: 1; padding-right: 32px; border-right: 1px solid var(--border); }
.hero-stat:last-child { border-right: none; padding-right: 0; padding-left: 32px; }
.hero-stat:nth-child(2) { padding-left: 32px; }
.hero-stat .num {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px;
  color: var(--orange); line-height: 1;
}
.hero-stat .label { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* ══════════════════════════════════════
   PRODUCT CARDS
══════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.product-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
}
.product-img {
  position: relative; aspect-ratio: 4/3;
  background: var(--surface2); overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center; font-size: 48px;
}
.badge-out, .badge-top {
  position: absolute; top: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 3px;
}
.badge-out { right: 12px; background: rgba(0,0,0,.7); color: var(--muted); border: 1px solid var(--border); }
.badge-top { left: 12px; background: var(--orange); color: #fff; }

.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.product-name { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; color: var(--text); margin-bottom: 8px; }
.product-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; flex: 1; }
.product-specs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.product-specs span {
  font-size: 11px; color: var(--muted); background: var(--surface2);
  padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border);
}
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.product-price { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--orange); }
.product-more { font-size: 12px; font-weight: 600; color: var(--muted); transition: color .2s; }
.product-card:hover .product-more { color: var(--orange); }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */

/* Featured */
.section-featured { padding: 100px 0; background: var(--bg); }

/* Features */
.section-features { padding: 100px 0; background: var(--surface); position: relative; overflow: hidden; }
.section-features::before {
  content: 'КАЧЕСТВО';
  position: absolute; right: -60px; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'Bebas Neue', sans-serif; font-size: 130px;
  color: rgba(255,255,255,.025); white-space: nowrap; pointer-events: none;
}
.features-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 60px; flex-wrap: wrap; }
.features-header p { max-width: 380px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.feature-card {
  background: var(--bg); padding: 36px 32px;
  position: relative; overflow: hidden; cursor: default;
  transition: background .3s;
}
/* Short orange rule above the heading — replaces the emoji icon container */
.feature-card::before {
  content: '';
  display: block;
  width: 28px; height: 3px;
  background: var(--orange);
  margin-bottom: 20px;
}
/* Bottom sweep on hover */
.feature-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px; background: var(--orange-g);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s ease;
}
.feature-card:hover { background: var(--surface-hover); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-card h3 {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  letter-spacing: 1px; margin-bottom: 12px;
}
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* Categories */
.section-categories { padding: 100px 0; background: var(--bg); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cat-card {
  position: relative; border-radius: 10px; overflow: hidden;
  aspect-ratio: 4/3; display: block; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface2);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-img-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center; font-size: 56px;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end; padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
  transition: background .3s;
}
.cat-card:hover .cat-overlay { background: linear-gradient(to top, rgba(242,106,15,.55) 0%, transparent 60%); }
.cat-overlay h3 { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; color: #fff; }
.cat-overlay span { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }

/* Services */
.section-services { padding: 100px 0; background: var(--surface); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 36px 32px;
  display: flex; gap: 24px; align-items: flex-start;
  transition: border-color .25s, transform .25s;
}
.service-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.service-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px;
  color: rgba(242,106,15,.2); line-height: 1; flex-shrink: 0;
}
.service-card h3 {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px;
  letter-spacing: 1px; margin-bottom: 8px;
}
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.service-badge {
  display: inline-block; margin-top: 12px;
  background: rgba(242,106,15,.1); color: var(--orange);
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(242,106,15,.2);
}

/* Materials */
.section-materials { padding: 100px 0; background: var(--bg); }
.materials-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.materials-inner p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 16px 0 36px; }
.materials-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.materials-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.mat-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 44px; display: flex; flex-direction: column; gap: 22px;
  position: relative; overflow: hidden;
}
.mat-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(242,106,15,.18) 0%, transparent 70%);
  border-radius: 50%;
}
.mat-row { display: flex; align-items: center; gap: 14px; }
.mat-label { width: 90px; font-size: 13px; color: var(--muted); text-align: right; }
.mat-bar-wrap { flex: 1; background: var(--border); border-radius: 2px; height: 5px; overflow: hidden; }
.mat-bar {
  height: 100%; background: var(--orange-g); border-radius: 2px;
  width: 100%; /* always full width — scale controls fill */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(.4,0,.2,1);
}
.mat-pct { width: 38px; font-family: 'Bebas Neue', sans-serif; font-size: 17px; color: var(--orange); text-align: right; }

/* Contacts */
.section-contacts { padding: 100px 0; background: var(--surface); position: relative; overflow: hidden; }
.section-contacts::before {
  content: ''; position: absolute; bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(242,106,15,.07) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.contacts-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; position: relative; }
.contacts-map { margin-top: 60px; }
.map-divider {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 28px;
}
.map-divider-line { flex: 1; height: 1px; background: var(--border); }
.map-divider-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.contacts-inner > div:first-child p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 16px 0 40px; }
.contact-person { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.contact-avatar {
  width: 48px; height: 48px; background: var(--surface2);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 20px; border: 2px solid var(--border); flex-shrink: 0;
}
.contact-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.contact-person a { color: var(--orange); text-decoration: none; font-size: 14px; font-weight: 600; }
.contact-person a:hover { text-decoration: underline; }
.contacts-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 14px; padding: 44px;
}
.contacts-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.contacts-card > p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0 0 24px; }
.contacts-card-label { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 28px; }
.messenger-btns { display: flex; flex-direction: column; gap: 12px; }
.divider-or {
  text-align: center; color: var(--muted); font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; position: relative;
}
.divider-or::before, .divider-or::after {
  content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border);
}
.divider-or::before { left: 0; }
.divider-or::after { right: 0; }

/* ══════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════ */
.page-hero {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.page-hero--small { padding: 32px 0; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span:not(:first-of-type) { color: var(--border); }
.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1; letter-spacing: 2px;
}
.page-title span { color: var(--orange); }
.page-sub { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 12px; max-width: 600px; }

/* ══════════════════════════════════════
   CATALOG PAGE
══════════════════════════════════════ */
.catalog-section { padding: 60px 0 100px; }
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }

.catalog-sidebar { position: sticky; top: 84px; }
.catalog-sidebar h3,
.sidebar-heading {
  font-family: 'Bebas Neue', sans-serif; font-size: 18px;
  letter-spacing: 1px; margin-bottom: 16px; color: var(--muted);
}
/* On mobile the toggle button serves as the heading label */
@media (max-width: 900px) {
  .sidebar-heading { display: none; }
}
.filter-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.filter-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; min-height: 44px; border-radius: var(--radius);
  font-size: 14px; color: var(--muted); text-decoration: none;
  border: 1px solid transparent; transition: all .2s;
}
.filter-list a:hover { color: var(--text); background: var(--surface); }
.filter-list a.active { color: var(--orange); background: rgba(242,106,15,.08); border-color: rgba(242,106,15,.2); }
.filter-list--sub { list-style: none; padding-left: 12px; margin-top: 2px; }
.filter-list--sub a { font-size: 13px; padding: 6px 12px; color: var(--muted); }
.filter-count {
  font-size: 11px; background: var(--surface2);
  padding: 1px 7px; border-radius: 20px; color: var(--muted);
}
.sidebar-cta {
  margin-top: 32px; padding: 24px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; gap: 10px;
}
.sidebar-cta p { font-size: 13px; color: var(--muted); font-weight: 500; }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.catalog-count { font-size: 14px; color: var(--muted); }
.catalog-count strong { color: var(--text); }

.empty-state {
  text-align: center; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.empty-icon { font-size: 64px; }
.empty-state h3 { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; }
.empty-state p { color: var(--muted); font-size: 15px; max-width: 400px; }

/* ══════════════════════════════════════
   PRODUCT DETAIL
══════════════════════════════════════ */
.product-detail-section { padding: 60px 0 100px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }
/* prevent grid tracks from expanding to min-content of children */
.product-gallery,
.product-info { min-width: 0; }

.gallery-main {
  position: relative; aspect-ratio: 1; border-radius: 12px;
  overflow: hidden; background: var(--surface2); border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-img-placeholder-lg {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center; font-size: 80px;
}
.gallery-thumbs {
  display: flex; gap: 10px; margin-top: 12px;
  flex-wrap: wrap;
  overflow-x: auto; /* horizontal scroll on mobile if many thumbs */
  width: 100%; min-width: 0; /* constrain so overflow-x:auto actually scrolls */
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; /* prevent clipping the scrollbar */
}
@media (max-width: 640px) {
  .gallery-thumbs { flex-wrap: nowrap; }
}
.gallery-thumb {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border); transition: border-color .2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--orange); }
.badge-out--lg { top: 16px; right: 16px; font-size: 11px; padding: 4px 12px; }

.product-cat-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--orange);
  background: rgba(242,106,15,.1); border: 1px solid rgba(242,106,15,.25);
  padding: 3px 12px; border-radius: 20px; margin-bottom: 16px;
}
.product-detail-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 1px; margin-bottom: 12px;
}
.product-detail-sub { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.product-detail-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.price-value { font-family: 'Bebas Neue', sans-serif; font-size: 42px; color: var(--orange); line-height: 1; }
.price-unit { font-size: 14px; color: var(--muted); }
.product-detail-stock {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 5px 14px;
  border-radius: 20px; margin-bottom: 28px;
}
.in-stock  { background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success-bd); }
.out-stock { background: var(--color-error-bg);   color: var(--color-error);   border: 1px solid var(--color-error-bd); }

.product-quick-specs {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; margin-bottom: 28px;
}
.spec-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row span { color: var(--muted); }
.spec-row strong { color: var(--text); }

.product-detail-actions { display: flex; flex-direction: column; gap: 10px; }

/* Tabs */
.product-tabs { margin-bottom: 60px; }
.tabs-nav { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.tab-btn {
  background: none; border: none; padding: 14px 24px;
  min-height: 44px; /* touch target */
  font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s; margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.product-description { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 780px; }
.product-description p { margin-bottom: 16px; }

.props-table { width: 100%; border-collapse: collapse; max-width: 640px; }
.props-table tr:nth-child(even) { background: var(--surface2); }
.props-table td { padding: 12px 18px; font-size: 14px; border-bottom: 1px solid var(--border); }
.props-table td:first-child { color: var(--muted); width: 45%; }

.related-section { margin-top: 40px; }
.related-section .section-title { margin-bottom: 32px; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-logo {
  font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px;
  color: var(--text); text-decoration: none; display: inline-block; line-height: 1.1; margin-bottom: 14px;
}
.footer-logo span { color: var(--orange); }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-msg-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius); text-decoration: none; transition: filter .2s;
}
.footer-msg-btn.whatsapp { background: var(--color-wa);  color: #fff; }
.footer-msg-btn.telegram { background: var(--color-tg);  color: #fff; }
.footer-msg-btn.vk       { background: var(--color-vk);  color: #fff; }
.footer-msg-btn.max      { background: var(--color-max); color: #fff; }
.footer-msg-btn.tg       { background: var(--color-tg);  color: #fff; }
.footer-msg-btn.ig       { background: var(--color-ig);  color: #fff; }
.footer-msg-btn:hover { filter: brightness(1.1); }

.contacts-address {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 16px; color: var(--muted); font-size: .9rem; line-height: 1.5;
}

.footer-nav h4 {
  font-family: 'Bebas Neue', sans-serif; font-size: 16px;
  letter-spacing: 1px; margin-bottom: 16px; color: var(--text);
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-nav a:hover { color: var(--orange); }
.footer-contacts h4 {
  font-family: 'Bebas Neue', sans-serif; font-size: 16px;
  letter-spacing: 1px; margin-bottom: 16px;
}
.footer-contacts p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.footer-contacts a { color: var(--orange); text-decoration: none; font-weight: 600; font-size: 14px; }
.footer-contacts a:hover { text-decoration: underline; }
.footer-city { font-size: 13px !important; }

.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.footer-bottom p { color: var(--muted); font-size: 13px; margin: 0; }
.footer-bottom a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-bottom a:hover { color: var(--orange); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .materials-inner { grid-template-columns: 1fr; gap: 48px; }
  .contacts-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  .nav-links, .btn-nav-cta { display: none; }
  .burger { display: flex; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-grid-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .hero-stat { border-right: none !important; border-bottom: 1px solid var(--border); padding: 0 0 24px !important; }
  .hero-stat:last-child { border-bottom: none; padding-bottom: 0 !important; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  body { padding-top: 64px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .mat-card { padding: 24px; }
  .contacts-card { padding: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-accent { display: none; } /* decorative only — saves paint on mobile */
  /* Product detail: scale down oversized elements */
  .price-value { font-size: clamp(26px, 8vw, 42px); }
  .product-detail-title { font-size: clamp(24px, 7vw, 44px); }
}

/* Narrow phones (≤ 360px): tighten container padding */
@media (max-width: 360px) {
  .container { padding: 0 16px; }
}

/* ══════════════════════════════════════
   PAGE HERO EXTRAS (about, faq)
══════════════════════════════════════ */
.page-hero-inner { max-width: 680px; }
.page-hero-inner .tag { margin-bottom: 16px; }
.page-hero-inner h1 { margin-bottom: 20px; }
.page-hero-inner p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

/* ══════════════════════════════════════
   ABOUT — ADVANTAGES GRID
══════════════════════════════════════ */
.section-about-adv { padding: 80px 0; background: var(--bg); }
.about-adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.about-adv-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface2); border-radius: 12px; padding: 20px 24px;
  border: 1px solid var(--border);
}
.about-adv-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.about-adv-item h4 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; color: var(--text); }
.about-adv-item p { color: var(--muted); font-size: .9rem; line-height: 1.65; margin: 0; }

/* ══════════════════════════════════════
   ABOUT — PRODUCT INFO
══════════════════════════════════════ */
.section-product-info { padding: 80px 0; background: var(--surface); }
.section-product-info--alt { background: var(--surface2); }
.product-info-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.section-product-info p { color: var(--muted); line-height: 1.7; margin-top: 16px; }
.product-info-card {
  background: var(--surface2); border-radius: 16px;
  border: 1px solid var(--border); overflow: hidden;
}
.pi-row {
  display: flex; gap: 16px; padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.pi-row:last-child { border-bottom: none; }
.pi-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--orange); white-space: nowrap; min-width: 110px;
  padding-top: 2px;
}
.pi-value { font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* ══════════════════════════════════════
   ABOUT — LEGAL INFO
══════════════════════════════════════ */
.about-legal {
  margin-top: 28px; padding: 20px 24px;
  background: var(--surface2); border-radius: 12px; border: 1px solid var(--border);
}
.about-legal p { color: var(--muted); font-size: .9rem; line-height: 1.65; margin: 0 0 8px; }
.about-legal p:last-child { margin-bottom: 0; }
.legal-details { font-size: .8rem !important; color: var(--muted) !important; opacity: .65; }

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.section-faq { padding: 64px 0 80px; }
.faq-list { max-width: 820px; }

/* ══════════════════════════════════════
   RESPONSIVE — NEW PAGES
══════════════════════════════════════ */
@media (max-width: 900px) {
  .about-adv-grid { grid-template-columns: 1fr; }
  .product-info-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .about-adv-item { flex-direction: column; gap: 10px; }
  .pi-row { flex-direction: column; gap: 4px; }
  .pi-label { min-width: unset; }
}

/* ══════════════════════════════════════
   NEWS LIST
══════════════════════════════════════ */
.section-news-list { padding: 64px 0 80px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: 14px;
  border: 1px solid var(--border); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color .25s, transform .25s;
}
.news-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.news-card-img {
  position: relative; height: 200px; overflow: hidden; background: var(--surface2);
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-img-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--muted);
}
.news-card-video-badge {
  position: absolute; bottom: 10px; left: 10px;
  display: flex; align-items: center; gap: 5px;
  background: var(--orange); color: #fff;
  font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 20px;
}
.news-card-body { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: .8rem; color: var(--orange); font-weight: 600; margin-bottom: 8px; }
.news-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--text); }
.news-card-excerpt { font-size: .9rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.news-card-more { font-size: .85rem; color: var(--orange); font-weight: 600; margin-top: auto; }

/* ══════════════════════════════════════
   NEWS DETAIL
══════════════════════════════════════ */
.news-detail-hero { max-width: 800px; }
.news-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-size: .9rem;
  margin-bottom: 20px; transition: color .2s;
}
.news-back:hover { color: var(--orange); }
.news-detail-meta { display: flex; align-items: center; gap: 12px; }
.news-detail-date { color: var(--muted); font-size: .9rem; }
.news-detail-excerpt { color: var(--muted); font-size: 1.1rem; line-height: 1.7; margin-top: 12px; }

.section-news-detail { padding: 48px 0 80px; }
.news-detail-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start;
}
.news-detail-cover {
  border-radius: 14px; overflow: hidden; margin-bottom: 32px;
  background: var(--surface2);
  display: flex; justify-content: center;
}
.news-detail-cover img {
  width: 100%; height: auto; max-height: 70vh;
  object-fit: contain; display: block;
}
.news-detail-text {
  font-size: 1rem; line-height: 1.85; color: var(--text); margin-bottom: 40px;
}
.news-detail-text p { margin-bottom: 1.2em; }
.news-section-label {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem;
  letter-spacing: 1px; margin-bottom: 16px; color: var(--text);
}
.news-detail-video { margin-bottom: 40px; }
.news-video-player {
  width: 100%; border-radius: 12px; display: block;
  background: #000; max-height: 540px;
}
.news-detail-gallery { margin-bottom: 40px; }
.news-gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.news-gallery-item {
  position: relative; border-radius: 8px; overflow: hidden;
  display: block; aspect-ratio: 4/3;
}
.news-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-gallery-item:hover img { transform: scale(1.07); }
.news-gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.6); color: #fff; font-size: .75rem;
  padding: 4px 8px; text-align: center;
}
.news-gallery-item {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 14, 0.94); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-stage {
  position: relative; max-width: min(1200px, 92vw); max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox-image {
  max-width: 100%; max-height: 82vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  user-select: none; -webkit-user-drag: none;
}
.lightbox-caption {
  color: #e8e8ea; font-size: .95rem; line-height: 1.5;
  text-align: center; max-width: 720px;
  padding: 0 12px;
}
.lightbox-caption:empty { display: none; }
.lightbox-counter {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  color: #c9c9cf; font-size: .85rem; letter-spacing: .5px;
  background: rgba(0, 0, 0, 0.5); padding: 6px 14px; border-radius: 20px;
}
.lightbox-close,
.lightbox-nav {
  position: absolute; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s, border-color .15s;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-nav[disabled] { opacity: .35; cursor: default; pointer-events: none; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 600px) {
  .lightbox { padding: 12px; }
  .lightbox-close,
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-prev  { left: 8px; }
  .lightbox-next  { right: 8px; }
  .lightbox-counter { top: 12px; font-size: .78rem; padding: 4px 10px; }
}

/* Sidebar */
.news-sidebar-cta {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; margin-bottom: 24px;
}
.news-sidebar-cta h3 { font-size: 1.1rem; margin-bottom: 8px; }
.news-sidebar-cta p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 16px; }
.news-sidebar-related h4 {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem;
  letter-spacing: 1px; margin-bottom: 14px;
}
.related-news-item {
  display: flex; gap: 12px; align-items: flex-start;
  text-decoration: none; color: inherit; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.related-news-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-news-item img, .related-news-placeholder {
  width: 60px; height: 50px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
}
.related-news-placeholder { background: var(--surface2); display: flex; align-items: center; justify-content: center; }
.related-news-title { font-size: .88rem; font-weight: 600; line-height: 1.4; transition: color .2s; }
.related-news-item:hover .related-news-title { color: var(--orange); }
.related-news-date { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ══════════════════════════════════════
   RESPONSIVE — NEWS
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .news-detail-layout { grid-template-columns: 1fr; }
  .news-detail-sidebar { order: -1; }
  .news-sidebar-cta { display: none; }
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
a.pagination__btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.pagination__btn--active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  cursor: default;
}
.pagination__btn--disabled {
  opacity: .35;
  cursor: default;
}

/* ══════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .mat-bar { transition: none !important; transform: scaleX(1) !important; }
  .product-card,
  .service-card,
  .news-card,
  .cat-card img,
  .feature-card,
  .feature-card::after,
  .btn-primary,
  .btn-secondary,
  .lead-fab,
  .nav-links a,
  .mobile-menu,
  .gallery-main img,
  .tab-content {
    transition: none !important;
    animation: none !important;
  }
  .mobile-menu { transform: translateX(100%); opacity: 0; pointer-events: none; }
  .mobile-menu.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
  @keyframes modalIn { from { opacity: 1; transform: translate(-50%, -46%); } }
  @keyframes slideUp  { from { opacity: 1; transform: translateX(-50%) translateY(0); } }
  @keyframes tabFadeIn { from { opacity: 1; transform: none; } }
}

/* ══════════════════════════════════════
   MOBILE FILTER TOGGLE (catalog)
══════════════════════════════════════ */
.filter-toggle-btn {
  display: none;
  width: 100%; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: left;
  justify-content: space-between; align-items: center; gap: 8px;
  transition: border-color .2s;
}
.filter-toggle-btn:hover { border-color: var(--orange); }
.filter-toggle-btn svg { transition: transform .25s; flex-shrink: 0; }
.filter-toggle-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.filter-collapsible { overflow: hidden; }

@media (max-width: 900px) {
  .filter-toggle-btn { display: flex; margin-bottom: 8px; }
  .filter-collapsible { display: none; }
  .filter-collapsible.open { display: block; }
}

/* ══════════════════════════════════════
   UTILITY CLASSES (replacing inline styles)
══════════════════════════════════════ */
.mob-sub--deep { padding-left: 2.5rem; }
.mt-list { margin-top: 1.5rem; }
.cookie-icon { flex-shrink: 0; color: var(--orange); }
.hp-field { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.btn-block { width: 100%; }

/* ══════════════════════════════════════
   MOBILE FOOTER REDESIGN
══════════════════════════════════════ */
@media (max-width: 640px) {
  .site-footer { padding: 0; }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  /* Brand — full width top */
  .footer-brand {
    grid-column: 1 / -1;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
  }
  .footer-brand p {
    font-size: 13px; line-height: 1.6; margin-bottom: 16px;
  }
  .footer-messengers { flex-direction: row; gap: 8px; }
  .footer-msg-btn {
    flex: 1; justify-content: center;
    font-size: 12px; padding: 10px 12px; min-height: 40px;
  }

  /* Nav columns — side by side, pushed to opposite edges */
  .footer-nav {
    padding: 24px 0;
  }
  .footer-nav h4 {
    font-size: 13px; margin-bottom: 12px; color: var(--orange);
  }
  .footer-nav ul { gap: 6px; }
  .footer-nav a { font-size: 13px; }
  /* Mobile only: shift the Company column visibly right within its cell.
     Text reads L→R as normal. */
  .footer-nav--company { padding-left: 24px; text-align: left; }

  /* Contacts — full width below navs */
  .footer-contacts {
    grid-column: 1 / -1;
    padding: 24px 0;
    border-top: 1px solid var(--border);
  }
  .footer-contacts h4 {
    font-size: 13px; margin-bottom: 12px; color: var(--orange);
  }
  .footer-contacts p { font-size: 13px; margin-bottom: 10px; line-height: 1.5; }
  .footer-contacts a { font-size: 15px; }
  .footer-city { font-size: 12px !important; opacity: .7; }

  /* Bottom bar — full width + space for FAB */
  .footer-bottom {
    padding: 16px 0 80px;
  }
  .footer-bottom p {
    font-size: 11px; text-align: center; width: 100%;
  }
}

/* ── Hero advantages block ── */
.hero-advantages {
  background: rgba(19,19,19,.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 40px 36px;
}
.hero-adv-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 1px;
  margin: 0 0 12px;
  color: #fff;
  text-transform: uppercase;
}
.hero-adv-accent {
  width: 48px; height: 3px;
  background: var(--orange);
  margin-bottom: 32px;
}
.hero-adv-items { display: flex; flex-direction: column; gap: 0; }
.hero-adv-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.hero-adv-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 20px 0;
}
.hero-adv-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--orange);
  opacity: .5;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.hero-adv-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 4px;
}
.hero-adv-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ── aria-current nav styling ── */
.nav-links a[aria-current="page"] { color: var(--orange); }

/* ══════════════════════════════════════
   SMOOTH SCROLL ANIMATIONS
══════════════════════════════════════ */

/* Smooth anchor scrolling with offset for fixed nav */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Section entry — fade with subtle parallax */
section { transition: opacity .3s ease; }

/* Gallery main image crossfade */
.gallery-main img {
  transition: opacity .3s ease, transform .3s ease;
}

/* Tab content smooth reveal */
.tab-content {
  animation: none;
}
.tab-content.active {
  animation: tabFadeIn .3s ease;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Filter collapsible smooth open */
@media (max-width: 900px) {
  .filter-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.22, 1, .36, 1), opacity .25s ease;
    opacity: 0;
    display: block !important;
  }
  .filter-collapsible.open {
    max-height: 600px;
    opacity: 1;
  }
}

/* Product card hover — smoother */
.product-card {
  transition: border-color .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease;
}

/* Service card hover — smoother */
.service-card {
  transition: border-color .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}

/* Category card image zoom — smoother */
.cat-card img {
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

/* Feature card bottom sweep — smoother */
.feature-card::after {
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

/* Material bars — smoother entrance */
.mat-bar {
  transition: transform 1.4s cubic-bezier(.22, 1, .36, 1);
}

/* Navbar scroll transition */
#navbar {
  transition: background .4s ease, box-shadow .4s ease;
}

/* ══════════════════════════════════════
   LIGHT THEME (auto via prefers-color-scheme)
══════════════════════════════════════ */
@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f5f3f0;
    --surface:   #ffffff;
    --surface2:  #ece9e4;
    --border:    #d6d2cc;
    --text:      #1a1816;
    --muted:     #6b6560;
    --surface-hover: #f0ede8;
  }

  body { color-scheme: light; }

  /* Navbar needs darker tint in light mode */
  #navbar {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
  }

  /* Logo: show original colors in light mode */
  .nav-logo-img { filter: none; }

  /* Hero: minimal edge fade for light bg */
  .hero::before {
    background:
      linear-gradient(to bottom, var(--bg) 0%, transparent 1%),
      linear-gradient(to top, var(--bg) 0%, transparent 3%),
      linear-gradient(to right, var(--bg) 0%, transparent 0%),
      linear-gradient(to left, var(--bg) 0%, transparent 0%),
      linear-gradient(90deg, rgba(20,18,16,.78) 0%, rgba(20,18,16,.4) 100%);
  }
  .hero {
    --text: #f0ede8;
    --muted: #a8a29e;
    color: #f0ede8;
  }

  /* Features watermark text */
  .section-features::before { color: rgba(0,0,0,.03); }

  /* Card shadows — softer */
  .product-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.1); }
  .mat-card::before { background: radial-gradient(circle, rgba(242,106,15,.1) 0%, transparent 70%); }

  /* Dropdown shadow */
  .dropdown { box-shadow: 0 12px 32px rgba(0,0,0,.12); }

  /* Badge out */
  .badge-out { background: rgba(255,255,255,.85); color: var(--muted); }

  /* Category overlay */
  .cat-overlay { background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%); }
  .cat-card:hover .cat-overlay { background: linear-gradient(to top, rgba(242,106,15,.45) 0%, transparent 60%); }

  /* Contact section bg */
  .section-contacts::before {
    background: radial-gradient(circle, rgba(242,106,15,.05) 0%, transparent 70%);
  }

  /* Scrollbar */
  ::-webkit-scrollbar-track { background: var(--bg); }

  /* Burger lines */
  .burger span { background: var(--text); }

  /* Lead modal */
  .lead-backdrop.open { background: rgba(0,0,0,.4); }

  /* Cookie banner */
  .cookie-banner { box-shadow: 0 8px 32px rgba(0,0,0,.12); }

  /* Footer */
  .site-footer { background: var(--surface2); }
}
