:root {
  color-scheme: light;
  --canvas: #f5f4fa;
  --paper: #fff;
  --ink: #201a35;
  --muted: #655d76;
  --line: #e5e0ef;
  --violet: #5634de;
  --violet-dark: #3e20ad;
  --violet-soft: #ede8ff;
  --lime: #edff9c;
  --night: #170c30;
  font-family: 'Golos Text', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
body.drawer-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.hero a:focus-visible { outline-color: var(--lime); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

.container { width: min(1340px, calc(100% - 5vw)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 20; top: .5rem; left: .5rem; transform: translateY(-160%); padding: .7rem 1rem; border-radius: 8px; background: var(--paper); }
.skip-link:focus { transform: none; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: 9px; padding: .65rem 1rem; font-size: .9375rem; font-weight: 700; }
.button-lime { background: var(--lime); color: #282d14; }
.button-lime:hover { background: #f4ffc2; }
.button-dark { background: var(--violet); color: white; }
.button-dark:hover { background: var(--violet-dark); }
.button-outline { background: var(--paper); border-color: var(--line); color: var(--violet-dark); }
.button-outline:hover { background: var(--violet-soft); }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: grid; grid-template-columns: 228px minmax(150px, 1fr) auto; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 1.375rem; line-height: 1; letter-spacing: -.045em; }
.brand b { font-weight: 850; }
.search-box { display: flex; align-items: center; min-width: 0; max-width: 615px; height: 46px; padding-inline: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.search-box:focus-within { border-color: var(--violet); }
.search-box button { display: grid; place-items: center; align-self: stretch; min-width: 38px; border: 0; background: transparent; color: var(--violet); }
.search-box input { min-width: 0; flex: 1; height: 100%; padding: 0 10px 0 0; border: 0; outline: none; background: transparent; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.search-box kbd { flex: none; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font-size: .75rem; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 11px; }
.help-link { margin-right: .5rem; white-space: nowrap; color: var(--muted); font-size: .875rem; font-weight: 550; }
.help-link:hover, .site-footer a:hover { color: var(--violet); }
.icon-button, .cart-button { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.icon-button:hover { background: var(--violet-soft); }
.favorites-shortcut { padding-inline: 10px; }
.favorites-shortcut span { color: var(--muted); font-size: .8125rem; }
.cart-button { padding-inline: 12px; background: var(--night); border-color: var(--night); color: white; font-size: .875rem; font-weight: 650; }
.cart-button:hover { background: var(--violet-dark); border-color: var(--violet-dark); }
.cart-button b { min-width: 22px; border-radius: 5px; padding: 1px 5px; background: var(--lime); color: var(--night); text-align: center; font-size: .8125rem; }

.store-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); grid-template-areas: 'filters hero' 'filters catalog' 'filters info'; align-items: start; gap: 29px 22px; padding-block: 26px 60px; }
.filters { grid-area: filters; position: sticky; top: 20px; min-width: 0; }
.filter-toggle { display: none; }
.filter-panel { display: grid; gap: 23px; padding: 18px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.filter-group + .filter-group { border-top: 1px solid var(--line); padding-top: 19px; }
.filter-group h2 { margin: 0 7px 12px; font-size: .9375rem; font-weight: 750; }
.category-filters, .price-filters { display: grid; gap: 4px; }
.category-chip, .price-chip { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 41px; border: 0; border-radius: 7px; padding: 6px 7px; background: transparent; text-align: left; color: var(--muted); font-size: .875rem; line-height: 1.27; }
.category-chip:hover, .price-chip:hover { background: var(--canvas); color: var(--ink); }
.category-chip.is-active { background: var(--violet-soft); color: var(--violet-dark); font-weight: 700; }
.category-chip .icon { width: 17px; height: 17px; }
.category-chip-count { margin-left: auto; color: inherit; min-width: 1.3rem; text-align: right; font-size: .75rem; font-variant-numeric: tabular-nums; }
.price-chip { min-height: 32px; }
.price-chip::before { content: ''; width: 15px; height: 15px; flex: none; border: 1px solid #a49bb9; border-radius: 50%; }
.price-chip.is-active { color: var(--violet-dark); font-weight: 700; }
.price-chip.is-active::before { border: 4px solid var(--violet); }

.hero { grid-area: hero; isolation: isolate; min-height: 360px; position: relative; display: flex; align-items: center; overflow: hidden; border-radius: 15px; background: #1a0e34; color: white; }
.hero-art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 69%; height: 100%; object-fit: cover; object-position: 58% 56%; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #1a0e34 26%, #1a0e34ef 33%, #1a0e3468 52%, transparent 68%); }
.hero-content { width: 49%; padding: 34px 0 34px clamp(30px, 4vw, 62px); }
.hero h1 { font-size: clamp(2.6rem, 5.05vw, 5.375rem); line-height: .98; letter-spacing: -.077em; font-weight: 780; }
.hero h1 strong { color: var(--lime); font-weight: inherit; }
.hero p { max-width: 34ch; margin: 17px 0 24px; color: #e4dcf5; }

.catalog-section { grid-area: catalog; min-width: 0; scroll-margin-top: 20px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 16px; }
.catalog-toolbar h2, .faq-section h2, .related-heading h2 { font-size: clamp(1.65rem, 2.65vw, 2.4rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 760; }
.catalog-toolbar p { color: var(--muted); margin-top: 5px; font-size: .875rem; }
.catalog-actions { display: flex; align-items: center; gap: 12px; }
.text-button { border: 0; padding: .45rem; background: transparent; color: var(--violet-dark); font-size: .875rem; }
.text-button:hover { text-decoration: underline; }
.catalog-actions select { appearance: none; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: .5rem 2.3rem .5rem .75rem; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235e4f7c' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .85rem center; font-size: .875rem; }
.product-grid, .related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.product-card:hover, .product-card:focus-within { border-color: #b7a6ff; }
.product-art { position: relative; aspect-ratio: 1.27; background: #f0edf7; }
.product-photo { position: absolute; inset: 0; width: 100%; height: 100%; padding: 15px; object-fit: contain; mix-blend-mode: multiply; }
.product-photo.is-broken, .cart-photo.is-broken, .detail-photo.is-broken { visibility: hidden; }
.art-hit { position: absolute; inset: 0; z-index: 1; }
.art-hit:focus-visible { outline-offset: -4px; }
.favorite-button { position: absolute; z-index: 2; right: 8px; top: 8px; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); }
.favorite-button .icon { width: 18px; height: 18px; }
.favorite-button:hover, .favorite-button.is-favorite { color: var(--violet-dark); background: var(--violet-soft); }
.favorite-button.is-favorite .icon { fill: currentColor; }
.product-card-copy { display: flex; flex: 1; flex-direction: column; padding: 13px; }
.product-category-line { margin-bottom: 6px; color: var(--muted); font-size: .75rem; }
.product-title { display: block; font-size: .9375rem; line-height: 1.32; font-weight: 660; overflow-wrap: anywhere; }
.product-title:hover { color: var(--violet-dark); }
.product-card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 15px; }
.product-card-bottom strong { display: block; white-space: nowrap; font-size: clamp(1.05rem, 1.48vw, 1.375rem); line-height: 1.12; letter-spacing: -.035em; }
.product-card-bottom small { display: block; color: var(--muted); font-size: .75rem; }
.add-button { width: 40px; height: 40px; display: grid; place-items: center; flex: none; padding: 0; border: 0; border-radius: 8px; background: var(--violet-soft); color: var(--violet-dark); }
.add-button:hover { background: var(--violet); color: white; }
.catalog-more { display: grid; justify-items: center; gap: 7px; margin-top: 21px; color: var(--muted); font-size: .875rem; }
.empty-state { padding: 38px 20px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.empty-state p { color: var(--muted); margin: 7px 0 15px; }

.faq-section { grid-area: info; margin-top: 18px; scroll-margin-top: 20px; }
.faq-section h2 { margin-bottom: 15px; }
.faq-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; font-weight: 650; }
.faq-list summary::after { content: '+'; color: var(--violet); font-size: 1.4rem; line-height: 1; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { max-width: 75ch; padding: 0 19px 19px; color: var(--muted); }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner { min-height: 95px; display: flex; align-items: center; gap: 22px; justify-content: space-between; }
.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-inner nav, .footer-inner > span { color: var(--muted); font-size: .875rem; }

.product-page { width: min(1160px, calc(100% - 5vw)); margin-inline: auto; padding-block: 26px 52px; }
.product-breadcrumb { display: flex; flex-wrap: wrap; gap: 7px 10px; margin-bottom: 20px; color: var(--muted); font-size: .875rem; }
.product-breadcrumb a, .related-heading a { color: var(--violet-dark); text-decoration: underline; text-underline-offset: 3px; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; }
.product-detail-art, .product-detail-copy { position: relative; overflow: hidden; padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.product-detail-art { min-height: 360px; height: 100%; display: grid; place-items: center; background: #eeebf5; }
.detail-photo { width: 100%; max-height: 400px; object-fit: contain; mix-blend-mode: multiply; }
.photo-zoom-button { position: absolute; right: 14px; bottom: 14px; }
.product-detail-copy h1 { margin: 8px 0 16px; font-size: clamp(1.65rem, 3.4vw, 3.15rem); line-height: 1.11; letter-spacing: -.048em; overflow-wrap: anywhere; }
.detail-category, .detail-price span, .detail-note { color: var(--muted); font-size: .875rem; }
.detail-price { display: grid; gap: 3px; margin-bottom: 17px; }
.detail-price strong { font-size: 1.9rem; line-height: 1.15; }
.detail-description { color: var(--muted); margin-bottom: 21px; }
.detail-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 7px; }
.detail-favorite.is-favorite { background: var(--violet-soft); }
.detail-favorite.is-favorite .icon { fill: currentColor; }
.detail-note { margin-top: 15px; }
.related-products { margin-top: 38px; }
.related-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.related-heading a { font-size: .875rem; }

.scrim { position: fixed; z-index: 10; inset: 0; background: #140b2eba; }
.cart-drawer { position: fixed; z-index: 11; inset: 0 0 0 auto; width: min(490px, 100%); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; background: var(--paper); transition: transform .2s ease, visibility .2s; }
.cart-drawer.is-open { transform: none; visibility: visible; }
.drawer-header, .cart-footer { padding: 18px 22px; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-header h2, .checkout-heading h2 { font-size: 1.7rem; letter-spacing: -.045em; }
.drawer-header h2 span { color: var(--muted); font-size: 1rem; }
.close-button { font-size: 1.6rem; line-height: 1; }
.cart-items { min-height: 0; overflow-y: auto; padding-inline: 22px; }
.cart-items:empty { display: none; }
.cart-item { display: flex; align-items: start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-item-art { width: 67px; height: 67px; display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 8px; background: var(--canvas); }
.cart-photo { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-item-copy { flex: 1; min-width: 0; }
.cart-item-copy a { font-weight: 650; overflow-wrap: anywhere; }
.cart-item-copy small { display: block; color: var(--muted); }
.cart-item-total { white-space: nowrap; }
.quantity-control { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.quantity-control button, .remove-item { min-height: 33px; min-width: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.quantity-control button:hover, .remove-item:hover { background: var(--violet-soft); }
.empty-cart { display: grid; justify-items: center; gap: 15px; padding: 42px 18px; text-align: center; }
.empty-cart .icon { width: 36px; height: 36px; color: var(--violet); }
.cart-footer { margin-top: auto; background: var(--canvas); border-top: 1px solid var(--line); }
.cart-total, .checkout-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 650; }
.cart-total strong, .checkout-total b { white-space: nowrap; }
.cart-footer p { margin: 6px 0 12px; color: var(--muted); font-size: .875rem; }
.cart-footer .button, .checkout-submit { width: 100%; }

dialog { width: min(545px, calc(100% - 22px)); max-height: calc(100% - 22px); overflow: auto; padding: clamp(16px, 4vw, 28px); border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #140b2eba; }
.dialog-close { position: absolute; top: 13px; right: 13px; }
.checkout-heading { padding-right: 45px; margin-bottom: 17px; }
.checkout-heading p { margin-top: 5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-grid label { display: grid; gap: 5px; font-size: .875rem; font-weight: 650; }
.form-grid input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); font-size: 1rem; font-weight: 400; }
.wide-field { grid-column: 1 / -1; }
.checkout-note, .payment-manual-note { margin: 12px 0; color: var(--muted); font-size: .875rem; }
.checkout-total { padding: 11px 0; margin-bottom: 8px; border-block: 1px solid var(--line); }
.checkout-error { margin-bottom: 10px; color: #95193a; }
.checkout-result { display: grid; gap: 7px; }
.checkout-result h3 { font-size: 1.5rem; letter-spacing: -.035em; }
.order-label { padding-right: 45px; color: var(--violet-dark); font-size: .875rem; font-weight: 700; }
.payment-instructions { margin-block: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.payment-instruction-row { display: grid; gap: 4px; padding: 10px 12px; }
.payment-instruction-row + .payment-instruction-row { border-top: 1px solid var(--line); }
.payment-instruction-row > span { color: var(--muted); font-size: .875rem; }
.payment-value-with-action { display: flex; align-items: center; justify-content: space-between; gap: 5px; flex-wrap: wrap; }
.copy-payment-value { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--violet-dark); font-size: .875rem; }
.photo-zoom-dialog { width: min(890px, calc(100% - 22px)); text-align: center; }
.photo-zoom-dialog img { margin: auto; width: 100%; max-height: 72vh; object-fit: contain; }
.photo-zoom-dialog p { margin-top: 10px; }
.toast { position: fixed; z-index: 12; bottom: 16px; right: 16px; max-width: calc(100% - 32px); visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .16s, transform .16s, visibility .16s; padding: 12px 15px; border-radius: 9px; color: white; background: var(--night); }
.toast.is-visible { visibility: visible; opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .header-inner, .store-layout { grid-template-columns: 211px minmax(0, 1fr); gap: 20px 16px; }
  .header-inner { grid-template-columns: 211px minmax(0, 1fr) auto; }
  .help-link { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 315px; }
}

@media (max-width: 780px) {
  .container { width: calc(100% - 32px); }
  .store-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'hero' 'filters' 'catalog' 'info'; gap: 15px; padding-block: 16px 38px; }
  .header-inner { min-height: 66px; grid-template-columns: max-content minmax(0, 1fr) auto; }
  .hero { min-height: 290px; }
  .filters { position: static; }
  .filter-toggle { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 44px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--violet-dark); font-size: .875rem; font-weight: 700; }
  .filter-panel { display: none; margin-top: 8px; }
  .filter-toggle[aria-expanded='true'] + .filter-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 12px; }
  .filter-group + .filter-group { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 8px; }
  .catalog-toolbar { margin-bottom: 12px; }
  .faq-section { margin-top: 12px; }
  .product-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .product-detail-art { min-height: 280px; }
  .detail-photo { max-height: 300px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .container, .product-page { width: calc(100% - 24px); }
  .header-inner { grid-template-columns: 1fr auto; row-gap: 10px; padding-block: 10px; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .brand img { width: 37px; height: 37px; }
  .search-box { grid-row: 2; grid-column: 1 / -1; height: 42px; }
  .search-box kbd, .cart-button > span { display: none; }
  .header-actions { gap: 6px; }
  .icon-button, .cart-button { height: 40px; }
  .hero { display: grid; align-items: end; min-height: 330px; }
  .hero-art { width: 100%; height: 100%; object-position: 62% 33%; }
  .hero::after { background: linear-gradient(0deg, #1a0e34 4%, #1a0e34ed 25%, #1a0e3475 63%, #1a0e3414 100%); }
  .hero-content { width: 100%; padding: 100px 17px 18px; }
  .hero h1 { font-size: clamp(2.6rem, 10vw, 3.2rem); }
  .hero p { max-width: 28ch; font-size: .875rem; margin: 10px 0 15px; }
  .catalog-toolbar { align-items: start; }
  .catalog-actions { align-items: end; flex-direction: column-reverse; gap: 1px; }
  .catalog-actions select { width: 151px; padding-right: 1.6rem; background-position: right .6rem center; }
  .catalog-actions .text-button { padding: 3px 0; }
  .product-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-art { aspect-ratio: 1.1; }
  .product-photo { padding: 11px; }
  .product-card-copy { padding: 9px; }
  .product-title { font-size: .875rem; }
  .product-card-bottom { padding-top: 10px; }
  .favorite-button { top: 5px; right: 5px; width: 36px; height: 36px; }
  .add-button { width: 36px; height: 36px; }
  .footer-inner { align-items: start; flex-wrap: wrap; gap: 13px; padding-block: 16px; }
  .footer-inner nav { gap: 5px 10px; flex-direction: column; }
  .footer-inner > span { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
