:root {
  color-scheme: light;
  --paper: #f3f6fa;
  --white: #fff;
  --ink: #162e3e;
  --muted: #48606e;
  --line: #d3dfe7;
  --edge: #819ba9;
  --navy: #143747;
  --teal: #006963;
  --teal-dark: #00504d;
  --wash: #e8f2f3;
  --sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font: 16px/1.53 var(--sans);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-underline-offset: .21em; }
a:hover { color: var(--teal); }
img { display: block; width: auto; height: auto; max-width: 100%; }
figure { margin: 0; }
button, select, input, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; z-index: 20; top: -8rem; left: 1rem; padding: 12px 18px; background: var(--white); }
.skip:focus { top: 1rem; }
.preview-notice { margin: 0; padding: 7px 12px; text-align: center; color: #294852; background: #e0ecef; font-size: .8rem; }

.top { background: var(--white); border-bottom: 1px solid var(--line); }
.header-main { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 12px 26px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.2rem; font-weight: 790; line-height: 1.18; text-decoration: none; }
.brand img { flex: none; width: 38px; height: 38px; border-radius: 9px; }
.top nav, .header-actions, .contacts, .footer nav { display: flex; flex-wrap: wrap; align-items: center; }
.top nav, .footer nav { gap: 6px clamp(13px, 2.4vw, 29px); }
.top nav a, .footer nav a { text-decoration: none; font-weight: 640; }
.header-actions { gap: 10px; }
.city-control { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: .9rem; font-weight: 710; text-decoration: none; }
.city-control [aria-hidden] { color: var(--teal); }
.contact-bar { background: #f0f7f8; border-top: 1px solid var(--line); }
.header-contact { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 6px; }
.header-contact > span { color: var(--muted); font-size: .86rem; font-weight: 650; }
.contacts { gap: 7px; max-width: 100%; }
.contacts button, .contacts a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; color: inherit;
  background: transparent; border: 1px solid var(--edge); border-radius: 6px;
  font-size: .88rem; font-weight: 680; overflow-wrap: anywhere;
}
.contacts button:hover, .contacts a:hover { border-color: currentColor; }
.contact-status { flex: 0 1 100%; font-size: .89rem; }
.contact-status:empty { display: none; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 19px; border: 1px solid transparent; border-radius: 7px;
  font-weight: 710; line-height: 1.25; text-align: center; text-decoration: none;
}
.primary { color: var(--white); background: var(--teal); }
.primary:hover, .top .primary:hover { color: var(--white); background: var(--teal-dark); }
.outline { color: var(--ink); background: transparent; border-color: var(--edge); }
.outline:hover { background: var(--white); border-color: var(--teal); }

.hero { background: var(--navy); color: #f7fcff; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(22px, 3.8vw, 57px); align-items: center; padding-block: clamp(27px, 4vw, 57px);
}
.hero-copy { min-width: 0; }
.hero h1 {
  margin-bottom: 14px; font-size: clamp(1.95rem, 4.15vw, 3.75rem);
  letter-spacing: -.05em; line-height: 1.02; overflow-wrap: anywhere;
}
.hero h1 span { display: block; margin-top: 12px; color: #a4e7df; font-size: .54em; line-height: 1.14; letter-spacing: -.025em; }
.hero p { max-width: 48ch; color: #dae9ef; font-size: clamp(1rem, 1.45vw, 1.13rem); }
.hero .primary { color: #12363e; background: #a4e7df; }
.hero .primary:hover { background: #c9f8ef; }
.hero .outline { color: #f1f8fb; border-color: #9db8c1; }
.hero .outline:hover { background: #204e5e; }
.hero :focus-visible { outline-color: #a4e7df; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.hero figure {
  position: relative; overflow: hidden; min-width: 0; border-radius: 9px;
  background: #60838f; border: 1px solid #6b8f9b;
}
.hero figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero figcaption {
  position: absolute; right: 9px; bottom: 9px; max-width: calc(100% - 18px); padding: 4px 8px;
  color: var(--ink); background: var(--white); border-radius: 3px; font-size: .73rem;
}

h1, h2, h3 { margin: 0 0 .45em; line-height: 1.12; overflow-wrap: anywhere; }
h1, h2 { font-weight: 790; }
h1 { font-size: clamp(2rem, 4.55vw, 3.75rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.6rem, 3.35vw, 2.55rem); letter-spacing: -.033em; }
h3 { font-size: clamp(1.08rem, 1.6vw, 1.28rem); font-weight: 750; }
p { margin: .55em 0 1em; }
.block { padding-block: clamp(29px, 5vw, 61px); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 15px; flex-wrap: wrap; margin-bottom: 14px; }
.section-title p { margin: 0; color: var(--muted); }
.catalog-head { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.group-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 22px; }
.group-links a {
  display: grid; grid-template-columns: 102px minmax(0, 1fr); align-items: stretch;
  min-height: 94px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); text-decoration: none; overflow-wrap: anywhere;
}
.group-links a:hover { border-color: var(--teal); }
.group-links img { width: 100%; height: 100%; min-height: 92px; object-fit: cover; }
.group-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 2px 6px; padding: 11px 12px; }
.group-body strong { grid-column: 1 / -1; line-height: 1.25; }
.group-body small { color: var(--muted); }
.group-body > span { color: var(--teal); }
.category-lead { max-width: 68ch; color: var(--muted); }
.filter-panel { display: grid; gap: 11px; padding: clamp(12px, 2.6vw, 21px); background: var(--wash); border: 1px solid var(--line); border-radius: 8px; }
.filter-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
label { display: grid; gap: 5px; min-width: 0; font-size: .92rem; font-weight: 690; }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--edge);
  border-radius: 5px; color: var(--ink); background: var(--white); font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.result-count { margin: 15px 0 10px; color: var(--muted); font-size: .9rem; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(235px, 100%), 1fr)); gap: 13px; }
.card { display: flex; min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.card-content { display: flex; flex-direction: column; padding: 15px; width: 100%; min-width: 0; }
.card-spec, .kicker { color: var(--teal); font-size: .79rem; font-weight: 730; overflow-wrap: anywhere; }
.card h3 { margin-top: .45em; }
.card h3 a, .stories h3 a { text-decoration: none; }
.card h3 a:hover, .stories h3 a:hover { text-decoration: underline; }
.card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 11px; }
.card-badges span { padding: 3px 6px; max-width: 100%; background: var(--wash); border-radius: 3px; font-size: .77rem; overflow-wrap: anywhere; }
.card-bottom { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 9px; margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line); font-size: .86rem; }
.card-bottom a, .read { color: var(--teal); font-weight: 730; }
.card-bottom > span { color: var(--muted); }
.catalog-more { display: flex; justify-content: center; }
.catalog-more:has(button:not([hidden])) { margin-top: 13px; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pager a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--edge); border-radius: 6px; text-decoration: none; background: var(--white); }
.pager [aria-current] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(244px, 100%), 1fr)); gap: 14px; }
.stories article { padding: 15px; border-top: 2px solid var(--navy); background: var(--white); }
.stories p, .related { color: var(--muted); }
.related { padding-top: 18px; }
.related h2 { font-size: 1.45rem; }
.callout, .footer { color: #f5f7ef; background: var(--navy); }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(16px, 3vw, 32px); border-radius: 8px; }
.callout p { margin-bottom: 0; }
.callout :focus-visible, .footer :focus-visible { outline-color: #a4e7df; }
.footer { padding: 30px 0; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; padding-bottom: 16px; border-bottom: 1px solid #60838f; }
.footer a:hover { color: #a4e7df; }
.footer h2 { margin-top: 18px; font-size: 1.35rem; }
.footer .contacts button, .footer .contacts a { border-color: #91b3c2; }
.city-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); list-style: none; padding: 0; gap: 4px 10px; }
.city-links a { display: block; min-height: 44px; padding: 9px 5px; overflow-wrap: anywhere; }
.city-links [aria-current] { color: var(--teal); font-weight: 750; }
.footer .city-links [aria-current] { color: #a4e7df; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-bottom: 18px; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.product-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(16px, 4vw, 48px); }
.product-hero img { width: 100%; max-height: 390px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.product-hero figcaption { margin-top: 7px; color: var(--muted); font-size: .85rem; }
.product-desc h1 { margin-top: 7px; }
.product-select { width: min(250px, 100%); }
.price { margin-top: 16px; font-weight: 760; }
.panel { margin-block: 20px; padding: clamp(14px, 3vw, 32px); border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.specs dt, .specs dd { margin: 0; padding: 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 690; }
.prose { max-width: 800px; }
.prose h2:not(:first-child) { margin-top: 1.13em; }
.prose .lead { font-size: 1.13rem; }
.prose details { padding: 11px 0; border-top: 1px solid var(--line); }
.prose summary { cursor: pointer; font-weight: 720; }
.prose details p { margin: 8px 0 2px; }

dialog { padding: 0; width: min(660px, calc(100% - 22px)); max-height: calc(100dvh - 22px); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #212a24a8; }
.dialog-inner { padding: 0 clamp(13px, 3vw, 24px) clamp(13px, 3vw, 24px); }
.dialog-inner > header { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 9px; background: var(--paper); }
.dialog-inner > header h2 { margin: 0; }
.close, .line-item button { min-width: 44px; min-height: 44px; color: var(--ink); background: var(--white); border: 1px solid var(--edge); border-radius: 5px; }
.close { font-size: 1.53rem; }
#quote-form { display: grid; gap: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.line-item { display: grid; grid-template-columns: minmax(0, 1fr) 118px auto; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px; border: 1px solid var(--line); }
.line-item strong { min-width: 0; overflow-wrap: anywhere; }
.form-status { margin: 0; color: #365521; overflow-wrap: anywhere; }
.form-status[data-error='true'] { color: #872d1c; }

@media (max-width: 890px) {
  .wrap { width: calc(100% - 36px); }
  .header-main { flex-wrap: wrap; min-height: 0; padding-block: 11px; }
  .top nav { order: 2; width: 100%; }
  .group-links a { grid-template-columns: 69px minmax(0, 1fr); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 26px); }
  .hero-grid, .product-hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(1.95rem, 8.5vw, 3rem); }
  .hero-grid { padding-block: 24px; }
  .hero figure { max-width: 560px; }
  .group-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-links a { grid-template-columns: minmax(0, 1fr); grid-template-rows: 71px minmax(0, 1fr); }
  .group-links img { min-height: 0; }
  .header-contact > span { display: none; }
  .line-item { grid-template-columns: minmax(0, 1fr) auto; }
  .line-item strong { grid-column: span 2; }
}
@media (max-width: 370px) {
  .form-grid, .filter-search { grid-template-columns: minmax(0, 1fr); }
  .filter-search button { justify-self: start; }
  .header-main { column-gap: 10px; }
  .header-actions { gap: 4px; }
  .header-actions .button { padding-inline: 9px; }
  .brand { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
