/* Торговый Дом «Трейдман» — editorial B2B (ref: brief.case)
 * Типографика: Instrument Serif + Inter
 */

:root {
  --c-teal-dark: #001e22;
  --c-teal-mid: #024953;
  --c-deep-teal: #023335;
  --c-lime: #e9fc92;
  --c-lime-soft: rgba(233, 252, 146, 0.38);
  --c-teal-accent: #2b8f93;

  --c-primary: var(--c-teal-dark);
  --c-primary-900: #000000;
  --c-primary-700: var(--c-teal-mid);
  --c-primary-100: #d4e8e6;
  --c-accent: var(--c-teal-mid);
  --c-accent-700: var(--c-deep-teal);
  --c-accent-200: rgba(233, 252, 146, 0.45);
  --c-ink: var(--c-teal-dark);
  --c-ink-2: #3a5558;
  --c-muted: #5c7376;
  --c-line: #e3ddd4;
  --c-line-strong: #cdc5b8;
  --c-bg: #faf6f2;
  --c-bg-muted: #f2ede6;
  --c-bg-soft: #fdfbf8;
  --c-bg-card: #ffffff;
  --c-bg-warm: #ece8e0;
  --c-bg-ink: var(--c-teal-dark);
  --c-success: var(--c-teal-accent);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 32px 64px rgba(0, 0, 0, 0.12);

  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1140px;
  --max-narrow: 720px;
  --header-h: 80px;
  --topbar-h: 34px;

  --step--1: clamp(0.82rem, 0.78rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.15vw, 1.07rem);
  --step-1: clamp(1.12rem, 1.06rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.22rem + 0.6vw, 1.65rem);
  --step-3: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-4: clamp(2rem, 1.55rem + 2vw, 2.85rem);
  --step-5: clamp(2.4rem, 1.7rem + 3vw, 3.6rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  min-height: 100vh;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--c-ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 400;
}

h1 {
  font-size: var(--step-5);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
  font-weight: 400;
}

.hero-em,
em.hero-em {
  font-style: italic;
  color: inherit;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--c-primary-700);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--c-accent);
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.container.narrow {
  max-width: var(--max-narrow);
}

.eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-teal-mid);
  font-weight: 500;
  font-family: var(--font-sans);
  margin: 0 0 0.85rem;
}

.eyebrow::before {
  display: none;
}

.lead {
  font-size: var(--step-1);
  color: var(--c-ink-2);
  max-width: 62ch;
}

.muted {
  color: var(--c-muted);
}

.small {
  font-size: var(--step--1);
}

.center {
  text-align: center;
}

/* ============ TOP BAR ============ */
.topbar {
  background: var(--c-bg-ink);
  color: #a8a8a8;
  font-size: 0.75rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.topbar .tb-left {
  display: flex;
  gap: 1.25rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.topbar .tb-left span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .tb-left span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
}

.topbar .tb-left svg {
  opacity: 0.8;
}

.topbar a {
  color: #f8f7f4;
  font-weight: 500;
}

.topbar a:hover {
  color: #fff;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(250, 246, 242, 0.62);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(227, 221, 212, 0.7);
}

.logo--brand {
  flex-shrink: 0;
}

.logo-img {
  height: clamp(44px, 5.5vw, 58px);
  width: auto;
  max-width: min(210px, 48vw);
  display: block;
}

.logo-img--footer {
  height: clamp(40px, 4.5vw, 52px);
  max-width: 180px;
  margin-bottom: 0.75rem;
}

.site-header .inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--c-primary);
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  white-space: nowrap;
  text-decoration: none;
}

.logo:hover {
  color: var(--c-primary);
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem 0.9rem;
  margin-left: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-desktop > a,
.nav-dd-toggle {
  position: relative;
  color: var(--c-ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-desktop > a::after,
.nav-dd-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--c-primary);
  transition: width 0.25s ease;
}

.nav-desktop > a:hover::after,
.nav-desktop > a[aria-current="page"]::after,
.nav-dropdown:hover .nav-dd-toggle::after {
  width: 100%;
}

.nav-desktop > a:hover,
.nav-dd-toggle:hover {
  color: var(--c-primary);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 240px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.18s;
  pointer-events: none;
}

/* Невидимый мостик между кнопкой и меню — чтобы не «провалиться» в hover-зазор */
.nav-submenu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

/* Расширяем hover-зону самой кнопки вниз */
@media (min-width: 1201px) {
  .nav-dropdown .nav-dd-toggle {
    padding-bottom: 1.2rem;
    margin-bottom: -0.8rem;
  }
}

.nav-submenu a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--c-ink);
  font-size: 0.9rem;
  border-radius: var(--radius-xs);
}

.nav-submenu a:hover {
  background: var(--c-primary-100);
  color: var(--c-primary);
  text-decoration: none;
}

@media (min-width: 1201px) {
  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
  }
}

.nav-phone {
  margin-left: 0.5rem;
}

