/* ============================================================
   ООО «ССС» — нефтехимия и ДТ
   Индустриально-техническая тёмная тема
   ============================================================ */

:root {
  /* Петролеумная стальная палитра */
  --bg:        #0b0f14;
  --bg-2:      #0e141b;
  --surface:   #131b24;
  --surface-2: #182230;
  --line:      #24313f;
  --line-2:    #2f4152;

  --text:      #e9eff5;
  --muted:     #93a2b3;
  --dim:       #61717f;

  /* Фирменный зелёный «Связьспецстрой» */
  --amber:     #23c17a;   /* акцент (наследие имени переменной) */
  --amber-2:   #37d08a;
  --amber-deep:#0f5a38;
  --brand-dark:#16392b;   /* цвет логотипа */
  --steel:     #4aa3c7;

  --ok:        #3ecb8f;
  --err:       #ff5d5d;

  --radius:    14px;
  --radius-lg: 22px;

  --ff-display: "Unbounded", "Arial Black", sans-serif;
  --ff-body:    "IBM Plex Sans", system-ui, sans-serif;
  --ff-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Фоновая атмосфера: сетка + свечение + зерно */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 82% -8%, rgba(45,200,130,.10), transparent 60%),
    radial-gradient(800px 700px at 8% 12%,  rgba(74,163,199,.07), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.15) 70%, transparent);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Типографика ---------- */
h1, h2, h3 { font-family: var(--ff-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.mono { font-family: var(--ff-mono); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--amber);
  display: inline-block;
}

.section {
  position: relative;
  padding: 110px 0;
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-top: 18px;
  text-transform: uppercase;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }

.section-num {
  position: absolute;
  top: 70px; right: 24px;
  font-family: var(--ff-mono);
  font-size: .8rem;
  color: var(--dim);
  letter-spacing: .2em;
}

/* ---------- Кнопки ---------- */
.btn {
  --bg-btn: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: .86rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-2) 100%);
  color: #05231a;
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(45,200,130,.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(45,200,130,.75); }
.btn-ghost {
  background: rgba(255,255,255,.02);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-3px); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Хедер ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(11,15,20,.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 84px;
  transition: height .4s;
}
.header.scrolled .container { height: 68px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 44px; width: auto; display: block; transition: height .4s; }
.header.scrolled .brand-logo img { height: 36px; }
.brand-name { font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.brand-sub { font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  font-size: .92rem;
  color: var(--muted);
  position: relative;
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--amber); transition: width .3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 18px; }
/* Кнопка в шапке — компактнее и спокойнее, чем CTA в герое */
.header-cta .btn-primary {
  padding: 11px 20px;
  font-size: .78rem;
  box-shadow: 0 6px 16px -9px rgba(45,200,130,.45);
}
.header-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(45,200,130,.55);
}
.header-phone { font-family: var(--ff-mono); font-size: .95rem; color: var(--text); white-space: nowrap; }
.header-phone span { color: var(--dim); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}
.hero-liquid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: .5;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 25% 100%;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  font-family: var(--ff-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero-badge b { color: var(--amber); font-weight: 500; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(62,203,143,.15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(62,203,143,0); } }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  text-transform: uppercase;
  letter-spacing: -.02em;
  max-width: 15ch;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--amber), var(--amber-2) 55%, #c9f2dc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  max-width: 56ch;
  margin: 28px 0 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  color: var(--text);
  line-height: 1;
}
.stat .num small { color: var(--amber); font-size: .5em; }
.stat .lbl { font-family: var(--ff-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-top: 10px; }

/* ---------- Бегущая строка ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 20px 0;
}
.ticker-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll-x 34s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
}
.ticker-item::after { content: "◆"; color: var(--amber); font-size: .7rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- О компании ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.about-text p { color: var(--muted); font-size: 1.06rem; margin: 0 0 20px; }
.about-text strong { color: var(--text); }
.about-marks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-mark {
  font-family: var(--ff-mono); font-size: .8rem;
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--muted);
}
.about-mark b { color: var(--amber); font-weight: 500; }

.about-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 8px;
  position: relative;
}
.about-panel-inner {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  background:
    radial-gradient(400px 200px at 100% 0, rgba(45,200,130,.09), transparent 70%),
    var(--bg);
}
.rep-title { font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.rep-name { font-family: var(--ff-display); font-size: 1.7rem; margin: 12px 0 6px; }
.rep-desc { color: var(--muted); font-size: .96rem; }
.rep-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.rep-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: .96rem; }
.rep-list li svg { width: 20px; height: 20px; flex: none; color: var(--amber); margin-top: 2px; }

/* ---------- Преимущества ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s;
}
.adv-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(300px 200px at var(--mx,50%) var(--my,0%), rgba(45,200,130,.12), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.adv-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.adv-card:hover::before { opacity: 1; }
.adv-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(45,200,130,.1);
  border: 1px solid rgba(45,200,130,.25);
  color: var(--amber);
  margin-bottom: 22px;
}
.adv-icon svg { width: 26px; height: 26px; }
.adv-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.adv-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.adv-card .idx { position: absolute; top: 24px; right: 26px; font-family: var(--ff-mono); font-size: .78rem; color: var(--dim); }

/* ---------- Продукция ---------- */
.products { background: var(--bg-2); }
.product-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--surface);
}
.pf-media {
  position: relative;
  min-height: 340px;
  background:
    radial-gradient(500px 300px at 30% 20%, rgba(45,200,130,.18), transparent 60%),
    linear-gradient(135deg, #10171f, #0a0e13);
  display: grid; place-items: center;
  overflow: hidden;
}
.pf-media .drop {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(3rem, 9vw, 7rem);
  color: rgba(45,200,130,.16);
  text-transform: uppercase;
  letter-spacing: -.04em;
}
.pf-media .tag {
  position: absolute; top: 22px; left: 22px;
  font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(45,200,130,.3); border-radius: 999px; padding: 6px 14px;
}
.pf-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.pf-body h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); text-transform: uppercase; margin-bottom: 16px; }
.pf-body p { color: var(--muted); margin: 0 0 26px; }
.pf-specs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.pf-specs span {
  font-family: var(--ff-mono); font-size: .8rem; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px;
}
.pf-specs b { color: var(--amber); font-weight: 500; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--amber); }
.product-card .code {
  font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .1em;
  color: var(--dim); text-transform: uppercase;
}
.product-card h3 { font-size: 1.28rem; margin: 14px 0 10px; text-transform: uppercase; }
.product-card p { color: var(--muted); font-size: .93rem; margin: 0 0 22px; }
.product-card .more {
  font-family: var(--ff-mono); font-size: .82rem; color: var(--amber);
  display: inline-flex; align-items: center; gap: 8px; transition: gap .3s;
}
.product-card:hover .more { gap: 14px; }
.product-card .glyph {
  position: absolute; right: -10px; bottom: -22px;
  font-family: var(--ff-display); font-weight: 700; font-size: 6rem;
  color: rgba(255,255,255,.025); text-transform: uppercase;
  pointer-events: none;
}

