:root {
  --green: #153f2f;
  --green-2: #245641;
  --red: #a8322d;
  --cream: #f5efe2;
  --cream-2: #fffaf0;
  --gold: #c29a4a;
  --ink: #1d241f;
  --muted: #657269;
  --line: #e5dccb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(21, 63, 47, .13);
  --radius: 8px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(194, 154, 74, .75); outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: 78px 0; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--green);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 240, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--green);
}
.brand img {
  width: 205px;
  max-height: 88px;
  object-fit: contain;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(194, 154, 74, .55);
  border-radius: var(--radius);
  color: var(--green);
  background: rgba(255, 255, 255, .6);
  letter-spacing: .02em;
  font-size: 1.05rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 650;
  flex-wrap: nowrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--green);
  white-space: nowrap;
}
.main-nav a[aria-current="page"] { color: var(--red); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
  margin: 5px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--green-2); border-color: var(--green-2); }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { color: var(--white); }
.btn-small {
  min-height: 42px;
  padding: 9px 16px;
  min-width: max-content;
  white-space: nowrap;
}
.btn-muted { background: var(--cream); color: var(--green); border-color: var(--line); }
.btn-muted:hover { background: var(--white); color: var(--green); border-color: var(--gold); }
.text-link { color: var(--red); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.hero {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(110deg, rgba(245, 239, 226, .98), rgba(255, 250, 240, .92)),
    radial-gradient(circle at 75% 25%, rgba(194, 154, 74, .18), transparent 34%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 54px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 850;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
}
h1, h2, h3 { color: var(--green); line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 4.7rem); max-width: 820px; }
h2 { font-size: clamp(1.75rem, 3vw, 2.8rem); }
h3 { font-size: 1.05rem; }
.hero-lead, .page-hero p { color: var(--muted); font-size: 1.22rem; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-showcase {
  min-height: 440px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: center;
}
.showcase-card {
  min-height: 205px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.showcase-card img { width: 100%; height: 150px; object-fit: contain; padding: 14px; background: var(--cream); }
.showcase-card strong { display: block; padding: 12px 14px 0; color: var(--green); }
.showcase-card span { display: block; padding: 2px 14px 14px; color: var(--muted); font-size: .9rem; }
.showcase-card:first-child { transform: translateY(-24px); }
.showcase-card:nth-child(2) { transform: translateY(28px); }
.showcase-empty {
  grid-column: 1 / -1;
  min-height: 300px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  color: var(--green);
  background: rgba(255, 255, 255, .55);
  padding: 24px;
}
.showcase-empty span { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 56px;
}
.about-copy p { margin-top: 0; color: #3f4c43; font-size: 1.05rem; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.value-grid article {
  border-left: 4px solid var(--gold);
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(21, 63, 47, .06);
}
.value-grid p { margin: 7px 0 0; color: var(--muted); font-size: .95rem; }

.featured-section, .catalog-section { background: var(--white); }
.brands-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.brand-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 16px;
  align-items: center;
}
.brand-logos img {
  width: 100%;
  height: 96px;
  object-fit: contain;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-2);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  align-items: stretch;
  gap: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 510px;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(21, 63, 47, .07);
}
.product-media {
  height: 230px;
  background: var(--cream);
  display: grid;
  place-items: center;
  padding: 16px;
}
.product-media img {
  width: 100%;
  height: 100%;
  max-width: 210px;
  max-height: 198px;
  object-fit: contain;
  padding: 0;
}
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; min-height: 240px; }
.product-meta { color: var(--red); font-weight: 800; font-size: .85rem; margin-bottom: 8px; }
.product-specs {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 86px;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: .94rem;
}
.product-actions { display: grid; gap: 10px; margin-top: auto; }
.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 34px;
  color: var(--muted);
  background: var(--cream-2);
  text-align: center;
}
.empty-state strong { display: block; color: var(--green); font-size: 1.2rem; margin-bottom: 6px; }

.contact-band {
  background: var(--green);
  color: var(--white);
}
.contact-band h2, .contact-band .eyebrow { color: var(--white); }
.contact-band p { color: rgba(255,255,255,.78); }
.contact-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.contact-band .btn { background: var(--white); color: var(--green); border-color: var(--white); }

.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.filters {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  align-items: end;
  gap: 14px;
  padding: 18px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.field { display: grid; gap: 7px; }
label, dt { font-weight: 800; color: var(--green); }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6ccba;
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px 12px;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 140px; }
.results-bar {
  color: var(--muted);
  font-weight: 750;
  margin: 0 0 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.contact-info, .contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 28px rgba(21, 63, 47, .06);
}
.contact-info dd { margin: 6px 0 18px; color: var(--muted); }
.form-note { color: var(--muted); margin-top: 8px; }
.error { min-height: 18px; color: var(--red); font-size: .88rem; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }

.map-frame {
  width: 100%;
  height: min(460px, 72vh);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(21, 63, 47, .08);
  background: var(--white);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-map {
  display: grid;
  gap: 10px;
  margin-top: -6px;
}
.map-frame-small {
  height: 230px;
  box-shadow: none;
}

.site-footer {
  background: #102c22;
  color: rgba(255,255,255,.78);
  padding: 46px 0 20px;
}
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr;
  gap: 30px;
}
.brand-footer { color: var(--white); margin-bottom: 12px; }
.brand-footer img {
  width: 230px;
  max-height: 104px;
}
.copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .92rem;
}

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 44, 34, .72);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-size: 1.6rem;
  cursor: pointer;
}
.modal-product {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) 1.1fr;
}
.modal-product .product-media { height: auto; min-height: 420px; }
.modal-product .product-media img { max-width: 82%; max-height: 380px; }
.modal-details { padding: 42px 34px 34px; }
.modal-details p { color: var(--muted); }

@media (max-width: 860px) {
  .section { padding: 58px 0; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 82px 0 auto 0;
    display: grid;
    gap: 0;
    background: var(--cream-2);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    transform: translateY(-130%);
    transition: transform .22s ease;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: 12px 0; }
  .main-nav .btn { margin-top: 8px; }
  .hero { min-height: auto; }
  .hero-grid, .split, .contact-grid, .modal-product { grid-template-columns: 1fr; }
  .hero-showcase { min-height: auto; }
  .filters { grid-template-columns: 1fr; }
  .contact-band-inner, .section-heading { align-items: start; flex-direction: column; }
  .brand-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-product .product-media { min-height: 300px; }
  .product-card { height: 510px; }
  .product-body { min-height: 300px; }
}

@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .header-inner { min-height: 72px; }
  .main-nav { inset-block-start: 72px; }
  .brand img { width: 154px; max-height: 68px; }
  .brand-mark { min-height: 38px; font-size: .96rem; }
  .hero-actions, .product-actions { grid-template-columns: 1fr; display: grid; }
  .value-grid, .hero-showcase { grid-template-columns: 1fr; }
  .brand-logos { grid-template-columns: 1fr; }
  .brand-logos img { height: 86px; }
  .showcase-card:first-child, .showcase-card:nth-child(2) { transform: none; }
  .contact-info, .contact-form, .filters { padding: 18px; }
  .product-card { height: auto; }
  .product-media { height: 210px; }
  .product-body { min-height: auto; }
  .product-specs { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
