/* INCODE TM marketing site UI kit — visual styles */
@import url('./colors_and_type.css');

body { background: var(--bg); color: var(--fg); font-family: var(--font-body); }

/* ===== Container ===== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 72px;
}
.brand {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  letter-spacing: -0.025em; color: var(--fg);
}
.brand .tm {
  font-size: 11px; font-weight: 700; color: var(--accent);
  border-bottom: 2px solid var(--accent); padding-bottom: 1px;
  letter-spacing: 0.04em;
}
.nav { display: flex; gap: 2px; flex: 1; }
.nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  padding: 8px 10px; border-radius: var(--radius); color: var(--fg);
  cursor: pointer; transition: background var(--dur) var(--ease-out);
  white-space: nowrap;
}
.nav a:hover { background: var(--cream-100); }
.nav a.active { color: var(--accent); }

/* ===== Nav dropdown (desktop) ===== */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-arrow { width: 12px; height: 12px; opacity: 0.55; transition: transform 0.18s ease, opacity 0.18s ease; }
.nav-item-dropdown:hover .nav-arrow,
.nav-item-dropdown:focus-within .nav-arrow { transform: rotate(180deg); opacity: 1; }
/* Невидимый «мост» между ссылкой и дропдауном — чтобы курсор не терял hover при переходе */
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 240px;
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  padding: 8px;
  margin-top: 10px;
  box-shadow: 0 12px 32px rgba(10, 21, 28, 0.28);
  display: none;
  z-index: 100;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--cream-50);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-dropdown a:hover { background: var(--slate-800); color: var(--accent); }
.nav-dropdown a.active { color: var(--accent); background: rgba(217, 122, 44, 0.08); }

/* ===== Mobile menu — sub-nav (всегда раскрыто внутри off-canvas) ===== */
.mobile-subnav {
  display: flex;
  flex-direction: column;
  margin: 2px 0 6px 14px;
  padding-left: 12px;
  border-left: 2px solid var(--slate-200);
}
.mobile-subnav a {
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  color: var(--slate-900) !important;
}
.mobile-subnav a:hover { background: var(--cream-100); }
.mobile-subnav a.active { color: var(--accent) !important; }

.lang { display: flex; gap: 0; background: var(--cream-100); border-radius: var(--radius-sm); padding: 2px; }
.lang button { font-family: var(--font-display); font-weight: 600; font-size: 11px; padding: 5px 10px; border-radius: 2px; color: var(--fg-muted); letter-spacing: 0.04em; }
.lang button.on { background: var(--paper); color: var(--fg); box-shadow: var(--shadow-xs); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.phone { font-family: var(--font-mono); font-size: 13px; color: var(--fg); font-feature-settings: 'tnum'; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-family: var(--font-display); font-size: 14px; font-weight: 600; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent; transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); letter-spacing: -0.005em; }
.btn-pri { background: var(--accent); color: var(--slate-900); }
.btn-pri:hover { background: var(--accent-hover); }
.btn-sec { background: transparent; color: var(--slate-900); border-color: var(--slate-900); }
.btn-sec:hover { background: var(--slate-50); }
.btn-dark { background: var(--slate-900); color: var(--cream-50); }
.btn-dark:hover { background: var(--slate-800); }
.btn-ghost { background: transparent; color: var(--slate-900); }
.btn-ghost:hover { background: var(--cream-100); }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* ===== Hero (asymmetric — 4:8 grid, NOT centred) ===== */
.hero { padding: 80px 0 96px; background: var(--bg); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; }
.hero-eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 20px; display: flex; gap: 12px; align-items: center; }
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 999px; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: 35px; line-height: 1.1; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 24px; }
.hero-title .mark { background: var(--saffron-200); padding: 0 0.1em; }
.hero-lead { font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--fg-muted); margin-bottom: 32px; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta { display: flex; gap: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); border-top: 1px solid var(--border); padding-top: 16px; }
.hero-meta strong { color: var(--fg); font-weight: 600; }

/* Hero right: asymmetric stack of three direction cards */
.dir-stack { display: grid; grid-template-rows: 1.6fr 1fr 1fr; gap: 12px; height: 460px; }
.dir-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); cursor: pointer; }
.dir-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dir-card.feat { background: var(--slate-900); color: var(--cream-50); border-color: var(--slate-700); }
.dir-card-head { display: flex; align-items: center; justify-content: space-between; }
.dir-card-num { font-family: var(--font-mono); font-size: 11px; opacity: 0.5; letter-spacing: 0.06em; }
.dir-card .ico { width: 44px; height: 44px; border-radius: var(--radius); background: var(--cream-100); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.dir-card.feat .ico { background: var(--slate-800); color: var(--saffron-400); }
.dir-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.dir-card.feat h3 { color: var(--cream-50); }
.dir-card p { font-size: 13px; color: var(--fg-muted); line-height: 1.5; max-width: 360px; }
.dir-card.feat p { color: var(--slate-300); }
.dir-card .arrow { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent); }

/* ===== Stats ===== */
.stats { background: var(--slate-900); color: var(--cream-50); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 0 32px; border-right: 1px solid var(--slate-700); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; padding-right: 0; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.02em; color: var(--cream-50); font-variant-numeric: tabular-nums; }
.stat-num .acc { color: var(--saffron-400); }
.stat-lbl { margin-top: 6px; font-size: 13px; color: var(--slate-300); }

/* ===== Section ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--cream-100); }
.section-dark { background: var(--slate-900); color: var(--cream-50); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.section-head-1col { display: block; max-width: 720px; margin-bottom: 56px; }
.section-eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.02em; color: var(--fg); }
.section-dark .section-title { color: var(--cream-50); }
.section-lead { font-size: 17px; color: var(--fg-muted); line-height: 1.6; }
.section-dark .section-lead { color: var(--slate-300); }

/* ===== Service rows (1+2 staggered, NOT 3-col grid) ===== */
.svc-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.svc { background: var(--slate-900); color: var(--cream-50); border: 1px solid var(--slate-700); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); cursor: pointer; }
.svc:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.svc.feat { grid-row: span 2; }
.svc h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--cream-50); }
.svc p { font-size: 14px; line-height: 1.55; color: var(--slate-300); flex: 1; }
.svc .ico { width: 44px; height: 44px; border-radius: var(--radius); background: var(--slate-800); display: flex; align-items: center; justify-content: center; color: var(--saffron-400); }
.svc .more { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 4px; }

