:root {
  color-scheme: light;
  --paper: #edf2f7;
  --white: #fff;
  --ink: #132239;
  --muted: #435570;
  --line: #c9d4e0;
  --control: #75849a;
  --navy: #101e33;
  --navy-deep: #0a1628;
  --navy-light: #203653;
  --night-line: #4a607d;
  --night-text: #d3deec;
  --lime: #d2f747;
  --lime-hover: #e4ff88;
  --green: #355612;
  --focus: #436b12;
  --radius: 5px;
  --sans: 'Segoe UI', Arial, sans-serif;
  --mono: Consolas, 'Courier New', monospace;
  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: .23em; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 20; top: -10rem; left: 1rem; padding: 1rem; background: var(--white); color: var(--ink); }
.skip:focus { top: 1rem; }
.preview-notice { margin: 0; padding: 7px 12px; text-align: center; color: var(--ink); background: #e4f2c6; font-size: .83rem; }

.top, .footer { color: var(--night-text); background: var(--navy-deep); }
.top { border-bottom: 1px solid var(--night-line); }
.top :focus-visible, .footer :focus-visible, .hero :focus-visible, .callout :focus-visible { outline-color: var(--lime); }
.header-main { min-height: 74px; display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--white); font-size: 1.08rem; font-weight: 780; text-decoration: none; line-height: 1.14; }
.brand img { flex: none; border-radius: var(--radius); }
.brand span { overflow-wrap: anywhere; }
.top nav, .header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px clamp(13px, 2.2vw, 26px); }
.top nav a, .footer nav a { text-decoration: none; }
.top nav a, .city-control { font-size: .92rem; font-weight: 660; }
.top a:hover, .footer a:hover { color: var(--lime); }
.header-actions { gap: 12px; justify-content: flex-end; }
.city-control { display: flex; gap: 7px; align-items: center; padding-block: 8px; text-decoration: none; }
.city-control [aria-hidden] { color: var(--lime); }
.header-contact { display: flex; justify-content: flex-end; border-top: 1px solid var(--night-line); padding-block: 8px; }
.contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.contacts button, .contacts a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 7px 12px;
  color: var(--night-text); background: var(--navy); border: 1px solid #8494ac;
  border-radius: var(--radius); font-size: .89rem; font-weight: 690; overflow-wrap: anywhere;
}
.contacts button:hover, .contacts a:hover { color: var(--lime); border-color: var(--lime); }
.contact-status { flex: 1 1 100%; color: var(--night-text); font-size: .87rem; }
.contact-status:empty { display: none; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 16px; border: 1px solid transparent;
  border-radius: var(--radius); font-weight: 720; line-height: 1.25; text-align: center; text-decoration: none;
}
.primary { color: var(--navy-deep); background: var(--lime); }
.primary:hover, .top .primary:hover { color: var(--navy-deep); background: var(--lime-hover); }
.outline { color: var(--ink); border-color: var(--control); background: transparent; }
.outline:hover { color: var(--green); border-color: var(--green); background: #edf5db; }
.hero .outline, .callout .outline { color: var(--white); border-color: #9babbe; }
.hero .outline:hover, .callout .outline:hover { color: var(--lime); border-color: var(--lime); background: var(--navy-deep); }

.hero {
  color: var(--white);
  background: linear-gradient(113deg, var(--navy-deep) 10%, var(--navy) 62%, var(--navy-light) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: center; gap: clamp(20px, 5vw, 68px);
  padding-block: clamp(42px, 7vw, 94px);
}
.hero-copy { min-width: 0; container-type: inline-size; }
.hero h1 {
  margin: .28em 0; color: inherit;
  font-size: clamp(1.5rem, 3.5vw, 4.6rem);
  font-size: clamp(1.5rem, 9cqi, 4.6rem);
  font-weight: 800; letter-spacing: -.045em; overflow-wrap: normal; text-wrap: pretty;
}
.kicker, .card-spec {
  color: var(--green); font-family: var(--mono); font-weight: 700;
  letter-spacing: .03em; overflow-wrap: anywhere;
}
.kicker { font-size: .86rem; }
.hero .kicker { display: inline-flex; align-items: baseline; gap: 9px; color: var(--lime); }
.hero .kicker::before { content: ''; width: 18px; height: 2px; align-self: center; flex: none; background: currentColor; }
.hero p { max-width: 50ch; color: var(--night-text); font-size: clamp(.99rem, 1.3vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
figure { margin: 0; }
.hero figure {
  position: relative; display: grid; min-width: 0; grid-template-areas: 'photo';
  border: 1px solid #8494ac; border-top: 3px solid var(--lime);
  background: var(--navy); overflow: hidden;
}
.hero figure img { grid-area: photo; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero figcaption {
  grid-area: photo; z-index: 1; align-self: end; justify-self: start;
  max-width: calc(100% - 20px); margin: 10px; padding: 4px 8px;
  background: var(--navy-deep); color: var(--night-text); font-size: .77rem;
}

h1, h2, h3 { margin: 0 0 .45em; font-weight: 760; line-height: 1.13; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4.5vw, 4rem); letter-spacing: -.043em; }
h2 { font-size: clamp(1.62rem, 3.5vw, 2.8rem); letter-spacing: -.037em; }
h3 { font-size: clamp(1.1rem, 1.75vw, 1.42rem); letter-spacing: -.02em; }
p { margin: .55em 0 1em; }
.block { padding-block: clamp(30px, 5vw, 64px); }
.section-title { display: flex; gap: 5px 16px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.section-title p, .catalog-head p { margin: 0; color: var(--muted); }
.catalog-head { padding: clamp(15px, 3vw, 28px); margin-bottom: 14px; border: 1px solid var(--line); background: #f7f9fc; border-left: 4px solid var(--green); }
.catalog-head .section-title { margin-bottom: 0; }

.group-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(224px, 100%), 1fr)); gap: 8px; margin-bottom: 18px; }
.group-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-width: 0; min-height: 49px; padding: 9px 13px;
  color: var(--ink); background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--night-line); border-radius: var(--radius);
  font-weight: 720; text-decoration: none; overflow-wrap: anywhere;
}
.group-links a:hover { border-color: var(--green); color: var(--green); background: #f6f9ee; }
.group-links a small { flex: none; color: var(--muted); font: 700 .85rem/1.2 var(--mono); }
.group-links a [aria-hidden] { flex: none; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.tabs button { padding: 9px 13px; border: 1px solid var(--control); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.tabs button[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-panel { display: grid; gap: 12px; padding: clamp(12px, 2.2vw, 22px); border: 1px solid var(--line); border-radius: var(--radius); background: #dfe8f3; }
.filter-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px 12px; align-items: end; }
label { display: grid; gap: 5px; min-width: 0; font-weight: 670; }
.filter-panel label { font-size: .91rem; }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 46px; padding: 9px 11px;
  color: var(--ink); background: var(--white); border: 1px solid var(--control); border-radius: var(--radius);
  font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.result-count { margin: 16px 0 10px; color: var(--muted); font-size: .92rem; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(236px, 100%), 1fr)); gap: 14px; }
.catalog-more { display: flex; justify-content: center; }
.catalog-more:has(button:not([hidden])) { margin-top: 18px; }

.card {
  display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.card:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.card-visual { position: relative; display: block; border-bottom: 1px solid var(--line); background: #cbd6e3; }
.card-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.visual-label {
  position: absolute; bottom: 7px; left: 7px; max-width: calc(100% - 14px);
  padding: 3px 6px; background: var(--navy-deep); color: var(--night-text); font-size: .71rem; line-height: 1.3;
}
.card-content { display: flex; flex-direction: column; min-width: 0; padding: 13px; }
.card-spec { font-size: .79rem; }
.card h3 { margin: .4em 0 .55em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { font-size: .94rem; color: var(--muted); }
.card-badges { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 12px; }
.card-badges > * {
  max-width: 100%; padding: 3px 6px; color: var(--ink); background: #e5ecf4;
  border: 1px solid var(--line); border-radius: 3px; font-size: .79rem; line-height: 1.25;
  overflow-wrap: anywhere;
}
.card-bottom { display: flex; gap: 5px 9px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: .85rem; }
.card-bottom a, .read { color: var(--green); font-weight: 730; }
.card-bottom > span { color: var(--muted); }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr)); gap: 14px; }
.stories article { min-width: 0; border-top: 3px solid var(--green); padding: 17px 15px; background: var(--white); }
.stories h3 a { text-decoration: none; }
.stories p, .related { color: var(--muted); }
.related { font-size: .92rem; }
.callout {
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: clamp(17px, 3.6vw, 35px); color: var(--white); background: var(--navy);
  border-top: 3px solid var(--lime); border-radius: var(--radius);
}
.callout p { color: var(--night-text); margin-bottom: 0; }

.footer { padding: 36px 0; }
.footer-grid { display: flex; gap: 17px 32px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; padding-bottom: 19px; border-bottom: 1px solid var(--night-line); }
.footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.footer h2 { font-size: 1.3rem; padding-top: 16px; color: var(--white); }
.city-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr)); list-style: none; padding: 0; gap: 3px 10px; }
.city-links a { display: block; min-height: 44px; padding: 10px 7px; border-radius: var(--radius); overflow-wrap: anywhere; }
.city-links [aria-current] { color: var(--green); font-weight: 730; }
.footer .city-links [aria-current] { color: var(--lime); }
.breadcrumbs { display: flex; gap: 5px 8px; align-items: baseline; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.breadcrumbs a, .breadcrumbs span { min-width: 0; overflow-wrap: anywhere; }

.product-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 5vw, 54px); }
.product-hero img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.product-hero figcaption { padding-top: 6px; color: var(--muted); font-size: .85rem; }
.product-desc h1 { margin-top: 8px; }
.product-select { width: min(270px, 100%); margin-top: 12px; }
.product-select input { max-width: 140px; }
.price { margin-top: 16px; font-weight: 730; font-size: 1.15rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 3vw, 32px); margin-block: 20px; }
.specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.specs dt, .specs dd { margin: 0; padding: 9px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 670; }
.prose { max-width: 770px; }
.prose h2:not(:first-child) { margin-top: 1.15em; }
.prose .lead { font-size: 1.12rem; }

