/* ============================================================
   BDS — /restaurant-demo/  (самостоятелна кампания)
   ------------------------------------------------------------
   Собствена визуална система, без style.css на сайта. Всички
   класове са с префикс `rd-`; глобалните правила са само върху
   body.rd, за да не изтекат никъде другаде.

   Палитра:  хартия #F5EFE6 · графит #1F2226 · акцент #C2410C
   Шрифт:    Onest (кирилица), 400–800
   Разстояния: стъпка 4px  (--s1 … --s10)
   ============================================================ */

/* Onest (SIL OFL 1.1 — fonts/OFL.txt), хостван тук: без блокираща
   заявка към трети домейн. Вариативен шрифт 400–800, два подмножества. */
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rd-paper: #F5EFE6;
  --rd-paper-2: #ECE3D5;
  --rd-surface: #FFFCF7;
  --rd-ink: #1F2226;
  --rd-ink-2: #474C53;
  --rd-ink-3: #5C6168;
  --rd-line: #DCD1C0;
  --rd-accent: #C2410C;
  --rd-accent-deep: #9A3412;
  --rd-accent-tint: #FBE3D4;
  --rd-ok: #1D6B41;
  --rd-ok-tint: #E2F1E7;
  --rd-err: #B42318;
  --rd-err-tint: #FDE8E6;
  --rd-focus: #1F2226;

  --rd-font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --rd-radius: 14px;
  --rd-radius-lg: 22px;
  --rd-wrap: 1180px;
  --rd-top-h: 64px;
}

/* ---------- База ---------- */
body.rd {
  margin: 0;
  background: var(--rd-paper);
  color: var(--rd-ink);
  font-family: var(--rd-font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.rd *, .rd *::before, .rd *::after { box-sizing: border-box; }
html:has(body.rd) { scroll-behavior: smooth; scroll-padding-top: calc(var(--rd-top-h) + var(--s4)); }
@media (prefers-reduced-motion: reduce) {
  html:has(body.rd) { scroll-behavior: auto; }
  .rd *, .rd *::before, .rd *::after { transition: none !important; animation: none !important; }
}
:where(.rd) img { display: block; max-width: 100%; height: auto; }
:where(.rd) :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
:where(.rd) :where(ul, ol) { padding: 0; list-style: none; }
:where(.rd) a { color: inherit; }
.rd :focus-visible { outline: 3px solid var(--rd-focus); outline-offset: 3px; border-radius: 6px; }
/* Атрибутът hidden винаги печели — иначе display: grid/flex на
   компонента го надделява и скритото остава на екрана. */
.rd [hidden] { display: none !important; }
.rd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rd-skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--rd-ink); color: #fff; padding: var(--s3) var(--s4); border-radius: 10px; text-decoration: none;
}
.rd-skip:focus { top: var(--s3); }

.rd-wrap { width: 100%; max-width: var(--rd-wrap); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 768px) { .rd-wrap { padding: 0 var(--s6); } }

