/* ==========================================================================
   b2btrade.uz — лендинг теста спроса. Направление «Майолика» (07.09.2026).
   Тёмно-синее поле с орнаментом гирих, золото в линиях, бирюзовая полоса
   майолики как переход к бумаге, документы в двойной золотой рамке.
   Шрифты: Forum (заголовки) · Golos Text (текст) · JetBrains Mono (данные).
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  --navy: #0B1D46;
  --navy-2: #122A5E;
  --ink: #0E1E44;
  --ink-2: #3C4763;
  --muted: #6B7386;
  --paper: #F6F3EC;
  --paper-2: #FFFDF8;
  --paper-3: #F1ECDF;
  --line: #ECE5D2;
  --line-2: #C9BFA6;
  --gold: #D1A657;
  --gold-2: #EBD29A;
  --gold-3: #B88E3E;
  --gold-line: rgba(209, 166, 87, 0.5);
  --gold-line-soft: rgba(209, 166, 87, 0.28);
  --teal: #2A9DAE;
  --teal-2: #146C7A;
  --teal-bg: #EEF6F5;
  --green: #0B7A52;
  --red: #B4232C;
  --on-navy: #F6F3EC;
  --on-navy-2: rgba(246, 243, 236, 0.84);
  --on-navy-3: rgba(246, 243, 236, 0.68);

  --font-display: "Forum", "Georgia", "Times New Roman", serif;
  --font-body: "Golos Text", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", "Menlo", monospace;

  --container: 1200px;
  --radius: 3px;
  --shadow-doc: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  --shadow-paper: 0 24px 48px -32px rgba(14, 30, 68, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%23D1A657' stroke-width='1'%3E%3Crect x='24' y='24' width='48' height='48'/%3E%3Crect x='24' y='24' width='48' height='48' transform='rotate(45 48 48)'/%3E%3Cpath d='M48 0V24M48 72V96M0 48H24M72 48H96'/%3E%3Cpath d='M0 0H14L0 14ZM96 0H82L96 14ZM0 96H14L0 82ZM96 96H82L96 82Z'/%3E%3C/svg%3E");
  --majolica: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23F6F3EC' stroke-width='1.2'%3E%3Crect x='10' y='10' width='20' height='20'/%3E%3Crect x='10' y='10' width='20' height='20' transform='rotate(45 20 20)'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='3' fill='%23D1A657'/%3E%3Cpath d='M0 0H6L0 6ZM40 0H34L40 6ZM0 40H6L0 34ZM40 40H34L40 34Z' fill='%23F6F3EC'/%3E%3C/svg%3E");
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-2); text-decoration: none; }
a:hover { color: #0F5560; text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }
.header :focus-visible, .hero :focus-visible, .sec--navy :focus-visible { outline-color: var(--gold-2); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 40px; }
.c-4 { grid-column: span 4; }
.c-6 { grid-column: span 6; }
.c-8 { grid-column: span 8; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.label { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.label--teal { color: var(--teal-2); }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.lead--strong { color: var(--ink); font-weight: 500; }
.note { margin-top: 24px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.nowrap { white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 14px; background: var(--gold); color: var(--navy); border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 14px; font-size: 13px; }
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy); }
.btn--teal { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn--teal:hover { background: #3CB0C0; border-color: #3CB0C0; color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--on-navy); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--on-navy); }
.btn--outline-light { background: transparent; color: var(--on-navy); border-color: var(--on-navy); }
.btn--outline-light:hover { background: var(--on-navy); color: var(--navy); }
.btn[disabled] { opacity: 0.7; cursor: default; transform: none; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--on-navy);
  border-bottom: 1px solid var(--gold-line-soft);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--on-navy); text-decoration: none; }
.logo:hover { text-decoration: none; color: var(--on-navy); }
.logo__mark { width: 44px; height: auto; flex: none; }
.logo__word { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.logo__word em { font-style: normal; color: var(--gold); }
.logo__word small { font-size: 0.62em; letter-spacing: 0.04em; }
.nav__links { display: flex; gap: 26px; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--on-navy-2); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.18s, border-color 0.18s; }
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--on-navy); border-bottom-color: var(--gold); text-decoration: none; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--gold-line); border-radius: var(--radius); color: var(--on-navy); }
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-open, .nav__toggle[aria-expanded="false"] .nav__toggle-close { display: none; }
.nav__panel { display: none; background: var(--navy-2); border-top: 1px solid var(--gold-line-soft); }
.nav__panel ul { padding: 8px 24px 16px; display: flex; flex-direction: column; }
.nav__panel .nav__link { display: block; padding: 12px 0; border-bottom: 1px solid var(--gold-line-soft); font-size: 16px; }
.nav__panel .nav__link:hover { border-bottom-color: var(--gold); }

/* ---------- Первый экран ---------- */
.hero { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); opacity: 0.16; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 20px; }
.hero__roles { position: relative; padding-bottom: 80px; }
.hero__roles .hero__note { margin-top: 16px; }
.hero__copy { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.badge { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 13px; font-weight: 500; color: var(--gold-2); border: 1px solid var(--gold-line); padding: 6px 14px 6px 10px; }
.badge__dot { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: none; }
.hero__title { font-family: var(--font-display); font-size: clamp(38px, 3.9vw, 56px); line-height: 1.04; color: var(--on-navy); letter-spacing: 0.005em; text-wrap: balance; }
.hero__accent { color: var(--gold); }
.hero__em { font-weight: 600; color: var(--gold-2); border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.hero__lead { font-size: 20px; line-height: 1.5; color: var(--on-navy-2); max-width: 30ch; }
.hero__note { font-size: 13px; line-height: 1.5; color: var(--on-navy-3); }

.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); margin-top: 28px; }
.role { display: flex; flex-direction: column; gap: 14px; padding: 26px 40px 28px 0; transition: background-color 0.25s, box-shadow 0.25s; }
.role + .role { border-left: 1px solid var(--gold-line-soft); padding-left: 40px; padding-right: 0; }
.role__label { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 30px; line-height: 1.1; letter-spacing: 0.01em; color: var(--gold); }
.role__picked { display: none; font-family: var(--font-mono); font-weight: 500; font-size: 11px; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); background: var(--gold); padding: 3px 8px; }
.role__body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.role__body p { font-size: 16px; line-height: 1.55; color: var(--on-navy); max-width: 52ch; }
.role.is-picked { background: linear-gradient(180deg, rgba(209, 166, 87, 0.12), transparent 80%); box-shadow: inset 0 3px 0 var(--gold); }
.role.is-picked .role__picked { display: inline-block; }

