/* Эксперт ЕАЭС — маркетинговый сайт. Токены по брендбуку продуктовой семьи. */

:root {
  /* graphite / neutrals */
  --ink: #23261f;
  --ink-soft: #4b4f43;
  --muted: #6b6f60;
  --line: #e4e1da;
  --paper: #f4f2ee;
  --paper-deep: #ece9e1;
  --surface: #ffffff;

  /* pine — dark accent surfaces (hero, footer) */
  --pine: #0f2a20;
  --pine-2: #163a2c;
  --pine-text: #f4f2ee;
  --pine-text-dim: #cfe3d8;

  /* brand accents */
  --brand: #1e6b4f;
  --brand-deep: #154f3a;
  --brand-soft: #e7f3ed;
  --accent: #a5713f;
  --accent-deep: #7f5730;
  --accent-soft: #f6ede2;
  --warn: #b5790f;
  --warn-bg: #fbf1dd;

  --shadow: 0 2px 10px rgba(15, 42, 32, 0.08), 0 1px 2px rgba(15, 42, 32, 0.06);
  --shadow-lg: 0 18px 44px rgba(15, 42, 32, 0.14), 0 4px 12px rgba(15, 42, 32, 0.08);
  --radius: 12px;
  --radius-sm: 10px;
  --control-h: 44px;
  --header-h: 72px;
  --max: 1180px;

  --font-display: "Cormorant Garamond", Georgia, "Iowan Old Style", "Noto Serif", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --dur: 190ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --focus: 0 0 0 3px rgba(30, 107, 79, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; color: var(--ink); }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pine);
  color: var(--pine-text);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--pine-text-dim); }
.btn-ghost:hover { color: #fff; }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(15, 42, 32, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: var(--control-h);
}
.logo-mark { border-radius: 8px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--pine-text);
  letter-spacing: 0.2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-secondary { background: transparent; border-color: rgba(244, 242, 238, 0.35); color: var(--pine-text); }
.header-actions .btn-secondary:hover { border-color: #fff; color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pine-text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; align-items: center; gap: 26px; }
.site-nav ul a {
  text-decoration: none;
  color: var(--pine-text-dim);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.site-nav ul a:hover { color: #fff; }
.mobile-nav-actions { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-actions { display: none; }
  body.nav-open { overflow: hidden; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--pine);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .nav-open .site-nav { transform: translateY(0); opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-top: 1px solid rgba(244, 242, 238, 0.12); }
  .site-nav ul a { padding: 14px 4px; min-height: var(--control-h); display: flex; align-items: center; }
  .mobile-nav-actions { display: flex; gap: 10px; margin-top: 14px; }
  .mobile-nav-actions .btn { flex: 1; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 84% 12%, rgba(165, 113, 63, 0.28), transparent 55%),
    radial-gradient(circle at 8% 92%, rgba(30, 107, 79, 0.45), transparent 50%),
    var(--pine);
  color: var(--pine-text);
  position: relative;
  overflow: hidden;
}
.hero-inner { text-align: center; max-width: 880px; padding-top: 40px; padding-bottom: 40px; }
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--pine-text-dim);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(52px, 9vw, 108px);
  line-height: 1.02;
  color: var(--pine-text);
  margin-bottom: 26px;
}
.hero-lead {
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.5;
  color: var(--pine-text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-scroll { margin-top: 64px; display: flex; justify-content: center; }
.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(244, 242, 238, 0.5), transparent);
}

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--paper-deep); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; line-height: 1.6; }

.item { padding: 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.item h3 { font-size: 19px; margin-bottom: 10px; }
.item p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* about */
.about-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }

/* regulations */
.reg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reg-card {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--brand);
}
.reg-card-more { border-top-color: var(--accent); background: var(--accent-soft); }
.reg-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-deep);
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}
.reg-card-more .reg-code { color: var(--accent-deep); }
.reg-card h3 { font-size: 17px; line-height: 1.35; margin-bottom: 10px; }
.reg-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* monitoring / inspection */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; text-align: left; }
.split .section-head { text-align: left; margin: 0; max-width: none; }
.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--brand-deep);
  border-bottom: 2px solid var(--brand-deep);
  transform: rotate(-45deg);
}

/* audience */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.role {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.role h3 { font-size: 17px; margin-bottom: 8px; }
.role p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--pine-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* trust */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-point {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
}
.trust-point h3 { font-size: 17px; margin-bottom: 10px; }
.trust-point p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* final cta */
.final-cta { padding: 110px 0; background: var(--pine); color: var(--pine-text); text-align: center; }
.final-panel { max-width: 640px; margin: 0 auto; }
.final-panel h2 { font-size: clamp(30px, 4vw, 44px); color: var(--pine-text); margin-bottom: 16px; }
.final-panel p { color: var(--pine-text-dim); font-size: 18px; margin-bottom: 34px; }

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.badge-plan { background: var(--warn-bg); color: var(--warn); }
.badge-dev { background: var(--warn-bg); color: var(--warn); }
.badge-grow { background: var(--brand-soft); color: var(--brand-deep); }

/* stub page */
.stub-section { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 80px 0; }
.stub-panel { max-width: 560px; margin: 0 auto; text-align: center; }
.stub-panel .badge { margin-bottom: 22px; }
.stub-panel h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 18px; }
.stub-panel .lead { color: var(--muted); font-size: 18px; line-height: 1.6; margin-bottom: 34px; }
.stub-panel .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--pine); color: var(--pine-text-dim); padding: 64px 0 0; border-top: 1px solid rgba(244, 242, 238, 0.1); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(244, 242, 238, 0.14);
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; max-width: 320px; }
.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--pine-text);
  margin-bottom: 16px;
}
.footer-docs-title { margin-top: 22px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { text-decoration: none; font-size: 14.5px; transition: color var(--dur) var(--ease); }
.footer-nav a:hover { color: #fff; }
.legal-placeholder { font-size: 13px; color: rgba(207, 227, 216, 0.6); line-height: 1.5; }
.footer-bottom { padding: 22px 0; font-size: 13.5px; color: rgba(207, 227, 216, 0.65); }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 1; transform: none; }
[data-reveal].is-ready { opacity: 0; transform: translateY(18px); transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  [data-reveal].is-ready { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .reg-grid { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .reg-grid,
  .roles,
  .steps,
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .final-cta { padding: 76px 0; }
}

