/* CDO Global — стилистика, перенесённая с cdo-global.ru */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:        #0b0f0c;
  --bg-2:      #070a08;
  --bg-soft:   #0e0e15;
  --light:     #F5F7F2;
  --light-2:   #EEF3EA;
  --text:      #e7ece8;
  --text-soft: #aab1ac;
  --text-mute: #8a928d;
  --white:     #ffffff;
  --lime:      #74d414;
  --lime-l:    #8fe234;
  --lime-d:    #5db00c;
  --line:      rgba(255,255,255,.12);
  --line-2:    rgba(255,255,255,.18);
  --card:      rgba(255,255,255,.04);
  --card-hov:  rgba(255,255,255,.07);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--white); }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { color: var(--white); margin: 0; letter-spacing: -.018em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.18; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; }

p { margin: 0; }

/* ── Контейнеры и сетки ───────────────────────────────────── */
.container-x {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding-left: 1.25rem; padding-right: 1.25rem;
}
@media (min-width: 1024px) {
  .container-x { padding-left: 2rem; padding-right: 2rem; }
}

/* ── Кнопки ──────────────────────────────────────────────── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; border-radius: 9999px; padding: .75rem 1.5rem;
  font-size: .875rem; line-height: 1.25rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s, transform .2s, filter .2s, box-shadow .2s;
}
.btn-primary {
  background: linear-gradient(95deg, var(--lime-l), var(--lime));
  color: var(--bg);
  box-shadow: 0 10px 30px -10px rgba(116,212,20,.6);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); color: var(--bg); }
.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: rgba(116,212,20,.6); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; }

/* ── Eyebrow / lime-text ─────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .18em; color: var(--lime);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--lime); }
.lime-text {
  background: linear-gradient(92deg, var(--lime-l), var(--lime), var(--lime-d));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Фоновые паттерны ────────────────────────────────────── */
