:root {
  --black: #111111;
  --deep: #080808;
  --white: #ffffff;
  --page: #f7f7f7;
  --soft: #f3f3f3;
  --card: #ffffff;
  --text: #111111;
  --secondary: #5f5f5f;
  --muted: #858585;
  --border: #e4e4e4;
  --soft-border: #ececec;
  --success: #168a45;
  --danger: #e11d26;
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.055);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.09);
  --container: 1440px;
  --header: 70px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { top: 8px; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: var(--black);
  color: #fff;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.brand-sep { width: 1px; height: 22px; background: #5a5a5a; flex: none; }
.brand-name { font-size: 15px; font-weight: 500; color: #e2e2e2; white-space: nowrap; }
.header-promises, .header-tools { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header-tools { margin-left: 8px; }
.promise, .tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f3f3f3;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.tool-link { font-weight: 650; }
.cart-count {
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: #fff;
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
}
.menu-toggle, .drawer { display: none; }
.icon { width: 18px; height: 18px; flex: none; }

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
  border-bottom: 1px solid var(--soft-border);
}
.hero-grid {
  min-height: 320px;
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 18px 0;
}
.hero h1 {
  margin: 0;
  max-width: 620px;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero-lead {
  max-width: 560px;
  margin: 16px 0 0;
  color: #5d5d5d;
  font-size: 21px;
  font-weight: 450;
  line-height: 1.35;
}
.hero-benefits { display: flex; flex-wrap: wrap; gap: 16px 22px; margin: 20px 0 24px; }
.hero-benefits span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 30px;
  border: 0;
  border-radius: 14px;
  background: var(--black);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms, transform 180ms;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn[disabled], .btn.disabled {
  background: #d7d7d7;
  color: #6d6d6d;
  cursor: not-allowed;
  transform: none;
}
.btn-block {
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  height: auto;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.15;
  padding: 8px 6px;
  white-space: normal;
}
.hero-visual {
  min-height: 250px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}
.hero-visual img, .hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
}
.hero-visual img:first-child { grid-row: span 2; min-height: 250px; }

.trust { background: var(--white); border-bottom: 1px solid var(--soft-border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 0; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pager a, .pager span { min-width: 42px; min-height: 42px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; text-align: center; text-decoration: none; color: var(--text); background: #fff; }
.pager span { font-weight: 700; }
.prose { max-width: 760px; }
.prose h2 { margin: 28px 0 8px; font-size: 22px; }
.prose p { line-height: 1.6; }
.contact-card p { margin: 0 0 12px; }
.faq details { border-top: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.trust-item strong { display: block; font-size: 14px; font-weight: 700; }
.trust-item span { display: block; color: var(--secondary); font-size: 13px; }

.section { padding: 36px 0 56px; }
.catalog-page { padding: 16px 0 40px; }
.catalog-page > .container { width: calc(100% - 48px); max-width: none; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 22px; flex-wrap: wrap; min-width: 0; }
.catalog-page .section-head { margin-bottom: 12px; }
.catalog-page .page-title { font-size: 26px; }
.section h2, .page-title { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.section-sub { margin: 6px 0 0; color: var(--secondary); font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; max-width: 100%; }
.field, .select {
  height: 48px;
  border: 1px solid #dddddd;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  font-size: 14px;
}
.field { width: min(280px, 100%); }
.select { min-width: 170px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.card {
  background: var(--card);
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #f6f6f6;
  min-width: 0;
}
.card-media img,
.card-media .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}
.placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #f3f3f3;
}
.card-body { padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.card-category {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #737373;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  min-width: 0;
  overflow-wrap: anywhere;
}
.card-body > .btn,
.card-body > form { margin-top: auto; }
.price { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; overflow-wrap: anywhere; }
.price-pending { margin: 0; font-size: 13px; font-weight: 700; color: var(--secondary); line-height: 1.25; }
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--soft-border);
  min-width: 0;
}
.meta-row span { display: block; min-width: 0; color: #444; font-size: 11px; line-height: 1.3; }
.meta-stock { text-align: right; font-weight: 700; }

.empty-state, .notice, .panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.notice { margin-bottom: 16px; }
.notice strong { display: block; margin-bottom: 4px; }

.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 36px; align-items: start; }
.gallery-main {
  min-height: 520px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 18px;
}
.gallery-main img { width: 100%; height: 520px; object-fit: contain; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; max-width: 100%; padding: 12px 0 4px; }
.thumbs button {
  width: 72px;
  height: 72px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #d5d5d5;
  background: #fff;
  cursor: pointer;
}
.thumbs button.is-active, .pill.is-selected { border: 2px solid var(--black); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-copy .eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.3px; text-transform: uppercase; color: #737373; font-weight: 700; }
.product-copy { min-width: 0; max-width: 100%; }
.product-copy h1 { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.sku { margin: 8px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.option-group { margin-top: 16px; }
.option-group p { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d5d5d5;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}
.pill.is-selected { background: var(--black); color: #fff; }
.pill:disabled { opacity: 0.35; cursor: not-allowed; }
.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  display: inline-block;
  margin-right: 8px;
  vertical-align: -2px;
}
.size-row { display: flex; flex-wrap: wrap; gap: 8px; }
.size-button {
  min-width: 52px;
  height: 46px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #c8c8c8;
  background: #fff;
  color: #111;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.size-button.is-selected {
  background: #111;
  border-color: #111;
  color: #fff;
}
.size-button.is-unavailable { color: #a3a3a3; }
.selected-size { margin: 10px 0 0; font-size: 14px; color: #444; }
.selected-size strong, .selected-size { font-weight: 650; }
.stock-line { margin: 14px 0; font-weight: 700; }
.stock-line.ok { color: var(--success); }
.delivery-note { color: var(--secondary); font-size: 14px; margin: 0 0 16px; }
.accordion { margin-top: 28px; display: grid; gap: 10px; }
.accordion details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.accordion summary { cursor: pointer; font-weight: 700; }
.accordion p { color: var(--secondary); }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr); gap: 24px; align-items: start; }
.line { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--soft-border); }
.line img, .line .placeholder { width: 92px; height: 92px; object-fit: contain; background: #fafafa; border-radius: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty button, .qty input { width: 36px; height: 36px; border: 0; background: #fff; text-align: center; }
.remove { background: none; border: 0; color: var(--danger); font-weight: 700; cursor: pointer; }
.summary-row, .total-row { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0; }
.total-row { font-size: 20px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label, .stack label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 650; color: var(--secondary); }
.form-grid input, .stack input { height: 48px; border: 1px solid #ddd; border-radius: 12px; padding: 0 12px; }
.span-2 { grid-column: span 2; }
.errorlist { color: var(--danger); margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.site-footer { background: var(--black); color: #d5d5d5; padding: 42px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h2 { margin: 0 0 8px; color: #fff; font-size: 28px; font-weight: 800; }
.site-footer a { display: block; margin: 8px 0; color: #d5d5d5; }
.site-footer p { margin: 0; max-width: 320px; }
.legal { margin-top: 28px; color: #9a9a9a; font-size: 13px; }

@media (max-width: 1279px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .catalog-page > .container { width: calc(100% - 24px); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hero-grid, .product-layout, .cart-layout, .checkout-layout, .footer-grid { grid-template-columns: 1fr; }
  .gallery-main, .gallery-main img { min-height: 0; height: auto; max-width: 100%; }
  .gallery-main img { height: auto; max-height: 520px; }
  .header-promises { display: none; }
  .product-copy h1 { font-size: 28px; }
}
@media (max-width: 767px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .catalog-page > .container { width: calc(100% - 20px); }
  .header-inner { gap: 8px; min-width: 0; }
  .header-tools { gap: 8px; }
  .brand-mark { font-size: 26px; }
  .brand-name, .brand-sep { display: none; }
  .header-tools .tool-text { display: none; }
  .site-header { overflow: hidden; }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #fff;
    font-weight: 700;
  }
  .drawer {
    display: block;
    position: fixed;
    inset: var(--header) 0 auto 0;
    background: var(--deep);
    color: #fff;
    padding: 16px;
    transform: translateY(-120%);
    transition: transform 180ms;
  }
  .drawer.is-open { transform: translateY(0); }
  .drawer a { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #2a2a2a; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 18px; }
  .hero .btn, .filters, .field, .select { width: 100%; }
  .filters, .section-head, .form-grid { display: grid; grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .trust-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card-title { font-size: 13px; min-height: 2.5em; }
  .price { font-size: 16px; }
  .btn-block { min-height: 40px; font-size: 11px; padding: 8px 3px; letter-spacing: 0; }
  .card-media img, .card-media .placeholder { padding: 4px; }
  .meta-row { flex-wrap: wrap; row-gap: 2px; }
  .product-copy h1 { font-size: 22px; }
  .gallery-main { padding: 8px; border-radius: 12px; }
  .gallery-main img { max-height: 78vw; }
  .size-row, .pills { max-width: 100%; }
}
@media (max-width: 359px) {
  .catalog-page > .container,
  .container { width: calc(100% - 16px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .btn-block { font-size: 11px; padding: 7px 3px; }
  .price { font-size: 15px; }
  .card-body { padding: 6px; }
  .card-category, .meta-row span { font-size: 10px; }
}
