.site-page {
  --ink: #232220;
  --muted: #575652;
  --red: #a21e2d;
  --red-hover: #811323;
  --line: #e4ded7;
  --paper: #faf7f2;
  --white: #fff;
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
}

.site-page .container {
  width: min(1120px, calc(100% - 64px));
}

.site-page :focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.site-page :is(h1, h2, h3, h4) {
  letter-spacing: -.025em;
  word-break: keep-all;
}

.site-page .header {
  height: 68px;
  box-shadow: none;
  border-color: var(--line);
}

.site-page .header-inner {
  gap: 28px;
}

.site-page .brand-text {
  font-weight: 750;
  font-size: 23px;
  letter-spacing: -.025em;
}

.site-page .brand-text b {
  margin-left: .12em;
}

.site-page .brand-mark-image {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.site-page .nav a {
  font-size: 15px;
}

.site-page .nav a[aria-current="page"] {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-page .header-phone {
  display: inline-flex;
  flex-direction: row;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  margin: 0;
  border: 1px solid #eed9d7;
  border-radius: 8px;
  background: #fff8f5;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.site-page .header-phone:hover {
  background: #f7e9e6;
}

.site-page .header-phone strong {
  font-size: 16px;
}

.site-page .phone-label {
  color: var(--muted);
  font-size: 12px;
}

.site-page .menu-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
}

.site-page .button,
.site-page .outline-button {
  border-radius: 8px;
  min-height: 44px;
  letter-spacing: 0;
}

.site-page .button:hover,
.site-page .outline-button:hover {
  transform: none;
}

.site-page .contact {
  padding-block: clamp(36px, 4.25vw, 64px);
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.site-page .contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 510px);
  gap: 0 clamp(30px, 5vw, 72px);
  align-items: start;
}

.site-page--home .contact-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(375px, 1fr);
  grid-template-areas: 'intro form' 'photo form';
  grid-template-rows: auto 1fr;
  row-gap: 24px;
}

.site-page .contact-copy {
  padding-block: 10px;
}

.site-page--home .contact-copy {
  grid-area: intro;
  padding-block: 4px 0;
}

