* { box-sizing: border-box; }
html { background: var(--background); }
body { margin: 0; color: var(--text); background: var(--background); font-family: var(--font-body); font-size: var(--font-size-body); }
.welcome {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: var(--screen-max);
  min-height: 100svh;
  margin-inline: auto;
  padding: max(24px, env(safe-area-inset-top, 0px), var(--bahtim-safe-top, 0px))
    max(20px, env(safe-area-inset-right, 0px), var(--bahtim-safe-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px), var(--bahtim-safe-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px), var(--bahtim-safe-left, 0px));
}
.brand { position: relative; font-size: var(--font-size-brand); line-height: 26px; font-weight: 750; padding-left: 4px; margin-bottom: 20px; }
.decoration { position: absolute; pointer-events: none; fill: none; stroke-width: 1.7; z-index: -1; }
.line-primary { stroke: var(--primary); }
.line-accent { stroke: var(--accent); }
.decoration-top { top: 28px; right: 0; width: 116px; height: 80px; }
.hero { position: relative; }
.decoration-side { left: -20px; top: 55%; width: 40px; height: 45px; }
.couple { display: block; width: 100%; height: auto; border-radius: var(--radius-photo); }
.couple-female { display: none; }
[data-theme='female'] .couple-male { display: none; }
[data-theme='female'] .couple-female { display: block; }
h1 { font-family: var(--voice-heading, var(--font-heading)); font-size: 32px; line-height: 1.23; letter-spacing: var(--voice-tracking, -.75px); font-weight: var(--voice-weight, 700); margin: 14px 4px 10px; text-wrap: balance; }
.description { margin: 0 4px; font-size: var(--font-size-body); line-height: var(--line-height-body); color: var(--muted-text); }
.actions { margin-top: 16px; }
a { text-decoration: none; }
.start { min-height: var(--button-height); display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--primary); color: #FFFFFF; border-radius: var(--radius-button); padding: 14px 20px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.start svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.login { min-height: var(--touch-target); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 12px 0; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--muted-text); }
.login strong { color: var(--primary); font-weight: 700; }
a:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { a { transition: opacity 120ms; } }
a:active { opacity: .85; }
h1 span { display: block; }
/* «Назад» in the top-left of every inner screen (welcome → language picker, registration → previous step). */
.back-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch-target);
  margin: -10px 0 2px -4px; padding: 8px 8px 8px 4px;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--primary); background: none; border: 0; border-radius: 12px; cursor: pointer;
}
.back-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-link:active { opacity: .7; }
.back-link:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
/* BAH-0020 (Codex): brand promise line and the UZ/RU toggle in the bottom-left corner of Welcome. */
.welcome .promise { margin: 18px 4px 0; font-size: 13px; line-height: 1.6; color: var(--muted-text); }
.welcome .language-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; margin: 14px 0 0; padding: 0 12px; font: inherit; font-size: 15px; font-weight: 650; color: var(--text); background: #FFFFFF; border: 1px solid var(--border, #DFE7ED); border-radius: 14px; cursor: pointer; }
.welcome .language-toggle:active { opacity: .8; }
.welcome .language-toggle:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
@media (max-width: 374px) { .welcome h1 { font-size: 30px; } }
