:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-dark: #0b1d3a;
  --bg-darker: #061229;
  --text: #1a2233;
  --text-muted: #5a6478;
  --text-light: #aab4c8;
  --brand: #ff5a00;
  --brand-dark: #e54f00;
  --accent: #2057ff;
  --border: #e3e7ef;
  --radius: 10px;
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.55; background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 20px; font-weight: 800; color: var(--bg-dark); }
.logo span { color: var(--brand); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.header-cta { display: flex; gap: 12px; align-items: center; }
.header-phone { font-weight: 600; color: var(--bg-dark); font-size: 15px; text-decoration: none; }
.header-phone:hover { color: var(--brand); text-decoration: none; }
.header-tg { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #29A9EB; color: #fff; transition: background .15s ease; }
.header-tg:hover { background: #1f8fc7; text-decoration: none; color: #fff; }
.header-tg svg { width: 18px; height: 18px; }
@media (max-width: 700px) { .header-tg { display: none; } }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 15px; text-decoration: none; transition: all .15s ease; border: none; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--bg-dark); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%); color: #fff; padding: 80px 0 96px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -10%; top: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,90,0,.15) 0%, transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -.02em; }
.hero h1 span { color: var(--brand); }
.hero p.lead { font-size: 19px; color: var(--text-light); margin-bottom: 32px; max-width: 600px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hero-stat .num { font-size: 32px; font-weight: 800; color: var(--brand); display: block; }
.hero-stat .label { font-size: 13px; color: var(--text-light); }
.hero-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 32px; backdrop-filter: blur(10px); }
.hero-card h3 { font-size: 18px; margin-bottom: 16px; color: #fff; }
.hero-card ul { list-style: none; }
.hero-card li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--text-light); font-size: 14px; padding-left: 24px; position: relative; }
.hero-card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.hero-card li:last-child { border-bottom: none; }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 700; margin-bottom: 12px; }
h2 { font-size: 36px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 16px; }
.section-dark h2 { color: #fff; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.section-sub { font-size: 17px; color: var(--text-muted); }
.section-dark .section-sub { color: var(--text-light); }

/* Grid cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all .2s ease; }
.card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,29,58,.08); }
.card .icon { width: 48px; height: 48px; background: rgba(255,90,0,.1); color: var(--brand); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.card h3 { font-size: 19px; margin-bottom: 10px; color: var(--bg-dark); }
.card p { color: var(--text-muted); font-size: 15px; margin-bottom: 14px; }
.card a.more { font-size: 14px; font-weight: 600; color: var(--brand); }

/* Trust / Logos / Numbers */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.metric { text-align: center; padding: 20px; }
.metric .num { font-size: 48px; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 8px; }
.metric .label { font-size: 14px; color: var(--text-muted); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 13px; font-weight: 700; color: var(--brand); display: block; margin-bottom: 12px; }

/* Solutions list / SEO links blocks */
.seo-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; list-style: none; }
.seo-links li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.seo-links li a { color: var(--text); font-size: 15px; }
.seo-links li a:hover { color: var(--brand); text-decoration: none; }

/* Two-column intro */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.two-col aside { background: var(--bg-alt); padding: 28px; border-radius: var(--radius); border-left: 4px solid var(--brand); }