.nav-phone a {
  color: var(--c-primary);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-mess {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--c-muted);
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  transition: background 0.15s;
}

.nav-mess:hover {
  background: var(--c-bg-muted);
  color: var(--c-primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--c-lime);
  color: var(--c-teal-dark) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: none;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}

.nav-cta:hover {
  background: #dff5a0;
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--c-teal-dark) !important;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--c-bg-muted);
  border: 1px solid var(--c-line);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-primary);
}

@media (max-width: 1320px) {
  .topbar .tb-left span:first-child {
    display: none;
  }
}

@media (max-width: 1200px) {
  .topbar {
    display: none;
  }

  .nav-desktop {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-bg-card);
    border-bottom: 1px solid var(--c-line);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    gap: 0;
    flex-wrap: nowrap;
    white-space: normal;
  }

  .nav-desktop.is-open {
    display: flex;
  }

  .nav-desktop > a,
  .nav-dd-toggle,
  .nav-phone {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--c-line);
  }

  .nav-desktop .nav-mess-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--c-line);
  }

  .nav-desktop .nav-mess {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0.5rem 0.5rem 0 0;
    align-self: flex-start;
    background: var(--c-bg-muted);
    color: var(--c-primary);
    border-radius: 999px;
    border-bottom: none;
  }

  .nav-desktop .nav-mess + .nav-mess {
    margin-left: 0.25rem;
  }

  .nav-desktop .nav-mess svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .nav-submenu {
    position: static;
    opacity: 1;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    transition: none;
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 0.5rem;
    border: none;
    box-shadow: none;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-dropdown.is-open .nav-submenu {
    visibility: visible;
    pointer-events: auto;
    max-height: 600px;
    padding: 0 0 0.5rem 0.5rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
    align-self: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  font-family: var(--font-sans);
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--c-teal-mid);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--c-deep-teal);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-line-strong);
}

.btn-secondary:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-bg-card);
}

.btn-dark {
  background: var(--c-primary);
  color: #fff;
}

.btn-dark:hover {
  background: var(--c-primary-900);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  padding: 0.5rem 0.9rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ============ SECTIONS ============ */
.section {
  padding: clamp(3rem, 5vw, 6rem) 0;
  position: relative;
}

.section--muted {
  background: var(--c-bg-muted);
}

.section--ink {
  background: var(--c-bg-ink);
  color: #ccc;
}

.section--ink h2,
.section--ink h3 {
  color: #f8f7f4;
}

.section--ink .muted {
  color: #888;
}

.section--ink .eyebrow {
  color: var(--c-lime);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-header h2 {
  margin: 0 0 0.75rem;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 0;
  right: 0;
  height: 136%;
  background-image: url("../assets/hero.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--hero-shift, 0px), 0);
  will-change: transform;
  z-index: -2;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    transform: none;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--c-bg) 0%,
    var(--c-bg) 28%,
    rgba(250, 246, 242, 0.88) 48%,
    rgba(250, 246, 242, 0.55) 72%,
    rgba(250, 246, 242, 0.35) 100%
  );
  z-index: -1;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    max-width: 560px;
  }
  .hero-visual {
    max-width: 620px;
    margin-top: 0.5rem;
  }
  .hero::before {
    background-position: center top;
  }
  .hero::after {
    background: linear-gradient(
      180deg,
      var(--c-bg) 0%,
      rgba(250, 246, 242, 0.86) 45%,
      rgba(250, 246, 242, 0.92) 100%
    );
  }
}

.hero h1 {
  max-width: 18ch;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: none;
}

.hero-brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--step-5);
  letter-spacing: -0.03em;
  color: var(--c-ink);
  line-height: 1.02;
}

.hero-slogan {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--step-2);
  letter-spacing: -0.01em;
  color: var(--c-ink);
  line-height: 1.25;
  max-width: 26ch;
}

.hero-sub {
  font-size: var(--step-1);
  color: var(--c-ink-2);
  max-width: 58ch;
  margin: 0 0 1.75rem;
}

.hero-highlight {
  color: var(--c-accent-700);
  background: linear-gradient(transparent 58%, rgba(233, 252, 146, 0.55) 58%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-usp {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-primary);
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}

.chip svg {
  width: 14px;
  height: 14px;
  color: var(--c-teal-mid);
}

.chip--dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line);
  max-width: 440px;
}

.hero-trust div strong {
  display: block;
  color: var(--c-primary);
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-trust div span {
  font-size: 0.85rem;
  color: var(--c-muted);
}

/* Hero card (right side) — статусная композиция маршрута */
.hero-card {
  position: relative;
  background: linear-gradient(160deg, rgba(2, 51, 53, 0.80), rgba(0, 30, 34, 0.74));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #f0f0f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(233, 252, 146, 0.14);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(233, 252, 146, 0.12), transparent 62%);
  z-index: -1;
}

.hero-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7f9a97;
  margin-bottom: 1.1rem;
  font-family: var(--font-sans);
}

.hero-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--c-lime);
}

