/* ============================================================
   1212 — Цифровые решения для бизнеса и государства
   Landing styles
   ============================================================ */

:root {
  --ink: #14202e;
  --ink-2: #1d2c3d;
  --navy: #0f2233;
  --red: #e5141b;
  --red-dark: #c20f15;
  --gold: #c2965e;
  --gold-soft: #d8b388;
  --paper: #ffffff;
  --bg: #f6f4f1;
  --bg-2: #eeeae5;
  --line: #e4e0da;
  --line-dark: rgba(255, 255, 255, 0.12);
  --muted: #5c636c;
  --muted-light: rgba(255, 255, 255, 0.62);

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 80px);
  --sec: clamp(72px, 9vw, 132px);

  --font-display: "Overpass", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Overpass Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold-soft); }
.eyebrow.on-dark::before { background: var(--gold); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.section-head p {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  margin: 0;
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 15px;
  padding: 16px 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color:#fff; }
.btn .arr { font-size: 18px; line-height: 1; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 40px; height: 40px;
  color: var(--red);
  flex: none;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(48px, 7.4vw, 104px);
}
.hero h1 .red { color: var(--red); }
.hero-lead {
  margin: 30px 0 34px;
  font-size: clamp(18px, 1.7vw, 21px);
  color: var(--muted);
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-side {
  border-left: 2px solid var(--line);
  padding-left: clamp(24px, 3vw, 40px);
  padding-bottom: 8px;
}
.hero-flags {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.flag {
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  flex: none;
  display: grid;
}
.flag span { display: block; width: 100%; }
.hero-side .big-claim {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
}
.hero-side .big-claim b { color: var(--red); }
.hero-side .claim-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 26px;
}
.hero-years {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ink);
}

/* category chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}
.chip {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--red);
  padding: 11px 18px;
  border-radius: 6px;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
  background: var(--ink);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(34px, 4vw, 52px) clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--line-dark);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .num em { color: var(--gold); font-style: normal; }
.stat .lbl {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted-light);
  line-height: 1.4;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: var(--sec) 0; background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}
.about h2 .gold { color: var(--gold); }
.about p.body { font-size: 19px; color: var(--ink); margin: 0 0 22px; max-width: 520px; }
.about .quote {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 22px;
  font-size: 18px;
  font-style: italic;
  color: var(--ink-2);
  max-width: 500px;
}
.awards {
  display: grid;
  gap: 16px;
}
.award {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
}
.award .star { color: var(--gold); font-size: 22px; line-height: 1; flex: none; margin-top: 1px; }
.award h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.award p { margin: 0; font-size: 14px; color: var(--muted); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: var(--sec) 0; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.svc {
  background: var(--paper);
  padding: clamp(30px, 3.4vw, 48px);
  position: relative;
  transition: background 0.2s ease;
}
.svc:hover { background: var(--bg); }
.svc-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 22px; }
.svc-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.svc h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.04;
  margin: 0;
}
.svc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.svc li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: var(--ink-2);
}
.svc li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 1px;
}
.svc.accent { background: var(--ink); }
.svc.accent:hover { background: var(--ink-2); }
.svc.accent h3 { color: #fff; }
.svc.accent .svc-num { color: var(--gold-soft); }
.svc.accent li { color: rgba(255,255,255,0.82); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.work { padding: var(--sec) 0; background: var(--bg); }
.work-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 10px 17px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Nav dropdown ---------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--ink);
  letter-spacing: 0.01em;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-dropdown-btn:hover { color: var(--red); }
.nav-chevron {
  width: 14px; height: 14px;
  transition: transform 0.2s ease;
  flex: none;
}
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 36px -8px rgba(20,32,46,0.18);
  min-width: 160px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}
.nav-dropdown-item {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding: 11px 16px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: var(--bg);
  color: var(--red);
}
@media (max-width: 860px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-btn {
    padding: 14px 0;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    background: none;
  }
  .nav-dropdown-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 14px;
  }
}

/* ---- Sub-headings inside portfolio ---- */
.work-subhead {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 26px;
}
.work-subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---- Featured (flagship) cases ---- */
.featured-list {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.feature {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 64px -36px rgba(20, 32, 46, 0.46);
}
.feature-main {
  padding: clamp(30px, 3.4vw, 54px);
  display: flex;
  flex-direction: column;
}
.feature-index {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.feature-cat {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 35px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.feature-desc {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 530px;
}
.feature-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.feature-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.feature-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}
.feature-btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.feature-btn svg { width: 15px; height: 15px; flex: none; }
.feature.dark .feature-btn { background: var(--red); }
.feature.dark .feature-btn:hover { background: var(--red-dark); }

/* logo lockup in place of index number */
.feature-logo {
  height: 54px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}
.feature-logo img { max-height: 54px; max-width: 250px; width: auto; display: block; }
.logo-chip {
  background: #fff;
  border-radius: 9px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
}
.logo-chip img { max-height: 38px; }
.logo-nero {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  color: var(--red);
  letter-spacing: 0.01em;
}
.feature-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 3vw, 44px);
  margin-bottom: 22px;
}
.fm-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.fm-num em { color: var(--red); font-style: normal; }
.fm-lbl { font-size: 12px; color: var(--muted); margin-top: 6px; }

.feature-side {
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: clamp(30px, 3.4vw, 54px);
  display: flex;
  flex-direction: column;
}
.feature-side-foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
.feature.dark .feature-side-foot { border-top-color: var(--line-dark); }
.feature-side-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.feature-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 15px;
  flex: 1;
}
.feature-points li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.45;
}
.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--red);
  border-radius: 50%;
}

