/* ==========================================================================
   Цифра.Trade — сайт (редизайн 10.2026)
   Светлая «бумажная» тема, один тёмно-зелёный блок (офлайн), лаймовый маркер.
   Заголовки — Onest, текст — Golos Text, иконки — Iconoir (спрайт icons.svg).
   ========================================================================== */

:root {
  --paper:     #F6F5F0;
  --paper-2:   #EFEEE7;
  --white:     #FFFFFF;
  --ink:       #15191C;
  --ink-2:     #3C444A;
  --muted:     #6B747B;
  --muted-2:   #98A1A8;
  --line:      #E3E2DA;
  --line-2:    #EDECE5;

  --green:     #0F8A3F;
  --green-700: #0B6B31;
  --green-100: #E3F4E9;
  --forest:    #0B2E1C;
  --forest-2:  #10402A;
  --lime:      #C8FF00;
  --lime-soft: #EDFFA6;
  --warn:      #D97706;
  --bad:       #D92D20;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(21, 25, 28, .05);
  --sh-md: 0 10px 30px rgba(21, 25, 28, .08);
  --sh-lg: 0 28px 64px rgba(21, 25, 28, .16);

  --wrap: 1280px;
  --gutter: 24px;
  --header: 72px;
}

/* ------------------------------------------------------------ Основа ----- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font-family: "Golos Text", Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3, h4 {
  font-family: Onest, "Golos Text", Inter, sans-serif; color: var(--ink);
  margin: 0 0 .5em; font-weight: 700; letter-spacing: -.025em; line-height: 1.08;
}
h1 { font-size: clamp(40px, 5.2vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.0; }
h2 { font-size: clamp(30px, 3.4vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.25; letter-spacing: -.015em; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding: clamp(72px, 8vw, 120px) 0; }
.section--white { background: var(--white); }
.section--forest { background: var(--forest); color: rgba(255,255,255,.72); }
.section--forest h2, .section--forest h3 { color: #fff; }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }

.lead { font-size: clamp(18px, 1.3vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.section--forest .lead { color: rgba(255,255,255,.78); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--lime); border: 1px solid #A9D800; }
.section--forest .eyebrow { color: var(--lime); }
.section-head { max-width: 62ch; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-head p:last-child { margin-bottom: 0; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; }
.section-head--row > div { max-width: 62ch; }
.muted { color: var(--muted); }

/* Лаймовый маркер в заголовке */
.mark { position: relative; white-space: nowrap; }
.mark::before { content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .42em; background: var(--lime); border-radius: .12em; z-index: -1; transform: rotate(-1deg); }
.mark { z-index: 0; }

/* ------------------------------------------------------------ Иконки ----- */

.ic { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--ink); }
.ic--sm { width: 18px; height: 18px; }

