:root {
  color-scheme: light;
  --paper: #f5f0e8;
  --white: #fffaf2;
  --ink: #24211e;
  --muted: #60564d;
  --line: #d7cbba;
  --night: #201c19;
  --rust: #a53822;
  --light-rust: #f7a981;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
  font: 16px/1.55 var(--sans);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid #ac482a; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 20; top: -10rem; left: 1rem; background: var(--white); color: var(--ink); padding: 1rem; }
.skip:focus { top: 1rem; }
.preview-notice { margin: 0; padding: 6px 12px; text-align: center; color: #594133; background: #e8dfd1; font-size: .79rem; }
.top, .footer { color: var(--paper); background: var(--night); }
.header-main { min-height: 76px; display: flex; gap: 28px; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 1.15rem; font-weight: 750; text-decoration: none; letter-spacing: -.025em; white-space: nowrap; }
.brand img { border-radius: 8px; flex: none; }
.top nav, .header-actions { display: flex; gap: clamp(12px, 2.2vw, 28px); align-items: center; }
.top nav a, .footer nav a { text-decoration: none; }
.top a:hover, .footer a:hover { color: var(--light-rust); }
.header-actions { gap: 12px; }
.city-control { display: flex; gap: 6px; align-items: center; font-size: .9rem; text-decoration: none; }
.header-contact { display: flex; justify-content: flex-end; border-top: 1px solid #4b3b32; padding-block: 8px; }
.contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.contacts button, .contacts a { min-height: 40px; padding: 9px 13px; font-size: .86rem; font-weight: 650; color: inherit; border: 1px solid #8c7565; border-radius: 6px; background: transparent; }
.contacts button:hover { border-color: var(--light-rust); }
.contact-status { flex: 1 1 100%; color: #f7ccac; font-size: .86rem; }
.contact-status:empty { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 10px 16px; border: 1px solid transparent; border-radius: 6px; font-weight: 680; text-decoration: none; line-height: 1.25; text-align: center; }
.primary { color: #fff6ea; background: var(--rust); }
.primary:hover, .top .primary:hover { color: #fff6ea; background: #842b1a; }
.outline { border-color: #9c8776; color: inherit; background: transparent; }
.outline:hover { border-color: var(--rust); }
.hero { background: #2a231d; color: #fff3e4; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); align-items: stretch; }
.hero-copy { align-self: center; padding: clamp(34px, 6vw, 86px) clamp(20px, 3.2vw, 52px) clamp(40px, 7vw, 95px) 0; }
.hero h1 { max-width: 12ch; margin: .28em 0; color: inherit; font-size: clamp(2.6rem, 5.3vw, 5rem); letter-spacing: -.055em; }
.kicker, .card-spec { color: var(--rust); font-size: .8rem; font-weight: 730; letter-spacing: .035em; }
.hero .kicker { color: var(--light-rust); }
.hero p { color: #e2d2c1; max-width: 39ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
figure { margin: 0; }
.hero figure { display: grid; position: relative; min-width: 0; grid-template-areas: 'photo'; }
.hero figure img { grid-area: photo; align-self: stretch; width: 100%; height: 100%; object-fit: cover; }
.hero figcaption { grid-area: photo; z-index: 1; align-self: end; justify-self: end; margin: 10px; padding: 4px 8px; background: #261b14e8; color: #e8dacc; border-radius: 4px; font-size: .76rem; }
h1, h2, h3 { margin: 0 0 .45em; font-family: var(--serif); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.05rem, 4.5vw, 4rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
p { margin: .55em 0 1em; }
.block { padding-block: clamp(30px, 5vw, 66px); }
.section-title { display: flex; gap: 14px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin-bottom: 15px; }
.section-title p { margin: 0; color: var(--muted); }
.group-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 9px; margin-bottom: 20px; }
.group-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #eadfd0; border: 1px solid #d5c4af; border-radius: 6px; text-decoration: none; font-weight: 700; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.tabs button { padding: 9px 13px; border: 1px solid #aa9a89; border-radius: 24px; background: transparent; color: var(--ink); }
.tabs button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fffaf2; }
.filters, .form-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
label { display: grid; gap: 5px; font-weight: 650; }
input, select, textarea { color: var(--ink); background: var(--white); border: 1px solid #a79886; border-radius: 6px; padding: 10px 11px; min-height: 46px; min-width: 0; width: 100%; }
.result-count { margin: 17px 0 11px; color: var(--muted); font-size: .9rem; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.card { min-width: 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); background: var(--white); border-radius: 10px; }
.card-visual { display: block; border-bottom: 1px solid var(--line); background: #e6d9cd; }
.card-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-content { display: flex; flex-direction: column; min-width: 0; padding: 16px; }
.card h3 { margin: .5em 0; }
.card h3 a { text-decoration: none; }
.card p { font-size: .94rem; color: var(--muted); }
.card-bottom { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; font-size: .85rem; margin-top: auto; }
.card-bottom a, .read { color: var(--rust); font-weight: 700; }
.card-bottom span { color: var(--muted); }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr)); gap: 18px; }
.stories article { border-top: 3px solid var(--rust); padding: 18px 16px; background: #ece1d4; }
.stories h3 a { text-decoration: none; }
.stories p, .related { color: var(--muted); }
.related { font-size: .92rem; }
.callout { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px; background: #2d211b; color: #fff4e8; border-radius: 9px; }
.callout p { margin-bottom: 0; }
.footer { padding: 40px 0; }
.footer-grid { display: flex; gap: 20px 34px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; padding-bottom: 23px; border-bottom: 1px solid #654f3f; }
.footer nav { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.footer h2 { font-size: 1.3rem; padding-top: 16px; }
.city-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); list-style: none; padding: 0; gap: 3px 12px; }
.city-links a { display: block; border-radius: 5px; padding: 9px 5px; }
.city-links [aria-current] { color: var(--rust); font-weight: bold; }
.footer .city-links [aria-current] { color: var(--light-rust); }
.breadcrumbs { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin-bottom: 21px; }
.product-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: clamp(14px, 5vw, 54px); }
.product-hero img { border-radius: 10px; width: 100%; height: auto; }
.product-hero figcaption { font-size: .85rem; color: var(--muted); padding-top: 6px; }
.product-desc h1 { margin-top: 8px; }
.product-select { width: min(260px, 100%); }
.price { font-weight: 750; font-size: 1.15rem; margin-top: 18px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(17px, 3vw, 34px); margin-block: 24px; }
.specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.specs dt, .specs dd { margin: 0; padding: 10px; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 670; }
.prose { max-width: 780px; }
.prose h2:not(:first-child) { margin-top: 1.2em; }
.prose .lead { font-size: 1.12rem; }
dialog { padding: 0; border: 0; width: min(650px, calc(100% - 24px)); max-height: calc(100dvh - 24px); color: var(--ink); background: var(--paper); border-radius: 12px; }
dialog::backdrop { background: #201911b8; }
.dialog-inner { padding: clamp(16px, 4vw, 30px); }
.dialog-inner > header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.close { width: 44px; height: 44px; flex: none; font-size: 1.5rem; border: 1px solid #a79886; background: transparent; border-radius: 8px; }
#quote-form { display: grid; gap: 12px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dialog-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.line-item { display: grid; grid-template-columns: minmax(0, 1fr) 92px auto; gap: 10px; align-items: center; padding: 9px; border: 1px solid var(--line); margin-bottom: 6px; }
.line-item button { background: transparent; border: 1px solid #a79886; min-height: 44px; }
.form-status { color: #28603a; margin: 0; overflow-wrap: anywhere; }
.form-status[data-error='true'] { color: #9a3321; }
@media (max-width: 840px) {
  .wrap { width: min(100% - 34px, 1220px); }
  .header-main { flex-wrap: wrap; gap: 8px 18px; padding-block: 13px; }
  .top nav { order: 3; width: 100%; padding-top: 5px; }
  .header-contact { justify-content: flex-start; }
}
@media (max-width: 650px) {
  .hero-grid, .product-hero, .filters { grid-template-columns: minmax(0, 1fr); }
  .hero figure img { max-height: 360px; aspect-ratio: 4/3; }
  .hero-copy { padding: 30px 0 22px; }
  .hero h1 { max-width: none; font-size: clamp(2.05rem, 10.1vw, 3.2rem); }
  .header-actions { margin-left: auto; }
  .header-actions .button { min-height: 42px; padding: 9px; }
  .footer-grid { flex-direction: column; }
  .line-item { grid-template-columns: minmax(0, 1fr) auto; }
  .line-item strong { grid-column: span 2; }
}
@media (max-width: 390px) {
  .header-main { align-items: flex-start; }
  .header-actions { margin-left: 0; }
  .wrap { width: calc(100% - 26px); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
