/*
 * The demo request page (/demo, /ua/demo, /pl/demo): «Your Sereda is assembling live».
 * The form on the left; on the right a preview of the visitor's future workspace that
 * fills in as they type (scripts/marketing/site-runtime/demo.js). Markup lives in
 * scripts/marketing/demo-request/<lang>.html and is spliced into demo.html by the importer.
 * Prefix .dr- (never .ad-: ad blockers hide .ad-* classes).
 */
.dr { padding-top: calc(76px + clamp(10px, 1.6vw, 22px)); }
.dr-sheet { padding: clamp(20px, 3vw, 40px) clamp(18px, 3vw, 40px) clamp(28px, 4vw, 48px); }
.dr-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }

/* ── left: form and «thanks» ─────────────────────────────────────────────── */
.dr-main { min-width: 0; padding-top: clamp(4px, 1vw, 16px); }
.dr-eyebrow { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font: var(--t-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--accent-ink); }
.dr-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dr h1 { margin: 14px 0 0; font: 600 clamp(36px, 4.2vw, 56px)/.98 var(--f-display); letter-spacing: -.05em; }
.dr-serif { font: 300 1em/1 var(--f-serif); letter-spacing: -.035em; }
.dr-lead { margin: 14px 0 0; max-width: 46ch; font: var(--t-body-l); color: var(--ink-74); }