/* Lists */
.check-list { list-style: none; }
.check-list li { padding: 10px 0 10px 32px; position: relative; font-size: 16px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; background: var(--brand); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* CTA Strip */
.cta-strip { background: linear-gradient(135deg, var(--brand) 0%, #ff8a3d 100%); color: #fff; padding: 64px 0; text-align: center; }
.cta-strip h2 { color: #fff; margin-bottom: 16px; }
.cta-strip p { font-size: 17px; margin-bottom: 28px; opacity: .95; }
.cta-strip .btn-secondary { background: #fff; color: var(--brand); border-color: #fff; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px; transition: all .15s ease; }
.faq details[open] { border-color: var(--brand); }
.faq summary { font-weight: 600; cursor: pointer; font-size: 16px; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 22px; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--text-muted); }

/* Footer */
.site-footer { background: var(--bg-darker); color: var(--text-light); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: var(--text-light); font-size: 14px; }
.site-footer a:hover { color: var(--brand); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: var(--text-light); }

/* Breadcrumbs */
.breadcrumbs { padding: 16px 0; font-size: 13px; color: var(--text-muted); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { margin: 0 8px; }

/* Page hero (для внутренних страниц) */
.page-hero { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%); color: #fff; padding: 64px 0; }
.page-hero h1 { font-size: 38px; font-weight: 800; line-height: 1.15; max-width: 850px; margin-bottom: 16px; }
.page-hero p.lead { font-size: 18px; color: var(--text-light); max-width: 760px; }
.page-hero .badges { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.badge { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 6px 14px; border-radius: 100px; font-size: 13px; color: #fff; }

/* Tables for service comparison */
.feature-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.feature-table th, .feature-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.feature-table th { background: var(--bg-alt); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; }
.feature-table tr:last-child td { border-bottom: none; }

/* Client logos */
.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.client-logo { background: #fff; border: 1px solid var(--border); border-radius: 8px; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 12px; color: var(--bg-dark); font-weight: 800; font-size: 14px; text-align: center; transition: all .15s ease; letter-spacing: .02em; }
.client-logo:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,29,58,.06); }
.client-logo .industry { display: block; font-size: 11px; font-weight: 500; color: var(--text-muted); margin-top: 6px; letter-spacing: 0; text-transform: lowercase; }
.client-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; text-align: center; }
.client-stats .stat .n { font-size: 30px; font-weight: 800; color: var(--brand); display: block; }
.client-stats .stat .l { font-size: 13px; color: var(--text-muted); }
@media (max-width: 960px) { .client-grid { grid-template-columns: repeat(4, 1fr); } .client-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }

/* CV-request modal */
.cv-modal { border: none; border-radius: 14px; padding: 0; max-width: 640px; width: 92%; box-shadow: 0 30px 80px rgba(11,29,58,.35); }
.cv-modal::backdrop { background: rgba(6, 18, 41, .65); backdrop-filter: blur(4px); }
.cv-modal-head { padding: 28px 32px 16px; border-bottom: 1px solid var(--border); }
.cv-modal-head h3 { font-size: 22px; color: var(--bg-dark); margin-bottom: 6px; }
.cv-modal-head p { color: var(--text-muted); font-size: 14px; }
.cv-modal-close { position: absolute; top: 18px; right: 22px; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text-muted); line-height: 1; }
.cv-modal-close:hover { color: var(--brand); }
.cv-modal-body { padding: 24px 32px 28px; max-height: 70vh; overflow-y: auto; }
.cv-modal-body .field { margin-bottom: 16px; }
.cv-modal-body label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.cv-modal-body input[type="text"], .cv-modal-body input[type="tel"], .cv-modal-body input[type="email"], .cv-modal-body input[type="number"], .cv-modal-body textarea, .cv-modal-body select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font); font-size: 14px; }
.cv-modal-body input:focus, .cv-modal-body textarea:focus, .cv-modal-body select:focus { outline: none; border-color: var(--brand); }
.cv-modal-body textarea { min-height: 80px; resize: vertical; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 7px 13px; border: 1px solid var(--border); border-radius: 100px; font-size: 13px; cursor: pointer; user-select: none; transition: all .15s ease; background: #fff; color: var(--text); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.cv-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-hint { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .cards, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps, .metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .seo-links { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero h1, .page-hero h1 { font-size: 32px; }
  h2 { font-size: 28px; }
}
@media (max-width: 600px) {
  .cards, .cards-4, .cards-2 { grid-template-columns: 1fr; }
  .steps, .metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0; }
  section { padding: 56px 0; }
  .header-phone { display: none; }
}


/* --- статьи и кейсы (добавлено 07.2026) --- */
.table-wrap { overflow-x: auto; margin: 20px 0 28px; }
.article-body { max-width: 880px; margin: 0 auto; }
.article-body h2 { margin: 40px 0 14px; font-size: 29px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 26px 0 10px; font-size: 20px; }
.article-body p { margin: 0 0 16px; font-size: 17px; line-height: 1.68; }
.article-body ul.check-list { margin: 14px 0 22px; }
.article-body .feature-table th, .article-body .feature-table td, .two-col .feature-table th, .two-col .feature-table td { font-size: 15px; padding: 13px 16px; }
.article-body a { font-weight: 600; }


/* --- форма демо (08.2026) --- */
.demo-form { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:8px; }
.demo-form input { padding:12px 14px; border-radius:10px; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.95); font-size:15px; min-width:180px; }
.demo-form .demo-form-note { flex-basis:100%; text-align:center; font-size:12.5px; opacity:.75; margin:6px 0 0; }
.demo-ok { font-size:17px; font-weight:700; text-align:center; }