.hero-card-title .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-lime);
  box-shadow: 0 0 0 4px rgba(233, 252, 146, 0.18);
}

.route {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.route-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto 18px;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

/* connector line — визуализирует «цепочку» */
.route-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(0.8rem + 21px);
  top: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 0.55rem);
  background: linear-gradient(rgba(233, 252, 146, 0.35), rgba(233, 252, 146, 0.12));
  z-index: 0;
}

.route-step:hover {
  background: rgba(233, 252, 146, 0.07);
  border-color: rgba(233, 252, 146, 0.28);
  transform: translateX(3px);
  text-decoration: none;
}

.route-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(233, 252, 146, 0.12);
  border: 1px solid rgba(233, 252, 146, 0.18);
  color: var(--c-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.route-step:hover .route-icon {
  background: var(--c-lime);
  color: var(--c-teal-dark);
}

.route-icon svg {
  width: 20px;
  height: 20px;
  max-width: none;
}

.route-num {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--c-teal-dark);
  border: 1px solid rgba(233, 252, 146, 0.4);
  color: var(--c-lime);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.route-main {
  min-width: 0;
}

.route-main strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.route-main span {
  font-size: 0.79rem;
  color: #9db3b0;
}

.route-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: rgba(233, 252, 146, 0.12);
  color: var(--c-lime);
  border: 1px solid rgba(233, 252, 146, 0.28);
  white-space: nowrap;
}

.route-go {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f9a97;
  opacity: 0.5;
  transform: translateX(-3px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.route-go svg {
  width: 16px;
  height: 16px;
  max-width: none;
}

.route-step:hover .route-go {
  opacity: 1;
  transform: translateX(0);
  color: var(--c-lime);
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.1rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.83rem;
  color: #9db3b0;
  text-decoration: none;
  transition: color 0.2s;
}

.hero-card-footer:hover {
  text-decoration: none;
  color: #c3d4d1;
}

.hero-card-footer-text {
  min-width: 0;
}

.hero-card-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--c-lime);
}

.hero-card-footer-cta svg {
  width: 15px;
  height: 15px;
  max-width: none;
  transition: transform 0.2s;
}

.hero-card-footer:hover .hero-card-footer-cta svg {
  transform: translateX(3px);
}

@media (max-width: 420px) {
  .route-step {
    grid-template-columns: 38px 1fr 16px;
    gap: 0.65rem;
    padding: 0.65rem 0.7rem;
  }
  .route-step:not(:last-child)::after {
    left: calc(0.7rem + 19px);
  }
  .route-icon {
    width: 38px;
    height: 38px;
  }
  .route-badge {
    display: none;
  }
  .hero-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ============ LOGOS STRIP ============ */
.logos {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 1.25rem 0;
  background: var(--c-bg-card);
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  opacity: 0.65;
}

.logos-label {
  font-size: 0.78rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex-basis: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}

.logos-item {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}

/* ============ USP (4 столпа) ============ */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.usp-card {
  position: relative;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}

.usp-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.usp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.usp-card:hover::before {
  transform: scaleY(1);
}

.usp-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-primary-100);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.usp-icon svg {
  width: 24px;
  height: 24px;
}

.usp-card h3 {
  margin: 0 0 0.5rem;
  color: var(--c-primary);
  font-size: 1.08rem;
  font-weight: 700;
}

.usp-card p {
  margin: 0;
  color: var(--c-ink-2);
  font-size: 0.95rem;
}

.usp-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--c-primary-100);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-primary-900);
  font-size: 0.95rem;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.65rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-num {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  font-size: 0.8rem;
  color: var(--c-muted);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--c-lime-soft);
  color: var(--c-teal-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line);
  box-shadow: none;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  max-width: none;
}

.service-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary);
}

.service-card p {
  margin: 0;
  color: var(--c-ink-2);
  font-size: 0.94rem;
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--c-accent-700);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link:hover {
  color: var(--c-accent);
  text-decoration: none;
}

.service-link::after {
  content: "→";
  transition: transform 0.2s;
}

.service-link:hover::after {
  transform: translateX(3px);
}

/* ============ STATS STRIP ============ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-tile {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow-xs);
}

.section--ink .stat-tile {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.stat-tile .n {
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
  letter-spacing: -0.01em;
}

.section--ink .stat-tile .n {
  color: var(--c-accent);
}

.stat-tile .lbl {
  display: block;
  font-size: 0.92rem;
  color: var(--c-muted);
  margin-top: 0.5rem;
}

.section--ink .stat-tile .lbl {
  color: #9fb0cd;
}

/* ============ TIMELINE (How we work) ============ */
.timeline-h {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: st;
}

.timeline-h li {
  position: relative;
  list-style: none;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.4rem;
}

