/* ================================================================
   ОПТЭЛ — Dark Industrial Forest Design
   Palette: deep dark green + acid lime accent + warm amber
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg:       #0a0f0a;
  --bg2:      #0f1a0f;
  --bg3:      #152015;
  --surface:  #1a2e1a;
  --surface2: #213321;
  --border:   rgba(130,200,80,0.15);
  --border2:  rgba(130,200,80,0.30);

  --lime:     #aaff00;
  --lime-dim: #7acc00;
  --lime-glow:rgba(170,255,0,0.18);
  --amber:    #ffb830;
  --amber-dim:#cc8f00;
  --green:    #3ddc84;

  --text:     #e8f5e0;
  --text2:    #8aaa78;
  --text3:    #4d6644;

  --radius:   6px;
  --radius-lg:12px;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--lime-dim); }

/* ── TYPOGRAPHY ── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 110px);
  line-height: 0.92;
  letter-spacing: 2px;
  color: var(--text);
  text-transform: uppercase;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  line-height: 0.95;
  letter-spacing: 1.5px;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 20px;
}
h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
p { color: var(--text2); line-height: 1.7; margin-bottom: 8px; }
p:last-child { margin-bottom: 0; }
a { color: var(--lime); text-decoration: none; transition: all 0.2s; }
a:hover { color: #fff; }

/* ── SELECTION ── */
::selection { background: var(--lime); color: #000; }

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,15,10,0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.header-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 4px;
  color: #fff;
  text-decoration: none;
  position: relative;
}
.logo-text .accent { color: var(--lime); }
.header-vat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid var(--border2);
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
nav {
  display: flex;
  gap: 2px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text2);
  padding: 7px 14px;
  border-radius: 4px;
  transition: all 0.18s;
  white-space: nowrap;
}
nav a:hover, nav a.active {
  color: var(--lime);
  background: var(--lime-glow);
}
.header-phone {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--lime);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.2s;
}
.header-phone:hover { color: #fff; text-shadow: 0 0 20px var(--lime); }

/* MOBILE */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.burger span { width: 24px; height: 2px; background: var(--text2); border-radius: 2px; display: block; transition: all 0.3s; }
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(10,15,10,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 199;
  padding: 16px 32px 20px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text2);
  padding: 11px 14px;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--lime); background: var(--lime-glow); }
.mobile-nav .mob-phone {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--lime);
  margin-top: 10px;
  padding: 8px 14px;
}

/* ── LAYOUT ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
section { padding: 80px 0; border-bottom: 1px solid var(--border); }
section:last-child { border-bottom: none; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--lime);
}
.page-hero {
  padding: 64px 0 48px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(170,255,0,0.04) 0%, transparent 65%);
  pointer-events: none;
}

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-lime {
  background: var(--lime);
  color: #000;
}
.btn-lime:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 30px var(--lime-glow), 0 0 60px rgba(170,255,0,0.1);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: var(--lime-glow);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--lime);
}
.btn-tg {
  background: #229ED9;
  color: #fff;
}
.btn-tg:hover { background: #1a8bc0; transform: translateY(-1px); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(170,255,0,0.05);
}
.card:hover::before { opacity: 1; }

/* ── STAT STRIP ── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: background 0.2s;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%;
  width: 1px;
  background: var(--border);
}
.stat-item:hover { background: var(--surface); }
.stat-num {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  color: var(--lime);
  display: block;
}
.stat-label {
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 0.5px;
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
}

/* ── SORT TAGS ── */
.sort-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.sort-extra { background: rgba(255,215,0,0.15); color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }
.sort-prima { background: rgba(255,184,48,0.12); color: var(--amber); border: 1px solid rgba(255,184,48,0.25); }
.sort-a { background: var(--lime-glow); color: var(--lime); border: 1px solid var(--border2); }
.sort-b { background: rgba(61,220,132,0.1); color: var(--green); border: 1px solid rgba(61,220,132,0.25); }
.sort-c { background: rgba(255,255,255,0.05); color: var(--text3); border: 1px solid var(--border); }

