/* Витрина JapanStyle — палитра и логотип из макета Figma «JapanStyle 2026», вёрстка с нуля. */
:root {
  --ink: #1d1d1b;
  --text: #2a2e35;
  --muted: #7d8696;
  --line: #e8ecf1;
  --surface: #f4f6f9;
  --white: #fff;
  --teal: #5ebfc5;
  --teal-dark: #3fa5ab;
  --teal-soft: #eaf8f7;
  --mint: #d0f4f2;
  --sky: #f4f9ff;
  --lavender: #f7e9fe;
  --lavender-soft: #fbf4ff;
  --pink: #e8457f;
  --pink-soft: #fde8f0;
  --danger: #e5484d;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(29, 29, 27, .06);
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 15px/1.55 "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; }
h2 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; }
h3 { font-size: 18px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- Кнопки и поля --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--radius-sm); border: 0;
  background: var(--teal); color: #fff; font-weight: 500; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: translateY(1px); }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-white:hover { background: #fff; box-shadow: 0 14px 34px rgba(29, 29, 27, .12); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.input, .select, textarea.input {
  width: 100%; height: 46px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--surface); outline: none; transition: border-color .15s, background .15s;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--teal); background: #fff; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .err { color: var(--danger); font-size: 13px; }
.form-errors { background: var(--pink-soft); color: #b3264f; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }

/* --- Верхняя строка --- */
.topbar { border-bottom: 1px solid var(--line); font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 48px; }
.topbar .tagline { color: var(--muted); margin-right: auto; }
.topbar form { margin: 0; }
.seg { display: inline-flex; background: var(--surface); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a, .seg button {
  border: 0; background: transparent; padding: 4px 10px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--muted); line-height: 20px;
}
.seg .on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.seg-label { color: var(--muted); font-size: 13px; margin-right: 4px; }
.crm-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 9px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .04em;
}
.crm-btn:hover { background: #000; }
.toplink { font-weight: 500; color: var(--ink); }
.toplink:hover { color: var(--teal-dark); }
.topbar .logout { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; }
.topbar .logout:hover { color: var(--ink); }

/* --- Шапка --- */
.header .wrap { display: flex; align-items: center; gap: 40px; padding-top: 20px; padding-bottom: 20px; }
.logo { position: relative; display: inline-block; flex: none; }
.logo img { width: 214px; height: auto; }
.logo small { position: absolute; left: 41%; top: 69%; font-size: 12.5px; line-height: 1; color: var(--ink); letter-spacing: .03em; white-space: nowrap; }
.logo-sm { margin-bottom: 14px; }
.logo-sm img { width: 180px; }
.logo-sm small { font-size: 10.5px; }
.search { flex: 1; display: flex; position: relative; }
.search .input { padding-right: 56px; background: var(--sky); }
.search button {
  position: absolute; right: 0; top: 0; width: 46px; height: 46px; border: 0; border-radius: var(--radius-sm);
  background: var(--teal); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.search button:hover { background: var(--teal-dark); }
.header-actions { margin-left: auto; display: flex; gap: 12px; }
.icon-btn {
  position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); background: #fff; transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--teal-dark); border-color: var(--teal); }
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--pink); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center;
}
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- Меню разделов --- */
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; justify-content: space-between; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav-item:first-child > a { padding-left: 0; }
.nav-item:last-child > a { padding-right: 0; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav-item { position: static; }
.nav-item > a {
  display: block; padding: 14px 16px; font-weight: 500; color: var(--ink); white-space: nowrap; border-bottom: 2px solid transparent;
}
.nav-item > a:hover, .nav-item.on > a { color: var(--teal-dark); border-bottom-color: var(--teal); }
.mega {
  display: none; position: absolute; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(29, 29, 27, .08);
}
.mega .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px 28px; padding: 26px 16px 30px; overflow: visible; }
.mega h4 { margin: 0 0 6px; font-size: 15px; color: var(--ink); font-weight: 600; }
.mega h4 a:hover, .mega li a:hover { color: var(--teal-dark); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
@media (hover: hover) and (min-width: 900px) {
  .nav { position: relative; }
  .nav-item:hover .mega { display: block; }
}

/* --- Сообщения и крошки --- */
.messages { margin-top: 16px; display: grid; gap: 8px; }
.msg { padding: 12px 18px; border-radius: var(--radius-sm); background: var(--teal-soft); color: #22686c; font-weight: 500; }
.msg.error { background: var(--pink-soft); color: #b3264f; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin: 20px 0 22px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--pink); }
.crumbs .sep { color: #c3c9d3; }
main { padding-bottom: 72px; }

/* --- Главная --- */
.hero {
  margin-top: 26px; border-radius: 28px; padding: clamp(28px, 5vw, 56px); overflow: hidden; position: relative;
  background: linear-gradient(110deg, var(--lavender) 0%, var(--lavender-soft) 55%, #fff7ef 100%);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; min-height: 340px;
}
.hero p { font-size: 17px; max-width: 520px; color: #4a4f58; margin: 16px 0 26px; }
.hero-art { position: relative; height: 100%; min-height: 240px; }
.hero-art img {
  position: absolute; width: 46%; aspect-ratio: 1; object-fit: contain; border-radius: 24px; background: #fff; padding: 14px;
  box-shadow: 0 20px 40px rgba(120, 60, 140, .14);
}
.hero-art img:nth-child(1) { right: 34%; top: 4%; transform: rotate(-6deg); }
.hero-art img:nth-child(2) { right: 2%; top: 18%; transform: rotate(5deg); z-index: 2; }
.hero-art img:nth-child(3) { right: 22%; bottom: -4%; width: 38%; transform: rotate(-2deg); z-index: 3; }
.hero-lotus { position: absolute; right: -40px; bottom: -50px; width: 260px; opacity: .14; }
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.promo { border-radius: var(--radius); padding: 34px 40px; min-height: 230px; display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: hidden; }
.promo p { color: #4a4f58; margin: 12px 0 22px; max-width: 280px; }
.promo .btn { margin-top: auto; }
.promo-mint { background: linear-gradient(120deg, var(--mint), var(--teal-soft) 70%); }
.promo-sky { background: linear-gradient(120deg, #eef2f6, var(--sky)); }
.promo img { position: absolute; right: 28px; bottom: 22px; width: 170px; height: 170px; object-fit: contain; border-radius: 18px; background: rgba(255, 255, 255, .7); padding: 10px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 64px 0 26px; }
.section-head a { color: var(--teal-dark); font-weight: 500; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { border-radius: var(--radius); background: var(--surface); padding: 26px 26px 22px; min-height: 210px; position: relative; overflow: hidden; }
.why-card:nth-child(even) { background: var(--sky); }
.why-card b { display: block; font-size: 19px; color: var(--ink); font-weight: 600; }
.why-card span { color: var(--muted); }
.why-card .why-ico {
  position: absolute; right: 20px; bottom: 20px; width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center;
  background: #fff; color: var(--teal); box-shadow: var(--shadow);
}
.why-card .why-ico .icon { width: 40px; height: 40px; stroke-width: 1.6; }
.why-card:nth-child(2) .why-ico { color: var(--pink); }
.sections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.section-tile { border-radius: var(--radius); padding: 26px; background: var(--teal-soft); display: flex; flex-direction: column; gap: 10px; min-height: 150px; transition: transform .15s, box-shadow .15s; }
.section-tile:nth-child(3n+2) { background: var(--lavender-soft); }
.section-tile:nth-child(3n+3) { background: var(--sky); }
.section-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.section-tile b { font-size: 20px; color: var(--ink); font-weight: 600; }
.section-tile span { color: var(--muted); font-size: 14px; }
.makers { display: flex; flex-wrap: wrap; gap: 12px; }
.maker { padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line); font-weight: 600; color: var(--ink); transition: border-color .15s, color .15s; }
.maker:hover { border-color: var(--teal); color: var(--teal-dark); }

/* --- Карточки товаров --- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.catalog-body .grid { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; position: relative; }
.card-img {
  position: relative; aspect-ratio: 1 / .94; border-radius: var(--radius); background: var(--teal-soft);
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; margin-bottom: 18px;
}
.card-img img { width: 78%; height: 78%; min-width: 0; min-height: 0; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .noimg { width: 90px; opacity: .25; }
.card-tag { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--teal-dark); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 8px; }
.card-edit {
  position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); z-index: 2;
}
.card-edit:hover { color: var(--teal-dark); }
.card-edit .icon { width: 17px; height: 17px; }
.card-cat { font-size: 13px; color: var(--muted); }
.card-title { font-weight: 500; font-size: 17px; color: var(--ink); line-height: 1.3; margin: 4px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.card-price { font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.card-price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.card-price.request { font-size: 16px; color: var(--muted); font-weight: 500; }
.card .btn { align-self: flex-start; margin-top: auto; }

/* --- Каталог --- */
.catalog-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.catalog-head p { margin: 8px 0 0; color: var(--muted); }
.catalog-head .select { width: auto; min-width: 230px; }
.catalog-body { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 16px; }
.filters details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.filters summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
.filters details[open] summary::after { transform: rotate(-135deg); }
.filters .opts { display: grid; gap: 8px; margin-top: 12px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #cfd5de; margin: 0; flex: none; display: grid; place-items: center; cursor: pointer; }
.check input:checked { border-color: var(--teal); background: radial-gradient(circle, var(--teal) 45%, transparent 50%); }
.check .n { margin-left: auto; color: var(--muted); font-size: 12px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
/* Ползунок цены (правка №26) */
.price-slider { position: relative; height: 28px; margin: 14px 4px 2px; }
.price-slider .ps-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--line); }
.price-slider .ps-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--teal); }
.price-slider input[type=range] { position: absolute; left: 0; right: 0; top: 4px; width: 100%; margin: 0; height: 20px; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.price-slider input[type=range]::-webkit-slider-runnable-track { background: none; height: 20px; }
.price-slider input[type=range]::-moz-range-track { background: none; }
.price-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); cursor: grab; }
.price-slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); cursor: grab; }
.filters .actions { display: flex; gap: 10px; margin-top: 18px; }
.filters-toggle { display: none; }
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border-radius: var(--radius); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); font-weight: 500; padding: 0 12px; }
.pager .on { background: var(--teal); color: #fff; }
.pager a:hover { background: var(--line); }

/* --- Карточка товара --- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.gallery-main { border-radius: 26px; background: var(--teal-soft); aspect-ratio: 1 / .85; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; }
.gallery-main img { width: 76%; height: 84%; min-width: 0; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 14px; }
.thumbs button { aspect-ratio: 1; border-radius: 16px; border: 2px solid transparent; background: var(--teal-soft); padding: 8px; cursor: pointer; }
.thumbs button.on { border-color: var(--teal); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.p-cat { font-size: 14px; color: var(--muted); }
.p-title { font-size: clamp(22px, 2.3vw, 30px); margin: 6px 0 12px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.p-meta b { color: var(--ink); font-weight: 500; }
.p-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-box { background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.p-box .ico { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; color: var(--teal-dark); font-weight: 700; }
.p-box b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.p-box span, .p-box a { font-size: 13px; color: var(--muted); }
.p-box a { color: var(--teal-dark); }
.axis { margin-top: 20px; }
.axis-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  font-size: 14px; color: var(--ink); background: #fff; transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--teal); }
.chip.on { border-color: var(--teal); background: var(--teal-soft); font-weight: 500; }
.chip.off { color: #b3bac5; border-style: dashed; }
.chip.other { color: var(--muted); }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
.buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 0; border-bottom: 1px solid var(--line); margin-top: 20px; border-top: 1px solid var(--line); }
.buy-price { font-size: 36px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.buy-price small { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.buy-price.request { font-size: 22px; color: var(--muted); }
.buy form { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: #8f98a6; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.stepper button:hover { background: var(--ink); }
.stepper input { width: 64px; height: 44px; border: 0; border-radius: 12px; background: var(--surface); text-align: center; font-weight: 500; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.unit-hint { font-size: 13px; color: var(--muted); }
.edit-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 16px; border-radius: 12px;
  background: #fff7e0; color: #7a5a00; font-weight: 500; font-size: 14px; border: 1px dashed #e5c55a;
}
.edit-btn:hover { background: #ffefbf; }
.tabs { display: flex; gap: 36px; border-bottom: 1px solid var(--line); margin: 56px 0 26px; }
.tabs button { border: 0; background: none; padding: 0 0 14px; font-size: 20px; font-weight: 600; color: #8f98a6; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--pink); }
.prose { max-width: 860px; color: #3d434c; }
.prose h2, .prose h3, .prose h4 { margin: 18px 0 8px; font-size: 19px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose { overflow-wrap: anywhere; }
.prose table { border-collapse: collapse; width: 100%; max-width: 720px; margin: 10px 0 18px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 500; width: 40%; }
.prose details { background: var(--surface); border-radius: 14px; padding: 12px 16px; margin: 0 0 12px; }
.prose summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 40px; max-width: 720px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); }

/* --- Корзина и оформление --- */
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; background: var(--surface); border-radius: 14px; padding: 14px 18px; margin-bottom: 26px; color: var(--muted); font-size: 15px; }
.steps .st { display: inline-flex; align-items: center; gap: 10px; }
.steps .st i { width: 22px; height: 22px; border-radius: 50%; background: #c6ccd5; color: #fff; font-style: normal; font-size: 12px; display: grid; place-items: center; }
.steps .st.on { color: var(--ink); font-weight: 500; }
.steps .st.on i { background: var(--ink); }
.steps .arrow { color: #c3c9d3; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 26px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel-pad { padding: 24px; }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto 40px; gap: 18px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 76px; height: 76px; border-radius: 14px; background: var(--teal-soft); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; }
.cart-line .thumb img { width: 80%; height: 80%; min-width: 0; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.cart-line .t { font-weight: 500; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line .s { font-size: 13px; color: var(--muted); }
.cart-line .sum { text-align: right; min-width: 110px; }
.cart-line .sum b { display: block; color: var(--teal-dark); font-size: 17px; font-weight: 600; }
.cart-line .sum span { font-size: 12px; color: var(--muted); }
.cart-line .rm { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--danger); cursor: pointer; display: grid; place-items: center; }
.cart-line .rm:hover { background: var(--pink-soft); }
.summary h3 { font-size: 22px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--muted); }
.sum-row b { color: var(--ink); font-weight: 500; }
.sum-row.discount b { color: var(--danger); }
.sum-row.total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; color: var(--ink); font-size: 18px; }
.sum-row.total b { font-size: 24px; font-weight: 600; }
.hint { background: var(--teal-soft); color: #22686c; border-radius: 14px; padding: 12px 14px; font-size: 14px; margin: 16px 0 4px; }
.hint b { color: var(--ink); }
.hint-bar { height: 6px; border-radius: 3px; background: #fff; margin-top: 8px; overflow: hidden; }
.hint-bar i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }

/* --- Вход, кабинет --- */
.auth { max-width: 460px; margin: 48px auto 0; }
.auth.wide { max-width: 640px; }
.auth h1 { margin-bottom: 8px; }
.auth .sub { color: var(--muted); margin-bottom: 26px; }
.auth .alt { margin-top: 18px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth .alt a { color: var(--teal-dark); font-weight: 500; }
.account { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; padding: 0 12px 10px; }
.table td { padding: 14px 12px; border-top: 1px solid var(--line); }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table tr.link { cursor: pointer; }
.table tr.link:hover td { background: var(--surface); }
.status { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; background: var(--surface); color: var(--ink); }
.status.new { background: var(--lavender); color: #7b3aa0; }
.status.price_check { background: #fff4d6; color: #8a6200; }
.status.confirmed_by_customer, .status.purchasing, .status.received { background: var(--teal-soft); color: #22686c; }
.status.shipped, .status.delivered { background: #e6f6e9; color: #23753a; }
.status.cancelled { background: var(--pink-soft); color: #b3264f; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: flex; gap: 12px; font-size: 14px; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); margin-top: 6px; flex: none; }
.thanks { text-align: center; max-width: 620px; margin: 60px auto 0; }
.thanks .ok { width: 96px; height: 96px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; margin: 0 auto 24px; }
.thanks .ok .icon { width: 44px; height: 44px; }
.thanks p { color: #4a4f58; font-size: 17px; }

/* --- Подвал --- */
.footer { background: var(--surface); padding: 48px 0 36px; margin-top: 40px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { margin: 0 0 12px; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.footer a:hover { color: var(--ink); }
.footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 13px; }

/* --- Адаптив --- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-body .grid { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .topbar .tagline { display: none; }
  .topbar .wrap { flex-wrap: wrap; gap: 10px 14px; padding-top: 8px; padding-bottom: 8px; }
  .header .wrap { flex-wrap: wrap; gap: 14px; }
  .logo img { width: 170px; }
  .logo small { font-size: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 220px; }
  .promos, .product, .cart-layout, .account { grid-template-columns: 1fr; }
  .catalog-body { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .sections-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .grid, .catalog-body .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .card-title { font-size: 15px; }
  .card-price { font-size: 18px; }
  .card .btn { width: 100%; padding: 0 10px; }
  .why, .sections-grid { grid-template-columns: 1fr; }
  .promo { padding: 26px 24px; min-height: 200px; }
  .promo img { width: 110px; height: 110px; right: 16px; bottom: 16px; }
  .promo p { max-width: 60%; }
  .p-boxes, .form-grid { grid-template-columns: 1fr; }
  .buy form { margin-left: 0; width: 100%; }
  .buy form .btn { flex: 1; }
  .cart-line { grid-template-columns: 60px minmax(0, 1fr) 36px; gap: 12px; padding: 14px; }
  .cart-line .thumb { width: 60px; height: 60px; }
  .cart-line .stepper, .cart-line .sum { grid-column: 2 / 3; }
  .cart-line .sum { text-align: left; }
  .cart-line .rm { grid-row: 1; grid-column: 3; }
  .tabs { gap: 20px; }
  .tabs button { font-size: 17px; }
  .catalog-head .select { min-width: 0; width: 100%; }
}

/* --- Смена варианта, просмотр фото на весь экран --- */
[data-variant-root].loading { opacity: .6; transition: opacity .15s; }
.gallery-main.zoomable { cursor: zoom-in; }
/* Одежда (правка №34): вертикальная рамка 3:4, фото модели на всю рамку, без мятной подложки */
.gallery-main.is-photo { aspect-ratio: 3 / 4; max-height: 82vh; margin: 0 auto; background: #f3f4f6; }
.gallery-main.is-photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.thumbs.is-photo button { aspect-ratio: 3 / 4; padding: 0; overflow: hidden; }
.thumbs.is-photo img { object-fit: cover; mix-blend-mode: normal; }
.card-img.is-photo { aspect-ratio: 3 / 4; background: #f3f4f6; }
.card-img.is-photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.axis-parent .chip { font-weight: 500; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 17, 20, .92); display: none; }
.lightbox.open { display: block; }
.lb-stage { position: absolute; inset: 64px 80px 88px; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 14px; cursor: zoom-in; user-select: none; will-change: transform; }
.lightbox.zoomed .lb-stage img { cursor: grab; border-radius: 0; }
.lightbox.zoomed .lb-stage img:active { cursor: grabbing; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-tools { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .12); padding: 8px 14px; border-radius: 999px; color: #fff; z-index: 2; }
.lb-tools button { position: static; width: 34px; height: 34px; font-size: 22px; }
.lb-range { width: 160px; accent-color: var(--teal); }
.lb-pct { min-width: 44px; font-size: 13px; text-align: right; opacity: .85; }
.lb-count { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; opacity: .8; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { display: none; }
  .lb-stage { inset: 56px 8px 84px; }
  .lb-range { width: 110px; }
}

/* --- Баннеры главной (редактируются в CRM: «Сайт › Баннеры») --- */
.hero-slider { margin-top: 26px; position: relative; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 28px; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; }
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 5px; border: 0; background: #d5dae2; cursor: pointer; padding: 0; transition: width .2s, background .2s; }
.hero-dots button.on { width: 26px; background: var(--teal); }
.banner { position: relative; overflow: hidden; border-radius: var(--radius); color: var(--ink); }
.banner-hero { border-radius: 28px; padding: clamp(28px, 5vw, 56px); min-height: 340px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.banner-promo { padding: 34px 40px; min-height: 230px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.banner-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.banner-body p { color: #4a4f58; margin: 14px 0 24px; max-width: 520px; }
.banner-hero .banner-body p { font-size: 17px; }
.banner-light, .banner-light h1, .banner-light h2 { color: #fff; }
.banner-light .banner-body p { color: rgba(255, 255, 255, .88); }
.banner-art { position: relative; height: 100%; min-height: 220px; }
.banner-art img { position: absolute; object-fit: contain; border-radius: 24px; background: #fff; padding: 14px; box-shadow: 0 20px 40px rgba(120, 60, 140, .14); aspect-ratio: 1; }
.banner-art-1 img { position: static; width: 170px; height: 170px; }
.banner-promo .banner-art { min-height: 0; }
.banner-art-2 img, .banner-art-3 img { width: 46%; }
.banner-art-2 img:nth-child(1), .banner-art-3 img:nth-child(1) { right: 34%; top: 4%; transform: rotate(-6deg); }
.banner-art-2 img:nth-child(2), .banner-art-3 img:nth-child(2) { right: 2%; top: 18%; transform: rotate(5deg); z-index: 2; }
.banner-art-3 img:nth-child(3) { right: 22%; bottom: -4%; width: 38%; transform: rotate(-2deg); z-index: 3; }
.banner-hero .banner-art-1 { display: grid; place-items: center; }
.banner-hero .banner-art-1 img { width: 260px; height: 260px; }
.banner-image { padding: 0; min-height: 0; display: block; }
.banner-image img { width: 100%; height: auto; display: block; }
.banner-edit {
  position: absolute; top: 14px; right: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  background: #fff7e0; color: #7a5a00; border: 1px dashed #e5c55a; font-size: 13px; font-weight: 500; box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.banner-edit:hover { background: #ffefbf; }
.banner-edit .icon { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .banner-hero { grid-template-columns: 1fr; }
  .banner-hero .banner-art { min-height: 200px; }
}
@media (max-width: 600px) {
  .banner-promo { padding: 26px 24px; grid-template-columns: 1fr 96px; min-height: 0; }
  .banner-art-1 img { width: 96px; height: 96px; padding: 8px; border-radius: 16px; }
  .banner-hero .banner-art-1 img { width: 180px; height: 180px; }
  .banner-edit { top: 8px; right: 8px; padding: 6px 9px; font-size: 12px; }
}

@media (max-width: 900px) { .nav .wrap { justify-content: flex-start; } }

/* Логотипы производителей и брендов */
.p-box .ico-logo { background: #fff; overflow: hidden; padding: 6px; }
.p-box .ico-logo img { width: 100%; height: 100%; object-fit: contain; }
.maker-logo { padding: 8px 16px; display: grid; place-items: center; }
.maker-logo img { height: 28px; max-width: 120px; object-fit: contain; }

/* --- Корзина: тип заказа, количество в штуках, полоска до скидки (правки №18, №25) --- */
.cart-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.order-type { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-weight: 500; font-size: 14px; }
.order-type .icon { width: 18px; height: 18px; }
.order-type.wholesale { background: var(--lavender); color: #6b2f8f; }
.order-type.retail { background: var(--teal-soft); color: #22686c; }
[data-cart-root].loading .cart-layout { opacity: .65; transition: opacity .15s; }
.qty-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qty-note { font-size: 12px; color: var(--muted); white-space: nowrap; }
.vprogress { position: relative; margin-top: 22px; padding: 18px 22px 34px; border-radius: var(--radius); background: linear-gradient(110deg, var(--teal-soft), var(--lavender-soft)); overflow: hidden; }
.vprogress-text { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 16px; color: var(--ink); margin-bottom: 26px; }
.vprogress-text b { color: var(--pink); }
.vprogress-got { font-size: 13px; font-weight: 600; color: #22686c; background: #fff; padding: 4px 10px; border-radius: 8px; }
.vprogress-bar { position: relative; height: 12px; border-radius: 6px; background: #fff; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
.vprogress-bar i { position: absolute; inset: 0 auto 0 0; width: var(--fill, 0%); border-radius: 6px; background: linear-gradient(90deg, var(--teal), #7fd3d8, var(--teal)); background-size: 200% 100%; animation: vp-shine 2.4s linear infinite; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes vp-shine { from { background-position: 200% 0; } to { background-position: 0 0; } }
.vprogress-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #cfd5de; z-index: 1; transition: border-color .3s, transform .3s; }
.vprogress-mark.on { border-color: var(--teal); transform: translate(-50%, -50%) scale(1.15); }
.vprogress-mark em { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.vprogress-mark small { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.vprogress-mark:last-child em, .vprogress-mark:last-child small { left: auto; right: -9px; transform: none; }
.vprogress.done .vprogress-bar i { background: linear-gradient(90deg, var(--pink), #f58db1, var(--pink)); background-size: 200% 100%; }
.vprogress.celebrate { animation: vp-pop .6s ease; }
@keyframes vp-pop { 0% { transform: scale(1); } 35% { transform: scale(1.02); } 100% { transform: scale(1); } }
.confetti { position: absolute; top: 40%; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; animation: vp-confetti 1.2s ease-out forwards; }
@keyframes vp-confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 120px) rotate(var(--rot)); opacity: 0; } }
@media (max-width: 600px) {
  .vprogress { padding: 16px 16px 32px; }
  .vprogress-text { font-size: 14px; }
  .qty-cell { grid-column: 2 / 3; align-items: flex-start; }
}

/* --- Вход и регистрация (правка №23) --- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-google:hover { background: var(--surface); }
.code-input { font-size: 26px; letter-spacing: .4em; text-align: center; height: 60px; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline; font-size: 14px; }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(15, 17, 20, .45); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; animation: modal-in .2s ease; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.modal-card { background: #fff; border-radius: var(--radius); padding: 30px; max-width: 440px; width: 100%; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .18); }
.modal-card h2 { margin: 14px 0 8px; }
.modal-card p { color: #4a4f58; margin: 0 0 22px; }
.modal-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; margin: 0 auto; }
.modal-ico .icon { width: 30px; height: 30px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* --- Оформление: данные, адреса, доставка, проверка (правки №19–20) --- */
.steps a.st.done { color: var(--ink); }
.steps a.st.done i { background: var(--teal); }
.hint-banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--lavender-soft); border: 1px solid var(--lavender); margin-bottom: 18px; font-size: 14px; }
.hint-banner .icon { flex: none; color: #7b3aa0; }
.hint-banner a { color: var(--teal-dark); font-weight: 500; }
.form-section { font-size: 17px; margin: 6px 0 12px; }
.form-section + .seg, .form-grid + .form-section, .field + .form-section { margin-top: 18px; }
.seg-lg { padding: 4px; }
.seg-lg label { padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg-lg label.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.seg-lg input { position: absolute; opacity: 0; pointer-events: none; }
.delivery-options { display: grid; gap: 12px; }
.delivery-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.delivery-option:hover { border-color: var(--teal); }
.delivery-option:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.delivery-option input { margin-top: 4px; accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.do-body { display: grid; gap: 4px; }
.do-body b { font-size: 16px; color: var(--ink); }
.do-body .muted { font-size: 14px; }
.do-prices { display: grid; gap: 4px; margin-top: 6px; }
.do-price { font-size: 14px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.review-grid { display: grid; gap: 12px; }
.review-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.review-head { display: flex; justify-content: space-between; gap: 12px; }
.review-head a { color: var(--teal-dark); font-size: 14px; }
.addr-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.addr-row:first-of-type { border-top: 0; }
.addr-actions { display: flex; gap: 6px; flex: none; }
.addr-actions form { margin: 0; }
.addr-new { margin-top: 14px; }
.addr-new summary { list-style: none; display: inline-flex; }
.addr-new summary::-webkit-details-marker { display: none; }
@media (max-width: 600px) { .addr-row { flex-direction: column; align-items: flex-start; } }
[hidden] { display: none !important; }

/* --- Избранное (правка №10) --- */
.fav-form { margin: 0; }
.card > .fav-form { position: absolute; right: 12px; top: 12px; z-index: 3; }
.card .card-edit { top: 58px; }
.fav-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #b9c0ca; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: color .15s, transform .15s; }
.fav-btn .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.fav-btn:hover { color: var(--pink); }
.fav-btn.on { color: var(--pink); }
.fav-btn.pop { animation: fav-pop .35s ease; }
@keyframes fav-pop { 50% { transform: scale(1.25); } }
.fav-inline .fav-btn { width: 46px; height: 46px; border: 1px solid var(--line); box-shadow: none; }

/* --- Страницы, блог, FAQ, соцсети (правка №11) --- */
.toplinks { display: flex; gap: 20px; margin-right: auto; }
.toplinks a { color: var(--text); }
.toplinks a:hover { color: var(--teal-dark); }
.socials { display: flex; gap: 10px; }
.socials a { color: #9aa3b1; display: grid; place-items: center; }
.socials a:hover { color: var(--teal-dark); }
.socials .icon { width: 18px; height: 18px; }
.content-page { max-width: 860px; margin: 8px auto 0; }
.content-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.content-head .edit-btn { margin-top: 0; }
.content-cover { width: 100%; border-radius: var(--radius); margin: 8px 0 22px; }
.prose img { border-radius: 14px; margin: 12px 0; height: auto; }
.prose a { color: var(--teal-dark); text-decoration: underline; }
.prose blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--teal); background: var(--teal-soft); border-radius: 0 12px 12px 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal-dark); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .prose { margin-top: 10px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: grid; gap: 8px; }
.blog-card b { font-size: 18px; color: var(--ink); line-height: 1.3; }
.blog-card:hover b { color: var(--teal-dark); }
.blog-cover { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--teal-soft); display: grid; place-items: center; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-cover img.noimg { width: 80px; height: 80px; object-fit: contain; opacity: .3; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } .toplinks { gap: 12px; flex-wrap: wrap; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* --- Вид опций «Одежда»: кружки цвета, размерная сетка, таблица размеров (правка №7) --- */
.axis-value { font-weight: 400; color: var(--muted); }
.swatch-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid transparent; padding: 3px; display: inline-grid; transition: border-color .15s; }
.swatch-btn span { width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); background-size: cover; background-position: center; }
.swatch-btn:hover { border-color: #b9c0ca; }
.swatch-btn.on { border-color: var(--ink); }
.size-btn { min-width: 52px; height: 48px; padding: 0 10px; border: 1px solid #c9ced6; display: inline-grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--ink); background: #fff; position: relative; transition: border-color .15s; }
.size-btn:hover { border-color: var(--ink); }
.size-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); }
.size-btn.na { color: #9aa3b1; background: linear-gradient(to top right, transparent calc(50% - .6px), #b9c0ca calc(50% - .6px), #b9c0ca calc(50% + .6px), transparent calc(50% + .6px)); }
.size-btn.na.on { color: #fff; background: var(--ink) linear-gradient(to top right, transparent calc(50% - .6px), #e8457f calc(50% - .6px), #e8457f calc(50% + .6px), transparent calc(50% + .6px)); }
span.size-btn.na { cursor: not-allowed; }
.size-chart-link { margin-top: 12px; border: 0; background: none; padding: 0; display: inline-flex; align-items: center; gap: 6px; color: #1f5fb3; font-size: 15px; cursor: pointer; }
.size-chart-link:hover { text-decoration: underline; }
.drawer { position: fixed; inset: 0; z-index: 95; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 17, 20, .45); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: #fff; padding: 24px; overflow-y: auto; box-shadow: -20px 0 40px rgba(0, 0, 0, .15); animation: drawer-in .25s ease; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-head h2 { font-size: 22px; font-weight: 500; }
.drawer-close { border: 0; background: none; font-size: 32px; line-height: 1; cursor: pointer; color: var(--ink); }
.sc-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.sc-tabs label { text-align: center; }
.sc-note { font-size: 14px; }
.sc-units { display: flex; gap: 28px; margin: 14px 0 18px; }
.sc-units .check input { appearance: auto; width: 18px; height: 18px; border: 0; background: none; accent-color: var(--ink); }
.sc-table-wrap { overflow-x: auto; }
.sc-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.sc-table th { background: #ececec; font-weight: 400; text-align: left; padding: 12px; white-space: nowrap; }
.sc-table td { padding: 12px; border-top: 1px solid #f0f0f0; }
.sc-table tr:nth-child(even) td { background: #f7f7f7; }
.sc-table th:first-child, .sc-table td:first-child { border-right: 1px solid #e3e3e3; }

/* --- Японская аптека (правка №12) --- */
.ph-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ph-search { position: relative; display: flex; gap: 12px; max-width: 720px; }
.ph-search .icon { position: absolute; left: 16px; top: 13px; color: var(--muted); }
.ph-search .input { padding-left: 46px; background: #fff; border: 1px solid var(--line); }
.ph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.ph-chip { padding: 7px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--ink); transition: border-color .15s; }
.ph-chip:hover { border-color: var(--teal); }
.ph-chip em { font-style: normal; color: var(--pink); margin-left: 4px; font-size: 13px; }
.ph-chip-bold { font-weight: 600; }
.ph-block { border-radius: 26px; padding: 24px; margin-top: 26px; }
.ph-block h2 { font-size: 22px; margin-bottom: 16px; }
.ph-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ph-block-head h2 { margin: 0; }
.ph-block-head .muted { font-size: 13px; }
.ph-lavender { background: var(--lavender-soft); }
.ph-mint { background: var(--teal-soft); }
.ph-sky { background: var(--sky); }
.ph-gray { background: #eef1f5; }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ph-tile { background: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; transition: transform .15s, box-shadow .15s; }
.ph-tile:hover, .ph-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ph-tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ph-tile-top em { font-style: normal; font-size: 12px; color: var(--pink); }
.ph-tile b { color: var(--ink); font-weight: 600; }
.ph-tile .muted { font-size: 13px; line-height: 1.4; }
.ph-ico { width: 36px; height: 36px; flex: none; }
.ph-row { background: #fff; border-radius: 16px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; transition: transform .15s, box-shadow .15s; }
.ph-row b { display: block; color: var(--ink); font-weight: 600; }
.ph-row em { font-style: normal; font-size: 13px; color: var(--pink); }
.ph-all { margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.ph-all summary { cursor: pointer; font-weight: 600; color: var(--ink); }
@media (max-width: 1100px) { .ph-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ph-grid { grid-template-columns: 1fr; } .ph-block { padding: 18px; } }

/* --- Промокод в корзине (правка №16) --- */
.summary-col { display: grid; gap: 16px; align-content: start; }
.promo-box h3 { font-size: 18px; margin-bottom: 12px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .input { flex: 1; text-transform: uppercase; }
.promo-on { display: grid; gap: 4px; background: var(--teal-soft); border-radius: 12px; padding: 10px 14px; }
.promo-on .link-btn { justify-self: start; color: var(--muted); }

/* --- Мои документы (правка №22) --- */
.doc-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.doc-row:first-of-type { border-top: 0; }
.doc-row .icon { color: var(--teal-dark); flex: none; }
.doc-row b { display: block; color: var(--ink); }
.doc-row .muted { font-size: 13px; }
.doc-row:hover b { color: var(--teal-dark); }

/* Опт: «Коробками / Поштучно» (правки №32–33) */
.unit-toggle { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--line); gap: 4px; margin-bottom: 14px; width: 100%; }
.unit-toggle button { flex: 1; border: 0; background: none; padding: 9px 14px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted, #6b7280); cursor: pointer; transition: background .15s, color .15s; }
.unit-toggle button.on { background: #fff; color: var(--ink, #1f2937); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.unit-badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; background: #fff4e0; color: #8a5a00; }
.unit-badge.case { background: var(--teal-soft); color: var(--teal-dark, #2f7f86); }

/* Карусели главной (правки №35–37) */
.carousel { margin-top: 8px; }
.carousel-nav { display: flex; align-items: center; gap: 8px; }
.car-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.car-btn:hover { background: var(--teal-soft); border-color: var(--teal); }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 10px; scrollbar-width: thin; }
.car-track > .card { scroll-snap-align: start; }
@media (max-width: 1024px) { .car-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; } }
@media (max-width: 720px) { .car-track { grid-auto-columns: 46%; gap: 14px; } .car-btn { display: none; } }