:root {
  color-scheme: light;
  --page: #fbf8f4;
  --paper: #fffdf9;
  --ink: #24171b;
  --muted: #665a56;
  --line: #e7ddd6;
  --wine: #742d43;
  --wine-deep: #582036;
  --blush: #f5e6e8;
  --cream: #f6dbc2;
  --night: #231419;
  --serif: Georgia, "Times New Roman", serif;
  font: 100%/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: .16rem solid #a04768; outline-offset: .22rem; }
section[id] { scroll-margin-top: 7rem; }

.shell { width: min(75rem, calc(100% - 3.5rem)); margin-inline: auto; }
.section { padding-block: 4rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 7;
  top: .6rem;
  left: .6rem;
  transform: translateY(-200%);
  padding: .7rem 1rem;
  border-radius: .4rem;
  background: var(--paper);
}
.skip-link:focus { transform: none; }

.masthead {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.75rem;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  justify-self: start;
  width: max-content;
  gap: .25rem;
  line-height: 1;
}
.wordmark strong { font-size: 1.32rem; letter-spacing: .115em; font-weight: 850; }
.wordmark span { color: var(--wine); font-size: .77rem; letter-spacing: .385em; font-weight: 700; }
.nav, .header-actions, .footer-links { display: flex; align-items: center; gap: 1.65rem; }
.header-actions { justify-content: end; }
.nav a, .header-contact { display: block; padding-block: .7rem; font-weight: 600; }
.nav a:hover, .header-contact:hover, .footer-links a:hover { color: var(--wine); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.8rem;
  padding: .63rem 1rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transition: background-color .17s, border-color .17s;
}
.button-outline { background: transparent; border-color: var(--line); }
.button-outline:hover { background: #f2ebe6; border-color: #d5c3bc; }
.button-primary { background: var(--wine); color: var(--paper); }
.button-primary:hover { background: var(--wine-deep); }
.button-cream { background: var(--cream); color: #321b23; }
.button-cream:hover { background: #ffe8d2; }
.button-ghost { border-color: #f0cbb677; background: #28151a47; color: #fff5ea; }
.button-ghost:hover { background: #5b363b; }
.cart-toggle { padding-inline: .8rem; }
.cart-count {
  display: grid;
  min-width: 1.55rem;
  min-height: 1.55rem;
  padding: 0 .27rem;
  place-items: center;
  border-radius: 2rem;
  background: var(--blush);
  color: var(--wine);
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}
.bag-icon {
  position: relative;
  display: block;
  width: .92rem;
  height: .79rem;
  margin: .25rem .05rem 0 0;
  border: 1.5px solid currentColor;
  border-radius: .14rem;
}
.bag-icon::after {
  content: "";
  position: absolute;
  inset: -.37rem 22% auto;
  height: .38rem;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: .28rem .28rem 0 0;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff4eb;
  background: var(--night);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--night) 30%, #231419 34%, #231419de 44%, #23141940 68%, #1e0e171c 100%);
}
.hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 28%;
  background: radial-gradient(ellipse at 60% 52%, #87534a, #44222e 56%, var(--night));
}
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 57% 54%; }
.hero-inner { display: flex; align-items: center; min-height: clamp(29rem, 43vw, 38rem); }
.hero-copy { max-width: 40rem; padding-block: 3.5rem; }
.kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.1rem;
  color: #ebbaa8;
  font-size: .88rem;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 1.35rem; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 {
  font-size: clamp(2.8rem, 6.15vw, 5.25rem);
  line-height: .99;
  letter-spacing: -.057em;
}
h1 em { display: block; color: #f2be9d; }
.hero-description { margin-top: 1.5rem; max-width: 34ch; color: #f2dcd5; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.65rem; }
.hero-actions .button { min-height: 3rem; padding-inline: 1.12rem; }
.delivery-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .7rem;
  padding: .62rem 1rem;
  color: #522333;
  background: #f1e4e3;
  border-bottom: 1px solid #e8d4d4;
  font-size: .94rem;
  font-weight: 600;
}
.delivery-ribbon:hover { background: #eedadf; }
.ozon-mark {
  display: inline-flex;
  align-items: center;
  padding: .13rem .48rem;
  border-radius: .3rem;
  background: #f7f2ff;
  color: #3526a4;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .01em;
}

h2 { font-size: clamp(2.42rem, 5.25vw, 3.78rem); line-height: 1.02; letter-spacing: -.054em; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.search-box { position: relative; width: min(100%, 22rem); }
.search-box input, .delivery-fields input, .manual-order {
  width: 100%;
  min-height: 2.9rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--paper);
}
.search-box input { padding-left: 2.55rem; }
.search-icon {
  position: absolute;
  top: .91rem;
  left: .97rem;
  width: .78rem;
  height: .78rem;
  border: 1.6px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.search-icon::after {
  content: "";
  position: absolute;
  top: .62rem;
  left: .53rem;
  width: .42rem;
  height: 1.6px;
  transform: rotate(45deg);
  background: var(--muted);
}
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .42rem; }
.filters button, .volume {
  min-height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .91rem;
  font-weight: 550;
}
.filters button { padding: .5rem 1rem; border-radius: 3rem; }
.filters button:hover, .volume:hover { border-color: var(--wine); }
.filters button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.catalog-tip { color: var(--wine-deep); font-size: .94rem; }
.carrier input { accent-color: var(--wine); width: 1.05rem; height: 1.05rem; }
.result-count { margin: .75rem 0 1rem; color: var(--muted); font-size: .92rem; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.product {
  scroll-margin-top: 7rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--paper);
}
.photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #fff;
}
.photo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: .95rem; }
.product-group {
  position: absolute;
  top: .8rem;
  left: .8rem;
  padding: .25rem .63rem;
  border-radius: 2rem;
  background: var(--paper);
  color: var(--ink);
  font-size: .89rem;
  font-weight: 650;
  box-shadow: 0 1px 8px #1709101a;
}
.product-info { display: flex; flex-direction: column; flex: 1; padding: 1.14rem; }
.brand { color: var(--wine); font-size: .88rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
h3 { margin: .24rem 0 .36rem; font-size: clamp(1.6rem, 2.3vw, 2.05rem); line-height: 1.06; letter-spacing: -.039em; }
.product-notes { color: var(--muted); }
.volume-picker { margin-top: auto; padding-top: 1rem; margin-bottom: .8rem; }
.volume-picker p { margin-bottom: .4rem; font-size: .9rem; color: var(--muted); }
.volume-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .38rem; }
.volume { padding: .25rem; border-radius: .4rem; }
.volume[data-size="5"]:not([aria-pressed="true"]) { border-color: #af7383; color: var(--wine-deep); }
.volume[aria-pressed="true"] { background: var(--blush); color: var(--wine-deep); border-color: #af7383; }
.product-buy { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.product-pricing { display: grid; }
.product-price { font-size: 1.35rem; line-height: 1.2; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.unit-price { color: var(--muted); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-buy .button { min-height: 2.75rem; padding-inline: .75rem; }
.more-row { display: flex; justify-content: center; }
.more-row button { margin-top: 1.7rem; }
.no-results { display: grid; justify-items: start; gap: .8rem; padding-block: 1.2rem; color: var(--muted); }

.price-section { border-block: 1px solid var(--line); background: #f4ece7; }
.prices-head p { margin-top: .7rem; color: var(--muted); }
.price-scroll { overflow: auto; border: 1px solid var(--line); border-radius: .85rem; background: var(--paper); }
.price-table { width: 100%; min-width: 58rem; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: .72rem .9rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.price-table thead th { color: var(--wine-deep); background: #f7eeea; font-weight: 700; }
.price-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 12rem;
  background: var(--paper);
  text-align: left;
  white-space: normal;
}
.price-table thead th:first-child { background: #f7eeea; }
.price-table tbody th { font-weight: 650; }
.price-table tr:last-child td, .price-table tbody tr:last-child th { border-bottom: 0; }
.price-table td { min-width: 4rem; }
.price-table td:last-child, .price-table th:last-child { padding-right: 1.35rem; }
.price-table .best-price-column { background: var(--blush); color: var(--wine-deep); font-weight: 700; }

.delivery-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.delivery-panel {
  padding: clamp(1.5rem, 4vw, 2.7rem);
  border-radius: .85rem;
  background: radial-gradient(ellipse at 85% 92%, #6f3442, transparent 70%), var(--night);
  color: #fff8f1;
}
.delivery-panel h2 { margin-top: 1rem; }
.delivery-panel p { max-width: 39ch; margin-top: 1rem; color: #f0d8d4; }
.delivery-panel .button { margin-top: 1.25rem; }
.delivery-faq details { border-bottom: 1px solid var(--line); }
.delivery-faq details:first-child { border-top: 1px solid var(--line); }
summary { padding: 1rem 0; font-weight: 700; }
details p { margin: 0 0 1rem 1rem; max-width: 58ch; color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding-block: 1.8rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.3rem; }
.footer-inner p { margin-top: .55rem; color: var(--muted); font-size: .83rem; }
.footer-links { flex-wrap: wrap; gap: .5rem 1.45rem; font-weight: 600; }

.toast {
  position: fixed;
  z-index: 6;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: calc(100% - 2rem);
  padding: .75rem 1rem;
  border-radius: .55rem;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 .5rem 1.6rem #2d172737;
  opacity: 0;
  transform: translateY(.4rem);
  transition: opacity .18s, transform .18s;
  pointer-events: none;
}
.toast.visible { opacity: 1; transform: none; }

dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 31rem);
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--page);
  color: var(--ink);
  box-shadow: -.5rem 0 2rem #26151d39;
}
dialog::backdrop { background: #21121ba0; }
.cart-panel { display: flex; flex-direction: column; min-height: 100%; padding: 1.25rem; }
.cart-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding-block: .35rem;
  background: var(--page);
}
.cart-head h2 { font-size: 2.7rem; }
.close-cart { min-width: 2.75rem; padding: .25rem; font-size: 1.65rem; }
.empty-cart { display: grid; justify-items: start; gap: 1rem; padding: 1.6rem 0; }
.empty-cart p, .checkout-note { color: var(--muted); }
.cart-items { list-style: none; margin: 1.15rem 0; padding: 0; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .4rem .6rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-main, .cart-right { display: grid; }
.cart-right { justify-items: end; gap: .4rem; }
.line-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-size { color: var(--muted); }
.quantity { display: flex; align-items: center; gap: .55rem; }
.quantity button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: .46rem;
  background: var(--paper);
  font-size: 1.25rem;
}
.quantity button:hover { border-color: var(--wine); }
.checkout { display: grid; gap: .8rem; margin-top: auto; padding-bottom: env(safe-area-inset-bottom); }
.subtotal { display: flex; justify-content: space-between; gap: .5rem; font-size: 1.2rem; }
.checkout fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.checkout legend { margin-bottom: .35rem; font-weight: 650; }
.carrier {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 3.45rem;
  padding: .4rem .5rem;
  border-radius: .45rem;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.carrier:has(:checked) { border-color: #b27b87; background: var(--blush); }
.carrier small { display: block; font-size: .875rem; color: var(--muted); }
.delivery-fields { display: grid; gap: .55rem; }
.delivery-fields label { display: grid; gap: .22rem; }
.checkout-note, .copy-status, .order-help { font-size: .92rem; }
.order-help { color: var(--muted); }
.order-help summary { padding: .15rem 0; color: var(--wine); }
.order-options { display: grid; gap: .5rem; margin-top: .5rem; }
.order-options p { margin: 0; }
.copy-status { color: var(--wine); }
.copy-status:empty { display: none; }
.manual-order { min-height: 8rem; resize: vertical; }

@media (max-width: 62rem) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { max-width: 32rem; }
  .hero-photo { left: 20%; }
  .header-contact { display: none; }
}

@media (max-width: 43.75rem) {
  .shell { width: calc(100% - 2rem); }
  .section { padding-block: 2.8rem; }
  .masthead-inner { grid-template-columns: 1fr auto; gap: 0 .65rem; }
  .masthead .wordmark, .header-actions { align-self: center; min-height: 3.75rem; }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: .55rem;
    border-top: 1px solid var(--line);
  }
  .nav a { font-size: .95rem; padding-block: .56rem; }
  .masthead .wordmark strong { font-size: 1.16rem; }
  .masthead .wordmark span { font-size: .68rem; }
  .hero-inner { align-items: start; min-height: 0; }
  .hero-copy { max-width: 100%; padding: 2.5rem 0 13.6rem; }
  .hero-photo { inset: auto 0 0; height: 15.3rem; }
  .hero-photo img { object-position: 52% 56%; }
  .hero::after { background: linear-gradient(180deg, var(--night) 47%, #231419ed 56%, #2314191c 78%, transparent); }
  .hero-description { margin-top: 1.1rem; }
  .hero-actions { gap: .55rem; margin-top: 1.3rem; }
  .section-head { align-items: start; flex-direction: column; }
  .delivery-section { grid-template-columns: 1fr; }
  .footer-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 34rem) {
  .products { grid-template-columns: 1fr; }
  .filters button { padding-inline: .66rem; }
  .catalog-toolbar { gap: .45rem; }
  .price-table { min-width: 50rem; }
  .price-table th, .price-table td { padding-inline: .59rem; }
  .price-table th:first-child { min-width: 9rem; }
  .price-table td:last-child, .price-table th:last-child { padding-right: .7rem; }
}

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


.box-section {
  background: #fbf5ef;
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-block: 2.8rem 0;
  padding: clamp(1rem, 4vw, 2.6rem);
}
.box-heading, .box-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.box-heading p { color: var(--muted); }
.box-heading h2 { margin-bottom: .45rem; }
.box-stock {
  border: 1px solid var(--line);
  padding: .35rem .75rem;
  border-radius: 2rem;
  background: var(--paper);
}
.box-fieldset { border: 0; margin: 1.25rem 0 1rem; padding: 0; min-width: 0; }
.box-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; }
.box-option {
  position: relative;
  display: grid;
  align-content: start;
  gap: .35rem;
  padding: .6rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: white;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.box-option:has(:checked) { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.box-option:has(:disabled) { opacity: .65; cursor: default; }
.box-option img { width: 100%; height: 6.8rem; object-fit: contain; }
.box-option input { position: absolute; right: .6rem; top: .6rem; accent-color: var(--wine); }
.box-option small { color: var(--muted); font-size: .88rem; }
.box-option strong { line-height: 1.2; font-size: .94rem; }
.box-actions p, .box-bonus { color: var(--muted); font-size: .94rem; }
.box-bonus { margin-top: .9rem; }
.button:disabled, .quantity button:disabled { opacity: .55; cursor: default; }
.admin-page { max-width: 38rem; }
.admin-page h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin: 1.25rem 0; }
.admin-form { display: grid; gap: .7rem; }
.admin-form input { max-width: 10rem; padding: .6rem; font: inherit; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 45rem) {
  .box-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box-option img { height: 5.5rem; }
  .nav { flex-wrap: wrap; }
}

/* Catalog and recommendations */
.format-switch {
  display: inline-flex;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #f0e5df;
}
.format-switch button {
  min-height: 2.45rem;
  padding: .35rem .85rem;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  white-space: nowrap;
  color: var(--wine-deep);
  font-weight: 720;
}
.format-switch button[aria-pressed="true"] { color: #fffaf6; background: var(--wine); }
#catalog-tip { width: 100%; }
.advanced-filters {
  margin-top: 1.05rem;
  padding: 0 .85rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--paper);
}
.advanced-filters summary { padding: .7rem 0; }
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.7rem, 1fr));
  align-items: end;
  gap: .7rem;
  padding-bottom: .85rem;
}
.advanced-grid label { display: grid; gap: .25rem; font-size: .9rem; }
.advanced-grid select, .advanced-grid input {
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  padding: .3rem .55rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--page);
  color: var(--ink);
  font: inherit;
}
.advanced-grid .button { min-height: 2.65rem; }
.photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
}
.photo-button img { transition: transform .3s ease; }
.photo-button:hover img { transform: scale(1.05); }
.product-title {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
}
.product-title:hover { text-decoration: underline; text-underline-offset: .17em; }
.product [aria-pressed="true"][data-size="5"] { background: var(--wine); }
.photo-missing { display: grid; height: 100%; align-content: center; justify-items: center; color: var(--muted); }
.price-table small { display: block; color: var(--muted); font-weight: 500; }

.notes-section {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) 2fr;
  align-items: start;
  gap: 1.2rem 2rem;
  border-top: 1px solid var(--line);
}
.notes-section p { margin-top: .6rem; color: var(--muted); }
.note-directory { display: flex; flex-wrap: wrap; align-items: start; gap: .45rem; }
.note-chip {
  min-height: 2.4rem;
  padding: .25rem .7rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--paper);
  color: var(--wine-deep);
  text-align: left;
}
.note-chip small { margin-left: .18rem; color: var(--muted); }
.note-chip:hover { background: var(--blush); border-color: var(--wine); }

.quiz-section {
  padding-block: clamp(2.4rem, 6vw, 4.5rem);
  background: radial-gradient(ellipse at 10% 110%, #66313e, transparent 80%), var(--night);
  color: var(--paper);
}
.quiz-layout { display: grid; grid-template-columns: minmax(14rem, 1fr) 1.45fr; align-items: center; gap: 2rem; }
.quiz-layout > div > p { max-width: 34ch; margin-top: .7rem; color: #ebcfc5; }
.quiz-content {
  min-height: 16.3rem;
  padding: clamp(1.1rem, 4vw, 1.8rem);
  border: 1px solid #f0cbb638;
  border-radius: .85rem;
  background: var(--paper);
  color: var(--ink);
}
.quiz-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .55rem;
  color: var(--muted);
  font-size: .88rem;
}
.quiz-progress progress { max-width: 37%; accent-color: var(--wine); }
.quiz-content h3 { margin-bottom: .8rem; }
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.quiz-options button { justify-content: start; min-height: 2.85rem; text-align: left; }
.quiz-results { display: grid; gap: .5rem; }
.quiz-pick {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .12rem .65rem;
  align-items: center;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--page);
  color: var(--ink);
  text-align: left;
}
.quiz-pick .brand { grid-column: 1 / -1; }
.quiz-pick:hover { border-color: var(--wine); }
.quiz-pick > span:last-child { white-space: nowrap; color: var(--wine-deep); }
.quiz-actions { display: flex; gap: 1rem; }
.quiz-back { padding: .65rem 0 0; border: 0; background: none; color: var(--wine); text-decoration: underline; }

.detail-dialog {
  inset: 0;
  width: min(calc(100% - 1.6rem), 53rem);
  height: max-content;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  border-radius: .9rem;
  overflow: auto;
}
.detail-panel { position: relative; padding: clamp(.85rem, 3vw, 1.4rem); }
.detail-close { position: absolute; top: .65rem; right: .65rem; z-index: 1; background: var(--paper); }
#detail-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem 1.5rem; }
.detail-image { align-self: start; overflow: hidden; border-radius: .65rem; background: white; }
.detail-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.detail-info { display: grid; gap: .7rem; padding: .3rem 1.55rem .3rem 0; }
.detail-info h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.detail-info h3 { margin-bottom: .4rem; font-size: 1.05rem; font-family: inherit; }
.detail-info .volume-picker { margin: .05rem 0; }
.detail-type, .detail-note { color: var(--muted); font-size: .93rem; }
.accord-list { display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; list-style: none; }
.accord {
  padding: .26rem .65rem;
  border-radius: .33rem;
  background: #793b49;
  color: #fffbf6;
  font-size: .88rem;
  font-weight: 650;
}
.accord-1 { background: #d3a789; color: #351d16; }
.accord-2 { background: #f0ddce; color: #412820; }

.telegram-checkout {
  border-top: 1px solid var(--line);
  margin-top: .55rem;
}
.telegram-checkout summary { padding: .65rem 0; }
.telegram-checkout .order-options { grid-template-columns: 1fr 1fr; margin-top: 0; }
.telegram-checkout .order-options > * { min-height: 2.55rem; }
.checkout-result { color: var(--wine-deep); font-weight: 630; }
.order-status { margin-top: 1.3rem; padding: clamp(1rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: .85rem; }
.order-status-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; }
.order-status ul { padding-left: 1.3rem; }

.admin-page { max-width: 56rem; }
.admin-orders { margin-top: 2.4rem; }
.admin-order-list { display: grid; gap: .85rem; }
.admin-order { border: 1px solid var(--line); border-radius: .7rem; background: var(--paper); padding: .9rem; }
.admin-order h3 { font-family: inherit; font-size: 1.14rem; }
.admin-order time, .admin-order > p { color: var(--muted); font-size: .94rem; }
.admin-order ul { padding-left: 1.3rem; }

.box-option { transition: border-color .18s, background-color .18s, box-shadow .18s; }
.box-option:hover { border-color: #b27b87; }
.box-option:has(:checked) { background: var(--blush); }
@keyframes enter-view {
  from { opacity: .53; transform: translateY(.5rem); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-photo-in {
  from { opacity: .7; transform: scale(1.055); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: hero-photo-in 1.15s ease-out both; }
  .hero-copy > * { animation: enter-view .65s ease-out both; }
  .hero-copy > h1 { animation-delay: .08s; }
  .hero-description { animation-delay: .16s; }
  .hero-actions { animation-delay: .24s; }
  .product, .quiz-content > h3, dialog[open] { animation: enter-view .21s ease-out both; }
}

@media (max-width: 45rem) {
  .notes-section, .quiz-layout { grid-template-columns: 1fr; }
  .quiz-layout { gap: 1rem; }
  .box-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .42rem; }
  .box-option { padding: .38rem; }
  .box-option img { height: 4.8rem; }
  .box-option strong { font-size: .86rem; }
  .box-option small { font-size: .76rem; }
  #detail-content { grid-template-columns: 1fr; gap: .85rem; }
  .detail-image { width: min(60%, 14rem); margin-inline: auto; }
  .detail-info { padding-right: 0; }
}
@media (max-width: 23rem) {
  .quiz-options { grid-template-columns: 1fr; }
  .telegram-checkout .order-options { grid-template-columns: 1fr; }
}
.advanced-grid .in-stock-filter { display: flex; align-items: center; min-height: 2.65rem; }
.advanced-grid .in-stock-filter input { width: auto; min-height: auto; accent-color: var(--wine); }
.admin-inventory { margin-top: 2rem; border-top: 1px solid var(--line); }
.inventory-list { display: grid; gap: .45rem; }
.inventory-list label { display: grid; grid-template-columns: 1fr minmax(8rem, 11rem); align-items: center; gap: .6rem; }
.inventory-list select {
  min-height: 2.6rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--paper);
  color: var(--ink); font: inherit;
}

.ready-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: .8rem;
  margin-top: 1.4rem;
}
.ready-box {
  --box-ink: #3b6365;
  --box-background: #eef5f2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--box-ink);
  border-radius: .8rem;
  background: var(--paper);
  transition: box-shadow .22s ease, transform .22s ease;
}
.ready-box:hover { box-shadow: 0 .45rem 1.25rem #26151d14; transform: translateY(-.1rem); }
.ready-box-luxury { --box-ink: #805627; --box-background: #f7ede0; }
.ready-box-winter { --box-ink: #6b3b40; --box-background: #f4e8e7; }
.ready-box-for-women { --box-ink: #92485f; --box-background: #f9eaf0; }
.ready-box-copy { padding: .85rem .82rem .72rem; background: var(--box-background); }
.ready-box h3 { font-size: clamp(1.13rem, 2.2vw, 1.55rem); font-weight: 720; line-height: 1.15; }
.ready-box-copy p { margin-top: .38rem; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.ready-box-photos { display: flex; justify-content: center; gap: .12rem; margin: .6rem .45rem; }
.ready-box-photos img {
  flex: 1 1 0;
  min-width: 0;
  max-width: 29%;
  height: clamp(3.2rem, 7vw, 5rem);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.ready-box-scents {
  display: grid;
  gap: .25rem;
  margin: .2rem .82rem .6rem;
  padding-left: 1rem;
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.28;
}
.ready-box-scents li::marker { color: var(--box-ink); }
.ready-box-status { margin: .15rem .82rem .48rem; color: var(--wine-deep); font-size: .82rem; }
.ready-box-status:empty { display: none; }
.ready-box-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .42rem;
  margin-top: auto;
  padding: .72rem .8rem;
  border-top: 1px solid var(--line);
}
.ready-box-actions strong, .ready-box-actions span { display: block; white-space: nowrap; }
.ready-box-actions strong { font-size: 1.16rem; }
.ready-box-actions span { color: var(--muted); font-size: .84rem; }
.ready-box-actions .button { min-height: 2.55rem; padding-inline: .62rem; }
.custom-box-heading { margin-top: 1.65rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.custom-box-heading p { margin-top: .3rem; color: var(--muted); }

@media (max-width: 62rem) {
  .ready-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 33rem) {
  .ready-boxes { grid-template-columns: 1fr; }
  .ready-box-photos img { height: 4.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ready-box:hover { transform: none; }
}

.ready-box h3 {
  font-family: inherit;
  font-size: clamp(1.02rem, 1.53vw, 1.29rem);
  font-weight: 780;
  letter-spacing: .045em;
}
.box-photo-missing {
  display: grid;
  place-items: center;
  height: 6.8rem;
  color: var(--muted);
  font-size: .79rem;
  text-align: center;
}
.detail-image .photo-missing { min-height: 10rem; }

@media (max-width: 45rem) {
  .box-photo-missing { height: 4.8rem; }
}

.checkout-totals { margin: 0; display: grid; gap: .3rem; }
.checkout-totals div { display: flex; justify-content: space-between; gap: .65rem; }
.checkout-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.checkout-total {
  padding-top: .5rem;
  margin-top: .2rem;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 750;
}

.format-switch {
  flex-wrap: wrap;
  max-width: 100%;
  align-items: center;
}
.format-switch [data-format="bottle"] {
  min-height: 3.2rem;
  padding-inline: clamp(.85rem, 3vw, 1.65rem);
  font-size: 1.05rem;
  border: 1px solid var(--wine);
}
.format-switch [data-format="bottle"][aria-pressed="false"] { background: var(--paper); }
