/* Source: 1.2 Стройбан - Регистрация (десктоп).html
   Extracted from v3 mock on 2026-07-13. */
.register-page-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--background); }

  /* minimal header */
  .reg-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; }
  .reg-header .sb-logo { width: 166px; height: 32px; overflow: hidden; color: transparent !important; font-size: 0 !important; line-height: 0; background: url("/brand/stroyban-logo.svg") left center / contain no-repeat; }
  .reg-header .sb-logo .sb-logo-mark { display: none !important; }
  .reg-header .who { font-size: var(--text-sm); color: var(--muted-foreground); }
  .reg-header .who :is(a, [data-slot="button"]) { color: var(--foreground); font-weight: 600; text-decoration: none; }
  .reg-header .who :is(a, [data-slot="button"]):hover { color: var(--primary-hover); }

  .reg-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 24px 80px; text-align: center; }
  .reg-main h1 { font-size: var(--text-display); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 10px; }
  .reg-main .sub { font-size: var(--text-lg); color: var(--muted-foreground); margin: 0 0 40px; }

  .roles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; max-width: 680px; width: 100%; min-width: 0; }
  @media (max-width: 620px){ .roles { grid-template-columns: 1fr; } }
  .register-page-shell .roles > .role[data-slot="button"] {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto !important;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
    white-space: normal !important;
    text-align: left;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
    font-family: inherit;
  }
  .role { position: relative; display: block; text-align: left; background: var(--card); border: 2px solid var(--border); border-radius: 18px; padding: 22px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease; font-family: inherit; }
  .role:hover { border-color: oklch(0.8 0 0); }
  .role[aria-pressed="true"] { border-color: #111; box-shadow: 0 0 0 1px #111; }
  .role .ill { height: 168px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
  .role .ill i { width: 56px; height: 56px; }
  .role.cust .ill { background: var(--secondary); color: #111; }
  .role.pro .ill { background: var(--primary); color: #111; }
  .role .rt { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; font-size: var(--text-h4); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; white-space: normal; overflow-wrap: anywhere; }
  .role .rt i, .role .rt svg { flex: none; width: 20px; height: 20px; color: var(--muted-foreground); }
  .role .rd { display: block; min-width: 0; max-width: 100%; font-size: var(--text-sm); line-height: 1.35; color: var(--muted-foreground); margin-top: 6px; white-space: normal; overflow-wrap: anywhere; }
  .role .check { position: absolute; top: 16px; right: 16px; inline-size: 26px !important; block-size: 26px !important; min-inline-size: 26px; min-block-size: 26px; max-inline-size: 26px; max-block-size: 26px; aspect-ratio: 1 / 1; border: 0 !important; border-radius: 999px; padding: 0 !important; background: #111; color: #fff; display: none; place-items: center; line-height: 0; box-sizing: border-box; overflow: hidden; }
  .role[aria-pressed="true"] .check { display: grid; }
  .role .check i, .role .check svg { display: block; flex: none; width: 16px; height: 16px; }

  .reg-cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .reg-cta [data-slot="button"] { min-width: 280px; }
  .reg-foot { font-size: var(--text-sm); color: var(--muted-foreground); }
  .reg-foot a { color: var(--foreground); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .register-page-shell {
    background: var(--background) !important;
    min-height: 100dvh;
  }

  .reg-header {
    gap: 12px;
    min-height: calc(76px + env(safe-area-inset-top, 0px));
    padding: calc(16px + env(safe-area-inset-top, 0px)) 22px 16px;
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
  }

  .reg-header .sb-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
    width: auto;
    height: auto;
    overflow: visible;
    color: var(--foreground) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    background: none;
  }

  .reg-header .sb-logo .sb-logo-mark {
    display: grid !important;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }

  .reg-header .who {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    line-height: 1.25;
    text-align: right;
  }

  .reg-login-trigger {
    font-size: inherit;
  }

  .register-page-shell .reg-main {
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 38px 22px calc(36px + env(safe-area-inset-bottom, 0px)) !important;
    text-align: center;
  }

  .register-page-shell .reg-main h1 {
    align-self: center;
    width: 100%;
    max-width: none;
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: 0;
    text-wrap: balance;
  }

  .register-page-shell .reg-main .sub {
    align-self: center;
    width: 100%;
    max-width: none;
    margin-bottom: 28px;
    font-size: 17px;
    line-height: 1.35;
    text-wrap: balance;
  }

  .register-page-shell .roles {
    width: 100%;
    max-width: none;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    box-sizing: border-box;
  }

  .register-page-shell .roles > .role[data-slot="button"] {
    display: grid;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
    height: auto !important;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
  }

  .register-page-shell .roles > .role[data-slot="button"] {
    border-width: 2px;
    border-radius: 16px;
    padding: 14px !important;
  }

  .role .ill {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    height: 150px;
    margin-bottom: 16px;
  }

  .role .ill i {
    width: 36px;
    height: 36px;
  }

  .role .rt {
    font-size: 22px;
    line-height: 1.16;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .role .rd {
    display: block;
    min-width: 0;
    font-size: 15px;
    line-height: 1.35;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .reg-cta {
    margin-top: 28px;
  }

  .reg-cta [data-slot="button"] {
    width: 100%;
    min-width: 0;
  }
}
