:root {
  color-scheme: light;
  --night: #101923;
  --deep: #142231;
  --blue: #114fd0;
  --bright: #71acff;
  --paper: #f3f5f7;
  --line: #d7dfe7;
  --muted: #4b5c6e;
  --heading: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--night); background: white; font: 1rem/1.55 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 800; line-height: .96; letter-spacing: -.012em; }
h2 { font-size: clamp(2.85rem, 5vw, 4.65rem); text-transform: uppercase; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2f75ff; outline-offset: 4px; }
.wrap { width: min(100% - 5.5rem, 1280px); margin-inline: auto; }
.section { padding-block: clamp(3.9rem, 7vw, 7rem); }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; z-index: 20; padding: 1rem; top: .5rem; left: .5rem; background: white; }
.eyebrow {
  display: flex; align-items: center; gap: .65rem; color: var(--blue);
  font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  line-height: 1.4; margin-bottom: .85rem;
}
.eyebrow span { display: inline-block; flex: 0 0 1.8rem; height: 2px; background: currentColor; }
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 3px; padding: .62rem 1.15rem;
  font-weight: 700; font-size: .9375rem; line-height: 1.3; text-decoration: none; text-align: center;
  transition: background-color .18s, border-color .18s, color .18s;
}
.button-primary { color: white; background: var(--blue); border-color: var(--blue); }
.button-primary:hover { background: #0c3fae; border-color: #0c3fae; }
.button-dark { background: var(--night); color: white; }
.button-dark:hover { background: #243a54; }
.button-outline { background: transparent; border-color: #b7c5d3; color: var(--night); }
.button-outline:hover { background: #e8eef8; border-color: #a4b9d1; }
.button-light { background: transparent; border-color: #9cacc1; color: white; }
.button-light:hover { background: #ffffff19; border-color: white; }
.button:disabled, .close:disabled { opacity: .58; cursor: wait; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }

.site-header { background: white; border-bottom: 1px solid #e8ecf1; position: relative; z-index: 2; }
.header-inner { min-height: 83px; display: flex; align-items: center; gap: clamp(1.2rem, 3.1vw, 3.2rem); }
.brand { display: inline-flex; align-items: center; gap: .52rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 65px; height: 65px; }
.brand strong { display: block; font-size: 1.3rem; line-height: 1.18; letter-spacing: -.05em; }
.brand small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.2; margin-top: .18rem; white-space: nowrap; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.85rem, 2.45vw, 2.25rem); flex: 1; }
.site-nav a, .header-phone { font-size: .9375rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
.header-shop { flex: 0 0 auto; min-height: 44px; white-space: nowrap; padding-inline: .85rem; }
.header-phone { border: 1px solid #b5c7e4; border-radius: 3px; color: var(--blue); padding: .65rem .82rem; }
.header-phone:hover { background: #eff5ff; }
.menu-button { display: none; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: white; }
.hero-picture { z-index: -2; position: absolute; inset: 0 0 0 35%; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 63% 55%; }
.hero::after {
  content: ""; z-index: -1; position: absolute; inset: 0;
  background: linear-gradient(90deg, #101923 0%, #101923 34%, #101923f0 41%, #10192361 56%, #10192300 75%),
    linear-gradient(0deg,#101923a0 0%,transparent 21%);
}
.hero-inner { min-height: clamp(520px, 44vw, 680px); position: relative; display: flex; align-items: center; padding-block: 4.1rem 5.5rem; }
.hero-copy { max-width: 620px; }
.hero .eyebrow { color: var(--bright); }
.hero h1 { font-size: clamp(5.3rem, 8.6vw, 9.35rem); line-height: .84; text-transform: uppercase; margin-left: -.02em; }
.hero h1 span { color: var(--bright); }
.hero-intro { max-width: 410px; color: #e2ebf6; font-size: clamp(1rem, 1.4vw, 1.18rem); margin-block: 1.7rem 1.75rem; }
.hero .button { min-height: 51px; }
.hero-caption {
  display: flex; gap: .6rem; align-items: center; position: absolute; bottom: 1.6rem; right: 0;
  color: white; font-size: .875rem; font-weight: 700; text-shadow: 0 1px 5px #0e1620;
}
.hero-caption span { width: 16px; height: 1px; background: white; }

.catalog { background: var(--paper); }
.section-head { display: flex; gap: 1.5rem 2.5rem; align-items: end; justify-content: space-between; margin-bottom: 2rem; }
.section-head > p { max-width: 370px; color: var(--muted); }
.catalog-controls { display: flex; justify-content: space-between; gap: .8rem 1rem; flex-wrap: wrap; }
.filters, .filter-options { display: flex; gap: .4rem; align-items: stretch; flex-wrap: wrap; }
.filters button {
  color: var(--night); border: 1px solid var(--line); background: white; border-radius: 3px;
  font-size: .9375rem; font-weight: 700; min-height: 46px; padding: .5rem .85rem;
}
.filters button:hover { border-color: #7d9fd4; }
.filters button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: white; }
.stock-filter {
  display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .75rem; min-height: 47px;
  color: var(--night); background: white; border: 1px solid #b9c9d8; border-radius: 3px;
  font-size: .9375rem; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.stock-filter input { min-height: 0; width: 1rem; height: 1rem; margin: 0; accent-color: var(--blue); cursor: pointer; }
.stock-filter:has(input:checked) { background: #e8f4ec; border-color: #6b9b76; }
input, select, textarea { min-height: 47px; width: 100%; border: 1px solid #b9c9d8; background: white; border-radius: 3px; padding: .6rem .75rem; color: var(--night); }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, #435a75 50%), linear-gradient(135deg, #435a75 50%, transparent 50%); background-position: calc(100% - 15px) 51%, calc(100% - 10px) 51%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; }
.search-wrap { position: relative; }
.search-wrap::before {
  content: ""; position: absolute; top: 16px; left: 13px; width: 13px; height: 13px;
  border: 1.75px solid #536984; border-radius: 50%; pointer-events: none;
}
.search-wrap::after {
  content: ""; position: absolute; top: 28px; left: 23px; width: 6px; height: 1.75px;
  background: #536984; transform: rotate(45deg); pointer-events: none;
}
.search-wrap input { padding-left: 2.1rem; width: clamp(145px, 15vw, 215px); }
.filter-options select { font-size: .9375rem; }
.catalog-meta {
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--muted); font-size: .875rem; margin-block: .9rem .65rem;
}
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 5px; background: white; overflow: hidden; }
.product-media {
  display: grid; place-items: center; position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.58;
  border: 0; border-bottom: 1px solid #e7edf1; background: #edf2f7; padding: 2rem 1.2rem .7rem;
}
.product-media::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 48% 58%, white, transparent 74%);
}
.product-media:focus-visible { outline-offset: -4px; }
.product-media img, .detail-media img { height: 100%; width: 100%; min-height: 0; object-fit: contain; }
.product-media img { transition: transform .18s; }
.product-media:hover img { transform: scale(1.045); }
.product-tag {
  position: absolute; top: .85rem; left: .85rem; padding: .26rem .55rem;
  color: #18395c; background: #dce8f6; border-radius: 2px;
  font-size: .8125rem; font-weight: 700;
}
.photo-missing, .detail-media p { color: var(--muted); }
.product-content { padding: clamp(.95rem, 1.6vw, 1.45rem); display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.product-meta { color: var(--muted); margin: 0 0 .22rem; font-size: .875rem; font-weight: 600; }
.product h3 { font-family: var(--heading); font-size: clamp(1.85rem, 3vw, 2.35rem); line-height: .96; text-transform: uppercase; margin: 0 0 .7rem; }
.stock { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-bottom: .65rem; }
.stock-badge { padding: .2rem .48rem; background: #edf2f7; color: var(--muted); font-size: .8125rem; font-weight: 700; border-radius: 3px; }
.stock-badge.is-in-stock { background: #e1f4e7; color: #155632; }
.stock-options { color: var(--muted); font-size: .875rem; }
.product-price { font-size: 1.24rem; font-weight: 700; color: var(--blue); margin-top: auto; line-height: 1.4; }
.product-price small { font-size: .875rem; font-weight: 600; }
.product-actions { display: flex; width: 100%; gap: .5rem; margin-top: 1.05rem; }
.product-actions > * { flex: 1; padding-inline: .5rem; min-height: 44px; }
.load-more { display: flex; justify-content: center; margin-top: 1.5rem; }
.empty { padding-block: 1.5rem; }
.empty p { margin-block: .3rem .85rem; }

.service { color: white; background: var(--night); }
.service-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.55rem, 5vw, 5rem); align-items: center; }
.service-photo img { width: 100%; min-height: 310px; max-height: 470px; height: auto; object-fit: cover; border-radius: 4px; }
.service .eyebrow { color: var(--bright); }
.service dl { margin: 1.3rem 0 1.6rem; }
.service dl div { border-top: 1px solid #526175; padding: .75rem 0; }
.service dt { font-weight: 700; }
.service dd { margin: .2rem 0 0; color: #d2deeb; }

.inquiry { background: #e8f0fc; }
.inquiry-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.inquiry-copy > p:not(.eyebrow) { margin-top: 1.15rem; color: var(--muted); max-width: 400px; }
.inquiry-contact a { color: var(--blue); font-weight: 700; white-space: nowrap; }
#inquiry-form { display: grid; gap: 1rem; padding: clamp(1rem, 3vw, 2rem); background: white; border: 1px solid #cdd9e7; border-radius: 5px; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
form label, #message-dialog label { display: block; font-size: .9375rem; font-weight: 700; }
form label input, form label select, form label textarea, #message-preview { display: block; margin-top: .3rem; font-weight: 400; }
.optional { font-size: .8125rem; font-weight: 400; color: var(--muted); }
#inquiry-form button { justify-self: start; }
.form-privacy { color: var(--muted); font-size: .875rem; }
.form-privacy a { color: var(--blue); }

.footer { background: #fff; padding-top: 2.7rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 1.4rem; padding-bottom: 2.5rem; }
.footer-grid h2 { font: 700 1rem/1.2 var(--body); text-transform: none; margin: .5rem 0 .8rem; color: var(--night); }
.footer-grid .brand { margin: -.25rem 0 .4rem; color: var(--night); }
.footer-grid .brand img { width: 52px; height: 52px; }
.footer-grid > div > a:not(.brand) { display: block; width: fit-content; margin-block: .25rem; color: var(--blue); }
.contact-label { display: block; color: var(--muted); font-size: .875rem; margin-bottom: .52rem; }
address { font-style: normal; }
.footer-bottom { padding-block: .9rem 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; font-size: .875rem; }

dialog { border: 1px solid var(--line); border-radius: 6px; color: var(--night); padding: 0; width: min(820px, 100% - 2rem); max-height: calc(100% - 2rem); }
dialog::backdrop { background: #08111ce3; }
html:has(dialog[open]) { overflow: hidden; }
.close {
  position: absolute; z-index: 1; top: .6rem; right: .6rem;
  width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.65rem;
  line-height: 1; background: white; border: 1px solid var(--line); border-radius: 3px; color: var(--night);
}
.close:hover { background: #e7effb; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; }
.detail-media { display: grid; place-items: center; min-height: 285px; background: #edf2f7; padding: 1.15rem; }
.detail-copy { padding: 2.6rem 1.55rem 1.65rem; }
.detail-copy h2, #message-dialog h2 { font-size: clamp(2.2rem, 5vw, 3.35rem); margin-bottom: .75rem; }
#detail-price-source { font-size: .875rem; color: var(--muted); }
#detail-description { margin-top: .9rem; }
.detail-copy .actions { margin-top: 1rem; }
.source { display: inline-block; font-size: .9375rem; margin-top: .8rem; color: var(--blue); }
#message-dialog { width: min(650px, 100% - 2rem); padding: 2.8rem clamp(1rem, 4vw, 2rem) 1.5rem; }
#message-review label { margin-block: .75rem; }
#message-preview { background: var(--paper); }
#message-status:not(:empty) { margin-top: .75rem; font-weight: 600; }
#message-status[data-state="error"] { color: #a52128; }

.inbox { background: var(--paper); }
.inbox-home { margin-left: auto; }
.inbox-wrap { max-width: 790px; }
.inbox-wrap h1 { font-size: clamp(2.85rem, 6vw, 4.65rem); text-transform: uppercase; margin-bottom: 1.8rem; }
.privacy-wrap { max-width: 790px; }
.privacy-wrap h1 { font-size: clamp(2.8rem, 6vw, 4.65rem); margin-bottom: 1.6rem; }
.privacy-wrap h2 { font-size: clamp(1.65rem, 4vw, 2.3rem); text-transform: none; margin-block: 1.6rem .5rem; }
.privacy-wrap p + p { margin-top: .75rem; }
.privacy-wrap a { color: var(--blue); }
.inbox-card { background: white; border: 1px solid var(--line); border-radius: 5px; padding: clamp(1rem, 3vw, 1.5rem); }
.inbox-card + .inbox-card { margin-top: .8rem; }
.inbox-card h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-block: .45rem; }
.inbox-meta, .inbox-note { color: var(--muted); }
.inbox-meta { font-size: .9375rem; }
.inbox-model { font-weight: 700; margin-bottom: .35rem; }
.inbox-message { margin-top: .8rem; white-space: pre-wrap; }
.inquiry-notification { margin-top: .7rem; }
.inbox-card p { overflow-wrap: anywhere; }
.inbox-pagination { margin-top: 1.2rem; }

@media (max-width: 1060px) {
  .wrap { width: min(100% - 3.5rem, 1280px); }
  .header-inner { gap: 1rem; }
  .site-nav { gap: .85rem; }
}
@media (min-width: 881px) and (max-width: 1080px) {
  .header-inner { gap: 1.15rem; }
  .header-phone { display: none; }
}
@media (max-width: 880px) {
  .header-inner { min-height: 70px; gap: .55rem; }
  .menu-button {
    display: flex; gap: .5rem; align-items: center; margin-left: auto;
    border: 1px solid var(--line); border-radius: 3px; color: var(--night);
    background: white; padding: .52rem .7rem; min-height: 44px; font-weight: 700;
  }
  .menu-button span { display: block; width: 16px; height: 12px; border-block: 2px solid currentColor; position: relative; }
  .menu-button span::before { content: ""; position: absolute; inset: 3px 0 auto; border-top: 2px solid currentColor; }
  .site-nav {
    display: none; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: white; border-block: 1px solid var(--line); padding: .25rem 1.75rem;
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: .65rem 0; min-height: 44px; }
  .site-nav a + a { border-top: 1px solid var(--line); }
  .brand img { width: 56px; height: 56px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2rem); }
  .site-nav { padding-inline: 1rem; }
  .header-phone { display: none; }
  .hero-picture { inset: auto 0 0; height: 51%; }
  .hero-picture img { object-position: 50% 54%; }
  .hero::after { background: linear-gradient(180deg,#101923 0%,#101923 47%,#10192315 69%), linear-gradient(0deg,#10192395 0%,transparent 19%); }
  .hero-inner { min-height: 0; display: block; padding-block: 2.7rem clamp(255px, 60vw, 390px); }
  .hero h1 { font-size: clamp(3.7rem, 13.2vw, 6.35rem); }
  .hero-intro { margin-block: 1.2rem 1.15rem; max-width: 340px; }
  .hero-caption { bottom: .8rem; }
  .hero .actions .button { min-height: 45px; padding: .55rem .65rem; font-size: .875rem; }
  .service-grid, .inquiry-grid { grid-template-columns: 1fr; }
  .service-photo img { min-height: 0; aspect-ratio: 1.6; }
  .catalog-controls, .filter-options { width: 100%; }
  .filter-options { display: grid; grid-template-columns: minmax(0, 1fr) max-content; }
  .stock-filter { grid-column: 1 / -1; justify-self: start; }
  .search-wrap { min-width: 0; }
  .search-wrap input { width: 100%; }
}
@media (max-width: 480px) {
  .header-inner .brand img { width: 46px; height: 46px; }
  .header-inner .brand small { font-size: .7rem; }
  .header-shop, .menu-button { padding-inline: .6rem; font-size: .875rem; }
  .product-grid, .form-columns, .detail-grid { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 1.67; }
  .catalog-meta { font-size: .8125rem; }
  .filters button { padding-inline: .66rem; }
  .hero h1 { font-size: clamp(3.3rem, 13.2vw, 5rem); }
  .footer-grid { grid-template-columns: 1fr; gap: .95rem; }
  .detail-media { min-height: 0; height: 215px; }
  .detail-copy { padding: 1.15rem 1rem; }
}
@media (max-width: 359px) {
  .header-inner { gap: .4rem; }
  .header-inner .brand { gap: .38rem; }
  .header-inner .brand img { width: 40px; height: 40px; }
  .header-inner .brand strong { font-size: 1.15rem; }
  .header-inner .brand small { display: none; }
  .menu-button span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