/* ===== Service style variants (toggleable) ===== */
/* MIXED: feat dark, rest light */
body[data-svc-style="mixed"] .svc { background: var(--paper); color: var(--fg); border-color: var(--border); }
body[data-svc-style="mixed"] .svc h3 { color: var(--fg); }
body[data-svc-style="mixed"] .svc p { color: var(--fg-muted); }
body[data-svc-style="mixed"] .svc .ico { background: var(--cream-100); color: var(--accent); }
body[data-svc-style="mixed"] .svc.feat { background: var(--slate-900); color: var(--cream-50); border-color: var(--slate-700); }
body[data-svc-style="mixed"] .svc.feat h3 { color: var(--cream-50); }
body[data-svc-style="mixed"] .svc.feat p { color: var(--slate-300); }
body[data-svc-style="mixed"] .svc.feat .ico { background: var(--slate-800); color: var(--saffron-400); }

/* LIGHT: all paper */
body[data-svc-style="light"] .svc { background: var(--paper); color: var(--fg); border-color: var(--border); }
body[data-svc-style="light"] .svc h3 { color: var(--fg); }
body[data-svc-style="light"] .svc p { color: var(--fg-muted); }
body[data-svc-style="light"] .svc .ico { background: var(--cream-100); color: var(--accent); }

/* SAFFRON: feat saffron, rest light */
body[data-svc-style="saffron"] .svc { background: var(--paper); color: var(--fg); border-color: var(--border); }
body[data-svc-style="saffron"] .svc h3 { color: var(--fg); }
body[data-svc-style="saffron"] .svc p { color: var(--fg-muted); }
body[data-svc-style="saffron"] .svc .ico { background: var(--cream-100); color: var(--accent); }
body[data-svc-style="saffron"] .svc.feat { background: var(--accent); color: var(--slate-900); border-color: var(--accent); }
body[data-svc-style="saffron"] .svc.feat h3 { color: var(--slate-900); }
body[data-svc-style="saffron"] .svc.feat p { color: var(--slate-900); opacity: 0.78; }
body[data-svc-style="saffron"] .svc.feat .ico { background: rgba(17,33,45,0.12); color: var(--slate-900); }
body[data-svc-style="saffron"] .svc.feat .more { color: var(--slate-900); }

/* ALTERNATING: feat dark, light, dark */
body[data-svc-style="alt"] .svc { background: var(--paper); color: var(--fg); border-color: var(--border); }
body[data-svc-style="alt"] .svc h3 { color: var(--fg); }
body[data-svc-style="alt"] .svc p { color: var(--fg-muted); }
body[data-svc-style="alt"] .svc .ico { background: var(--cream-100); color: var(--accent); }
body[data-svc-style="alt"] .svc.feat,
body[data-svc-style="alt"] .svc:nth-of-type(3),
body[data-svc-style="alt"] .svc:nth-of-type(4) { background: var(--slate-900); color: var(--cream-50); border-color: var(--slate-700); }
body[data-svc-style="alt"] .svc.feat h3,
body[data-svc-style="alt"] .svc:nth-of-type(3) h3,
body[data-svc-style="alt"] .svc:nth-of-type(4) h3 { color: var(--cream-50); }
body[data-svc-style="alt"] .svc.feat p,
body[data-svc-style="alt"] .svc:nth-of-type(3) p,
body[data-svc-style="alt"] .svc:nth-of-type(4) p { color: var(--slate-300); }
body[data-svc-style="alt"] .svc.feat .ico,
body[data-svc-style="alt"] .svc:nth-of-type(3) .ico,
body[data-svc-style="alt"] .svc:nth-of-type(4) .ico { background: var(--slate-800); color: var(--saffron-400); }

/* ===== Clients marquee ===== */
.clients { padding: 80px 0 88px; background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.pill-eyebrow { display: inline-block; padding: 6px 14px; background: var(--cream-100); border: 1px solid var(--border); border-radius: 999px; font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--fg); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.clients-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; color: var(--fg); margin-bottom: 8px; }
.clients-lead { font-family: var(--font-body); font-size: 14px; color: var(--fg-muted); }

.marquee { width: 100%; overflow: hidden; mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee-scroll 60s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 75s; }
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Logo chips — карточка с реальным логотипом-изображением внутри */
.logo-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  min-width: 180px;
  padding: 12px 28px;
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
}
.logo-chip img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(85%) brightness(0.95) contrast(1.05);
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logo-chip:hover {
  background: var(--paper);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(217, 122, 44, 0.25);
}
.logo-chip:hover img {
  filter: none;
  opacity: 1;
}