.timeline-h li::before {
  counter-increment: st;
  content: "0" counter(st);
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  color: var(--c-accent);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.timeline-h li strong {
  display: block;
  color: var(--c-primary);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.timeline-h li span {
  color: var(--c-ink-2);
  font-size: 0.92rem;
}

/* ============ CALCULATOR ============ */
.calc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2vw, 2rem);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 840px) {
  .calc-shell {
    grid-template-columns: 1fr;
  }
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  background: var(--c-bg-muted);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.mode-tabs button {
  border: none;
  background: transparent;
  color: var(--c-ink-2);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s, color 0.15s;
}

.mode-tabs button:hover {
  color: var(--c-primary);
}

.mode-tabs button[aria-pressed="true"] {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(27, 58, 107, 0.5);
}

.mode-tabs svg {
  width: 16px;
  height: 16px;
}

.calc-form {
  display: grid;
  gap: 0.9rem;
}

.calc-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}

.field {
  display: block;
}

.field label,
.lead-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-muted);
  margin-bottom: 0.3rem;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.calc-form input:not([type="radio"]):not([type="checkbox"]),
.calc-form select,
.lead-form input:not([type="radio"]):not([type="checkbox"]),
.lead-form textarea,
.lead-form select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-bg-card);
  color: var(--c-ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.calc-form input:not([type="radio"]):not([type="checkbox"]):focus,
.calc-form select:focus,
.lead-form input:not([type="radio"]):not([type="checkbox"]):focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12);
}

/* Radio/checkbox аккуратно — нативный вид, фикс-размер */
.lead-form input[type="radio"],
.lead-form input[type="checkbox"],
.calc-form input[type="radio"],
.calc-form input[type="checkbox"],
.field input[type="radio"],
.field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--c-accent);
  margin: 0;
  padding: 0;
  vertical-align: middle;
  cursor: pointer;
}

.calc-summary {
  background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-900) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.calc-summary::after {
  content: "";
  position: absolute;
  inset: -30% -30% auto auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(233, 252, 146, 0.35), transparent 70%);
  pointer-events: none;
}

.calc-summary small {
  display: block;
  font-size: 0.78rem;
  color: #9fb0cd;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.calc-summary .amount {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.calc-summary .amount-usd {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #ffd9b0;
  margin-top: 0.25rem;
}

.calc-summary .meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: #c9d4ec;
}

.calc-summary .meta strong {
  color: #fff;
  font-weight: 600;
}

.calc-summary .btn {
  width: 100%;
  background: var(--c-accent);
  color: #fff;
}

.calc-summary .btn:hover {
  background: var(--c-accent-700);
}

.calc-summary .disclaimer {
  font-size: 0.78rem;
  color: #9fb0cd;
  margin-top: 0.75rem;
}

/* ============ TABLE SCROLL WRAPPER ============ */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: var(--c-bg-card);
  box-shadow: var(--shadow-xs);
}

.table-scroll .tariff-preview,
.table-scroll .data-table {
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  min-width: 560px;
}

/* ============ TARIFFS PREVIEW ============ */
.tariff-preview {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--c-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--c-line);
}

.tariff-preview th,
.tariff-preview td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
}

.tariff-preview thead th {
  background: var(--c-bg-muted);
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tariff-preview tbody tr:last-child td {
  border-bottom: none;
}

.tariff-preview tbody tr:hover td {
  background: var(--c-bg-soft);
}

.tariff-preview .mode-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--c-primary);
}

.tariff-preview .mode-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c-primary-100);
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tariff-preview .mode-icon svg {
  width: 16px;
  height: 16px;
}

.tariff-preview .price {
  color: var(--c-accent-700);
  font-weight: 700;
}

/* ============ PRODUCT TEASERS ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.45rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-success);
  background: rgba(15, 139, 90, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.product-card .badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-success);
}

.product-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--c-primary);
  font-weight: 600;
}

.product-card .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-accent-700);
}

.product-card .price small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-muted);
  display: block;
}

.product-card a.btn {
  margin-top: auto;
}

/* ============ REVIEWS ============ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.review-card {
  margin: 0;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: "“";
  position: absolute;
  top: -1rem;
  right: 0.5rem;
  font-size: 8rem;
  color: var(--c-primary-100);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

.review-card blockquote {
  margin: 0;
  font-size: 0.98rem;
  color: var(--c-ink);
  line-height: 1.55;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--c-line);
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-700) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.review-meta strong {
  display: block;
  font-size: 0.9rem;
  color: var(--c-primary);
}

.review-meta span {
  font-size: 0.78rem;
  color: var(--c-muted);
}

.review-stars {
  color: var(--c-accent);
  font-size: 0.9rem;
  margin-left: auto;
}

/* ============ FAQ / BIG CTA ============ */
.cta-banner {
  background: linear-gradient(135deg, #0f2649 0%, #1b3a6b 50%, #234a84 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 400px 200px at 100% 0%, rgba(233, 252, 146, 0.35), transparent 70%),
    radial-gradient(ellipse 500px 300px at 0% 100%, rgba(74, 112, 192, 0.35), transparent 70%);
}

@media (max-width: 760px) {
  .cta-banner {
    grid-template-columns: 1fr;
  }
}

.cta-banner h2 {
  color: #fff;
  margin: 0 0 0.75rem;
}

.cta-banner p {
  color: #c9d4ec;
  margin: 0;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ============ FORMS ============ */
.lead-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
  background: var(--c-bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}

.lead-form legend {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-bottom: 0.4rem;
}

.fieldset-row {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.fieldset-row legend {
  width: 100%;
  margin-bottom: 0.35rem;
}

.fieldset-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--c-ink);
  font-size: 0.92rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.2;
}

.checkbox {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.4;
  cursor: pointer;
}

.checkbox input {
  margin-top: 0.15rem;
}

.calc-result {
  margin-top: 0.75rem;
  padding: 1rem 1.15rem;
  background: #fff8f0;
  border: 1px solid var(--c-accent-200);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--c-ink);
}