.site-page .contact h1 {
  color: var(--ink);
  font-size: clamp(36px, 4.8vw, 62px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.home-title-line {
  color: var(--red);
}

.site-page .contact-copy > p {
  max-width: 29em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.site-page #planner-contact {
  margin-top: 24px;
  font-size: 14px;
}

.site-page #planner-contact:has(a[hidden]) {
  display: none;
}

.site-page #planner-contact a {
  color: var(--red);
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quote-photo {
  grid-area: photo;
  margin: 0;
}

.quote-photo img {
  object-fit: cover;
  object-position: center 60%;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
}

.quote-photo figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.contact-form {
  min-width: 0;
}

.site-page--home .contact-form {
  grid-area: form;
}

.site-page .quote-form {
  padding: clamp(20px, 2.3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px #33281b09;
}

.site-page .form-heading {
  margin-bottom: 18px;
}

.site-page .form-heading h2 {
  color: var(--ink);
  font-size: 25px;
  font-weight: 750;
  line-height: 1.35;
}

.site-page .quote-form .form-grid {
  column-gap: 12px;
  row-gap: 13px;
  margin-bottom: 0;
}

.quote-form .quote-fields {
  grid-template-columns: minmax(0, 1fr);
}

.quote-form .quote-measurement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(76px, 23%);
  column-gap: 10px;
}

.quote-measurement:has(#area-field[hidden]),
.quote-measurement output:empty,
.site-page #inquiry-status:empty {
  display: none;
}

.quote-measurement output {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.site-page .quote-form label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.site-page .quote-form input:not([type="checkbox"]):not(#inquiry-website),
.site-page .quote-form select,
.site-page .quote-form textarea {
  min-height: 44px;
  height: auto;
  margin-top: 5px;
  padding: 9px 11px;
  background-color: #fcfbf9;
  border: 1px solid #d8d2cb;
  border-radius: 7px;
  font-size: 16px;
}

.site-page .quote-form input::placeholder,
.site-page .quote-form textarea::placeholder {
  color: #6b5e57;
}

.site-page .quote-form .address-input {
  gap: 8px;
  align-items: end;
}

.site-page .quote-form .address-input input {
  flex: 1 1 auto;
}

.site-page .quote-form .address-input button {
  padding: 0 11px;
  min-width: 0;
  white-space: nowrap;
  font-size: 13px;
}

.site-page .inquiry-block {
  margin-top: 13px;
  padding-top: 0;
  border-top: 0;
}

.site-page .inquiry-contact-fields,
.site-page .appliance-fields .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-page .quote-options {
  margin-block: 12px 9px;
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
}

.site-page .quote-disclosure > summary {
  min-height: 38px;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.55;
}

.site-page .quote-consent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 6px;
}

.site-page .quote-privacy[open] {
  flex: 0 0 100%;
}

.site-page .quote-disclosure > summary:hover {
  color: var(--red);
}

.site-page .quote-options-body {
  padding: 5px 0 13px;
}

.site-page .privacy-check {
  margin: 0;
  min-height: 26px;
  padding-top: 3px;
  font-weight: 500;
  line-height: 1.55;
}

.site-page .quote-privacy > summary {
  min-height: 32px;
  padding-block: 6px;
  color: var(--muted);
}

.site-page .privacy-summary {
  background: var(--paper);
  border-color: var(--line);
  border-radius: 8px;
}

.privacy-summary dl {
  display: grid;
  gap: 5px;
  margin: 0 0 4px;
}

.privacy-summary dl div {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
}

.privacy-summary dt {
  font-weight: 700;
}

.privacy-summary dd {
  margin: 0;
}

.site-page .quote-form #send-inquiry {
  justify-content: center;
  margin-top: 11px;
  min-height: 48px;
  padding: 11px 16px;
  font-size: 16px;
}

.site-page .quote-form .plan-only {
  display: block;
  min-height: 36px;
  margin-top: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-page .quote-form .plan-only:hover {
  color: var(--red);
  background: transparent;
}

.site-page #inquiry-kakao-link {
  margin-top: 8px;
  white-space: nowrap;
}

.home-services {
  padding-block: clamp(36px, 5.4vw, 76px);
}

.home-services-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
}