/* Логотип-стили (имитируют разные брендовые шрифты) */
.logo-sans       { font-family: var(--font-display); font-weight: 600; }
.logo-sans-bold  { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
.logo-sans-thin  { font-family: var(--font-display); font-weight: 300; letter-spacing: 0.18em; font-size: 16px; }
.logo-bold       { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.03em; font-size: 20px; }
.logo-serif      { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; font-style: italic; }
.logo-serif-bold { font-family: Georgia, serif; font-weight: 800; letter-spacing: 0.08em; }
.logo-italic     { font-family: var(--font-display); font-weight: 700; font-style: italic; letter-spacing: -0.01em; }
.logo-circle     { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.04em; }
.logo-circle::before { content: '◉'; margin-right: 8px; color: var(--accent); }
.logo-tag        { font-family: var(--font-display); font-weight: 800; background: #fde047; border-color: #facc15; color: #422006; transform: skewX(-6deg); padding: 0 18px; }
.logo-tag:hover  { transform: skewX(-6deg) translateY(-2px); }
.logo-pink       { font-family: var(--font-display); font-weight: 900; background: #ec4899; border-color: #db2777; color: #fff; font-size: 22px; }
.logo-pink:hover { background: #db2777; }
.logo-green      { font-family: var(--font-display); font-weight: 800; background: #166534; border-color: #14532d; color: #fff; letter-spacing: 0.04em; }
.logo-green:hover { background: #14532d; }
.logo-red        { font-family: Georgia, serif; font-weight: 800; background: #b91c1c; border-color: #991b1b; color: #fff; font-style: italic; }
.logo-red:hover  { background: #991b1b; }

/* ===== CTA ===== */
.cta { background: var(--accent); color: var(--slate-900); padding: 80px 0; }
.cta-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center; }
.cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; color: var(--slate-900); }
.cta p { font-size: 17px; color: var(--saffron-900); margin-top: 16px; max-width: 480px; line-height: 1.55; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta-btn-pri { background: var(--slate-900); color: var(--cream-50); }
.cta-btn-pri:hover { background: var(--slate-800); }
.cta-btn-sec { background: transparent; color: var(--slate-900); border: 1px solid var(--slate-900); }
.cta-info { background: var(--slate-900); border: 1px solid var(--slate-700); border-radius: var(--radius-md); padding: 24px; }
.cta-info-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.cta-info-row + .cta-info-row { border-top: 1px solid var(--slate-700); }
.cta-info-row > div:first-child { color: var(--saffron-400); flex-shrink: 0; }
.cta-info-row strong { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--cream-50); display: block; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.cta-info-row span, .cta-info-row a { font-family: var(--font-mono); font-size: 13px; color: var(--slate-300); }
.cta-info-row a:hover { color: var(--saffron-400); }

/* ===== Footer ===== */
.footer { background: var(--slate-950); color: var(--slate-300); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer h4 { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--cream-50); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--slate-300); }
.footer ul a:hover { color: var(--saffron-400); }
.footer-brand .desc { color: var(--slate-300); margin-top: 16px; max-width: 360px; line-height: 1.6; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--slate-700); font-family: var(--font-mono); font-size: 12px; color: var(--slate-400); }

/* ===== Page-1C: pricing table ===== */
.price-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.price-tab { font-family: var(--font-display); font-size: 14px; font-weight: 600; padding: 14px 20px; cursor: pointer; color: var(--fg-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.price-tab.on { color: var(--fg); border-bottom-color: var(--accent); }
.price-table { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.price-row { display: grid; grid-template-columns: 80px 1fr 140px 120px; gap: 16px; padding: 16px 24px; align-items: center; border-bottom: 1px solid var(--border); }
.price-row:last-child { border-bottom: none; }
.price-row:hover { background: var(--cream-50); }
.price-tag { font-family: var(--font-mono); font-size: 11px; background: var(--cream-100); color: var(--slate-700); padding: 3px 8px; border-radius: var(--radius-xs); display: inline-block; letter-spacing: 0.04em; }
.price-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--fg); }
.price-name small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--fg-subtle); margin-top: 2px; }
.price-amt { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--fg); font-variant-numeric: tabular-nums; }
.price-amt small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 400; color: var(--fg-subtle); margin-top: 2px; }

/* ===== Price tables v2 ===== */
.price-group { margin-bottom: 56px; position: relative; }
.price-group:last-child { margin-bottom: 0; }
.price-group-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 0; padding: 20px 24px; background: var(--slate-900); color: var(--paper); border-radius: var(--radius-md) var(--radius-md) 0 0; position: relative; overflow: hidden; }
.price-group-head::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.price-group-head h2, .price-group-head h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--paper); letter-spacing: -0.01em; padding-left: 8px; }
.price-group-meta { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; flex-shrink: 0; font-weight: 600; }

.price-table-v2 { background: var(--paper); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-md) var(--radius-md); overflow: hidden; }
.price-row-v2 { display: grid; grid-template-columns: 160px 1fr 160px 140px; gap: 20px; padding: 18px 24px; align-items: center; border-bottom: 1px solid var(--border); transition: background 0.12s; position: relative; }
.price-row-v2::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); transition: width 0.18s ease; }
.price-row-v2:last-child { border-bottom: none; }
.price-row-v2:hover { background: var(--cream-50); }
.price-row-v2:hover::before { width: 3px; }
.price-row-compact { grid-template-columns: 1fr 160px 140px; }