/* ----------------------------------------------------------- Кнопки ------ */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 26px; border: 1.5px solid transparent; border-radius: var(--r-pill); font-family: inherit; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.btn .ic { width: 19px; height: 19px; color: currentColor; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; color: #fff; transform: translateY(-1px); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-700); color: #fff; }
.btn--secondary { background: transparent; color: var(--ink); border-color: #C9CBC2; font-weight: 500; }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #B8EE00; color: var(--ink); }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 20px 8px 16px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); border: 1.5px solid var(--line); transition: border-color .2s, transform .2s; }
.badge:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.badge .ic { width: 24px; height: 24px; color: var(--ink); }
.badge small { display: block; font-size: 10.5px; letter-spacing: .04em; color: var(--muted); line-height: 1.1; }
.badge b { display: block; font-size: 16px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.badge--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge--dark:hover { background: #000; color: #fff; }
.badge--dark .ic { color: #fff; }
.badge--dark small { color: rgba(255,255,255,.7); }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green-700); }
.link .ic { width: 18px; height: 18px; color: currentColor; transition: transform .2s; }
.link:hover .ic { transform: translateX(3px); }

/* ------------------------------------------------------------ Шапка ------ */

.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(246, 245, 240, .88); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.site-header.is-solid { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header); position: relative; }
.site-header__logo img { height: 26px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink-2); font-size: 15.5px; font-weight: 500; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--ink); }
.nav__contact { margin-left: 6px; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px 0 13px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); color: var(--ink) !important; font-size: 15px; font-weight: 600 !important; transition: background-color .2s, color .2s; }
.nav__contact .ic { width: 18px; height: 18px; color: currentColor; }
.nav__contact:hover { background: var(--ink); color: #fff !important; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4.4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-1.6px); }

/* ============================================================== HERO ===== */

.hero { position: relative; padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 5vw, 72px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__lead { font-size: clamp(17.5px, 1.3vw, 20px); color: var(--ink-2); max-width: 54ch; line-height: 1.55; }
.hero h1 { margin-bottom: 26px; }
.hero__points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 14px 8px 11px; }
.hero__points .ic { width: 17px; height: 17px; color: var(--green); }

/* Сцена: два телефона на лаймовом пятне */
.stage { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 600px; }
.stage::before { content: ""; position: absolute; left: 8%; right: 0; top: 8%; bottom: 6%; background: var(--lime); border-radius: 48px; transform: rotate(-4deg); z-index: 0; }
.stage::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(21,25,28,.14) 1px, transparent 1.4px); background-size: 18px 18px; z-index: 0; mask-image: linear-gradient(180deg, transparent 0, #000 25%, #000 70%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 25%, #000 70%, transparent 100%); pointer-events: none; }
.stage .device { position: relative; z-index: 2; }
.stage .device--a { width: min(300px, 58%); margin-right: -6%; transform: translateY(-16px); }
.stage .device--b { width: min(250px, 48%); z-index: 1; transform: translateY(24px) rotate(5deg); }

.device { width: 100%; max-width: 300px; background: #16191C; border-radius: 42px; padding: 8px; box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.08); }
.device__screen { position: relative; overflow: hidden; border-radius: 34px; background: #fff; }
.device__screen img { width: 100%; }
.device__status { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 16px; background: #2EA24D; color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; }
.device__status--light { background: #fff; color: var(--ink); }
.device__time { margin-right: auto; }
.device__sys { display: flex; align-items: center; gap: 5px; }
.device__sys svg { display: block; height: 9px; width: auto; fill: currentColor; }
.device__gesture { height: 15px; background: #fff; display: flex; align-items: center; justify-content: center; }
.device__gesture span { width: 36%; height: 3.5px; border-radius: 3px; background: rgba(21,25,28,.3); }
.device--sm { max-width: 240px; border-radius: 34px; padding: 7px; }
.device--sm .device__screen { border-radius: 27px; }

/* ---------------------------------------------------------- Факты -------- */

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: flex; gap: 14px; align-items: center; padding: 22px 24px 22px 0; border-left: 1px solid var(--line); padding-left: 24px; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact .ic { color: var(--green); width: 24px; height: 24px; }
.fact b { display: block; font-family: Onest, sans-serif; font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.fact span { font-size: 14px; color: var(--muted); }
.fact img { height: 28px; width: auto; }

/* ---------------------------------------------------------- Один день ---- */

.day { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); position: relative; }
.day::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--line); }
.day__item { position: relative; padding-top: 36px; }
.day__item::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); box-sizing: border-box; }
.day__time { position: absolute; left: 20px; top: 0; font-family: Onest, sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: .02em; }
.day__item .device { max-width: none; margin-bottom: 20px; }
.day__item h3 { font-size: 20px; margin-bottom: 6px; }
.day__item p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.55; }

/* ---------------------------------------------------------- Бенто -------- */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: clamp(16px, 2vw, 24px); }
.tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-sm); }
.tile--wide { grid-column: span 2; }
.tile__body { padding: clamp(22px, 2.4vw, 32px); }
.tile__who { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); margin-bottom: 10px; }
.tile h3 { font-size: clamp(20px, 1.7vw, 24px); margin-bottom: 8px; }
.tile p { margin: 0; font-size: 15.5px; color: var(--muted); }
.tile__media { margin-top: auto; background: var(--paper-2); border-top: 1px solid var(--line-2); padding: 20px 20px 0; }
.tile__media img { border-radius: 10px 10px 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--sh-md); object-fit: cover; object-position: top; width: 100%; }
.tile--wide .tile__media img { height: 330px; }
.tile:not(.tile--wide) .tile__media img { height: 220px; }
.tile__media--phone { display: flex; justify-content: center; }
.tile__media--phone img { width: 62%; max-width: 190px; border-radius: 18px 18px 0 0; height: 220px; }

/* ---------------------------------------------------------- Фичи --------- */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.feature { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--lime-soft); display: grid; place-items: center; margin-bottom: 18px; }
.feature__icon .ic { width: 22px; height: 22px; color: var(--ink); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.55; }

/* ---------------------------------------------------------- Офлайн ------- */

