:root {
  --bg: #fbfbfd;
  --plate: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --accent: #ff5b26;
  --accent-text: #c33f11;
  --lead: #1d1d1f;
  --line: rgba(29, 29, 31, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --r12: 12px;
  --r18: 18px;
  --r26: 26px;
  --r34: 34px;
  --app-bg: #131313;
  --app-accent: #ff5b26;
  --app-ink: #fff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-stroke: rgba(255, 255, 255, 0.22);
  --blob: #1c1c1c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus { left: 12px; top: 12px; z-index: 80; background: #fff; padding: 8px 12px; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }

.lead {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 18px;
  max-width: 44rem;
}

.accent { color: var(--accent-text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:focus-visible,
.swatch:focus-visible,
.chip:focus-visible,
.nav a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, #fff);
  outline-offset: 2px;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.logo { display: flex; align-items: center; }

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.logo img { height: 48px; width: auto; max-width: 60vw; }

.nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}

.nav a { text-decoration: none; color: var(--ink-2); }

.nav a:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span:before,
.menu-toggle span:after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span:before,
.menu-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span:before { top: -6px; }
.menu-toggle span:after { top: 6px; }

.hero {
  padding: 48px 0 72px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.facts b {
  display: block;
  color: var(--accent-text);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.facts span {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 13px;
}

.hero__copy {
  position: sticky;
  top: 80px;
}

.builder {
  padding: 18px;
  border-radius: var(--r26);
  background: #fff;
  box-shadow: var(--shadow);
}

.builder__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.builder__head h2 { font-size: 18px; letter-spacing: -0.02em; }

.builder__name {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}


.ctrl-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}

.field, select, textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r12);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.section { padding: 80px 0; }

.section--plate { background: var(--plate); }

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.card {
  padding: 22px;
  border-radius: var(--r18);
  background: #fff;
}

.card b { display: block; margin-bottom: 8px; font-size: 16px; }

.card p, .case-list p, .banner p, .step p { color: var(--ink-2); font-size: 15px; }

.case-list a { color: var(--accent-text); }

.banner {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: var(--r18);
  background: #fff;
}

.banner svg { flex: none; margin-top: 4px; }

.case {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: center;
}

.case-list {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--r18);
  background: var(--plate);
}

.case-list div + div { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.case-list b { display: block; margin-bottom: 4px; font-size: 13px; color: var(--ink-3); }

.case-phone {
  width: min(320px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.18));
}

.estimate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.mods { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

.mod {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--r18);
  background: #fff;
}

.mod--base { opacity: 0.92; }

.mod input { margin-top: 4px; accent-color: var(--accent); }

.mod small { display: block; color: var(--ink-3); font-size: 13px; }

.mod__price { color: var(--ink-2); font-size: 13px; text-align: right; white-space: nowrap; }

.summary {
  position: sticky;
  top: 84px;
  padding: 22px;
  border-radius: var(--r26);
  background: #fff;
  box-shadow: var(--shadow);
}

.summary h3 { margin-bottom: 16px; font-size: 20px; }

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  color: var(--ink-2);
  font-size: 14px;
}

.summary__total {
  margin: 16px 0 8px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.summary .btn { width: 100%; margin-top: 12px; }

.summary__note { margin-top: 14px; color: var(--ink-3); font-size: 12px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.step {
  padding: 22px;
  border-radius: var(--r18);
  background: #fff;
}

.step b { display: block; margin-bottom: 8px; color: var(--accent-text); }

.lead-block {
  padding: 80px 0;
  background: var(--lead);
  color: #f5f5f7;
}

.lead-block .eyebrow { color: #ff8a5b; }

.lead-block .lead, .lead-block a { color: #d2d2d7; }

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 28px;
}

.contacts { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }

.contacts span {
  display: block;
  color: #a1a1a6;
  font-size: 13px;
}

.lead-block .ctrl-label { color: #a1a1a6; }

.lead-block a:hover { color: #fff; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form label { display: block; min-width: 0; }

.phone-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r12);
  background: #fff;
  overflow: hidden;
}

.phone-field select {
  flex: none;
  width: 3.7rem;
  height: 100%;
  padding: 0 2px 0 8px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #f5f5f7;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.phone-field input,
.phone-field .field {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lead-block .phone-field {
  border-color: rgba(255, 255, 255, 0.18);
}

.lead-block .phone-field select {
  background: #ececf1;
}

.form textarea,
.form .full { grid-column: 1 / -1; }

.form textarea { min-height: 110px; padding: 12px; resize: vertical; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  grid-column: 1 / -1;
  font-size: 13px;
  color: #d2d2d7;
}

.form-ok {
  display: none;
  grid-column: 1 / -1;
  padding: 14px;
  border-radius: var(--r12);
  background: rgba(255, 255, 255, 0.08);
}

.form-err {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border-radius: var(--r12);
  background: rgba(255, 80, 80, 0.16);
  color: #ffd4d4;
}

.form.is-error .form-err { display: block; }

.form .btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form.is-sent .form-ok { display: block; }

.form.is-sent label,
.form.is-sent .btn,
.form.is-sent .form-err { display: none; }

.footer {
  padding: 36px 0 48px;
  color: var(--ink-3);
  font-size: 13px;
}

.footer a { color: var(--ink-2); }

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.footer nav { display: flex; flex-wrap: wrap; gap: 14px; }

.nav__cta { display: none; }

@media (max-width: 1000px) {
  .header__inner { position: relative; }
  .header__cta { display: none; }
  .nav {
    display: none;
    flex: none;
    justify-content: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px 22px;
    background: #fbfbfd;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .header.is-open .nav { display: flex; }
  .header.is-open .nav__cta { display: inline-flex; }
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .menu-toggle { display: grid; place-items: center; margin-left: auto; }
  .hero__grid, .case, .estimate, .lead-grid, .cards-4, .steps, .facts {
    grid-template-columns: 1fr;
  }
  .builder, .summary, .hero__copy { position: static; }
}

@media (max-width: 560px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .form { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
}
