/* ТрейнАп — платформа обучения, вебинаров и хранилища материалов. Общий стиль. */

:root {
  /* поверхности — светлая рабочая тема, не «кремовый AI-дефолт»: холодный тёплый серо-зелёный, не терракота */
  --bg:      #eceee7;
  --bg-2:    #f5f6f1;
  --surface: #ffffff;
  --surface-2:#f1f2ec;
  --stroke:  rgba(20,30,24,.11);
  --stroke-2:rgba(20,30,24,.20);

  /* текст */
  --ink:     #182119;
  --ink-2:   #45514a;
  --muted:   #6d7a71;
  --muted-2: #93a096;

  /* акценты — два разного назначения, без единственного неонового */
  --teal:    #12594e;   /* бренд / CTA / прогресс */
  --teal-d:  #0c4038;
  --teal-l:  #e4efec;
  --ochre:   #b5741f;   /* live / сертификат / акцент внимания */
  --ochre-l: #f5e9d6;
  --live:    #3d7a52;   /* статус ок */
  --alert:   #a5402b;   /* деградация / ошибка */
  --alert-l: #f6e4df;

  --serif: Georgia, "Iowan Old Style", "Noto Serif", "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono:  ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;

  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);

  --fs-xs:  .6875rem;
  --fs-sm:  .8125rem;
  --fs-base:1rem;
  --fs-lg:  1.125rem;

  --r-sm: 4px;
  --r-md: 7px;
  --r-lg: 12px;

  --sh-1: 0 1px 2px rgba(20,30,24,.06);
  --sh-2: 0 2px 6px rgba(20,30,24,.07), 0 1px 2px rgba(20,30,24,.06);
  --sh-3: 0 10px 30px -8px rgba(20,30,24,.16), 0 2px 8px rgba(20,30,24,.08);

  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; line-height: 1.14; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num  { font-variant-numeric: tabular-nums; }
.teal { color: var(--teal); }
.ochre { color: var(--ochre); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }

/* ---------------------------------------------------------- eyebrow / labels */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--ochre); display: inline-block; }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  backdrop-filter: saturate(1.15) blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.nav { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__name {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.2rem; letter-spacing: -.005em;
}
.nav__spacer { flex: 1 1 auto; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a {
  font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  padding: 4px 0; position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--ochre);
}
.nav__actions { display: flex; align-items: center; gap: 10px; }
.only-mobile { display: none; }

.btn {
  --bg-b: var(--teal); --fg: #fff; --bd: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .01em; line-height: 1;
  padding: 11px 18px; color: var(--fg); background: var(--bg-b); border: 1px solid var(--bd); border-radius: var(--r-md);
  cursor: pointer; transition: transform .12s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
  box-shadow: var(--sh-1);
}
.btn:hover { background: var(--teal-d); box-shadow: var(--sh-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg-b: var(--surface); --fg: var(--ink); --bd: var(--stroke-2); }
.btn--ghost:hover { background: var(--surface-2); box-shadow: var(--sh-1); }
.btn--outline { --bg-b: transparent; --fg: var(--teal); --bd: var(--teal); box-shadow: none; }
.btn--outline:hover { background: var(--teal-l); box-shadow: none; }
.btn--ochre { --bg-b: var(--ochre); --fg: #fff; --bd: var(--ochre); }
.btn--ochre:hover { background: #96601a; }
.btn--danger { --bg-b: transparent; --fg: var(--alert); --bd: var(--alert); box-shadow: none; }
.btn--danger:hover { background: var(--alert-l); box-shadow: none; }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 13px; font-size: var(--fs-xs); }
.btn--lg { padding: 15px 24px; font-size: var(--fs-base); }
.btn[disabled] { opacity: .55; cursor: default; transform: none !important; }

.nav__burger {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--stroke-2); border-radius: var(--r-md); color: var(--ink); cursor: pointer;
}

/* ---------------------------------------------------------- sections */
.section { padding: clamp(52px, 7vw, 96px) 0; border-bottom: 1px solid var(--stroke); }
.section--tight { padding: clamp(28px, 4vw, 44px) 0; }
.section--flush { border-bottom: none; }
.section--alt { background: var(--bg-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 54ch; }

/* ---------------------------------------------------------- hero */
.hero { padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(44px, 6vw, 76px); border-bottom: 1px solid var(--stroke); position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(760px 440px at 84% 0%, color-mix(in srgb, var(--ochre) 10%, transparent), transparent 72%);
}
.hero__grid { display: grid; grid-template-columns: 1.2fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: start; position: relative; z-index: 1; }
.hero__lead h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -.015em;
}
.hero__lead h1 em { font-style: normal; color: var(--teal); }
.hero__slogan { margin: 20px 0 0; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-2); max-width: 48ch; line-height: 1.6; }
.hero__meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__meta span { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.hero__meta b { color: var(--ink); font-weight: 700; }
.hero__cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------- sync-panel (сигнатура: синхронизация с облаком) */
.sync-panel {
  border: 1px solid var(--stroke-2); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-3);
  position: relative; z-index: 1; overflow: hidden;
}
.sync-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--stroke);
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.sync-panel__head .chan { color: var(--teal); }
.sync-rows { padding: 14px 16px; display: flex; flex-direction: column; gap: 0; }
.sync-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--stroke); }
.sync-row:last-child { border-bottom: 0; }
.sync-row .ring { flex: none; }
.sync-row__body { flex: 1 1 auto; min-width: 0; }
.sync-row__name { font-size: .9rem; font-weight: 600; }
.sync-row__meta { margin-top: 2px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.sync-readout { border-top: 1px solid var(--stroke); background: var(--surface-2); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; }
.sync-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: var(--fs-sm); }
.sync-line .k { color: var(--muted); }
.sync-line .v { color: var(--ink); font-weight: 700; }
.sync-line .v.is-warn { color: var(--alert); }
.sync-status { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; }
.dot--live { animation: dotpulse 2.2s var(--ease) infinite; }
.sync-status.is-degraded .dot { background: var(--alert); }
@keyframes dotpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent);} 70% { box-shadow: 0 0 0 6px transparent;} 100% { box-shadow: 0 0 0 0 transparent;} }

