/* Нано Софт — Корпоративный стиль Enterprise / Samsara Style */
:root {
  --page: #f8f9fa;
  --surface: #ffffff;
  --surface-alt: #f1f3f5;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #e5a93b;
  --accent-dark: #c98a24;
  --accent-light: #ffbc6c;
  --dark: #0d1117;
  --dark-surface: #161b22;
  --dark-border: #21262d;
  --white: #ffffff;
  --radius: 8px;
  --radius-large: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.6 "Onest", sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
svg { width: 20px; height: 20px; flex: none; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--dark); }

/* Шапка сайта */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(13, 17, 23, 0.06);
}
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-icon { width: 34px; height: 34px; display: grid; place-items: center; background: transparent; }
.brand-icon img { object-fit: contain; }
.brand-name { font: 800 18px/1 "Manrope", sans-serif; letter-spacing: .02em; white-space: nowrap; color: var(--dark); }
.brand-name span { color: var(--accent); }
.desktop-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.desktop-nav a, .header-contact { font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .2s var(--ease); }
.desktop-nav a:hover, .header-contact:hover, .site-footer a:hover { color: var(--accent-dark); }
.header-tg-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(229, 169, 59, 0.1);
  border: 1px solid rgba(229, 169, 59, 0.3);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  transition: all .2s var(--ease);
}
.header-tg-link:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.header-tg-link svg { width: 15px; height: 15px; }
.header-contact { display: inline-flex; font-size: 13px; font-weight: 700; color: var(--ink); margin-left: 6px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  transition: all .25s var(--ease);
}
.button:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 169, 59, 0.25);
}
.button-small { min-height: 40px; padding: 9px 18px; font-size: 13px; }
.mobile-menu { display: none; }