/* ---------- Типография ---------- */
.rd-kicker {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rd-accent-deep);
}
.rd-kicker--light { color: #FFB48F; }
.rd-h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance;
}
.rd-h2--light { color: #fff; }
.rd-h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.rd-link { color: var(--rd-accent-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.rd-link:hover { color: var(--rd-ink); }

/* ---------- Бутони ---------- */
.rd-btn {
  --bg: var(--rd-ink); --fg: #fff; --bd: var(--rd-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd); border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.rd-btn:hover { transform: translateY(-1px); }
.rd-btn:active { transform: translateY(0); }
.rd-btn--accent { --bg: var(--rd-accent); --bd: var(--rd-accent); }
.rd-btn--accent:hover { --bg: var(--rd-accent-deep); --bd: var(--rd-accent-deep); }
.rd-btn--ink:hover { --bg: #000; --bd: #000; }
.rd-btn--ghost { --bg: transparent; --fg: var(--rd-ink); --bd: var(--rd-ink); }
.rd-btn--ghost:hover { --bg: var(--rd-ink); --fg: #fff; }
.rd-btn--sm { min-height: 44px; padding: 0 var(--s4); font-size: 0.9375rem; }
.rd-btn--lg { min-height: 56px; padding: 0 var(--s6); font-size: 1.0625rem; }
.rd-btn--block { width: 100%; }
.rd-btn[disabled], .rd-btn[aria-disabled="true"] { cursor: progress; opacity: .72; transform: none; }

/* ---------- Навигация ---------- */
.rd-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 230, 0.94);
  border-bottom: 1px solid var(--rd-line);
}
@supports (backdrop-filter: blur(6px)) { .rd-top { backdrop-filter: blur(6px); } }
.rd-top__in {
  max-width: var(--rd-wrap); margin: 0 auto; height: var(--rd-top-h);
  display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s4);
}
@media (min-width: 768px) { .rd-top__in { padding: 0 var(--s6); } }
.rd-top__brand { display: block; flex: 0 0 auto; margin-right: auto; }
.rd-top__brand img { height: 38px; width: auto; }
.rd-top__nav { display: none; gap: var(--s5); margin-right: var(--s4); }
.rd-top__nav a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--rd-ink-2); padding: var(--s2) 0; }
.rd-top__nav a:hover { color: var(--rd-ink); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) { .rd-top__nav { display: flex; } }
@media (max-width: 380px) {
  .rd-top__brand img { height: 32px; }
  .rd-top .rd-btn--sm { padding: 0 var(--s3); font-size: 0.875rem; }
}

/* ---------- Първи екран ---------- */
.rd-hero { padding: var(--s5) 0 var(--s8); overflow: hidden; }
.rd-hero__grid { display: grid; gap: var(--s7); }
.rd-hero__copy { max-width: 680px; }
.rd-hero__title {
  margin-top: var(--s3);
  font-size: clamp(2.25rem, 1.35rem + 4vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance;
}
.rd-hero__lead { margin-top: var(--s4); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--rd-ink-2); max-width: 34em; }
.rd-hero__actions { display: grid; gap: var(--s3); margin-top: var(--s5); }
.rd-hero__note { margin-top: var(--s4); font-size: 0.9375rem; color: var(--rd-ink-3); }
@media (min-width: 560px) {
  .rd-hero__actions { display: flex; flex-wrap: wrap; }
}
.rd-hero__visual { position: relative; display: grid; justify-items: center; padding-bottom: var(--s8); }
.rd-hero__phone { width: min(300px, 78%); transform: rotate(-2.5deg); }
.rd-hero__slip {
  position: absolute; right: 0; bottom: 0; width: min(330px, 74%);
  transform: rotate(2deg);
}
@media (min-width: 1024px) {
  .rd-hero { padding: var(--s8) 0 var(--s9); }
  .rd-hero__grid { grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: var(--s8); }
  .rd-hero__visual { padding-bottom: var(--s7); }
  .rd-hero__phone { width: 300px; margin-right: 90px; }
  .rd-hero__slip { width: 360px; right: -12px; bottom: 0; }
}

/* ---------- Телефон и рамки ---------- */
.rd-phone { position: relative; }
.rd-phone__screen {
  background: var(--rd-ink); padding: 9px; border-radius: 38px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 60px -28px rgba(31,34,38,.55), 0 8px 18px -10px rgba(31,34,38,.35);
}
.rd-phone__screen img { border-radius: 30px; width: 100%; aspect-ratio: 600 / 1298; object-fit: cover; object-position: top; background: #F8F3EB; }
.rd-phone--demo { width: min(290px, 100%); margin: 0 auto; }
.rd-phone--small .rd-phone__screen { padding: 7px; border-radius: 30px; }
.rd-phone--small .rd-phone__screen img { border-radius: 24px; }

.rd-tag {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  white-space: nowrap; background: var(--rd-surface); color: var(--rd-ink);
  border: 1px solid var(--rd-line); border-radius: 999px; padding: 3px 12px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .02em;
}
.rd-slip {
  background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: var(--rd-radius);
  padding: var(--s2); box-shadow: 0 24px 50px -30px rgba(31,34,38,.6);
}
.rd-slip img { border-radius: 9px; border: 1px solid var(--rd-paper-2); }
.rd-slip figcaption { padding: var(--s3) var(--s2) var(--s1); font-size: 0.875rem; line-height: 1.45; color: var(--rd-ink-2); }
.rd-slip figcaption b { color: var(--rd-ink); }
.rd-slip figcaption span { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--rd-ink-3); }

.rd-frame picture { display: block; }
.rd-frame { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: var(--rd-radius); overflow: hidden; }
.rd-frame figcaption { padding: var(--s3) var(--s4); font-size: 0.875rem; color: var(--rd-ink-2); border-top: 1px solid var(--rd-paper-2); }

/* ---------- Секции ---------- */
.rd-sec { padding: var(--s8) 0; }
@media (min-width: 1024px) { .rd-sec { padding: var(--s9) 0; } }
.rd-head { max-width: 680px; margin-bottom: var(--s7); }
.rd-head__lead { margin-top: var(--s4); color: var(--rd-ink-2); font-size: 1.125rem; }
.rd-num {
  font-size: 0.875rem; font-weight: 800; letter-spacing: .1em; color: var(--rd-accent-deep);
  display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3);
}
.rd-num::after { content: ''; width: 48px; height: 2px; background: currentColor; }