/* прогресс-кольцо — единственный устойчивый мотив (курс/квота/заполненность) */
.ring { width: 34px; height: 34px; }
.ring circle { fill: none; stroke-width: 3.2; }
.ring .ring__track { stroke: var(--stroke-2); }
.ring .ring__val { stroke: var(--teal); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .4s var(--ease); }
.ring--ochre .ring__val { stroke: var(--ochre); }
.ring--alert .ring__val { stroke: var(--alert); }

/* ---------------------------------------------------------- metrics band */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-2); overflow: hidden; }
.metric { padding: 24px 22px; border-right: 1px solid var(--stroke); }
.metric:last-child { border-right: 0; }
.metric__v { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.metric__v .u { color: var(--ochre); font-family: var(--mono); font-size: .55em; }
.metric__k { margin-top: 9px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------- product cards (4, не список фич) */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 24px 22px; display: flex; flex-direction: column; gap: 13px; box-shadow: var(--sh-1); transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.product-card:hover { box-shadow: var(--sh-3); transform: translateY(-2px); }
.product-card__icon { width: 38px; height: 38px; color: var(--teal); }
.product-card h3 { font-size: 1.16rem; }
.product-card p { color: var(--ink-2); font-size: .9rem; line-height: 1.55; }
.product-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.product-card__link { margin-top: 4px; font-family: var(--sans); font-weight: 700; font-size: var(--fs-sm); color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.product-card__link svg { width: 14px; height: 14px; transition: transform .15s var(--ease); }
.product-card:hover .product-card__link svg { transform: translateX(3px); }

.tag {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .02em;
  color: var(--ink-2); padding: 3px 9px; border: 1px solid var(--stroke-2); background: var(--surface-2); border-radius: var(--r-sm);
}
.tag--live { color: var(--ochre); border-color: var(--ochre); background: var(--ochre-l); }

/* module detail sections (courses/webinars/conferences/storage) */
.mod-hero { padding: clamp(40px,6vw,64px) 0 clamp(28px,4vw,40px); border-bottom: 1px solid var(--stroke); }
.mod-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px,4vw,48px); align-items: center; }
.mod-hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin-top: 14px; }
.mod-hero p { margin-top: 16px; color: var(--ink-2); max-width: 56ch; line-height: 1.6; }
.mod-hero__stats { display: flex; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.mod-hero__stat { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--stroke); font-size: .92rem; }
.mod-hero__stat:last-child { border-bottom: 0; }
.mod-hero__stat .k { color: var(--muted); }
.mod-hero__stat .v { font-family: var(--mono); font-weight: 700; color: var(--ink); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 20px; box-shadow: var(--sh-1); }
.feature-card h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.feature-card p { margin-top: 8px; color: var(--ink-2); font-size: .89rem; line-height: 1.55; }