dialog {
  width: min(660px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0;
  border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
dialog::backdrop { background: #0a1628b8; }
.dialog-inner { padding: clamp(13px, 4vw, 27px); }
.dialog-inner > header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.close {
  min-width: 44px; height: 44px; flex: none; border: 1px solid var(--control);
  background: var(--white); color: var(--ink); border-radius: var(--radius); font-size: 1.5rem;
}
.close:hover, .line-item button:hover { border-color: var(--green); background: #edf5db; }
#quote-form { display: grid; min-width: 0; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.dialog-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.line-item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 115px) auto;
  align-items: end; gap: 8px; margin-bottom: 7px; padding: 9px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.line-item strong, .line-item label { min-width: 0; overflow-wrap: anywhere; align-self: center; }
.line-item label, .line-item button { font-size: .86rem; }
.line-item button {
  min-height: 44px; padding: 6px 9px; border: 1px solid var(--control);
  color: var(--ink); background: transparent; border-radius: var(--radius);
}
.form-status { margin: 0; color: var(--green); overflow-wrap: anywhere; }
.form-status[data-error='true'] { color: #962e2b; }

@media (max-width: 950px) {
  .wrap { width: min(1240px, calc(100% - 36px)); }
  .header-main { flex-wrap: wrap; gap: 9px 16px; padding-block: 12px; }
  .top nav { order: 3; width: 100%; }
  .header-contact { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .hero-grid, .product-hero { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-block: 32px 24px; }
  .hero figure img { max-height: 340px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { flex-direction: column; }
}

@media (max-width: 470px) {
  .wrap { width: calc(100% - 26px); }
  .header-main { align-items: flex-start; }
  .header-actions { justify-content: flex-start; }
  .top nav a { padding-block: 6px; }
  .filter-search { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .filter-search .button { justify-self: start; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .line-item { grid-template-columns: minmax(0, 1fr) auto; }
  .line-item strong { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
