:root {
  color-scheme: light;
  --ink: #1b1a18;
  --muted: #6f6a64;
  --paper: #f6f3ee;
  --surface: #fffdfa;
  --line: #d9d2c9;
  --accent: #a64f35;
  --accent-dark: #7c3827;
  --accent-soft: #eee0d8;
  --olive: #56604b;
  --shadow: 0 24px 60px rgba(39, 32, 26, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0 0, rgba(166, 79, 53, 0.08), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(166, 79, 53, 0.35);
  outline-offset: 3px;
}

.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 {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(27, 26, 24, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-light {
  font-weight: 430;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--surface);
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 19px;
}

.header-note {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.cover {
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  min-height: 590px;
  margin: clamp(26px, 4vw, 52px) 0 58px;
  overflow: hidden;
  background: #f3efe7;
  box-shadow: 0 24px 60px rgba(39, 32, 26, 0.08);
}

.cover-copy {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: clamp(34px, 5vw, 66px);
  color: #fffdf9;
  background: #9d917e;
}

.cover-blank {
  min-width: 0;
  background: #f3efe7;
}

.cover-middle {
  align-self: center;
  padding-top: 42px;
}

.cover-tagline {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  font-style: italic;
  letter-spacing: 0.01em;
}

.cover-middle ul {
  display: grid;
  gap: 20px;
  margin: 36px 0 0;
  padding-left: 48px;
  color: rgba(255, 253, 249, 0.92);
}

.cover-footer {
  align-self: end;
  display: grid;
  gap: 54px;
  max-width: 390px;
  font-size: 0.78rem;
}

.cover-footer p {
  margin: 0;
  color: rgba(255, 253, 249, 0.84);
}

.cover-footer strong {
  padding-left: 46px;
  font-size: 0.88rem;
}

.eyebrow,
.result-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 6.5vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.cover h1 {
  max-width: 100%;
  color: #fffdf9;
  font-size: clamp(2.6rem, 3.8vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.estimator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 68px;
}

.estimator,
.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.estimator {
  padding: clamp(24px, 4vw, 46px);
}

.result-card {
  position: sticky;
  top: 20px;
  padding: 34px;
  color: #f8f4ef;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.section-heading h2,
.clarification h2,
.result-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-heading.compact h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.step-kicker {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 760;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.service-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.service-option {
  position: relative;
  display: block;
}

.service-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-option span {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  transition: 160ms ease;
}

.service-option input:checked + span {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(166, 79, 53, 0.2);
}

.service-option input:focus-visible + span {
  outline: 3px solid rgba(166, 79, 53, 0.35);
  outline-offset: 3px;
}

.service-option strong,
.service-option small,
.zone-row strong,
.zone-row small,
.check-card strong,
.check-card small,
.inline-question strong,
.inline-question small {
  display: block;
}

.service-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.service-option input:checked + span small {
  color: rgba(255, 255, 255, 0.78);
}

.advice-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.advice-option {
  position: relative;
  display: block;
}

.advice-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.advice-option span {
  display: flex;
  min-height: 246px;
  height: 100%;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: 160ms ease;
}

.advice-option small {
  min-height: 2.7em;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.advice-option strong {
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.1;
}

.advice-option b {
  margin: 16px 0 12px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1;
}

.advice-option em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.45;
}

.advice-option input:checked + span {
  border-color: var(--accent);
  background: #fcf4ef;
  box-shadow: 0 12px 28px rgba(166, 79, 53, 0.13);
}

.advice-option input:focus-visible + span {
  outline: 3px solid rgba(166, 79, 53, 0.35);
  outline-offset: 3px;
}

.advice-option.featured small {
  color: var(--accent);
}

.form-section {
  margin-top: 38px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.zone-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.zone-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.zone-row small,
.check-card small,
.inline-question small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.counter {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 38px 32px 38px;
  align-items: center;
  text-align: center;
}

.counter button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
}

.counter button:hover {
  border-color: var(--ink);
  background: #f3eee7;
}

.counter output {
  font-weight: 720;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.input-card {
  display: flex;
  min-width: 0;
  min-height: 100px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.input-card > span:first-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.input-card input,
.input-card select,
.inline-question select {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #f4f0eb;
  font-weight: 650;
}

.input-card input,
.input-card select {
  padding: 8px 10px;
}

.input-with-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.input-with-unit > span {
  color: var(--muted);
  font-weight: 650;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.deliverables legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-weight: 700;
}

.check-card {
  display: flex;
  min-height: 88px;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.check-card:has(input:checked) {
  border-color: var(--accent);
  background: #fcf4ef;
}

.check-card input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.check-card.standalone {
  margin-top: 12px;
}

.advice-details .auxiliary-card {
  min-height: 100px;
  align-items: center;
}

.preparation-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #f4f0eb;
}

.preparation-note strong {
  font-size: 0.9rem;
}

.preparation-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.inline-question {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
}

.inline-question select {
  padding: 8px 10px;
}

.plan-question {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 24px;
  padding: 18px 0 0;
  border-top: 1px dashed var(--line);
}

.plan-question legend {
  width: 100%;
  margin-bottom: 2px;
  font-weight: 700;
}

.plan-question label {
  color: var(--muted);
}

.plan-question input {
  width: 18px;
  height: 18px;
  margin: 0 6px 0 0;
  accent-color: var(--accent);
  vertical-align: -3px;
}

.primary-action,
.share-action,
.copy-action {
  min-height: 50px;
  border-radius: 999px;
  font-weight: 730;
}

.primary-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding: 10px 12px 10px 22px;
  border: 0;
  color: white;
  background: var(--accent);
}

.primary-action span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--accent);
  background: white;
}

.primary-action:hover {
  background: var(--accent-dark);
}

.result-card .result-label {
  color: #d9a18d;
}

.price {
  margin: 26px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 6vw, 4.5rem);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.result-context {
  margin: 0;
  color: #c6beb5;
}

.result-divider {
  height: 1px;
  margin: 28px 0;
  background: rgba(255, 255, 255, 0.17);
}

.result-card h3 {
  margin: 0 0 10px;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.result-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d7d0c8;
  font-size: 0.91rem;
}

.result-card li {
  position: relative;
  padding-left: 18px;
}

.result-card li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9a18d;
}

.notice {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.notice strong {
  color: white;
  font-size: 0.84rem;
}

.notice p {
  margin: 5px 0 0;
  color: #c6beb5;
  font-size: 0.84rem;
}

.share-action,
.copy-action {
  width: 100%;
  padding: 10px 16px;
}

.share-action {
  margin-top: 20px;
  border: 0;
  color: var(--ink);
  background: #f3e9df;
}

.share-action:hover {
  background: white;
}

.copy-action {
  margin-top: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  background: transparent;
}

.copy-action:hover {
  border-color: white;
}

.copy-status {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: #d9a18d;
  font-size: 0.8rem;
  text-align: center;
}

.clarification {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
  padding: 52px 0 72px;
  border-top: 1px solid var(--line);
}

.clarification-image {
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.clarification-image img {
  display: block;
  width: 100%;
  height: auto;
}

.clarification-copy > p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--ink);
  text-underline-offset: 4px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 880px) {
  .cover {
    grid-template-columns: minmax(0, 68%) minmax(0, 32%);
    min-height: 550px;
  }

  .cover-copy {
    padding: 42px;
  }

  .cover h1 {
    font-size: clamp(2.6rem, 7vw, 3.5rem);
  }

  .estimator-layout {
    grid-template-columns: 1fr;
  }

  .result-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 66px;
  }

  .header-note {
    max-width: 110px;
    font-size: 0.65rem;
    line-height: 1.25;
    text-align: right;
  }

  .cover {
    grid-template-columns: minmax(0, 76%) minmax(0, 24%);
    min-height: 500px;
    margin: 20px 0 34px;
  }

  .cover-copy {
    padding: 28px 22px;
  }

  .cover h1 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
  }

  .cover-middle {
    padding-top: 26px;
  }

  .cover-middle ul {
    gap: 16px;
    margin-top: 28px;
    padding-left: 30px;
  }

  .cover-footer {
    gap: 34px;
    font-size: 0.7rem;
  }

  .cover-footer strong {
    padding-left: 30px;
  }

  .estimator-layout {
    margin-bottom: 44px;
  }

  .estimator,
  .result-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .section-heading {
    gap: 12px;
  }

  .step-kicker {
    width: 32px;
    height: 32px;
  }

  .service-switch,
  .advice-options,
  .field-grid,
  .deliverables {
    grid-template-columns: 1fr;
  }

  .advice-option span {
    min-height: 0;
  }

  .advice-option small {
    min-height: 0;
  }

  .service-option span {
    min-height: 80px;
  }

  .zone-row {
    min-height: 72px;
  }

  .zone-row > span {
    max-width: 62%;
  }

  .zone-row small {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .inline-question {
    grid-template-columns: 1fr;
  }

  .inline-question select {
    min-height: 44px;
  }

  .clarification {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 38px 0 48px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