.calc-result strong {
  color: var(--c-primary);
  font-weight: 700;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin: 0.5rem 0 0;
}

/* ============ INNER PAGES ============ */
.page {
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.page h1 {
  font-size: var(--step-4);
  margin: 1.5rem 0 0.75rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin: 1.25rem 0 0;
}

.breadcrumbs a {
  color: var(--c-muted);
}

.breadcrumbs a:hover {
  color: var(--c-primary);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.75rem;
  color: var(--c-ink-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 16px;
  height: 16px;
  background: var(--c-accent);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.55 17.55 4 12l1.41-1.41 4.14 4.14L18.59 5.3 20 6.71z'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.55 17.55 4 12l1.41-1.41 4.14 4.14L18.59 5.3 20 6.71z'/></svg>") center/contain no-repeat;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  margin: 1rem 0;
  background: var(--c-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
}

.data-table th {
  background: var(--c-bg-muted);
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.grid-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.big-link {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.4rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.big-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--c-accent-200);
  text-decoration: none;
}

.big-link-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--c-lime-soft);
  color: var(--c-teal-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.big-link-icon svg {
  width: 20px;
  height: 20px;
  max-width: none;
}

.big-link:hover .big-link-icon {
  background: var(--c-lime);
  color: var(--c-teal-dark);
}

.big-link strong {
  color: var(--c-primary);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-sans);
  line-height: 1.3;
}

.big-link > span:last-child {
  color: var(--c-muted);
  font-size: 0.88rem;
}

.faq-item {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  background: var(--c-bg-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.faq-item[open] {
  border-color: var(--c-primary-700);
  box-shadow: var(--shadow-xs);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--c-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--c-accent);
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.case-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.case-card-visual {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--c-primary-100), #d7e0ef);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.case-card-body {
  padding: 1.1rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  min-height: 0;
}

.case-card-body > .tag {
  align-self: flex-start;
  margin-bottom: 0.2rem;
}

.case-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--c-primary);
  font-weight: 700;
  min-height: 2.5em;
  display: flex;
  align-items: flex-start;
}

.product-desc {
  margin: 0;
  font-size: 0.92rem;
  min-height: 2.8em;
}

.product-note {
  margin: 0;
}

.case-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--c-line-strong);
  color: var(--c-muted);
}

.tag-accent {
  background: rgba(15, 139, 90, 0.1);
  border-color: rgba(15, 139, 90, 0.25);
  color: var(--c-success);
}

.price-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
  margin: 0.5rem 0 0.25rem;
  table-layout: fixed;
}

.price-table th,
.price-table td {
  border-top: 1px solid var(--c-line);
  padding: 0.5rem 0.4rem;
  text-align: left;
  vertical-align: middle;
}

.price-table thead th {
  border-top: none;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-muted);
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.4rem;
}

.price-table col,
.price-table th:first-child,
.price-table td:first-child {
  width: 34%;
}

.price-table th:nth-child(2),
.price-table td:nth-child(2) {
  width: 38%;
}

.price-table th:last-child,
.price-table td:last-child {
  width: 28%;
  text-align: right;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--c-bg-muted);
  border-radius: var(--radius);
}

.filters label {
  font-size: 0.85rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filters select {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9rem;
  background: var(--c-bg-card);
}

.banner-cta {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-700) 100%);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
}

.banner-cta a {
  color: #ffd9b0;
  text-decoration: underline;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.timeline li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.25rem;
  border-left: 3px solid var(--c-accent);
  margin-bottom: 0.25rem;
  color: var(--c-ink-2);
}

.timeline li strong {
  color: var(--c-primary);
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-line);
}

.blog-list li:last-child {
  border-bottom: none;
}

.blog-list li a {
  color: var(--c-primary);
  font-size: 1.05rem;
}

.blog-list li a:hover {
  color: var(--c-accent);
}

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 61, 0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-box {
  background: var(--c-bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-line);
}

.modal-box--wide {
  max-width: 520px;
}