/* ---------- Демонстрация ---------- */
.rd-flow { background: var(--rd-surface); border-top: 1px solid var(--rd-line); border-bottom: 1px solid var(--rd-line); }
.rd-demo__label { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: 0.9375rem; color: var(--rd-ink-2); margin-bottom: var(--s5); }
.rd-badge {
  display: inline-block; padding: 2px 10px; border-radius: 6px;
  background: var(--rd-ink); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.rd-demo__grid { display: grid; gap: var(--s5); }
.rd-demo__steps { display: grid; gap: var(--s2); }
.rd-demo__steps[hidden] { display: none; }
.rd-step {
  display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 56px;
  padding: var(--s3) var(--s4); text-align: left; font: inherit; color: var(--rd-ink-2);
  background: transparent; border: 2px solid var(--rd-line); border-radius: var(--rd-radius); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.rd-step:hover { border-color: var(--rd-ink-3); }
.rd-step__n {
  flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid currentColor; font-weight: 800; font-size: 0.9375rem;
}
.rd-step__t { font-weight: 600; line-height: 1.3; }
.rd-step__s { display: none; font-weight: 700; }
.rd-step[aria-selected="true"] { border-color: var(--rd-ink); background: var(--rd-paper); color: var(--rd-ink); }
.rd-step[aria-selected="true"] .rd-step__n { background: var(--rd-accent); border-color: var(--rd-accent); color: #fff; }

.rd-demo__panels { display: grid; gap: var(--s8); }
.rd-panel { display: grid; gap: var(--s5); align-items: center; }
.rd-panel__step { font-size: 0.8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rd-accent-deep); margin-bottom: var(--s2); }
.rd-panel__text p:not(.rd-panel__step) { margin-top: var(--s3); color: var(--rd-ink-2); }
.rd-panel .rd-phone { margin-bottom: var(--s4); }

/* С JavaScript: една стъпка наведнъж. Без него всички се виждат една под друга. */
.rd-demo.is-live .rd-demo__panels { gap: 0; }
.rd-demo.is-live .rd-panel[hidden] { display: none; }
.rd-demo.is-live .rd-demo__steps .rd-step__t { font-size: 0.9375rem; }
.rd-demo__nav .rd-btn { white-space: nowrap; }
.rd-demo__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); }
.rd-demo__nav[hidden] { display: none; }
.rd-demo__count { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--rd-ink-2); }

@media (max-width: 767px) {
  /* На телефон стъпките стават компактна лента от три номера над екрана. */
  .rd-demo.is-live .rd-demo__steps { grid-template-columns: repeat(3, 1fr); }
  .rd-demo.is-live .rd-step { flex-direction: column; justify-content: center; gap: 4px; padding: var(--s2); min-height: 64px; text-align: center; }
  .rd-demo.is-live .rd-step__t { display: none; }
  .rd-demo.is-live .rd-step__s { display: block; font-size: 0.8125rem; line-height: 1.2; }
  .rd-demo.is-live .rd-phone--demo { width: min(250px, 78%); }
  .rd-demo.is-live .rd-panel__text { min-height: 0; }
  .rd-demo__nav .rd-btn--sm { padding: 0 var(--s3); }
}
@media (min-width: 768px) {
  .rd-panel { grid-template-columns: 1fr 290px; gap: var(--s7); align-items: start; }
  .rd-panel__text { padding-top: var(--s4); }
}
@media (min-width: 1024px) {
  .rd-demo.is-live .rd-demo__grid { grid-template-columns: 340px 1fr; gap: var(--s8); align-items: start; }
  .rd-demo.is-live .rd-demo__steps { position: sticky; top: calc(var(--rd-top-h) + var(--s5)); }
  .rd-demo__nav { margin-left: calc(340px + var(--s8)); }
}

