:root {
  --paper: #f2f1eb;
  --ink: #20281f;
  --sub: #515b50;
  --border: #d7dacf;
  --dark: #252e25;
  --accent: #dcf279;
  --white: #fffcf5;
  --muted: #ebeee4;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input { font: inherit; }
button, summary, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:not(:disabled), summary { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #649154; outline-offset: 4px; }
.wrap { width: min(1216px, calc(100% - 72px)); margin-inline: auto; }
.top { background: var(--paper); border-bottom: 1px solid #ddded3; }
.top-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 850; letter-spacing: -.05em; }
.brand svg { color: #4f6d42; }
.top-link { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; }
.top-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.hero { display: grid; grid-template-columns: 1fr .99fr; min-height: 391px; position: relative; overflow: hidden; margin-block: 28px 55px; border-radius: 24px; background: var(--dark); color: #f7faed; }
.hero-copy { display: grid; align-content: center; justify-items: start; padding: 44px clamp(26px, 4.2vw, 60px); z-index: 1; }
.hero h1 { margin: 0 0 20px; font-size: clamp(40px, 5.0vw, 70px); line-height: .99; font-weight: 820; letter-spacing: -.067em; text-wrap: balance; }
.hero p { max-width: 375px; font-size: 17px; line-height: 1.52; color: #dce2d5; margin: 0 0 26px; }
.hero-photo { position: relative; min-width: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 51% 50%; position: absolute; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark), #252e2580 9%, #252e2500 29%); }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 13px 20px; font-weight: 800; min-height: 49px; border-radius: 10px; background: var(--accent); color: var(--ink); border: 1px solid #c9e060; white-space: nowrap; }
.action:hover:not(:disabled) { background: #e8fca1; }
.action:disabled { background: #e4e8dc; border-color: #d9ded0; color: #626b5c; }

.collection { padding-bottom: 35px; scroll-margin-top: 24px; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.heading h2 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; margin: 0; letter-spacing: -.065em; line-height: 1.0; }
.heading p { color: var(--sub); font-size: 15px; line-height: 1.4; margin: 10px 0 0; }
.selected-count { flex: none; border: 1px solid var(--border); border-radius: 100px; padding: 8px 13px; font-size: 13px; color: var(--sub); }
.selected-count strong { color: var(--ink); margin-left: 3px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 23px; }
.filters button { display: inline-flex; align-items: center; justify-content: center; min-height: 41px; padding: 7px 14px; background: none; border: 1px solid #c7cbbf; border-radius: 100px; color: var(--ink); font-size: 13px; font-weight: 700; }
.filters button:hover { background: var(--muted); }
.filters button[aria-pressed="true"] { color: #f5faec; background: var(--dark); border-color: var(--dark); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.card { min-width: 0; border: 1px solid var(--border); background: #fcfbf7; border-radius: 16px; overflow: hidden; }
.card.picked { border-color: #738c50; box-shadow: 0 0 0 1px #738c50 inset; }
.card-image { aspect-ratio: 1.67; background: #f3f3ee; padding: 13px; display: grid; place-items: center; border-bottom: 1px solid #e4e5dc; }
.card-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.card-image.scenic { padding: 0; overflow: hidden; }
.card-image.scenic img { object-fit: cover; mix-blend-mode: normal; }
.card-copy { padding: 19px 19px 16px; }
.model-name { color: #4c6641; font-weight: 800; font-size: 13px; }
.card h3 { margin: 5px 0 8px; font-size: clamp(19px, 2vw, 24px); font-weight: 800; letter-spacing: -.037em; line-height: 1.09; }
.card p { color: var(--sub); font-size: 14px; line-height: 1.43; min-height: 40px; margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 13px 0 15px; list-style: none; }
.facts li { border-radius: 5px; background: #edf0e6; padding: 4px 7px; font-size: 11px; line-height: 1.35; color: #45553f; font-weight: 650; }
.pick { display: flex; gap: 9px; align-items: center; font-weight: 760; font-size: 14px; padding: 9px 12px; min-height: 46px; border: 1px solid #bdd097; background: #f0f6e3; border-radius: 9px; cursor: pointer; position: relative; }
.pick:hover { background: #e3efce; }
.pick input { position: absolute; top: 50%; left: 12px; width: 19px; height: 19px; margin: 0; opacity: 0; transform: translateY(-50%); }
.pick:has(input:focus-visible), .option:has(input:focus-visible) { outline: 3px solid #649154; outline-offset: 2px; }
.mark { display: inline-grid; flex: none; place-items: center; width: 19px; height: 19px; background: #fcfff7; border: 1px solid #678458; border-radius: 5px; }
.mark svg { opacity: 0; }
.pick:has(input:checked) { background: #dbeaae; border-color: #8da661; }
.pick input:checked + .mark { background: var(--dark); border-color: var(--dark); color: var(--accent); }
.pick input:checked + .mark svg { opacity: 1; }

.answers { padding: 17px 17px 20px; background: #edf1e4; border-top: 1px solid #cdd8bd; }
.answers h4 { margin: 0 0 14px; font-size: 17px; line-height: 1.2; letter-spacing: -.025em; }
.question { margin: 0 0 14px; padding: 0; min-width: 0; border: none; }
.question legend, .budget { font-weight: 750; font-size: 13px; margin-bottom: 6px; line-height: 1.35; }
.options { display: flex; gap: 5px; flex-wrap: wrap; }
.option { position: relative; border: 1px solid #c7cfbc; color: #323e2f; background: #f9fbf4; padding: 6px 8px; border-radius: 6px; font-size: 12px; line-height: 1.35; cursor: pointer; }
.option:hover { border-color: #6e8d52; }
.option:has(input:checked) { background: #dcebb6; border-color: #6e8d52; font-weight: 730; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; inset: 50% auto auto 50%; }
.answers details { border-top: 1px solid #cdd8bd; padding-top: 10px; }
.answers summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; list-style: none; }
.answers summary::-webkit-details-marker { display: none; }
.answers details[open] summary { margin-bottom: 14px; }
.answers details[open] summary svg { transform: rotate(180deg); }
.budget { display: grid; gap: 5px; margin-bottom: 0; }
.budget input { width: 100%; border: 1px solid #aebda1; padding: 9px; border-radius: 7px; background: #fcfcf8; color: var(--ink); font-size: 14px; }
.empty { background: #fffdf6; border: 1px dashed var(--border); padding: 26px; border-radius: 10px; color: var(--sub); }

.submit-bar { position: sticky; z-index: 3; bottom: 0; background: #f9faf3; border-top: 1px solid #c7cdbb; box-shadow: 0 -5px 23px #2128200e; }
.submit-inner { padding-block: 12px; min-height: 73px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.submit-copy { display: grid; gap: 4px; }
.submit-copy strong { font-size: 14px; }
.submit-copy span { color: var(--sub); font-size: 12px; }
.submit-actions { display: flex; align-items: center; gap: 9px; }
.submit-actions [role=alert] { color: #842e25; max-width: 230px; font-size: 13px; margin: 0; }
.confirmation { min-height: 60vh; padding-block: 70px 45px; }
.confirmation h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -.065em; margin: 18px 0; }
.confirmation p, .confirmation li { color: var(--sub); line-height: 1.6; }
.confirmation ul { padding-left: 20px; margin-bottom: 20px; }
.success-icon { color: #4e7a35; }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 46px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .hero { min-height: 335px; }
  .hero h1 { font-size: clamp(39px, 6vw, 55px); }
  .hero-copy { padding: 31px 29px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 30px); }
  .top-inner { height: 56px; }
  .brand { font-size: 20px; }
  .top-link { font-size: 12px; }
  .hero { grid-template-columns: 1fr; margin-block: 14px 33px; border-radius: 16px; }
  .hero-copy { padding: 25px 24px 12px; }
  .hero h1 { font-size: clamp(38px, 10vw, 55px); margin-bottom: 12px; }
  .hero p { font-size: 14px; margin-bottom: 15px; }
  .hero-photo { height: 150px; }
  .hero-photo::after { background: linear-gradient(180deg, var(--dark), #252e2500 32%); }
  .hero .action { min-height: 43px; font-size: 13px; padding: 9px 13px; }
  .heading p { font-size: 13px; }
  .selected-count { align-self: start; font-size: 12px; padding: 6px 9px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -15px; padding-inline: 15px; padding-block: 4px; margin-bottom: 14px; }
  .filters button { min-height: 36px; padding: 6px 10px; white-space: nowrap; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card-copy { padding: 15px; }
  .card p { min-height: 0; }
  .card h3 { font-size: 23px; }
  .submit-inner { padding-block: 7px; gap: 8px; }
  .submit-copy strong { font-size: 12px; }
  .submit-copy span { font-size: 11px; }
  .submit-actions { flex-direction: column; align-items: end; }
  .submit-actions .action { font-size: 12px; min-height: 42px; padding: 8px 10px; gap: 4px; }
  .submit-actions [role=alert] { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 19px; }
.catalog-tools > span { flex: none; color: var(--sub); font-size: 13px; }
.search { display: flex; align-items: center; width: min(100%, 470px); gap: 10px; border: 1px solid #c5cbbd; border-radius: 11px; background: #fcfbf7; padding-inline: 12px; color: #4c6641; }
.search:focus-within { outline: 2px solid #649154; outline-offset: 2px; }
.search svg { flex: none; }
.search input { min-width: 0; width: 100%; padding: 13px 0; border: none; background: transparent; color: var(--ink); outline: none; }
.variants { margin: 10px 0; font-size: 13px; }
.variants summary { list-style: none; display: flex; align-items: center; gap: 7px; color: #4c6641; font-weight: 750; }
.variants summary::-webkit-details-marker { display: none; }
.variants[open] summary svg { transform: rotate(180deg); }
.variants ul { margin: 7px 0; padding: 0 0 0 16px; color: var(--sub); }
.variants li + li { margin-top: 4px; }
.card h3 + .pick, .variants + .pick { margin-top: 11px; }
.more { text-align: center; margin: 26px 0 2px; }
@media (max-width: 620px) {
  .catalog-tools { margin-bottom: 14px; }
  .search { gap: 7px; padding-inline: 8px; }
  .search input { font-size: 14px; }
  .catalog-tools > span { font-size: 11px; }
}