/* dark variant */
.feature.dark { background: var(--ink); border-color: var(--ink); }
.feature.dark .feature-title { color: #fff; }
.feature.dark .feature-desc { color: var(--muted-light); }
.feature.dark .feature-foot { border-top-color: var(--line-dark); }
.feature.dark .fm-num { color: #fff; }
.feature.dark .fm-lbl { color: var(--muted-light); }
.feature.dark .feature-side { background: var(--ink-2); border-left-color: var(--line-dark); }
.feature.dark .feature-points li { color: rgba(255, 255, 255, 0.84); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -28px rgba(20, 32, 46, 0.4);
  border-color: var(--ink);
}
.case-cat {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.case-client {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.case h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.06;
  margin: 0 0 14px;
}
.case p { font-size: 15px; color: var(--muted); margin: 0 0 20px; }
.case-foot { margin-top: auto; }
.case-metrics {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 14px;
}
.case-metric .m-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.case-metric .m-num em { color: var(--red); font-style: normal; }
.case-metric .m-lbl { font-size: 11px; color: var(--muted); margin-top: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--gold);
  padding: 5px 9px;
  border-radius: 4px;
}

/* ============================================================
   TECH
   ============================================================ */
.tech { padding: var(--sec) 0; background: var(--navy); color: #fff; }
.tech .section-head h2 { color: #fff; }
.tech .section-head p { color: var(--muted-light); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  overflow: hidden;
}
.tech-cell {
  background: var(--navy);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.18s ease;
}
.tech-cell:hover { background: var(--ink-2); }
.tech-cell .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.tech-cell .t-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.tech-cell .t-kind { font-size: 12px; color: var(--muted-light); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.quote-sec { padding: var(--sec) 0; }
.quote-card {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: clamp(40px, 6vw, 76px);
  position: relative;
  overflow: hidden;
}
.quote-card .mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 200px;
  line-height: 0.7;
  color: var(--red);
  position: absolute;
  top: 24px; right: 48px;
  opacity: 0.5;
  pointer-events: none;
}
.quote-card blockquote {
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  max-width: 900px;
  position: relative;
}
.quote-card cite {
  font-style: normal;
  display: block;
}
.quote-card cite b { font-size: 18px; display: block; }
.quote-card cite span { color: var(--muted-light); font-size: 14px; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { padding: var(--sec) 0; background: var(--paper); }
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.product-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -32px rgba(20,32,46,0.38);
}
.product-card--dark {
  background: var(--ink);
  border-color: var(--ink);
}
.product-card-inner {
  padding: clamp(32px, 3.6vw, 52px);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.product-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(229,20,27,0.08);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(229,20,27,0.18);
}
.product-card--dark .product-badge {
  color: var(--gold-soft);
  background: rgba(194,150,94,0.12);
  border-color: rgba(194,150,94,0.25);
}
.product-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--gold);
}
.product-card--dark .product-name { color: var(--gold-soft); }
.product-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}
.product-card--dark .product-title { color: #fff; }
.product-desc {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.6;
}
.product-card--dark .product-desc { color: var(--muted-light); }
.product-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.product-features li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-2);
}
.product-card--dark .product-features li { color: rgba(255,255,255,0.82); }
.product-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
}
.product-foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.product-card--dark .product-foot { border-top-color: var(--line-dark); }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 14px;
  color: var(--red);
  transition: gap 0.18s ease, color 0.18s ease;
}
.product-card--dark .product-link { color: var(--gold-soft); }
.product-link:hover { gap: 14px; }
.product-link svg { width: 18px; height: 18px; flex: none; }