/* ---------- Pizza Pazzo ---------- */
.rd-case__grid { display: grid; gap: var(--s7); }
.rd-case__list { counter-reset: rdc; display: grid; gap: var(--s5); }
.rd-case__list li { counter-increment: rdc; padding-left: var(--s7); position: relative; }
.rd-case__list li::before {
  content: counter(rdc, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-weight: 800; font-size: 0.9375rem; color: var(--rd-accent-deep);
}
.rd-case__list p { margin-top: var(--s2); color: var(--rd-ink-2); }
.rd-case__media { display: grid; gap: var(--s4); position: relative; }
.rd-case__phone { display: none; }
@media (min-width: 768px) {
  .rd-case__media { grid-template-columns: 1fr 170px; align-items: end; }
  .rd-case__admin { grid-column: 1 / -1; }
  .rd-case__orders { align-self: center; }
  .rd-case__phone { display: block; margin-bottom: var(--s4); }
}
@media (min-width: 1024px) {
  .rd-case__grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s8); align-items: start; }
  .rd-case__media { grid-template-columns: 1fr 190px; column-gap: var(--s5); }
  .rd-case__admin { grid-column: 1 / 2; grid-row: 1 / 2; }
  .rd-case__orders { grid-column: 1 / 2; grid-row: 2 / 3; }
  .rd-case__phone { grid-column: 2 / 3; grid-row: 1 / 3; align-self: center; margin: 0; }
}
.rd-case__foot {
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rd-line);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); align-items: center; justify-content: space-between;
}
.rd-case__foot p { color: var(--rd-ink-3); font-size: 0.9375rem; max-width: 46em; }

/* ---------- Предложение ---------- */
.rd-offer { background: var(--rd-paper-2); }
.rd-offer__grid { display: grid; gap: var(--s7); }
.rd-offer__list { display: grid; border-top: 2px solid var(--rd-ink); }
.rd-offer__list li {
  display: grid; gap: var(--s1); padding: var(--s4) 0; border-bottom: 1px solid var(--rd-line);
}
.rd-offer__list b { font-size: 1.125rem; }
.rd-offer__list span { color: var(--rd-ink-2); }
@media (min-width: 768px) {
  .rd-offer__list li { grid-template-columns: 280px 1fr; gap: var(--s5); align-items: baseline; }
}
@media (min-width: 1024px) {
  .rd-offer__grid { grid-template-columns: 1.25fr 0.75fr; gap: var(--s8); align-items: start; }
  .rd-ticket { position: sticky; top: calc(var(--rd-top-h) + var(--s5)); }
}
/* Офертата е оформена като бележка от поръчка — перфорация отстрани. */
.rd-ticket {
  position: relative; background: var(--rd-surface); border-radius: var(--rd-radius-lg);
  padding: var(--s6) var(--s5); box-shadow: 0 30px 60px -40px rgba(31,34,38,.6);
}
.rd-ticket__label { font-size: 0.75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rd-ink-3); }
.rd-ticket__main { margin-top: var(--s2); font-size: 1.5rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
.rd-ticket__text { margin-top: var(--s3); color: var(--rd-ink-2); font-size: 0.9875rem; }
.rd-ticket__cut { position: relative; margin: var(--s5) calc(var(--s5) * -1); border-top: 2px dashed var(--rd-line); }
.rd-ticket__cut::before, .rd-ticket__cut::after {
  content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--rd-paper-2);
}
.rd-ticket__cut::before { left: -12px; }
.rd-ticket__cut::after { right: -12px; }
.rd-ticket .rd-btn { margin-top: var(--s5); }