.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.role-card { border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 18px; background: var(--surface-2); }
.role-card .role-tag { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.role-card h4 { margin-top: 8px; font-family: var(--sans); font-size: 1rem; }
.role-card p { margin-top: 6px; color: var(--muted); font-size: .86rem; }

.feature-list { list-style: none; margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; }
.feature-list li { padding-left: 22px; position: relative; font-size: .95rem; color: var(--ink-2); }
.feature-list li::before { content: "—"; position: absolute; left: 0; color: var(--teal); font-family: var(--mono); }

/* schedule (webinars) */
.schedule { border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-2); overflow: hidden; }
.sched-row { display: grid; grid-template-columns: 130px 1fr 150px 120px; gap: 16px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--stroke); }
.sched-row:last-child { border-bottom: 0; }
.sched-row .dt { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.sched-row .ttl { font-weight: 600; font-size: .95rem; }
.sched-row .ttl span { display: block; margin-top: 3px; font-weight: 400; color: var(--muted); font-size: .82rem; font-family: var(--sans); }
.sched-row .spk { font-size: .84rem; color: var(--ink-2); }
.sched-status { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 20px; text-align: center; }
.sched-status.is-upcoming { color: var(--teal); background: var(--teal-l); }
.sched-status.is-live { color: var(--ochre); background: var(--ochre-l); }
.sched-status.is-done { color: var(--muted); background: var(--surface-2); }

/* курс — программа по модулям */
.curriculum { border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-2); overflow: hidden; }
.curriculum__item { border-bottom: 1px solid var(--stroke); padding: 18px 20px; display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: start; }
.curriculum__item:last-child { border-bottom: 0; }
.curriculum__no { font-family: var(--serif); font-size: 1.3rem; color: var(--muted-2); }
.curriculum__body h4 { font-family: var(--sans); font-size: .98rem; font-weight: 700; }
.curriculum__body p { margin-top: 5px; color: var(--muted); font-size: .85rem; }
.curriculum__len { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }

/* webinar landing page */
.event-hero { padding: clamp(40px,6vw,64px) 0; border-bottom: 1px solid var(--stroke); background: linear-gradient(180deg, var(--teal-l), var(--bg) 70%); }
.event-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px,4vw,48px); align-items: start; }
.event-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ochre); background: var(--ochre-l); padding: 6px 12px; border-radius: 20px; }
.event-hero h1 { margin-top: 16px; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.event-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-2); }
.event-meta b { color: var(--ink); }
.speaker-grid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.speaker-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 14px; box-shadow: var(--sh-1); }
.speaker-card__ava { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-l); color: var(--teal); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; flex: none; }
.speaker-card__name { font-weight: 700; font-size: .92rem; }
.speaker-card__role { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.reg-card { background: var(--surface); border: 1px solid var(--stroke-2); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 24px; }
.reg-card h3 { font-size: 1.15rem; }
.reg-card__note { margin-top: 6px; color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------- steps (реальная последовательность) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-2); overflow: hidden; }
.step { padding: 26px 22px; border-right: 1px solid var(--stroke); position: relative; }
.step:last-child { border-right: 0; }
.step__no { font-family: var(--serif); font-size: 1.1rem; color: var(--ochre); }
.step h3 { margin-top: 12px; font-size: 1.05rem; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: .87rem; }