.modal-box h3 {
  margin: 0 0 0.5rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--c-bg-muted);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--c-ink-2);
  line-height: 1;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--c-bg-ink);
  color: #999;
  padding: clamp(3rem, 5vw, 5rem) 0 1.25rem;
  margin-top: 3rem;
  font-size: 0.92rem;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer h4 {
  color: #f8f7f4;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 820px) {
  .site-footer .cols {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.site-footer a {
  color: #aaa;
}

.site-footer a:hover {
  color: #fff;
}
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer .desc {
  color: #9fb0cd;
  max-width: 32ch;
  margin-top: 0.75rem;
}

.site-footer .logo {
  color: #fff;
}

.site-footer .logo-sub {
  color: #9fb0cd;
}

.legal {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9fb0cd;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.legal a {
  color: #c9d4ec;
}

/* ============ FLOATING MESSENGERS ============ */
.fab-mess {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fab-mess a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s, background 0.15s;
}

.fab-mess a:hover {
  transform: scale(1.08);
  background: var(--c-primary-700);
}

.fab-mess a svg {
  width: 26px;
  height: 26px;
}

.fab-mess a.wa {
  background: #25d366;
}

.fab-mess a.wa:hover {
  background: #1fb958;
}

.fab-mess a.tg {
  background: #229ed9;
}

.fab-mess a.tg:hover {
  background: #1b86b7;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  z-index: 400;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ============ SCROLL-REVEAL (progressive enhancement) ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
    .reveal.is-visible {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Focus visible (WCAG) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Safe area */
@supports (padding: env(safe-area-inset-right)) {
  .fab-mess {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

/* ============ SECONDARY / LOGISTICS ============ */
.section--subdued {
  background: var(--c-bg-warm);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.section--subdued .section-header h2 {
  font-size: var(--step-3);
  color: var(--c-ink-2);
}

.section--subdued .eyebrow {
  color: var(--c-muted);
}

.section--subdued .eyebrow::before {
  background: var(--c-line-strong);
}

.nav-desktop > a.nav-primary {
  color: var(--c-primary);
  font-weight: 600;
}

/* ============ SHOWCASE / VITRINA ============ */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.showcase-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-xs);
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.showcase-visual {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.showcase-visual--electro {
  background: linear-gradient(145deg, #1a2744 0%, #3d5a80 100%);
}

.showcase-visual--home {
  background: linear-gradient(145deg, #5c4a32 0%, #a88418 100%);
}

.showcase-visual--auto {
  background: linear-gradient(145deg, #2c3e50 0%, #546e7a 100%);
}

.showcase-visual--textile {
  background: linear-gradient(145deg, #4a3728 0%, #8b7355 100%);
}

.showcase-body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.showcase-body h3 {
  margin: 0;
  font-size: 1.08rem;
}

.showcase-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-accent-700);
}

.showcase-price small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-muted);
  margin-top: 0.15rem;
}

.showcase-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.showcase-tier {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--c-bg-muted);
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
}

.showcase-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.showcase-qty label {
  font-size: 0.85rem;
  color: var(--c-muted);
  flex-shrink: 0;
}

.showcase-qty input {
  width: 100%;
  max-width: 120px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xs);
  font: inherit;
  background: var(--c-bg-soft);
}

.showcase-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.showcase-actions .btn {
  flex: 1;
}

.showcase-body .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-success);
  background: rgba(15, 139, 90, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.product-card .showcase-visual {
  border-radius: 0;
  margin: -1.4rem -1.35rem 0.75rem;
  width: calc(100% + 2.7rem);
}

.order-modal-product {
  padding: 0.75rem 1rem;
  background: var(--c-bg-muted);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.order-modal-product strong {
  color: var(--c-primary);
}

.order-estimate {
  padding: 0.65rem 0.85rem;
  background: var(--c-lime-soft);
  border: 1px solid var(--c-accent-200);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.order-estimate strong {
  color: var(--c-accent-700);
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.filters-bar label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filters-bar select {
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xs);
  font: inherit;
  background: var(--c-bg-soft);
}

.service-card h3,
.usp-card h3,
.showcase-body h3,
.product-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

/* ============ ORDER BUILDER (витрина-конструктор) ============ */
.ob-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  position: sticky;
  top: calc(var(--header-h) + 4px);
  z-index: 20;
  background: var(--c-bg);
  padding: 0.6rem 0;
}

.ob-search {
  position: relative;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
}

.ob-search svg {
  position: absolute;
  left: 0.85rem;
  width: 18px;
  height: 18px;
  color: var(--c-muted);
  pointer-events: none;
}

.ob-search input {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.5rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  font: inherit;
  background: var(--c-bg-card);
}

.ob-search input:focus {
  outline: none;
  border-color: var(--c-teal-mid);
  box-shadow: 0 0 0 3px var(--c-lime-soft);
}

.ob-toolbar select {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  font: inherit;
  background: var(--c-bg-card);
  cursor: pointer;
}

.ob-updated {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-left: auto;
}

.ob-catalog {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 6rem;
}

.ob-empty {
  padding: 2rem;
  text-align: center;
  color: var(--c-muted);
  background: var(--c-bg-card);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--radius);
}

.ob-cat {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg-card);
}

.ob-cat-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--c-bg-muted);
  border-bottom: 1px solid var(--c-line);
}

.ob-cat-img {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-deep-teal);
}

.ob-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ob-cat-img .ob-cat-ph {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--c-lime);
  background: linear-gradient(135deg, var(--c-teal-mid), var(--c-deep-teal));
}

.ob-cat-img.is-empty .ob-cat-ph {
  display: flex;
}

.ob-cat-meta h2 {
  margin: 0;
  font-size: 1.25rem;
}

.ob-items {
  display: grid;
}

.ob-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--c-line);
  transition: background 0.15s;
}

