
:root {
  --primary: #2563eb;
  --accent: #10b981;
  --ink: #121826;
  --muted: #667085;
  --line: #e3e8ef;
  --surface: #ffffff;
  --soft: #f3f6fb;
  --page: #f5f7fb;
  --radius: 20px;
  --max: 1440px;
  --display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}
html.overlay-open, body.overlay-open { overflow: hidden; overscroll-behavior: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 38%, transparent);
  outline-offset: 3px;
}
img { max-width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--ink);
  color: white;
  font-size: 12px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 650; }
.site-nav a:hover { color: var(--ink); }
.cart-button, .menu-button, .search-toggle, .catalog-trigger {
  border: 0;
  background: transparent;
  color: inherit;
}
.cart-button { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; white-space: nowrap; }
.cart-count {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 12px;
}
.menu-button { display: none; font-weight: 750; }
.primary, .secondary, .add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.primary, .add-button { background: var(--primary); color: white; }
.secondary { border-color: var(--line); background: white; color: var(--ink); }
.primary:hover, .secondary:hover, .add-button:hover { transform: translateY(-2px); }
.primary:disabled, .add-button:disabled { cursor: wait; opacity: .58; transform: none; }
.text-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 750; }
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero, .catalog-section, .story-banner, .lead-section, .site-footer, .product-page, .content-page {
  width: min(calc(100% - 48px), var(--max));
  margin-left: auto;
  margin-right: auto;
}
.hero { margin-top: 26px; }
.hero h1 { margin: 0; letter-spacing: -.06em; }
.hero p { color: var(--muted); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.catalog-section { padding: 96px 0 44px; }
.catalog-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}
.catalog-header h2 { margin: 8px 0 0; font-size: clamp(38px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.catalog-result { margin: 10px 0 0; color: var(--muted); }
.catalog-search { display: flex; align-items: center; gap: 8px; min-width: min(100%, 390px); }
.catalog-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 18px;
  color: var(--ink);
}
.catalog-search button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--ink);
  color: white;
  font-weight: 700;
}
.category-navigation { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 24px; scrollbar-width: none; }
.category-navigation::-webkit-scrollbar { display: none; }
.category-navigation a {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.category-navigation a.active, .category-navigation a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; min-width: 0; background: var(--surface); }
.product-media { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--soft); }
.product-image, .image-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
}
.product-image { transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
.product-card:hover .product-image { transform: scale(.985); opacity: .96; }
.image-placeholder { display: grid; place-items: center; }
.image-placeholder span { font-size: 28px; font-weight: 850; color: var(--primary); }
.product-body h3 { margin: 0; font-size: 20px; line-height: 1.12; letter-spacing: -.025em; }
.product-body > p:not(.product-kicker) { color: var(--muted); line-height: 1.5; }
.product-kicker { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.price-row, .detail-price { display: flex; align-items: baseline; gap: 9px; }
.price-row strong { font-size: 20px; }
.old-price { color: #98a2b3; font-size: 13px; text-decoration: line-through; }
.sale-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 800;
}
.card-number { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .1em; }
.empty { grid-column: 1 / -1; padding: 64px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.empty strong { display: block; font-size: 24px; }
.empty p { color: var(--muted); }
.story-banner {
  min-height: 340px;
  margin-top: 52px;
  padding: 54px;
  background: var(--ink);
  color: white;
}
.story-banner span { color: rgba(255,255,255,.58); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story-banner h2 { max-width: 840px; margin: 18px 0; font-size: clamp(36px, 6vw, 78px); line-height: 1; letter-spacing: -.055em; }
.story-banner a { display: inline-flex; margin-top: 20px; font-weight: 750; }
.story-image { background-position: center; background-size: cover; }
.lead-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1fr);
  gap: 64px;
  margin-top: 96px;
  margin-bottom: 96px;
  padding: 64px;
  background: var(--surface);
}
.lead-copy h2 { margin: 10px 0; font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -.055em; }
.lead-copy p { max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.lead-form, .checkout-form { display: grid; gap: 14px; }
.lead-form label, .checkout-form label { display: grid; gap: 7px; }
.lead-form label > span, .checkout-form label > span, .delivery-box > span {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}
.lead-form input, .lead-form textarea, .checkout-form input, .checkout-form textarea, .checkout-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px 14px;
  color: var(--ink);
}
.lead-form textarea, .checkout-form textarea { min-height: 92px; resize: vertical; }
.form-result { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.site-footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, minmax(150px, 1fr));
  gap: 48px;
  padding: 54px 0;
  border-top: 1px solid var(--line);
}
.site-footer.has-social { grid-template-columns: 1.3fr repeat(3, minmax(150px, 1fr)); }
.site-footer p, .site-footer span { color: var(--muted); line-height: 1.55; }
.footer-links, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links a { font-weight: 650; }
.footer-contact-content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--muted); line-height: 1.55; }
.footer-contact-content p, .footer-contact-content ul { margin: 0; padding: 0; }
.footer-contact-content ul { padding-left: 18px; }
.footer-contact-content a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 55%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.footer-contact-content a:hover { color: var(--primary); }
.footer-social { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-social-links { display: flex; min-width: 0; flex-wrap: wrap; gap: 8px; }
.footer-social-links a { display: inline-flex; min-width: 0; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.footer-social-links a:hover { color: var(--ink); transform: translateY(-1px); }
.footer-social-logo, .footer-social-fallback { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.footer-social-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.site-footer .footer-social-fallback { color: var(--primary); font-size: 12px; font-weight: 850; }
.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 86px;
}
.product-gallery, .product-detail { background: var(--surface); }
.product-gallery { position: relative; min-width: 0; padding: 14px; }
.gallery-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: auto;
  max-height: min(72vh, 820px);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--soft);
  touch-action: pan-y;
}
.gallery-stage[data-media-orientation="portrait"] { aspect-ratio: 4 / 5; }
.gallery-stage[data-media-orientation="landscape"] { aspect-ratio: 16 / 10; }
.product-main-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-stage .image-placeholder { height: 100%; aspect-ratio: auto; }
.gallery-controls {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.gallery-controls button, .gallery-controls span {
  pointer-events: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(17,24,39,.12);
}
.gallery-controls button { width: 44px; height: 44px; }
.gallery-controls span { padding: 8px 12px; font-size: 12px; font-weight: 750; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; }
.gallery-thumbs button { width: 70px; height: 70px; flex: 0 0 auto; border: 1px solid transparent; padding: 0; background: var(--soft); }
.gallery-thumbs button.active { border-color: var(--ink); }
.gallery-thumb-image { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.product-detail { align-self: start; padding: 48px; }
.back-link { display: inline-block; margin-bottom: 52px; color: var(--muted); font-size: 13px; font-weight: 700; }
.product-detail h1 { margin: 10px 0 20px; font-size: clamp(42px, 5vw, 74px); line-height: .96; letter-spacing: -.055em; }
.detail-price strong { font-size: 32px; }
.product-description { margin: 28px 0; color: var(--muted); font-size: 17px; line-height: 1.75; white-space: pre-line; }
.options { margin: 28px 0; padding: 0; border: 0; }
.options legend { margin-bottom: 12px; font-size: 18px; font-weight: 750; }
.options label {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
}
.options small { display: block; margin-top: 3px; color: var(--muted); }
.product-attributes { margin: 28px 0; border-top: 1px solid var(--line); }
.product-attributes div { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.product-attributes dt { color: var(--muted); }
.product-attributes dd { margin: 0; text-align: right; }
.buy-panel { display: flex; align-items: end; gap: 10px; margin-top: 28px; }
.buy-panel label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.buy-panel input { width: 92px; height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.buy-panel .primary { flex: 1; }
.target-action-helper { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.content-page { max-width: 980px; margin-top: 48px; margin-bottom: 96px; }
.markdown-card { padding: 64px; background: var(--surface); color: var(--ink); }
.markdown-card h1 { margin: 0 0 28px; font-size: clamp(46px, 7vw, 82px); line-height: 1; letter-spacing: -.055em; }
.markdown-card h2 { margin-top: 48px; font-size: 34px; letter-spacing: -.035em; }
.markdown-card h3 { margin-top: 34px; font-size: 24px; }
.markdown-card p, .markdown-card li { color: var(--muted); font-size: 17px; line-height: 1.8; }
.markdown-card strong { color: var(--ink); }
.markdown-card a {
  color: var(--primary);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.markdown-card a:hover { color: var(--accent); text-decoration-thickness: 3px; }
.markdown-card a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
.markdown-card img { display: block; width: 100%; margin: 28px 0; }
.markdown-card blockquote { margin: 28px 0; padding: 20px 24px; border-left: 3px solid var(--primary); background: var(--soft); }
.markdown-card code { padding: 2px 6px; background: var(--soft); }
.drawer-backdrop, .legal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10,15,25,.58);
  backdrop-filter: blur(6px);
}
.cart-drawer {
  position: fixed;
  inset: 16px 16px 16px auto;
  z-index: 90;
  width: min(920px, calc(100vw - 32px));
  overflow: auto;
  background: var(--surface);
  box-shadow: 0 32px 100px rgba(10,15,25,.28);
  padding: 36px;
}
.cart-drawer.cart-confirmation { inset: 50% auto auto 50%; width: min(620px,calc(100vw - 32px)); max-height: calc(100vh - 32px); transform: translate(-50%,-50%); }
.drawer-close {
  position: absolute;
  right: 24px;
  top: 22px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.drawer-close:hover { transform: rotate(4deg); border-color: var(--ink); background: var(--soft); }
.drawer-close:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent); outline-offset: 2px; }
.close-icon { position: relative; display: block; width: 16px; height: 16px; }
.close-icon::before, .close-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
  border-radius: 999px;
  background: currentColor;
}
.close-icon::before { transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }
.cart-heading { margin-bottom: 28px; }
.cart-heading > span { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.cart-heading h2 { margin: 6px 0; font-size: 48px; letter-spacing: -.055em; }
.cart-heading p { margin: 0; color: var(--muted); }
.cart-layout { display: grid; grid-template-columns: 1fr minmax(330px, .82fr); gap: 32px; }
.cart-list { min-width: 0; }
.cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-image { width: 92px; height: 108px; object-fit: contain; object-position: center; background: var(--soft); }
.cart-item-copy { min-width: 0; }
.cart-item-copy b { display: block; font-size: 16px; }
.cart-item-copy p { margin: 5px 0; color: var(--muted); font-size: 12px; }
.cart-item-copy strong { font-size: 15px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--surface); }
.remove {
  grid-column: 2;
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 12px;
  text-decoration: underline;
}
.checkout-panel { align-self: start; padding: 24px; background: var(--soft); }
.cart-summary { display: grid; gap: 10px; margin-bottom: 22px; }
.cart-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cart-summary span { color: var(--muted); }
.cart-summary .summary-total { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.summary-total strong { font-size: 26px; }
.delivery-box small { color: var(--muted); line-height: 1.5; }
.legal-check {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: start;
  gap: 9px !important;
  padding: 12px;
  background: var(--surface);
  cursor: pointer;
}
.legal-check > span { min-width: 0; line-height: 1.45; }
.legal-check button { border: 0; background: transparent; color: var(--primary); padding: 0; font: inherit; font-weight: 700; line-height: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal-modal { position: fixed; inset: 4vh max(16px, calc((100vw - 920px) / 2)); z-index: 100; overflow: auto; }
.legal-card { min-height: 80vh; }
.legal-modal-backdrop { z-index: 95; }
.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  width: min(760px, calc(100vw - 32px));
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 22px 70px rgba(10,15,25,.22);
  padding: 16px;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}
.cookie-notice-mark { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); box-shadow: inset 0 0 0 8px color-mix(in srgb, var(--surface) 18%, transparent); }
.cookie-notice-mark::before, .cookie-notice-mark::after { content: ""; position: absolute; border-radius: 50%; background: var(--surface); }
.cookie-notice-mark::before { width: 7px; height: 7px; left: 10px; top: 10px; box-shadow: 12px 5px 0 var(--surface), 3px 14px 0 var(--surface); }
.cookie-notice-mark::after { width: 14px; height: 14px; right: -2px; top: -2px; }
.cookie-notice-copy { min-width: 0; }
.cookie-notice-copy strong { display: block; color: var(--ink); font-size: 14px; }
.cookie-notice-copy p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cookie-notice-link { border: 0; background: transparent; color: var(--primary); padding: 0; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.cookie-notice-accept { min-height: 40px; border: 1px solid var(--primary); border-radius: 999px; background: var(--primary); color: white; padding: 0 20px; font-size: 13px; font-weight: 850; }
.cookie-notice-accept:hover { filter: brightness(.94); transform: translateY(-1px); }
.cookie-notice-link:focus-visible, .cookie-notice-accept:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent); outline-offset: 3px; }
.order-success {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 104px);
  padding: 60px;
  text-align: center;
}
.cart-confirmation .order-success { min-height: 0; padding: clamp(28px,6vw,64px) 20px; }
.payment-spinner { width: 68px; height: 68px; border: 5px solid var(--soft); border-top-color: var(--primary); border-radius: 50%; animation: payment-spin .8s linear infinite; }
@keyframes payment-spin { to { transform: rotate(360deg); } }
.success-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #dcfae6;
  color: #087443;
  font-size: 34px;
}
.order-success p { margin: 24px 0 0; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 750; }
.order-success h2 { margin: 8px 0 14px; font-size: 52px; letter-spacing: -.055em; }
.order-success > span:not(.success-mark) { max-width: 500px; color: var(--muted); line-height: 1.6; }
.order-success .primary { margin-top: 28px; }
.payment-result-page { min-height: 72vh; display: grid; place-items: center; padding: clamp(48px,8vw,110px) 20px; }
.payment-result-card { width: min(680px,100%); display: grid; justify-items: center; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 28px 90px rgba(10,15,25,.12); padding: clamp(32px,6vw,70px); text-align: center; }
.payment-result-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb,var(--primary) 14%,var(--soft)); color: var(--primary); font-size: 32px; font-weight: 900; }
.payment-result-card[data-status="paid"] .payment-result-mark { background: #dcfae6; color: #087443; }
.payment-result-card[data-status="failed"] .payment-result-mark { background: #fee2e2; color: #b91c1c; }
.payment-result-card > p { margin: 22px 0 4px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.payment-result-card h1 { margin: 8px 0 16px; font-size: clamp(34px,6vw,62px); letter-spacing: -.055em; }
.payment-result-card [data-payment-message] { max-width: 540px; color: var(--muted); line-height: 1.65; }
.payment-result-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.secondary-link { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

/* Nova — плотный современный каталог */
body[data-theme="nova"] { --primary: #165dff; --accent: #ff3b8d; --ink: #102044; --page: #f3f6fb; --soft: #edf2fb; }
.header-nova { display: block; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-nova .header-main { display: flex; align-items: center; gap: 18px; width: min(calc(100% - 48px), var(--max)); margin: auto; min-height: 72px; }
.header-nova .brand { flex: 0 0 auto; }
.header-nova .brand-mark { border-radius: 12px; background: var(--primary); }
.catalog-trigger { padding: 12px 18px; border-radius: 12px; background: var(--primary); color: white; font-weight: 750; }
.header-search { display: flex; flex: 1; min-width: 180px; height: 44px; border: 2px solid var(--primary); border-radius: 12px; overflow: hidden; }
.header-search input { min-width: 0; flex: 1; border: 0; padding: 0 14px; }
.header-search button { border: 0; background: var(--primary); color: white; padding: 0 18px; font-weight: 700; }
.header-nova .site-nav { margin-left: auto; }
.header-nova .header-categories { display: flex; gap: 20px; width: min(calc(100% - 48px), var(--max)); margin: auto; overflow-x: auto; padding: 0 0 12px; }
.header-categories a { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 650; }
.hero-nova {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
  min-height: 460px;
  padding: 54px;
  border-radius: 24px;
  background: linear-gradient(135deg,#102044,#255ff4);
  background-position: center;
  background-size: cover;
  color: white;
}
.hero-nova .hero-copy { max-width: 780px; }
.hero-nova h1 { margin-top: 14px; font-size: clamp(52px, 8vw, 112px); line-height: .9; }
.hero-nova p { max-width: 620px; color: rgba(255,255,255,.72); font-size: 19px; }
.hero-nova .eyebrow { color: #bdd0ff; }
.hero-nova .primary { background: white; color: var(--ink); }
.hero-nova .secondary { border-color: rgba(255,255,255,.35); background: transparent; color: white; }
.hero-offer { padding: 24px; border-radius: 18px; background: rgba(255,255,255,.94); color: var(--ink); }
.hero-offer span, .hero-offer small { display: block; color: var(--muted); }
.hero-offer strong { display: block; margin: 8px 0; font-size: 58px; line-height: 1; }
.catalog-nova { padding-top: 64px; }
.catalog-nova .product-grid { gap: 12px; }
.card-nova { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(16,32,68,.06); }
.card-nova .product-image, .card-nova .image-placeholder { aspect-ratio: 1 / 1.22; }
.card-nova .product-body { display: grid; gap: 10px; padding: 16px; }
.card-nova .add-button { width: 100%; min-height: 42px; border-radius: 10px; }

/* Pulse — витрина нескольких предложений */
body[data-theme="pulse"] { --primary: #19de72; --accent: #7b28ff; --ink: #f7f7f8; --muted: #9da3a5; --line: #303236; --surface: #1b1c1e; --soft: #242629; --page: #111214; }
.header-pulse { width: min(calc(100% - 48px), var(--max)); min-height: 92px; margin: auto; background: var(--page); color: white; }
.header-pulse .brand-mark { border-radius: 50%; background: white; color: #111; }
.header-pulse .featured-pill { margin-right: auto; padding: 12px 18px; border-radius: 14px; background: #133623; color: var(--primary); font-weight: 700; }
.featured-pill span { display: block; margin-bottom: 2px; color: #77a488; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.header-pulse .site-nav a { color: #b8bcbe; }
.header-pulse .cart-count { background: var(--primary); color: #08120c; }
.hero-pulse {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  align-items: center;
  min-height: 680px;
  overflow: hidden;
  color: white;
}
.pulse-copy { padding: 64px 0 64px 16px; }
.hero-pulse h1 { max-width: 700px; margin-top: 18px; font-size: clamp(54px, 8vw, 124px); line-height: .92; }
.hero-pulse p { max-width: 560px; font-size: 19px; }
.hero-pulse .eyebrow { color: var(--primary); }
.hero-pulse .primary { background: var(--primary); color: #07140c; }
.pulse-visual { position: relative; display: grid; place-items: center; min-height: 640px; }
.pulse-visual::before {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.74);
  box-shadow: 0 0 100px rgba(25,222,114,.22);
}
.pulse-hero-image { position: relative; z-index: 1; width: min(72%, 600px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.pulse-orbit { display: grid; place-items: center; width: 380px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 36% 28%,#2aff8c,#123f27 42%,#17191b 43%); }
.pulse-orbit span { color: var(--primary); font-size: 180px; }
.pulse-sticker { position: absolute; right: 3%; top: 14%; z-index: 2; transform: rotate(8deg); padding: 22px; border-radius: 20px; background: var(--accent); color: white; font-size: 18px; font-weight: 850; text-transform: uppercase; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(calc(100% - 48px), var(--max));
  margin: -38px auto 0;
  position: relative;
  z-index: 2;
}
.trust-row div { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.trust-row strong, .trust-row span { display: block; }
.trust-row span { margin-top: 6px; color: var(--muted); }
.catalog-pulse { padding-top: 120px; }
.catalog-pulse .catalog-header h2 { max-width: 900px; }
.catalog-pulse .catalog-search input, .catalog-pulse .category-navigation a { background: var(--surface); color: white; }
.catalog-pulse .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.card-pulse { display: flex; flex-direction: column; min-height: 620px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.pulse-card-top { display: flex; justify-content: space-between; padding: 18px 20px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.card-pulse .product-media { margin: 0 20px; border-radius: 16px; }
.card-pulse .product-image, .card-pulse .image-placeholder { aspect-ratio: 1.5 / 1; }
.card-pulse .product-body { display: flex; flex: 1; flex-direction: column; padding: 24px 20px 20px; }
.card-pulse .product-body h3 { font-size: 28px; }
.card-pulse .price-row { margin-top: auto; padding-top: 26px; }
.card-pulse .price-row strong { font-size: 32px; }
.card-pulse .add-button { width: 100%; margin-top: 18px; background: #2a2c2f; color: white; }
.card-pulse:hover .add-button { background: var(--primary); color: #07140c; }
.story-pulse { min-height: 420px; border-radius: 24px; background: var(--accent); }
.lead-pulse, .product-page-pulse .product-gallery, .product-page-pulse .product-detail, .content-pulse .markdown-card { border: 1px solid var(--line); background: var(--surface); color: white; }
.lead-pulse input, .lead-pulse textarea, .cart-pulse input, .cart-pulse textarea, .cart-pulse select { border-color: var(--line); background: #121315; color: white; }
.footer-pulse { color: white; }
.footer-pulse .footer-social-links a { padding: 8px 11px; border: 1px solid #303236; border-radius: 999px; color: #b8bcbe; }
.footer-pulse .footer-social-links a:hover { border-color: var(--primary); background: #133623; color: var(--primary); }
.footer-pulse .footer-social-logo, .footer-pulse .footer-social-fallback { border: 0; border-radius: 50%; background: #2a2c2f; color: var(--primary); }
.cart-pulse, .cart-pulse .drawer-close { background: #17181a; color: white; }
.cart-pulse .checkout-panel { background: #232528; }

/* Atelier — редакционный магазин */
body[data-theme="atelier"] { --primary: #1e2020; --accent: #c4292f; --ink: #1d2020; --muted: #707676; --line: #cfd4d1; --surface: #f2f3ef; --soft: #e9ece7; --page: #e8ece9; --radius: 0; }
.header-atelier { justify-content: space-between; min-height: 76px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid var(--line); background: rgba(242,243,239,.96); }
.header-atelier .brand-mark { border-radius: 0; }
.header-atelier .site-nav { position: absolute; left: 50%; transform: translateX(-50%); }
.header-atelier .cart-count { border-radius: 0; }
.hero-atelier {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 720px;
  padding: 72px;
  border: 1px solid #bac2be;
  background: #262a29;
  background-size: cover;
  background-position: center;
  color: white;
}
.hero-atelier .hero-copy { max-width: 860px; }
.hero-atelier h1 { margin-top: 16px; font-size: clamp(62px, 9vw, 142px); line-height: .86; }
.hero-atelier p { max-width: 580px; color: rgba(255,255,255,.7); font-size: 17px; }
.hero-atelier .eyebrow { color: white; }
.hero-atelier .primary { margin-top: 24px; border-radius: 0; background: white; color: #1d2020; }
.hero-index { position: absolute; right: 34px; top: 28px; font-size: 12px; letter-spacing: .14em; }
.catalog-atelier .catalog-header { align-items: start; border-top: 1px solid var(--ink); padding-top: 18px; }
.catalog-atelier .catalog-header h2 { text-transform: uppercase; }
.catalog-atelier .category-navigation a, .catalog-atelier .catalog-search input, .catalog-atelier .catalog-search button { border-radius: 0; }
.catalog-atelier .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 14px; }
.card-atelier { background: transparent; }
.card-atelier .product-media { border: 1px solid var(--line); background: var(--surface); }
.card-atelier .product-image, .card-atelier .image-placeholder { aspect-ratio: 1 / 1.12; }
.card-atelier .product-body { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.card-atelier .add-button { grid-column: 2 / 4; border-radius: 0; background: var(--ink); }
.card-atelier .price-row { justify-self: end; }
.product-page-atelier .product-gallery, .product-page-atelier .product-detail, .content-atelier .markdown-card, .lead-atelier { border: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.product-page-atelier .product-main-image { object-fit: contain; background: #fff; }
.product-page-atelier .primary, .lead-atelier .primary { border-radius: 0; }
.footer-atelier { grid-template-columns: 2fr repeat(2, .7fr); background: #dbe1e4; width: 100%; max-width: none; padding: 72px max(24px, calc((100vw - var(--max)) / 2)); }
.footer-atelier.has-social { grid-template-columns: 2fr repeat(3, .7fr); }
.footer-wordmark { overflow: hidden; font-size: clamp(64px, 10vw, 170px); font-weight: 850; letter-spacing: -.08em; line-height: .8; text-transform: uppercase; }
.footer-atelier > div:not(.footer-wordmark) { display: flex; flex-direction: column; gap: 9px; }
.footer-atelier .footer-social-links { display: grid; gap: 0; }
.footer-atelier .footer-social-links a { padding: 9px 0; border-bottom: 1px solid var(--ink); color: var(--ink); }
.footer-atelier .footer-social-logo, .footer-atelier .footer-social-fallback { border-radius: 0; border-color: var(--ink); }
.cart-atelier, .cart-atelier .drawer-close, .cart-atelier input, .cart-atelier textarea, .cart-atelier select { border-radius: 0; }

/* Mono — галерейный минимализм */
body[data-theme="mono"] { --primary: #111111; --accent: #e72132; --ink: #111111; --muted: #777; --line: #e8e8e8; --surface: #fff; --soft: #fafafa; --page: #fff; --radius: 0; }
.header-mono { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 118px; padding: 0 max(32px, calc((100vw - 1680px) / 2)); background: rgba(255,255,255,.96); }
.header-mono .brand { justify-self: center; }
.header-mono .brand-mark { width: 62px; height: 62px; border-radius: 0; background: transparent; color: var(--ink); font-size: 18px; }
.header-mono .header-actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.header-mono .site-nav { justify-self: start; }
.header-mono .cart-count { border-radius: 0; background: white; color: var(--ink); border: 1px solid var(--ink); }
.hero-mono {
  display: grid;
  grid-template-columns: .7fr 1.6fr .7fr;
  align-items: end;
  gap: 30px;
  width: min(calc(100% - 80px), 1680px);
  min-height: 650px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--ink);
}
.mono-title { align-self: start; padding-top: 80px; }
.mono-title span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.hero-mono h1 { margin-top: 20px; font-size: clamp(54px, 7vw, 118px); line-height: .88; text-transform: uppercase; }
.mono-visual { align-self: stretch; display: grid; place-items: center; min-height: 620px; background: #fbfbfb; }
.mono-hero-image { width: 100%; height: 100%; max-height: 680px; object-fit: contain; }
.mono-note { align-self: end; padding-bottom: 30px; }
.mono-note p { font-size: 15px; }
.mono-note a { display: inline-block; margin-top: 20px; border-bottom: 1px solid var(--ink); font-weight: 700; }
.catalog-mono { width: min(calc(100% - 80px), 1680px); }
.catalog-mono .catalog-header h2 { font-weight: 500; text-transform: uppercase; }
.catalog-mono .catalog-search input, .catalog-mono .catalog-search button, .catalog-mono .category-navigation a { border-radius: 0; }
.catalog-mono .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 70px 28px; }
.card-mono { background: white; }
.card-mono .product-media { background: #fff; }
.card-mono .product-image, .card-mono .image-placeholder { aspect-ratio: 1 / 1.08; object-fit: contain; }
.card-mono .product-body { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 16px; }
.card-mono .product-body h3 { font-size: 15px; text-transform: uppercase; }
.card-mono .price-row strong { font-size: 14px; font-weight: 500; }
.card-mono .add-button { grid-column: 2; grid-row: 1 / 3; width: 38px; min-height: 38px; padding: 0; border: 1px solid var(--ink); border-radius: 0; background: white; color: var(--ink); font-size: 20px; }
.story-mono { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; min-height: auto; padding: 36px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: white; color: var(--ink); }
.story-mono span { color: var(--ink); }
.story-mono p { max-width: 700px; margin: 0; font-size: 28px; line-height: 1.35; letter-spacing: -.03em; }
.lead-mono { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding-left: 0; padding-right: 0; }
.lead-mono input, .lead-mono textarea, .lead-mono .primary { border-radius: 0; }
.product-page-mono { width: min(calc(100% - 80px), 1680px); grid-template-columns: 1.4fr .6fr; border-top: 1px solid var(--ink); padding-top: 20px; }
.product-page-mono .product-gallery, .product-page-mono .product-detail { padding-left: 0; padding-right: 0; }
.product-page-mono .product-main-image { object-fit: contain; }
.footer-mono { width: min(calc(100% - 80px), 1680px); }
.footer-mono .footer-social-links { display: grid; gap: 0; }
.footer-mono .footer-social-links a { padding: 8px 0; border-bottom: 1px solid var(--ink); color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.footer-mono .footer-social-logo, .footer-mono .footer-social-fallback { width: 24px; height: 24px; border-radius: 0; border-color: var(--ink); }
.cart-mono, .cart-mono .drawer-close, .cart-mono input, .cart-mono textarea, .cart-mono select, .cart-mono .checkout-panel { border-radius: 0; }

/* Lumen — тёплый lifestyle */
body[data-theme="lumen"] { --primary: #1b554c; --accent: #f06c4f; --ink: #18332e; --muted: #6f7f79; --line: #d9e2dc; --surface: #fffdf8; --soft: #f1f4e9; --page: #f5f0e6; --radius: 24px; }
.header-lumen { width: min(calc(100% - 48px), var(--max)); min-height: 86px; margin: auto; background: rgba(245,240,230,.94); }
.header-lumen .brand-mark { border-radius: 50%; background: var(--primary); }
.header-lumen .site-nav { margin-left: auto; }
.header-lumen .cart-button { padding: 8px 9px 8px 16px; border-radius: 999px; background: var(--surface); }
.header-lumen .cart-count { background: var(--accent); }
.hero-lumen { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; min-height: 650px; }
.lumen-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  min-height: 650px;
  padding: 58px;
  border-radius: 34px;
  background: #dce6d5;
  background-size: cover;
  background-position: center;
  color: white;
}
.lumen-main h1 { max-width: 800px; margin-top: 14px; font-size: clamp(58px, 8vw, 120px); line-height: .88; }
.lumen-main p { max-width: 540px; color: rgba(255,255,255,.82); font-size: 18px; }
.lumen-main .eyebrow { color: white; }
.lumen-main .primary { margin-top: 22px; border-radius: 999px; background: white; color: var(--ink); }
.lumen-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.lumen-card { display: flex; flex-direction: column; justify-content: end; padding: 34px; border-radius: 34px; background: var(--surface); }
.lumen-card span { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.lumen-card strong { margin: 12px 0 30px; font-size: 32px; line-height: 1.05; letter-spacing: -.04em; }
.lumen-card a { font-weight: 750; }
.lumen-card.accent { background: var(--accent); color: white; }
.lumen-card.accent span { color: rgba(255,255,255,.7); }
.catalog-lumen .product-grid { gap: 24px; }
.card-lumen { border-radius: 24px; overflow: hidden; }
.card-lumen .product-image, .card-lumen .image-placeholder { aspect-ratio: 4 / 4.7; }
.card-lumen .product-body { padding: 20px; }
.card-lumen .add-button { width: 100%; border-radius: 999px; }
.story-default { border-radius: 34px; background: var(--primary); }
.lead-lumen, .product-page-lumen .product-gallery, .product-page-lumen .product-detail, .content-lumen .markdown-card { border-radius: 28px; }
.lead-lumen .primary { border-radius: 999px; background: var(--accent); }
.cart-lumen { border-radius: 28px; }
.cart-lumen .checkout-panel { border-radius: 20px; }
.footer-lumen .footer-social-links a { padding: 7px 12px 7px 7px; border-radius: 999px; background: var(--surface); color: var(--ink); }
.footer-lumen .footer-social-logo, .footer-lumen .footer-social-fallback { border: 0; border-radius: 50%; background: var(--soft); }
.footer-nova .footer-social-links a { padding: 7px 11px 7px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.footer-nova .footer-social-logo, .footer-nova .footer-social-fallback { border: 0; border-radius: 8px; background: var(--soft); }

/* Адаптивная композиция и элементы формы */
body[data-has-hero="false"] .catalog-section { padding-top: 52px; }
.hero-nova, .hero-atelier {
  display: flex;
  align-items: flex-end;
  min-height: clamp(520px, 68vw, 760px);
  padding: clamp(32px, 6vw, 78px);
  background-position: center;
  background-size: cover;
  color: white;
}
.hero-pulse, .hero-mono, .hero-lumen { border-radius: 24px; }
.hero-pulse { padding: 0; }
.hero-pulse .pulse-copy { align-self: center; }
.hero-pulse .pulse-copy h1 { margin: 0; }
.hero-mono { min-height: 650px; padding-bottom: 30px; color: var(--ink); }
.hero-mono .mono-title { align-self: center; padding: 30px 0; }
.hero-mono .mono-title p { max-width: 420px; }
.hero-lumen { display: block; min-height: 650px; }
.hero-lumen .lumen-main { width: 100%; }
.hero > .hero-copy { width: min(860px, 100%); }
.hero > .hero-copy h1 {
  margin: 0;
  font-size: clamp(54px, 9vw, 136px);
  line-height: .87;
}
.hero > .hero-copy p { max-width: 620px; color: rgba(255,255,255,.78); font-size: 18px; }
.hero > .hero-copy .primary { margin-top: 24px; background: white; color: #111; }
.story-banner {
  min-height: auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
}
.story-banner img { display: block; width: 100%; max-height: 680px; object-fit: cover; }
.catalog-section.density-curated .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 44px); }
.catalog-section.density-curated .product-card .product-body h3 { font-size: clamp(24px, 3vw, 40px); }
.catalog-section.density-curated .product-card .product-image,
.catalog-section.density-curated .product-card .image-placeholder { aspect-ratio: 4 / 3.8; }
.catalog-section.density-curated .card-pulse { min-height: 0; }
.catalog-section.density-dense .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.catalog-section.density-dense .product-body { padding: 12px; }
.catalog-section.density-dense .product-body h3 { font-size: 16px; }
.catalog-section.density-dense .add-button { min-height: 40px; padding: 0 12px; }
.checkout-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.options input[type="checkbox"], .legal-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  border: 1.5px solid color-mix(in srgb, var(--ink) 32%, var(--line));
  border-radius: 6px;
  background: var(--surface);
}
.options input[type="checkbox"]::before, .legal-check input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 5px;
  transform: rotate(-45deg) scale(0);
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transition: transform .12s ease;
}
.options input[type="checkbox"]:checked, .legal-check input[type="checkbox"]:checked {
  border-color: var(--primary);
  background: var(--primary);
}
.options input[type="checkbox"]:checked::before, .legal-check input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}
.contact-methods { min-width: 0; margin: 2px 0; padding: 0; border: 0; }
.contact-methods legend { margin-bottom: 9px; font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.contact-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.contact-method-grid label { display: block; min-width: 0; cursor: pointer; }
.contact-method-grid input { position: absolute; width: 1px; height: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.contact-method-grid span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.contact-method-grid input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}
.contact-method-grid input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent);
  outline-offset: 2px;
}
.cart-pulse .contact-method-grid span { background: #121315; }
.cart-pulse .contact-method-grid input:checked + span { background: var(--primary); color: #07140c; }

/* Доводка интерактивных элементов и CMS */
.header-search, .catalog-search { position: relative; overflow: visible; }
.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 45;
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(15,23,42,.16);
  color: var(--ink);
}
.search-suggestions.is-visible { display: block; }
.search-suggestions a { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.search-suggestions a:last-child { border-bottom: 0; }
.search-suggestions a:hover, .search-suggestions a:focus { background: var(--soft); outline: 0; }
.suggestion-image { width: 46px; height: 46px; object-fit: contain; object-position: center; background: var(--soft); }
.search-suggestions b, .search-suggestions small { display: block; line-height: 1.3; }
.search-suggestions small { margin-top: 3px; color: var(--muted); }

.product-detail { overflow-wrap: anywhere; }
.product-detail h1 { line-height: 1.02; }
.options b, .options small, .cart-item-copy { line-height: 1.4; }
.gallery-stage .product-main-image {
  grid-area: 1 / 1;
  will-change: transform, opacity;
}
.gallery-stage.is-gallery-animating { cursor: progress; }
.product-gallery.is-gallery-animating .gallery-controls button,
.product-gallery.is-gallery-animating .gallery-thumbs button { pointer-events: none; }
.gallery-slide-out-next { animation: gallery-out-next .18s cubic-bezier(.4,0,1,1) both; }
.gallery-slide-out-previous { animation: gallery-out-previous .18s cubic-bezier(.4,0,1,1) both; }
.gallery-slide-in-next { animation: gallery-in-next .22s cubic-bezier(0,.72,.2,1) both; }
.gallery-slide-in-previous { animation: gallery-in-previous .22s cubic-bezier(0,.72,.2,1) both; }
@keyframes gallery-out-next { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-34%); opacity: 0; } }
@keyframes gallery-out-previous { from { transform: translateX(0); opacity: 1; } to { transform: translateX(34%); opacity: 0; } }
@keyframes gallery-in-next { from { transform: translateX(34%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes gallery-in-previous { from { transform: translateX(-34%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.gallery-controls button { display: grid; place-items: center; transition: transform .18s ease, background .18s ease; }
.gallery-controls button:hover { transform: scale(1.07); background: white; }
.gallery-chevron { width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.gallery-chevron-left { transform: rotate(-135deg); margin-left: 4px; }
.gallery-chevron-right { transform: rotate(45deg); margin-right: 4px; }
.gallery-thumbs { align-items: center; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-meta { flex: 0 0 auto; margin-left: auto; padding: 8px 2px 8px 12px; color: var(--muted); font-size: 12px; font-weight: 750; }

.quantity-stepper { display: grid; grid-template-columns: 38px 48px 38px; height: 48px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.quantity-stepper button, .quantity-stepper input { width: auto; height: 46px; min-width: 0; border: 0; border-radius: 0; background: transparent; padding: 0; text-align: center; font-size: 16px; color: var(--ink); }
.quantity-stepper button { cursor: pointer; font-size: 20px; }
.quantity-stepper button:hover { background: var(--soft); }
.cart-single { color: var(--muted); font-size: 12px; white-space: nowrap; }

.cart-drawer { inset: 0 0 0 auto; width: min(920px, 100vw); border-radius: 0; }
.cart-empty { display: grid; place-items: center; min-height: calc(100dvh - 170px); padding: 50px; text-align: center; }
.cart-empty strong { font-size: clamp(32px, 5vw, 58px); letter-spacing: -.05em; }
.cart-empty p { max-width: 440px; color: var(--muted); line-height: 1.6; }
.cart-empty .primary { margin-top: 12px; }

.custom-select { position: relative; display: grid; gap: 7px; min-width: 0; }
.custom-select-label { font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.custom-select-button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 15px; color: var(--ink); text-align: left; font-weight: 700; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.custom-select-button:hover { border-color: color-mix(in srgb, var(--primary) 58%, var(--line)); }
.custom-select-button:focus-visible, .custom-select.is-open .custom-select-button { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.custom-select-button i { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.custom-select.is-open .custom-select-button i { transform: rotate(225deg) translate(-2px,-2px); }
.custom-select-list { position: absolute; left: 0; right: 0; top: calc(100% + 7px); z-index: 30; display: none; max-height: min(300px, 46vh); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 20px 54px rgba(15,23,42,.2); padding: 5px; }
.custom-select.opens-up .custom-select-list { top: auto; bottom: calc(100% + 7px); }
.custom-select.is-open .custom-select-list { display: grid; }
.custom-select-list button { min-height: 44px; border: 0; border-radius: 8px; background: transparent; padding: 10px 12px; color: var(--ink); text-align: left; font-weight: 650; }
.custom-select-list button:hover, .custom-select-list button:focus-visible { outline: 0; background: var(--soft); color: var(--primary); }
.custom-select-list button[aria-selected="true"] { background: color-mix(in srgb, var(--primary) 12%, var(--soft)); color: var(--primary); }
.cart-nova .custom-select-button { border-radius: 12px; }
.cart-nova .custom-select-list { border-radius: 14px; }
.cart-pulse .custom-select-button { border-color: #3a3d42; background: #121315; color: white; }
.cart-pulse .custom-select-list { border-color: #3a3d42; background: #17181a; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.cart-pulse .custom-select-list button { color: #f7f7f8; }
.cart-pulse .custom-select-list button:hover, .cart-pulse .custom-select-list button:focus-visible, .cart-pulse .custom-select-list button[aria-selected="true"] { background: #133623; color: var(--primary); }
.cart-atelier .custom-select-button, .cart-atelier .custom-select-list, .cart-atelier .custom-select-list button { border-radius: 0; }
.cart-atelier .custom-select-list { padding: 0; box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 15%, transparent); }
.cart-atelier .custom-select-list button { border-bottom: 1px solid var(--line); }
.cart-mono .custom-select-button, .cart-mono .custom-select-list, .cart-mono .custom-select-list button { border-radius: 0; }
.cart-mono .custom-select-button { border-width: 0 0 1px; padding-left: 0; padding-right: 4px; }
.cart-mono .custom-select-list { padding: 0; box-shadow: 0 12px 0 rgba(0,0,0,.06); }
.cart-lumen .custom-select-button { border-radius: 999px; padding-left: 18px; padding-right: 18px; }
.cart-lumen .custom-select-list { border-radius: 20px; padding: 7px; }
.cart-lumen .custom-select-list button { border-radius: 14px; }
.delivery-box { display: grid; gap: 7px; }

@media (prefers-reduced-motion: reduce) {
  .gallery-slide-out-next, .gallery-slide-out-previous, .gallery-slide-in-next, .gallery-slide-in-previous { animation-duration: .01ms; }
}

.options input[type="checkbox"], .legal-check input[type="checkbox"] { position: relative; flex: 0 0 auto; }
.options input[type="checkbox"]::before, .legal-check input[type="checkbox"]::before {
  left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transform-origin: center;
}
.options input[type="checkbox"]:checked::before, .legal-check input[type="checkbox"]:checked::before { transform: rotate(45deg) scale(1); }

.legal-check input[type="checkbox"] {
  position: relative;
  align-self: start;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  margin: 1px 0 0;
  padding: 0;
}
.legal-check input[type="checkbox"]::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -58%) rotate(45deg) scale(0);
  transform-origin: center;
}
.legal-check input[type="checkbox"]:checked::before {
  transform: translate(-50%, -58%) rotate(45deg) scale(1);
}
.legal-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.cms-block { position: relative; width: min(calc(100% - 48px), var(--max)); margin: 72px auto; }
.cms-width-wide { width: min(calc(100% - 32px), 1680px); }
.cms-width-full { width: 100%; max-width: none; }
.cms-text_image, .cms-image_text { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 480px; background: var(--surface); }
.cms-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 6vw, 82px); }
.cms-copy h2 { margin: 8px 0 18px; font-size: clamp(38px, 6vw, 84px); line-height: .95; letter-spacing: -.055em; }
.cms-body, .cms-body p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.cms-copy .primary { margin-top: 22px; }
.cms-kicker { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cms-image { display: block; min-height: 420px; overflow: hidden; }
.cms-image img { width: 100%; height: 100%; object-fit: cover; }
.cms-full_image { display: flex; align-items: end; min-height: min(72vw, 760px); background-position: center; background-size: cover; color: white; }
.cms-full_image .cms-body, .cms-full_image .cms-body p { color: rgba(255,255,255,.8); }
.cms-gallery .cms-copy, .cms-products .cms-copy, .cms-categories .cms-copy { padding-left: 0; padding-right: 0; }
.cms-rich_text .cms-copy, .cms-promo .cms-copy {
  box-sizing: border-box;
  width: 100%;
  min-height: clamp(320px, 32vw, 440px);
  padding: clamp(36px, 5vw, 72px);
}
.cms-rich_text .cms-copy > *, .cms-promo .cms-copy > * { max-width: min(100%, 980px); }
.cms-gallery-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 12px; }
.cms-gallery-image { grid-column: span 4; width: 100%; height: 420px; object-fit: cover; }
.cms-gallery-image:nth-child(1) { grid-column: span 7; }
.cms-gallery-image:nth-child(2) { grid-column: span 5; }
.cms-category-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.cms-category-grid a { display: flex; justify-content: space-between; gap: 20px; padding: 24px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 750; }
.cms-index { position: absolute; z-index: 2; top: 20px; left: 20px; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.cms-pulse { border: 1px solid var(--line); background: var(--surface); color: white; }
.cms-pulse .cms-image { clip-path: circle(45% at 50% 50%); }
.cms-atelier { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: transparent; }
.cms-atelier .cms-copy h2 { text-transform: uppercase; }
.cms-atelier .primary { border-radius: 0; }
.cms-mono { background: white; }
.cms-mono.cms-text_image .cms-copy, .cms-mono.cms-image_text .cms-copy { padding-left: 0; }
.cms-mono .cms-copy h2 { font-weight: 500; text-transform: uppercase; }
.cms-mono .primary { border-radius: 0; background: white; color: var(--ink); border-color: var(--ink); }
.cms-lumen { overflow: hidden; border-radius: 34px; background: var(--surface); }
.cms-lumen .primary { border-radius: 999px; background: var(--accent); }
.cms-color-contrast { background: var(--ink); color: white; }
.cms-color-contrast .cms-body, .cms-color-contrast .cms-body p { color: rgba(255,255,255,.72); }
.catalog-mono.density-curated .product-body h3 { font-size: 15px; }
.catalog-mono.density-curated .product-image, .catalog-mono.density-curated .image-placeholder { aspect-ratio: 1 / .92; max-height: 460px; }
.card-mono .add-button { grid-column: 1 / -1; grid-row: auto; width: 100%; min-height: 40px; font-size: 12px; text-transform: uppercase; }

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-section.density-dense .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .header-nova .site-nav, .header-nova .header-categories { display: none; }
  .header-nova .header-search { margin-left: auto; }
  .hero-pulse { grid-template-columns: .9fr 1.1fr; }
  .catalog-pulse .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-mono { grid-template-columns: .8fr 1.4fr; }
  .mono-note { display: none; }
  .footer-wordmark { grid-column: 1 / -1; }
  .footer-atelier, .footer-atelier.has-social { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero, .catalog-section, .story-banner, .lead-section, .site-footer, .product-page, .content-page,
  .header-pulse, .header-lumen, .header-nova .header-main {
    width: min(calc(100% - 28px), var(--max));
  }
  .site-header { flex-wrap: wrap; gap: 14px; }
  .site-nav {
    display: none;
    order: 5;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-button { display: inline-flex; }
  .header-pulse .featured-pill { display: none; }
  .header-pulse .site-nav, .header-lumen .site-nav { margin: 0; }
  .header-atelier { padding: 16px; }
  .header-atelier .site-nav { position: static; transform: none; }
  .header-mono { display: flex; min-height: 84px; padding: 0 14px; }
  .header-mono .site-nav { order: 5; }
  .header-mono .brand { justify-self: auto; margin-right: auto; }
  .header-mono .header-actions { margin-left: auto; }
  .header-nova .header-main { min-height: 68px; }
  .header-nova .catalog-trigger { display: none; }
  .header-search { order: 5; flex-basis: 100%; margin-bottom: 10px; }
  .hero-nova, .hero-pulse, .hero-lumen, .hero-mono { grid-template-columns: 1fr; }
  .hero-nova { min-height: 600px; }
  .hero-offer { max-width: 260px; }
  .pulse-copy { padding: 70px 10px 20px; }
  .pulse-visual { min-height: 460px; }
  .trust-row { grid-template-columns: 1fr; margin-top: 20px; }
  .hero-atelier { min-height: 620px; padding: 42px; }
  .hero-mono { width: calc(100% - 28px); min-height: auto; }
  .mono-title { padding-top: 30px; }
  .mono-visual { min-height: 500px; }
  .lumen-main { min-height: 560px; }
  .lumen-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .catalog-header { align-items: stretch; flex-direction: column; }
  .catalog-search { width: 100%; }
  .product-grid, .catalog-atelier .product-grid, .catalog-mono .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-section.density-dense .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-section { grid-template-columns: 1fr; min-width: 0; padding: 38px; }
  .product-page, .product-page-mono { grid-template-columns: 1fr; width: calc(100% - 28px); }
  .gallery-stage { max-height: min(70vh, 680px); }
  .site-footer, .site-footer.has-social { grid-template-columns: 1fr 1fr; }
  .cart-drawer { inset: 0 0 0 auto; width: min(920px, 100vw); padding: 28px; }
  .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .cart-label, .search-toggle { display: none; }
  .brand-name { max-width: 140px; }
  .hero { margin-top: 10px; }
  .hero-nova, .hero-atelier, .lumen-main { padding: 28px; }
  .hero-nova h1, .hero-pulse h1, .hero-atelier h1, .hero-mono h1, .lumen-main h1 { font-size: 48px; }
  .hero-nova { min-height: 540px; }
  .hero-offer { padding: 18px; }
  .pulse-visual { min-height: 380px; }
  .pulse-sticker { right: 0; padding: 14px; font-size: 13px; }
  .lumen-main { min-height: 500px; }
  .lumen-side { grid-template-columns: 1fr; }
  .catalog-section { padding-top: 70px; }
  .catalog-header h2 { font-size: 42px; }
  .catalog-search { align-items: stretch; flex-wrap: wrap; }
  .catalog-search input { flex-basis: 100%; }
  .product-grid, .catalog-pulse .product-grid, .catalog-atelier .product-grid, .catalog-mono .product-grid {
    grid-template-columns: 1fr;
  }
  .catalog-section.density-curated .product-grid, .catalog-section.density-dense .product-grid { grid-template-columns: 1fr; }
  .contact-method-grid { grid-template-columns: 1fr; }
  .card-pulse { min-height: 560px; }
  .story-banner { min-height: 320px; padding: 30px; }
  .story-banner h2 { font-size: 40px; }
  .story-mono { grid-template-columns: 1fr; }
  .lead-section { padding: 28px 0; background: transparent; }
  .lead-copy h2 { font-size: 42px; }
  .site-footer, .site-footer.has-social, .footer-atelier, .footer-atelier.has-social { grid-template-columns: 1fr; gap: 26px; padding: 38px 0; }
  .footer-atelier { width: 100%; padding-left: 18px; padding-right: 18px; }
  .footer-wordmark { font-size: 58px; }
  .product-gallery { padding: 6px; }
  .gallery-stage { max-height: min(68vh, 480px); }
  .product-detail { padding: 28px 4px; }
  .product-detail h1 { font-size: 42px; }
  .back-link { margin-bottom: 36px; }
  .buy-panel { align-items: stretch; flex-direction: column; }
  .buy-panel input { width: 100%; }
  .markdown-card { padding: 28px 4px; }
  .markdown-card h1 { font-size: 44px; }
  .cart-drawer { inset: 0; width: 100vw; padding: 22px 16px; }
  .cart-heading h2 { font-size: 40px; }
  .cart-item { grid-template-columns: 72px minmax(0,1fr); }
  .cart-image { width: 72px; height: 86px; }
  .qty { grid-column: 2; }
  .checkout-panel { padding: 18px; }
  .cms-block { width: calc(100% - 28px); margin: 44px auto; }
  .cms-text_image, .cms-image_text { grid-template-columns: 1fr; }
  .cms-image_text .cms-image { order: 2; }
  .cms-rich_text .cms-copy, .cms-promo .cms-copy { min-height: auto; padding: 30px 22px; }
  .cms-gallery-image, .cms-gallery-image:nth-child(1), .cms-gallery-image:nth-child(2) { grid-column: 1 / -1; height: 320px; }
  .cms-category-grid { grid-template-columns: 1fr; }
  .legal-modal { inset: 0; background: var(--surface); }
  .cookie-notice { bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 20px); grid-template-columns: auto minmax(0, 1fr); gap: 10px; border-radius: 16px; padding: 13px; }
  .cookie-notice-mark { width: 32px; height: 32px; }
  .cookie-notice-copy strong { font-size: 13px; }
  .cookie-notice-copy p { font-size: 11px; }
  .cookie-notice-accept { grid-column: 1 / -1; width: 100%; }
  .order-success { min-height: 100vh; padding: 30px 10px; }
  .order-success h2 { font-size: 40px; }
}
