:root {
  --orange: #ff7800;
  --orange-dark: #dc5f00;
  --ink: #171717;
  --muted: #696969;
  --line: #dedede;
  --soft: #f5f5f5;
  --white: #fff;
  --success: #23b568;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(17, 17, 17, .09);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  height: 124px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(28px, 5vw, 76px);
  padding-left: 5px;
}
.brand { display: inline-flex; align-items: center; gap: 28px; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 270px; height: 86px; object-fit: contain; object-position: left center; }
.brand-link { font-size: 18px; font-weight: 750; text-decoration: underline; text-underline-offset: 6px; }
.brand > svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

main { position: relative; overflow: hidden; padding: 72px clamp(28px, 9.8vw, 150px) 42px; }
.brand-rail { position: absolute; z-index: 0; left: 0; top: 0; width: 2cm; height: 100%; background: var(--orange); pointer-events: none; }
.hero, .steps { position: relative; z-index: 1; max-width: 1140px; margin-inline: auto; }
h1 { margin: 0; font-size: clamp(42px, 4.3vw, 66px); line-height: 1.04; letter-spacing: -.045em; font-weight: 820; }
h1 span { white-space: nowrap; }
.lead { margin: 22px 0 30px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--muted); }

.tool-shell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
form { padding: 34px 36px 29px; }
label { display: block; margin: 0 0 11px; font-size: 17px; font-weight: 760; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 19px; top: 50%; width: 22px; transform: translateY(-50%); fill: none; stroke: #868686; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
input {
  width: 100%; height: 72px; border: 1px solid #cfcfcf; border-radius: 10px; outline: 0;
  padding: 0 20px 0 56px; color: var(--ink); background: var(--white); font-size: 18px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #9a9a9a; }
input:hover { border-color: #a5a5a5; }
input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 120, 0, .17); }
input[aria-invalid="true"] { border-color: #d63e37; box-shadow: 0 0 0 3px rgba(214, 62, 55, .12); }
.form-message { min-height: 20px; margin: 8px 0 4px; color: #b72f29; font-size: 14px; }
.primary-button, .primary-link {
  height: 58px; border: 0; border-radius: 9px; background: var(--orange); color: var(--white);
  font-size: 17px; font-weight: 760; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
}
.primary-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px; }
.primary-button svg, .primary-link svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.primary-button:hover, .primary-link:hover { background: var(--orange-dark); box-shadow: 0 8px 18px rgba(220, 95, 0, .2); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .72; transform: none; }
.primary-button:focus-visible, .primary-link:focus-visible, .secondary-button:focus-visible, .brand:focus-visible { outline: 3px solid rgba(255, 120, 0, .35); outline-offset: 3px; }

.result { min-height: 142px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 26px 36px; background: var(--soft); border-top: 1px solid var(--line); }
.result[hidden] { display: none; }
.success-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--success); color: var(--white); }
.success-mark svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.result-copy p { margin: 0 0 7px; font-size: 15px; font-weight: 730; }
.result-copy a { color: var(--ink); font-size: clamp(24px, 2.3vw, 34px); font-weight: 800; letter-spacing: -.025em; text-decoration: none; word-break: break-all; }
.result-copy a:hover { color: var(--orange-dark); }
.result-actions { display: flex; gap: 14px; }
.secondary-button, .primary-link { min-width: 150px; height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.secondary-button { border: 1px solid #c8c8c8; border-radius: 9px; background: var(--white); color: var(--ink); font-size: 16px; font-weight: 720; cursor: pointer; transition: border-color .2s, background .2s; }
.secondary-button:hover { border-color: var(--orange); background: #fff8f2; }
.secondary-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.steps { margin-top: 54px; min-height: 126px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); }
.steps article { display: flex; align-items: center; gap: 19px; padding: 24px 28px; }
.steps article > span { flex: 0 0 auto; display: grid; place-items: center; width: 58px; height: 58px; border: 1.5px solid var(--orange); border-radius: 50%; color: var(--orange-dark); font-size: 15px; font-weight: 800; }
.steps h2 { margin: 0 0 7px; font-size: 17px; line-height: 1.2; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.step-arrow { align-self: center; width: 21px; fill: none; stroke: #9a9a9a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
footer { min-height: 68px; display: flex; align-items: center; justify-content: center; gap: 24px; border-top: 1px solid var(--line); color: #777; font-size: 14px; }
footer a { color: #555; text-underline-offset: 4px; }
footer a:hover { color: var(--orange-dark); }
.main-footer { gap: 5px; }
.main-footer a { text-decoration: none; }
.main-footer .copyright-mark { font-size: 17px; line-height: 1; }
.feedback-footer { gap: 5px; }
.feedback-footer a { color: var(--orange-dark); text-decoration: none; }
.feedback-footer a:hover { color: var(--ink); text-decoration: underline; }
.combined-footer { gap: 5px; flex-direction: row; flex-wrap: wrap; }
.combined-footer a { color: #555; text-decoration: none; }
.combined-footer a:hover { color: var(--orange-dark); text-decoration: underline; }
.combined-footer .copyright-mark { font-size: 17px; line-height: 1; }
.combined-footer .feedback-link { color: var(--orange-dark); }

@media (max-width: 900px) {
  main { padding-inline: 34px; }
  h1 span { white-space: normal; }
  .result { grid-template-columns: auto 1fr; }
  .result-actions { grid-column: 1 / -1; padding-left: 78px; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .steps article + article { border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .site-header { height: 88px; padding: 0 20px 0 5px; }
  .brand { width: 100%; gap: 12px; }
  .brand img { width: 180px; height: 61px; }
  .brand-link { margin-left: auto; font-size: 15px; }
  main { padding: 45px 18px 32px calc(2cm + 18px); }
  h1 { font-size: 39px; }
  .lead { margin-top: 17px; font-size: 17px; }
  form { padding: 24px 20px 21px; }
  input { height: 64px; font-size: 16px; padding-left: 49px; }
  .input-wrap svg { left: 16px; width: 20px; }
  .result { grid-template-columns: auto 1fr; gap: 15px; padding: 23px 20px; }
  .success-mark { width: 46px; height: 46px; }
  .result-copy a { font-size: 23px; }
  .result-actions { grid-column: 1 / -1; padding: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .secondary-button, .primary-link { min-width: 0; width: 100%; }
  .steps { margin-top: 28px; }
  .steps article { padding: 20px; }
  footer { gap: 12px; flex-direction: column; padding: 16px; }
  .main-footer { gap: 4px; flex-direction: row; }
  .combined-footer { gap: 5px; flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