.ob-item:last-child {
  border-bottom: none;
}

.ob-item.is-active {
  background: var(--c-lime-soft);
}

.ob-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ob-item-main strong {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
}

.ob-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  min-width: 96px;
}

.ob-item-price small {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--c-muted);
}

.ob-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--c-bg-card);
}

.ob-step {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--c-teal-dark);
  transition: background 0.15s;
}

.ob-step:hover {
  background: var(--c-lime-soft);
}

.ob-qty {
  width: 52px;
  height: 34px;
  border: none;
  border-left: 1px solid var(--c-line);
  border-right: 1px solid var(--c-line);
  text-align: center;
  font: inherit;
  font-weight: 600;
  background: transparent;
  -moz-appearance: textfield;
}

.ob-qty::-webkit-outer-spin-button,
.ob-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ob-qty:focus {
  outline: none;
  background: var(--c-lime-soft);
}

.ob-item-sum {
  min-width: 100px;
  text-align: right;
  font-weight: 700;
  color: var(--c-teal-mid);
  white-space: nowrap;
}

/* Нижняя панель итога */
.ob-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--c-teal-dark);
  color: #fff;
  border-top: 1px solid rgba(233, 252, 146, 0.25);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
  animation: ob-bar-in 0.25s ease;
}

@keyframes ob-bar-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.ob-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.ob-bar-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ob-bar-info strong {
  font-size: 1.4rem;
  font-weight: 700;
}

.ob-bar-info span {
  font-size: 0.82rem;
  color: #9db3b0;
}

.ob-bar-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.ob-bar-actions .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.ob-bar-actions .btn-secondary:hover {
  border-color: var(--c-lime);
  background: transparent;
  color: var(--c-lime);
}

.ob-bar-actions .btn-primary {
  background: var(--c-lime);
  color: var(--c-teal-dark);
}

.ob-bar-actions .btn-primary:hover {
  background: #dff5a0;
  color: var(--c-teal-dark);
}

/* Модалка заявки — список товаров */
.req-items {
  max-height: 40vh;
  overflow-y: auto;
  margin: 1rem 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.req-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.9rem;
}

.req-item:last-child {
  border-bottom: none;
}

.req-item-name {
  min-width: 0;
}

.req-item-qty {
  color: var(--c-muted);
  white-space: nowrap;
}

.req-item-sum {
  font-weight: 700;
  color: var(--c-teal-mid);
  white-space: nowrap;
  min-width: 92px;
  text-align: right;
}

.req-total {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.req-total strong {
  font-size: 1.35rem;
  color: var(--c-teal-mid);
}

.req-status {
  margin-top: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.req-status.is-ok {
  background: var(--c-lime-soft);
  color: var(--c-deep-teal);
}

.req-status.is-err {
  background: #fdecec;
  color: #a12626;
}

@media (max-width: 640px) {
  .ob-item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "main main"
      "price stepper"
      "sum sum";
    gap: 0.5rem 1rem;
  }
  .ob-item-main { grid-area: main; }
  .ob-item-price { grid-area: price; align-items: flex-start; }
  .ob-stepper { grid-area: stepper; justify-self: end; }
  .ob-item-sum { grid-area: sum; text-align: right; }
  .ob-bar-info strong { font-size: 1.15rem; }
  .ob-bar-actions .btn { padding: 0.6rem 0.9rem; }
  .ob-updated { width: 100%; margin-left: 0; }
}

/* ============ HOME: КТО МЫ + ЦЕПОЧКА ============ */
.whoweare-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.chain-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.chain-flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem 0.7rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--c-ink);
}

.chain-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-lime);
  border: 3px solid var(--c-teal-mid);
  flex-shrink: 0;
}

.chain-flow li:not(:last-child) .chain-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(0.7rem + 0.7rem + 8px);
  background: linear-gradient(var(--c-teal-mid), var(--c-accent-200));
}

.chain-flow li.is-end {
  color: var(--c-teal-mid);
  font-weight: 700;
}

.chain-flow li.is-end .chain-dot {
  background: var(--c-teal-mid);
  border-color: var(--c-lime);
}

/* Цепочка на тёмной карточке hero + анимация поочерёдного свечения */
.chain-flow--card li {
  color: #cfe0dd;
  padding: 0.72rem 0.15rem 0.72rem 0;
  font-size: 0.98rem;
}