.offline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: off; }
.offline__step { position: relative; padding: 22px 20px 20px; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.offline__step::before { counter-increment: off; content: counter(off); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--ink); font-family: Onest, sans-serif; font-weight: 800; font-size: 13px; margin-bottom: 14px; }
.offline__step b { display: block; font-family: Onest, sans-serif; font-size: 17px; color: #fff; margin-bottom: 4px; letter-spacing: -.01em; }
.offline__step span { font-size: 14px; color: rgba(255,255,255,.65); }
.offline__step--warn::before { background: var(--warn); color: #fff; }
.offline__step--ok { background: rgba(200,255,0,.1); border-color: rgba(200,255,0,.3); }

/* ---------------------------------------------------------- 1С ----------- */

.exchange { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.exchange__col { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.exchange__col small { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.exchange__col h3 { font-size: 21px; margin-bottom: 14px; }
.exchange__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15.5px; color: var(--ink-2); }
.exchange__col li { display: flex; gap: 9px; align-items: center; }
.exchange__col li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.exchange__col--accent { background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.75); }
.exchange__col--accent h3 { color: #fff; }
.exchange__col--accent small { color: rgba(255,255,255,.55); }
.exchange__col--accent ul { color: rgba(255,255,255,.85); }
.exchange__col--accent li::before { background: var(--lime); }
.exchange__arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.exchange__arrow .ic { width: 26px; height: 26px; color: var(--ink); }
.note { padding: 20px 24px; background: var(--lime-soft); border-radius: var(--r-md); border: 1px solid #D7F07A; font-size: 16px; color: var(--ink); }
.note p { margin: 0; }
.note--plain { background: #fff; border-color: var(--line); color: var(--ink-2); }

.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 16.5px; }
.icon-list .ic { width: 21px; height: 21px; color: var(--green); margin-top: 3px; }
.icon-list b { color: var(--ink); }
.section--forest .icon-list li { color: rgba(255,255,255,.78); }
.section--forest .icon-list .ic { color: var(--lime); }
.section--forest .icon-list b { color: #fff; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 72px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media--center { display: flex; justify-content: center; }
.split__media--pair { display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
.split__media--pair .device:last-child { transform: translateY(-36px); }

.shot { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--sh-lg); margin: 0; }
.shot__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line-2); }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D9D8CF; }
.shot__bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted-2); font-family: ui-monospace, Menlo, Consolas, monospace; }
.shot img { width: 100%; }
.shot__cap { padding: 14px 18px; border-top: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---------------------------------------------------------- Статус ------- */

.status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.status__item { border-top: 2px solid var(--ink); padding-top: 20px; }
.status__item b { display: block; font-family: Onest, sans-serif; font-size: clamp(20px, 1.7vw, 24px); font-weight: 800; color: var(--ink); letter-spacing: -.025em; margin-bottom: 8px; }
.status__item span { font-size: 15.5px; color: var(--muted); }

/* ---------------------------------------------------------- Шаги / FAQ --- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); counter-reset: step; }
.step { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--ink); font-family: Onest, sans-serif; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15.5px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: clamp(22px, 2.4vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 15.5px; color: var(--muted); }

.download { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.download__meta { color: var(--muted); font-size: 15px; }

.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: Onest, sans-serif; font-weight: 700; font-size: 17.5px; color: var(--ink); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 500; color: var(--ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; font-size: 16px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- Финальный CTA  */

.cta { position: relative; overflow: hidden; background: var(--ink); color: rgba(255,255,255,.75); border-radius: var(--r-lg); padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.cta::before { content: ""; position: absolute; right: -14%; top: -50%; width: 48%; aspect-ratio: 1; border-radius: 50%; background: rgba(200,255,0,.2); filter: blur(100px); pointer-events: none; }
.cta h2 { color: #fff; }
.cta .lead { color: rgba(255,255,255,.75); }
.cta__list { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cta__list a, .cta__list .row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 16px; font-weight: 500; transition: background-color .2s; }
.cta__list a:hover { background: rgba(255,255,255,.12); color: #fff; }
.cta__list .ic { width: 22px; height: 22px; color: var(--lime); }
.cta__list small { display: block; font-size: 13px; font-weight: 400; color: rgba(255,255,255,.6); }
.cta__list a.is-placeholder { opacity: .5; border-style: dashed; cursor: default; }

/* ---------------------------------------------------------- Подвал ------- */

.site-footer { border-top: 1px solid var(--line); padding: clamp(40px, 4vw, 64px) 0 32px; font-size: 14.5px; color: var(--muted); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer__logo img { height: 24px; width: auto; margin-bottom: 14px; }
.site-footer__about { max-width: 36ch; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; }
.hub { display: inline-flex; align-items: center; gap: 12px; }
.hub img { height: 32px; width: auto; background: #0D100F; padding: 5px 9px; border-radius: 8px; }
.hub span { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------- Документ ----- */

.doc { max-width: 76ch; font-size: 16.5px; }
.doc h2 { font-size: clamp(22px, 2vw, 28px); margin: 1.6em 0 .6em; }
.doc h2:first-child { margin-top: 0; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc__box { padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin: 1em 0; }
.doc__date { font-size: 14.5px; color: var(--muted); }
.doc code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }

/* ---------------------------------------------------------- Разное ------- */

.is-placeholder { border-bottom: 1px dashed currentColor; }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
section[id], [id].section, .cta[id] { scroll-margin-top: calc(var(--header) + 12px); }

/* ======================================================= Адаптив ========== */

@media (max-width: 1100px) {
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .day { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day::before { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features, .steps, .cards, .status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exchange { grid-template-columns: 1fr; }
  .exchange__arrow { flex-direction: row; }
  .exchange__arrow .ic { transform: rotate(90deg); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: calc(100% + 8px); right: var(--gutter); left: var(--gutter); flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-lg); }
  .nav[data-open="false"] { display: none; }
  .nav a:not(.btn) { padding: 12px 14px; border-radius: 10px; }
  .nav a:not(.btn):hover { background: var(--paper); }
  .nav__contact { margin: 6px 0 0; justify-content: center; }
  .hero__grid, .split, .cta { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .stage { min-height: 0; margin-top: 24px; padding: 24px 0; }
  .stage .device--a { width: min(270px, 56%); }
  .stage .device--b { width: min(220px, 44%); }
  .tile--wide { grid-column: span 2; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .section { padding: 60px 0; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact { border-left: 0; padding-left: 0; padding: 14px 0; border-top: 1px solid var(--line-2); }
  .fact:first-child { border-top: 0; }
  .day, .bento, .features, .steps, .cards, .cards--2, .status, .offline { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .day__item .device { max-width: 240px; }
  .btn { width: 100%; }
  .badge { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .split__media--pair .device:last-child { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero__points li { font-size: 13.5px; }
}

[hidden] { display: none !important; }

/* Логотип Astana Hub тёмный, на светлом фоне показываем как есть, без плашки */
.hub img, .fact img { background: none; padding: 0; border-radius: 0; height: 30px; }

.stage { align-items: center; }
.stage .device--a { transform: translateY(0); }
.stage .device--b { transform: translateY(36px) rotate(5deg); }

/* ======================================================= Инструкции ======== */
/* Скрытые страницы /instrukcii/*: торговому — коротко и крупно, супервайзеру — с оглавлением. */
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.guide__toc { position: sticky; top: calc(var(--header) + 16px); font-size: 14.5px; }
.guide__toc b { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.guide__toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.guide__toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); }
.guide__toc a:hover { background: #fff; color: var(--ink); }
.guide__toc small { display: block; font-size: 12px; color: var(--muted-2); margin-top: 10px; line-height: 1.5; }
.guide__body { min-width: 0; }
.guide__body > section { padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid var(--line); }
.guide__body > section:first-child { border-top: 0; padding-top: 0; }
.guide__body h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 14px; display: flex; align-items: baseline; gap: 14px; }
.guide__body h2 .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 16px; display: inline-grid; place-items: center; transform: translateY(-4px); }
.guide__body h3 { font-size: 19px; margin: 22px 0 8px; }
.guide__body p { max-width: 70ch; }
.guide__body ul { padding-left: 1.2em; margin: 0 0 1em; max-width: 70ch; }
.guide__body li { margin-bottom: .35em; }
.guide__body li::marker { color: var(--green); }
.guide__intro { font-size: 18px; max-width: 70ch; }

/* Ряд «экран + текст» */
.g-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px); align-items: start; margin: 18px 0 26px; }
.g-row .device { max-width: 210px; border-radius: 30px; padding: 6px; box-shadow: var(--sh-md); }
.g-row .device__screen { border-radius: 24px; }
.g-row--wide { grid-template-columns: 1fr; }
.g-row--wide .shot { margin-bottom: 14px; }
.g-row .shot { border-radius: var(--r-md); box-shadow: var(--sh-md); }
.g-row h3:first-child { margin-top: 0; }

/* Крупные шаги для торгового */
.g-steps { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; counter-reset: gs; max-width: 70ch; }
.g-steps li { position: relative; padding: 12px 14px 12px 52px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 16.5px; line-height: 1.5; }
.g-steps li::before { counter-increment: gs; content: counter(gs); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-family: Onest, sans-serif; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.g-steps b { color: var(--ink); }
.g-steps li.ok::before { background: var(--green); }
.kbd { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92em; white-space: nowrap; }
.btnname { font-weight: 600; color: var(--ink); }

/* Предупреждения и запреты */
.g-note { padding: 14px 18px; border-radius: var(--r-md); margin: 14px 0 18px; font-size: 15.5px; max-width: 70ch; border: 1px solid; }
.g-note--stop { background: #FDF0EF; border-color: #F4C6C2; color: #7A1C14; }
.g-note--ok { background: var(--lime-soft); border-color: #D7F07A; color: var(--ink); }
.g-note--info { background: #fff; border-color: var(--line); color: var(--ink-2); }
.g-note b { display: block; margin-bottom: 2px; }

/* Таблица «если что-то не так» */
.g-table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 10px 0 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.g-table th, .g-table td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line-2); vertical-align: top; }
.g-table th { background: var(--paper); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.g-table td:first-child { font-weight: 600; color: var(--ink); width: 38%; }

/* Карточки-подсказки «главное за минуту» */
.g-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 8px; }
.g-card { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 15px; }
.g-card b { display: block; font-family: Onest, sans-serif; font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.g-card .ic { width: 22px; height: 22px; color: var(--green); margin-bottom: 8px; }

/* Шапка инструкции */
.guide-hero { padding: clamp(36px, 4vw, 56px) 0 clamp(20px, 2vw, 28px); }
.guide-hero .lead { max-width: 64ch; }
.guide-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.guide-hero__meta span { font-size: 13.5px; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); color: var(--muted); }

@media (max-width: 1000px) {
  .guide { grid-template-columns: 1fr; }
  .guide__toc { position: static; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
  .guide__toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g-row { grid-template-columns: 1fr; }
  .g-row .device { max-width: 220px; }
  .guide__toc ol { grid-template-columns: 1fr; }
  .g-table td:first-child { width: auto; }
  .g-table, .g-table thead, .g-table tbody, .g-table tr, .g-table td, .g-table th { display: block; }
  .g-table th { display: none; }
  .g-table td { border-top: 0; padding-top: 4px; }
  .g-table td:first-child { padding-top: 12px; border-top: 1px solid var(--line-2); }
}

/* --- Инструкции на телефоне: липкая лента разделов, свёртки, лайтбокс ---- */
.g-fold > summary { list-style: none; cursor: pointer; }
.g-fold > summary::-webkit-details-marker { display: none; }
.g-fold > summary h2 { margin-bottom: 14px; }
.g-fold:not([open]) > summary h2::after { content: "показать"; margin-left: auto; font: 600 13px/1 "Golos Text", sans-serif; color: var(--green-700); padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; letter-spacing: 0; }
.g-fold[open] > summary h2::after { content: "свернуть"; margin-left: auto; font: 600 13px/1 "Golos Text", sans-serif; color: var(--muted); padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; letter-spacing: 0; }
@media (min-width: 1001px) { .g-fold > summary h2::after { display: none !important; } .g-fold > summary { pointer-events: none; } }

.shot--zoom { cursor: zoom-in; }
.shot__hint { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(21, 25, 28, .96); overflow: auto; -webkit-overflow-scrolling: touch; }
.lightbox[hidden] { display: none; }
.lightbox img { display: block; width: 1200px; max-width: none; margin: 56px 16px 24px; border-radius: 8px; background: #fff; }
.lightbox__close { position: fixed; top: 12px; right: 12px; z-index: 201; min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill); border: 0; background: #fff; color: var(--ink); font: 600 15px/1 "Golos Text", sans-serif; }
.lightbox__hint { position: fixed; left: 12px; top: 18px; color: rgba(255,255,255,.8); font-size: 13.5px; }
body.has-lightbox { overflow: hidden; }

@media (max-width: 1000px) {
  .guide__toc { position: sticky; top: var(--header); z-index: 40; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter); background: rgba(246,245,240,.96); backdrop-filter: blur(8px); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .guide__toc b, .guide__toc small { display: none; }
  .guide__toc ol { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .guide__toc ol::-webkit-scrollbar { display: none; }
  .guide__toc li { flex: none; }
  .guide__toc a { white-space: nowrap; padding: 7px 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
  .guide__toc a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
  .guide__body > section { scroll-margin-top: calc(var(--header) + 60px); }
  .shot__hint { display: block; font-size: 13px; color: var(--muted); margin: 6px 0 0; }
  .g-row--wide .shot { margin-bottom: 4px; }
}
@media (max-width: 1000px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide__toc { min-width: 0; width: calc(100% + 2 * var(--gutter)); }
  .guide__toc ol { max-width: 100%; }
}
