:root {
  color-scheme: light dark;
  --page: var(--tg-theme-secondary-bg-color, #f2f2ef);
  --surface: var(--tg-theme-bg-color, #ffffff);
  --surface-soft: rgba(128, 128, 128, 0.08);
  --text: var(--tg-theme-text-color, #1c1c1a);
  --muted: var(--tg-theme-hint-color, #74746f);
  --line: rgba(128, 128, 128, 0.22);
  --button: var(--tg-theme-button-color, #1c1c1a);
  --button-text: var(--tg-theme-button-text-color, #ffffff);
  --success: #2d7d56;
  --success-bg: rgba(45, 125, 86, 0.11);
  --order: #8a6425;
  --order-bg: rgba(159, 111, 30, 0.11);
  --danger: #a64545;
  --danger-bg: rgba(166, 69, 69, 0.11);
  --shadow: 0 16px 44px rgba(22, 22, 20, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --app-viewport-height: var(--tg-viewport-stable-height, 100dvh);
  --app-safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
  --app-safe-right: max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px), var(--tg-content-safe-area-inset-right, 0px));
  --app-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  --app-safe-left: max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px), var(--tg-content-safe-area-inset-left, 0px));
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: var(--app-viewport-height);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 95% -5%, rgba(120, 120, 115, 0.12), transparent 28rem),
    var(--page);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--button) 28%, transparent);
  outline-offset: 2px;
}

/* Public-launch sections */
.header-copy { min-width: 0; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.header-contact {
  display: none;
  color: var(--text);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-cart {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
}

.cart-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-size: .72rem;
  letter-spacing: 0;
}

.cart-count.is-empty {
  background: var(--surface-soft);
  color: var(--muted);
}

.hero-section {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  padding: clamp(28px, 7vw, 72px) clamp(22px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface) 82%, #d7d2c7));
  box-shadow: var(--shadow);
}

.hero-section::after {
  position: absolute;
  right: -4rem;
  bottom: -9rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.hero-section h2,
.selection-cta h2,
.section-heading h2,
.catalog-invitation h2,
.discount-section h2,
.contacts-section h2,
.selection-page h2,
.sheet-dialog h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 7vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.hero-section > p:not(.eyebrow) { max-width: 560px; color: var(--muted); }
.hero-actions, .contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-button, .secondary-button, .contact-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--button);
  border-radius: 14px;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
}
.primary-button { background: var(--button); color: var(--button-text); }
.secondary-button { background: transparent; color: var(--text); }