.chain-flow--card .chain-label {
  flex: 1;
}

.chain-flow--card .chain-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(233, 252, 146, 0.6);
  flex-shrink: 0;
}

.chain-flow--card .chain-ic svg {
  width: 17px;
  height: 17px;
  max-width: none;
}

.chain-flow--card .chain-dot {
  background: rgba(233, 252, 146, 0.22);
  border-color: var(--c-teal-mid);
  animation: chainPulse 8s linear infinite;
}

.chain-flow--card li:not(:last-child) .chain-dot::after {
  height: calc(0.72rem + 0.72rem + 8px);
  background: linear-gradient(var(--c-teal-mid), rgba(233, 252, 146, 0.25));
}

.chain-flow--card li.is-end {
  color: var(--c-lime);
}

.chain-flow--card li.is-end .chain-dot {
  border-color: var(--c-lime);
}

.chain-flow--card li:nth-child(1) .chain-dot { animation-delay: 0s; }
.chain-flow--card li:nth-child(2) .chain-dot { animation-delay: 1s; }
.chain-flow--card li:nth-child(3) .chain-dot { animation-delay: 2s; }
.chain-flow--card li:nth-child(4) .chain-dot { animation-delay: 3s; }
.chain-flow--card li:nth-child(5) .chain-dot { animation-delay: 4s; }
.chain-flow--card li:nth-child(6) .chain-dot { animation-delay: 5s; }
.chain-flow--card li:nth-child(7) .chain-dot { animation-delay: 6s; }
.chain-flow--card li:nth-child(8) .chain-dot { animation-delay: 7s; }

@keyframes chainPulse {
  0% {
    background: rgba(233, 252, 146, 0.22);
    border-color: var(--c-teal-mid);
    box-shadow: none;
  }
  5% {
    background: var(--c-lime);
    border-color: var(--c-lime);
    box-shadow: 0 0 0 5px rgba(233, 252, 146, 0.22), 0 0 14px 3px rgba(233, 252, 146, 0.75);
  }
  12.5% {
    background: rgba(233, 252, 146, 0.22);
    border-color: var(--c-teal-mid);
    box-shadow: none;
  }
  100% {
    background: rgba(233, 252, 146, 0.22);
    border-color: var(--c-teal-mid);
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chain-flow--card .chain-dot {
    animation: none;
  }
}

/* ============ HOME: КОМУ ПОДХОДИМ ============ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.audience-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.audience-item:hover {
  transform: translateY(-3px);
  border-color: var(--c-accent-200);
  box-shadow: var(--shadow-sm);
}

.audience-item svg {
  width: 30px;
  height: 30px;
  color: var(--c-teal-mid);
  max-width: none;
}

.audience-item strong {
  font-weight: 600;
  font-size: 0.98rem;
}

/* ============ HOME: НАПРАВЛЕНИЯ ============ */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.direction-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.direction-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent-200);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.direction-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.2rem;
}

.direction-card p {
  margin: 0;
  color: var(--c-ink-2);
  font-size: 0.94rem;
  flex-grow: 1;
}

.direction-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--c-teal-mid);
  font-weight: 600;
  font-size: 0.9rem;
}

.direction-more svg {
  width: 16px;
  height: 16px;
  max-width: none;
  transition: transform 0.2s;
}

.direction-card:hover .direction-more svg {
  transform: translateX(3px);
}

/* ============ HOME: КЕЙСЫ ============ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.case-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-teal-mid);
  background: var(--c-lime-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.case-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.12rem;
}

.case-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--c-ink-2);
}

.case-result {
  margin-top: 0.3rem !important;
  font-weight: 600;
  color: var(--c-teal-mid) !important;
}

/* ============ HOME: ГРУППА КОМПАНИЙ ============ */
.group-companies {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.group-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding: 1.5rem 2rem;
  background: var(--c-teal-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  position: relative;
}

.group-hub svg {
  width: 30px;
  height: 30px;
  color: var(--c-lime);
  max-width: none;
  margin-bottom: 0.3rem;
}

.group-hub strong {
  font-size: 1.1rem;
}

.group-hub span {
  font-size: 0.85rem;
  color: #9db3b0;
}

.group-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
  position: relative;
}

.group-nodes::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  left: 50%;
  width: 2px;
  height: 0.9rem;
  background: var(--c-line-strong);
  transform: translateX(-50%);
}

.group-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.4rem 1rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}

.group-node:hover {
  transform: translateY(-3px);
  border-color: var(--c-accent-200);
}

.group-node svg {
  width: 26px;
  height: 26px;
  color: var(--c-teal-mid);
  max-width: none;
}

.group-node strong {
  font-weight: 600;
  font-size: 1rem;
}

.group-node span {
  font-size: 0.82rem;
  color: var(--c-muted);
}

@media (max-width: 900px) {
  .whoweare-grid {
    grid-template-columns: 1fr;
  }
}