/* Первый экран Hero */
.hero { position: relative; isolation: isolate; min-height: 640px; background: var(--dark); color: var(--white); overflow: hidden; }
.hero-media, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.hero-shade { background: linear-gradient(90deg, rgba(13,17,23,.98) 0%, rgba(13,17,23,.88) 48%, rgba(13,17,23,.45) 100%); }
.server-fallback { display: none !important; }
.hero-inner { min-height: 640px; display: flex; flex-direction: column; justify-content: space-between; padding-top: 104px; padding-bottom: 32px; }
.hero-copy { max-width: 840px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-family: "Manrope", sans-serif; }
.eyebrow-light { color: var(--accent-light); }
.eyebrow-line { display: inline-block; width: 24px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; }
h1 { margin-bottom: 24px; font-size: clamp(42px, 5.2vw, 74px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; }
h1 em { color: var(--accent-light); font-style: normal; }
.hero-description { max-width: 600px; margin-bottom: 34px; color: #cbd5e1; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.button-bright { color: var(--dark); background: var(--accent-light); border-color: var(--accent-light); }
.button-bright:hover { background: var(--white); border-color: var(--white); color: var(--dark); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-dark); font-size: 14px; font-weight: 700; white-space: nowrap; transition: color .2s var(--ease); }
.text-link svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.text-link-light { color: #f1f5f9; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 16px 32px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 24px; color: #e2e8f0; font-size: 13px; font-weight: 600; }
.hero-proof span:not(:first-child)::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 32px; vertical-align: 2px; border-radius: 50%; background: var(--accent); }

/* Двойная бегущая строка */
.tech-marquee-section {
  position: relative;
  background: var(--dark);
  color: #e2e8f0;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 24px 0;
  overflow: hidden;
}
.tech-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 32px 32px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
}
.ticker-dual { display: flex; flex-direction: column; gap: 10px; }
.ticker { overflow: hidden; width: 100%; white-space: nowrap; }
.ticker-forward .ticker-track { display: flex; width: max-content; animation: ticker-left 44s linear infinite; }
.ticker-backward .ticker-track { display: flex; width: max-content; animation: ticker-right 44s linear infinite; }
.ticker-track span { flex: none; padding-right: 36px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.ticker-forward span { color: var(--accent-light); }
.ticker-backward span { color: #cbd5e1; }
@keyframes ticker-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes ticker-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* Общие стили секций */
.section { padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: end; padding-bottom: 44px; }
h2 { margin-bottom: 0; font-size: clamp(36px, 3.8vw, 54px); line-height: 1.14; letter-spacing: -.035em; font-weight: 800; color: var(--dark); }
.muted { color: var(--muted); }
.section-intro { max-width: 440px; margin-bottom: 4px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* 1. SAMSARA-STYLE SOLUTION TABS */
.solutions { background: var(--surface); }
.solution-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.solution-tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--muted);
  font: 700 14px "Manrope", sans-serif;
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.tab-btn:hover {
  color: var(--dark);
  background: rgba(229, 169, 59, 0.05);
}
.tab-btn.active {
  color: var(--dark);
  border-color: var(--line) var(--line) transparent var(--line);
  border-bottom: 2px solid var(--accent);
  background: var(--surface);
}

.tab-pane {
  display: none;
  animation: fadeIn .35s var(--ease);
}
.tab-pane.active {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: stretch;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-pane-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tab-pane-content h3 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.24;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  color: var(--dark);
}
.tab-pane-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.samsara-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.samsara-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}
.samsara-feature-list svg {
  color: var(--accent);
  margin-top: 3px;
  flex: none;
}

/* Правая визуальная карточка АРМ / ТСД (Connected Mockup) */
.tab-pane-visual {
  background: linear-gradient(145deg, #161b22 0%, #0d1117 100%);
  color: #fff;
  border-radius: var(--radius-large);
  padding: 32px;
  border: 1px solid rgba(229, 169, 59, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(13, 17, 23, 0.15);
  position: relative;
  overflow: hidden;
}
.tab-pane-visual::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11px "Manrope", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.visual-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.visual-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.visual-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 24px;
  line-height: 1.5;
}
.pipeline-diagram {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.pipeline-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .2s var(--ease);
}
.pipeline-node:hover {
  border-color: var(--accent);
}
.pipeline-node span:first-child { color: #f1f5f9; }
.pipeline-node span.node-tag {
  color: var(--accent-light);
  font-size: 11px;
  font-family: "Manrope", sans-serif;
  background: rgba(229, 169, 59, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

/* 3. CONNECTED OPERATIONS: Физический контур и шина данных */
.connected-section {
  position: relative;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(229, 169, 59, 0.16), transparent 75%),
              linear-gradient(180deg, #151921 0%, #1a202c 100%);
  color: #fff;
  padding: 108px 0;
  border-top: 1px solid #2a313d;
  border-bottom: 1px solid #2a313d;
  overflow: hidden;
}
.connected-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 28px 28px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  pointer-events: none;
}
.connected-section h2 { color: #ffffff; }
.connected-chain {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.chain-card {
  background: rgba(33, 38, 45, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #30363d;
  border-radius: var(--radius-large);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.chain-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 36px rgba(229, 169, 59, 0.12);
}
.chain-num {
  font: 800 12px "Manrope", sans-serif;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.chain-card h3 {
  font-size: 19px;
  margin: 0;
  color: #ffffff;
}
.chain-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.6;
}
.chain-arrow {
  color: var(--accent);
  display: grid;
  place-items: center;
}
.chain-arrow svg { width: 26px; height: 26px; }

/* 2. IMPACT CARDS (Сплит-карточки кейсов с метриками) */
.cases { background: var(--surface); }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.impact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  transition: all .25s var(--ease);
}
.impact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(13, 17, 23, 0.06);
}
.impact-badge-wrap {
  margin-bottom: 20px;
}
.impact-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(229, 169, 59, 0.12);
  color: var(--accent-dark);
  border: 1px solid rgba(229, 169, 59, 0.3);
  border-radius: var(--radius);
  font: 800 13px "Manrope", sans-serif;
  letter-spacing: -.01em;
}
.impact-card .client-name {
  font: 800 12px "Manrope", sans-serif;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.impact-card h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--dark);
}
.impact-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.impact-card .tags {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tags span {
  padding: 4px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

/* 4. INDUSTRY GRID (5 отраслевых карточек) */
.industries-section { background: var(--surface-alt); }
.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.industry-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .25s var(--ease);
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(13, 17, 23, 0.05);
}
.industry-num {
  font: 800 11px "Manrope", sans-serif;
  color: var(--accent-dark);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.industry-card h3 {
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: -.02em;
  color: var(--dark);
}
.industry-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.industry-card .tags { margin-top: auto; }

/* 5. TRUST BANNER & CLIENTS TICKER */
.clients-section { background: var(--page); padding-bottom: 90px; }
.trust-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: 28px 36px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(13, 17, 23, 0.02);
}
.trust-banner-text strong {
  display: block;
  font: 800 18px/1.3 "Manrope", sans-serif;
  color: var(--dark);
  margin-bottom: 4px;
}
.trust-banner-text p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.trust-banner-stat {
  display: flex;
  gap: 36px;
  flex: none;
}
.stat-pill { text-align: right; }
.stat-pill strong {
  display: block;
  font: 800 26px/1.1 "Manrope", sans-serif;
  color: var(--accent-dark);
}
.stat-pill span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.clients-ticker {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.clients-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: ticker-left 40s linear infinite;
}
.client-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  white-space: nowrap;
}
.client-badge {
  display: inline-block;
  padding: 3px 6px;
  background: var(--dark);
  color: #ffffff;
  border-radius: 4px;
  font: 800 10px "Manrope", sans-serif;
  letter-spacing: .06em;
}
.client-title {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--dark);
}

/* Этапы (Workflow) */
.workflow { background: var(--surface); }
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.workflow-card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.workflow-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.workflow-step {
  font: 800 24px/1 "Manrope", sans-serif;
  color: var(--accent);
  margin-bottom: 16px;
}
.workflow-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.workflow-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* Экспертиза */
.expertise { background: var(--surface-alt); }
.expertise-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; border-top: 1px solid var(--line); padding-top: 48px; }
.expertise-statement { display: flex; flex-direction: column; align-items: flex-start; }
.statement-mark { color: var(--accent); font: 800 clamp(100px, 13vw, 170px)/.9 "Manrope", sans-serif; letter-spacing: -.065em; }
.expertise-statement p { margin: 18px 0 34px; font: 700 21px/1.4 "Manrope", sans-serif; letter-spacing: -.02em; color: var(--dark); }
.checklist-wrap h3 { margin-bottom: 24px; font-size: 21px; letter-spacing: -.02em; }
.checklist { padding: 0; margin: 0; list-style: none; }
.checklist li { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); color: #475569; font-size: 15px; line-height: 1.6; }
.checklist li svg { margin-top: 3px; color: var(--accent); }
.checklist strong { color: var(--dark); }
.checklist-footnote { margin: 22px 0 0; color: #94a3b8; font-size: 12px; line-height: 1.6; }

/* Контакты */
.contact-section { background: var(--surface); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 80px; border-top: 1px solid var(--line); padding-top: 48px; }
.contact-form { min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label:not(.consent) { display: block; margin-bottom: 20px; color: var(--ink); font-size: 13px; font-weight: 700; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-alt); color: var(--ink); outline: none; font-size: 14px; font-weight: 400; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:not([type="checkbox"]):focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229,169,59,.16); background: #fff; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #94a3b8; }
.consent { display: flex; gap: 10px; align-items: flex-start; max-width: 580px; color: var(--muted); font-size: 12px; line-height: 1.5; cursor: pointer; }
.consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form-bottom { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.form-bottom p { max-width: 260px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.contact-aside { padding-top: 2px; }
.aside-label { margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-large { display: block; margin-bottom: 8px; font: 700 clamp(20px, 2.2vw, 24px)/1.3 "Manrope", sans-serif; letter-spacing: -.025em; }
.contact-email { display: inline-flex; gap: 6px; align-items: center; color: var(--accent-dark); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.contact-email svg { width: 15px; height: 15px; }
.contact-large:hover, .contact-email:hover { color: var(--accent); }
.aside-divider { height: 1px; margin: 34px 0; background: var(--line); }
.contact-aside address { color: #475569; font-size: 14px; font-style: normal; }
.aside-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 10px; }
.contact-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 9px 16px;
  background: #229ed9;
  border-radius: var(--radius);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.contact-tg-btn:hover { background: #1c88bb; transform: translateY(-2px); }
.contact-tg-btn svg { width: 16px; height: 16px; }

.form-status-msg { font-size: 13px; line-height: 1.4; margin: 0; min-height: 20px; }
.form-status-msg.success { color: #15803d; font-weight: 600; }
.form-status-msg.error { color: #b91c1c; font-weight: 600; }

/* Футер */
.site-footer { padding-top: 72px; background: var(--dark); color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 1.55fr .8fr .9fr .9fr; gap: 40px; padding-bottom: 72px; }
.footer-brand { margin-bottom: 20px; color: var(--white); }
.footer-grid p { max-width: 270px; margin: 0; color: #94a3b8; font-size: 13px; line-height: 1.7; }
.footer-grid h3 { margin: 4px 0 18px; color: var(--white); font: 700 13px "Manrope", sans-serif; }
.footer-grid a:not(.brand) { display: block; margin-bottom: 11px; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--dark-border); padding: 24px 0; color: #64748b; font-size: 12px; }

/* Reveal blocks */
.reveal-block { opacity: 1; transform: translateY(0); transition: opacity 2.2s cubic-bezier(.22, 1, .36, 1), transform 2.2s cubic-bezier(.22, 1, .36, 1); will-change: opacity, transform; }
body.js-enabled .reveal-block:not(.is-revealed) { opacity: 0; transform: translateY(32px); }
body.js-enabled .reveal-block.is-revealed { opacity: 1; transform: translateY(0); }

/* Адаптивность */
@media (max-width: 1200px) {
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .connected-chain { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 992px) {
  .container { width: min(100% - 48px, 1320px); }
  .tab-pane.active { grid-template-columns: 1fr; gap: 32px; }
  .impact-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .desktop-nav { gap: 16px; }
  .desktop-nav a { font-size: 12px; }
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-banner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
  .stat-pill { text-align: left; }
}
@media (max-width: 768px) {
  .container { width: min(100% - 32px, 1320px); }
  html { scroll-padding-top: 86px; }
  .header-inner { min-height: 68px; justify-content: space-between; }
  .desktop-nav, .header-contact, .header-tg-link { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { display: flex; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 17px; height: 1.5px; background: var(--ink); }
  .mobile-menu nav { position: absolute; right: 0; top: 48px; width: min(290px, calc(100vw - 32px)); padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface); box-shadow: 0 16px 32px rgba(13,17,23,.12); }
  .mobile-menu nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
  .mobile-menu nav a:last-child { border-bottom: 0; color: var(--accent-dark); }
  .section { padding: 76px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; padding-bottom: 32px; }
  .expertise-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
}


/* --- High-Tech Micro-Interactions (Linear / Vercel / Samsara Style) --- */

/* 1. Spotlight Hover (подсветка за курсором) */
.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    320px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(229, 169, 59, 0.45),
    transparent 80%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 2;
}
.spotlight-card:hover::before {
  opacity: 1;
}

/* 2. Живые импульсы по контурам интеграции (Circuit Data Pulse) */
.chain-arrow {
  position: relative;
}
.chain-arrow::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffbc6c;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffbc6c, 0 0 16px #e5a93b;
  animation: pulseMove 2.6s cubic-bezier(.4, 0, .2, 1) infinite;
  opacity: 0;
}
@keyframes pulseMove {
  0% { transform: translate(-14px, 0); opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translate(14px, 0); opacity: 0; }
}

/* 3. Живой терминальный лог событий (Live Terminal Feed) */
.live-log-container {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(229, 169, 59, 0.18);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #94a3b8;
}
.live-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-light);
}
.live-log-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  animation: logBlink 1.4s ease-in-out infinite;
}
@keyframes logBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.live-log-feed {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 44px;
}
.log-row {
  display: flex;
  gap: 8px;
  animation: logSlide .3s var(--ease);
}
.log-time { color: var(--muted); }
.log-tag { color: var(--accent-light); font-weight: 700; }
.log-msg { color: #e2e8f0; }

@keyframes logSlide {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 4. Счетчик чисел (Rollup counter glow) */
.stat-pill strong, .impact-badge {
  position: relative;
  transition: transform .2s var(--ease);
}

/* --- Сгруппированная компактная шапка с выпадающими меню (Dropdowns) --- */
.header-inner { min-height: 64px; }
.desktop-nav { gap: 18px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link, .nav-dropdown-toggle {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s var(--ease);
  cursor: pointer;
}
.nav-link:hover, .nav-dropdown-toggle:hover { color: var(--accent-dark); }
.nav-dropdown-toggle svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.nav-item:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: 0 16px 36px rgba(13, 17, 23, 0.1);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s var(--ease);
  z-index: 110;
}
.nav-item:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: background .15s var(--ease);
}
.dropdown-link:hover {
  background: var(--surface-alt);
}
.dropdown-link-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}
.dropdown-link-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

/* --- Секция статей и аналитики (Articles Section) --- */
.articles-section { background: var(--surface); }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: 28px 24px;
  transition: all .25s var(--ease);
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(13, 17, 23, 0.06);
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.article-tag {
  color: var(--accent-dark);
  background: rgba(229, 169, 59, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.article-card h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 12px;
  color: var(--dark);
}
.article-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.article-card .text-link {
  margin-top: auto;
}

/* --- Стили для страницы Серверов (Server Hosting Features) --- */
.server-tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.server-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: 32px 28px;
  transition: all .25s var(--ease);
  position: relative;
}
.server-card.popular {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(229, 169, 59, 0.12);
}
.server-popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: var(--dark);
  font: 800 11px/1 "Manrope", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
}
.server-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.server-card h3 { font-size: 22px; margin: 0 0 8px; }
.server-price {
  font: 800 28px/1 "Manrope", sans-serif;
  color: var(--dark);
  margin: 16px 0 20px;
}
.server-price span { font-size: 14px; font-weight: 600; color: var(--muted); }
.server-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}
.server-specs li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
}
.server-specs li span:last-child {
  font-weight: 700;
  color: var(--dark);
}

@media (max-width: 992px) {
  .article-grid { grid-template-columns: 1fr; }
  .server-tariff-grid { grid-template-columns: 1fr; }
}

/* --- SAMSARA-STYLE CLICK-TO-OPEN MEGA MENU & OVERLAY --- */
.mega-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.mega-menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.mega-dropdown-panel {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(13, 17, 23, 0.08);
  padding: 28px 0 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
  z-index: 95;
}
.mega-dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}
.mega-column-title {
  font: 800 11px/1 "Manrope", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.mega-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background .2s var(--ease);
}
.mega-item:hover {
  background: var(--surface-alt);
}
.mega-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(229, 169, 59, 0.12);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}
.mega-item-icon svg { width: 18px; height: 18px; }
.mega-item-text strong {
  display: block;
  font: 700 14px/1.3 "Manrope", sans-serif;
  color: var(--dark);
  margin-bottom: 3px;
}
.mega-item-text p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Правая карточка в мегаменю Samsara Promo */
.mega-featured-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-large);
  padding: 26px;
  border: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mega-featured-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(229, 169, 59, 0.18);
  color: var(--accent-light);
  border-radius: 4px;
  font: 800 10px "Manrope", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 14px;
}
.mega-featured-card h4 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #fff;
}
.mega-featured-card p {
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.nav-dropdown-toggle.is-active {
  color: var(--accent-dark);
}
.nav-dropdown-toggle.is-active svg {
  transform: rotate(180deg);
}

/* --- ИНТЕРАКТИВНЫЙ КАЛЬКУЛЯТОР-КВИЗ (Enterprise Calculator) --- */
.calculator-section {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.calc-wrapper {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: 40px;
  box-shadow: 0 16px 36px rgba(13, 17, 23, 0.04);
}
.calc-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.calc-step-group h4 {
  font: 700 15px "Manrope", sans-serif;
  color: var(--dark);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-step-group h4 span.step-circle {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(229, 169, 59, 0.15);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}
.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.calc-option {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.calc-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.calc-option:hover {
  border-color: var(--accent);
  background: var(--surface-alt);
}
.calc-option.selected {
  border-color: var(--accent);
  background: rgba(229, 169, 59, 0.08);
  box-shadow: 0 0 0 2px var(--accent);
}
.calc-option-title {
  font: 700 13px "Manrope", sans-serif;
  color: var(--dark);
  margin-bottom: 4px;
}
.calc-option-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

/* Правая сводная панель калькулятора */
.calc-summary-panel {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--dark-border);
}
.calc-summary-head {
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.calc-summary-head span {
  font: 800 11px "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-light);
}
.calc-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.calc-metric-row span:first-child {
  color: #94a3b8;
  font-size: 13px;
}
.calc-metric-row span.metric-val {
  font: 800 16px "Manrope", sans-serif;
  color: #fff;
}
.calc-metric-highlight {
  margin: 20px 0;
  padding: 18px;
  background: rgba(229, 169, 59, 0.1);
  border: 1px solid rgba(229, 169, 59, 0.25);
  border-radius: var(--radius);
  text-align: center;
}
.calc-metric-highlight .label {
  font-size: 11px;
  color: var(--accent-light);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .08em;
}
.calc-metric-highlight .val {
  font: 800 24px/1.2 "Manrope", sans-serif;
  color: #fff;
  margin-top: 4px;
}

/* --- РАЗДЕЛ ENTERPRISE FAQ (Аккордеон вопросов и ответов) --- */
.faq-section { background: var(--surface); }
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 980px;
  margin-inline: auto;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item:hover {
  border-color: var(--accent);
}
.faq-item.is-open {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(13, 17, 23, 0.04);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  background: transparent;
  border: none;
  font: 700 16px/1.4 "Manrope", sans-serif;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  gap: 16px;
}
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--dark);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--dark);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease), padding .35s var(--ease);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  padding: 0 24px;
}
.faq-item.is-open .faq-answer {
  padding-bottom: 22px;
}