/* Документ в двойной золотой рамке */
.doc { position: relative; margin: 0; }
.doc__frame { position: relative; background: var(--paper-2); color: var(--ink); border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 3px; box-shadow: var(--shadow-doc); }
.hero .doc__frame, .sec--navy .doc__frame { margin: 4px; }
.doc__rosette { position: absolute; width: 34px; height: 34px; fill: var(--navy); stroke: var(--gold); stroke-width: 1; z-index: 2; }
.doc__rosette .rosette__core { fill: var(--teal); stroke: none; }
.doc__rosette--tl { top: -20px; left: -20px; }
.doc__rosette--tr { top: -20px; right: -20px; }
.doc__rosette--bl { bottom: -20px; left: -20px; }
.doc__rosette--br { bottom: -20px; right: -20px; }
.doc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; }
.doc__head .label { color: var(--ink); }
.doc__head .label--teal { color: var(--teal-2); }
.doc__foot { padding: 10px 16px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

.registry { grid-column: span 7; padding-top: 28px; }
.registry__table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.registry__table th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--gold); }
.registry__table td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.registry__table tbody tr:last-child td { border-bottom: 0; }
.registry__table tr.is-current { background: var(--teal-bg); }
.registry__name { display: block; font-weight: 600; }
.registry__meta { display: block; font-size: 13px; color: var(--muted); }
.registry__count { text-align: right; }
.registry__table tr.is-new { animation: row-in 0.6s var(--ease) both; }
.registry__table tr.is-new .vbadge { animation: stamp-in 0.5s 0.35s var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.vbadge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--teal-2); border: 1px solid var(--teal-2); padding: 3px 8px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.vbadge--big { align-self: flex-start; font-size: 13px; padding: 6px 12px; }