.dr-form { display: flex; flex-direction: column; }
.dr-form[hidden], .dr-done[hidden] { display: none; }
.dr-fields { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.dr-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dr-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.dr-field label, .dr-group legend { font: 500 13.5px/1.3 var(--f-text); color: var(--ink-74); }
.dr-group legend span, .dr-opt { font-weight: 400; color: var(--ink-62); }
.dr-inp { height: 48px; box-sizing: border-box; min-width: 0; padding: 0 14px; border: 0; border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1px var(--ink-18); font: 400 16px/1 var(--f-text); color: var(--ink); outline: 0; transition: box-shadow .2s; }
.dr-inp::placeholder { color: var(--ink-38); }
.dr-inp:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.dr-field.bad .dr-inp { box-shadow: inset 0 0 0 1.5px #C2552B; }
.dr-msg { margin: 0; font: 400 13px/1.35 var(--f-text); color: var(--accent-ink); }
.dr-msg:empty { display: none; }

.dr-group { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.dr-group legend { padding: 0; }
.dr-note { margin: 4px 0 0; font: var(--t-caption); color: var(--ink-62); }
.dr-note[hidden] { display: none; }
.dr-sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.dr-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dr-pick { position: relative; display: block; }
.dr-pick input { position: absolute; opacity: 0; pointer-events: none; }
.dr-pick span { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 12px; border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1px var(--ink-10); font: 600 13.5px/1 var(--f-text); color: var(--ink); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .25s var(--ease-out); }
.dr-topics .dr-pick span { height: 38px; border-radius: 999px; font-weight: 500; }
.dr-pick span:hover { box-shadow: inset 0 0 0 1.5px var(--ink-38); }
.dr-pick input:checked + span { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.dr-pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.dr-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; margin-top: 22px; border: 0; border-radius: var(--r); background: var(--ink); color: var(--paper); font: var(--t-btn-l); box-shadow: var(--sh-cta); cursor: pointer; transition: transform .2s var(--ease-out); }
.dr-submit:active { transform: scale(.985); }
.dr-submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dr-submit[disabled] { cursor: progress; }
.dr-submit .dr-spin { display: none; }
.dr-submit[disabled] .dr-spin { display: block; animation: dr-spin .8s linear infinite; }
.dr-legal { margin: 11px 0 0; font: var(--t-caption); color: var(--ink-62); }
.dr-legal a { border-bottom: 1px solid var(--ink-30); }
.dr .ss-form-error { margin: 12px 0 0; font: 400 13.5px/1.4 var(--f-text); color: var(--accent-ink); }

.dr-done { display: flex; flex-direction: column; outline: 0; }
.dr-check { display: grid; place-items: center; width: 52px; height: 52px; margin-top: 8px; border-radius: 50%; background: var(--ink); color: var(--paper); animation: dr-pop .45s var(--ease-out) both; }
.dr-check path { stroke-dasharray: 30; animation: dr-draw .5s ease-out .2s both; }
.dr-done h1 { font-size: clamp(44px, 4.6vw, 64px); }
.dr-done h1 .dr-serif { font-size: .69em; }
.dr-steps { display: flex; flex-direction: column; margin: 28px 0 0; padding: 0; list-style: none; }
.dr-steps li { display: flex; gap: 14px; }
.dr-steps li > span:first-child { display: flex; flex-direction: column; align-items: center; flex: none; }
.dr-steps i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-20); font: 500 11px/1 var(--f-mono); font-style: normal; color: var(--ink-62); }
.dr-steps li:first-child i { background: var(--accent); box-shadow: none; color: var(--white); }
.dr-steps li:nth-child(2) i { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-ink); }
.dr-steps li:not(:last-child) > span:first-child::after { content: ""; flex: 1; width: 1.5px; min-height: 16px; background: var(--ink-10); }
.dr-steps li > span:last-child { padding-bottom: 16px; min-width: 0; }
.dr-steps b { display: block; font: 600 15.5px/1.3 var(--f-text); }
.dr-steps small { display: block; margin-top: 2px; font: 400 14px/1.4 var(--f-text); color: var(--ink-62); }
.dr-steps small b { display: inline; font: inherit; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.dr-help { margin: 18px 0 0; font: 400 14px/1.5 var(--f-text); color: var(--ink-74); }
.dr-help a { font-weight: 600; border-bottom: 1.5px solid var(--accent); }
.dr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.dr-btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border-radius: var(--r); background: var(--ink); color: var(--paper); font: var(--t-btn-l); white-space: nowrap; box-shadow: var(--sh-cta); }
.dr-btn:hover { color: var(--paper); }
.dr-fix { min-height: 44px; padding: 0; border: 0; background: none; font: 500 14px/1.3 var(--f-text); color: var(--ink-74); cursor: pointer; }
.dr-fix span { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* ── right: the live preview ─────────────────────────────────────────────── */
.dr-stage { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 640px; padding: 72px clamp(18px, 3vw, 48px) 56px; border-radius: var(--r-promo); background: var(--dawn-base); }
.dr-stage::before { content: ""; position: absolute; left: 6%; top: 46%; width: 92%; height: 30%; border-radius: 50%; transform: rotate(-18deg); background: radial-gradient(closest-side, rgba(239,123,71,.55), rgba(245,165,127,0)); opacity: .7; pointer-events: none; }
.dr-live { position: absolute; left: 22px; top: 20px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 30px; margin: 0; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-74); }
.dr-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dr.is-typing .dr-live i { animation: dr-pulse 1.6s ease-in-out infinite; }
.dr.is-done .dr-live i { background: var(--ink); animation: none; }
.dr-wrap { position: relative; z-index: 1; width: min(540px, 100%); animation: dr-float 7s ease-in-out infinite; }
.dr-win { position: relative; box-sizing: border-box; padding: 18px 22px 22px; border-radius: 12px; background: rgba(253,252,250,.88); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 1px 0 rgba(23,19,14,.04), 0 40px 80px -40px rgba(23,19,14,.45); }
.dr-bar { display: flex; align-items: center; gap: 12px; }
.dr-dots { display: flex; gap: 6px; }
.dr-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-10); }
.dr-url { display: inline-flex; align-items: center; gap: 7px; min-width: 0; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink-05); font: 400 12px/1 var(--f-mono); color: var(--ink-38); }
.dr-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr.has-company .dr-url { color: var(--ink); }
.dr-ws { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink-08); }
.dr-logo { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--ink-05); box-shadow: inset 0 0 0 1.5px var(--ink-10); font: 600 20px/1 var(--f-display); color: var(--ink-38); transition: background .35s, color .35s, box-shadow .35s; }
.dr.has-company .dr-logo { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%); color: var(--white); box-shadow: 0 8px 18px -10px rgba(181,85,45,.8); }
.dr-ws-t { display: block; flex: 1; min-width: 0; }
.dr-ws-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 21px/1.1 var(--f-display); letter-spacing: -.035em; color: var(--ink-38); }
.dr.has-company .dr-ws-t b { color: var(--ink); }
.dr-ws-t span { display: block; margin-top: 3px; font: 400 13px/1.3 var(--f-text); color: var(--ink-62); }
.dr-person { display: inline-flex; align-items: center; gap: 8px; flex: none; font: 500 13px/1 var(--f-text); color: var(--ink-38); }
.dr-ava { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink-08); font: 600 11.5px/1 var(--f-text); color: var(--ink-38); }
.dr.has-name .dr-person { color: var(--ink); }
.dr.has-name .dr-ava { background: var(--ink); color: var(--paper); }
.dr-cap { margin: 18px 0 0; font: 500 10.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-62); }
.dr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.dr-tile { display: flex; align-items: center; gap: 10px; height: 48px; box-sizing: border-box; padding: 0 12px; border-radius: var(--r); background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--ink-08); font: 600 13.5px/1.2 var(--f-text); color: var(--ink-74); transition: background .35s var(--ease-out), box-shadow .35s, color .35s; }
.dr-tile svg { flex: none; }
.dr-tile span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-tile em { display: none; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--white); }
.dr-tiles.has-on .dr-tile { background: rgba(255,255,255,.45); color: var(--ink-38); }
.dr-tiles .dr-tile.on { background: linear-gradient(135deg, #FBE7DC 0%, #F7D2C9 100%); box-shadow: inset 0 0 0 1.5px rgba(229,135,92,.7), 0 10px 22px -14px rgba(239,123,71,.7); color: var(--ink); }
.dr-tile.on em { display: grid; animation: dr-pop .45s var(--ease-out) both; }
.dr-tiles .dr-tile.more { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-10); color: var(--ink-62); }
.dr-team { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.dr-pips { display: grid; grid-template-columns: repeat(16, 9px); gap: 5px; margin-top: 10px; }
.dr-pips i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-10); transition: background .3s; }
.dr-pips i.on { background: var(--ink); }
.dr-team-n { margin: 0; font: 300 30px/1 var(--f-serif); letter-spacing: -.03em; color: var(--ink-30); white-space: nowrap; }
.dr.has-size .dr-team-n { color: var(--ink); }
.dr-stamp { position: absolute; right: 18px; top: 70px; display: none; flex-direction: column; align-items: center; gap: 2px; padding: 10px 16px; border-radius: var(--r); box-shadow: inset 0 0 0 2.5px var(--accent-ink); background: rgba(251,231,220,.86); font: 600 15px/1.1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); transform: rotate(-9deg); }
.dr-stamp small { font-size: 10.5px; }
.dr-ticket { position: relative; display: none; align-items: center; justify-content: space-between; gap: 18px; margin-top: -1px; padding: 18px 26px; border-radius: 12px; background: #FDFCFA; box-shadow: 0 40px 80px -40px rgba(23,19,14,.45); }
.dr-ticket::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; border-top: 2px dashed var(--ink-18); }
.dr-ticket > span { display: block; min-width: 0; }
.dr-ticket small { display: block; font: 500 10.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); }
.dr-ticket b { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 19px/1.1 var(--f-display); letter-spacing: -.03em; }
.dr-ticket p { flex: none; margin: 0; text-align: right; font: 400 13px/1.4 var(--f-text); color: var(--ink-62); }
.dr.is-done .dr-stamp { display: inline-flex; animation: dr-stamp .6s var(--ease-out) .35s both; }
.dr.is-done .dr-ticket { display: flex; animation: dr-tear .6s var(--ease-out) .7s both; }
.dr-stage-note { position: relative; z-index: 1; margin: 0; text-align: center; font: 400 13px/1.4 var(--f-text); color: var(--ink-62); }

