@font-face { font-family: Manrope; src: url('/assets/manrope-cyr.woff2') format('woff2'); font-weight: 400 800; font-display: swap; unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; src: url('/assets/manrope-lat.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: Unbounded; src: url('/assets/unbounded-cyr.woff2') format('woff2'); font-weight: 500 800; font-display: swap; unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Unbounded; src: url('/assets/unbounded-lat.woff2') format('woff2'); font-weight: 500 800; font-display: swap; }

:root { color-scheme: light; --paper: #f4f3ed; --white: #fdfcf8; --blue: #223bcb; --ink: #1d2341; --dim: #555a70; --line: #c9cbe0; --orange: #f96c48; --headline: Unbounded, Manrope, system-ui, sans-serif; font: 500 1rem/1.5 Manrope, system-ui, sans-serif; color: var(--ink); background: var(--paper); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid #596af7; outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 4; left: 1rem; top: 1rem; background: var(--white); padding: 1rem; }
.shell { width: min(100% - 5rem, 80rem); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top-inner { height: 4.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; gap: .75rem; align-items: center; text-decoration: none; font: 800 1rem/1.15 var(--headline); color: var(--blue); white-space: nowrap; }
.brand-sub { display: block; margin-top: .22rem; font: 700 .7rem/1.2 Manrope, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.brand-mark { width: 2rem; height: 2.15rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .17rem; transform: skewY(-9deg); }
.brand-mark i { width: 1.55rem; height: .39rem; background: var(--blue); border-radius: 0 .22rem .22rem 0; display: block; }
.brand-mark i:nth-child(2) { width: 1.12rem; margin-right: .43rem; background: var(--orange); }
.main-nav, .top-actions { display: flex; align-items: center; gap: clamp(.85rem, 2.3vw, 2.4rem); }
.main-nav a, .foot a { text-decoration: none; font-weight: 800; }
.main-nav a:hover, .foot a:hover { text-decoration: underline; text-underline-offset: .3em; }
.top-actions { gap: .55rem; }
.icon-btn, .bag { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; gap: .48rem; background: transparent; color: var(--blue); border: 1px solid var(--line); border-radius: 2rem; padding: .5rem .85rem; font-weight: 800; }
.icon-btn { width: 2.75rem; padding: 0; }
.icon-btn[aria-pressed='true'] svg { fill: currentColor; }
.icon-btn:hover, .bag:hover { border-color: var(--blue); }
#cart-count { background: var(--blue); color: white; font-size: .75rem; border-radius: 1rem; min-width: 1.42rem; padding: .08rem .36rem; }
.hero { display: grid; grid-template-columns: 43fr 57fr; min-height: 33.25rem; margin-block: 1.75rem 3.6rem; border: 1px solid var(--blue); }
.hero-copy { position: relative; overflow: hidden; padding: clamp(2.2rem, 4vw, 4rem) clamp(1.7rem, 4vw, 4.05rem); }
.hero-kicker { color: var(--blue); display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; }
.hero-kicker span { background: var(--orange); width: .68rem; height: .68rem; transform: rotate(45deg); }
.hero h1 { font: 700 clamp(2.8rem, 5.85vw, 5.55rem)/1.025 var(--headline); color: var(--blue); letter-spacing: -.08em; margin: 1.4rem 0 1.15rem -.105em; }
.hero h1 span, .section-heading h2 span { color: #d84a2a; }
.hero-text { max-width: 22rem; line-height: 1.55; }
.button { display: inline-flex; min-height: 3.05rem; align-items: center; justify-content: center; gap: .7rem; border: 1px solid var(--blue); padding: .65rem 1.05rem; color: var(--blue); background: transparent; font-weight: 800; text-decoration: none; }
.button:hover { background: #e7e8f9; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: #15299f; }
.button:disabled { opacity: .6; cursor: wait; }
.hero-button { margin-top: 1.5rem; gap: 1.6rem; }
.hero-button span { font-size: 1.25rem; }
.hero-edging { position: absolute; right: 0; bottom: 0; width: clamp(4rem, 9.5vw, 9rem); height: 2.5rem; background: repeating-linear-gradient(90deg, transparent 0 .7rem, var(--line) .7rem calc(.7rem + 1px)); pointer-events: none; mask-image: linear-gradient(90deg, transparent, black); }
.hero-photo { position: relative; min-width: 0; border-left: 1px solid var(--blue); background: #1737b7; }
.hero-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 54% 56%; }
.catalog { background: var(--white); padding-block: 2.75rem 4.2rem; border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.4rem; margin-bottom: 1.5rem; }
.section-heading h2, .delivery h2 { font: 700 clamp(1.8rem, 4.5vw, 3.75rem)/1.15 var(--headline); color: var(--blue); letter-spacing: -.065em; }
.search { display: flex; align-items: center; gap: .55rem; color: var(--blue); border-bottom: 1px solid var(--blue); width: min(100%, 16rem); }
.search input { min-width: 0; width: 100%; padding: .65rem .15rem; border: 0; background: transparent; color: var(--ink); }
.catalog-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.filters { display: flex; gap: .42rem; flex-wrap: wrap; }
.filter { border: 1px solid var(--line); background: transparent; padding: .55rem .85rem; color: var(--blue); font-size: .88rem; font-weight: 800; border-radius: 2rem; }
.filter:hover { border-color: var(--blue); }
.filter[aria-pressed='true'] { background: var(--blue); color: white; border-color: var(--blue); }
.sort { display: inline-flex; position: relative; flex-shrink: 0; color: var(--blue); }
.sort::after { content: ''; position: absolute; right: .16rem; top: calc(50% - .28rem); width: .4rem; height: .4rem; border: solid var(--blue); border-width: 0 1px 1px 0; transform: rotate(45deg); pointer-events: none; }
.sort select { appearance: none; border: 0; background: transparent; color: inherit; font-size: .86rem; font-weight: 800; padding: .52rem 1.15rem .52rem 0; }
.catalog-status { margin-block: .8rem 1.05rem; color: var(--dim); font-size: .85rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.55rem 1rem; }
.product { position: relative; border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.product-image { display: block; width: 100%; border: 0; padding: 0; overflow: hidden; background: #e9e9fa; }
.product-image img { aspect-ratio: 1.12; width: 100%; height: auto; object-fit: contain; background: white; padding: 1rem; transition: transform .24s; }
.product-image .image-unavailable, .detail-grid .image-unavailable { object-fit: scale-down; background: var(--paper); }
.more-products { display: flex; justify-content: center; }
.more-products button { margin-top: 1.5rem; }
.product-image:hover img { transform: scale(1.055); }
.product .heart { position: absolute; top: .55rem; right: .55rem; background: var(--white); border-color: transparent; }
.product .heart:hover { border-color: var(--blue); }
.product-info { padding: .85rem; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: .75rem; color: var(--dim); font-weight: 800; }
.product-name { display: block; padding: .18rem 0; text-align: left; background: none; border: 0; line-height: 1.3; font-weight: 800; }
.product-name:hover { text-decoration: underline; text-underline-offset: .16em; }
.product-bottom { display: flex; align-items: end; justify-content: space-between; gap: .35rem; padding-top: .5rem; margin-top: auto; color: var(--blue); }
.price { font-weight: 800; white-space: nowrap; }
.plus { display: grid; place-items: center; color: var(--blue); background: transparent; border: 1px solid var(--blue); padding: 0; width: 2.5rem; height: 2.5rem; font-size: 1.45rem; line-height: 1; }
.plus:hover { background: var(--blue); color: white; }
.delivery { padding-block: 4rem; display: grid; grid-template-columns: 28% 1fr; gap: clamp(1.5rem, 5vw, 6rem); align-items: stretch; }
.delivery-sign { background: var(--blue); border: 1px solid var(--blue); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .65rem; min-height: 14rem; }
.delivery-sign span { display: block; width: 53%; height: .8rem; transform: skewY(-13deg); background: var(--white); border-radius: 0 1rem 1rem 0; }
.delivery-sign span:nth-child(2) { width: 39%; margin-right: 14%; background: var(--orange); }
.delivery h2 { font-size: clamp(1.65rem, 3.5vw, 2.8rem); margin-bottom: 1.2rem; }
details { border-bottom: 1px solid var(--line); padding-block: .8rem; }
summary { font-weight: 800; }
details p { padding: .55rem 0 0 1.15rem; max-width: 42rem; }
.foot { border-top: 1px solid var(--line); }
.foot-inner { padding-block: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.foot p { font-size: .86rem; color: var(--dim); }
.foot a:last-child { white-space: nowrap; }

dialog { padding: 0; border: 1px solid var(--blue); color: var(--ink); background: var(--white); }
dialog::backdrop { background: #141735a6; }
.product-dialog { width: min(calc(100% - 1.5rem), 48rem); }
.product-dialog > .close { position: absolute; top: .6rem; right: .6rem; z-index: 1; }
.close { display: grid; place-items: center; color: var(--blue); background: var(--white); border: 1px solid var(--line); border-radius: 50%; width: 2.75rem; height: 2.75rem; font-size: 1.65rem; line-height: 1; }
.close:hover { border-color: var(--blue); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.detail-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: .8rem; background: white; }
.detail-copy { padding: 1.6rem; display: grid; gap: .8rem; justify-items: start; }
.detail-copy h2, .drawer-head h2, .utility-card h1 { font: 700 clamp(1.15rem, 2.7vw, 2rem)/1.18 var(--headline); color: var(--blue); letter-spacing: -.05em; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cart-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 30rem); height: 100%; max-height: 100%; max-width: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 1rem 1.2rem; }
.drawer-content, .checkout { padding: 1rem 1.2rem; }
.cart-row { display: grid; grid-template-columns: 4rem 1fr auto; gap: .65rem; align-items: center; padding-block: .7rem; border-bottom: 1px solid var(--line); }
.cart-row img { aspect-ratio: 1; object-fit: cover; }
.cart-row h3 { font-size: .95rem; }
.quantity { display: flex; align-items: center; gap: .38rem; margin-top: .25rem; }
.quantity button { border: 1px solid var(--line); color: var(--blue); background: transparent; padding: 0; width: 2rem; min-height: 2rem; }
.quantity button:disabled { opacity: .45; cursor: default; }
.quantity .remove { border: 0; margin-left: .25rem; }
.cart-total { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem 0; font-weight: 800; }
.checkout fieldset { display: grid; gap: .72rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.checkout legend { padding: 0; font-weight: 800; color: var(--blue); margin-bottom: .6rem; }
.checkout label, .utility-card label { display: grid; gap: .22rem; font-size: .9rem; font-weight: 800; }
.checkout input, .utility-card input, .utility-card select, .utility-card textarea { width: 100%; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; padding: .62rem .7rem; border-radius: 0; }
.muted { color: var(--dim); font-size: .88rem; }
.notice { color: #9c2c19; margin-top: .45rem; }
.toast { position: fixed; z-index: 2; bottom: 1rem; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2rem); background: var(--blue); color: white; padding: .6rem .9rem; box-shadow: 0 4px 20px #202d5c44; }
.utility { max-width: 52rem; padding-block: 2.6rem; }
.utility-card { background: var(--white); padding: clamp(1.15rem, 4vw, 2.5rem); border: 1px solid var(--blue); }
.utility-card > * + * { margin-top: 1rem; }
.utility-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.utility-list { margin: 0; padding: 0; list-style: none; }
.utility-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.utility-card form { display: grid; gap: .75rem; justify-items: start; }
.receipt-card { padding: .85rem; background: #eef0ff; overflow-wrap: anywhere; }
.receipt-card strong { display: block; margin: .4rem 0; }
.admin-order { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .55rem; }
.admin-order h2 { font-size: 1rem; }
.admin-order select { width: auto; max-width: 100%; }
.admin-utility { max-width: 65rem; }
.statement-filters { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: .65rem; }
#statement-panel > * + * { margin-top: .8rem; }
.statement-row { padding: .85rem 0; border-top: 1px solid var(--line); }
.statement-row > * + * { margin-top: .28rem; }
.statement-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem; }
.statement-amount.credit { color: #1b6850; }
.statement-amount.debit { color: #9c2c19; }
.statement-candidates { border: 0; padding-block: .35rem; }
.statement-candidates ul { margin: .4rem 0; padding-left: 1.2rem; }
.statement-candidates a, .statement-row a { color: var(--blue); }
.statement-action { min-height: 2.45rem; padding: .35rem .7rem; font-size: .9rem; }
.statement-dialog { width: min(36rem, calc(100% - 1rem)); }
.statement-dialog .utility-card { border: 0; align-items: stretch; justify-items: stretch; }
.statement-dialog fieldset { border: 1px solid var(--line); min-width: 0; margin-inline: 0; }
.statement-products { max-height: 10.5rem; overflow: auto; }
.utility-card .statement-choice { display: flex; align-items: baseline; gap: .45rem; font-weight: 500; padding: .25rem 0; }
.utility-card .statement-choice input { width: auto; flex: none; }

@media (max-width: 64rem) {
  .shell { width: calc(100% - 3rem); }
  .hero { min-height: 29rem; }
  .hero-copy { padding: 2.4rem 1.8rem; }
  .hero h1 { font-size: clamp(2.9rem, 6.05vw, 4.2rem); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .shell { width: calc(100% - 2rem); }
  .top-inner { height: 4rem; }
  .main-nav, .bag-label { display: none; }
  .brand { font-size: .87rem; gap: .45rem; }
  .brand-sub { font-size: .65rem; }
  .hero { margin-block: 1rem 1.85rem; grid-template-columns: 1fr; }
  .hero-copy { padding: 1.45rem 1.3rem 1.6rem; }
  .hero h1 { font-size: clamp(2.65rem, 10.3vw, 4.2rem); margin-block: .85rem .65rem; }
  .hero-text { font-size: .94rem; }
  .hero-button { margin-top: .85rem; min-height: 2.8rem; }
  .hero-photo { min-height: 0; aspect-ratio: 1.32; border-left: 0; border-top: 1px solid var(--blue); }
  .catalog { padding-block: 1.65rem 2.4rem; }
  .section-heading { flex-wrap: wrap; align-items: start; gap: .6rem; margin-bottom: .85rem; }
  .search { width: 100%; }
  .catalog-controls { align-items: start; flex-direction: column; gap: .25rem; }
  .filter { padding: .48rem .7rem; }
  .catalog-status { margin-block: .3rem .7rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem .55rem; }
  .product-info { padding: .58rem; }
  .product-name { font-size: .92rem; }
  .product .heart { top: .35rem; right: .35rem; width: 2.45rem; min-height: 2.45rem; }
  .delivery { padding-block: 2rem; grid-template-columns: 1fr; gap: 1rem; }
  .delivery-sign { min-height: 4rem; display: none; }
  .foot-inner { flex-wrap: wrap; gap: .55rem; }
  .foot p { order: 2; width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid img { max-height: 42vh; }
  .detail-copy { padding: 1.1rem; }
  .statement-filters { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