@media (max-width: 992px) {
  .mega-grid { grid-template-columns: 1fr; }
  .calc-wrapper { grid-template-columns: 1fr; padding: 24px; }
  .calc-options-grid { grid-template-columns: 1fr; }
}


/* --- ENTERPRISE ENHANCEMENTS --- */

/* 1. Бегущая плашка поддерживаемых систем (Tech Stack Badge Bar) */
.stack-badge-bar {
  background: var(--dark);
  color: #fff;
  padding: 22px 0;
  border-bottom: 1px solid var(--dark-border);
}
.stack-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.stack-bar-label {
  font: 700 12px "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-light);
  white-space: nowrap;
}
.stack-badges-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.stack-pill-badge {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #e2e8f0;
  font: 600 12.5px "Manrope", sans-serif;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.stack-pill-badge:hover {
  background: rgba(229, 169, 59, 0.15);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* 2. Блок «Почему Нано Софт лучше франчайзи» */
.why-us-section { background: var(--surface-alt); }
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .25s var(--ease);
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(13, 17, 23, 0.06);
}
.why-card-num {
  font: 800 12px "Manrope", sans-serif;
  color: var(--accent-dark);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.why-card h3 {
  font-size: 20px;
  margin: 0;
  color: var(--dark);
  line-height: 1.3;
}
.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* 3. Карточки SLA, NDA и Fixed Price */
.sla-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.sla-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color .2s var(--ease);
}
.sla-card:hover {
  border-color: var(--accent);
}
.sla-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(229, 169, 59, 0.12);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  flex: none;
}
.sla-icon svg { width: 20px; height: 20px; }
.sla-text h4 {
  font: 700 15px "Manrope", sans-serif;
  margin: 0 0 6px;
  color: var(--dark);
}
.sla-text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* 4. Кнопка прикрепления файла / ТЗ в форму */
.file-upload-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: all .2s var(--ease);
  margin-bottom: 20px;
}
.file-upload-label:hover {
  border-color: var(--accent);
  background: rgba(229, 169, 59, 0.04);
}
.file-upload-label input[type="file"] {
  display: none;
}
.file-upload-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(229, 169, 59, 0.12);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  flex: none;
}
.file-upload-icon svg { width: 16px; height: 16px; }
.file-upload-text strong {
  display: block;
  font: 700 13px "Manrope", sans-serif;
  color: var(--dark);
}
.file-upload-text span {
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 992px) {
  .why-us-grid { grid-template-columns: 1fr; }
  .sla-grid { grid-template-columns: 1fr; }
  .stack-bar-inner { flex-direction: column; align-items: flex-start; }
}


/* --- AESTHETIC FLOATING MEGA-MENU (SAMSARA / STRIPE / LINEAR STYLE) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: 24px;
}

.nav-hub-btn, .nav-direct-link {
  font: 600 13.5px/1 "Manrope", sans-serif;
  color: #1e293b;
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.nav-hub-btn svg {
  width: 11px;
  height: 11px;
  color: var(--muted);
  transition: transform .25s var(--ease), color .2s var(--ease);
}
.nav-hub-btn:hover, .nav-direct-link:hover {
  color: var(--accent-dark);
  background: rgba(229, 169, 59, 0.08);
}
.nav-hub-btn.is-active {
  color: var(--accent-dark);
  background: rgba(229, 169, 59, 0.12);
}
.nav-hub-btn.is-active svg {
  transform: rotate(180deg);
  color: var(--accent-dark);
}

/* Компактная эстетичная парящая панель (Floating Glass Card) */
.mega-dropdown-panel {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: min(840px, calc(100vw - 40px));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 169, 59, 0.25);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(13, 17, 23, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.03);
  padding: 24px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s cubic-bezier(.16, 1, .3, 1), transform .45s cubic-bezier(.16, 1, .3, 1), visibility .45s;
  z-index: 105;
}
.mega-dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.floating-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}
.floating-menu-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: all .2s var(--ease);
  text-decoration: none;
}
.floating-menu-card:hover {
  background: var(--surface-alt);
  border-color: rgba(229, 169, 59, 0.2);
  transform: translateX(3px);
}
.floating-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(229, 169, 59, 0.12);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  flex: none;
}
.floating-card-icon svg { width: 18px; height: 18px; }
.floating-card-body strong {
  display: block;
  font: 700 13.5px/1.3 "Manrope", sans-serif;
  color: var(--dark);
}
.floating-card-body span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* Правый блок шапки (Telegram иконка + телефон + кнопка) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.header-icon-tg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(34, 158, 217, 0.1);
  color: #229ed9;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 158, 217, 0.25);
  transition: all .2s var(--ease);
}
.header-icon-tg:hover {
  background: #229ed9;
  color: #fff;
  transform: translateY(-2px);
}
.header-icon-tg svg { width: 17px; height: 17px; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .header-actions { display: none; }
  .mobile-menu { display: block; }
}