/* ── TABLES ── */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  background: var(--surface2);
  color: var(--lime);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text2); }
tr:hover td { background: var(--surface); color: var(--text); }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.product-card:hover {
  border-color: rgba(170,255,0,0.35);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(170,255,0,0.06);
}
.product-card-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface2), var(--surface));
}
.product-card-name {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 6px;
}
.product-card-sub { font-size: 12px; color: var(--text3); letter-spacing: 0.5px; }
.product-card-body { padding: 24px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-visual {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

/* ── CALL STRIP ── */
.call-strip {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.call-strip::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--lime);
}
.call-strip-title { font-family: var(--font-display); font-size: 28px; letter-spacing: 1px; color: var(--text); }
.call-strip-sub { font-size: 13px; color: var(--text3); margin-top: 4px; }
.call-strip-phone {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 2px;
  color: var(--lime);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.2s;
}
.call-strip-phone:hover { color: #fff; text-shadow: 0 0 20px var(--lime); }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text3); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--lime-dim);
  box-shadow: 0 0 0 3px rgba(170,255,0,0.08);
  background: var(--bg2);
}
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238aaa78' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 12px; color: var(--text3); margin-top: 10px; line-height: 1.5; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--text); }

/* ── INFO BOX ── */
.info-box {
  background: rgba(170,255,0,0.05);
  border: 1px solid rgba(170,255,0,0.2);
  border-left: 3px solid var(--lime);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 18px;
}
.info-box strong { color: var(--text); }
.info-box-amber {
  background: rgba(255,184,48,0.05);
  border-color: rgba(255,184,48,0.2);
  border-left-color: var(--amber);
}

/* ── CHECK LIST ── */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 4px;
  width: 14px;
  height: 14px;
  background: var(--lime-glow);
  border: 1px solid var(--border2);
  border-radius: 3px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%23aaff00' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── TECH BLOCK ── */
.teh-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.teh-block h3 {
  color: var(--lime);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* ── CALCULATOR ── */
.calc-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 28px; gap: 2px; }
.calc-tab {
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text3);
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.18s;
  font-family: var(--font-body);
}
.calc-tab.active { color: var(--lime); border-bottom-color: var(--lime); }
.calc-tab:hover:not(.active) { color: var(--text); }
.calc-panel { display: none; }
.calc-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.field-group { margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 6px;
}
.field-input, .field-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
  appearance: none;
}
.field-input:focus, .field-select:focus { border-color: var(--lime-dim); box-shadow: 0 0 0 3px rgba(170,255,0,0.08); }
.field-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238aaa78' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; cursor: pointer; }
.calc-result-box {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.calc-result-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), transparent);
}
.calc-result-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 20px;
}
.result-row { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.result-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.result-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--lime);
  line-height: 1;
}
.result-label { font-size: 12px; color: var(--text3); margin-top: 4px; }
.btn-calc {
  width: 100%;
  padding: 13px;
  background: var(--lime);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-calc:hover { background: #fff; box-shadow: 0 0 20px var(--lime-glow); }

/* ── CONTACTS ── */
.contact-phone-hero {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  letter-spacing: 2px;
  color: var(--lime);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
  text-decoration: none;
  transition: all 0.2s;
}
.contact-phone-hero:hover { color: #fff; text-shadow: 0 0 30px var(--lime); }
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all 0.2s;
}
.contact-info-card:hover { border-color: var(--border2); }
.contact-info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 8px;
}
.contact-info-val { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.6; }

/* ── MAP BLOCK ── */
.map-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  background: transparent;
  position: relative;
}
/* map-block заглушка (когда нет iframe) */
.map-block.placeholder {
  min-height: 420px;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}

/* ── GALLERY ── */
.gallery-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.gallery-tab {
  padding: 8px 22px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text3);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-tab:hover { border-color: var(--border2); color: var(--text); }