.catalog-controls {
  grid-template-columns: minmax(0, 1fr) !important;
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.compact-heading { margin-bottom: 0 !important; }
.compact-heading h2 { font-size: clamp(1.45rem, 5vw, 2.2rem); }
.text-link-button {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.selection-cta, .discount-section, .contacts-section {
  display: grid;
  gap: 22px;
  margin: 22px 0 50px;
  padding: clamp(26px, 6vw, 54px);
  border-radius: 28px;
  background: var(--button);
  color: var(--button-text);
  box-shadow: var(--shadow);
}
.selection-cta .eyebrow, .discount-section .eyebrow, .contacts-section .eyebrow { color: color-mix(in srgb, var(--button-text) 65%, transparent); }
.selection-cta p:last-child, .discount-section p, .contacts-section p { max-width: 690px; color: color-mix(in srgb, var(--button-text) 75%, transparent); }
.light-button, .selection-cta .light-button { border-color: var(--button-text); background: var(--button-text); color: var(--button); }

.featured-section, .content-section, .catalog-section { margin: 0 0 58px; scroll-margin-top: 16px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { font-size: clamp(1.65rem, 5vw, 2.65rem); }
.section-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.with-controls { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.carousel-controls { display: none; gap: 8px; }
.carousel-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.15rem;
}
.featured-track, .reviews-track {
  display: grid;
  grid-auto-columns: minmax(210px, 72vw);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.featured-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 8px 28px rgba(22,22,20,.055); scroll-snap-align: start; }
.featured-card > button { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.featured-image-wrap {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 36%, #f4f4f2 0, #e9e9e7 62%, #dededc 100%);
}
.featured-image-wrap::before {
  position: absolute;
  z-index: 0;
  right: 22%;
  bottom: 7%;
  left: 22%;
  height: 7%;
  border-radius: 50%;
  background: rgba(35, 35, 32, .2);
  content: "";
  filter: blur(10px);
}
.featured-image-wrap img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.featured-copy { padding: 15px 16px 18px; }
.featured-copy p { margin-bottom: 3px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.featured-copy h3 { min-height: 2.5em; margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.2; }
.featured-copy span { font-size: .86rem; font-weight: 800; }

.catalog-invitation {
  display: grid;
  gap: 18px;
  margin: 0 0 56px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}
.catalog-invitation h2 { max-width: 690px; font-size: clamp(1.65rem, 5vw, 2.8rem); }
.catalog-invitation p:last-child { margin-bottom: 0; color: var(--muted); }
.catalog-invitation .primary-button { justify-self: start; }

.benefits-grid, .steps-grid { display: grid; gap: 12px; }
.benefit-card, .step-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.benefit-card > span, .step-card > span { display: block; margin-bottom: 24px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.benefit-card h3, .step-card h3 { margin-bottom: 8px; font-size: .95rem; letter-spacing: .035em; }
.benefit-card p, .step-card p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.section-button { margin-top: 18px; }

.reviews-empty { display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px; border: 1px dashed var(--line); border-radius: 24px; color: var(--muted); text-align: center; }
.reviews-empty p { margin-bottom: 8px; }
.reviews-track { grid-auto-columns: minmax(230px, 70vw); }
.reviews-track button { overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); cursor: zoom-in; scroll-snap-align: start; }
.reviews-track img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

.discount-section { background: linear-gradient(135deg, #302e2a, #171716); }
.contact-button { flex: 1 1 140px; border-color: color-mix(in srgb, var(--button-text) 36%, transparent); background: transparent; color: var(--button-text); }
.contact-button:hover { background: color-mix(in srgb, var(--button-text) 10%, transparent); }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 1.5rem; font-weight: 300; transition: transform .18s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 900px; padding: 0 0 20px; color: var(--muted); }

.contacts-section { margin-bottom: 0; }
footer { gap: 20px; }
footer strong { color: var(--text); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
footer nav { display: flex; flex-wrap: wrap; gap: 14px 20px; }

.selection-page { max-width: 860px; margin: 0 auto; padding: 24px 0 60px; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--text); font-weight: 750; text-decoration: none; }
.selection-heading { margin-bottom: 34px; }
.selection-heading p:last-child { max-width: 690px; }
.selection-form { display: grid; gap: 14px; }
.selection-question { min-width: 0; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.selection-question legend { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; }
.selection-question legend span { color: var(--muted); font-family: Inter, sans-serif; font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.question-hint { margin: 0 0 12px; color: var(--muted); font-size: .83rem; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.choice-grid label { cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .88rem; }
.choice-grid input:checked + span { border-color: var(--button); background: var(--button); color: var(--button-text); }
.choice-grid input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--button) 28%, transparent); outline-offset: 2px; }
.selection-question textarea, .selection-question > input { width: 100%; min-height: 52px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); color: var(--text); }
.selection-question textarea { min-height: 108px; resize: vertical; }
.selection-submit { margin-top: 12px; padding: 24px; border-radius: 20px; background: var(--surface); text-align: center; }
.selection-submit p { color: var(--muted); font-size: .88rem; }
.selection-submit .primary-button { width: 100%; border: 0; }

.cart-page { min-height: 60vh; }
.cart-heading { margin: 26px 0 22px; }
.cart-empty { padding: 42px 22px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.cart-empty > p:not(.empty-title) { max-width: 480px; margin: 0 auto 22px; color: var(--muted); }
.cart-content { display: grid; gap: 18px; }
.cart-list { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; overflow: hidden; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 8px 28px rgba(22, 22, 20, .045); }
.cart-item-image { overflow: hidden; min-height: 130px; border-radius: 12px; background: #e8e8e6; }
.cart-item-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cart-item-copy { min-width: 0; }
.cart-item-copy h3 { margin: 0 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; font-weight: 500; line-height: 1.15; }
.cart-item-meta { margin: 0 0 14px; color: var(--muted); font-size: .86rem; }
.cart-item-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quantity-control { display: inline-grid; grid-template-columns: 38px 34px 38px; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; text-align: center; }
.quantity-control button { min-height: 38px; border: 0; background: transparent; color: var(--text); cursor: pointer; font-size: 1.15rem; }
.quantity-control span { font-size: .9rem; font-weight: 800; }
.cart-remove { margin-top: 11px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.cart-summary { align-self: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.cart-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 6px 0; }
.promo-form { margin: 14px 0 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promo-form label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 800; }
.promo-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.promo-controls input { min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--page); color: var(--text); font: inherit; font-size: 1rem; text-transform: uppercase; }
.promo-controls input::placeholder { color: var(--muted); text-transform: none; }
.promo-apply { min-height: 46px; padding: 0 13px; border: 1px solid var(--button); border-radius: 11px; background: var(--button); color: var(--button-text); cursor: pointer; font-size: .78rem; font-weight: 800; }
.promo-message { min-height: 20px; margin: 8px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.promo-message.is-success { color: var(--success); }
.promo-message.is-error { color: #a2453d; }
.promo-remove { margin-top: 5px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.cart-discount-row { color: var(--success); }
.cart-total-row { margin-top: 10px; padding-top: 16px !important; border-top: 1px solid var(--line); font-size: 1.18rem; }
.cart-price-note { margin: 10px 0 0; color: var(--muted); font-size: .8rem; }
.cart-checkout { width: 100%; margin-top: 18px; border: 0; }

dialog { color: var(--text); }
.sheet-dialog { width: 100%; max-width: none; margin: auto 0 0; padding: 0; border: 0; background: transparent; }
.sheet-dialog::backdrop, .review-dialog::backdrop { background: rgba(10,10,10,.66); backdrop-filter: blur(3px); }
.dialog-card { position: relative; padding: 30px 22px max(28px, var(--app-safe-bottom)); border-radius: 24px 24px 0 0; background: var(--surface); box-shadow: 0 -15px 70px rgba(0,0,0,.2); }
.sheet-dialog h2 { max-width: 600px; padding-right: 40px; font-size: clamp(1.6rem, 7vw, 2.5rem); }
.dialog-close { display: grid; position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--text); cursor: pointer; font-size: 1.7rem; }
.dialog-summary { margin-bottom: 22px; color: var(--muted); white-space: pre-line; }
.stacked { flex-direction: column; }
.stacked .contact-button { flex-basis: 52px; border-color: var(--line); color: var(--text); }

.review-dialog { position: relative; width: min(94vw, 620px); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; }
.review-dialog img { display: block; width: 100%; max-height: 90vh; border-radius: 18px; object-fit: contain; }
.review-close { background: rgba(255,255,255,.94); color: #111; }
.review-nav { position: absolute; z-index: 2; top: 50%; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; cursor: pointer; transform: translateY(-50%); }
.review-nav.previous { left: 10px; }
.review-nav.next { right: 10px; }
.toast { position: fixed; z-index: 20; right: max(16px, var(--app-safe-right)); bottom: max(16px, var(--app-safe-bottom)); left: max(16px, var(--app-safe-left)); max-width: 520px; margin: auto; padding: 14px 18px; border: 0; border-radius: 14px; background: #181817; color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.28); font: inherit; text-align: center; }
.toast.is-actionable { cursor: pointer; }
.toast.is-actionable:hover { background: #2b2b29; }
.toast.is-actionable:focus-visible { outline: 3px solid rgba(181, 144, 78, .6); outline-offset: 3px; }

@media (min-width: 720px) {
  .header-contact { display: inline-flex; }
  .catalog-controls { grid-template-columns: minmax(280px, 1fr) auto !important; }
  .catalog-controls .compact-heading, .brand-filter-block, .text-link-button { grid-column: 1 / -1; }
  .selection-cta, .discount-section, .contacts-section, .catalog-invitation { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .featured-track { grid-auto-columns: minmax(230px, 28%); }
  .carousel-controls { display: flex; }
  .benefits-grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-dialog { width: min(94vw, 560px); margin: auto; }
  .dialog-card { border-radius: 24px; padding: 32px; }
  .selection-submit .primary-button { width: auto; }
  .cart-content { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .cart-summary { position: sticky; top: max(18px, var(--app-safe-top)); }
  .cart-item { grid-template-columns: 132px minmax(0, 1fr); padding: 14px; }
}

@media (min-width: 1024px) {
  .benefits-grid, .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .featured-track { grid-auto-columns: minmax(230px, 23%); }
}

.page-shell {
  width: min(100%, 1200px);
  min-height: 100vh;
  min-height: var(--app-viewport-height);
  margin: 0 auto;
  padding:
    max(20px, var(--app-safe-top))
    max(16px, var(--app-safe-right))
    max(32px, var(--app-safe-bottom))
    max(16px, var(--app-safe-left));
}

.site-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 6px 2px 26px;
}

.brand-mark {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--button);
  color: var(--button-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(22, 22, 20, 0.15);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.subtitle {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.catalog-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 6px 22px rgba(22, 22, 20, 0.04);
}

.search-box:focus-within {
  border-color: color-mix(in srgb, var(--button) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--button) 9%, transparent);
}

.search-box svg {
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.search-box input::placeholder {
  color: var(--muted);
  opacity: 0.9;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 5px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.brand-filter-block {
  min-width: 0;
}

.brand-filter-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-filter-toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: left;
}

.brand-filter-toggle[aria-expanded="true"] {
  border-color: var(--button);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--button) 9%, transparent);
}

.brand-filter-selection {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: right;
}

.brand-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 0;
}

.brand-filter-row[hidden] {
  display: none;
}

.filter-button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.filter-button:active,
.variant-button:active,
.buy-button:active {
  transform: scale(0.98);
}

.filter-button.is-active {
  border-color: var(--button);
  background: var(--button);
  color: var(--button-text);
}

.brand-filter-button {
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: normal;
}

.brand-filter-button.is-active {
  border-color: var(--button);
  background: var(--button);
  color: var(--button-text);
}

@media (max-width: 480px) {
  .brand-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-filter-toggle {
    align-items: flex-start;
  }
}

.catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.catalog-heading h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.catalog-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-image-wrap {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 36%, #f4f4f2 0, #e9e9e7 62%, #dededc 100%);
}

.product-image-wrap::before {
  position: absolute;
  z-index: 0;
  right: 22%;
  bottom: 7%;
  left: 22%;
  height: 7%;
  border-radius: 50%;
  background: rgba(35, 35, 32, .2);
  content: "";
  filter: blur(10px);
}

.product-image-wrap::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(24, 24, 22, 0.56);
  color: #fff;
  content: "Фото скоро";
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.product-image-wrap.has-custom-image::after {
  display: none;
}

.product-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 350ms ease;
}

.product-image--official-packshot {
  box-sizing: border-box;
  padding: 5% 7% 3%;
  filter: drop-shadow(0 10px 9px rgba(18, 18, 16, .14));
}

.product-image--catalog-source {
  box-sizing: border-box;
  padding: 4%;
  mix-blend-mode: multiply;
}

.product-image--studio {
  object-fit: cover !important;
  object-position: center center !important;
}

.product-card:hover .product-image {
  transform: scale(1.015);
}

.product-body {
  display: flex;
  min-height: 445px;
  flex-direction: column;
  padding: 20px;
}

.product-brand {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-name {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.16;
}

.product-description {
  min-height: 3em;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.product-description-wrap {
  margin-bottom: 20px;
}

.description-ellipsis {
  margin: 0;
  padding: 0 0 0 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  vertical-align: baseline;
}

.description-ellipsis:hover {
  color: var(--text);
}

.description-ellipsis:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.variant-group + .variant-group {
  margin-top: 16px;
}

.variant-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-button {
  min-width: 62px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border 160ms ease;
}

.variant-button.is-selected {
  border-color: var(--button);
  background: var(--button);
  color: var(--button-text);
}

.variant-button.is-unavailable:not(.is-selected) {
  border-style: dashed;
  color: var(--muted);
}

.purchase-panel {
  margin-top: auto;
  padding-top: 22px;
}

.selection-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.selection-label {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.75rem;
}

.selection-value,
.price-value {
  margin-bottom: 0;
  font-weight: 750;
}

.price-value {
  max-width: 55%;
  text-align: right;
  font-size: 1.05rem;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.status--available {
  background: var(--success-bg);
  color: var(--success);
}

.status--order {
  background: var(--order-bg);
  color: var(--order);
}

.status--unavailable {
  background: var(--danger-bg);
  color: var(--danger);
}

.purchase-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
}

.buy-button,
.cart-add-button {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: transform 160ms ease, opacity 160ms ease;
}

.buy-button {
  border: 0;
  background: var(--button);
  color: var(--button-text);
}

.cart-add-button {
  border: 1px solid var(--button);
  background: transparent;
  color: var(--text);
}

.buy-button:disabled,
.cart-add-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.empty-state {
  padding: 54px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
}

.load-more-button {
  display: block;
  width: min(100%, 360px);
  min-height: 52px;
  margin: 26px auto 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.empty-title {
  margin-bottom: 6px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.empty-state p:last-child {
  margin-bottom: 0;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 40px;
  padding: 24px 2px 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

footer p {
  margin-bottom: 0;
}

footer a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .page-shell {
    padding-right: 28px;
    padding-left: 28px;
  }

  .site-header {
    padding-top: 18px;
    padding-bottom: 34px;
  }

  .catalog-controls {
    grid-template-columns: minmax(280px, 1fr) auto;
    align-items: center;
  }

  .brand-filter-block {
    grid-column: 1 / -1;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1120px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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