/* Hero: анимация появления */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-copy > * { animation: heroIn .9s cubic-bezier(.16, 1, .3, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-proof { animation: heroIn .9s .45s cubic-bezier(.16, 1, .3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-proof { animation: none; }
}


/* ===== Правки v8 ===== */
/* Теги: не накладываются, переносятся по строкам */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { display: inline-flex; align-items: center; white-space: nowrap; line-height: 1.3; padding: 5px 10px; }

/* Бегущая строка клиентов: чёрные логотипы */
.clients-ticker { padding: 28px 0; }
.clients-track { gap: 0; animation: ticker-left 45s linear infinite; }
.clients-set { display: flex; align-items: center; gap: 72px; padding-right: 72px; flex-shrink: 0; }
.clients-set img { width: auto; max-width: none; object-fit: contain; opacity: .85; transition: opacity .2s var(--ease); }
.clients-set img:hover { opacity: 1; }
.clients-ticker:hover .clients-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .clients-track { animation: none; } }

/* Блок 06: тёмная таймлайн-схема (также отделяет блок от соседних) */
.workflow { background: var(--dark); color: #fff; }
.workflow h2 { color: #fff; }
.workflow .muted { color: #8b98a9; }
.workflow .section-intro { color: #a3b0c2; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; position: relative; counter-reset: none; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--accent) 0%, rgba(255,255,255,.18) 100%); }
.timeline li { position: relative; padding-top: 40px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--dark); border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--dark); }
.timeline-step { display: block; margin-bottom: 12px; font: 800 44px/1 "Manrope", sans-serif; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.timeline h3 { margin-bottom: 10px; font-size: 18px; line-height: 1.3; color: #fff; }
.timeline p { margin: 0; color: #9fb0c3; font-size: 14px; line-height: 1.65; }
@media (max-width: 1024px) {
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(255,255,255,.18)); }
  .timeline li { padding: 0 0 36px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { left: -36px; top: 6px; }
}

/* Бегущая строка: 4 одинаковых набора, цикл -25% без разрыва */
.clients-track { animation-name: clients-loop; animation-duration: 60s; }
@keyframes clients-loop { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* Плашка со статистикой: цифры и подписи по одной сетке */
.trust-banner-stat { gap: 0; align-items: stretch; }
.stat-pill { text-align: left; padding: 0 36px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.stat-pill + .stat-pill { border-left: 1px solid var(--line); }
.stat-pill:last-child { padding-right: 8px; }
.stat-pill strong { font-size: 34px; line-height: 1; white-space: nowrap; letter-spacing: -.02em; }
.stat-pill strong span { font: inherit; color: inherit; text-transform: none; }
.stat-pill > span { font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
@media (max-width: 992px) {
  .trust-banner-stat { width: 100%; }
  .stat-pill { padding: 0 24px 0 0; margin-right: 24px; }
  .stat-pill:last-child { margin-right: 0; padding-right: 0; }
  .stat-pill + .stat-pill { padding-left: 24px; }
}

/* Бегущие строки компетенций: общий механизм (длина считается скриптом) */
.ticker-forward .ticker-track { animation: ticker-shift-left var(--ticker-time, 44s) linear infinite; }
.ticker-backward .ticker-track { animation: ticker-shift-right var(--ticker-time, 44s) linear infinite; }
@keyframes ticker-shift-left { from { transform: translateX(0); } to { transform: translateX(calc(var(--ticker-shift, 50%) * -1)); } }
@keyframes ticker-shift-right { from { transform: translateX(calc(var(--ticker-shift, 50%) * -1)); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none !important; } }

/* Блок 06: анимация таймлайна при появлении */
@keyframes tlLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tlLineV { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tlItem { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes tlDot { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes tlRing { 0% { box-shadow: 0 0 0 6px var(--dark), 0 0 0 6px rgba(229,169,59,.55); } 100% { box-shadow: 0 0 0 6px var(--dark), 0 0 0 20px rgba(229,169,59,0); } }
@keyframes tlFill { from { color: transparent; } to { color: rgba(229,169,59,.16); } }
.timeline::before { transform-origin: left center; }
body.js-enabled .workflow:not(.is-revealed) .timeline::before { transform: scaleX(0); }
body.js-enabled .workflow:not(.is-revealed) .timeline li { opacity: 0; }
body.js-enabled .workflow.is-revealed .timeline::before { animation: tlLine 1.8s .3s cubic-bezier(.65, 0, .35, 1) both; }
body.js-enabled .workflow.is-revealed .timeline li { animation: tlItem .8s cubic-bezier(.16, 1, .3, 1) both; }
body.js-enabled .workflow.is-revealed .timeline li::before { animation: tlDot .5s cubic-bezier(.34, 1.56, .64, 1) both, tlRing 2.6s ease-out infinite; }
body.js-enabled .workflow.is-revealed .timeline-step { animation: tlFill 1s ease both; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(1) { animation-delay: .3s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(2) { animation-delay: .7s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(3) { animation-delay: 1.1s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(4) { animation-delay: 1.5s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(5) { animation-delay: 1.9s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(1)::before { animation-delay: .3s, 1.2s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(2)::before { animation-delay: .7s, 1.6s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(3)::before { animation-delay: 1.1s, 2s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(4)::before { animation-delay: 1.5s, 2.4s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(5)::before { animation-delay: 1.9s, 2.8s; }
@media (max-width: 1024px) {
  .timeline::before { transform-origin: center top; }
  body.js-enabled .workflow:not(.is-revealed) .timeline::before { transform: scaleY(0); }
  body.js-enabled .workflow.is-revealed .timeline::before { animation-name: tlLineV; }
}
@media (prefers-reduced-motion: reduce) {
  body.js-enabled .workflow .timeline::before, body.js-enabled .workflow .timeline li, body.js-enabled .workflow .timeline li::before, body.js-enabled .workflow .timeline-step { animation: none !important; opacity: 1; transform: none; }
}
.ticker-track span { padding-right: 8px; }

/* ===== v13 ===== */
/* Бегущие строки: разделители с воздухом */
.ticker-track span { padding-right: 0; }
.tk-sep { display: inline-block; margin: 0 30px; font-weight: 400; font-size: 11px; vertical-align: 1px; color: var(--accent); }
.ticker-backward .tk-sep { color: #64748b; }

/* Блок 06: линия и шаги в 2 раза медленнее */
body.js-enabled .workflow.is-revealed .timeline::before { animation-duration: 3.6s; animation-delay: .6s; }
body.js-enabled .workflow.is-revealed .timeline li { animation-duration: 1.4s; }
body.js-enabled .workflow.is-revealed .timeline li::before { animation-duration: 1s, 3.4s; }
body.js-enabled .workflow.is-revealed .timeline-step { animation-duration: 2s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(1) { animation-delay: .6s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(2) { animation-delay: 1.5s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(3) { animation-delay: 2.4s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(4) { animation-delay: 3.3s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(5) { animation-delay: 4.2s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(1)::before { animation-delay: .6s, 1.8s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(2)::before { animation-delay: 1.5s, 2.7s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(3)::before { animation-delay: 2.4s, 3.6s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(4)::before { animation-delay: 3.3s, 4.5s; }
body.js-enabled .workflow.is-revealed .timeline li:nth-child(5)::before { animation-delay: 4.2s, 5.4s; }

/* Калькулятор: дополнительные опции и примечание */
.calc-hint { margin-left: 8px; font: 500 11px "Onest", sans-serif; font-style: normal; color: var(--muted); }
.calc-option-multi::after { content: ""; position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; border: 1.5px solid var(--line); border-radius: 4px; background: #fff; transition: all .2s var(--ease); }
.calc-option-multi.selected::after { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1117' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.calc-note { margin: 0 0 14px; font-size: 11px; line-height: 1.5; color: #8b98a9; }

/* Внутренние страницы: списки направлений */
.contact-heading { align-items: end; }
.solution-list { border-bottom: 1px solid var(--line); }
.solution-row { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) 56px; gap: 24px; align-items: start; padding: 40px 12px 40px 0; border-top: 1px solid var(--line); transition: padding .35s var(--ease), background .35s var(--ease); }
.solution-row::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--accent); transition: width .5s var(--ease); }
.solution-row:hover { padding-left: 20px; background: linear-gradient(90deg, rgba(229,169,59,.07), transparent 65%); }
.solution-row:hover::before { width: 120px; }
.row-number { font: 800 44px/1 "Manrope", sans-serif; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px var(--accent); transition: color .35s var(--ease); }
.solution-row:hover .row-number { color: rgba(229,169,59,.2); }
.solution-row h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }
.solution-row p { max-width: 780px; margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.solution-row .tags span { background: transparent; border-radius: 999px; padding: 5px 12px; }
.row-link { display: grid; place-items: center; width: 48px; height: 48px; margin-top: 4px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: all .3s var(--ease); }
.row-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.solution-row:hover .row-link, .row-link:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.solution-row:hover .row-link svg { transform: translate(2px, -2px); }
@media (max-width: 768px) {
  .solution-row { grid-template-columns: 1fr 48px; gap: 12px 16px; padding: 28px 0; }
  .solution-row:hover { padding-left: 0; }
  .row-number { grid-column: 1; font-size: 34px; }
  .solution-row > div { grid-column: 1 / -1; grid-row: 2; }
  .row-link { grid-column: 2; grid-row: 1; justify-self: end; }
}

/* Внутренние страницы: показатели */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.metric { padding: 36px 28px 8px; border-left: 1px solid var(--line); }
.metric:first-child { padding-left: 0; border-left: 0; }
.metric strong { display: block; margin-bottom: 12px; font: 800 clamp(34px, 3.6vw, 52px)/1 "Manrope", sans-serif; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.metric strong span { font: inherit; color: inherit; }
.metric-primary strong { color: var(--accent-dark); }
.metric p { margin: 0; max-width: 220px; color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 992px) { .metrics { grid-template-columns: repeat(2, 1fr); } .metric:nth-child(3) { padding-left: 0; border-left: 0; } .metric:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; } }
@media (max-width: 560px) { .metrics { grid-template-columns: 1fr; } .metric { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); } .metric:first-child { border-top: 0; } .metric:nth-child(n+3) { margin-top: 0; } }
.calc-metric-row { gap: 16px; }
.calc-metric-row > span:first-child { white-space: nowrap; }
.calc-metric-row .metric-val { text-align: right; }

/* ===== v14: кейсы и отрасли без одинаковых карточек ===== */
.case-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: stretch; }
.case-feature { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px; border-radius: 20px; color: #fff; background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(229,169,59,.22), transparent 70%), var(--dark); }
.case-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.case-stats strong { display: block; font: 800 clamp(48px, 5vw, 72px)/1 "Manrope", sans-serif; letter-spacing: -.04em; color: var(--accent-light); }
.case-stats span { display: block; margin-top: 10px; max-width: 150px; font-size: 13px; line-height: 1.4; color: #a3b0c2; }
.case-client { margin-bottom: 10px; font: 700 11px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-feature .case-client { color: var(--accent-light); }
.case-feature h3 { margin: 0 0 14px; font-size: 26px; line-height: 1.25; letter-spacing: -.02em; color: #fff; }
.case-feature p { margin: 0 0 22px; color: #b6c2d1; font-size: 15px; line-height: 1.7; }
.case-feature .tags span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #dbe4ee; }
.case-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.case-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease), background .3s var(--ease); }
.case-row::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--accent); transition: width .45s var(--ease); }
.case-row:hover { padding-left: 16px; background: linear-gradient(90deg, rgba(229,169,59,.07), transparent 70%); }
.case-row:hover::before { width: 100%; }
.case-row h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.case-row p { margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.6; }
.case-row .tags { gap: 4px 14px; }
.case-row .tags span { padding: 0; background: none; border: 0; border-radius: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.case-row .tags span + span::before { content: "·"; margin-right: 14px; color: var(--accent); }
.case-badge { margin-top: 2px; font: 700 12px "Manrope", sans-serif; color: var(--accent-dark); text-align: right; max-width: 170px; }
@media (max-width: 1100px) { .case-layout { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) { .case-feature { padding: 28px 24px; } .case-row { grid-template-columns: 1fr; gap: 10px; } .case-badge { order: -1; text-align: left; max-width: none; } }

.ind-accordion { border-top: 1px solid var(--line); }
.ind-item { border-bottom: 1px solid var(--line); }
.ind-item summary { list-style: none; display: grid; grid-template-columns: 64px 1fr 32px; align-items: center; gap: 16px; padding: 26px 0; cursor: pointer; transition: color .2s var(--ease), padding .3s var(--ease); }
.ind-item summary::-webkit-details-marker { display: none; }
.ind-num { font: 700 13px "Manrope", sans-serif; letter-spacing: .08em; color: var(--accent-dark); }
.ind-title { font: 700 clamp(20px, 2.2vw, 28px)/1.25 "Manrope", sans-serif; letter-spacing: -.02em; color: var(--muted); transition: color .2s var(--ease); }
.ind-item:hover .ind-title, .ind-item[open] .ind-title { color: var(--ink); }
.ind-plus { position: relative; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; transition: all .3s var(--ease); }
.ind-plus::before, .ind-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.ind-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.ind-item[open] .ind-plus { background: var(--accent); border-color: var(--accent); }
.ind-item[open] .ind-plus::after { transform: translate(-50%, -50%) rotate(0); }
.ind-body { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; padding: 0 48px 30px 0; animation: indOpen .45s var(--ease); }
.ind-body p { grid-column: 2; max-width: 720px; margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.ind-body .tags { grid-column: 2; }
@keyframes indOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .ind-item summary { grid-template-columns: 40px 1fr 28px; } .ind-body { grid-template-columns: 40px minmax(0, 1fr); padding-right: 0; } }

/* Главный кейс: компактная карточка с ровными отступами */
.case-layout { align-items: start; }
.case-feature { position: sticky; top: 96px; justify-content: flex-start; gap: 0; padding: 36px; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.case-stats > div { padding-right: 24px; }
.case-stats > div + div { padding: 0 0 0 28px; border-left: 1px solid rgba(255,255,255,.12); }
.case-stats strong { font-size: clamp(44px, 4.4vw, 64px); }
.case-stats span { max-width: 170px; }
.case-feature-body { display: flex; flex-direction: column; }
@media (max-width: 1100px) { .case-feature { position: static; } }
@media (max-width: 480px) { .case-feature { padding: 28px 22px; } .case-stats { padding-bottom: 24px; margin-bottom: 24px; } .case-stats > div + div { padding-left: 20px; } .case-stats > div { padding-right: 12px; } }

/* Без сдвига текста при наведении */
.case-row:hover, .solution-row:hover { padding-left: 0; }
.case-row, .solution-row { transition: background .35s var(--ease); }


/* ==========================================================================
   НОВЫЙ БЕНТО-ГРИД И ИНТЕРАКТИВНЫЙ БЛОК КЕЙСОВ (ВСЕ БЛОКИ ЗАДЕЙСТВОВАНЫ)
   ========================================================================== */
.cases-showcase-wrapper {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Фильтры категорий */
.cases-filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.case-filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg, #161c24);
  color: #94a3b8;
  font: 600 13px/1 "Manrope", sans-serif;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-filter-btn:hover {
  color: #fff;
  border-color: rgba(229, 169, 59, 0.4);
  background: rgba(229, 169, 59, 0.08);
}

.case-filter-btn.active {
  background: var(--accent, #e5a93b);
  color: #0b0f15;
  border-color: var(--accent, #e5a93b);
  box-shadow: 0 4px 14px rgba(229, 169, 59, 0.35);
}

/* Бенто-сетка кейсов */
.cases-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .cases-bento-grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 30px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 28, 36, 0.95), rgba(15, 20, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 169, 59, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(229, 169, 59, 0.12);
}

.case-card-featured {
  grid-column: 1 / -1;
  background: radial-gradient(ellipse 70% 60% at 90% 10%, rgba(229, 169, 59, 0.18), transparent 70%), linear-gradient(180deg, #1b232e, #111720);
  border-color: rgba(229, 169, 59, 0.3);
}

.case-card-featured:hover {
  border-color: rgba(229, 169, 59, 0.6);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(229, 169, 59, 0.18);
}

.case-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.case-client-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-client-badge .client-name {
  font: 800 12px/1.2 "Manrope", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #e5a93b);
}

.case-client-badge .industry-tag {
  font-size: 13px;
  color: #8fa0b5;
}

.case-card .case-badge {
  font: 700 11px/1 "Manrope", sans-serif;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(229, 169, 59, 0.12);
  color: var(--accent-light, #f5c46b);
  border: 1px solid rgba(229, 169, 59, 0.25);
  white-space: nowrap;
}

/* Статистика внутри карточки */
.case-card-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.c-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-stat-num {
  font: 800 clamp(32px, 3.5vw, 44px)/1 "Manrope", sans-serif;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(135deg, #fff 40%, var(--accent-light, #f5c46b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-card-featured .c-stat-num {
  font-size: clamp(38px, 4.5vw, 56px);
}

.c-stat-lbl {
  font-size: 12px;
  line-height: 1.4;
  color: #94a3b8;
  max-width: 170px;
}

/* Текстовая часть карточки */
.case-card-content h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.case-card-featured .case-card-content h3 {
  font-size: 24px;
}

.case-card-content p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
}

.case-card-content .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.case-card-content .tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Логотипы в бегущей строке: адаптивность и яркость */
.clients-ticker {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: ticker-slide 45s linear infinite;
}

.clients-ticker:hover .clients-track {
  animation-play-state: paused;
}

.clients-set {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.clients-set img {
  opacity: 0.82;
  transition: opacity 0.25s ease, transform 0.25s ease;
  object-fit: contain;
  filter: none;
}

.clients-set img:hover {
  opacity: 1;
  transform: scale(1.06);
}

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

/* Разгрузка подшапочной зоны */
.tech-marquee-section {
  position: relative;
  background: var(--dark);
  color: #e2e8f0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  overflow: hidden;
}

.tech-marquee-section .tk-sep {
  display: inline-block;
  margin: 0 40px;
  font-weight: 400;
  font-size: 11px;
  vertical-align: 1px;
  color: var(--accent);
}

.stack-badge-bar {
  background: #0d1117;
  color: #fff;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--dark-border);
}

.stack-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.stack-bar-label {
  font: 700 12px "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-light);
  white-space: nowrap;
}

.stack-badges-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.stack-pill-badge {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: #cbd5e1;
  font: 600 13px "Manrope", sans-serif;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: all .25s var(--ease);
}

.stack-pill-badge:hover {
  background: rgba(229, 169, 59, 0.14);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 169, 59, 0.15);
}

/* Fix NANO SOFT brand visibility in dark footer */
.footer-brand .brand-name,
.site-footer .brand-name {
  color: var(--white) !important;
}

/* --- SCROLL PROGRESS BAR IN HEADER --- */
.scroll-progress-bar {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 120;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(229, 169, 59, 0.5);
}

/* --- CASE FILTER ANIMATION & INTERACTIVE DRAWER MODAL --- */
.case-card {
  cursor: pointer;
}
.case-card.is-hidden {
  display: none !important;
}
.case-card.is-filtering {
  animation: caseFadeIn 0.35s var(--ease) both;
}
@keyframes caseFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.case-card-footer-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font: 700 12px "Manrope", sans-serif;
  color: var(--accent-light);
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.case-card:hover .case-card-footer-hint {
  opacity: 1;
  transform: translateX(4px);
}

/* Case Drawer Modal */
.case-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.case-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.case-modal-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(620px, 100vw);
  background: var(--dark);
  color: #fff;
  border-left: 1px solid rgba(229, 169, 59, 0.3);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  z-index: 210;
  padding: 40px 36px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.case-modal-backdrop.is-open .case-modal-drawer {
  transform: translateX(0);
}
.case-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.case-modal-close:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.case-modal-section {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-top: 16px;
}
.case-modal-section h4 {
  margin: 0 0 8px;
  font: 700 12px "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}
.case-modal-section p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
}

/* --- QUICK CONTACT CHANNEL PILLS IN FORM --- */
.contact-channel-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.channel-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--muted);
  font: 600 12px "Manrope", sans-serif;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.channel-pill:hover {
  border-color: var(--accent);
  color: var(--dark);
}
.channel-pill.active {
  background: rgba(229, 169, 59, 0.15);
  border-color: var(--accent);
  color: var(--dark);
}

/* --- INTERACTIVE AI RAG CHAT SIMULATOR (ai.html) --- */
.ai-demo-box {
  margin-top: 40px;
  background: var(--dark);
  color: #fff;
  border: 1px solid rgba(229, 169, 59, 0.3);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(13, 17, 23, 0.12);
}
.ai-demo-prompts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.ai-prompt-btn {
  padding: 9px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font: 600 13px "Onest", sans-serif;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
}
.ai-prompt-btn:hover, .ai-prompt-btn.active {
  border-color: var(--accent);
  background: rgba(229, 169, 59, 0.16);
  color: #fff;
}
.ai-chat-window {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.65;
  color: #cbd5e1;
  min-height: 110px;
}
.ai-chat-window strong {
  color: var(--accent-light);
}

/* --- COMPACT 10-CASE BENTO GRID (3 COLUMNS, LOW VERTICAL FOOTPRINT) --- */
.cases-bento-grid.cases-bento-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cases-bento-compact .case-card {
  padding: 20px 22px;
  gap: 14px;
  border-radius: 14px;
}
.cases-bento-compact .case-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 16px 28px;
  padding: 22px 26px;
}
.cases-bento-compact .case-card-featured .case-card-header {
  grid-column: 1 / -1;
  padding-bottom: 4px;
}
.cases-bento-compact .case-card-featured .case-card-stats {
  border-bottom: none;
  padding: 12px 0 0;
}
.cases-bento-compact .case-card-featured .case-card-content {
  padding-top: 8px;
}
.cases-bento-compact .case-card-stats {
  gap: 20px;
  padding: 10px 0;
}
.cases-bento-compact .c-stat-num {
  font-size: clamp(22px, 2.2vw, 28px);
}
.cases-bento-compact .case-card-featured .c-stat-num {
  font-size: clamp(28px, 3vw, 38px);
}
.cases-bento-compact .c-stat-lbl {
  font-size: 11px;
  max-width: 145px;
}
.cases-bento-compact .case-card-content h3 {
  font-size: 16.5px;
  margin: 0 0 6px;
  line-height: 1.3;
}
.cases-bento-compact .case-card-featured .case-card-content h3 {
  font-size: 19px;
}
.cases-bento-compact .case-card-content p {
  font-size: 12.8px;
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cases-bento-compact .case-card-content .tags {
  gap: 5px;
}
.cases-bento-compact .case-card-content .tags span {
  font-size: 10.5px;
  padding: 3px 8px;
}
.cases-bento-compact .case-card-footer-hint {
  margin-top: 8px;
  font-size: 11.5px;
}
@media (max-width: 1080px) {
  .cases-bento-grid.cases-bento-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cases-bento-compact .case-card-featured {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .cases-bento-grid.cases-bento-compact {
    grid-template-columns: 1fr;
  }
}


/* v26: compact impact metrics and company page */
.impact-ribbon{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:4px 0 28px;border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden}
.impact-ribbon>div{padding:20px 22px;display:flex;flex-direction:column;gap:5px;min-height:112px}
.impact-ribbon>div+div{border-left:1px solid var(--line)}
.impact-ribbon strong{font:800 clamp(25px,3vw,36px)/1 Manrope,sans-serif;letter-spacing:-.05em;color:var(--dark)}
.impact-ribbon span{font-size:12px;line-height:1.45;color:var(--muted);max-width:190px}
.about-page{padding-top:82px}
.about-hero{padding:68px 0 74px;background:linear-gradient(135deg,#f7f8fa 0%,#fff 62%,#fff8eb 100%);border-bottom:1px solid var(--line)}
.about-hero h1{font:800 clamp(40px,6vw,72px)/1.06 Manrope,sans-serif;letter-spacing:-.055em;color:var(--dark);margin:24px 0}
.about-hero .about-lead{font-size:18px;line-height:1.7;color:var(--muted);max-width:760px}
.about-tags{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}.about-tags span{border:1px solid var(--line);border-radius:999px;padding:9px 14px;font-size:12px;font-weight:700;background:#fff;color:var(--ink)}
.about-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.about-services article{padding:26px;border:1px solid var(--line);border-radius:18px;background:#fff;min-height:190px}
.about-services article>b{color:var(--accent);font-size:12px;letter-spacing:.12em}.about-services h3{font-size:19px;margin:20px 0 10px;color:var(--dark)}.about-services p,.proof-grid p{font-size:14px;line-height:1.65;color:var(--muted);margin:0}
.about-proof{background:#10151d;color:#fff;padding:76px 0}.about-proof h2{font:800 clamp(32px,4vw,52px)/1.1 Manrope,sans-serif;letter-spacing:-.04em;margin:20px 0 34px}.about-proof h2 .muted{color:#9ba8bb}
.proof-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.proof-grid>div{padding-top:18px;border-top:1px solid rgba(255,255,255,.2)}.proof-grid strong{display:block;margin-bottom:9px;font-size:17px}.proof-grid p{color:#b7c0ce}
.certificates-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.certificate-card{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);text-decoration:none;transition:transform .2s,border-color .2s}
.certificate-card:hover{transform:translateY(-3px);border-color:var(--accent)}.certificate-card img{width:100%;aspect-ratio: .72;object-fit:cover;object-position:top;border-radius:8px;background:#f4f4f4}.certificate-card strong{display:block;font-size:13px}.certificate-card small{display:block;color:var(--muted);font-size:11px;line-height:1.45;margin-top:5px}.certificate-source-note{font-size:12px;color:var(--muted);margin-top:18px}.certificate-source-note a{color:var(--ink);text-decoration:underline}
.about-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:12px 0 30px}.about-numbers>div{padding:22px;border:1px solid var(--line);border-radius:16px}.about-numbers strong{display:block;font:800 32px/1 Manrope,sans-serif;color:var(--dark);margin-bottom:8px}.about-numbers span{font-size:12px;color:var(--muted)}
.about-cta{background:#111720;color:#fff;padding:54px 0}.about-cta .container{display:flex;align-items:center;justify-content:space-between;gap:24px}.about-cta h2{font:800 clamp(30px,4vw,48px)/1.1 Manrope,sans-serif;margin:14px 0 0;letter-spacing:-.04em}
@media(max-width:900px){.certificates-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.proof-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.about-services{grid-template-columns:repeat(2,minmax(0,1fr))}.impact-ribbon{grid-template-columns:repeat(2,minmax(0,1fr))}.impact-ribbon>div:nth-child(3){border-left:0;border-top:1px solid var(--line)}.impact-ribbon>div:nth-child(4){border-top:1px solid var(--line)}}
@media(max-width:600px){.about-page{padding-top:70px}.about-hero{padding:44px 0}.about-hero .about-lead{font-size:15px}.about-services,.certificates-grid,.about-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}.proof-grid{grid-template-columns:1fr}.impact-ribbon>div{padding:16px}.impact-ribbon span{font-size:11px}.about-cta .container{align-items:flex-start;flex-direction:column}}

.cases-details{margin-top:8px}.cases-details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-weight:800;color:var(--dark)}.cases-details>summary::-webkit-details-marker{display:none}.cases-details>summary:after{content:"+";font-size:24px;color:var(--accent);font-weight:500}.cases-details[open]>summary:after{content:"−"}.cases-details>summary small{font-size:12px;font-weight:500;color:var(--muted);margin-left:auto}.cases-details[open] .cases-showcase-wrapper{margin-top:22px}
@media(max-width:600px){.cases-details>summary{align-items:flex-start;flex-direction:column}.cases-details>summary small{margin-left:0}}


/* v27: компактный блок принципов работы */
#guarantees {
  padding-top: 64px;
  padding-bottom: 64px;
}
#guarantees .section-heading {
  padding-bottom: 24px;
  gap: 36px;
}
#guarantees .section-heading h2 {
  font-size: clamp(32px, 3.1vw, 44px);
}
#guarantees .section-intro {
  font-size: 14px;
  line-height: 1.55;
}
#guarantees .sla-grid {
  gap: 14px;
  margin-top: 0;
}
#guarantees .sla-card {
  padding: 17px 18px;
  gap: 12px;
  border-radius: 10px;
}
#guarantees .sla-icon {
  width: 32px;
  height: 32px;
}
#guarantees .sla-icon svg {
  width: 16px;
  height: 16px;
}
#guarantees .sla-text h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
#guarantees .sla-text p {
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 900px) {
  #guarantees { padding-top: 48px; padding-bottom: 48px; }
  #guarantees .sla-grid { grid-template-columns: 1fr; }
}


/* v28 — страница «О компании» в единой системе макетов сайта */
.about-page { padding-top: 0; }
.about-hero-standard { min-height: 600px; }
.about-hero-standard .hero-inner { min-height: 600px; }
.about-hero-standard .hero-copy { max-width: 900px; }
.about-hero-standard .hero-copy h1 em { color: var(--accent-light); font-style: normal; }
.about-page .section { padding-top: 88px; padding-bottom: 88px; }
.about-page .section-heading { margin-bottom: 38px; }
.about-page .about-services article { border-radius: var(--radius-large); box-shadow: 0 8px 28px rgba(13,17,23,.025); }
.about-page .about-proof { padding: 76px 0; }
.about-page .certificate-card { border-radius: var(--radius); }
.about-page .about-clients { background: var(--surface-alt); }
.about-page .about-cta { background: var(--dark); }
@media (max-width: 768px) {
  .about-hero-standard, .about-hero-standard .hero-inner { min-height: 620px; }
  .about-page .section { padding-top: 56px; padding-bottom: 56px; }
  .about-page .about-services { grid-template-columns: 1fr; }
  .about-page .proof-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-page .certificates-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-page .about-numbers { grid-template-columns: repeat(2,minmax(0,1fr)); }
}


/* v29 — более компактный калькулятор и заметная навигация по кейсам */
.calculator-section { padding-top: 58px; padding-bottom: 58px; }
.calculator-section .section-heading { margin-bottom: 24px; }
.calculator-section .section-heading h2 { font-size: clamp(30px, 3vw, 42px); }
.calculator-section .section-intro { font-size: 13px; line-height: 1.55; }
.calc-wrapper {
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr);
  gap: 22px;
  padding: 24px;
  border-radius: 16px;
}
.calc-steps { gap: 19px; }
.calc-step-group h4 { font-size: 13px; margin-bottom: 10px; }
.calc-step-group h4 span.step-circle { width: 20px; height: 20px; font-size: 10px; }
.calc-options-grid { gap: 8px; }
.calc-option { padding: 10px 12px; border-radius: 10px; }
.calc-option-title { font-size: 12px; }
.calc-option-sub { font-size: 10px; line-height: 1.35; }
.calc-summary-panel { padding: 20px; border-radius: 14px; }
.calc-summary-head { font-size: 13px; margin-bottom: 12px; }
.calc-metric-row { padding: 9px 0; font-size: 11px; gap: 10px; }
.calc-metric-row .metric-val { font-size: 12px; }
.calc-metric-highlight { padding: 12px; margin-top: 12px; border-radius: 10px; }
.calc-metric-highlight .label { font-size: 10px; }
.calc-metric-highlight .val { font-size: 14px; }
.calc-note { font-size: 10px; line-height: 1.45; margin: 12px 0; }
.calc-summary-panel .button { min-height: 42px; padding: 11px 14px; font-size: 12px; }
.cases-details { margin-top: 20px; }
.cases-details>summary {
  position: relative;
  min-height: 76px;
  padding: 15px 18px;
  border: 1px solid rgba(226,164,53,.45);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13,17,23,.045);
}
.cases-details>summary:after { content: none; }
.cases-summary-title { display:flex; flex-direction:column; gap:4px; font-size:16px; }
.cases-summary-title b {
  width:fit-content; padding:3px 8px; border-radius:20px;
  background:rgba(229,169,59,.14); color:var(--accent-dark);
  font-size:10px; letter-spacing:.02em;
}
.cases-details>summary small { margin-left:0; }
.cases-summary-action {
  display:inline-flex; align-items:center; gap:8px; margin-left:auto;
  padding:10px 13px; border-radius:8px; background:var(--dark);
  color:#fff; font-size:11px; font-weight:800; white-space:nowrap;
}
.cases-summary-action svg { width:14px; height:14px; fill:none; stroke:currentColor; }
.cases-details[open]>summary .cases-summary-action { background:var(--accent); color:var(--dark); }
@media(max-width: 900px) {
  .calc-wrapper { grid-template-columns:1fr; padding:18px; gap:18px; }
  .calc-options-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width: 600px) {
  .calculator-section { padding-top:44px; padding-bottom:44px; }
  .calc-wrapper { padding:14px; }
  .calc-options-grid { grid-template-columns:1fr; }
  .cases-details>summary { align-items:flex-start; flex-wrap:wrap; }
  .cases-details>summary small { width:100%; order:3; }
  .cases-summary-action { margin-left:0; }
}


/* v30 — конверсионная полировка: ясный оффер, кейсы и компактные действия */
.hero-copy { max-width: 860px; }
.hero-description { max-width: 720px; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.65; }
.hero-capabilities {
  display:flex; flex-wrap:wrap; gap:8px; margin:20px 0 4px;
}
.hero-capabilities span {
  display:inline-flex; align-items:center; padding:7px 11px;
  border:1px solid rgba(255,255,255,.22); border-radius:999px;
  background:rgba(255,255,255,.07); color:rgba(255,255,255,.92);
  font-size:11px; font-weight:700; letter-spacing:.01em;
}
.hero-proof { margin-top:30px; gap:10px 22px; }
.hero-proof span { font-size:12px; }
.impact-ribbon { margin-bottom:22px; }
.cases-details>summary {
  min-height:82px; display:grid;
  grid-template-columns:minmax(150px,.65fr) minmax(220px,1.4fr) auto;
  align-items:center; gap:18px;
}
.cases-summary-title { font-size:18px; font-weight:800; }
.cases-summary-title b { font-size:10px; }
.cases-details>summary small { margin:0; }
.cases-summary-action { justify-self:end; }
.cases-details[open] .cases-showcase-wrapper { margin-top:18px; }
.cases-bento-grid { scroll-margin-top:100px; }
.contact-section .section-intro { max-width:420px; }
.about-page .certificates-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.about-page .certificate-card {
  padding:10px; gap:9px; border-radius:12px;
  box-shadow:0 5px 18px rgba(13,17,23,.035);
}
.about-page .certificate-card img {
  aspect-ratio: .76; object-fit:contain; padding:5px;
  background:linear-gradient(180deg,#f7f8fa,#eef1f5);
}
.about-page .certificate-card strong { font-size:12px; }
.about-page .certificate-card small { font-size:10px; }
.about-page .about-numbers { gap:14px; }
.about-page .about-numbers>div {
  padding:18px; border:1px solid var(--line); border-radius:12px; background:#fff;
}
@media(max-width:900px) {
  .cases-details>summary { grid-template-columns:1fr auto; }
  .cases-details>summary small { grid-column:1 / -1; grid-row:2; }
  .cases-summary-action { grid-column:2; grid-row:1; }
  .about-page .certificates-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .hero-capabilities { gap:6px; }
  .hero-capabilities span { font-size:10px; padding:6px 9px; }
  .cases-details>summary { display:flex; flex-wrap:wrap; align-items:flex-start; }
  .cases-details>summary small { width:100%; order:3; }
  .cases-summary-action { margin-left:0; }
  .about-page .certificates-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* v32 — новая подача сертификатов: компактная галерея документов */
.about-page .certificates-section {
  position: relative;
  overflow: hidden;
  background: #f4f6f8;
}
.about-page .certificates-section .section-heading {
  align-items: end;
  margin-bottom: 34px;
}
.about-page .certificates-section .section-heading h2 {
  letter-spacing: -.045em;
}
.about-page .certificates-section .section-intro {
  max-width: 440px;
}
.about-page .certificates-section .certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.about-page .certificates-section .certificate-card {
  min-width: 0;
  min-height: 128px;
  display: grid;
  grid-template-columns: 86px minmax(0,1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 14px;
  border: 1px solid #e4e8ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(20,32,48,.035);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.about-page .certificates-section .certificate-card:hover {
  transform: translateY(-2px);
  border-color: #b9c5d2;
  box-shadow: 0 10px 26px rgba(20,32,48,.08);
}
.about-page .certificates-section .certificate-card img {
  width: 86px;
  height: 100px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  padding: 5px;
  border: 1px solid #e9edf1;
  border-radius: 7px;
  background: linear-gradient(145deg,#f8fafc,#edf1f5);
}
.about-page .certificates-section .certificate-card span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}
.about-page .certificates-section .certificate-card strong {
  margin-bottom: 7px;
  color: #182230;
  font-size: 14px;
  line-height: 1.3;
}
.about-page .certificates-section .certificate-card small {
  margin: 0;
  color: #687587;
  font-size: 12px;
  line-height: 1.5;
}
.about-page .certificates-section .certificate-card span:after {
  content: "СЕРТИФИКАТ 1С  ↗";
  display: inline-block;
  margin-top: 10px;
  color: #8a96a5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
}
@media(max-width:760px) {
  .about-page .certificates-section .certificates-grid { grid-template-columns: 1fr; }
  .about-page .certificates-section .section-heading { align-items: start; }
}
@media(max-width:480px) {
  .about-page .certificates-section .certificate-card {
    grid-template-columns: 72px minmax(0,1fr);
    min-height: 112px;
    gap: 13px;
    padding: 11px;
  }
  .about-page .certificates-section .certificate-card img {
    width: 72px;
    height: 88px;
  }
  .about-page .certificates-section .certificate-card strong { font-size: 13px; }
  .about-page .certificates-section .certificate-card small { font-size: 11px; }
}


/* v34 — более ясная навигация по направлениям */
.mega-dropdown-panel .floating-menu-grid {
  gap: 8px 22px;
}
.mega-dropdown-panel .floating-menu-card {
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  background: #fff;
}
.mega-dropdown-panel .floating-menu-card:hover {
  background: #fffaf1;
  border-color: rgba(218, 151, 35, .35);
  box-shadow: 0 6px 18px rgba(26, 36, 49, .055);
  transform: translateY(-1px);
}
.mega-dropdown-panel .floating-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.mega-dropdown-panel .floating-card-body strong {
  font-size: 13px;
  line-height: 1.35;
}
.mega-dropdown-panel .floating-card-body span {
  font-size: 11px;
  line-height: 1.45;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .mega-dropdown-panel .floating-menu-grid { grid-template-columns: 1fr; }
}


/* v35 — меню «Решения» строится вокруг задач клиента, а не каталога продуктов */
.solutions-menu-intro {
  padding: 5px 2px 17px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e9edf1;
}
.solutions-menu-intro > span {
  color: #b87912;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.solutions-menu-intro p {
  margin: 6px 0 0;
  color: #667386;
  font-size: 12px;
  line-height: 1.5;
}
.mega-dropdown-panel .solutions-menu-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
}
.mega-dropdown-panel .solutions-menu-grid .floating-menu-card {
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  background: #fff;
}
.mega-dropdown-panel .solutions-menu-grid .floating-menu-card:hover {
  background: #fffaf1;
  border-color: rgba(218,151,35,.35);
  box-shadow: 0 6px 18px rgba(26,36,49,.055);
  transform: translateY(-1px);
}
@media(max-width:760px) {
  .mega-dropdown-panel .solutions-menu-grid { grid-template-columns: 1fr; }
}


/* v36 — чистая композиция первого экрана: без повторяющихся полос технологий */
.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-capabilities span {
  white-space: nowrap;
}


/* v37 — увеличены интервалы между тегами направлений и CTA */
.hero-capabilities {
  row-gap: 10px;
  column-gap: 10px;
  margin: 22px 0 18px;
}
.hero-actions {
  gap: 24px;
  margin-top: 0;
}
@media (max-width: 600px) {
  .hero-capabilities { margin: 20px 0 20px; }
  .hero-actions { row-gap: 16px; }
}


/* v38 — единая система спокойных микроанимаций */
:root {
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}
html { scroll-behavior: smooth; }
.reveal-block {
  transition:
    opacity .7s var(--motion-ease),
    transform .7s var(--motion-ease);
  will-change: opacity, transform;
}
body.js-enabled .reveal-block:not(.is-revealed) {
  opacity: 0;
  transform: translateY(18px);
}
body.js-enabled .reveal-block.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.button,
.text-link,
.tab-btn,
.case-card,
.mega-dropdown-panel .floating-menu-card,
.hero-capabilities span {
  transition-duration: .22s;
  transition-timing-function: var(--motion-ease);
}
.button:hover svg,
.text-link:hover svg {
  transform: translateX(3px);
}
.button svg,
.text-link svg {
  transition: transform .22s var(--motion-ease);
}
.hero-capabilities span {
  transition: background-color .22s var(--motion-ease),
              border-color .22s var(--motion-ease),
              transform .22s var(--motion-ease);
}
.hero-capabilities span:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.38);
  transform: translateY(-2px);
}
.tab-btn:focus-visible,
.button:focus-visible,
.text-link:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  body.js-enabled .reveal-block:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
}


/* v39 — Адаптивность мега-меню, мобильной шторки кейсов и вкладок решений */

/* 1. Прокрутка длинного мега-меню на 13-14" ноутбуках и при масштабе 125-150% */
.mega-dropdown-panel {
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* 2. Блокировка прокрутки фоновой страницы при открытом модальном окне или меню */
body.modal-open {
  overflow: hidden;
}

/* 3. Удобная мобильная верстка выезжающей шторки кейса (.case-modal-drawer) */
@media (max-width: 640px) {
  .case-modal-drawer {
    padding: 24px 20px;
    gap: 20px;
  }
  .case-modal-close {
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
  }
  .case-modal-drawer #cm-industry {
    padding-right: 42px;
  }
  .case-modal-drawer #cm-title {
    font-size: 20px !important;
  }
}

/* 4. Отображение всех 7 вкладок «Решения» на мобильных и планшетах в виде компактных чипсов без скрытого скролла */
@media (max-width: 768px) {
  .solution-tabs-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 28px;
  }
  .tab-btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    padding: 11px 12px;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-alt);
    text-align: center;
  }
  .tab-btn.active {
    background: rgba(229, 169, 59, 0.14);
    border-color: var(--accent);
    border-bottom: 2px solid var(--accent);
    color: var(--dark);
  }
}
/* Certificate scans: show each full document and label the click action */
.about-page .certificates-section .certificate-card img { object-fit: contain; aspect-ratio: 1.42; padding: 8px; background: #f5f7fa; }
.about-page .certificates-section .certificate-card span:after { content: 'ОТКРЫТЬ СЕРТИФИКАТ ↗'; }


/* Certificates ticker follows the continuous leftward motion of the client logos. */
.about-page .certificates-section .certificates-ticker {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 8px 0 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.about-page .certificates-section .certificates-track {
  display: flex;
  width: max-content;
  animation: certificates-loop 68s linear infinite;
}
.about-page .certificates-section .certificates-ticker:hover .certificates-track {
  animation-play-state: paused;
}
.about-page .certificates-section .certificates-set {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 14px;
  padding-right: 14px;
}
.about-page .certificates-section .certificate-card {
  width: clamp(280px, 31vw, 360px);
  flex: 0 0 clamp(280px, 31vw, 360px);
  min-height: 142px;
}
@keyframes certificates-loop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .about-page .certificates-section .certificate-card {
    width: min(84vw, 330px);
    flex-basis: min(84vw, 330px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-page .certificates-section .certificates-track { animation: none; }
  .about-page .certificates-section .certificates-ticker { overflow-x: auto; }
}
