html { scroll-behavior: smooth; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 3; padding: 9px 14px; background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: none; }
.navlinks, .navright { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); font-size: .87rem; font-weight: 650; }
.navlinks a, .navright a { text-decoration: none; }
.navlinks a:hover, .navright .quick-contact:hover { text-decoration: underline; }
.navright { gap: 16px; }
.navright .quick-contact { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.quick-contact img { width: 27px; height: 27px; object-fit: contain; }
.cart { position: relative; display: grid; place-items: center; flex: none; min-width: 62px; min-height: 48px; padding: 3px 13px 3px 4px; border-radius: 999px; }
.cart:hover { background: var(--blue-light); }
.cart img { width: 42px; height: 42px; object-fit: contain; }
.cart span { position: absolute; top: 0; right: 0; display: grid; min-width: 23px; height: 23px; padding-inline: 4px; place-items: center; border: 2px solid var(--white); border-radius: 999px; background: var(--blue); color: var(--white); font-size: .69rem; line-height: 1; font-variant-numeric: tabular-nums; }

.hero-frame { padding-top: clamp(22px, 4vw, 55px); }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 6vw, 94px); min-height: 420px; color: var(--navy); }
.hero-copy { align-self: center; padding-block: clamp(19px, 3vw, 45px); }
.hero h1 { font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.05; max-width: 15ch; }
.hero p { max-width: 43ch; margin-top: 18px; color: var(--muted); font-size: clamp(.99rem, 1.3vw, 1.13rem); }
.hero-photo { position: relative; min-width: 0; min-height: 300px; border-radius: clamp(30px, 6vw, 78px) 16px 16px 16px; background: #b7c1ca; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 22px; margin-top: 29px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 18px; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 700; font-size: .88rem; text-decoration: none; }
.btn:hover { background: var(--blue-dark); }
.text-link { color: var(--blue-dark); font-size: .87rem; font-weight: 650; }


.shop { padding-block: 61px 72px; }
.sectionhead { border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 23px; }
.sectionhead h2, .contact-panel h2 { font-size: clamp(1.95rem, 4vw, 3.15rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.08; }
.catalog-layout { display: grid; grid-template-columns: 192px minmax(0, 1fr); grid-template-areas: "categories toolbar" "categories results"; gap: 16px 27px; }
.category-nav { grid-area: categories; align-self: start; position: sticky; top: 20px; border-top: 2px solid var(--navy); padding-top: 9px; }
.category-nav h3 { font-size: .88rem; font-weight: 700; margin: 0 0 7px 11px; }
.filters { display: grid; gap: 2px; }
.filter { min-height: 40px; padding: 7px 11px; text-align: left; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--muted); font-size: .85rem; font-weight: 550; cursor: pointer; }
.filter:hover { color: var(--blue-dark); background: var(--blue-light); }
.filter.active { background: var(--blue-light); color: var(--blue-dark); border-left: 3px solid var(--blue); padding-left: 9px; font-weight: 700; }
.controls { grid-area: toolbar; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.search-field { position: relative; flex: 1 1 440px; max-width: 580px; min-width: 0; }
.search-field::before { content: ""; position: absolute; z-index: 1; top: 14px; left: 14px; width: 11px; height: 11px; border: 1.5px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-field::after { content: ""; position: absolute; top: 26px; left: 26px; width: 6px; height: 1.5px; transform: rotate(45deg); background: var(--muted); pointer-events: none; }
.search { width: 100%; min-height: 44px; border: 1px solid var(--input-line); border-radius: 4px; padding: 8px 12px 8px 40px; background: var(--white); color: var(--ink); font-size: .9rem; }
.search::placeholder { color: var(--muted); }
#resultCount { color: var(--muted); font-size: .82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.catalog-main { grid-area: results; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px clamp(15px, 2.2vw, 32px); }
.card { display: flex; flex-direction: column; min-width: 0; padding-bottom: 11px; border-bottom: 1px solid var(--line); }

.gallery-stage { position: relative; background: var(--white); border-radius: 20px 20px 9px 9px; overflow: hidden; }
.gallery-open { display: block; width: 100%; aspect-ratio: 1.3; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-open img { width: 100%; height: 100%; object-fit: contain; padding: clamp(8px, 1.3vw, 19px); transition: transform 180ms ease; }
@media (hover: hover) { .gallery-open:hover img { transform: scale(1.025); } }
.photo-unavailable { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .82rem; }
.gallery-expand { position: absolute; bottom: 8px; right: 8px; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); font-size: .92rem; pointer-events: none; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 8px; }
.gallery-thumbs button { width: 36px; height: 34px; padding: 3px; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: var(--white); cursor: pointer; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery-open:focus-visible { outline-offset: -3px; }
.body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 13px 1px 0; }
.card-category { margin-bottom: 5px; font-size: .71rem; font-weight: 650; color: var(--blue-dark); }
.body h3 { color: var(--navy); font-size: clamp(.94rem, 1.43vw, 1.14rem); line-height: 1.23; letter-spacing: -.029em; font-weight: 680; overflow-wrap: anywhere; }
.body p { color: var(--muted); font-size: .83rem; }
.body .brand-model { margin: 5px 0 9px; font-size: .75rem; font-weight: 650; }
.product-specs { margin: 9px 0 12px; font-size: .78rem; }
.product-specs summary { cursor: pointer; color: var(--blue-dark); font-weight: 650; }
.product-specs p { margin-top: 5px; }
.stock { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-bottom: 8px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.stock.in { color: #246445; }
.stock.out { color: #9b382b; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card-actions { display: flex; align-items: center; min-height: 42px; }


.add { display: inline-flex; align-items: center; min-height: 42px; padding: 5px 0; border: 0; background: transparent; color: var(--blue-dark); cursor: pointer; font-weight: 700; font-size: .83rem; text-align: left; }
.add::after { content: "→"; margin-left: 8px; }
.add:hover:not(:disabled) { text-decoration: underline; }
.add:disabled { opacity: .48; cursor: default; }
.empty, .cart-notice { padding: 11px 15px; background: var(--blue-light); color: var(--navy); font-size: .85rem; }
.empty { grid-column: 1 / -1; padding-block: 40px; text-align: center; }
.cart-notice { margin-bottom: 13px; border-left: 3px solid var(--blue); }
.cart-notice:empty { display: none; }
.cart-notice a { font-weight: 700; }

.contact-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 68px); border-top: 2px solid var(--navy); padding-top: 30px; margin-bottom: 52px; color: var(--navy); }
.contact-copy > p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.sales-channels { display: grid; gap: 6px; max-width: 500px; padding: 0; margin: 21px 0 0; list-style: none; }
.sales-channel { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 68px; padding: 7px 13px 7px 6px; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; color: var(--navy); text-decoration: none; }
.sales-channel:hover { background: var(--blue-light); }
.sales-channel img { width: 52px; height: 52px; object-fit: contain; }
.sales-channel-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: .76rem; font-weight: 650; }
.sales-channel strong { display: block; font-size: clamp(1.07rem, 2vw, 1.28rem); line-height: 1.2; font-variant-numeric: tabular-nums; font-weight: 680; }
.sales-channel-arrow { align-self: center; color: var(--blue-dark); font-size: 1.18rem; }
.contact-location { min-width: 0; }
.pickup-heading { display: flex; align-items: center; gap: 12px; min-height: 68px; margin-bottom: 13px; }
.pickup-heading img { flex: none; width: 58px; height: 58px; object-fit: contain; }
.pickup-heading h3 { font-size: 1.22rem; font-weight: 680; letter-spacing: -.025em; }
.pickup-heading address { margin-top: 3px; color: var(--muted); font-style: normal; font-size: .9rem; line-height: 1.5; }
.pickup-map { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.pickup-map figcaption { padding: 8px 13px; border-bottom: 1px solid var(--line); color: var(--navy); font-size: .8rem; font-weight: 650; }
.pickup-map iframe { display: block; width: 100%; height: clamp(190px, 23vw, 294px); border: 0; background: #edf3ee; }
.map-links { display: flex; flex-wrap: wrap; gap: 6px 19px; margin-top: 12px; }
.map-links a { min-height: 34px; display: inline-flex; align-items: center; color: var(--blue-dark); font-size: .83rem; font-weight: 650; }
.site-footer { border-top: 1px solid var(--line); padding: 18px 0 22px; color: var(--muted); font-size: .82rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

.photo-dialog { width: min(760px, calc(100% - 26px)); max-height: calc(100% - 32px); padding: clamp(13px, 2vw, 22px); border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); }
.photo-dialog::backdrop { background: #14253bc9; }
.photo-dialog header, .photo-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.photo-dialog h2 { font-size: clamp(1.12rem, 3vw, 1.45rem); font-weight: 680; letter-spacing: -.025em; }
.photo-dialog button { min-height: 36px; padding: 5px 10px; border: 1px solid var(--input-line); border-radius: 4px; background: var(--white); color: var(--navy); cursor: pointer; font-size: .84rem; }
.photo-dialog button:hover { background: var(--blue-light); }
.dialog-image { display: grid; place-items: center; margin: 12px 0; height: min(55vh, 475px); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.dialog-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 9px; }
.dialog-caption, .dialog-links { color: var(--muted); font-size: .8rem; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 10px; }

@media (min-width: 1220px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1050px) { .navright .quick-contact { display: none; } }
@media (max-width: 860px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toolbar" "categories" "results"; gap: 13px; }
  .category-nav { position: static; border-top: 0; padding: 0; }
  .category-nav h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .filters { display: flex; flex-wrap: wrap; gap: 5px; }
  .filter, .filter.active { min-height: 36px; padding: 5px 9px; border: 1px solid var(--line); background: var(--white); line-height: 1.2; }
  .filter.active { border-color: #bacbe9; background: var(--blue-light); }
  .hero { min-height: 360px; }
  .hero h1 { font-size: clamp(2.25rem, 6vw, 3.45rem); }
}
@media (max-width: 690px) { .navlinks { display: none; } }
@media (max-width: 600px) {
  .hero-frame { padding-top: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 10px 0 0; }
  .hero { gap: 20px; }
  .hero p { margin-top: 12px; }
  .actions { margin-top: 20px; }
  .hero-photo { min-height: clamp(175px, 48vw, 255px); border-radius: 38px 12px 12px 12px; }
  .shop { padding-block: 32px 42px; }
  .sectionhead { margin-bottom: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 12px; }
  .body { padding: 10px 0 0; }
  .gallery-stage { border-radius: 15px 15px 7px 7px; }
  .gallery-thumbs button { width: 29px; height: 29px; }
  .controls { gap: 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-block: 2px 8px; scrollbar-width: thin; scrollbar-color: #aebac8 transparent; }
  .filter { flex: none; }
  .filter:focus-visible { outline-offset: -2px; }
  .contact-panel { grid-template-columns: 1fr; gap: 22px; margin-bottom: 25px; }
  .contact-location { border-top: 1px solid var(--line); padding-top: 15px; }
}
@media (max-width: 350px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery-open img { transition: none; } .gallery-open:hover img { transform: none; } }
