:root {
  --bg: #f0f2f5;
  --bg-elevated: #ffffff;
  --bg-soft: #e8ebf0;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --brand: #ea580c;
  --brand-hover: #c2410c;
  --accent: #0f766e;
  --link: #0369a1;
  --ok: #15803d;
  --error: #dc2626;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: var(--bg);
  font-size: 16px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.container {
  width: min(1200px, 94%);
  margin: 0 auto;
}

/* Top bar */
.header-top {
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.8125rem;
}

.header-top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: 40px;
  padding: 6px 0;
}

.header-top a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.header-top a:hover {
  color: #fed7aa;
  text-decoration: none;
}

.header-top span {
  opacity: 0.88;
}

/* Sticky header stack (top bar + nav) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Main header */
.header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.logo img {
  height: 34px;
  width: auto;
  max-width: min(200px, 48vw);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.btn {
  border: 0;
  border-radius: var(--radius);
  padding: 11px 20px;
  color: #fff;
  background: var(--brand);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.2);
}

.btn:hover {
  background: var(--brand-hover);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
  text-decoration: none;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--muted);
  color: var(--text);
}

.btn-wide {
  width: 100%;
}

/* Hero */
.hero {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.hero-main,
.hero-side {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0 0 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

h3 {
  font-size: 1.0625rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-tags span,
.hero-tags li {
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero-side ul,
.split-aside ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.hero-side ul li,
.split-aside ul li {
  margin-bottom: 6px;
}

/* Stats */
.stats {
  padding: 28px 0 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 1.375rem;
  color: var(--text);
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Sections */
.section {
  padding: 56px 0;
  scroll-margin-top: 104px;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 28px;
  max-width: 760px;
}

.product-catalog {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.product-detail {
  scroll-margin-top: 104px;
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.product-detail h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.product-detail > p {
  margin: 0 0 0.85rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
}

.product-benefits {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
  font-size: 0.9375rem;
}

.product-benefits li {
  margin-bottom: 0.35rem;
}

.product-benefits li:last-child {
  margin-bottom: 0;
}

.section-head p:not(.kicker) {
  margin-bottom: 0;
  max-width: 640px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card a {
  color: var(--link);
  font-weight: 600;
}

.card .price {
  color: var(--brand);
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.card strong,
.case strong {
  color: var(--text);
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 20px;
  align-items: start;
}

.split-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tariff {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.tariff .price {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 800;
}

.tariff.featured {
  border-color: rgba(234, 88, 12, 0.4);
  background: #fff7ed;
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.12);
}

.split-aside {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.section-link {
  margin-top: 20px;
}

.section-link a {
  font-weight: 600;
}

.section-link a:hover {
  color: var(--brand-hover);
}

.industry {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.case p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.cta {
  padding-top: 24px;
  padding-bottom: 72px;
}

.cta-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  box-shadow: var(--shadow-md);
}

.cta-info a {
  font-weight: 600;
}

.request-form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: #fafafa;
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 500;
}

.form-message.success {
  color: var(--ok);
}

.form-message.error {
  color: var(--error);
}

/* Trust block */
.trust-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-grid img,
.trust-grid svg {
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s ease;
  max-width: 100%;
  height: auto;
}

.trust-grid a:hover img,
.trust-grid img:hover,
.trust-grid a:hover svg,
.trust-grid svg:hover {
  opacity: 1;
}

/* Mega footer (светлый, как у крупных B2B-порталов) */
.footer-mega {
  padding: 0;
  background: #eef2f6;
  color: #475569;
  border-top: 1px solid #d8dee9;
}

.footer-mega-inner {
  display: grid;
  grid-template-columns: minmax(200px, 1.15fr) repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  padding: 48px 0 40px;
}

.footer-brand-col {
  padding-right: 12px;
}

.footer-brand-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 14px;
}

.footer-brand-logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.footer-lead {
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 12px;
}

.footer-contact-line {
  margin-bottom: 8px;
}

.footer-accent-link {
  color: #0284c7;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.footer-accent-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

.footer-muted {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.social-round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-round:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.social-vk { background: #0077ff; }
.social-tg { background: #229ed9; }
.social-yt { background: #ff0000; }
.social-ok { background: #ee8208; }

.footer-webinar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #0284c7;
  border-radius: 8px;
  color: #0284c7;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  background: #fff;
}

.footer-webinar:hover {
  background: #f0f9ff;
  text-decoration: none;
}

.footer-webinar-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.footer-nav-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link-list li {
  margin-bottom: 8px;
}

.footer-link-list a {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-link-list a:hover {
  color: #0284c7;
  text-decoration: underline;
}

.footer-nav-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-nav-tight {
  margin-top: 4px;
}

.footer-legal {
  background: #e6ebf2;
  border-top: 1px solid #d8dee9;
  padding: 22px 0 28px;
}

.footer-legal-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.footer-legal-text p {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-legal-text strong {
  color: #0f172a;
}

.footer-legal-note {
  max-width: 720px;
}

.footer-copy-line {
  margin-top: 10px !important;
  font-weight: 600;
  color: #475569 !important;
}

.footer-legal-links a {
  color: #0284c7;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

/* Кнопка связи (аналог плавающего чата) */
.fab-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f97316, #ea580c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.45);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-chat:hover {
  text-decoration: none;
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(234, 88, 12, 0.5);
  color: #fff;
}

@media (max-width: 1100px) {
  .footer-mega-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

@media (max-width: 780px) {
  .footer-mega-inner {
    grid-template-columns: 1fr;
  }

  .footer-legal-grid {
    grid-template-columns: 1fr;
  }

  .footer-legal-links {
    order: -1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .split,
  .cta-wrap {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .industry-grid,
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .menu-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav .btn-sm {
    display: none;
  }

  .cards-grid,
  .tariff-grid,
  .industry-grid,
  .cases-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .hero-side {
    padding: 24px;
  }
}