/* ---------------------------------------------------------- pricing */
.calc {
  border: 1px solid var(--stroke-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-3);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; overflow: hidden;
}
.calc__side { padding: 26px; }
.calc__side + .calc__side { border-left: 1px solid var(--stroke); background: var(--surface-2); }
.calc__label { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.calc__group + .calc__group { margin-top: 22px; }
.calc__slider { margin-top: 10px; }
.calc__slider input[type="range"] { width: 100%; accent-color: var(--teal); height: 4px; background: transparent; }
.calc__slider-val { margin-top: 8px; font-family: var(--mono); font-size: 1.3rem; font-weight: 700; }
.calc__slider-val .u { color: var(--muted); font-size: .85rem; font-weight: 400; }
.calc__result { display: flex; flex-direction: column; gap: 12px; height: 100%; justify-content: center; }
.calc__price { font-family: var(--serif); font-size: clamp(1.9rem,4vw,2.5rem); font-weight: 700; }
.calc__price .u { font-size: .95rem; color: var(--muted); font-weight: 400; font-family: var(--sans); }
.calc__tier { font-family: var(--mono); font-size: var(--fs-sm); color: var(--teal); }
.calc__note { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }

.plans { display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr; gap: 14px; align-items: stretch; }
.plan { padding: 22px 18px; border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--sh-1); }
.plan.is-featured { border-color: var(--teal); box-shadow: var(--sh-3); background: var(--teal-l); }
.plan__tag { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ochre); min-height: 1em; }
.plan h3 { margin-top: 8px; font-size: 1.1rem; }
.plan__price { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin-top: 12px; }
.plan__price .per { font-size: .74rem; color: var(--muted); font-weight: 400; font-family: var(--sans); }
.plan__list { list-style: none; margin: 14px 0 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.plan__list li { font-size: .82rem; padding-left: 18px; position: relative; color: var(--ink-2); }
.plan__list li::before { content: "—"; position: absolute; left: 0; color: var(--teal); font-family: var(--mono); }
.plan__fine { margin-top: 10px; font-size: .74rem; color: var(--muted-2); line-height: 1.5; }

.custom-plan { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--surface-2); border: 1px dashed var(--stroke-2); border-radius: var(--r-lg); padding: 20px 24px; }
.custom-plan p { color: var(--ink-2); max-width: 52ch; }
.custom-plan b { color: var(--ink); }

/* ---------------------------------------------------------- checkout / payment */
.checkout { border: 1px solid var(--stroke-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-2); overflow: hidden; }
.checkout__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--stroke); }
.checkout__head .lead { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.checkout__head .lead b { color: var(--ink); }
.checkout__body { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  font-family: var(--sans); font-size: var(--fs-base); padding: 11px 12px;
  border: 1px solid var(--stroke-2); background: var(--bg-2); color: var(--ink); border-radius: var(--r-md);
}
.field input:focus, .field select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }

/* ---------------------------------------------------------- cases */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 12px; }
.case-card__industry { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.case-card__metric { font-family: var(--serif); font-size: 1.5rem; color: var(--teal); font-weight: 700; }
.case-card__quote { color: var(--ink-2); font-size: .89rem; line-height: 1.55; font-style: italic; }
.case-card__who { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--stroke); padding-top: 10px; margin-top: auto; }
.case-card__who b { color: var(--ink); font-style: normal; }

/* ---------------------------------------------------------- docs */
.doc-quick { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-2); overflow: hidden; }
.code-panel { border: 1px solid var(--stroke-2); border-radius: var(--r-lg); background: #14201c; overflow: hidden; box-shadow: var(--sh-2); }
.code-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.09); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .05em; color: #9db3a8; }
.code-panel__head button { font-family: var(--mono); font-size: var(--fs-xs); color: #d7e5df; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); padding: 4px 9px; cursor: pointer; border-radius: var(--r-sm); }
.code-panel pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: .85rem; line-height: 1.65; color: #d7e5df; }
.code-panel .tok-key { color: #7fc4b8; }
.code-panel .tok-str { color: #d9c48a; }
.code-panel .tok-com { color: #6d8079; }
.code-panel .tok-met { color: #e0a85c; }

.endpoint-table { border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.endpoint-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid var(--stroke); font-family: var(--mono); font-size: .89rem; }
.endpoint-row:last-child { border-bottom: 0; }
.endpoint-row .verb { color: var(--teal); font-weight: 700; }
.endpoint-row .verb.is-post { color: var(--ochre); }
.endpoint-row .path { color: var(--ink); }
.endpoint-row .desc { color: var(--muted); font-size: var(--fs-xs); text-align: right; }

.article-list { border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.article-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--stroke); }
.article-row:last-child { border-bottom: 0; }
.article-row a { font-weight: 600; font-size: .92rem; }
.article-row a:hover { color: var(--teal); }
.article-row span { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------------- status page */
.status-list { border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-2); overflow: hidden; }
.status-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--stroke); font-size: .92rem; }
.status-item:last-child { border-bottom: 0; }
.status-item .name { flex: 1; color: var(--ink); font-weight: 600; }
.status-item .val { font-family: var(--mono); color: var(--live); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; }
.status-item .dot { background: var(--live); }
.status-summary { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--teal-l); border: 1px solid var(--stroke); margin-bottom: 22px; }
.status-summary .dot { width: 10px; height: 10px; }
.status-summary strong { font-size: 1.02rem; }

.incident-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.incident { padding: 18px 20px; border-bottom: 1px solid var(--stroke); }
.incident:last-child { border-bottom: 0; }
.incident__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.incident__title { font-weight: 700; font-size: .96rem; }
.incident__date { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.incident__body { margin-top: 8px; color: var(--ink-2); font-size: .87rem; line-height: 1.55; }
.incident__tag { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 20px; }
.incident__tag.is-resolved { color: var(--live); background: #e2f0e6; }
.incident__tag.is-planned { color: var(--ochre); background: var(--ochre-l); }

/* ---------------------------------------------------------- about / requisites */
.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px,4vw,56px); }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose h3 { margin-top: 28px; font-size: 1.15rem; font-family: var(--sans); font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--stroke); }
.timeline li:last-child { border-bottom: 0; }
.timeline .yr { font-family: var(--mono); font-weight: 700; color: var(--ochre); }
.timeline .ev { color: var(--ink-2); }

