:root {
  color-scheme: dark;
  --bg: #0b1119;
  --header: #0b1119ed;
  --surface: #121b26;
  --ink: #eff5fc;
  --muted: #a7bacd;
  --line: #2b3a4b;
  --navy: #11253f;
  --cold: #c9efff;
  --blue: #a0d4ff;
  --focus: #8dccf7;
  --soft: #182b3d;
  --soft-border: #2f4b65;
  --soft-hover: #233d56;
  --primary: #c9efff;
  --primary-ink: #11253f;
  --primary-hover: #e6f8ff;
  --cart-chip: #193752;
  --cart-chip-ink: #e5f7ff;
  --panel: #132234;
  --panel-border: #2c435d;
  --contact: #142337;
  --receipt-border: #609cc6;
  --green: #87e0bc;
  --radius: 22px;
  --shell: 1240px;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 114px }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif }
body:has(dialog[open]) { overflow: hidden }
[hidden] { display: none !important }
img { display: block; max-width: 100% }
button, input, textarea { font: inherit }
button { cursor: pointer }
a { color: inherit; text-decoration: none }
p, h1, h2, h3, ul, dl, dd { margin: 0 }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em }
h2 { font-size: clamp(2rem, 3.8vw, 3.3rem) }
h3 { font-size: 1.26rem }
p { color: var(--muted) }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px }
.shell { width: min(var(--shell), calc(100% - 64px)); margin-inline: auto }
.skip-link { position: fixed; top: .7rem; left: .7rem; z-index: 20; padding: 10px 15px; background: var(--surface); border-radius: 6px; transform: translateY(-160%) }
.skip-link:focus { transform: none }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px) }
.header-layout { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px }
.brand { display: inline-flex; gap: 9px; align-items: center; font-size: 1.48rem; font-weight: 850; letter-spacing: -.065em; white-space: nowrap }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; font-size: 1.19rem; letter-spacing: 0; border-radius: 10px; color: var(--cold); background: var(--navy) }
.nav, .header-actions, .actions { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px) }
.header-actions { gap: clamp(8px, 1.25vw, 16px) }
.nav a, .header-phone { font-size: .92rem; font-weight: 650; white-space: nowrap }
.nav a:hover, .header-phone:hover, .text-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .22em }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; border: 1px solid transparent; border-radius: 11px; padding: 9px 16px; font-size: .91rem; font-weight: 730; line-height: 1.22; text-align: center; transition: background-color .18s, border-color .18s, color .18s }
.button-dark { background: var(--primary); color: var(--primary-ink) }
.button-dark:hover { background: var(--primary-hover) }
.button-ice { background: var(--cold); color: #11253f }
.button-ice:hover { background: #e6f8ff }
.button-outline { border-color: #667586; color: white }
.button-outline:hover { background: #27394b }
.button-subtle { background: var(--soft); border-color: var(--soft-border); color: var(--blue) }
.button-subtle:hover { background: var(--soft-hover) }
.cart-count { display: grid; place-items: center; min-width: 24px; padding-inline: 5px; height: 24px; border-radius: 6px; color: var(--cart-chip-ink); background: var(--cart-chip); font-size: .81rem; font-variant-numeric: tabular-nums }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(435px, 43vw, 562px); margin-top: 24px; display: grid; align-items: center; border: 1px solid #6889a73b; border-radius: 30px; background: #060c14; color: white }
.hero-copy { position: relative; z-index: 2; width: min(60%, 705px); padding: clamp(32px, 5.2vw, 76px) 0 clamp(32px, 5.2vw, 76px) clamp(28px, 5vw, 72px) }
.eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); margin-bottom: 11px }
.hero-label { display: flex; align-items: center; gap: 9px; color: #d0eafb; margin-bottom: 21px }
.hero-label span { width: 6px; height: 6px; border-radius: 50%; background: #b6e8fa }
.hero h1 { font-size: clamp(2.35rem, 5.25vw, 4.5rem); font-weight: 800; line-height: .99; letter-spacing: -.065em }
.hero h1 em { display: block; color: var(--cold); font-style: normal }
.hero-description { margin-block: 23px 26px; max-width: 34ch; color: #dae6f2; font-size: clamp(1.02rem, 1.55vw, 1.18rem) }
.hero .actions { gap: 10px; flex-wrap: wrap }
.hero-visual { position: absolute; inset: 0 0 0 28%; z-index: -1; overflow: hidden; background: #060c14; pointer-events: none; container-type: size }
.hero-cube {
  position: absolute; inset: -10% 5.5% -14% auto; width: min(93%, 93cqh);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 17%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 17%, #000 86%, transparent);
}
.hero-cube img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform-origin: 50% 58%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-cube img { animation: cube-sway 7s ease-in-out infinite }
}
@keyframes cube-sway {
  0%, 100% { transform: scale(1.035) translateY(3px) rotate(-.55deg) }
  50% { transform: scale(1.035) translateY(-6px) rotate(.55deg) }
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #060c14 0%, #060c14a1 16%, #060c1438 33%, transparent 55%);
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface) }
.facts > div { min-width: 0; padding: 18px clamp(14px, 2.4vw, 29px); display: grid; gap: 3px }
.facts > div + div { border-left: 1px solid var(--line) }
.facts strong { font-size: .98rem; letter-spacing: -.02em }
.facts span { font-size: .91rem; color: var(--muted) }

.section { margin-top: clamp(51px, 7vw, 96px) }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 360px); align-items: end; gap: 18px 30px; margin-bottom: 24px }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px }
.filters button { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-height: 40px; padding: 7px 13px; font-size: .875rem; font-weight: 700 }
.filters button:hover { border-color: var(--receipt-border) }
.filters button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary) }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px }
.catalog-grid:not([hidden]) + .catalog-grid:not([hidden]) { margin-top: 16px }
.product { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface) }
.product-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 1.35; overflow: hidden; background: #060606 }
.product-photo:focus-visible { outline-offset: -4px }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s }
.product-photo:hover img { transform: scale(1.045) }
.product-photo span { position: absolute; bottom: 8px; right: 8px; color: white; background: #07101ac9; padding: 3px 8px; font-size: .78rem; border-radius: 6px }
.product-content { flex: 1; display: flex; flex-direction: column; padding: 16px; gap: 7px }
.product-kind { font-size: .8rem; font-weight: 650; color: var(--blue) }
.product-description { font-size: .91rem; line-height: 1.4; margin-block: 2px 6px }
.product-bottom { margin-top: auto; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 7px }
.product-price { white-space: nowrap }
.product-price strong { font-size: 1.13rem; letter-spacing: -.025em }
.product-price span { color: var(--muted); font-size: .8rem }
.add-product { min-height: 40px; padding-inline: 10px; font-size: .84rem }

.custom-panel { display: grid; overflow: hidden; grid-template-columns: .92fr 1.08fr; align-items: stretch; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius) }
.custom-copy { align-self: center; padding: clamp(25px, 4vw, 61px) }
.custom-copy p:not(.eyebrow) { margin-top: 13px; max-width: 438px }
.custom-copy .button { margin-top: 22px }
.custom-visual { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 330px; gap: 3px; background: #071321 }
.custom-visual button { min-width: 0; padding: 0; border: 0; overflow: hidden; background: #070707; position: relative }
.custom-visual button:focus-visible { outline-offset: -4px }
.custom-visual button:first-child { grid-row: span 2 }
.custom-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .24s }
.custom-visual button:hover img { transform: scale(1.04) }
.custom-visual .more-photos { position: absolute; color: white; background: #071321e8; bottom: 8px; right: 8px; padding: 5px 9px; font-size: .82rem; border-radius: 6px }

.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.delivery-card { display: grid; align-content: start; gap: 13px; padding: clamp(21px, 3vw, 33px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface) }
.delivery-card h3 { font-size: 1.4rem }
.delivery-card dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line) }
.delivery-card dd, .free { color: var(--green); font-weight: 750 }
.delivery-card dd:not(.free) { color: var(--ink) }
.text-link { color: var(--blue); font-weight: 680; width: fit-content }
.contact-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; background: var(--contact); color: white; border: 1px solid var(--panel-border); border-radius: var(--radius); padding: clamp(23px, 4vw, 48px) }
.contact-panel h2 { font-size: clamp(1.85rem, 3.5vw, 2.8rem) }
.contact-panel p { margin-top: 8px; color: #d6e5f5 }
.contact-details { display: grid; gap: 5px }
.contact-details a:hover { text-decoration: underline }
.contact-phone { color: var(--cold); font-weight: 800; font-size: clamp(1.35rem, 2.7vw, 1.9rem); letter-spacing: -.035em }
.footer { display: flex; gap: 12px 25px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-block: 35px }
.footer p, .footer > a:last-child { font-size: .9rem; color: var(--muted) }

dialog { border: 0; padding: 0; background: var(--surface); color: var(--ink) }
dialog::backdrop { background: #0614239e; backdrop-filter: blur(4px) }
.cart-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 495px); height: 100%; height: 100dvh; max-width: 100%; max-height: 100%; box-shadow: -16px 0 52px #07132141 }
.cart-dialog[open] { display: flex; flex-direction: column; animation: slide-in .22s ease-out }
@keyframes slide-in { from { transform: translateX(24px); opacity: .7 } to { transform: none; opacity: 1 } }
.cart-heading, .cart-footer { padding: 17px clamp(15px, 5vw, 25px); flex-shrink: 0 }
.cart-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line) }
.cart-heading h2 { font-size: 1.7rem }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.2rem; line-height: 1 }
.icon-button:hover:not(:disabled) { background: var(--soft) }
.icon-button:disabled { opacity: .48; cursor: default }
.cart-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 0 clamp(15px, 5vw, 25px) 20px; min-height: 0 }
#cart-empty { padding-top: 22px }
#cart-empty .button { margin-top: 10px }
.cart-items { padding: 0; list-style: none }
.cart-row { display: grid; gap: 7px; padding: 14px 0; border-bottom: 1px solid var(--line) }
.line-info { display: flex; gap: 4px 11px; justify-content: space-between; align-items: baseline; flex-wrap: wrap }
.line-info span { font-size: .86rem; color: var(--muted) }
.line-controls { display: flex; align-items: center; gap: 7px 11px; flex-wrap: wrap }
.quantity { display: flex; align-items: center }
.quantity .icon-button { width: 36px; height: 36px }
.quantity input { width: 57px; text-align: center; background: transparent; color: var(--ink); border: 0; padding: 7px 2px; appearance: textfield; font-variant-numeric: tabular-nums }
.quantity input::-webkit-inner-spin-button { appearance: none }
.line-price { margin-left: auto; font-size: .98rem; font-variant-numeric: tabular-nums; white-space: nowrap }
.remove { padding: 6px 0; border: 0; background: none; color: var(--blue); font-size: .84rem; text-decoration: underline; text-underline-offset: .2em }
.receipt { margin: 17px 0 0; padding: 0; min-width: 0; border: 0 }
.receipt legend { margin-bottom: 8px; font-size: 1rem; font-weight: 750 }
.receipt label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 10px 9px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: .87rem }
.receipt label + label { margin-top: 6px }
.receipt label:has(input:checked) { border-color: var(--receipt-border); background: var(--soft) }
.receipt input { accent-color: var(--blue); width: 17px; height: 17px; margin: 0 }
.receipt strong { white-space: nowrap }
.cart-note { margin-top: 8px; font-size: .87rem }
.cart-footer { border-top: 1px solid var(--line); max-height: 58dvh; overflow: auto }
.summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--muted) }
.summary dd { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap }
.summary .total { color: var(--ink); font-weight: 800; font-size: 1.26rem; margin-block: 5px 9px; padding-top: 5px; border-top: 1px solid var(--line) }
.cart-actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px }
.cart-actions .button { padding-inline: 8px }
.cart-actions .button-dark { flex-direction: column; gap: 2px }
.order-phone { font-size: .79rem; white-space: nowrap }
.cart-feedback { font-size: .86rem; margin-top: 5px }
.cart-feedback:empty { display: none }
#copy-fallback { padding-top: 9px; color: var(--muted); font-size: .89rem }
#order-text { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 8px; color: var(--ink); background: var(--bg) }
.toast { position: fixed; bottom: 18px; right: 18px; z-index: 6; max-width: calc(100% - 36px); border-radius: 10px; padding: 10px 15px; background: var(--navy); color: white; box-shadow: 0 8px 25px #0e223c38; font-size: .9rem }
.phone-dialog { width: min(420px, calc(100% - 32px)); padding: clamp(18px, 5vw, 26px); border: 1px solid var(--line); border-radius: 18px }
.phone-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px }
.phone-heading h2 { font-size: clamp(1.35rem, 5vw, 1.65rem) }
#phone-number { width: 100%; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--bg); font-size: 1.2rem }
#copy-phone { width: 100% }
#phone-feedback:not(:empty) { margin-top: 8px; font-size: .9rem }
.photo-dialog { border-radius: 16px; width: min(92vw, 710px); max-height: 94dvh; background: #081322; color: white; overflow: auto; text-align: center }
.photo-dialog form { position: absolute; top: 9px; right: 9px; z-index: 2 }
.photo-dialog .icon-button { color: white; background: #0e1e33; border-color: #73859a }
.photo-dialog .icon-button:hover { background: #28415f }
.photo-dialog img { width: 100%; height: min(72dvh, 680px); object-fit: contain; background: #030303 }
#photo-caption { padding: 9px 10px; color: white }
#photo-controls { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0 10px 10px }

@media (max-width: 1050px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 990px) {
  .header-phone { display: none }
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr minmax(0, 280px) }
}
@media (max-width: 780px) {
  .header-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding-block: 7px }
  .header-actions { grid-column: 2; grid-row: 1 }
  .nav { grid-column: 1 / -1; justify-content: space-between; gap: 4px; min-height: 37px }
  .nav a { font-size: .84rem; padding: 6px 2px }
  .cart-toggle { min-height: 40px }
}
@media (max-width: 660px) {
  html { scroll-padding-top: 116px }
  .shell { width: calc(100% - 28px) }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; margin-top: 14px; border-radius: 20px }
  .hero-copy { width: 100%; padding: 26px 20px 8px }
  .hero h1 { font-size: clamp(2rem, 9.5vw, 3.6rem); overflow-wrap: anywhere }
  .hero-label { margin-bottom: 15px }
  .hero-description { margin-block: 14px 17px }
  .hero-visual { position: relative; inset: auto; height: clamp(290px, 77vw, 430px); margin-top: 3px }
  .hero-cube { inset: -14% 50% 4% auto; width: min(100%, 83cqh); transform: translateX(50%) }
  .hero-visual::after { background: linear-gradient(180deg, #060c14 0%, #060c1440 12%, transparent 27%) }
  .facts { grid-template-columns: 1fr; margin-top: 11px }
  .facts > div { padding: 10px 14px }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line) }
  .section-head, .custom-panel { grid-template-columns: 1fr }
  .section-head { gap: 8px; margin-bottom: 17px }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px }
  .product-content { padding: 11px; gap: 6px }
  .product h3 { font-size: 1.06rem }
  .product-description { font-size: .86rem }
  .product-bottom .button { width: 100% }
  .delivery-grid { grid-template-columns: 1fr; gap: 10px }
  .custom-visual { min-height: 260px }
}
@media (max-width: 345px) {
  .nav { gap: 0 }
  .nav a { font-size: .78rem; padding-inline: 0 }
  .catalog-grid { grid-template-columns: 1fr }
  .product-photo { aspect-ratio: 1.6 }
  .cart-actions { grid-template-columns: 1fr }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important }
}