/* ---------- Път ---------- */
.rd-path { display: grid; gap: var(--s5); counter-reset: none; }
.rd-path li { position: relative; padding-left: 60px; }
.rd-path__n {
  position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rd-ink); color: #fff; font-weight: 800;
}
.rd-path li:last-child .rd-path__n { background: var(--rd-accent); }
.rd-path p { margin-top: var(--s2); color: var(--rd-ink-2); }
@media (max-width: 1023px) {
  .rd-path li:not(:last-child)::after {
    content: ''; position: absolute; left: 21px; top: 48px; bottom: calc(var(--s5) * -1 + 4px); width: 2px; background: var(--rd-line);
  }
}
@media (min-width: 1024px) {
  .rd-path { grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
  .rd-path li { padding: 64px 0 0; border-top: 2px solid var(--rd-ink); }
  .rd-path__n { top: 16px; width: 36px; height: 36px; font-size: 0.9375rem; }
}

/* ---------- Въпроси ---------- */
.rd-faq { background: var(--rd-surface); border-top: 1px solid var(--rd-line); }
.rd-faq__grid { display: grid; gap: var(--s5); }
@media (min-width: 1024px) {
  .rd-faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s8); align-items: start; }
}
.rd-faq__list { border-top: 2px solid var(--rd-ink); }
.rd-q { border-bottom: 1px solid var(--rd-line); }
.rd-q summary {
  list-style: none; cursor: pointer; display: flex; gap: var(--s4); justify-content: space-between; align-items: center;
  padding: var(--s4) 0; min-height: 56px; font-weight: 700; font-size: 1.0625rem; line-height: 1.35;
}
.rd-q summary::-webkit-details-marker { display: none; }
.rd-q summary::after {
  content: '+'; flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center;
  border: 2px solid var(--rd-ink); border-radius: 50%; font-weight: 700; font-size: 1.125rem; line-height: 1;
}
.rd-q[open] summary::after { content: '−'; background: var(--rd-ink); color: #fff; }
.rd-q p { padding: 0 var(--s7) var(--s5) 0; color: var(--rd-ink-2); }

/* ---------- Финал и форма ---------- */
.rd-final { background: var(--rd-ink); color: #EDE7DE; }
.rd-final__grid { display: grid; gap: var(--s7); }
.rd-final .rd-h2 { margin-top: var(--s3); }
.rd-final__lead { margin-top: var(--s4); font-size: 1.125rem; color: #D9D2C7; max-width: 32em; }
.rd-final__facts { margin-top: var(--s5); display: grid; gap: var(--s3); }
.rd-final__facts li { position: relative; padding-left: var(--s6); }
.rd-final__facts li::before {
  content: ''; position: absolute; left: 2px; top: 0.55em; width: 14px; height: 8px;
  border-left: 2.5px solid #FFB48F; border-bottom: 2.5px solid #FFB48F; transform: rotate(-45deg);
}
.rd-final__contact { margin-top: var(--s6); color: #D9D2C7; }
.rd-final__contact a, .rd-done__alt a, .rd-foot__links a[href^="tel:"] { white-space: nowrap; }
.rd-final__contact a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .rd-final__grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s8); align-items: start; }
  .rd-final__copy { position: sticky; top: calc(var(--rd-top-h) + var(--s6)); }
}

.rd-card {
  background: var(--rd-surface); color: var(--rd-ink); border-radius: var(--rd-radius-lg);
  padding: var(--s5) var(--s4); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
@media (min-width: 560px) { .rd-card { padding: var(--s6); } }
.rd-form { display: grid; gap: var(--s4); }
.rd-f { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.rd-f label, .rd-f legend { font-weight: 700; font-size: 0.9375rem; padding: 0; }
.rd-f input[type="text"], .rd-f input[type="tel"], .rd-f input[type="email"] {
  width: 100%; min-height: 52px; padding: 0 var(--s4);
  font: inherit; font-size: 1.0625rem; color: var(--rd-ink);
  background: #fff; border: 2px solid #B9AE9C; border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rd-f input::placeholder { color: #8A8F95; }
.rd-f input:hover { border-color: var(--rd-ink-3); }
.rd-f input:focus { outline: none; border-color: var(--rd-ink); box-shadow: 0 0 0 3px rgba(31,34,38,.18); }
.rd-f input[aria-invalid="true"] { border-color: var(--rd-err); background: #FFFAF9; }
.rd-f__hint { font-size: 0.875rem; color: var(--rd-ink-3); margin-top: -2px; }
.rd-f__err { display: flex; gap: 6px; align-items: flex-start; font-size: 0.9rem; font-weight: 600; color: var(--rd-err); }
.rd-f__err::before { content: '!'; flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--rd-err); color: #fff; font-size: 0.75rem; font-weight: 800; display: grid; place-items: center; margin-top: 2px; }
.rd-f__err[hidden] { display: none; }

.rd-choices__grid { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: 4px; }
.rd-chip { position: relative; display: inline-flex; cursor: pointer; }
.rd-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rd-chip span {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4);
  border: 2px solid #B9AE9C; border-radius: 999px; background: #fff; font-weight: 600; font-size: 0.9375rem;
}
.rd-chip span::before {
  content: ''; width: 16px; height: 16px; border: 2px solid var(--rd-ink-3); border-radius: 4px; flex: 0 0 auto; background: #fff;
}
.rd-chip input:checked + span { border-color: var(--rd-ink); background: var(--rd-ink); color: #fff; }
.rd-chip input:checked + span::before {
  border-color: #fff; background: #fff;
  background-image: linear-gradient(45deg, transparent 45%, var(--rd-ink) 45%, var(--rd-ink) 58%, transparent 58%), linear-gradient(-45deg, transparent 40%, var(--rd-ink) 40%, var(--rd-ink) 53%, transparent 53%);
  background-size: 7px 7px, 10px 10px; background-position: 1px 5px, 5px 2px; background-repeat: no-repeat;
}
.rd-chip input:focus-visible + span { outline: 3px solid var(--rd-focus); outline-offset: 2px; }
.rd-choices[aria-invalid="true"] .rd-chip span { border-color: var(--rd-err); }

.rd-more { border: 1px dashed #B9AE9C; border-radius: 12px; padding: 0 var(--s4); }
.rd-more summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; font-size: 0.9375rem; }
.rd-more summary span { font-weight: 500; color: var(--rd-ink-3); margin-left: 6px; }
.rd-more[open] { padding-bottom: var(--s4); }
.rd-more[open] .rd-f + .rd-f { margin-top: var(--s3); }

.rd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rd-next { background: var(--rd-paper); border-left: 4px solid var(--rd-accent); border-radius: 0 10px 10px 0; padding: var(--s3) var(--s4); font-size: 0.9375rem; color: var(--rd-ink-2); }
.rd-next__label { font-weight: 800; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-ink); margin-bottom: 2px; }

.rd-status { border-radius: 12px; padding: var(--s3) var(--s4); font-size: 0.9375rem; font-weight: 600; line-height: 1.45; }
.rd-status[hidden] { display: none; }
.rd-status--err { background: var(--rd-err-tint); color: #7A1A12; border: 2px solid var(--rd-err); }
.rd-status--info { background: var(--rd-paper); color: var(--rd-ink); border: 2px solid var(--rd-line); }
.rd-status strong { display: block; margin-bottom: 2px; }

.rd-legal { font-size: 0.8125rem; color: var(--rd-ink-3); line-height: 1.5; }
.rd-legal a { color: var(--rd-ink-2); }

.rd-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: rd-spin .8s linear infinite; }
@keyframes rd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rd-spin { animation: none; border-top-color: rgba(255,255,255,.4); border-right-color: #fff; } }

.rd-done { display: grid; gap: var(--s3); outline: none; }
.rd-done[hidden] { display: none; }
.rd-done__mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--rd-ok); color: #fff; font-size: 1.75rem; font-weight: 800; }
.rd-done .rd-h3 { font-size: 1.5rem; }
.rd-done p { color: var(--rd-ink-2); }
.rd-done .rd-done__mark { color: #fff; }
.rd-done__id { white-space: nowrap; color: var(--rd-ink); font-variant-numeric: tabular-nums; letter-spacing: .04em; background: var(--rd-ok-tint); padding: 2px 8px; border-radius: 6px; }
.rd-done__alt { font-size: 0.9375rem; }
.rd-done__alt a { color: var(--rd-ink); font-weight: 700; }
.rd-done .rd-btn { justify-self: start; margin-top: var(--s2); }

/* ---------- Футър ---------- */
.rd-foot { background: #17191C; color: #BDB6AB; padding: var(--s7) 0; font-size: 0.9375rem; }
.rd-foot__in { display: grid; gap: var(--s5); }
.rd-foot__logo { height: 34px; width: auto; margin-bottom: var(--s3); filter: brightness(1.15); }
.rd-foot__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.rd-foot__links a, .rd-foot__btn { color: #E9E3D9; text-underline-offset: 3px; }
.rd-foot__btn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; min-height: 24px; }
.rd-foot__links li { display: flex; align-items: center; min-height: 32px; }
@media (min-width: 1024px) { .rd-foot__in { grid-template-columns: auto 1fr; align-items: end; } .rd-foot__links { justify-content: flex-end; } }

/* ---------- Банер за съгласие (рисува го bds-consent.js) ----------
   Класовете идват от споделения скрипт; стилът тук е само за тази
   страница. Банерът е компактна лента долу — не закрива първия екран
   и не пречи на затварянето. */
body.rd .consent {
  position: fixed; left: var(--s3); right: var(--s3); bottom: var(--s3); z-index: 90;
  background: var(--rd-surface); color: var(--rd-ink); border: 1px solid var(--rd-line);
  border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); padding: var(--s3) var(--s4);
  max-width: 980px; margin: 0 auto;
}
body.rd .consent__inner { display: grid; gap: var(--s3); }
body.rd .consent__title { font-size: 0.9375rem; font-weight: 800; margin: 0 0 2px; }
body.rd .consent__text p { font-size: 0.8125rem; line-height: 1.45; color: var(--rd-ink-2); margin: 0; }
body.rd .consent__link { color: var(--rd-accent-deep); }
body.rd .consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
body.rd .consent__btn[data-consent="accept"] { grid-column: 1 / -1; order: -1; }
body.rd .consent .btn, body.rd .consent-modal .btn {
  min-height: 44px; padding: 0 var(--s4); border-radius: 999px; border: 2px solid var(--rd-ink);
  background: transparent; color: var(--rd-ink); font: inherit; font-weight: 700; font-size: 0.875rem; cursor: pointer;
}
body.rd .consent .btn--brand, body.rd .consent-modal .btn--brand { background: var(--rd-ink); color: #fff; }
@media (min-width: 768px) {
  body.rd .consent { left: var(--s5); right: var(--s5); bottom: var(--s5); padding: var(--s4) var(--s5); }
  body.rd .consent__inner { grid-template-columns: 1fr auto; align-items: center; gap: var(--s5); }
  body.rd .consent__actions { display: flex; }
  body.rd .consent__btn[data-consent="accept"] { order: 0; }
}
body.rd .consent-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: var(--s4); }
body.rd .consent-modal__backdrop { position: absolute; inset: 0; background: rgba(23,25,28,.6); }
body.rd .consent-modal__panel {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--rd-surface); color: var(--rd-ink); border-radius: 18px; padding: var(--s6) var(--s5);
}
body.rd .consent-modal__title { font-size: 1.25rem; font-weight: 800; margin: 0 0 var(--s4); }
body.rd .consent-opt { padding: var(--s4) 0; border-top: 1px solid var(--rd-line); }
body.rd .consent-opt:first-of-type { border-top: 0; padding-top: 0; }
body.rd .consent-opt__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); cursor: pointer; }
body.rd .consent-opt__name { font-weight: 700; }
body.rd .consent-opt__always { font-size: 0.8125rem; color: var(--rd-ink-3); }
body.rd .consent-opt__box { width: 22px; height: 22px; accent-color: var(--rd-ink); }
body.rd .consent-opt__desc { margin-top: var(--s2); font-size: 0.875rem; color: var(--rd-ink-2); }
body.rd .consent-modal__actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: flex-end; margin-top: var(--s5); }
body.rd.consent-open { overflow: hidden; }