/* ---- Выделенные карточки продуктов (Эльба-стиль) ---- */
.product-card--pudao,
.product-card--dvj {
  border-color: transparent;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.product-card--pudao { background: linear-gradient(155deg, #2a5cf0 0%, #143a9e 100%); }
.product-card--dvj   { background: linear-gradient(155deg, #12b3a3 0%, #0a7a72 100%); }
.product-card--pudao::after,
.product-card--dvj::after {
  content: "";
  position: absolute;
  right: -70px; top: -70px;
  width: 230px; height: 230px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.product-card--pudao:hover,
.product-card--dvj:hover { box-shadow: 0 34px 64px -28px rgba(20, 32, 46, 0.5); }
.product-card--pudao .product-name,
.product-card--dvj .product-name,
.product-card--pudao .product-title,
.product-card--dvj .product-title,
.product-card--pudao .product-link,
.product-card--dvj .product-link { color: #fff; }
.product-card--pudao .product-desc,
.product-card--dvj .product-desc { color: rgba(255, 255, 255, 0.86); }
.product-card--pudao .product-features li,
.product-card--dvj .product-features li { color: rgba(255, 255, 255, 0.92); }
.product-card--pudao .product-features li::before,
.product-card--dvj .product-features li::before { background: #fff; }
.product-card--pudao .product-badge,
.product-card--dvj .product-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}
.product-card--pudao .product-foot,
.product-card--dvj .product-foot { border-top-color: rgba(255, 255, 255, 0.22); }

@media (max-width: 760px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CLIENTS
   ============================================================ */
.clients { padding: var(--sec) 0; background: var(--bg); }
.client-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.client {
  background: var(--paper);
  padding: 30px 26px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.client .c-name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -0.005em;
}
.client .c-kind { font-size: 12px; color: var(--muted); margin-top: 6px; }
.partners-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 34px;
}
.partners-row .p-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.partners-row .p-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--ink);
}

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta { background: var(--red); color: #fff; padding: clamp(64px, 8vw, 120px) 0; }
.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.cta-lead { font-size: 20px; max-width: 460px; margin: 0 0 34px; color: rgba(255,255,255,0.92); }
.cta-tg {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,0,0,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  padding: 16px 24px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 20px;
  transition: background 0.18s ease;
}
.cta-tg:hover { background: rgba(0,0,0,0.32); }
.cta-tg .tg-ico { width: 30px; height: 30px; flex: none; }

.form {
  background: #fff;
  border-radius: 16px;
  padding: clamp(30px, 4vw, 44px);
  color: var(--ink);
}
.form h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  margin: 0 0 22px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--ink-2);
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 92px; }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-ok {
  display: none;
  text-align: center;
  padding: 14px;
  background: #f0f9f2;
  border: 1.5px solid #bfe3c8;
  border-radius: 8px;
  color: #1c7a3a;
  font-weight: 600;
  font-size: 15px;
  margin-top: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #fff; padding: 64px 0 36px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer .brand-name { color: #fff; }
.footer .brand-mark { color: var(--red); }
.footer-tag { color: var(--muted-light); max-width: 320px; margin-top: 18px; font-size: 15px; }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 90px); flex-wrap: wrap; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 16px;
}
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.78); font-size: 15px; margin: 0 0 10px; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--muted-light);
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .client-wall { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
  }
  .nav-links.open a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta .btn { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-side { border-left: none; border-top: 2px solid var(--line); padding-left: 0; padding-top: 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .svc-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .quote-card .mark { font-size: 130px; right: 24px; }
  .feature { grid-template-columns: 1fr; }
  .feature-side { border-left: none; border-top: 1px solid var(--line); }
  .feature.dark .feature-side { border-top-color: var(--line-dark); border-left-color: var(--line-dark); }
  .work-top { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .work-grid { grid-template-columns: 1fr; }
  .client-wall { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none !important; border-bottom: 1px solid var(--line-dark); }
  .footer-top { flex-direction: column; }
}
