/* =========================================================================
   KEISOVE за бизнеса - b2b.keisove.bg
   Дизайн система по раздели 10-13, 25, 30 и 31 на стратегическия доклад.
   Направление 1: мастилено синьо + сигнално синьо + топъл жълт акцент.
   Без градиенти, glassmorphism, неон и generic SaaS илюстрации.
   ========================================================================= */

:root {
  /* Цветова система - раздел 10 */
  --primary:        #1746A2;   /* бяло върху primary: 8,63:1 */
  --primary-hover:  #123B8B;   /* 8% darker */
  --primary-active: #0F3276;
  --secondary:      #17324D;   /* бяло върху secondary: 13,13:1 */
  --accent:         #F2A900;   /* #17324D върху accent: 6,53:1 */
  --accent-hover:   #DC9A00;
  --bg:             #FFFFFF;
  --bg-alt:         #F7F9FC;   /* #17324D върху alt: 12,45:1 */
  --text:           #17324D;
  --muted:          #5C6B7A;   /* върху бяло: 5,47:1 */
  --border:         #D8E0E8;
  --success:        #176B5B;
  --warning:        #F2A900;
  --error:          #B42318;
  --info:           #1E5BFF;

  --radius:    6px;
  --radius-lg: 10px;

  /* Съдържателни ширини - раздел 30 */
  --content-sm: 1120px;
  --content:    1240px;
  --content-lg: 1320px;

  --gutter: 16px;

  --font-display: 'Sofia Sans Semi Condensed', 'Sofia Sans', Arial, 'Segoe UI', sans-serif;
  --font-body:    'Sofia Sans', Arial, 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  font-variant-numeric: tabular-nums;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }

/* Focus - раздел 31: винаги видим, 3 px акцент + 2 px offset */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--secondary);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ------------------------------------------------------------ типография */
/* Раздел 12: окончателна типографска система */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  color: var(--secondary);
  text-wrap: balance;
}

.t-display {
  font-size: 44px; font-weight: 700; line-height: 0.98; letter-spacing: -0.03em;
}
h1, .t-h1 {
  font-size: 38px; font-weight: 700; line-height: 1.02; letter-spacing: -0.025em;
}
h2, .t-h2 {
  font-size: 30px; font-weight: 700; line-height: 1.08; letter-spacing: -0.018em;
}
h3, .t-h3 {
  font-size: 24px; font-weight: 650; line-height: 1.15; letter-spacing: -0.01em;
}
h4, .t-h4 {
  font-size: 19px; font-weight: 650; line-height: 1.25;
}

@media (min-width: 1024px) {
  .t-display { font-size: 72px; }
  h1, .t-h1  { font-size: 56px; }
  h2, .t-h2  { font-size: 40px; }
  h3, .t-h3  { font-size: 28px; }
  h4, .t-h4  { font-size: 20px; }
}

p { margin: 0 0 1em; max-width: 68ch; }

.lead { font-size: 18px; line-height: 1.55; max-width: 62ch; }
@media (min-width: 1024px) { .lead { font-size: 20px; } }

.small     { font-size: 14px; line-height: 1.45; max-width: 72ch; }
.caption   { font-size: 12px; line-height: 1.4; letter-spacing: 0.01em; font-weight: 500; color: var(--muted); }
.muted     { color: var(--muted); }

/* Надзаглавие (eyebrow) */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
  display: block;
}
.eyebrow--light { color: var(--accent); }

.price-figure {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -0.02em;
  color: var(--secondary);
}
@media (min-width: 1024px) { .price-figure { font-size: 40px; } }

/* ---------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 780px; }
.wrap--sm     { max-width: var(--content-sm); }

@media (min-width: 480px)  { :root { --gutter: 20px; } }
@media (min-width: 768px)  { :root { --gutter: 24px; } }
@media (min-width: 1536px) { .wrap { max-width: var(--content-lg); } }

.section { padding-block: 56px; }
@media (min-width: 768px)  { .section { padding-block: 72px; } }
@media (min-width: 1024px) { .section { padding-block: 88px; } }

.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--secondary); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #DCE5EF; }
.section--tight { padding-block: 40px; }

.grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  /* Асиметрична 7/5 grid за hero - раздел 15 */
  .grid--asym { grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
}

