:root {
  --blue: #1463f3;
  --deep-blue: #11378e;
  --navy: #172444;
  --yellow: #ffb52e;
  --yellow-dark: #e89b00;
  --text: #181b22;
  --muted: #656d7a;
  --line: #d7dbe1;
  --footer: #1d1f23;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--text); background: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { color: #fff; }
.topbar { height: 88px; padding: 0 36px; display: flex; align-items: center; gap: 48px; background: linear-gradient(104deg, #1c2331 0%, #173778 48%, #063fd3 100%); }
.brand { position: relative; flex: 0 0 130px; width: 130px; height: 49px; display: grid; place-items: center; text-decoration: none; }
.brand img { display: block; width: 100%; height: auto; max-height: 49px; object-fit: contain; }
.search { min-width: 0; flex: 1 1 600px; display: flex; align-items: center; gap: 0; max-width: 650px; }
.search svg { position: absolute; width: 22px; height: 22px; margin-left: 13px; fill: none; stroke: #8d96a3; stroke-width: 2; }
.search input { min-width: 0; width: 100%; height: 40px; padding: 0 16px 0 45px; color: #263044; border: 2px solid #b8bec7; border-radius: 4px; outline: none; }
.search input:focus { border-color: #65a0ff; box-shadow: 0 0 0 2px rgba(101,160,255,.25); }
.search input::placeholder { color: #9aa5b7; }
.search button { height: 40px; min-width: 78px; margin-left: 17px; color: #111; background: var(--yellow); border: 0; border-radius: 4px; font-weight: 700; }
.member-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.region { display: flex; align-items: center; gap: 9px; padding: 0; color: #fff; background: none; border: 0; }
.region svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.region i { height: 18px; border-left: 1px solid rgba(255,255,255,.8); }
.region b { font-size: 13px; }
.register-link, .login-link { min-width: 81px; padding: 12px 15px; border-radius: 4px; text-align: center; text-decoration: none; font-weight: 700; }
.register-link { color: #111; background: var(--yellow); }
.login-link { background: #0961f2; }
.menu-toggle { display: none; padding: 8px; background: none; border: 0; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px; background: #fff; }
.main-nav { height: 49px; padding: 0 26px; display: flex; align-items: center; gap: 42px; color: #fff; background: #1c1d1f; }
.main-nav a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { color: var(--yellow); }
.main-nav small { margin-left: 4px; }
.sale-banner { position: relative; min-height: 30px; padding: 6px 45px; color: #fff; background: #dc5900; text-align: center; font-weight: 700; }
.sale-banner a { text-decoration: underline; }
.sale-banner button { position: absolute; top: 0; right: 5px; width: 34px; height: 30px; color: #fff; background: none; border: 0; font-size: 24px; font-weight: 700; }

.registration { width: min(1068px, calc(100% - 36px)); min-height: 1080px; margin: 0 auto; padding: 30px 0 92px; }
.stepper { width: 75%; margin: 0 auto 55px; display: grid; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #3d4653; font-size: 13px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: calc(50% + 21px); width: calc(100% - 42px); height: 3px; background: #e4e5e8; }
.step-icon { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; color: #647080; background: #edeef0; border-radius: 50%; }
.step-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.step.active { color: var(--blue); }
.step.active .step-icon { color: #fff; background: var(--blue); }
.content-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 645px) minmax(300px, 400px); gap: 24px; align-items: start; }
.signup-form h1 { margin: 0 0 17px; color: #1260ff; font-size: 22px; }
.required-note { margin: 0 0 14px; color: #636b78; font-weight: 600; }
.required-note span, .form-row label > span:last-of-type { color: #d6382f; }
.account-types { display: flex; gap: 16px; margin: 0 0 28px; padding: 0; border: 0; }
.account-card { position: relative; width: 175px; height: 102px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #657080; background: #fff; border: 1px solid #cfd4da; border-radius: 9px; cursor: pointer; transition: .18s ease; }
.account-card:hover { border-color: #7ba8ff; }
.account-card input { position: absolute; opacity: 0; pointer-events: none; }
.account-card svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; }
.account-card strong { font-size: 12px; }
.account-card.selected { color: #1463f3; background: #e6edff; border-color: #1463f3; box-shadow: 0 0 0 1px rgba(20,99,243,.15); }
.choice-dot { position: absolute; top: 7px; left: 7px; width: 13px; height: 13px; background: #fff; border: 1px solid #d0d4da; border-radius: 50%; }
.account-card.selected .choice-dot { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 2px #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 15px; }
.form-row.single { grid-template-columns: 1fr; }
.form-row label { display: block; color: #1f242c; font-weight: 700; }
.form-row input { width: 100%; height: 41px; margin-top: 7px; padding: 0 13px; color: #252a33; background: #fff; border: 1px solid #52575f; border-radius: 5px; outline: none; font-weight: 400; }
.form-row input::placeholder { color: #a3a9b2; }
.form-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(20,99,243,.13); }
.form-row label.invalid input { border-color: #d73535; }
.error-message { display: none; margin-top: 5px; color: #c92f2f; font-weight: 400; }
.form-row label.invalid .error-message { display: block; }
.agreements { display: grid; gap: 17px; margin-top: 18px; }
.check-row { display: grid; grid-template-columns: 19px 1fr; gap: 9px; align-items: start; color: #626b79; line-height: 1.38; font-weight: 600; cursor: pointer; }
.check-row input { position: absolute; opacity: 0; }
.checkbox-ui { width: 19px; height: 19px; border: 1px solid #d0d4da; border-radius: 4px; background: #fff; }
.check-row input:checked + .checkbox-ui { display: grid; place-items: center; background: var(--blue); border-color: var(--blue); }
.check-row input:checked + .checkbox-ui::after { content: "✓"; color: white; font-size: 13px; font-weight: 800; }
.check-row.invalid .checkbox-ui { border-color: #d73535; box-shadow: 0 0 0 2px rgba(215,53,53,.1); }
.check-row a, .help-card a { color: #075cfd; }
.form-hint { margin: 23px 0 20px; color: #66707d; line-height: 1.45; }
.form-divider { height: 1px; margin-bottom: 21px; background: #d9dce0; }
.next-button { width: 315px; height: 40px; margin-left: auto; display: flex; align-items: center; justify-content: center; gap: 11px; color: #111; background: #ffb936; border: 0; border-bottom: 3px solid #e9a111; border-radius: 7px; font-weight: 800; }
.next-button:hover { background: #ffc44e; }
.next-button span { font-size: 21px; line-height: 1; }
.help-card { padding: 25px 24px 20px; color: #666e7c; background: #f7f7f8; border: 1px solid #f0f0f1; border-radius: 7px; box-shadow: 0 1px 4px rgba(0,0,0,.05); line-height: 1.55; text-align: justify; }
.help-card h2 { margin: 0 0 12px; color: #15171b; font-size: 17px; line-height: 1.25; text-align: left; }
.help-card p { margin: 0 0 10px; }

.site-footer { color: #fff; background: var(--footer); }
.footer-main { min-height: 300px; padding: 55px 30px 35px; display: grid; grid-template-columns: 190px repeat(5, 1fr); gap: 45px; }
.footer-logo { width: 130px; margin-bottom: 26px; }
.footer-brand button { width: 170px; min-height: 42px; margin-bottom: 16px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: #363a41; border: 0; border-radius: 3px; text-align: left; font-weight: 700; }
.footer-brand button span:last-child { font-size: 7px; transform: rotate(45deg); }
.footer-brand .flag { font-size: 22px; transform: none; }
.footer-main section { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-main h3 { margin: 0 0 7px; color: var(--yellow); font-size: 15px; }
.footer-main section a { color: #fff; text-decoration: none; }
.footer-main section a:hover { text-decoration: underline; }
.footer-bottom { min-height: 90px; padding: 20px 30px 30px; display: flex; align-items: center; justify-content: space-between; gap: 40px; font-size: 12px; }
.footer-bottom p { max-width: 230px; line-height: 1.5; }
.footer-bottom nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0 6px; }
.footer-bottom a { text-decoration: none; }
.cookie-banner { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; min-height: 76px; padding: 18px 78px 18px 30px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; color: #657081; background: #fff; border-top: 1px solid #d7d9dd; box-shadow: 0 -3px 16px rgba(0,0,0,.12); font-size: 12px; }
.cookie-banner p { max-width: 730px; margin: 0; line-height: 1.5; }
.cookie-banner a { color: #1763ec; }
.cookie-actions { display: flex; align-items: center; gap: 14px; }
.cookie-actions button { min-height: 40px; padding: 0 20px; border-radius: 2px; font-size: 12px; font-weight: 700; }
.cookie-actions .settings { color: #1763ec; background: transparent; border: 0; text-decoration: underline; }
.cookie-actions .reject, .cookie-actions .accept { color: #fff; background: #447ce6; border: 0; }
.cookie-close { position: absolute; top: 22px; right: 23px; color: #555; background: none; border: 0; font-size: 23px; }
.toast { position: fixed; z-index: 30; right: 24px; bottom: 100px; max-width: 360px; padding: 15px 20px; color: #fff; background: #172444; border-left: 5px solid #2e82ff; border-radius: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transform: translateY(16px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.analysis-dialog { width: min(440px, calc(100% - 32px)); padding: 34px 32px 28px; color: #20242b; background: #fff; border: 0; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.3); text-align: center; }
.analysis-dialog::backdrop { background: rgba(10,18,35,.64); backdrop-filter: blur(2px); }
.dialog-status-icon { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; color: #1763ec; background: #e9f0ff; border-radius: 50%; }
.dialog-status-icon svg { width: 43px; height: 43px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.analysis-dialog h2 { margin: 0 0 12px; color: #172444; font-size: 24px; }
.analysis-dialog p { margin: 0 auto 10px; color: #5f6877; line-height: 1.55; }
.analysis-dialog .dialog-note { font-size: 13px; }
.analysis-dialog button { width: 180px; height: 42px; margin-top: 14px; color: #111; background: var(--yellow); border: 0; border-bottom: 3px solid var(--yellow-dark); border-radius: 6px; font-weight: 800; }
.analysis-dialog button:hover { background: #ffc44e; }

@media (max-width: 1180px) {
  .topbar { gap: 25px; padding: 0 24px; }
  .main-nav { gap: 26px; overflow-x: auto; }
  .region span, .region i, .region b { display: none; }
  .footer-main { grid-template-columns: 175px repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .topbar { height: auto; min-height: 74px; flex-wrap: wrap; gap: 14px; padding: 10px 16px; }
  .brand { flex-basis: 105px; width: 105px; }
  .brand img { max-height: 43px; }
  .member-actions { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search button { margin-left: 8px; }
  .main-nav { display: none; height: auto; padding: 10px 20px; flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid #333; }
  .sale-banner { font-size: 12px; }
  .registration { min-height: 0; padding-top: 24px; }
  .stepper { width: 100%; margin-bottom: 38px; }
  .content-grid { grid-template-columns: 1fr; }
  .help-card { grid-row: 2; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom nav { justify-content: flex-start; }
  .cookie-banner { grid-template-columns: 1fr; gap: 13px; padding: 17px 45px 17px 18px; }
  .cookie-actions { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .search input { font-size: 12px; }
  .search button { min-width: 65px; }
  .registration { width: min(100% - 28px, 1068px); }
  .step strong { font-size: 12px; }
  .step-icon { width: 37px; height: 37px; }
  .step:not(:last-child)::after { top: 18px; }
  .account-types { gap: 10px; }
  .account-card { width: calc(50% - 5px); min-width: 0; }
  .form-row { grid-template-columns: 1fr; }
  .next-button { width: 100%; }
  .help-card { padding: 21px 18px; }
  .footer-main { grid-template-columns: 1fr; padding-top: 40px; }
  .footer-brand { grid-column: auto; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { min-width: 0; flex: 1 1 calc(50% - 7px); padding: 7px 9px; white-space: normal; }
  .cookie-actions .settings { flex-basis: 100%; }
  .analysis-dialog { padding: 28px 20px 23px; }
}