/* ---------- Логистика ---------- */
.logi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 44px; }
.logi-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: var(--surface);
  transition: border-color .3s, transform .3s var(--ease);
}
.logi-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.logi-card .ic { color: var(--amber); margin-bottom: 16px; }
.logi-card .ic svg { width: 30px; height: 30px; }
.logi-card h4 { font-family: var(--ff-body); font-weight: 600; font-size: 1.05rem; margin: 0 0 8px; }
.logi-card p { color: var(--muted); font-size: .9rem; margin: 0; }

.pack-strip {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 26px 30px;
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  background: rgba(255,255,255,.015);
}
.pack-strip .lbl { font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-right: 8px; }
.pack-strip .item { font-family: var(--ff-mono); font-size: .9rem; color: var(--text); padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; }

/* ---------- Качество ---------- */
.quality-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.quality-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.quality-list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.quality-list li:last-child { border-bottom: 0; }
.quality-list .qn { font-family: var(--ff-mono); color: var(--amber); font-size: .9rem; flex: none; }
.quality-list h4 { font-family: var(--ff-body); font-weight: 600; margin: 0 0 4px; font-size: 1.06rem; }
.quality-list p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Форма / Заявка ---------- */
.cta-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  background: var(--surface);
}
.cta-aside {
  position: relative;
  overflow: hidden;
  padding: 52px;
  background:
    radial-gradient(400px 300px at 20% 10%, rgba(45,200,130,.14), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border-right: 1px solid var(--line);
}
.cta-aside > *:not(.mesh) { position: relative; z-index: 1; }
.mesh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cta-aside .mesh { opacity: .5; }
.cta-aside h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); text-transform: uppercase; margin-bottom: 18px; }
.cta-aside p { color: var(--muted); margin: 0 0 30px; }
.cta-aside .contact-line { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cta-aside .contact-line svg { width: 20px; height: 20px; color: var(--amber); flex: none; }
.cta-aside .contact-line a, .cta-aside .contact-line span { font-family: var(--ff-mono); font-size: .96rem; color: var(--text); }
.tg-note {
  margin-top: 26px; padding: 14px 16px;
  border: 1px solid rgba(74,163,199,.3); border-radius: 12px;
  background: rgba(74,163,199,.06);
  font-size: .86rem; color: var(--muted);
  display: flex; gap: 12px; align-items: center;
}
.tg-note svg { color: var(--steel); width: 22px; height: 22px; flex: none; }

.cta-form { padding: 52px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; position: relative; }
.field label {
  display: block; font-family: var(--ff-mono); font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px;
}
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: .98rem;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(45,200,130,.12);
}
.field select { appearance: none; cursor: pointer; }
.field select.field-flash {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(45,200,130,.18);
  animation: fieldFlash 1.4s var(--ease);
}
@keyframes fieldFlash {
  0%   { box-shadow: 0 0 0 0 rgba(45,200,130,.55); }
  60%  { box-shadow: 0 0 0 8px rgba(45,200,130,0); }
  100% { box-shadow: 0 0 0 4px rgba(45,200,130,.18); }
}
.field.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 22px; }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber); flex: none; }
.form-consent label { font-size: .82rem; color: var(--dim); font-family: var(--ff-body); text-transform: none; letter-spacing: 0; }
.form-consent a { color: var(--muted); text-decoration: underline; }
.cta-form .btn-primary { width: 100%; justify-content: center; font-size: .92rem; padding: 17px; }
.form-status { margin-top: 16px; font-family: var(--ff-mono); font-size: .88rem; min-height: 22px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.btn.loading { pointer-events: none; opacity: .7; }
.btn.loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(26,18,6,.35); border-top-color: #05231a;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; background: var(--surface);
}
.contact-card .ct { font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.contact-card a, .contact-card p { color: var(--text); font-size: 1rem; margin: 0 0 8px; display: block; }
.contact-card a:hover { color: var(--amber); }
.req-block {
  margin-top: 22px; padding: 22px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
  font-family: var(--ff-mono); font-size: .84rem; color: var(--muted); line-height: 1.9;
}
.req-block b { color: var(--text); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer .brand-sub { max-width: 40ch; margin-top: 14px; line-height: 1.7; }
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; font-weight: 400; }
.footer-col a { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 10px; transition: color .25s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--dim);
}