.price-sku { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 10px; background: var(--saffron-100); border: 1px solid var(--saffron-200); border-radius: 4px; display: inline-block; width: fit-content; }
.price-name-v2 { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--fg); line-height: 1.35; }
.price-name-v2 small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--fg-subtle); margin-top: 4px; line-height: 1.4; }
.price-amt-v2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; text-align: right; }
.price-amt-v2 small { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--fg-subtle); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Цветовые акценты по группам — каждая группа с другим бордером */
.section .price-group:nth-of-type(1) .price-table-v2 { border-color: var(--saffron-200); }
.section .price-group:nth-of-type(2) .price-group-head { background: #1e3a5f; }
.section .price-group:nth-of-type(2) .price-group-head::before { background: #60a5fa; }
.section .price-group:nth-of-type(2) .price-group-meta { color: #93c5fd; }
.section .price-group:nth-of-type(3) .price-group-head { background: #14532d; }
.section .price-group:nth-of-type(3) .price-group-head::before { background: #4ade80; }
.section .price-group:nth-of-type(3) .price-group-meta { color: #86efac; }

/* Section-alt: Аренда (1-я) и Моби-С (2-я) */
.section-alt .price-group:nth-of-type(1) .price-group-head { background: linear-gradient(90deg, var(--accent) 0%, #b85e1f 100%); }
.section-alt .price-group:nth-of-type(1) .price-group-head::before { display: none; }
.section-alt .price-group:nth-of-type(1) .price-group-meta { color: rgba(255,255,255,0.8); }
.section-alt .price-group:nth-of-type(2) .price-group-head { background: #4c1d95; }
.section-alt .price-group:nth-of-type(2) .price-group-head::before { background: #c4b5fd; }
.section-alt .price-group:nth-of-type(2) .price-group-meta { color: #c4b5fd; }

/* ===== Server rent cards ===== */
.rent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.rent-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 20px; position: relative; overflow: hidden; }
.rent-card-feat { background: linear-gradient(160deg, var(--saffron-100) 0%, var(--cream-50) 60%); border: 2px solid var(--accent); }
.rent-card-feat::before { content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.2; pointer-events: none; }
.rent-tag { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--fg); text-transform: uppercase; letter-spacing: 0.08em; }
.rent-card-feat .rent-tag { color: var(--accent); }
.rent-price { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--fg); letter-spacing: -0.02em; line-height: 1; }
.rent-card-feat .rent-price { color: var(--accent); }
.rent-price small { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--fg-subtle); margin-left: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.rent-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rent-list li { font-size: 14px; color: var(--fg); padding-left: 22px; position: relative; line-height: 1.45; }
.rent-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ===== Support CTA ===== */
.support-cta { background: linear-gradient(135deg, var(--slate-900) 0%, #1e293b 100%); color: var(--paper); border-radius: var(--radius-md); padding: 36px 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-top: 48px; position: relative; overflow: hidden; }
.support-cta::before { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.25; pointer-events: none; }
.support-cta .section-eyebrow { color: var(--accent); }
.support-cta-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--paper); letter-spacing: -0.01em; margin-bottom: 8px; line-height: 1.2; }
.support-cta-lead { font-size: 14px; color: rgba(255,255,255,0.75); max-width: 540px; line-height: 1.5; }

@media (max-width: 720px) {
  .price-row-v2 { grid-template-columns: 1fr; gap: 8px; }
  .price-amt-v2 { text-align: left; }
  .price-group-head { flex-direction: column; align-items: flex-start; }
  .rent-grid { grid-template-columns: 1fr; }
  .support-cta { grid-template-columns: 1fr; }
}

/* ===== Process steps (web/mobile pages) ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 24px; background: var(--slate-900); border: 1px solid var(--slate-700); border-radius: var(--radius-md); transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.step:hover { transform: translateY(-2px); border-color: var(--accent); }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--saffron-400); font-weight: 600; margin-bottom: 12px; letter-spacing: 0.04em; }
.step h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--cream-50); margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--slate-300); line-height: 1.55; }

/* Cases */
.cases { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.case { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; min-height: 320px; }
.case-meta { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.case h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--fg); margin-bottom: 12px; letter-spacing: -0.01em; }
.case p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }
.case-stats { display: flex; gap: 32px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.case-stat { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--fg); letter-spacing: -0.01em; }
.case-stat .acc { color: var(--accent); }
.case-stat .lbl { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--fg-subtle); margin-top: 2px; }

/* Tech stack chips */
.tech { display: flex; gap: 8px; flex-wrap: wrap; }
.tech .chip { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; background: var(--cream-100); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--fg); }

/* ===== Mobile-page phone showcase ===== */
.phones-stage { background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%); border-radius: var(--radius-md); padding: 40px 24px; min-height: 540px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.phones-stage::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 20%, rgba(217, 122, 44, 0.18), transparent 40%), radial-gradient(circle at 80% 80%, rgba(217, 122, 44, 0.10), transparent 45%); pointer-events: none; }
.phones { display: flex; gap: 28px; align-items: center; justify-content: center; position: relative; }
.phone-frame { width: 200px; aspect-ratio: 9/19.5; background: #0a0e1a; border: 3px solid #1f2937; border-radius: 32px; padding: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04); position: relative; flex-shrink: 0; }
.phone-frame-2 { transform: translateY(-32px); }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 60px; height: 16px; background: #0a0e1a; border-radius: 0 0 12px 12px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.ph-statusbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 6px; font-family: var(--font-display); font-size: 11px; font-weight: 700; }
.ph-statusbar-icons { display: flex; gap: 4px; align-items: center; }
.ph-sig, .ph-wifi, .ph-batt { display: inline-block; background: currentColor; }
.ph-sig { width: 10px; height: 8px; clip-path: polygon(0 100%, 25% 100%, 25% 70%, 50% 70%, 50% 40%, 75% 40%, 75% 10%, 100% 10%, 100% 100%); }
.ph-wifi { width: 10px; height: 8px; clip-path: polygon(50% 0, 100% 50%, 80% 65%, 50% 35%, 20% 65%, 0 50%); }
.ph-batt { width: 16px; height: 8px; border-radius: 2px; }

/* Phone 1 — GPS */
.ph-gps { background: #0f172a; color: #fff; }
.ph-gps .ph-statusbar { color: #fff; }
.ph-map { flex: 1; position: relative; }
.ph-map svg { display: block; width: 100%; height: 100%; }
.ph-card { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 14px; color: #fff; }
.ph-card-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.ph-card-eta { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.ph-card-tag { font-size: 9px; color: #D97A2C; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.ph-card-addr { font-size: 10px; color: rgba(255,255,255,0.7); margin-bottom: 8px; line-height: 1.3; }
.ph-card-progress { height: 3px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.ph-card-progress span { display: block; height: 100%; background: #D97A2C; border-radius: 999px; }
.ph-card-meta { display: flex; gap: 6px; font-size: 9px; color: rgba(255,255,255,0.5); font-family: var(--font-mono); }

/* Phone 2 — Shop */
.ph-shop { background: #fefcf8; color: #0f172a; }
.ph-shop .ph-statusbar { color: #0f172a; }
.ph-shop-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 14px 10px; }
.ph-shop-hi { font-size: 9px; color: #64748b; }
.ph-shop-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.1; }
.ph-shop-bag { width: 28px; height: 28px; border-radius: 50%; background: #D97A2C; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ph-shop-search { margin: 0 14px 10px; padding: 8px 12px; background: #f3ede1; border-radius: 8px; font-size: 10px; color: #94a3b8; }
.ph-shop-chips { display: flex; gap: 4px; padding: 0 14px 10px; overflow: hidden; }
.ph-shop-chips span { font-size: 9px; padding: 4px 8px; border-radius: 999px; background: #f3ede1; color: #475569; white-space: nowrap; }
.ph-shop-chips span.on { background: #0f172a; color: #fff; }
.ph-shop-grid { padding: 0 14px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.ph-shop-card { background: #fff; border: 1px solid #ece5d4; border-radius: 8px; padding: 6px; }
.ph-shop-img { width: 100%; aspect-ratio: 1; border-radius: 6px; margin-bottom: 4px; }
.ph-shop-name { font-size: 9px; font-weight: 600; line-height: 1.2; margin-bottom: 2px; }
.ph-shop-price { font-family: var(--font-mono); font-size: 9px; color: #D97A2C; font-weight: 700; }

/* Tweaks: tone down dark sections to match page mood */
body.no-dark-sections .stats { background: var(--cream-100); color: var(--fg); }
body.no-dark-sections .stats .stat { border-right-color: var(--border); }
body.no-dark-sections .stats .stat-num { color: var(--fg); }
body.no-dark-sections .stats .stat-lbl { color: var(--fg-muted); }
body.no-dark-sections .footer { background: var(--cream-100); color: var(--fg-muted); }
body.no-dark-sections .footer h4 { color: var(--fg); }
body.no-dark-sections .footer .brand { color: var(--fg) !important; }
body.no-dark-sections .footer ul a { color: var(--fg-muted); }
body.no-dark-sections .footer-brand .desc { color: var(--fg-muted); }
body.no-dark-sections .footer-bottom { border-top-color: var(--border); color: var(--fg-subtle); }
body.no-dark-sections .dir-card.feat,
body.no-dark-sections .svc.feat {
  background: var(--paper); color: var(--fg); border-color: var(--border);
}
body.no-dark-sections .dir-card.feat h3,
body.no-dark-sections .svc.feat h3 { color: var(--fg); }
body.no-dark-sections .dir-card.feat p,
body.no-dark-sections .svc.feat p { color: var(--fg-muted); }
body.no-dark-sections .dir-card.feat .ico,
body.no-dark-sections .svc.feat .ico {
  background: var(--cream-100); color: var(--accent);
}
body.no-dark-sections .section-dark { background: var(--cream-100); color: var(--fg); }
body.no-dark-sections .section-dark .section-title { color: var(--fg); }
body.no-dark-sections .section-dark .section-lead { color: var(--fg-muted); }

/* Mobile-page phone backdrop */
body.no-dark-sections .phones { background: var(--cream-100); }

/* =============================================================
   LEGAL PAGES — privacy.html / terms.html: long-form + sticky TOC
   ============================================================= */
.legal-notice {
  background: var(--saffron-100);
  border: 1px solid var(--saffron-200);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--saffron-900);
  line-height: 1.5;
}
.legal-notice strong { color: var(--saffron-900); font-weight: 700; }

.legal-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: start;
}
.legal-content { max-width: 720px; }
.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
  scroll-margin-top: 90px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
  margin: 24px 0 8px;
}
.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: 14px;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 16px 24px;
  padding-left: 0;
}
.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: 6px;
  list-style: disc;
}
.legal-content ol li { list-style: decimal; }
.legal-content a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.legal-content a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}
.legal-content .legal-meta {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.legal-toc {
  position: sticky;
  top: 90px;
  padding: 16px 0;
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
.legal-toc h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fg-subtle);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.legal-toc ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-toc a {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
  display: block;
}
.legal-toc a:hover { color: var(--accent); }

/* =============================================================
   CONTACTS PAGE — hero-текст + контакт-карточка слева,
   карта на всю высоту справа (выровнено по верху hero)
   ============================================================= */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: stretch;
}
.contacts-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
/* Старый .contacts-grid (если где-то остался ссылка) */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}
.contacts-map {
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.contacts-map__head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--slate-700);
  background: var(--slate-900);
}
.contacts-map__head strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--cream-50);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.contacts-map__head span {
  font-size: 13px;
  color: var(--slate-300);
  line-height: 1.4;
}
.contacts-map iframe {
  flex: 1;
  width: 100%;
  border: 0;
  display: block;
}
.contacts-map__link {
  padding: 12px 24px;
  border-top: 1px solid var(--slate-700);
  background: var(--slate-900);
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.contacts-map__link a {
  color: var(--saffron-400);
}
.contacts-map__link a:hover { color: var(--accent); }

/* =============================================================
   PAGE-1C — единый тёмный стиль для всех прайс-карточек
   ============================================================= */
body.page-1c .section .price-group:nth-of-type(1) .price-table-v2,
body.page-1c .section .price-group:nth-of-type(2) .price-table-v2,
body.page-1c .section .price-group:nth-of-type(3) .price-table-v2,
body.page-1c .section-alt .price-group .price-table-v2 {
  border-color: var(--slate-700);
}
body.page-1c .price-group-head,
body.page-1c .section .price-group:nth-of-type(2) .price-group-head,
body.page-1c .section .price-group:nth-of-type(3) .price-group-head,
body.page-1c .section-alt .price-group:nth-of-type(1) .price-group-head,
body.page-1c .section-alt .price-group:nth-of-type(2) .price-group-head {
  background: var(--slate-900);
}
body.page-1c .price-group-head::before,
body.page-1c .section-alt .price-group:nth-of-type(1) .price-group-head::before {
  background: var(--accent);
  display: block;
}
body.page-1c .price-group-meta,
body.page-1c .section .price-group:nth-of-type(2) .price-group-meta,
body.page-1c .section .price-group:nth-of-type(3) .price-group-meta,
body.page-1c .section-alt .price-group:nth-of-type(1) .price-group-meta,
body.page-1c .section-alt .price-group:nth-of-type(2) .price-group-meta {
  color: var(--accent);
}

body.page-1c .price-table-v2 {
  background: var(--slate-900);
  color: var(--cream-50);
}
body.page-1c .price-row-v2 { border-bottom-color: var(--slate-700); }
body.page-1c .price-row-v2:hover { background: var(--slate-800); }
body.page-1c .price-name-v2 { color: var(--cream-50); }
body.page-1c .price-name-v2 small { color: var(--slate-300); }
body.page-1c .price-amt-v2 { color: var(--saffron-400); }
body.page-1c .price-amt-v2 small { color: var(--slate-400); }
body.page-1c .price-sku {
  background: rgba(217, 122, 44, 0.12);
  border-color: rgba(217, 122, 44, 0.3);
  color: var(--saffron-400);
}
body.page-1c .price-table-v2 .btn-sec {
  background: transparent;
  color: var(--saffron-400);
  border-color: var(--saffron-400);
}
body.page-1c .price-table-v2 .btn-sec:hover {
  background: var(--saffron-400);
  color: var(--slate-900);
}

/* Аренда сервера — карточки тоже тёмные */
body.page-1c .rent-card {
  background: var(--slate-900);
  border-color: var(--slate-700);
  color: var(--cream-50);
}
body.page-1c .rent-card .rent-tag { color: var(--cream-50); }
body.page-1c .rent-card .rent-price { color: var(--cream-50); }
body.page-1c .rent-card .rent-price small { color: var(--slate-300); }
body.page-1c .rent-card .rent-list li { color: var(--cream-50); }
body.page-1c .rent-card .rent-list li::before { border-color: var(--accent); }
body.page-1c .rent-card-feat {
  background: linear-gradient(160deg, var(--slate-800) 0%, var(--slate-900) 60%);
  border: 2px solid var(--accent);
}
body.page-1c .rent-card-feat::before {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.3;
}
body.page-1c .rent-card-feat .rent-tag { color: var(--accent); }
body.page-1c .rent-card-feat .rent-price { color: var(--accent); }
body.page-1c .rent-card .btn-sec {
  background: transparent;
  color: var(--saffron-400);
  border: 1px solid var(--saffron-400);
}
body.page-1c .rent-card .btn-sec:hover {
  background: var(--saffron-400);
  color: var(--slate-900);
}

/* =============================================================
   CLIENTS — две строки marquee для блока «Нам доверяют»
   ============================================================= */
.marquee-stack { display: flex; flex-direction: column; gap: 14px; }

/* =============================================================
   PRINT-ONLY blocks — невидимы на экране, появляются при печати
   ============================================================= */
.print-only { display: none; }

/* =============================================================
   TOAST — нижнее правое уведомление с автоисчезновением
   ============================================================= */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--slate-900);
  color: var(--cream-50);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.toast svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* =============================================================
   BURGER + MOBILE MENU — off-canvas справа, появляется на <1024px
   ============================================================= */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.nav-toggle:hover { background: var(--cream-100); border-color: var(--slate-300); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 90;
  padding: 88px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  visibility: hidden;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: -8px 0 30px rgba(17, 33, 45, 0.12);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--fg);
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease-out);
}
.mobile-menu nav a:hover { background: var(--cream-100); }
.mobile-menu nav a.active { color: var(--accent); }
.mobile-menu .lang {
  display: inline-flex;
  align-self: flex-start;
}
.mobile-menu .phone {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--fg);
  font-feature-settings: 'tnum';
}
.mobile-menu .btn {
  width: 100%;
  justify-content: center;
}
.mobile-menu hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

body.menu-open {
  overflow: hidden;
}
body.menu-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(17, 33, 45, 0.4);
  z-index: 80;
  animation: menu-fade-in 0.2s var(--ease-out);
}
@keyframes menu-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* =============================================================
   RESPONSIVE — Tablet 768-1024px, Phone <768px, Small <480px
   ============================================================= */

@media (max-width: 1024px) {
  /* Header: скрываем десктопную навигацию, показываем бургер */
  .nav,
  .header-cta .lang,
  .header-cta .phone,
  .header-cta > .btn {
    display: none !important;
  }
  .nav-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }

  /* Hero — стек одной колонкой везде */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .hero { padding: 56px 0 64px; }
  .hero-title { font-size: 30px; }
  .hero-lead { font-size: 16px; max-width: 100%; }

  /* Direction stack справа на главной — теперь снизу, фиксированной высоты */
  .dir-stack {
    grid-template-rows: auto !important;
    height: auto !important;
    grid-auto-rows: minmax(140px, auto);
  }

  /* Stats: 4 → 2 в ряд */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }
  .stats-grid .stat:nth-child(2) { border-right: none; padding-right: 0; }
  .stats-grid .stat:nth-child(3) { padding-left: 0; }
  .stat { padding: 0 16px; }
  .stat-num { font-size: 44px; }

  /* Section headers: lead под заголовком */
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }
  .section-title { font-size: clamp(24px, 4vw, 32px); }
  .section { padding: 64px 0; }

  /* Services grid: 1+2 → одна колонка */
  .svc-grid,
  .svc-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .svc.feat { grid-row: auto !important; min-height: auto; }

  /* CTA */
  .cta-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Footer: 4 колонки → 2 колонки */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Контакты: контакты + карта стек */
  .contacts-grid { grid-template-columns: 1fr; gap: 24px; }
  .contacts-layout { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .contacts-left { gap: 24px; }

  /* Legal: убираем sticky TOC — переносим вниз */
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 24px 0 0;
  }
  .legal-toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  /* 1С прайс: больше дыхания */
  body.page-1c .price-row-v2 { padding: 14px 18px !important; }

  /* Mobile-page phones: уменьшаем масштаб */
  .phones-stage { min-height: 440px; padding: 24px 12px; }
  .phone-frame { width: 170px; }

  /* Container: меньше padding */
  .container { padding: 0 20px; }

  /* Hero на 1С / web / mobile с inline padding */
  .hero[style*="padding"] { padding: 56px 0 48px !important; }
}

@media (max-width: 768px) {
  /* Phone: одна колонка ВЕЗДЕ */
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stats-grid .stat,
  .stats-grid .stat:first-child,
  .stats-grid .stat:last-child {
    border-right: none;
    border-top: 1px solid var(--slate-700);
    padding: 16px 0 0;
  }
  .stats-grid .stat:first-child { border-top: 0; padding-top: 0; }
  .stats { padding: 40px 0; }
  .stat-num { font-size: 36px; }
  .stat-lbl { font-size: 12px; }

  /* Footer 1 колонка */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .footer-brand { grid-column: auto; }
  .footer { padding: 56px 0 24px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
  }
  .footer-bottom a { display: block; }

  /* Hero typography */
  .hero { padding: 40px 0 56px; }
  .hero-title { font-size: 26px; line-height: 1.15; }
  .hero-lead { font-size: 15px; line-height: 1.5; }
  .hero-eyebrow { font-size: 11px; margin-bottom: 14px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-meta {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  /* Section spacing */
  .section { padding: 48px 0; }
  .section-title { font-size: 24px; }

  /* CTA */
  .cta { padding: 56px 0; }
  .cta h2 { font-size: 28px; }
  .cta p { font-size: 15px; }
  .cta .actions { flex-direction: column; gap: 10px; }
  .cta .actions .btn { width: 100%; justify-content: center; }

  /* Mobi-S (mobile.html): фоны телефонов поменьше */
  .phones-stage { min-height: 380px; padding: 16px; }
  .phones { gap: 12px; }
  .phone-frame { width: 140px; }
  .phone-frame-2 { transform: translateY(-16px); }

  /* Marquee медленнее, чипы ниже */
  .logo-chip { height: 64px; min-width: 140px; padding: 8px 16px; }
  .marquee-track { animation-duration: 90s; }
  .marquee-reverse .marquee-track { animation-duration: 110s; }
  .clients { padding: 48px 0; }
  .clients-title { font-size: 24px; }

  /* Контейнер: ещё меньше padding */
  .container { padding: 0 16px; }

  /* CTA-info карточка */
  .cta-info { padding: 18px; }

  /* Legal */
  .legal-content h2 { font-size: 20px; }
  .legal-content p, .legal-content li { font-size: 14px; }

  /* Контакты карта меньше */
  .contacts-map { min-height: 380px; }

  /* Section-head */
  .section-head, .section-head-1col { margin-bottom: 32px; }

  /* Hero на 1С / web / mobile inline */
  .hero[style*="padding"] { padding: 40px 0 40px !important; }

  /* 1С прайс: упрощаем строки */
  body.page-1c .price-group-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  body.page-1c .price-group-head h2, body.page-1c .price-group-head h3 { font-size: 16px !important; }
  body.page-1c .price-row-v2 {
    grid-template-columns: 1fr !important;
    padding: 14px 16px !important;
    gap: 8px !important;
  }
  body.page-1c .price-row-v2 .price-sku { width: fit-content; }
  body.page-1c .price-amt-v2 { text-align: left; font-size: 18px; }

  /* Аренда: одна колонка */
  body.page-1c .rent-grid { grid-template-columns: 1fr; }

  /* Support CTA */
  .support-cta {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
    gap: 20px !important;
  }

  /* 1С advantages card в hero — компактнее */
  body.page-1c .hero-grid > div[style*="background: var(--slate-900)"] {
    padding: 24px !important;
  }

  /* Steps на web.html */
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 18px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 22px; }
  .section-title { font-size: 20px; }
  .cta h2 { font-size: 24px; }
  .stat-num { font-size: 32px; }
  .clients-title { font-size: 20px; }
  .brand { font-size: 18px; }
  .header-inner { gap: 12px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle svg { width: 20px; height: 20px; }
  .container { padding: 0 14px; }
  .legal-notice { font-size: 13px; padding: 12px 14px; }
  .channel { padding: 16px 18px; }
  .testi__quote { font-size: var(--fs-base); }
}

/* =============================================================
   PRINT STYLES — для «Скачать прайс» (window.print → save as PDF)
   Скрываем всё лишнее, оставляем только прайс-таблицы.
   Светлая палитра, узкие отступы, A4-friendly.
   ============================================================= */
@media print {
  /* ----- Базовый сброс ----- */
  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body, body.page-1c {
    background: #fff !important;
    color: #000 !important;
    font-family: 'Inter Tight', Arial, sans-serif !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
  }
  @page { size: A4; margin: 12mm 10mm; }

  /* ----- Скрываем всё, кроме прайса ----- */
  .site-header,
  .site-footer,
  .hero,
  .cta,
  .section-head,
  .section-head-1col,
  .support-cta,
  .lang,
  .nav-toggle,
  body.page-1c section.section:last-of-type .svc-grid,
  body.page-1c .price-row-v2 > div:last-child,
  body.page-1c .rent-card .btn,
  body.page-1c .rent-card-feat .btn {
    display: none !important;
  }
  /* Скрываем "Внедрение под ключ" целиком — это не часть прайса */
  body.page-1c section.section.section-alt:nth-of-type(4) {
    display: none !important;
  }

  /* ----- Показываем print-only блоки ----- */
  .print-only { display: block !important; }

  /* ----- Контейнер на всю ширину ----- */
  .container { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
  main { padding: 0 !important; }
  section.section,
  section.section.section-alt {
    padding: 4mm 0 !important;
    background: #fff !important;
    page-break-inside: auto;
  }

  /* ----- Шапка документа ----- */
  .print-doc-header {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #000;
    padding-bottom: 5mm;
    margin-bottom: 6mm;
    gap: 8mm;
  }
  .print-brand {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 22pt;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #000 !important;
    line-height: 1;
  }
  .print-brand span {
    font-size: 9pt;
    color: #d97a2c !important;
    border-bottom: 2px solid #d97a2c;
    padding: 0 2px 1px;
    margin-left: 4px;
    vertical-align: text-top;
    letter-spacing: 0.04em;
  }
  .print-title {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 13pt;
    font-weight: 700;
    text-align: center;
    flex: 1;
    color: #000 !important;
  }
  .print-title small {
    display: block;
    font-size: 8pt;
    font-weight: 400;
    color: #555 !important;
    margin-top: 2mm;
  }
  .print-contacts {
    font-size: 8.5pt;
    text-align: right;
    line-height: 1.5;
    color: #333 !important;
    min-width: 55mm;
  }

  /* ----- Группы прайса ----- */
  body.page-1c .price-group {
    margin-bottom: 6mm !important;
    page-break-inside: avoid;
  }
  body.page-1c .price-group-head,
  body.page-1c .section .price-group:nth-of-type(2) .price-group-head,
  body.page-1c .section .price-group:nth-of-type(3) .price-group-head,
  body.page-1c .section-alt .price-group:nth-of-type(1) .price-group-head,
  body.page-1c .section-alt .price-group:nth-of-type(2) .price-group-head {
    background: #f0ecdf !important;
    color: #000 !important;
    border-radius: 0 !important;
    border: 1px solid #c8c0a8 !important;
    padding: 3mm 5mm !important;
    overflow: visible !important;
  }
  body.page-1c .price-group-head::before { display: none !important; }
  body.page-1c .price-group-head h2, body.page-1c .price-group-head h3 {
    color: #000 !important;
    font-size: 12pt !important;
    font-weight: 700;
    padding: 0 !important;
  }
  body.page-1c .price-group-meta {
    color: #6b4310 !important;
    font-size: 8pt !important;
    font-weight: 600;
  }

  /* ----- Таблица прайса ----- */
  body.page-1c .price-table-v2 {
    background: #fff !important;
    border: 1px solid #c8c0a8 !important;
    border-top: none !important;
    border-radius: 0 !important;
    color: #000 !important;
  }
  body.page-1c .price-row-v2 {
    display: grid !important;
    grid-template-columns: 28mm 1fr 28mm !important;
    gap: 4mm !important;
    padding: 2mm 5mm !important;
    border-bottom: 1px solid #e5e0d4 !important;
    page-break-inside: avoid;
  }
  body.page-1c .price-row-v2.price-row-compact {
    grid-template-columns: 1fr 28mm !important;
  }
  body.page-1c .price-row-v2:hover { background: transparent !important; }
  body.page-1c .price-row-v2::before { display: none !important; }
  body.page-1c .price-name-v2 {
    color: #000 !important;
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 600;
    font-size: 9.5pt !important;
    line-height: 1.3;
  }
  body.page-1c .price-name-v2 small {
    color: #666 !important;
    font-size: 7.5pt !important;
    font-weight: 400;
    line-height: 1.3;
    display: block;
    margin-top: 1mm;
  }
  body.page-1c .price-amt-v2 {
    color: #000 !important;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 11pt !important;
    font-weight: 800;
    text-align: right;
  }
  body.page-1c .price-amt-v2 small {
    color: #666 !important;
    font-size: 7pt !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  body.page-1c .price-sku {
    background: #fff !important;
    border: 1px solid #999 !important;
    color: #d97a2c !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 7.5pt !important;
    font-weight: 700;
    padding: 1mm 2mm !important;
    border-radius: 1mm !important;
    display: inline-block;
    width: fit-content;
  }

  /* ----- Карточки аренды (Бизнес / PRO) ----- */
  body.page-1c .rent-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4mm !important;
    margin-top: 0 !important;
  }
  body.page-1c .rent-card,
  body.page-1c .rent-card-feat {
    background: #fff !important;
    border: 1px solid #c8c0a8 !important;
    color: #000 !important;
    padding: 4mm !important;
    page-break-inside: avoid;
    gap: 2mm !important;
  }
  body.page-1c .rent-card-feat {
    border: 2px solid #d97a2c !important;
  }
  body.page-1c .rent-card-feat::before { display: none !important; }
  body.page-1c .rent-tag {
    color: #000 !important;
    font-size: 10pt !important;
    font-weight: 800;
  }
  body.page-1c .rent-card-feat .rent-tag { color: #d97a2c !important; }
  body.page-1c .rent-price {
    color: #000 !important;
    font-size: 14pt !important;
    font-weight: 800;
  }
  body.page-1c .rent-card-feat .rent-price { color: #d97a2c !important; }
  body.page-1c .rent-price small {
    color: #666 !important;
    font-size: 8pt !important;
    font-weight: 600;
  }
  body.page-1c .rent-list { gap: 1.5mm !important; }
  body.page-1c .rent-list li {
    color: #000 !important;
    font-size: 8.5pt !important;
    padding-left: 4mm !important;
  }
  body.page-1c .rent-list li::before {
    border-color: #d97a2c !important;
  }

  /* ----- Подвал документа ----- */
  .print-doc-footer {
    display: flex !important;
    justify-content: space-between;
    border-top: 1px solid #999;
    padding-top: 3mm;
    margin-top: 6mm;
    font-size: 8pt;
    color: #555 !important;
    font-family: 'Inter Tight', Arial, sans-serif;
  }

  /* ----- Заголовки не отрываются от блоков ----- */
  h2, h3, h4 { page-break-after: avoid; }
  a { color: inherit !important; text-decoration: none !important; }

  /* ----- Принудительно убираем sticky/fixed ----- */
  .site-header.scrolled { box-shadow: none !important; }
}

/* =============================================================
   PAGE-MOBILE — выравниваем hero по верху
   (phones-stage сильно выше текстового блока, поэтому
   align-items: end из общего hero-grid тут ломает композицию)
   ============================================================= */
body.page-mobile .hero-grid { align-items: start; }