.gallery-tab.active { background: var(--lime); border-color: var(--lime); color: #000; }
.gallery-section { display: none; }
.gallery-section.active { display: block; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text3);
  font-size: 13px;
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
}
.gallery-item:hover { border-color: var(--border2); transform: scale(1.02); box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── POLICY ── */
.policy-content { max-width: 820px; }
.policy-content h2 { font-family: var(--font-body); font-size: 17px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--text); margin-top: 28px; margin-bottom: 10px; }
.policy-content p { font-size: 14px; line-height: 1.8; color: var(--text2); margin-bottom: 12px; }
.policy-content ul { padding-left: 22px; margin-bottom: 12px; }
.policy-content li { font-size: 14px; color: var(--text2); line-height: 1.8; }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand { font-family: var(--font-display); font-size: 20px; letter-spacing: 3px; color: var(--text3); }
.footer-brand span { color: var(--lime); }
.footer-info { font-size: 13px; color: var(--text3); }
.footer-vat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid var(--border2);
  padding: 3px 10px;
  border-radius: 3px;
}
.footer-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: var(--text3); font-size: 12px; transition: color 0.2s; }
.footer-links a:hover { color: var(--lime); }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(170,255,0,0.04);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text3);
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--lime); }
.modal h3 { font-family: var(--font-display); font-size: 28px; letter-spacing: 1px; color: var(--text); margin-bottom: 6px; }
.modal p.modal-desc { font-size: 13px; color: var(--text3); margin-bottom: 24px; }
.modal-submit {
  width: 100%;
  padding: 14px;
  background: var(--lime);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-submit:hover { background: #fff; box-shadow: 0 0 20px var(--lime-glow); }
.modal-note { font-size: 11px; color: var(--text3); margin-top: 12px; text-align: center; line-height: 1.6; }
.modal-note a { color: var(--lime); }

/* ── STICKY CTA ── */
.sticky-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 360;
  background: var(--lime);
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(170,255,0,0.25);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sticky-cta:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(170,255,0,0.35); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 600;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: var(--text2);
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--lime); }

/* ── RESPONSIVE ── */
@media(max-width: 960px) {
  nav { display: none; }
  .burger { display: flex; }
  .header-phone { display: none; }
  .header-vat { display: none; }
  h1 { font-size: clamp(36px, 10vw, 64px); }
  h2 { font-size: clamp(26px, 7vw, 44px); }
  .grid-2, .grid-3, .grid-4,
  .product-card-body,
  .calc-panel.active { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .call-strip { flex-direction: column; align-items: flex-start; gap: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 52px 0; }
  .container { padding: 0 20px; }
  .header-wrap { padding: 0 20px; }
  .footer-inner { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media(max-width: 580px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .modal { padding: 24px; }
  .sticky-cta .cta-text { display: none; }
  .contacts-main-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   CROSSBROWSER FIXES
   ================================================================ */

/* Safari: backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  header { background: rgba(10,15,10,0.97) !important; }
  .modal-overlay.open { background: rgba(0,0,0,0.85) !important; }
  .mobile-nav { background: rgba(10,15,10,0.99) !important; }
}

/* Firefox: scrollbar */
* { scrollbar-width: thin; scrollbar-color: #213321 #0a0f0a; }

/* iOS Safari: input zoom prevention */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .form-input, .form-select, .form-textarea,
  .field-input, .field-select {
    font-size: 16px;
  }
}

/* IE/Edge legacy: CSS variables fallback handled via JS below */

/* Prevent tap highlight on mobile */
a, button { -webkit-tap-highlight-color: transparent; }

/* Smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Safari: appearance reset */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }

/* Focus-visible for keyboard nav */
:focus-visible {
  outline: 2px solid #aaff00;
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── PAGE HERO compact ── */
.page-hero {
  padding: 40px 0 36px !important;
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.page-hero-icon {
  opacity: 0.7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  max-width: 220px;
}
@media(max-width:960px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-icon { display: none; }
}

/* ── COMPACT FORM ── */
.form-compact .form-group { margin-bottom: 10px; }
.form-compact .form-label { font-size: 10px; margin-bottom: 4px; }
.form-compact .form-input,
.form-compact .form-select,
.form-compact .form-textarea { padding: 9px 12px; font-size: 13px; }
.form-compact .form-textarea { min-height: 70px; }
.form-compact .grid-2 { gap: 10px; }

/* ── CONTACTS GRID fix ── */
.contacts-main-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 28px;
  align-items: start;
}
@media(max-width:900px) {
  .contacts-main-grid { grid-template-columns: 1fr !important; }
}

/* ── EASTER EGG ── */
.easter-egg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 900;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
}
.easter-egg-overlay.show { display: flex; }
.easter-egg-text {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 120px);
  color: var(--lime);
  letter-spacing: 4px;
  text-align: center;
  animation: egg-pulse 1.5s ease-in-out infinite;
}
.easter-egg-sub {
  font-size: 14px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
}
@keyframes egg-pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 40px rgba(170,255,0,0.4); }
  50% { opacity: 0.6; text-shadow: 0 0 80px rgba(170,255,0,0.8); }
}
/* matrix rain canvas */
#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 899;
  display: none;
  opacity: 0.35;
}
#matrix-canvas.show { display: block; }

