:root {
  --ink: #172723;
  --deep: #183a34;
  --muted: #495b54;
  --paper: #f6f4ed;
  --fog: #e7ede5;
  --amber: #efb86d;
  --rule: #cbd4ca;
  --checkout-primary: var(--deep);
  --checkout-surface: #fffef9;
  --checkout-text: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.57 "Segoe UI", Arial, sans-serif; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; }
img { display: block; width: 100%; height: auto; }
:focus-visible { outline: 3px solid #986321; outline-offset: 4px; }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--amber); }

.wrap { width: min(100% - 72px, 1248px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2; transform: translateY(calc(-100% - 20px)); background: white; padding: 10px 15px; }
.skip-link:focus { transform: none; }

.masthead { display: flex; align-items: center; gap: 32px; min-height: 86px; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-size: 1.02rem; font-weight: 750; line-height: 1.12; text-decoration: none; }
.brand-line { display: block; }
.brand-mark {
  position: relative;
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 2px 2px;
  color: var(--deep);
}
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; background: currentColor; }
.brand-mark::before { inset: 0 auto 0 calc(50% - 1px); width: 2px; }
.brand-mark::after { inset: 51% 0 auto; height: 2px; }
.masthead nav { display: flex; gap: clamp(20px, 3vw, 42px); margin-left: auto; }
.masthead nav a, .header-phone { text-decoration: none; font-weight: 650; }
.masthead nav a:hover, .header-phone:hover { text-decoration: underline; }
.header-phone { padding: 9px 0 9px 23px; border-left: 1px solid var(--rule); white-space: nowrap; }

.hero { background: var(--deep); color: #fffdf4; }
.hero-inner { display: grid; grid-template-columns: 48% 52%; max-width: 1600px; margin-inline: auto; }
.hero-copy { align-self: center; padding: clamp(64px, 7vw, 108px) clamp(32px, 4vw, 68px) clamp(64px, 7vw, 106px) max(36px, calc((100vw - 1248px) / 2)); }
.hero-location { margin-bottom: 18px; color: var(--amber); font-weight: 680; }
.hero h1 { max-width: 14ch; font-size: clamp(3.05rem, 4.8vw, 4.55rem); letter-spacing: -.048em; line-height: .98; }
.hero-lead { max-width: 39ch; margin-top: 24px; color: #e0e9df; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual { position: relative; min-height: 100%; overflow: hidden; background: #354b3e; }
.hero-visual img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 53% center; }

.button, #checkoutBtn.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}
.button-amber { color: var(--ink); background: var(--amber); }
.button-amber:hover { background: #ffcd89; }
#checkoutBtn.button-outline { color: #fffdf4; border-color: #d4e1d6; background: transparent; }
#checkoutBtn.button-outline:hover { background: #2a4e46; }
.button-green { color: #fffdf4; background: var(--deep); }
.button-green:hover { background: #285046; }

.services { padding-block: 64px 72px; }
.services h2, .customer-section h2 { font-size: clamp(1.85rem, 3.25vw, 3rem); letter-spacing: -.035em; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.service { padding: 21px 0 0; border-top: 2px solid var(--rule); }
.service h3 { margin-top: 14px; font-size: 1.3rem; }
.service p { max-width: 35ch; margin-top: 9px; color: var(--muted); }
.service-icon { display: block; position: relative; width: 29px; height: 27px; color: #49695c; }
.icon-window { border: 2px solid currentColor; }
.icon-window::before, .icon-window::after { position: absolute; content: ""; background: currentColor; }
.icon-window::before { inset: 0 auto 0 calc(50% - 1px); width: 2px; }
.icon-window::after { inset: calc(50% - 1px) 0 auto; height: 2px; }
.icon-door { width: 21px; border: 2px solid currentColor; }
.icon-door::after { position: absolute; top: 12px; right: 3px; width: 4px; height: 4px; content: ""; border-radius: 50%; background: currentColor; }
.icon-home::before { position: absolute; top: 4px; left: 5px; width: 19px; height: 19px; content: ""; transform: rotate(45deg); border-top: 2px solid; border-left: 2px solid; }
.icon-home::after { position: absolute; inset: 12px 4px 0; content: ""; border: solid; border-width: 0 2px 2px; }

.customer-section { background: var(--fog); }
.customer-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; padding-block: 62px; }
.contact-name { margin: 17px 0 9px; }
.contact-phone { font-size: 1.2rem; font-weight: 750; }
address { margin-top: 12px; color: var(--muted); font-style: normal; }
.payment-panel { padding: clamp(24px, 4vw, 44px); background: var(--paper); border-left: 4px solid var(--amber); }
.payment-panel h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
.payment-panel p { max-width: 42ch; margin: 13px 0 21px; color: var(--muted); }

.footer { background: var(--deep); color: #fffdf4; }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding-block: 16px; }
.footer .brand-mark { color: var(--amber); }

@media (min-width: 1600px) {
  .hero-copy { padding-left: 176px; }
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 51% 49%; }
  .hero-copy { padding-right: 28px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .masthead { min-height: auto; gap: 10px 15px; display: grid; grid-template-columns: 1fr auto; padding-top: 13px; }
  .masthead nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 14px; margin-left: 0; border-top: 1px solid var(--rule); }
  .masthead nav a { padding: 7px 4px 10px; }
  .header-phone { padding-left: 0; border: 0; grid-row: 1; grid-column: 2; }
  .hero-inner { display: block; }
  .hero-copy { padding: 37px 20px 32px; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.65rem, 8.5vw, 4rem); }
  .hero-location { margin-bottom: 12px; }
  .hero-lead { margin-top: 14px; font-size: 1.06rem; }
  .hero-actions { margin-top: 22px; }
  .hero-visual { min-height: 0; aspect-ratio: 1.66; }
  .hero-visual img { object-position: center 58%; }
  .services { padding-block: 43px; }
  .service-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 20px; }
  .service { display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; padding-top: 14px; }
  .service-icon { grid-row: 1 / 3; margin-top: 2px; }
  .service h3, .service p { margin: 0; }
  .customer-grid { grid-template-columns: 1fr; gap: 27px; padding-block: 40px; }
}
@media (max-width: 390px) {
  .masthead .brand { gap: 8px; font-size: .93rem; }
  .masthead .brand-mark { flex-basis: 31px; width: 31px; height: 31px; }
  .header-phone { font-size: .92rem; }
  .hero-actions { gap: 8px; }
  .hero-actions .button, .hero-actions #checkoutBtn.button { padding-inline: 11px; font-size: .94rem; }
}