.home-services-heading > a {
  color: var(--red);
  font-weight: 650;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-services h2,
.site-page .section h2 {
  font-size: clamp(26px, 3.5vw, 36px);
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.home-service-card {
  display: grid;
  align-content: start;
  gap: 5px;
  height: 100%;
  padding: 18px 0 6px;
  border-top: 1px solid var(--line);
}

.home-service-card strong {
  font-size: 18px;
  color: var(--ink);
}

.home-service-card span {
  color: var(--muted);
  font-size: 14px;
}

.home-service-card:hover strong {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-intro {
  background: var(--paper);
  padding-top: clamp(32px, 5vw, 54px);
}

.page-intro > .container {
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  color: var(--ink);
  font-size: clamp(35px, 4.7vw, 52px);
  line-height: 1.2;
}

.page-intro p {
  margin-top: 9px;
  color: var(--muted);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 19px;
  margin-top: 13px;
}

.section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

.section-nav a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-page--services .section,
.site-page--about .section {
  padding-block: clamp(34px, 5vw, 62px);
}

.site-page .section-heading {
  margin-bottom: 20px;
}

.site-page .service-list-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.site-page .service-group:first-of-type .service-group-heading {
  border-top: 0;
  padding-top: 0;
}

.site-page .service-group + .service-group {
  margin-top: 32px;
}

.site-page .service-group-heading h3 {
  font-size: 21px;
  color: var(--ink);
}

.site-page .service-grid {
  gap: 12px;
  align-items: stretch;
}

.site-page .service-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: none;
  background: #fff;
}

.site-page .service-card a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 18px;
  transition: none;
}

.site-page .service-card:hover {
  border-color: #b7a1a2;
  box-shadow: none;
  transform: none;
}

.site-page .service-title,
.site-page .service-card p {
  margin-inline: 0;
}

.site-page .service-title {
  margin-top: 0;
}

.site-page .service-title h4 {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.site-page .service-card p {
  font-size: 14px;
  line-height: 1.65;
  margin-block: 6px 12px;
}

.service-detail-label {
  margin-top: auto;
  font-size: 14px;
  font-weight: 650;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-page .scope-panel,
.site-page .prep-list,
.site-page .map-shell {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}

.site-page .scope-image,
.site-page .gallery-item img {
  border-radius: 8px;
}

.location-region {
  min-width: 0;
  align-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(17px, 3vw, 25px);
}

.location-region > p {
  margin-top: 8px;
  color: var(--muted);
}

.location-region .tags:empty {
  display: none;
}

.site-page .map-shell {
  min-height: 0;
  background: #fff;
  margin-top: 16px;
  scroll-margin-top: 72px;
}

.site-page .map-shell > summary {
  padding: 10px 14px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.site-page .map-toolbar {
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-page .map-toolbar select {
  max-width: 16rem;
  margin-top: 6px;
}

.site-page .map-toolbar p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 13px;
}

.site-page .footer {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  margin-bottom: 0;
  background: var(--paper);
}

.site-page .footer-top {
  gap: 16px 25px;
  padding-bottom: 16px;
}

.site-page .footer-bottom {
  font-size: 13px;
}

.site-page .footer-facts {
  display: grid;
  gap: 4px;
}

.site-page .footer-facts p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.footer-address-line {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 0.75em;
}

.footer-address-line:has(span:empty),
.footer-facts p:empty {
  display: none;
}

@media (max-width: 820px) {
  .site-page .container {
    width: calc(100% - 44px);
  }

  .site-page .header {
    height: 64px;
  }

  .site-page .header-inner {
    justify-content: space-between;
    gap: 8px;
  }

  .site-page .header-phone {
    margin-left: auto;
  }

  .site-page .nav {
    top: 64px;
    border-radius: 0;
  }

  .site-page .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .site-page--home .contact-layout {
    grid-template-areas: 'intro' 'form' 'photo';
    grid-template-rows: auto;
    row-gap: 20px;
  }

  .site-page .contact-copy {
    padding-block: 0;
  }

  .site-page--home .contact-copy {
    padding: 0;
  }

  .site-page .contact h1 {
    font-size: clamp(29px, 6.3vw, 42px);
  }

  .site-page .contact-copy > p {
    max-width: 32em;
    font-size: 15px;
    margin-top: 7px;
    line-height: 1.65;
  }

  .site-page #planner-contact {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-page .container {
    width: calc(100% - 32px);
  }

  .site-page .brand-text {
    font-size: 20px;
  }

  .site-page .brand-mark-image {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
  }

  .site-page .header-phone {
    padding-inline: 10px;
  }

  .site-page .header-phone strong {
    font-size: 14px;
  }

  .site-page .phone-label {
    display: none;
  }

  .site-page .contact {
    padding-block: 22px 28px;
  }

  .site-page--home .contact h1 {
    font-size: clamp(25px, 7.3vw, 34px);
  }

  .site-page--home .contact-copy > p {
    font-size: 14px;
  }

  .site-page--home .contact-layout {
    gap: 15px;
  }

  .site-page .quote-form {
    padding: 15px;
    border-radius: 12px;
  }

  .site-page .form-heading {
    margin-bottom: 12px;
  }

  .site-page .form-heading h2 {
    font-size: 20px;
  }

  .site-page .quote-form .form-grid {
    row-gap: 10px;
  }

  .site-page .inquiry-block {
    margin-top: 10px;
  }

  .site-page .quote-options {
    margin-block: 9px 6px;
  }
  .site-page .service-grid,
  .home-services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .home-service-card {
    padding-top: 11px;
  }

  .section-nav {
    gap: 0 16px;
  }

  .site-page .scope-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .site-page .scope-tabs button {
    min-width: 0;
    padding-inline: 3px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .site-page .quote-form .inquiry-contact-fields {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  }
}