/* ── КОРЗИНА: отступ при открытой панели ── */
body.cart-open { padding-bottom: 72px; }
body.cart-open footer { margin-bottom: 0; }


/* sticky-cta выше корзины */
body.cart-open .sticky-cta { bottom: 90px; }

/* Карта Яндекс — закруглить все края */
.contacts-main-grid > .reveal iframe,
.contacts-main-grid > .reveal > * { border-radius: var(--radius-lg) !important; }

/* ═══════════════════════════════════════
   ГЛОБАЛЬНАЯ КОРЗИНА (все страницы)
═══════════════════════════════════════ */
.cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  z-index: 350;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 12px 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cart-bar.visible { transform: translateY(0); }
.cart-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.cart-items-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}
.cart-items-list::-webkit-scrollbar { display: none; }
.cart-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cart-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-tag-remove {
  cursor: pointer;
  color: var(--text3);
  font-size: 14px;
  line-height: 1;
  margin-left: 2px;
}
.cart-tag-remove:hover { color: #ff5555; }
.cart-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lime);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-send-btn {
  background: var(--lime);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cart-send-btn:hover { background: #fff; }
.cart-clear {
  font-size: 12px;
  color: var(--text3);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  font-family: var(--font-body);
  padding: 4px 8px;
}
.cart-clear:hover { color: #ff5555; }
.btn-cart {
  background: var(--surface2);
  color: var(--lime);
  border: 1px solid var(--border2);
}
.btn-cart:hover { background: rgba(170,255,0,0.15); border-color: var(--lime); }
.btn-cart.added { background: rgba(170,255,0,0.15); border-color: var(--lime); }
@media(max-width:700px) {
  .cart-bar-inner { flex-wrap: wrap; gap: 8px; }
  .cart-bar-left { width: 100%; }
}

/* ── GLOBAL MOBILE FIXES ── */
@media(max-width:600px) {
  /* Все таблицы — скролл */
  .teh-block, .spec-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  table { min-width:360px; }

  /* Кнопки — не вылезают */
  .btn { white-space:nowrap; }
  
  /* Форма секций — 1 колонка */
  .grid-2 { grid-template-columns: 1fr !important; }
  
  /* Убрать горизонтальный overflow с body */
  body { overflow-x: hidden; }
  .container { overflow-x: hidden; }
  
  /* Hero секция не вылезает */
  .hero { overflow-x: hidden; }
  
  /* Section текст не вылезает */
  section { overflow-x: hidden; }
}

/* ── КАЛЬКУЛЯТОР: кнопка Очистить ── */
.btn-clear {
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  white-space: nowrap;
}
.btn-clear:hover {
  border-color: var(--border2);
  color: var(--lime);
  background: var(--surface2);
}
/* calc-result-box — flex колонка чтобы кнопка была снизу */
.calc-result-box {
  display: flex !important;
  flex-direction: column;
}
