:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #55555d;
  --paper: #f5f5f7;
  --blue: #0066cc;
  --line: #e1e1e6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 73px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.45; -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, p, figure, ol) { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #0071e3; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 6; top: 8px; left: 8px; transform: translateY(-150%); background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }

.mast { position: sticky; top: 0; z-index: 5; background: rgba(250,250,252,.93); backdrop-filter: blur(18px); border-bottom: 1px solid #ececef; }
.mast-in { min-height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo { justify-self: start; font-size: 18px; font-weight: 700; letter-spacing: -.045em; white-space: nowrap; }
.nav { display: flex; gap: 27px; font-size: 13px; }
.nav a { display: inline-flex; align-items: center; min-height: 42px; }
.nav a:hover, .foot a:hover { color: var(--blue); }
.btn { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 46px; border: 1px solid transparent; padding: 0 18px; border-radius: 999px; background: #006cda; color: #fff; font-size: 15px; font-weight: 640; line-height: 1.2; text-align: center; }
.btn:hover { background: #005bb9; }
.btn:disabled { cursor: default; background: #e3e4e9; color: #55555d; }
.btn-small { justify-self: end; min-height: 34px; padding-inline: 13px; font-size: 13px; }
.text-link { display: inline-flex; align-items: center; width: fit-content; gap: 5px; border: 0; padding: 0; background: transparent; color: var(--blue); font-size: 15px; font-weight: 630; }
.text-link:hover, .credit:hover { text-decoration: underline; text-underline-offset: .22em; }
.text-link span { font-size: 1.25em; line-height: .9; }

.hero { padding-top: 66px; text-align: center; }
.eyebrow { color: #655141; font-size: 17px; font-weight: 640; }
.hero h1 { margin-top: 12px; font-size: clamp(55px, 7.7vw, 110px); font-weight: 700; line-height: .98; letter-spacing: -.077em; }
.hero-summary { max-width: 600px; margin: 22px auto 0; color: var(--muted); font-size: clamp(17px, 2vw, 23px); }
.hero-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 21px; }
.hero-photo { width: min(1376px, calc(100% - 48px)); margin: 37px auto 0; }
.hero-photo img { width: 100%; height: clamp(330px, 46vw, 690px); object-fit: cover; object-position: center 53%; border-radius: 26px; background: #ded6cd; }
.hero-photo figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px 0; color: var(--muted); font-size: 12px; text-align: left; }
.hero-photo figcaption a { white-space: nowrap; }

.section { padding-block: 84px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr); align-items: end; gap: 20px; margin-bottom: 29px; }
.section-head h2 { font-size: clamp(39px, 5.7vw, 73px); line-height: 1; letter-spacing: -.073em; }
.section-head > p { max-width: 350px; color: var(--muted); font-size: 16px; }
.works { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.work { display: grid; grid-template-rows: 1fr auto auto; min-width: 0; overflow: hidden; border-radius: 21px; background: #fff; }
.work-copy { padding: 23px 22px 19px; }
.work h3 { font-size: clamp(21px, 2.3vw, 33px); line-height: 1.06; letter-spacing: -.053em; }
.work p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.work .work-spec { margin-top: 13px; color: var(--ink); font-size: 13px; font-weight: 620; }
.work img { width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; }
.credit { padding: 7px 16px; color: var(--muted); font-size: 12px; }

.section-calc { background: #fff; }
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: 15px; }
.calc-form, .calc-out { min-width: 0; padding: clamp(20px, 3vw, 36px); border-radius: 24px; background: var(--paper); }
.calc-out { background: #edf4ff; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset + fieldset { margin-top: 21px; }
legend { margin-bottom: 8px; padding: 0; font-weight: 680; }
.choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.choice { position: relative; display: flex; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.face { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 3px; min-height: 61px; padding: 8px 10px; border: 1px solid #d6d6df; border-radius: 12px; background: white; font-size: 14px; line-height: 1.2; }
.face small { color: var(--muted); font-size: 12px; }
.choice:hover .face { border-color: #888893; }
.choice input:checked + .face { border-color: #0066cc; box-shadow: inset 0 0 0 1px #0066cc; background: #f3f8ff; }
.choice input:focus-visible + .face { outline: 3px solid #0071e3; outline-offset: 3px; }
.measure-hint, .hint, .err { color: var(--muted); font-size: 13px; }
.measure-hint { margin-bottom: 9px; }
.hint, .err { margin-top: 6px; }
.err { color: #a61e2b; }
.len-row { display: flex; align-items: center; width: min(100%, 165px); border: 1px solid #cfcfd8; border-radius: 10px; background: white; }
.len-row.bad { border-color: #be293a; }
.len-row:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.len-row input { width: 100%; min-width: 0; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); outline: 0; }
.len-row span { padding-right: 12px; color: var(--muted); }
.rates-details { margin-top: 20px; color: #41414a; font-size: 14px; }
.rates-details summary { width: fit-content; color: var(--blue); }
.rates { width: 100%; margin-top: 8px; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.rates th, .rates td { padding: 6px 8px; text-align: left; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.rates th:last-child, .rates td:last-child { width: 32%; text-align: right; }
.rates .on { background: #e4efff; }

.price-label { color: #414d60; font-weight: 670; }
.price { margin-top: 8px; color: var(--ink); font-size: clamp(36px, 5.25vw, 69px); font-weight: 700; line-height: 1; letter-spacing: -.068em; }
.price.na { color: #626c7e; }
.price-range { margin-top: 11px; color: #414d60; font-size: 14px; }
.formula { margin-block: 17px; border-block: 1px solid #d2dfef; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; padding-block: 7px; color: #3a4352; font-size: 13px; }
.row span:last-child { flex-shrink: 0; text-align: right; }
.total { border-top: 1px solid #d2dfef; color: var(--ink); font-weight: 670; }
.draft-hint { margin-top: 8px; color: #414d60; font-size: 13px; }
.req { margin-top: 17px; }
.req label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 660; }
.req textarea { width: 100%; padding: 10px; border: 1px solid #c9d6e8; border-radius: 10px; background: white; color: var(--ink); font-size: 14px; resize: vertical; }
.req-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 9px; }
.status { display: block; color: #414d60; font-size: 13px; }
.status:not(:empty) { margin-top: 8px; }

.section-process .section-head { grid-template-columns: 1fr; }
.steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 0; list-style: none; counter-reset: steps; }
.steps li { padding: 19px; border-radius: 16px; background: #fff; counter-increment: steps; }
.steps li::before { content: counter(steps, decimal-leading-zero); display: block; margin-bottom: 11px; color: var(--blue); font-size: 13px; font-weight: 680; }
.steps h3 { font-size: 20px; letter-spacing: -.04em; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px 25px; min-height: 74px; padding-block: 15px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .section { padding-block: 66px; }
  .calc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 670px) {
  .wrap { width: calc(100% - 32px); }
  .mast-in { min-height: 54px; grid-template-columns: 1fr auto auto; gap: 10px; }
  .logo { font-size: 15px; }
  .nav { gap: 10px; font-size: 12px; }
  .nav a:last-child { display: none; }
  .btn-small { min-height: 32px; padding-inline: 10px; font-size: 12px; }
  .hero { padding-top: 47px; }
  .hero h1 { font-size: clamp(39px, 9.3vw, 62px); letter-spacing: -.072em; }
  .hero-summary { margin-top: 15px; }
  .hero-actions { margin-top: 16px; column-gap: 13px; }
  .hero-actions .btn { padding-inline: 12px; }
  .hero-actions .text-link, .hero-actions .btn { font-size: 13px; }
  .hero-photo { width: calc(100% - 20px); margin-top: 25px; }
  .hero-photo img { height: clamp(310px, 78vw, 485px); border-radius: 16px; }
  .section { padding-block: 53px; }
  .section-head { grid-template-columns: 1fr; gap: 10px; margin-bottom: 19px; }
  .works { grid-template-columns: 1fr; }
  .work img { max-height: 380px; }
  .foot-in { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 380px) {
  .face { padding-inline: 6px; font-size: 12px; }
  .face small { font-size: 11px; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