.bg-dots {
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-grid-light {
  background-image:
    linear-gradient(rgba(20,26,22,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,26,22,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.glow {
  position: absolute; border-radius: 9999px;
  background: radial-gradient(circle, rgba(116,212,20,.28), rgba(116,212,20,0) 70%);
  filter: blur(20px); pointer-events: none;
}

/* ── Шапка ───────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(11,15,12,.85);
  backdrop-filter: blur(10px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 14px 1.25rem; max-width: 1240px; margin: 0 auto; min-height: 72px;
}
@media (min-width: 1024px) { .header__inner { padding: 14px 2rem; gap: 1.75rem; } }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { height: 28px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav__item { position: relative; }
.nav__btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--text); font-size: .92rem; font-weight: 600; font-family: inherit;
  padding: 8px 2px; transition: color .15s ease;
}
.nav__btn:hover, .nav__btn[aria-expanded="true"] { color: #fff; }
.nav__btn[aria-expanded="true"] {
  text-decoration: underline; text-decoration-color: var(--accent);
  text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.nav__caret { width: 10px; height: 10px; transition: transform .2s ease; opacity: .7; }
.nav__btn[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

/* Dropdowns */
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 0;
  background: rgba(14,18,15,.98);
  backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  min-width: 260px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(116,212,20,.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav__item[data-open="true"] .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown--mega { min-width: 660px; padding: 20px; }
.dropdown--mega .dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.dropdown--right { left: auto; right: 0; }
.dropdown__item {
  display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none;
  color: var(--text); transition: background .15s ease;
  background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer; font-family: inherit;
}
.dropdown__item:hover { background: rgba(116,212,20,.08); }
.dropdown__item-title { display: block; font-size: .92rem; font-weight: 600; color: #fff; line-height: 1.35; }
.dropdown__item-desc { display: block; margin-top: 4px; font-size: .78rem; color: var(--text-soft); line-height: 1.45; }
.dropdown--simple .dropdown__item-title { font-size: .9rem; }

/* Right cluster */
.head-right { display: flex; align-items: center; gap: .75rem; }
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 9999px; padding: 3px;
}
.lang button {
  font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 9999px;
  color: var(--text-soft); background: transparent; border: 0; cursor: pointer; font-family: inherit;
  letter-spacing: .03em;
}
.lang button.active { background: #fff; color: var(--bg); }
.lang button:hover:not(.active) { color: #fff; }

.header-cta { white-space: nowrap; padding: 10px 18px; font-size: .88rem; }

.burger {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; cursor: pointer; width: 40px; height: 40px;
  align-items: center; justify-content: center; padding: 0;
}
.burger svg { width: 22px; height: 22px; color: #fff; }

@media (max-width: 1024px) {
  .nav, .head-right .lang, .head-right .header-cta { display: none; }
  .burger { display: inline-flex; }
  .nav.mobile-open {
    display: flex; position: fixed; top: 72px; left: 0; right: 0;
    max-height: calc(100vh - 72px); overflow-y: auto;
    background: rgba(11,15,12,.96); backdrop-filter: blur(14px);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 20px; border-top: 1px solid var(--line);
  }
  .nav.mobile-open .nav__item { width: 100%; }
  .nav.mobile-open .nav__btn {
    width: 100%; justify-content: space-between; padding: 14px 4px;
    font-size: 1rem; border-bottom: 1px solid var(--line);
  }
  .nav.mobile-open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; padding: 6px 0 10px;
    min-width: 0; display: none;
  }
  .nav.mobile-open .nav__item[data-open="true"] .dropdown { display: block; }
  .nav.mobile-open .dropdown--mega .dropdown__grid { grid-template-columns: 1fr; }
  .nav.mobile-open .mobile-tail {
    display: flex; flex-direction: column; gap: 14px;
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  }
  .nav.mobile-open .mobile-tail .lang { display: inline-flex; align-self: flex-start; }
  .nav.mobile-open .mobile-tail .header-cta {
    display: inline-flex; align-self: stretch; justify-content: center;
  }
}
@media (min-width: 1025px) {
  .mobile-tail { display: none; }
}

/* отступ под фикс-шапку */
main { padding-top: 70px; }

/* ── Хлебные крошки ──────────────────────────────────────── */
.crumbs {
  padding: 24px 0 4px; font-size: .82rem; color: var(--text-soft);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--lime); }
.crumbs .sep { color: var(--text-mute); }
.crumbs span.current { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 64px;
}
.hero .bg-dots, .hero .bg-grid {
  position: absolute; inset: 0; opacity: .55; pointer-events: none;
}
.hero .glow--1 { top: -120px; right: -100px; width: 480px; height: 480px; }
.hero .glow--2 { bottom: -160px; left: -120px; width: 420px; height: 420px; opacity: .6; }
.hero__inner { position: relative; }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.12; max-width: 22ch;
  margin: 18px 0 22px;
}
.hero__lead {
  color: var(--text-soft); font-size: 1.0625rem; line-height: 1.6;
  max-width: 70ch;
}
.hero__lead strong { color: var(--text); font-weight: 600; }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  border-radius: 9999px; padding: 8px 14px;
  font-size: .78rem; color: var(--text); font-weight: 500;
}
.trust-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }

/* Answer-first */
.answer {
  margin-top: 30px;
  padding: 24px 26px;
  background: rgba(116,212,20,.04);
  border: 1px solid rgba(116,212,20,.22);
  border-left: 3px solid var(--lime);
  border-radius: 1rem;
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.65;
  max-width: 92ch;
}
.answer strong { color: var(--white); font-weight: 600; }

/* KPI cards */
.kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 32px;
}
.kpi {
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  border-radius: 1rem; padding: 20px;
  transition: border-color .2s, background .2s;
}
.kpi:hover { border-color: rgba(116,212,20,.45); background: rgba(255,255,255,.05); }
.kpi__num {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(92deg, var(--lime-l), var(--lime), var(--lime-d));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kpi__label { font-size: .82rem; color: var(--text-soft); margin-top: 8px; line-height: 1.4; }
@media (max-width: 820px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

/* ── Секции ──────────────────────────────────────────────── */
.section { padding: 72px 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section--light {
  background: var(--light);
  color: var(--bg);
}
.section--light h1, .section--light h2, .section--light h3 { color: var(--bg); }
.section--light .text-soft { color: #3a4338; }

.section__head { margin-bottom: 36px; max-width: 70ch; }
.section__head .eyebrow { margin-bottom: 14px; }
.section__head p { color: var(--text-soft); margin-top: 12px; font-size: .98rem; }
.section--light .section__head p { color: #3a4338; }

/* ── Карточки ────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 1.25rem;
  padding: 24px;
  transition: background .2s, border-color .2s, transform .25s ease;
}
.card:hover {
  background: var(--card-hov);
  border-color: rgba(116,212,20,.35);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 8px; }
.card .meta {
  color: var(--lime); font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px;
}
.card p { color: var(--text-soft); font-size: .94rem; line-height: 1.6; }
.card a:not(.btn-primary):not(.btn-ghost) {
  color: var(--lime); border-bottom: 1px dashed rgba(116,212,20,.4);
}
.card a:not(.btn-primary):not(.btn-ghost):hover { border-bottom-color: var(--lime); }

.kv { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px 18px; margin-top: 14px; font-size: .9rem; }
.kv dt { color: var(--text-mute); }
.kv dd { margin: 0; color: var(--text); }
.num {
  font-variant-numeric: tabular-nums;
  background: linear-gradient(92deg, var(--lime-l), var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}

.ext::after { content: " ↗"; color: var(--text-mute); }

/* ── Таблицы ─────────────────────────────────────────────── */
.table-wrap {
  border: 1px solid var(--line-2); border-radius: 1.25rem; overflow: hidden;
  background: rgba(255,255,255,.02);
}
.table-wrap--scroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
table.t th, table.t td {
  text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line);
  color: var(--text);
}
table.t th {
  background: rgba(255,255,255,.04); color: var(--text-soft);
  font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
}
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: rgba(255,255,255,.03); }
.t__right { text-align: right; }

/* ── Партнёры ────────────────────────────────────────────── */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .partners { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .partners { grid-template-columns: repeat(2, 1fr); } }

.partner {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 1rem;
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 170px;
  transition: border-color .2s, background .2s, transform .2s;
}
.partner:hover { border-color: rgba(116,212,20,.4); background: var(--card-hov); transform: translateY(-2px); }
.partner__logo {
  font-weight: 800; font-size: 1.05rem; color: var(--white);
  letter-spacing: -.01em; margin-bottom: 6px;
  background: linear-gradient(92deg, var(--lime-l), var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.partner__role {
  font-size: .68rem; color: var(--text-mute); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
}
.partner__name { font-size: .95rem; color: var(--text); font-weight: 600; }
.partner__desc { font-size: .82rem; color: var(--text-soft); line-height: 1.45; margin-top: auto; }
.partner__desc a { color: var(--lime); border-bottom: 1px dashed rgba(116,212,20,.4); }

/* ── Compliance ──────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 14px; font-size: .85rem; color: var(--text);
}
.tag::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(116,212,20,.15);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2374d414' d='M6.5 11.2 3.8 8.5l1.1-1.1 1.6 1.6 4.6-4.6 1.1 1.1z'/></svg>");
  background-repeat: no-repeat; background-position: center;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq details {
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 1rem;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.faq details[open] { border-color: rgba(116,212,20,.4); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding-right: 30px; font-weight: 600; color: var(--white);
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  font-size: 22px; color: var(--lime); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 12px; color: var(--text-soft); font-size: .94rem; line-height: 1.6; }
.faq strong { color: var(--text); }

/* ── CTA-секция ──────────────────────────────────────────── */
.cta-block {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0c130f, #0b0f0c 60%);
  border: 1px solid var(--line-2);
  border-radius: 1.5rem;
  padding: 44px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-block::before {
  content: ""; position: absolute;
  top: -120px; right: -80px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(116,212,20,.35), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.cta-block > div { position: relative; z-index: 1; }
.cta-block h2 { margin-bottom: 10px; }
.cta-block p { color: var(--text-soft); max-width: 56ch; }
.cta-block__buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Футер ───────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  color: var(--text-soft);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 36px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  color: var(--white); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .14em; margin-bottom: 16px; font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-size: .9rem; }
.footer a { color: var(--text-soft); }
.footer a:hover { color: var(--lime); }
.footer__brand img { height: 26px; margin-bottom: 14px; }
.footer__about { font-size: .9rem; max-width: 38ch; line-height: 1.55; }
.footer__bottom {
  border-top: 1px solid var(--line);
  margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-mute);
}

/* Reveal анимация */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Утилиты */
.mt-l { margin-top: 28px; }
.mt-xl { margin-top: 40px; }
.text-soft { color: var(--text-soft); }
.divider { height: 1px; background: var(--line); margin: 48px 0; }