/* Печать */
.stamp { position: absolute; width: 176px; height: 176px; color: var(--gold); pointer-events: none; }
.stamp--hero { right: -30px; bottom: -40px; transform: rotate(-8deg); }
.registry .doc__foot { min-height: 64px; padding-right: 150px; display: flex; align-items: center; }
.stamp__fill { fill: var(--navy); }
.stamp__ring { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; fill: var(--gold-2); }
.stamp__rosette { fill: var(--teal); stroke: var(--gold); stroke-width: 1; }
.stamp__check { fill: none; stroke: var(--on-navy); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.stamp__center { font-family: var(--font-display); font-size: 34px; fill: var(--gold-2); }
.reveal.is-visible .stamp--hero, .stamp--founder.is-visible { animation: stamp-in 0.6s 0.4s var(--ease) both; }
@keyframes stamp-in { 0% { opacity: 0; transform: rotate(-8deg) scale(1.35); } 60% { opacity: 1; transform: rotate(-8deg) scale(0.96); } 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }

/* Полоса майолики */
.band { position: relative; height: 12px; background-color: var(--teal); background-image: var(--majolica); background-size: 40px 40px; }

/* ---------- Секции ---------- */
.sec { padding: 72px 0; }
.sec--tint { background: var(--paper-3); }
.sec--navy { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.sec--navy::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); opacity: 0.12; pointer-events: none; }
.sec--navy .container { position: relative; }
.sec__rule { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.sec__rosette { width: 20px; height: 20px; fill: var(--navy); stroke: var(--gold); stroke-width: 1; flex: none; }
.sec__rosette .rosette__core { fill: var(--teal); stroke: none; }
.sec__rule--light .sec__rosette { fill: var(--gold); stroke: var(--gold-2); }
.sec__tag { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.sec__rule--light .sec__tag { color: var(--gold); }
.sec__line { flex: 1; height: 1px; background: var(--gold); }
.sec__rule--light .sec__line { background: var(--gold-line); }
.sec__title { font-family: var(--font-display); font-size: clamp(30px, 3vw, 42px); line-height: 1.1; color: var(--navy); text-wrap: balance; }
.sec--navy .sec__title { color: var(--on-navy); }
.sec__title--wide { max-width: 22ch; margin-bottom: 28px; }
.sec__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 40px; align-items: end; margin-bottom: 28px; }
.sec__head .sec__title { grid-column: span 8; }
.sec__head .tabs, .sec__head .sec__note, .sec__head .sec__lead { grid-column: span 4; }
.sec__note { font-size: 14px; color: var(--muted); }
.sec__lead { grid-column: 7 / span 6; }
.sec--navy .lead { color: var(--on-navy-2); }

/* ---------- Боли с переключателем ---------- */
.tabs { display: inline-flex; justify-self: end; border: 1px solid var(--gold); background: var(--paper-2); }
.tab { padding: 10px 22px; border: 0; background: transparent; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.tab[aria-selected="true"] { background: var(--teal-2); color: var(--on-navy); }
.tab:hover:not([aria-selected="true"]) { background: var(--teal-bg); }
.pains { display: flex; flex-direction: column; border-top: 1px solid var(--gold); }
.pain { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--gold-2); align-items: start; }
.pain:last-child { border-bottom: 1px solid var(--gold); }
.pain__title { font-size: 18px; font-weight: 600; color: var(--navy); }
.pain__text { font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Как устроена площадка ---------- */
.how { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: start; }
.steps { grid-column: span 6; display: flex; flex-direction: column; border-top: 1px solid var(--gold); }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--gold-2); }
.step:last-child { border-bottom: 1px solid var(--gold); }
.step__num { font-family: var(--font-display); font-size: 40px; line-height: 0.9; color: var(--gold-3); }
.step__title { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.step__text { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

.eimzo { grid-column: 8 / span 5; }
.eimzo .doc__frame { box-shadow: var(--shadow-paper); }
.eimzo__dots { display: inline-flex; gap: 6px; }
.eimzo__dots i { width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); background: transparent; transition: background-color 0.3s; }
.eimzo__dots i.is-on { background: var(--gold); }
.eimzo__stage { position: relative; min-height: 236px; padding: 8px 18px 18px; }
.eimzo__frame { position: absolute; inset: 8px 18px 18px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); pointer-events: none; }
.eimzo__frame.is-active { opacity: 1; transform: none; pointer-events: auto; }
.eimzo__icon { width: 36px; height: 36px; fill: none; stroke: var(--teal-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eimzo__title { font-family: var(--font-display); font-size: 24px; line-height: 1.1; color: var(--navy); }
.eimzo__text { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.eimzo__line { height: 28px; margin-top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='28' viewBox='0 0 260 28' fill='none' stroke='%23146C7A' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 20c14-14 22-14 28-2s10 8 18-4 14-10 22 2 12 10 22-2 14-14 24-2 12 12 22 0 12-12 22 0 12 12 22 0 12-12 24 0 14 10 24 0'/%3E%3C/svg%3E") left center / 260px 28px no-repeat; width: 260px; clip-path: inset(0 100% 0 0); }
.eimzo__frame.is-active .eimzo__line { animation: sign-draw 1.4s 0.2s var(--ease) both; }
@keyframes sign-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.eimzo__cert { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.eimzo__cert div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; opacity: 0; transform: translateX(-6px); }
.eimzo__cert dt { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.eimzo__cert dd { margin: 0; font-weight: 600; color: var(--ink); }
.eimzo__frame.is-active .eimzo__cert div { animation: cert-in 0.4s var(--ease) both; }
.eimzo__frame.is-active .eimzo__cert div:nth-child(1) { animation-delay: 0.25s; }
.eimzo__frame.is-active .eimzo__cert div:nth-child(2) { animation-delay: 0.55s; }
.eimzo__frame.is-active .eimzo__cert div:nth-child(3) { animation-delay: 0.85s; }
@keyframes cert-in { to { opacity: 1; transform: none; } }
.eimzo__frame.is-active .vbadge--big { animation: badge-pop 0.5s 0.3s var(--ease) both; }
@keyframes badge-pop { 0% { opacity: 0; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }

/* ---------- Цены на рынке ---------- */
.prices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: start; margin-bottom: 32px; }
.prices__copy { grid-column: span 5; display: flex; flex-direction: column; gap: 20px; }
.chart { grid-column: span 7; }
.chart .doc__frame { padding: 22px 24px 0; box-shadow: var(--shadow-paper); }
.chart .doc__foot { margin: 14px -24px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { font-size: 14px; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink-2); background: var(--paper-2); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--teal-2); color: var(--teal-2); }
.chip.is-on { background: var(--teal-2); color: var(--on-navy); border-color: var(--teal-2); }
.chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.chart__title { font-size: 16px; font-weight: 600; }
.chart__meta { font-size: 13px; color: var(--muted); text-align: right; }
.chart__plot { position: relative; height: 240px; padding-top: 30px; border-bottom: 1px solid var(--line-2); }
.chart__bars { position: absolute; left: 0; right: 0; bottom: 0; top: 30px; display: flex; align-items: flex-end; gap: 12px; padding: 0 8px; }
.chart__bar { flex: 1; height: calc(var(--h, 10) * 1%); min-height: 3px; background: var(--teal-2); transition: height 0.6s var(--ease), background-color 0.3s; }
.chart__bar.is-you { background: var(--navy); }
.chart__median { position: absolute; top: 12px; bottom: 0; left: 46%; width: 0; border-left: 1.5px dashed var(--gold); transition: left 0.6s var(--ease); }
.chart__median-label { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; padding: 3px 8px; background: var(--paper-2); border: 1px solid var(--gold); color: var(--navy); }
.chart__you { position: absolute; bottom: 0; left: 62%; width: 0; height: 0; transition: left 0.25s var(--ease); }
.chart__you-label { position: absolute; bottom: calc(var(--yh, 60) * 1% + 14px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; padding: 3px 8px; background: var(--navy); color: var(--gold-2); transition: bottom 0.4s var(--ease); }
.chart__you::after { content: ""; position: absolute; bottom: 0; left: -1px; width: 2px; height: calc(var(--yh, 60) * 1% + 8px); background: var(--navy); opacity: 0.5; transition: height 0.4s var(--ease); }
.chart__axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 8px 4px 0; }
.chart__ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.chart__ctl-label { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chart__ctl-value { font-size: 14px; color: var(--navy); min-width: 7ch; text-align: right; }
.chart__slider { width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.chart__slider::-webkit-slider-runnable-track { height: 2px; background: var(--line-2); }
.chart__slider::-moz-range-track { height: 2px; background: var(--line-2); }
.chart__slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--navy); border: 2px solid var(--gold); }
.chart__slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--navy); border: 2px solid var(--gold); }

/* ---------- Формы ---------- */
.form { margin-top: 8px; }
.form--bar { margin-top: 0; }
.form__body { position: relative; }
.form--bar .form__body { background: var(--paper-2); border: 1px solid var(--gold); padding: 22px 24px 20px; box-shadow: var(--shadow-paper); }
.form__title { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.bar { display: grid; gap: 24px; align-items: end; }
.bar--report { grid-template-columns: 1.4fr 0.8fr 1fr 1fr auto; }
.bar--waitlist { grid-template-columns: 1.1fr 0.8fr 1fr 1fr auto; }
.bar__action { align-self: end; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field__label { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field__opt { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.field__input { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; padding: 10px 0; font-size: 16px; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.field__input::placeholder { color: #A5AAB8; }
.field__input:focus { outline: none; border-bottom-color: var(--teal-2); box-shadow: 0 1px 0 var(--teal-2); }
.field__input[aria-invalid="true"] { border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
select.field__input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E1E44' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 22px; }
textarea.field__input { resize: vertical; min-height: 140px; line-height: 1.55; }
.field__input--lined { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--line) 31px, var(--line) 32px); background-attachment: local; line-height: 32px; padding-top: 0; }
.field__error { font-size: 13px; color: var(--red); margin-top: 2px; }
.form__consent, .form__fine { font-size: 12px; color: var(--muted); margin-top: 14px; }
.form__fine { color: var(--ink-2); font-size: 13px; }
.form__fine + .form__consent { margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__success { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; background: var(--paper-2); border: 1px solid var(--green); color: var(--ink); }
.form__success .icon { width: 26px; height: 26px; color: var(--green); }
.form__success strong { display: block; font-size: 17px; margin-bottom: 4px; }
.form__success p { color: var(--ink-2); }
.form__alert { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--red); color: var(--ink); background: #FFF7F5; }
.form__alert .icon { color: var(--red); }

/* Бланк заявки */
.blank { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 40px; padding: 26px 28px 28px; box-shadow: var(--shadow-paper); }
.blank__main { grid-row: 1; }
.blank__side { display: flex; flex-direction: column; gap: 20px; }
.blank__row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: end; padding-top: 8px; border-top: 1px solid var(--line); }
.rfq__intro { margin-bottom: 32px; }

/* ---------- Поставщикам ---------- */
.suppliers { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; align-items: start; }
.suppliers__copy { grid-column: span 6; display: flex; flex-direction: column; gap: 22px; }
.includes { display: flex; flex-direction: column; border-top: 1px solid var(--gold-line); margin-top: 4px; }
.includes li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gold-line-soft); font-size: 16px; line-height: 1.5; }
.includes__mark { width: 22px; height: 22px; fill: var(--gold); }
.suppliers__price { font-size: 17px; line-height: 1.55; color: var(--on-navy); }
.suppliers__sum { font-family: var(--font-display); font-size: 30px; color: var(--gold); white-space: nowrap; }
.suppliers__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

.showcase { grid-column: span 6; padding-top: 12px; }
.showcase__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.showcase__name { font-family: var(--font-display); font-size: 28px; line-height: 1.1; color: var(--navy); margin-top: 6px; }
.showcase__meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.showcase__status { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.showcase__inn { font-size: 13px; color: var(--ink-2); }
.showcase__tabs { display: flex; gap: 22px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.showcase__tabs .is-on { font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 6px; margin-bottom: -7px; }
.showcase__row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 130px; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.showcase__item { font-weight: 600; }
.showcase__lot { color: var(--muted); }
.showcase__price { text-align: right; }
.showcase__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 18px; background: var(--teal-bg); }
.showcase__num { display: block; font-family: var(--font-display); font-size: 26px; color: var(--navy); }

/* ---------- Тарифы ---------- */
.pricelist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; padding-top: 12px; }
.tariff { position: relative; display: flex; flex-direction: column; gap: 18px; background: var(--paper-2); border: 1px solid var(--gold); padding: 26px 26px 24px; box-shadow: var(--shadow-paper); }
.tariff--featured { outline: 1px solid var(--gold); outline-offset: 4px; }
.tariff__badge { position: absolute; top: -12px; left: 26px; background: var(--gold); color: var(--navy); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; }
.tariff__name { font-family: var(--font-display); font-size: 28px; color: var(--navy); }
.tariff__price { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--navy); }
.tariff__unit { font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.tariff__annual { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tariff__list { display: flex; flex-direction: column; border-top: 1px solid var(--gold); }
.tariff__list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.tariff__list li:last-child { border-bottom: 0; }
.tariff__action { margin-top: auto; }

/* ---------- Основатели ---------- */
.founders { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center; margin-bottom: 32px; }
.founders__copy { grid-column: span 8; display: flex; flex-direction: column; gap: 18px; }
.perks { display: flex; flex-direction: column; border-top: 1px solid var(--gold); }
.perks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--gold-2); font-size: 16px; line-height: 1.5; }
.perks li:last-child { border-bottom: 1px solid var(--gold); }
.founders__buyers { font-size: 14px; color: var(--muted); }
.stamp--founder { position: relative; grid-column: 10 / span 3; width: 200px; height: 200px; justify-self: center; transform: rotate(-8deg); }

/* ---------- Вопросы ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--gold); }
.faq__item { border-bottom: 1px solid var(--gold-2); }
.faq__item:last-child { border-bottom: 1px solid var(--gold); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; color: var(--navy); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 20px; height: 20px; color: var(--gold-3); transition: transform 0.25s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__body { padding: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }


/* ---------- Подвал ---------- */
.footer { background: var(--navy); color: var(--on-navy-2); border-top: 1px solid var(--gold-line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 24px 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 6px; }
.footer__logo { width: 200px; height: auto; }
.footer__slogan { color: var(--gold); }
.footer__text { text-align: right; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.footer__text strong { color: var(--on-navy); }
.footer__link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); }
.footer__link:hover { color: var(--gold-2); }
.footer__link .icon { width: 16px; height: 16px; }

/* ---------- Окно тарифа ---------- */
.dialog { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 32px)); width: 100%; }
.dialog::backdrop { background: rgba(11, 29, 70, 0.66); }
.dialog__inner { position: relative; background: var(--paper-2); color: var(--ink); border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 3px; padding: 28px 28px 24px; margin: 4px; animation: dialog-in 0.25s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dialog__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); }
.dialog__close:hover { color: var(--navy); }
.dialog__title { font-family: var(--font-display); font-size: 28px; line-height: 1.1; color: var(--navy); padding-right: 40px; }
.dialog__text { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.form__actions { grid-column: 1 / -1; }

/* ---------- Появление блоков ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .stamp--hero { opacity: 0; }
.js .reveal.is-visible .stamp--hero { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .stamp--hero { opacity: 1; }
  .eimzo__cert div { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 18px; }
  .nav__link { font-size: 14px; }
  .hero__copy { grid-column: span 6; }
  .registry { grid-column: span 6; }
  .pain { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 999px) {
  .nav { display: none; }
  .nav__toggle { display: inline-flex; }
  .header__actions .btn { display: none; }
  .js .nav__panel { display: block; }
  .nav__panel[hidden] { display: none; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 8px; gap: 36px; }
  .hero__roles { padding-bottom: 64px; }
  .hero__copy, .registry { grid-column: auto; }
  .registry { padding-top: 20px; }
  .stamp--hero { width: 140px; height: 140px; right: -12px; bottom: -30px; }
  .registry .doc__foot { min-height: 56px; padding-right: 120px; }
  .sec { padding: 56px 0; }
  .sec__head { grid-template-columns: 1fr; align-items: start; }
  .sec__head .sec__title, .sec__head .tabs, .sec__head .sec__note, .sec__head .sec__lead { grid-column: auto; }
  .tabs { justify-self: start; }
  .how, .prices, .suppliers, .founders { grid-template-columns: 1fr; }
  .steps, .eimzo, .prices__copy, .chart, .suppliers__copy, .showcase, .founders__copy { grid-column: auto; }
  .stamp--founder { grid-column: auto; justify-self: start; width: 160px; height: 160px; margin-top: 8px; }
  .bar--report, .bar--waitlist { grid-template-columns: 1fr 1fr; }
  .bar__action { grid-column: 1 / -1; }
  .blank { grid-template-columns: 1fr; padding: 22px 20px 24px; }
  .blank__row { grid-template-columns: 1fr 1fr; }
  .blank__row .bar__action { grid-column: 1 / -1; }
  .pricelist { grid-template-columns: 1fr; gap: 28px; }
  .grid { gap: 24px; }
  .c-4, .c-6, .c-8 { grid-column: 1 / -1; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__text { text-align: left; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header__inner { height: 60px; }
  .logo__mark { width: 36px; }
  .logo__word { font-size: 19px; }
  .hero__grid { padding-top: 28px; padding-bottom: 4px; }
  .badge { font-size: 12px; }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: 17px; }
  .role__label { font-size: 26px; }
  .roles { grid-template-columns: 1fr; margin-top: 8px; }
  .role { padding: 18px 0; }
  .role + .role { border-left: 0; border-top: 1px solid var(--gold-line-soft); padding-left: 0; }
  .role__body .btn { width: 100%; }
  .hero__roles { padding-bottom: 56px; }
  .hero .doc__frame { outline-offset: 2px; }
  .doc__rosette { width: 26px; height: 26px; }
  .doc__rosette--tl, .doc__rosette--tr { top: -15px; }
  .doc__rosette--bl, .doc__rosette--br { bottom: -15px; }
  .doc__rosette--tl, .doc__rosette--bl { left: -15px; }
  .doc__rosette--tr, .doc__rosette--br { right: -15px; }
  .doc__head { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 12px 6px; }
  .registry__table th, .registry__table td { padding: 10px 8px; font-size: 13px; }
  .registry__table th:nth-child(4), .registry__table td:nth-child(4) { display: none; }
  .registry__table td.mono { font-size: 12px; }
  .vbadge { font-size: 10px; padding: 2px 6px; }
  .stamp--hero { width: 108px; height: 108px; right: -6px; bottom: -24px; }
  .registry .doc__foot { min-height: 48px; padding-right: 96px; }
  .sec { padding: 44px 0; }
  .sec__title { font-size: 28px; }
  .pain { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .step { grid-template-columns: 40px minmax(0, 1fr); }
  .step__num { font-size: 32px; }
  .eimzo__stage { min-height: 260px; }
  .chart .doc__frame { padding: 16px 14px 0; }
  .chart .doc__foot { margin: 12px -14px 0; }
  .chips { gap: 6px; }
  .chip { font-size: 13px; padding: 7px 11px; }
  .chart__head { flex-direction: column; gap: 4px; }
  .chart__meta { text-align: left; }
  .chart__plot { height: 200px; }
  .chart__bars { gap: 6px; padding: 0 4px; }
  .chart__axis span:nth-child(2), .chart__axis span:nth-child(4) { display: none; }
  .chart__ctl { grid-template-columns: 1fr auto; }
  .chart__ctl .chart__slider { grid-column: 1 / -1; }
  .form--bar .form__body { padding: 18px 16px 16px; }
  .bar--report, .bar--waitlist, .blank__row { grid-template-columns: 1fr; gap: 18px; }
  .showcase__head { flex-direction: column; }
  .showcase__status { align-items: flex-start; flex-direction: row; gap: 12px; }
  .showcase__name { font-size: 22px; }
  .showcase__tabs { gap: 14px; font-size: 13px; overflow-x: auto; }
  .showcase__row { grid-template-columns: minmax(0, 1fr) 100px; }
  .showcase__lot { display: none; }
  .showcase__stats { gap: 8px; padding: 12px; }
  .showcase__num { font-size: 20px; }
  .showcase__stats .label { font-size: 9px; }
  .suppliers__actions .btn { width: 100%; }
  .tariff { padding: 22px 18px 20px; }
  .dialog__inner { padding: 22px 18px 18px; }
  .dialog__title { font-size: 24px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__logo { width: 160px; }
}