.requisites { border: 1px solid var(--stroke-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); font-family: var(--mono); font-size: var(--fs-sm); scroll-margin-top: 84px; overflow: hidden; }
.req-row { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--stroke); }
.req-row:last-child { border-bottom: 0; }
.req-row .k { color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-size: var(--fs-xs); }
.req-row .v { color: var(--ink); }
.req-row .v.placeholder { color: var(--muted-2); font-style: italic; }

/* ---------------------------------------------------------- auth / login */
.auth { max-width: 440px; margin: clamp(40px, 8vw, 88px) auto; border: 1px solid var(--stroke-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-3); overflow: hidden; }
.auth__head { padding: 24px; border-bottom: 1px solid var(--stroke); }
.auth__head .eyebrow { margin-bottom: 12px; }
.auth__head h1 { font-size: 1.4rem; }
.auth__body { padding: 24px; }
.auth__panel { display: flex; flex-direction: column; gap: 14px; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); color: var(--muted); }
.auth__row a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.checkline a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.auth__foot { padding: 17px 24px; border-top: 1px solid var(--stroke); font-size: var(--fs-xs); color: var(--muted); background: var(--surface-2); }
.auth__foot a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.form-note { font-family: var(--mono); font-size: var(--fs-xs); color: var(--live); }
.form-note[hidden] { display: none; }