@keyframes dr-spin { to { transform: rotate(360deg); } }
@keyframes dr-pop { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes dr-draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes dr-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes dr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes dr-stamp { 0% { transform: rotate(-9deg) scale(1.6); opacity: 0; } 60% { transform: rotate(-9deg) scale(.96); opacity: 1; } 100% { transform: rotate(-9deg) scale(1); opacity: 1; } }
@keyframes dr-tear { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* Phone and narrow tablet: the preview goes on top as a compact card. */
@media (max-width: 1099px) {
  .dr-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .dr-stage { order: -1; min-height: 0; padding: 54px 14px 18px; }
  .dr-live { left: 14px; top: 14px; height: 26px; font-size: 10px; }
  .dr-wrap { animation: none; }
  .dr-win { padding: 12px 12px 14px; }
  .dr-dots, .dr-person span:last-child, .dr-team, .dr-cap, .dr-stage-note { display: none; }
  .dr-ws { margin-top: 12px; padding-top: 0; border-top: 0; gap: 10px; }
  .dr-logo { width: 38px; height: 38px; font-size: 17px; }
  .dr-ws-t b { font-size: 17px; }
  .dr-tiles { gap: 6px; margin-top: 12px; }
  .dr-tile { height: 38px; padding: 0 9px; gap: 7px; font-size: 12px; }
  .dr-tile em { display: none !important; }
  .dr-stamp { top: 10px; right: 12px; padding: 7px 11px; font-size: 12px; }
  .dr-stamp small { font-size: 9px; }
  .dr-ticket { padding: 14px 16px; }
  .dr-ticket b { font-size: 16px; }
  .dr-ticket p { font-size: 12px; }
  .dr-main { padding-top: 0; }
}
@media (max-width: 520px) {
  .dr-row, .dr-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dr-row { grid-template-columns: minmax(0, 1fr); }
  .dr-pick span { height: 44px; }
  .dr-topics .dr-pick span { height: 40px; }
  .dr-acts { flex-direction: column; align-items: stretch; }
  .dr-inp { height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .dr-wrap, .dr.is-typing .dr-live i, .dr-check, .dr-check path, .dr-tile.on em, .dr.is-done .dr-stamp, .dr.is-done .dr-ticket, .dr-submit[disabled] .dr-spin { animation: none; }
  .dr-tile, .dr-pips i, .dr-logo, .dr-pick span { transition: none; }
}