.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }

/* --------------------------------------------------------------- бутони */
/* Раздел 25: CTA система и state system */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  text-align: center;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn--primary:active { background: var(--primary-active); }

.btn--secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--secondary:hover { background: rgba(23,70,162,.06); color: var(--primary-hover); }

.btn--accent {
  background: var(--accent);
  color: var(--secondary);
  border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--secondary); }

.btn--success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn--success:hover { background: #125244; border-color: #125244; color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--secondary);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-alt); }

.btn--danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn--danger:hover { background: #92130F; border-color: #92130F; color: #fff; }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  background: #E7EDF3;
  color: #74838F;
  border-color: #E7EDF3;
  cursor: not-allowed;
}
/* loading запазва ширината и показва текст */
.btn.is-loading { pointer-events: none; opacity: .85; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-plain { color: var(--primary); font-weight: 600; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  font-family: var(--font-display);
  color: var(--secondary);
  flex: 0 0 auto;
}
.brand__mark { display: block; }
.brand__name { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.brand__suffix { font-size: 15px; font-weight: 400; color: var(--muted); }

.site-nav { display: none; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
}
.site-nav a:hover { background: var(--bg-alt); color: var(--primary); }
.site-nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -3px 0 var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--secondary);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--secondary);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

@media (min-width: 1024px) {
  .site-nav { display: block; }
  .header-actions { margin-left: 16px; }
  .nav-toggle { display: none; }
}

/* Drawer под 1024 px */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 150;
  padding: 20px var(--gutter) 40px;
  overflow-y: auto;
  display: none;
}
.nav-drawer[open], .nav-drawer.is-open { display: block; }
.nav-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.nav-drawer ul { list-style: none; margin: 0 0 24px; padding: 0; }
.nav-drawer li + li { border-top: 1px solid var(--border); }
.nav-drawer a {
  display: block;
  padding: 14px 0;
  min-height: 48px;
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
}
.nav-close {
  width: 48px; height: 48px; border: 1px solid var(--border); background: #fff;
  border-radius: var(--radius); font-size: 22px; cursor: pointer; line-height: 1;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--secondary);
  color: #DCE5EF;
  padding-block: 48px 32px;
  margin-top: 0;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-lead {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 22ch;
}
.footer-cols { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h3 {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px; font-family: var(--font-body); font-weight: 700;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li + li { margin-top: 8px; }
.footer-legal {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16);
  font-size: 13px; color: #B8C6D6;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}

/* --------------------------------------------------------------- trust bar */

.trust-bar {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 0; margin: 0; list-style: none;
  font-size: 14px; font-weight: 600; color: var(--secondary);
}
.trust-bar li { display: flex; align-items: center; gap: 8px; }
.trust-bar li::before {
  content: ''; width: 8px; height: 8px; background: var(--accent);
  flex: 0 0 8px; border-radius: 1px;
}
.section--dark .trust-bar { color: #DCE5EF; }

/* ----------------------------------------------------------------- карти */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card--alt { background: var(--bg-alt); }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* Редакционни блокове (не еднакви cards) - раздел 15 секция 6 */
.editorial { display: grid; gap: 32px; }
@media (min-width: 768px) { .editorial { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.editorial__item { border-top: 3px solid var(--accent); padding-top: 16px; }
.editorial__item h3 { font-size: 22px; }

/* Стъпки */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 24px; }
@media (min-width: 768px)  { .steps--5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps--5 { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
.steps li { counter-increment: step; border-top: 1px solid var(--border); padding-top: 16px; }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: 12px;
  background: var(--accent); color: var(--secondary);
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  border-radius: 3px;
}
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--muted); margin: 0; }

/* Опции (двата метода за събиране) */
.options { display: grid; gap: 20px; }
@media (min-width: 900px) { .options { grid-template-columns: repeat(2, 1fr); } }
.option {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: #fff;
  display: flex; flex-direction: column;
}
.option:hover { border-color: var(--primary); }
.option h3 { font-size: 24px; }
.option p { flex: 1; }
.option__num {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}

/* ------------------------------------------------------------- калкулатор */

.calc { display: grid; gap: 28px; }
@media (min-width: 900px) { .calc { grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; } }

.stepper { display: flex; align-items: stretch; gap: 0; max-width: 260px; }
.stepper button {
  width: 52px; min-height: 52px;
  border: 1px solid var(--border);
  background: #fff; color: var(--secondary);
  font-size: 22px; font-weight: 700; cursor: pointer; line-height: 1;
}
.stepper button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stepper button:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.stepper button:hover { background: var(--bg-alt); }
.stepper input {
  width: 100%; min-height: 52px; text-align: center;
  border: 1px solid var(--border); border-inline: 0;
  font-size: 20px; font-weight: 700; font-family: var(--font-display);
  color: var(--secondary); background: #fff;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.section--alt .summary { border-color: #C9D6E4; }
.summary__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.summary__row:last-of-type { border-bottom: 0; }
.summary__row dt { color: var(--muted); margin: 0; }
.summary__row dd { margin: 0; font-weight: 650; color: var(--secondary); }
.summary__row--total { font-size: 18px; padding-top: 14px; border-top: 2px solid var(--secondary); }
.summary__row--total dd { font-size: 20px; font-weight: 700; }
.summary dl { margin: 0; }

/* Ценови прагове */
.tiers { width: 100%; border-collapse: collapse; font-size: 15px; }
.tiers th, .tiers td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.tiers th { font-weight: 700; color: var(--secondary); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.tiers tr.is-current { background: #FFF7E3; }
.tiers tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--accent); font-weight: 700; }

.tier-cards { display: grid; gap: 12px; }
.tier-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  background: #fff;
}
.tier-card.is-current { border-color: var(--accent); border-width: 2px; background: #FFF7E3; }
.tier-card__qty { font-weight: 700; color: var(--secondary); }
.tier-card__price { font-family: var(--font-display); font-size: 22px; font-weight: 700; }

@media (min-width: 768px) { .tier-cards { display: none; } }
.tiers-wrap { display: none; overflow-x: auto; }
@media (min-width: 768px) { .tiers-wrap { display: block; } }

/* ----------------------------------------------------------------- форми */

.field { margin-bottom: 20px; }
.field > label, .field-label {
  display: block;
  font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 0.01em;
  color: var(--secondary);
  margin-bottom: 6px;
}
.field .req { color: var(--error); }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid #B9C6D4;
  border-radius: var(--radius);
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.select {
  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 fill='%2317324D' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.input:hover, .select:hover, .textarea:hover { border-color: #8FA3B8; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--error); border-width: 2px;
}

.helper { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 6px; }
.error-text {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 14px; font-weight: 600; color: var(--error); margin-top: 6px;
}
.error-text::before { content: '!'; flex: 0 0 18px; width: 18px; height: 18px; background: var(--error); color:#fff;
  border-radius: 50%; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

.field-row { display: grid; gap: 16px; }
@media (min-width: 700px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .field-row--3 { grid-template-columns: repeat(3, 1fr); } }

.checkbox, .radio { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.checkbox input, .radio input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 22px; accent-color: var(--primary); }
.checkbox span, .radio span { font-size: 15px; line-height: 1.5; }

.radio-card {
  display: flex; gap: 14px; align-items: flex-start;
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; margin-bottom: 12px; cursor: pointer; background: #fff;
}
.radio-card:hover { border-color: var(--primary); }
.radio-card:has(input:checked) { border-color: var(--primary); background: #F4F8FF; }
.radio-card strong { display: block; font-size: 17px; color: var(--secondary); }
.radio-card .helper { margin-top: 4px; }

fieldset { border: 0; margin: 0 0 20px; padding: 0; }
legend { font-size: 14px; font-weight: 600; color: var(--secondary); margin-bottom: 8px; padding: 0; }

/* Съобщения / състояния */
.alert {
  border: 1px solid var(--border);
  border-left: 4px solid var(--muted);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  background: var(--bg-alt);
  font-size: 15px;
}
.alert p:last-child { margin-bottom: 0; }
.alert--success { border-left-color: var(--success); background: #F0F7F5; }
.alert--error   { border-left-color: var(--error);   background: #FDF3F2; }
.alert--warning { border-left-color: var(--warning); background: #FFF8E8; }
.alert--info    { border-left-color: var(--info);    background: #F1F5FF; }

.notice {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--muted);
}
.notice strong { color: var(--secondary); }

/* Dropzone за файлове */
.dropzone {
  border: 2px dashed #A9BCD0;
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-alt);
}
.dropzone.is-over { border-color: var(--primary); background: #F1F6FF; }
.file-list { list-style: none; margin: 16px 0 0; padding: 0; }
.file-list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--border); font-size: 15px;
}

/* ---------------------------------------------------------------- badges */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: var(--bg-alt); color: var(--secondary); border: 1px solid var(--border);
  white-space: nowrap;
}
.badge--ok      { background: #F0F7F5; color: var(--success); border-color: #B9DBD2; }
.badge--warning { background: #FFF8E8; color: #8A6100;        border-color: #F0D9A0; }
.badge--error   { background: #FDF3F2; color: var(--error);   border-color: #EFC2BE; }
.badge--info    { background: #F1F5FF; color: var(--primary); border-color: #C3D3F0; }
.badge--muted   { background: #F2F5F8; color: var(--muted); }

/* Не разчитаме само на цвят - добавяме и текстов маркер */
.badge--ok::before      { content: '\2713'; }
.badge--warning::before { content: '!'; }
.badge--error::before   { content: '\00D7'; }

/* -------------------------------------------------------------- таблици */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; background: var(--bg-alt); white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FBFCFE; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Мобилни карти вместо таблица - раздел 30 */
.row-cards { display: grid; gap: 12px; }
@media (min-width: 900px) { .row-cards { display: none; } }
@media (max-width: 899px) { .table-wrap--responsive { display: none; } }

.row-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; }
.row-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 14px; }
.row-card dt { color: var(--muted); }
.row-card dd { margin: 0; font-weight: 600; }

/* ------------------------------------------------------------- timeline */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative; padding: 0 0 24px 32px; border-left: 2px solid var(--border);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -9px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border);
}
.timeline li.is-done::before    { background: var(--success); border-color: var(--success); }
.timeline li.is-current::before { background: var(--accent);  border-color: var(--accent); }
.timeline li.is-current { border-left-color: var(--accent); }
.timeline h4 { margin: 0 0 2px; font-size: 17px; }
.timeline p  { margin: 0; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------- progress */

.progress { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.progress__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.progress__bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress__fill { height: 100%; background: var(--primary); }

.steps-nav { display: none; }
@media (min-width: 900px) {
  .steps-nav { display: flex; gap: 4px; list-style: none; margin: 0 0 32px; padding: 0; flex-wrap: wrap; }
  .steps-nav li {
    font-size: 13px; font-weight: 600; color: var(--muted);
    padding: 8px 14px; border-radius: var(--radius); background: var(--bg-alt);
  }
  .steps-nav li.is-current { background: var(--primary); color: #fff; }
  .steps-nav li.is-done { color: var(--success); }
}

/* -------------------------------------------------------------- dashboard */

.app-shell { display: block; }
@media (min-width: 1024px) {
  .app-shell { display: grid; grid-template-columns: 248px 1fr; gap: 32px; align-items: start; }
}
.app-nav { margin-bottom: 24px; }
.app-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.app-nav a {
  display: inline-flex; align-items: center; white-space: nowrap;
  min-height: 44px; padding: 8px 14px; border-radius: var(--radius);
  color: var(--secondary); text-decoration: none; font-weight: 600; font-size: 15px;
}
.app-nav a:hover { background: var(--bg-alt); }
.app-nav a[aria-current="page"] { background: var(--secondary); color: #fff; }
@media (min-width: 1024px) {
  .app-nav { position: sticky; top: 88px; }
  .app-nav ul { flex-direction: column; gap: 2px; overflow: visible; }
  .app-nav a { width: 100%; }
}

.attention { border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 22px; background: #FFFCF4; }
.attention h2 { font-size: 20px; margin-bottom: 12px; }
.attention ul { list-style: none; margin: 0; padding: 0; }
.attention li { padding: 12px 0; border-top: 1px solid #F0DFB6; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.attention li:first-child { border-top: 0; }

.metrics { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; background: #fff; }
.metric__value { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; color: var(--secondary); }
.metric__label { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 600; }

.empty {
  text-align: center; padding: 48px 24px;
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.empty h3 { margin-bottom: 8px; }
.empty p { margin-inline: auto; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tabs a {
  padding: 12px 16px; min-height: 48px; display: inline-flex; align-items: center;
  text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }

.page-head { margin-bottom: 28px; }
.page-head h1 { margin-bottom: 8px; }
.page-head__row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }

.sticky-side { position: sticky; top: 88px; }

/* Order detail layout - раздел 22 */
.order-layout { display: grid; gap: 24px; }
@media (min-width: 1200px) { .order-layout { grid-template-columns: 260px 1fr 300px; align-items: start; } }

/* ---------------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-display); font-size: 19px; font-weight: 650; color: var(--secondary);
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--primary); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 0 20px; }
.faq details p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- participant */

.participant-page { max-width: 620px; margin-inline: auto; }
.participant-page .btn--block { position: sticky; bottom: 12px; }
@media (min-width: 700px) { .participant-page .btn--block { position: static; } }

.brand-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .brand-choice { grid-template-columns: repeat(3, 1fr); } }
.brand-choice label {
  display: flex; align-items: center; justify-content: center;
  min-height: 64px; padding: 10px; text-align: center;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-weight: 650; cursor: pointer; background: #fff; font-size: 15px;
}
.brand-choice label:hover { border-color: var(--primary); }
.brand-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.brand-choice input:checked + span,
.brand-choice label:has(input:checked) { border-color: var(--primary); background: #F4F8FF; }
.brand-choice label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* --------------------------------------------------------------- утилити */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--border); border: 0; margin: 32px 0; }

/* Hero композиция */
.hero { padding-block: 40px 56px; }
@media (min-width: 1024px) { .hero { padding-block: 64px 88px; } }
.hero__media { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; }
.hero__case {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  aspect-ratio: 1 / 2;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.hero__case span { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.hero__case::before {
  content: ''; position: absolute; inset: 12px 12px 34px;
  background: var(--secondary); border-radius: 8px;
}
.hero__case::after {
  content: ''; position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%);
  width: 42%; height: 3px; background: var(--accent);
}
.hero__case:nth-child(1) { grid-column: span 2; }
.hero__case:nth-child(2) { grid-column: span 2; margin-bottom: 28px; }
.hero__case:nth-child(3) { grid-column: span 2; }
.hero__case--alt::before { background: var(--primary); }
.hero__case--accent::before { background: var(--accent); }
.hero__case--accent::after { background: var(--secondary); }

/* Сравнение mockup / производствен файл */
.compare { display: grid; gap: 16px; }
@media (min-width: 700px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__item { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; background: #fff; }
.compare__item h4 { margin-bottom: 6px; }

/* Print */
@media print {
  .site-header, .site-footer, .btn, .app-nav { display: none !important; }
  body { font-size: 12pt; }
}