/* ---------------------------------------------------------- error pages */
.errpage { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.errpage__card { max-width: 480px; text-align: center; }
.errpage__code { font-family: var(--serif); font-size: clamp(3.5rem, 12vw, 5.5rem); font-weight: 700; color: var(--ochre); line-height: 1; }
.errpage__title { margin-top: 10px; font-size: 1.35rem; }
.errpage__text { margin-top: 14px; color: var(--ink-2); line-height: 1.6; }
.errpage__actions { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.errpage__brand { margin-bottom: 26px; display: inline-flex; }

/* ---------------------------------------------------------- footer */
.site-footer { background: #12181f; color: #d5dbd4; border-top: 1px solid var(--stroke); }
.site-footer .brand__name { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding: 52px 0 34px; }
.footer__brand p { color: #99a599; margin: 14px 0 0; max-width: 34ch; font-size: .9rem; }
.footer__col h4 { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: #8a978a; font-weight: 700; }
.footer__col ul { list-style: none; margin: 15px 0 0; display: flex; flex-direction: column; gap: 9px; }
.footer__col a { font-size: .89rem; color: #c9d1c8; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 40px; border-top: 1px solid rgba(255,255,255,.09); }
.footer__bottom p { margin: 0; font-family: var(--mono); font-size: var(--fs-xs); color: #8a978a; }
.socials { display: flex; gap: 8px; }
.socials a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; }
.socials a:hover { border-color: #fff; }
.socials svg { width: 16px; height: 16px; }

/* utility / page hero */
.pagehero { padding: clamp(44px,6vw,76px) 0 clamp(28px,4vw,40px); border-bottom: 1px solid var(--stroke); }
.pagehero h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.pagehero p { margin: 16px 0 0; color: var(--ink-2); max-width: 60ch; }
.breadcrumb { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.breadcrumb b { color: var(--ink); }

/* ---------------------------------------------------------- cabinet shell */
.cabinet { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.cabinet__sidebar { background: #12181f; color: #c9d1c8; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.cabinet__brand { display: flex; align-items: center; gap: 10px; padding: 10px 10px 18px; color: #fff; }
.cabinet__brand .brand__name { color: #fff; font-size: 1.05rem; }
.cabinet__nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.cabinet__nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); font-size: .88rem; font-weight: 600; color: #b8c2b6; }
.cabinet__nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.cabinet__nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.cabinet__nav a[aria-current="page"] { background: var(--teal); color: #fff; }
.cabinet__nav-label { margin-top: 16px; padding: 0 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6d7a71; }
.cabinet__sidebar-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid rgba(255,255,255,.09); font-size: .78rem; color: #8a978a; }
.cabinet__main { padding: 28px clamp(20px,3vw,40px) 60px; background: var(--bg); }
.cabinet__topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.cabinet__topbar h1 { font-size: 1.5rem; }
.cabinet__topbar p { margin-top: 4px; color: var(--muted); font-size: .88rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-1); }
.stat-card__k { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat-card__v { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin-top: 6px; }
.stat-card__v .u { font-size: .95rem; color: var(--muted); font-family: var(--sans); }
.stat-card__d { margin-top: 4px; font-size: .78rem; color: var(--live); }
.stat-card__d.is-flat { color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.panel__head { padding: 16px 20px; border-bottom: 1px solid var(--stroke); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel__head h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; }
.panel__body { padding: 20px; }
.cab-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }

.credential-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.credential-row label { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.credential-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 10px 12px; font-family: var(--mono); font-size: .85rem; }
.credential-box span.masked { letter-spacing: .12em; }

.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--stroke); font-size: .87rem; }
.activity-item:last-child { border-bottom: 0; }
.activity-item .who { color: var(--ink-2); }
.activity-item .when { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }

.chart-tabs { display: flex; gap: 6px; }
.chart-tabs button { font-family: var(--mono); font-size: var(--fs-xs); padding: 5px 11px; border-radius: var(--r-sm); border: 1px solid var(--stroke-2); background: var(--surface); color: var(--muted); cursor: pointer; }
.chart-tabs button[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding-top: 14px; }
.bar-chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-chart__bar { width: 100%; background: var(--teal); border-radius: 4px 4px 0 0; }
.bar-chart__lbl { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.chart-foot { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); flex-wrap: wrap; gap: 8px; }

.quota-block { display: flex; align-items: center; gap: 16px; }
.quota-bar { flex: 1; height: 10px; border-radius: 6px; background: var(--stroke-2); overflow: hidden; }
.quota-bar__fill { height: 100%; background: var(--teal); border-radius: 6px; }
.quota-bar__fill.is-warn { background: var(--ochre); }
.quota-text { font-family: var(--mono); font-size: var(--fs-sm); white-space: nowrap; }

.tabs { display: flex; border-bottom: 1px solid var(--stroke); margin-bottom: 18px; }
.tabs button { font-family: var(--sans); font-weight: 700; font-size: .88rem; padding: 11px 18px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--teal); border-bottom-color: var(--teal); }
.tabpanel[hidden] { display: none; }

.data-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.data-table th { text-align: left; font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--stroke-2); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--stroke); color: var(--ink-2); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.num, .data-table th.num { text-align: right; font-family: var(--mono); }
.pill { font-family: var(--mono); font-size: var(--fs-xs); padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.pill.is-ok { color: var(--live); background: #e2f0e6; }
.pill.is-org { color: var(--teal); background: var(--teal-l); }
.pill.is-part { color: var(--ochre); background: var(--ochre-l); }
.pill.is-admin { color: #6a3fb0; background: #eee6fa; }

.progress-cell { display: flex; align-items: center; gap: 10px; }
.progress-cell .track { flex: 1; height: 7px; border-radius: 5px; background: var(--stroke-2); overflow: hidden; min-width: 70px; }
.progress-cell .fill { height: 100%; background: var(--teal); border-radius: 5px; }

.settings-block { padding: 22px 0; border-bottom: 1px solid var(--stroke); }
.settings-block:last-child { border-bottom: 0; }
.settings-block h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.toggle-row__t { font-size: .89rem; font-weight: 600; }
.toggle-row__d { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; background: var(--stroke-2); border-radius: 20px; transition: background .15s var(--ease); }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: var(--sh-1); transition: transform .15s var(--ease); }
.switch input:checked + .switch__track { background: var(--teal); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }

.danger-panel { border: 1px solid var(--alert); background: var(--alert-l); border-radius: var(--r-lg); padding: 20px; }
.danger-panel h3 { color: var(--alert); font-family: var(--sans); font-size: 1rem; }
.danger-panel p { margin-top: 6px; color: #7a3121; font-size: .85rem; }

/* ---------------------------------------------------------- footer contacts / legal inline */
.footer__contact { margin: 12px 0 0; font-size: .87rem; color: #c9d1c8; }
.footer__contact a:hover { color: #fff; }
.footer__legal-inline { margin: 0; font-family: var(--mono); font-size: var(--fs-xs); color: #8a978a; }
.footer__legal-inline a { color: #c9d1c8; }
.footer__legal-inline a:hover { color: #fff; }

/* ---------------------------------------------------------- legal pages */
.legal { max-width: 760px; }
.legal__meta { color: var(--muted); font-family: var(--mono); font-size: var(--fs-sm); border-left: 2px solid var(--ochre); padding-left: 14px; margin-bottom: 30px; }
.legal h2 { font-size: 1.2rem; margin-top: 34px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--ink-2); margin-top: 12px; }
.legal a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.legal__list { list-style: none; margin: 14px 0 0; padding: 0; }
.legal__list li { position: relative; padding-left: 20px; margin-top: 9px; color: var(--ink-2); }
.legal__list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; background: var(--ochre); border-radius: 50%; }

/* ---------------------------------------------------------- contacts page */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--surface); padding: 22px; box-shadow: var(--sh-1); }
.contact-card h3 { font-size: 1.1rem; margin: 10px 0 12px; }
.contact-card__line { font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink); margin-top: 4px; }
.contact-card__line a { color: var(--teal); }
.contact-card__note { color: var(--muted); font-size: .88rem; margin-top: 12px; }
.contact-facts { margin-top: 22px; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); font-family: var(--mono); font-size: var(--fs-sm); overflow: hidden; }
.contact-fact { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--stroke); }
.contact-fact:last-child { border-bottom: 0; }
.contact-fact .k { color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: var(--fs-xs); }
.contact-fact .v { color: var(--ink); }
.contact-fact .v a { color: var(--teal); }
.contact-map { width: 100%; height: auto; border: 1px solid var(--stroke); border-radius: var(--r-lg); display: block; }

/* ---------------------------------------------------------- cookie bar */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #12181f; color: #d5dbd4; box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
.cookie-bar__in { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-bar__txt { flex: 1 1 320px; font-size: .88rem; color: #c9d1c8; }
.cookie-bar__txt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar[hidden] { display: none; }

@media (max-width: 980px) {
  .hero__grid, .mod-hero__grid, .event-hero__grid, .grid-2, .cab-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--stroke); }
  .product-grid, .feature-grid, .role-grid, .case-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .doc-quick { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--stroke); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc__side + .calc__side { border-left: 0; border-top: 1px solid var(--stroke); }
  .checkout__body { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
  .speaker-grid { grid-template-columns: 1fr; }
  .cabinet { grid-template-columns: 1fr; }
  .cabinet__sidebar { position: static; height: auto; }
}

@media (max-width: 720px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 64px; left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut));
    background: var(--bg-2); border-bottom: 1px solid var(--stroke); padding: 8px var(--gut) 16px;
  }
  .nav.is-open .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--stroke); font-size: var(--fs-base); }
  .only-mobile { display: block; }
  .product-grid, .feature-grid, .role-grid, .case-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps, .doc-quick { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--stroke); }
  .step:last-child { border-bottom: 0; }
  .plans { grid-template-columns: 1fr; }
  .req-row, .contact-fact { grid-template-columns: 1fr; gap: 4px; }
  .timeline li { grid-template-columns: 64px 1fr; }
  .endpoint-row { grid-template-columns: 1fr; gap: 4px; }
  .endpoint-row .desc { text-align: left; }
  .sched-row { grid-template-columns: 1fr; gap: 4px; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--stroke); }
  .metric:last-child { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .dot--live { animation: none; }
}