/* ---------- Модалка продукта ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(4,7,10,.8); backdrop-filter: blur(6px); animation: fade .3s; }
.modal-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 40px;
  animation: pop .4s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  color: var(--muted); cursor: pointer; font-size: 1.3rem; line-height: 1;
  transition: .25s;
}
.modal-close:hover { color: var(--amber); border-color: var(--amber); }
.modal-box .code { font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.modal-box h3 { font-size: 2rem; text-transform: uppercase; margin: 12px 0 14px; }
.modal-box .lead { color: var(--muted); margin: 0 0 26px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
.spec-table td { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-table td:first-child { color: var(--muted); font-family: var(--ff-mono); font-size: .84rem; }
.spec-table td:last-child { text-align: right; color: var(--text); font-weight: 500; }
.modal-apps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.modal-apps span { font-size: .82rem; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); }
.modal-box .btn-primary { width: 100%; justify-content: center; }

/* ---------- Анимации появления ----------
   Прячем только если JS активен (класс .js на <html>).
   Без JS весь контент виден — прогрессивное улучшение. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .40s; }

/* ---------- Карта ---------- */
.map-wrap {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  filter: grayscale(.3) contrast(1.05);
}
.map-wrap iframe { display: block; width: 100%; border: 0; }

/* ---------- Плавающий виджет мессенджеров ---------- */
.msgr {
  position: fixed; left: 24px; bottom: 26px; z-index: 95;
  display: flex; flex-direction: column; gap: 12px;
}
.msgr a {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; box-shadow: 0 10px 26px -8px rgba(0,0,0,.5);
  transform: translateY(0);
  transition: transform .3s var(--ease), box-shadow .3s;
  position: relative;
}
.msgr a svg { width: 26px; height: 26px; }
.msgr a:hover { transform: translateY(-4px) scale(1.06); }
.msgr .wa { background: linear-gradient(135deg, #25d366, #128c4a); }
.msgr .tg { background: linear-gradient(135deg, #37aee2, #1e96c8); }
.msgr a::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid currentColor; opacity: .5;
  animation: ring 2.4s ease-out infinite;
}
.msgr .wa::before { color: #25d366; }
.msgr .tg::before { color: #37aee2; }
@keyframes ring { 0% { transform: scale(1); opacity: .5; } 70%,100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 720px) { .msgr a { width: 48px; height: 48px; } .msgr { left: 16px; bottom: 20px; } }

.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--amber); color: #05231a; border: 0; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: .35s var(--ease);
  box-shadow: 0 12px 30px -10px rgba(45,200,130,.6);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .about-grid, .quality-grid, .cta-wrap, .product-featured { grid-template-columns: 1fr; }
  .adv-grid, .product-grid, .logi-grid, .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .section-num { display: none; }
}
@media (max-width: 720px) {
  .nav, .header-phone { display: none; }
  .burger { display: block; }
  .section { padding: 80px 0; }
  .adv-grid, .product-grid, .logi-grid, .contacts-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .pf-body, .cta-aside, .cta-form { padding: 32px; }
  .footer-top { flex-direction: column; }

  /* Мобильное меню */
  .nav.open {
    display: flex; position: fixed; inset: 84px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(11,15,20,.98); backdrop-filter: blur(14px);
    padding: 20px 24px; border-bottom: 1px solid var(--line);
  }
  .nav.open a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Cookie-баннер (152-ФЗ / уведомление о cookie) ── */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  max-width: 940px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  transform: translateY(140%); transition: transform .45s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p {
  margin: 0; flex: 1 1 320px;
  color: var(--muted); font-size: .9rem; line-height: 1.6;
}
.cookie-banner a { color: var(--amber); }
.cookie-banner button {
  flex: 0 0 auto; cursor: pointer;
  padding: 11px 26px; border: none; border-radius: var(--radius);
  background: var(--amber); color: #10231a;
  font-family: var(--ff-mono); font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  transition: opacity .2s, transform .2s;
}
.cookie-banner button:hover { opacity: .9; transform: translateY(-1px); }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner button { width: 100%; }
}
