/* Modullux 2026 */

:root {
  --ink: #16152b;
  --ink-2: #3f3e57;
  --muted: #66657d;
  --line: #e2e2ea;
  --line-soft: #ececf2;
  --bg: #f4f5f8;
  --surface: #fff;
  --brand: #2b2577;
  --brand-hover: #211c62;
  --brand-ink: #15123f;
  --brand-soft: #eceaf8;
  --accent: #c39246;
  --accent-hover: #d2a35a;
  --accent-ink: #7c5516;
  --danger: #b4322a;
  --ok: #1d6f47;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Onest", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(22 21 43 / .05), 0 14px 34px -20px rgb(43 37 119 / .32);
  --shadow-lg: 0 32px 64px -32px rgb(21 18 63 / .5);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1240px;
  --gutter: 16px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
}

/* Основа */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid rgb(195 146 70 / .7); outline-offset: 2px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px;
  background: var(--accent); color: var(--ink); border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

/* Кнопки и ссылки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease), color .18s;
}
.btn:active { transform: scale(.98); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-hover); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink);
  transition: background-color .18s;
}
.icon-btn:hover { background: var(--bg); }
.icon-btn .icon { width: 22px; height: 22px; }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  color: var(--brand); font-weight: 600; font-size: inherit;
}
.link-btn:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 600; font-size: 15px;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--back { margin-top: 28px; color: var(--ink-2); }
.link-arrow--back:hover .icon { transform: translateX(-3px); }

.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px;
  background: var(--bg); color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.chip:hover { background: var(--brand-soft); color: var(--brand); }

/* Шапка */

.site-header { position: sticky; top: -40px; z-index: 60; }
@media (max-width: 1023px) { .site-header { top: 0; } }

.topbar { background: var(--brand-ink); color: rgb(255 255 255 / .78); font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 40px; }
.topbar__city {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  color: #fff; font-weight: 600; font-size: 13.5px;
}
.topbar__city .icon { width: 16px; height: 16px; color: var(--accent); }
.topbar__city:hover span { text-decoration: underline; text-underline-offset: 3px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__item .icon { width: 15px; height: 15px; opacity: .7; }
.topbar__hours { margin-left: auto; }
.topbar__mail:hover { color: #fff; }
@media (max-width: 1023px) { .topbar { display: none; } }

.header-main { background: rgb(255 255 255 / .96); border-bottom: 1px solid var(--line-soft); transition: box-shadow .2s; }
@supports (backdrop-filter: blur(8px)) { .header-main { background: rgb(255 255 255 / .86); backdrop-filter: saturate(1.4) blur(12px); } }
.is-scrolled .header-main { box-shadow: 0 10px 30px -20px rgb(21 18 63 / .35); }
.header-main__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; color: var(--brand); }
.brand__sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: rgb(255 255 255 / .6); }

.header-main__catalog { margin-left: 12px; }
.header-main__catalog[aria-expanded="true"] { background: var(--brand-hover); }

form.search { position: relative; display: flex; align-items: center; }
.search__input {
  width: 100%; height: 46px; padding: 0 48px 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 15px; transition: border-color .18s, background-color .18s, box-shadow .18s;
  -webkit-appearance: none; appearance: none;
}
.search__input::placeholder { color: #8d8ca1; }
.search__input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgb(43 37 119 / .1); }
.search__btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-2);
}
.search__btn:hover { background: var(--brand-soft); color: var(--brand); }
.header-main .search { flex: 1; max-width: 520px; }

.header-main__contact { display: grid; justify-items: end; margin-left: auto; line-height: 1.2; }
.header-phone { font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--brand); }
.header-callback { font-size: 13px; margin-top: 4px; }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 10px;
  border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 15px;
  transition: background-color .18s;
}
.cart-btn:hover { background: #e1def5; }
.cart-btn__icon { position: relative; display: grid; }
.cart-btn__icon .icon { width: 24px; height: 24px; }
.cart-btn__count {
  position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  border: 2px solid #fff; box-sizing: content-box;
}
.cart-btn__count.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } 100% { transform: scale(1); } }

.header-main__burger, .header-main__phone { display: none; }

@media (max-width: 1023px) {
  .header-main__burger, .header-main__phone { display: inline-grid; }
  .header-main__burger { margin-left: -8px; }
  .header-main__catalog, .header-main .search, .header-main__contact { display: none; }
  .header-main__phone { margin-left: auto; }
  .cart-btn { padding: 0 12px; background: transparent; }
  .cart-btn__label { display: none; }
  .brand__logo { width: 38px; height: 38px; }
  .brand__name { font-size: 15px; }
  .brand__sub { font-size: 11.5px; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .header-main__contact { display: none; }
  .header-main .search { max-width: none; }
}

.topbar__nav { margin-left: 8px; }
.topbar__menu { display: flex; gap: 2px; }
.topbar__menu a {
  position: relative; display: block; padding: 10px 10px; color: rgb(255 255 255 / .8); font-size: 13.5px; font-weight: 500;
}
.topbar__menu a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.topbar__menu a:hover, .topbar__menu .current-menu-item > a { color: #fff; }
.topbar__menu a:hover::after, .topbar__menu .current-menu-item > a::after { transform: scaleX(1); }
@media (max-width: 1180px) { .topbar__mail { display: none; } }
.topbar__menu a { white-space: nowrap; }
@media (max-width: 1239px) { .topbar__hours { display: none; } }
@media (min-width: 1024px) and (max-width: 1120px) { .topbar__menu a { padding: 10px 7px; } .topbar__inner { gap: 12px; } }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow-y: auto;
  animation: drop .22s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mega__inner { padding-top: 24px; padding-bottom: 28px; }
.mega__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.mega__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 16px; }
.mega__link { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.25; }
.mega__link img { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; background: var(--bg); flex: none; }
.mega__link small { margin-left: auto; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mega__link:hover { background: var(--brand-soft); color: var(--brand); }

/* Выезжающие панели */

.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer::before {
  content: ""; position: absolute; inset: 0; background: rgb(14 12 40 / .5);
  opacity: 0; transition: opacity .25s var(--ease);
}
.drawer.is-open::before { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column;
  width: min(440px, 100%); background: #fff; box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease);
}
.drawer__panel--right { right: 0; transform: translateX(100%); }
.drawer__panel--left { left: 0; transform: translateX(-100%); width: min(380px, 92%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line-soft);
}
.drawer__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; overscroll-behavior: contain; }
.drawer__section { margin: 20px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.drawer__contacts { display: grid; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-2); }
.drawer__contacts .btn { margin-top: 6px; }
.search--drawer { margin-bottom: 12px; }
.drawer-menu a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.drawer-menu a:hover { color: var(--brand); }
body.has-drawer { overflow: hidden; }

/* Корзина jcart в панели */

#jcart table { width: 100%; border-collapse: collapse; }
#jcart thead, #jcart th, #jcart .jcart-hide { display: none; }
#jcart tbody tr {
  display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "name name remove" "qty price price";
  gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
#jcart tbody td { padding: 0; border: 0; }
#jcart tbody td:first-child { display: none; }
#jcart .jcart-item-name { grid-area: name; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
#jcart .jcart-item-price { grid-area: price; justify-self: end; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; }
#jcart .jcart-item-qty { grid-area: qty; }
#jcart .jcart-item-qty input {
  width: 64px; height: 38px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-weight: 600;
}
#jcart .jcart-item-qty input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(43 37 119 / .12); }
#jcart .jcart-item-remove { grid-area: remove; justify-self: end; }
#jcart .jcart-remove { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
#jcart .jcart-remove:hover { color: var(--danger); }
#jcart td.empty { display: block; padding: 40px 0; text-align: center; color: var(--muted); }
#jcart tbody tr:has(td.empty) { display: block; }
#jcart tfoot, #jcart tfoot tr, #jcart tfoot td { display: block; border: 0 !important; padding: 0; background: none !important; }
#jcart tfoot tr:first-child { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; font-size: 15px; }
#jcart tfoot tr:first-child td:first-child { display: none; }
#jcart tfoot tr:first-child td { text-align: left !important; }
#jcart #jcart-subtotal strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
#jcart tfoot tr:last-child { display: grid; gap: 10px; }
#jcart #jcart-checkout, #jcart .jcart-button {
  width: 100%; min-height: 52px; border: 0; border-radius: var(--radius-sm); background: var(--brand); color: #fff;
  font-weight: 600; font-size: 16px; cursor: pointer;
}
#jcart #jcart-checkout:hover { background: var(--brand-hover); }
#jcart .prodpok {
  display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
}
#jcart .prodpok:hover { border-color: var(--brand); color: var(--brand); }
.jcart-tooltip, #jcart-tooltip { display: none !important; }

/* Модальные окна */

.modal {
  width: min(440px, calc(100vw - 32px)); padding: 32px 28px 28px; border: 0; border-radius: 20px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
}
.modal--wide { width: min(880px, calc(100vw - 32px)); }
.modal::backdrop { background: rgb(14 12 40 / .55); backdrop-filter: blur(2px); }
.modal[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal__close { position: absolute; top: 10px; right: 10px; }
.modal__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.modal__icon .icon { width: 26px; height: 26px; }
.modal__title { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; padding-right: 32px; }
.modal__lead { margin: 8px 0 20px; color: var(--muted); font-size: 14.5px; }
.city-list { columns: 4 160px; column-gap: 24px; margin-top: 20px; font-size: 14.5px; }
.city-list li { break-inside: avoid; }
.city-list a { display: block; padding: 5px 0; color: var(--ink-2); }
.city-list a:hover { color: var(--brand); }

.lightbox { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; padding: 0; border: 0; background: rgb(14 12 40 / .94); }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 12px; background: #fff; }
.lightbox__close { position: absolute; top: 16px; right: 16px; color: #fff; background: rgb(255 255 255 / .1); }
.lightbox__close:hover { background: rgb(255 255 255 / .2); }

/* Формы Contact Form 7 */

.wpcf7 form { display: grid; gap: 12px; }
.wpcf7 p { margin: 0; display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.wpcf7 br { display: none; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="tel"], .wpcf7 input[type="email"], .wpcf7 textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: 16px; color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.wpcf7 textarea { height: 110px; padding: 12px 14px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(43 37 119 / .1); }
.wpcf7 input[type="submit"], .wpcf7-submit {
  width: 100%; min-height: 50px; margin-top: 4px; border: 0; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; transition: background-color .18s;
}
.wpcf7 input[type="submit"]:hover { background: var(--brand-hover); }
.wpcf7-not-valid { border-color: var(--danger) !important; }
.wpcf7-not-valid-tip { display: block; margin-top: 4px; color: var(--danger); font-size: 13px; font-weight: 500; }
.wpcf7-response-output { margin: 4px 0 0 !important; padding: 12px 14px !important; border-radius: var(--radius-sm); border: 0 !important; font-size: 14px; background: var(--bg); }
.wpcf7-mail-sent-ok { background: #e6f4ec !important; color: var(--ok); }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng { background: #fbeceb !important; color: var(--danger); }
.ajax-loader, .wpcf7 .ajax-loader { display: none !important; }
.wpcf7-form.is-sending input[type="submit"] { opacity: .6; pointer-events: none; }

/* Секции */

.section { padding-block: 72px; }
.section--tight { padding-block: 40px 64px; }
.section--tint { background: var(--bg); }
@media (max-width: 767px) { .section { padding-block: 48px; } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head--sm { margin-bottom: 16px; }
.section-title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
}
.section-title--sm { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); }

/* Первый экран */

.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(55% 70% at 88% 0%, rgb(195 146 70 / .22), transparent 62%),
    radial-gradient(40% 60% at 0% 100%, rgb(87 79 190 / .25), transparent 70%),
    var(--brand-ink);
}
.hero__pattern {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgb(255 255 255 / .16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, #000 10%, transparent 75%);
  mask-image: linear-gradient(100deg, #000 10%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 104px; }
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; padding-top: 72px; padding-bottom: 128px; min-height: 600px; }
}
.hero__content { max-width: 640px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; margin-bottom: 24px;
  border-radius: 10px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12);
  color: rgb(255 255 255 / .86); font-size: 13.5px;
}
.hero__badge .icon { width: 18px; height: 18px; color: var(--accent); }
.hero__badge:hover { background: rgb(255 255 255 / .12); }
.hero__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.035em; line-height: 1.05;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.1rem);
  text-wrap: balance;
}
.hero__lead { margin-top: 20px; max-width: 560px; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgb(255 255 255 / .78); }

.search--hero { margin-top: 32px; max-width: 580px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 20px 50px -24px rgb(0 0 0 / .6); }
.search--hero .search__lead-icon { position: absolute; left: 20px; width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.search--hero .search__input { height: 54px; padding-left: 48px; padding-right: 12px; border: 0; background: transparent; font-size: 16.5px; color: var(--ink); }
.search--hero .search__input:focus { box-shadow: none; }
.search--hero:focus-within { box-shadow: 0 0 0 4px rgb(195 146 70 / .45), 0 20px 50px -24px rgb(0 0 0 / .6); }
.search__submit { flex: none; min-height: 50px; padding: 0 26px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero__chips a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid rgb(255 255 255 / .16); color: rgb(255 255 255 / .85); font-size: 14px;
  transition: background-color .18s, border-color .18s, color .18s;
}
.hero__chips a:hover { background: rgb(255 255 255 / .08); border-color: var(--accent); color: #fff; }

.hero__showcase { display: none; }
@media (min-width: 1024px) {
  .hero__showcase { display: block; position: relative; height: 560px; margin: -72px -40px -128px 0; }
}
.showcase {
  position: absolute; inset: -60px -80px -60px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  transform: rotate(-7deg); transform-origin: center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.showcase__col { overflow: hidden; }
.showcase__track { display: grid; gap: 16px; animation: drift 60s linear infinite; }
.showcase__col--2 .showcase__track { animation-direction: reverse; animation-duration: 72s; }
.showcase__col--3 .showcase__track { animation-duration: 66s; }
.showcase:hover .showcase__track { animation-play-state: paused; }
@keyframes drift { to { transform: translateY(calc(-50% - 8px)); } }
.showcase__tile {
  position: relative; overflow: hidden; border-radius: 14px; background: #fff;
  box-shadow: 0 24px 40px -24px rgb(0 0 0 / .7);
}
.showcase__tile img { width: 100%; aspect-ratio: 345 / 260; object-fit: cover; }
.showcase__tile span {
  position: absolute; left: 8px; bottom: 8px; right: 8px; padding: 6px 10px; border-radius: 8px;
  background: rgb(21 18 63 / .82); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.3;
  backdrop-filter: blur(6px);
}

/* Преимущества */

.perks { position: relative; z-index: 2; margin-top: -64px; }
.perks__list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  padding: 10px; border-radius: 20px; background: #fff; box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
}
@media (min-width: 768px) { .perks__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .perks__list { grid-template-columns: repeat(5, 1fr); } }
.perk { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; }
.perk strong { display: block; font-size: 15px; line-height: 1.25; }
.perk small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.3; }
.perk__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
.perk__icon .icon { width: 22px; height: 22px; }
@media (max-width: 767px) {
  .perks { margin-top: -48px; }
  .perk { padding: 10px; gap: 10px; }
  .perk__icon { width: 40px; height: 40px; }
  .perk:last-child { grid-column: span 2; }
}

/* Акции и подборки */

.promo__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) {
  .promo__grid { grid-template-columns: repeat(2, 1fr); }
  .promo-card--discount { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .promo__grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(150px, auto); }
  .promo__grid > :nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .promo__grid > :nth-child(2) { grid-column: span 5; grid-row: span 2; }
  .promo__grid > :nth-child(3) { grid-column: span 6; grid-row: span 2; }
  .promo__grid > :nth-child(4) { grid-column: span 3; }
  .promo__grid > :nth-child(5) { grid-column: span 3; }
  .promo__grid > :nth-child(6) { grid-column: span 6; }
  .promo-card--discount { grid-column: span 6; }
}

.promo-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  min-height: 220px; padding: 28px; border-radius: 20px; background: var(--bg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.promo-card__label {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 10px; border-radius: 7px;
  background: #fff; color: var(--accent-ink); font-size: 12.5px; font-weight: 600;
}
.promo-card__label .icon { width: 15px; height: 15px; }
.promo-card__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); letter-spacing: -.025em; line-height: 1.15; }
.promo-card p { color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.promo-card .link-arrow { margin-top: auto; padding-top: 8px; }

.promo-card--collection { padding-bottom: 28px; }
.promo-card--collection .promo-card__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; max-width: 52%; height: 100%; }
.promo-card__stack { position: absolute; right: 20px; top: 50%; width: 46%; height: 78%; transform: translateY(-50%); }
.promo-card__stack img {
  position: absolute; width: 62%; aspect-ratio: 345 / 260; object-fit: contain; padding: 8px;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 36px -20px rgb(21 18 63 / .45);
  transition: transform .35s var(--ease);
}
.promo-card__stack img:nth-child(1) { left: 0; top: 4%; transform: rotate(-7deg); }
.promo-card__stack img:nth-child(2) { right: 0; top: 22%; transform: rotate(5deg); z-index: 2; }
.promo-card__stack img:nth-child(3) { left: 14%; bottom: 0; transform: rotate(-2deg); z-index: 1; }
.promo-card--collection:hover .promo-card__stack img:nth-child(1) { transform: rotate(-10deg) translate(-6px, -4px); }
.promo-card--collection:hover .promo-card__stack img:nth-child(2) { transform: rotate(8deg) translate(6px, -4px); }
.promo-card__cover { position: absolute; right: 0; bottom: 0; width: 50%; height: 100%; object-fit: cover; }
@media (max-width: 560px) {
  .promo-card--collection .promo-card__text { max-width: none; }
  .promo-card__stack { position: relative; right: auto; top: auto; transform: none; width: 100%; height: 190px; margin-top: 12px; }
}

.promo-card--discount { background: var(--brand-ink); color: #fff; }
.promo-card--discount .promo-card__label { background: rgb(195 146 70 / .16); color: var(--accent); }
.promo-card--discount p { color: rgb(255 255 255 / .72); }
.ladder { display: flex; align-items: flex-end; gap: 10px; height: 170px; margin-top: 18px; }
.ladder li {
  position: relative; flex: 1; height: var(--h); min-height: 64px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px 12px; border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, rgb(195 146 70 / .95), rgb(195 146 70 / .55));
  color: var(--ink);
}
.ladder b { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; line-height: 1; }
.ladder span { margin-top: 4px; font-size: 12px; font-weight: 600; opacity: .8; font-variant-numeric: tabular-nums; }
.promo-card__note { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: rgb(255 255 255 / .8); font-size: 14px; }
.promo-card__note .icon { color: var(--accent); }

.promo-card--sale {
  background:
    repeating-linear-gradient(135deg, rgb(255 255 255 / .09) 0 2px, transparent 2px 14px),
    var(--accent);
  color: var(--ink);
}
.promo-card--sale .promo-card__label { background: var(--ink); color: var(--accent); }
.promo-card--sale .link-arrow { color: var(--ink); }

.promo-card--photo { padding: 0; justify-content: flex-end; min-height: 200px; background: var(--brand-ink); }
.promo-card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.promo-card--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(14 12 40 / .82)); }
.promo-card--photo:hover img { transform: scale(1.04); }
.promo-card__photo-title {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 22px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em;
}

/* Карточки разделов */

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-grid--compact { gap: 12px; }
@media (min-width: 1024px) { .cat-grid--compact { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .cat-grid--compact { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.cat-card__media { display: block; overflow: hidden; background: #fff; }
.cat-card__media img { width: 100%; aspect-ratio: 345 / 260; object-fit: cover; transition: transform .45s var(--ease); }
.cat-card__body { display: grid; gap: 3px; padding: 14px 52px 16px 16px; }
.cat-card__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.cat-card__count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cat-card__arrow {
  position: absolute; right: 12px; bottom: 14px; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 9px; background: var(--bg); color: var(--brand);
  transition: background-color .2s, color .2s, transform .25s var(--ease);
}
.cat-card__arrow .icon { width: 16px; height: 16px; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card:hover .cat-card__arrow { background: var(--brand); color: #fff; }
@media (max-width: 639px) {
  .cat-card__body { padding: 10px 12px 12px; }
  .cat-card__name { font-size: 14px; }
  .cat-card__arrow { display: none; }
}

/* Новости и статьи */

.journal__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .journal__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.news-list { display: grid; gap: 4px; }
.news-item {
  display: flex; align-items: center; gap: 18px; padding: 14px 12px; margin: 0 -12px; border-radius: 12px;
  font-weight: 500; line-height: 1.4; transition: background-color .18s;
}
.news-item:hover { background: var(--bg); color: var(--brand); }
.news-item time { display: grid; justify-items: center; flex: none; width: 64px; color: var(--muted); font-size: 12.5px; line-height: 1.2; text-align: center; }
.news-item time b { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--brand); letter-spacing: -.03em; }
.news-item--thumb img { width: 80px; height: 60px; object-fit: cover; border-radius: 10px; flex: none; }
.pdf-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 600; color: var(--brand); }

/* Текстовые блоки */

.prose { color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; margin-top: 1.6em; line-height: 1.3; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.2rem; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-color: rgb(43 37 119 / .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent); }
.prose img { border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose td, .prose th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose--sm { font-size: 15px; }
.prose strong { color: var(--ink); }

.seo-text__more { margin-top: 1em; }
.seo-text__more > * + * { margin-top: 1em; }
.seo-text__toggle { margin-top: 16px; }
.seo-text__toggle .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.seo-text__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.seo-text h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); letter-spacing: -.025em; color: var(--ink); }

/* Контакты */

.contacts { position: relative; display: grid; background: var(--bg); }
.contacts__map { width: 100%; height: 320px; border: 0; }
.contacts__inner { display: grid; gap: 16px; padding-top: 24px; padding-bottom: 48px; }
.contacts__card { padding: 28px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.contacts__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); letter-spacing: -.025em; margin-bottom: 20px; }
.contacts__list { display: grid; gap: 16px; margin-bottom: 20px; }
.contacts__list dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.contacts__list dt .icon { width: 16px; height: 16px; color: var(--accent-ink); }
.contacts__list dd { margin-top: 3px; font-weight: 600; font-size: 16px; line-height: 1.45; }
.contacts__list dd a:hover { color: var(--brand); }
.contacts__form-title { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.contacts__form-lead { margin: 6px 0 16px; color: var(--muted); font-size: 14.5px; }
@media (min-width: 900px) {
  .contacts { min-height: 600px; }
  .contacts__map { position: absolute; inset: 0; height: 100%; }
  .contacts__inner { position: relative; pointer-events: none; grid-template-columns: 380px 360px; align-content: center; padding-top: 64px; padding-bottom: 64px; }
  .contacts__card { pointer-events: auto; }
}

/* Подвал */

.site-footer { background: var(--brand-ink); color: rgb(255 255 255 / .72); font-size: 14.5px; }
.site-footer__inner { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 340px 1fr; gap: 64px; } }
.site-footer__brand { display: grid; gap: 8px; align-content: start; }
.site-footer__brand .brand { margin-bottom: 10px; }
.site-footer__phone { color: #fff; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.site-footer__mail:hover, .site-footer__phone:hover { color: var(--accent); }
.site-footer__menus { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 640px) { .site-footer__menus { grid-template-columns: repeat(4, 1fr); } }
.footer-widget__title { margin-bottom: 10px; color: #fff; font-weight: 600; }
.site-footer .menu { display: grid; gap: 8px; }
.site-footer .menu a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 13.5px;
}
.site-footer .link-btn { color: var(--accent); }

/* Внутренние страницы */

.page-head { padding: 28px 0 24px; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.page-head--compact { padding: 18px 0 0; background: transparent; border: 0; }
.page-head__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
.page-head__meta { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.page-head__date { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.page-title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.12;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.75rem); text-wrap: balance;
}

.crumbs { margin-bottom: 14px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[property="name"] { color: inherit; }

.layout { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 72px; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
  .layout__aside { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); max-height: calc(100dvh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
}

.cat-tree { border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); }
.cat-tree__summary {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; list-style: none; cursor: pointer;
}
.cat-tree__summary::-webkit-details-marker { display: none; }
.cat-tree__summary .icon { color: var(--brand); }
.cat-tree__chev { margin-left: auto; transition: transform .2s; }
.cat-tree[open] .cat-tree__chev { transform: rotate(180deg); }
.cat-tree > .cat-tree__list { padding: 0 8px 10px; }
@media (min-width: 1024px) {
  .cat-tree__summary { pointer-events: none; }
  .cat-tree__chev { display: none; }
}
.cat-tree__row { display: flex; align-items: center; }
.cat-tree__link {
  flex: 1; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px; border-radius: 9px;
  font-size: 14.5px; line-height: 1.3; color: var(--ink-2);
}
.cat-tree__link:hover { background: var(--bg); color: var(--ink); }
.cat-tree__count { margin-left: auto; padding: 1px 7px; border-radius: 6px; background: var(--bg); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cat-tree__toggle {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--muted);
}
.cat-tree__toggle:hover { background: var(--bg); color: var(--ink); }
.cat-tree__toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.cat-tree__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.cat-tree__list--sub { display: none; margin-left: 12px; padding-left: 8px; border-left: 1px solid var(--line); }
.cat-tree__item.is-open > .cat-tree__list--sub { display: block; }
.cat-tree__item.is-current > .cat-tree__row .cat-tree__link { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cat-tree__item.is-current > .cat-tree__row .cat-tree__count { background: #fff; color: var(--brand); }
.cat-tree--drawer .cat-tree__list { padding: 0; }
.cat-tree--drawer { border: 0; }

.segmented { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 12px; background: var(--bg); }
.segmented__item {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background-color .18s, color .18s;
}
.segmented__item .icon { width: 18px; height: 18px; }
.segmented__item small { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.segmented__item:hover { color: var(--ink); }
.segmented__item.is-active { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgb(22 21 43 / .1); }

.term-text { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-soft); }

/* Карточки товаров */

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .product-grid--wide, .product-grid--row { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease), border-color .25s;
}
.product-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.product-card__media { display: block; padding: 12px 12px 0; }
.product-card__media img { width: 100%; aspect-ratio: 345 / 260; object-fit: contain; border-radius: 10px; transition: transform .4s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px 14px 14px; }
.product-card__sku { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.product-card__title { font-size: 14.5px; font-weight: 500; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.product-card__title a:hover { color: var(--brand); }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.product-card__price { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-card__price span { font-family: var(--font); font-weight: 600; font-size: 15px; color: var(--muted); }
.product-card__ask { position: relative; z-index: 1; color: var(--brand); font-weight: 600; font-size: 14px; }
.product-card .buy-form { position: relative; z-index: 1; }

.buy-form { display: flex; gap: 10px; margin: 0; }
.buy-form fieldset { border: 0; margin: 0; padding: 0; }
.buy-form--compact .buy-form__btn { width: 44px; min-height: 44px; padding: 0; }
.buy-form--compact .buy-form__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.buy-form__btn .icon { width: 20px; height: 20px; }
.buy-form.is-loading .buy-form__btn { opacity: .65; pointer-events: none; }
.buy-form.is-added .buy-form__btn { background: var(--ok); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pager .page-numbers {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums;
}
.pager a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .dots { border: 0; background: none; }
.pager .icon { width: 18px; height: 18px; }

/* Страница товара */

.product { display: grid; gap: 28px; padding-top: 12px; padding-bottom: 64px; }
@media (min-width: 960px) { .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
@media (min-width: 960px) { .product__gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.gallery__stage { border-radius: 20px; background: #fff; border: 1px solid var(--line-soft); overflow: hidden; }
.gallery__slide { position: relative; display: block; width: 100%; padding: 24px; border: 0; background: #fff; cursor: zoom-in; }
.gallery__slide img { width: 100%; aspect-ratio: 4 / 3; max-height: 520px; object-fit: contain; }
.gallery__zoom {
  position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; background: var(--bg); color: var(--ink-2); transition: background-color .18s, color .18s;
}
.gallery__slide:hover .gallery__zoom { background: var(--brand); color: #fff; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb { flex: none; padding: 4px; border: 2px solid var(--line-soft); border-radius: 12px; background: #fff; }
.gallery__thumb img { width: 80px; height: 60px; object-fit: contain; }
.gallery__thumb.is-active { border-color: var(--brand); }

.product__sku { display: inline-flex; gap: 6px; padding: 5px 10px; margin-bottom: 14px; border-radius: 8px; background: var(--bg); color: var(--muted); font-size: 13.5px; }
.product__sku b { color: var(--ink); font-weight: 600; }
.product__title { font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.product__subtitle { margin: 32px 0 12px; font-size: 18px; font-weight: 700; }

.buy-box { margin-top: 24px; padding: 22px; border-radius: 20px; background: var(--bg); }
.price { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.price__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price__currencies { display: inline-flex; padding: 3px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.price__currencies button {
  min-width: 38px; height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-weight: 600;
}
.price__currencies button.is-active { background: var(--brand); color: #fff; }
.price__note { margin-top: 8px; color: var(--muted); font-size: 13px; }
.price__ask { font-weight: 600; }
.buy-box .buy-form { margin-top: 18px; }
.buy-form--wide .buy-form__btn { flex: 1; min-height: 54px; font-size: 16px; }
.buy-box__help { display: flex; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.buy-box__help .icon { color: var(--accent-ink); margin-top: 1px; }
.buy-box__help a { color: var(--ink); font-weight: 700; white-space: nowrap; }
.buy-box__help a:hover { color: var(--brand); }

.qty { display: inline-flex; align-items: center; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.qty__btn { display: grid; place-items: center; width: 44px; height: 52px; padding: 0; border: 0; background: none; color: var(--ink-2); }
.qty__btn:hover { color: var(--brand); }
.qty__btn .icon { width: 18px; height: 18px; }
.qty__input { width: 48px; height: 52px; border: 0; text-align: center; font-weight: 700; font-size: 16px; background: none; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }
.qty:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(43 37 119 / .12); }

.specs { border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs > .specs__wide { grid-template-columns: 1fr; }
.specs__wide dd { color: var(--ink-2); font-weight: 500; }
.specs dd { font-weight: 500; }
.specs a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.related .product-grid--row { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .related .product-grid--row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .related .product-grid--row { grid-template-columns: repeat(4, 1fr); } }

/* Оформление заказа */

.checkout { padding-top: 32px; padding-bottom: 72px; }
.checkout__grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .checkout__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; } }
.checkout__cart, .checkout__form { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line-soft); }
.checkout__form { box-shadow: var(--shadow); }
@media (min-width: 960px) { .checkout__form { position: sticky; top: calc(var(--header-h) + 20px); } }
.checkout__title { margin-bottom: 16px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.checkout__form .prose { margin-bottom: 16px; }
.order-item { display: grid; grid-template-columns: 72px 1fr auto; grid-template-areas: "img info remove" "img qty price"; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.order-item img { grid-area: img; width: 72px; height: 54px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.order-item__info { grid-area: info; display: grid; gap: 2px; }
.order-item__name { font-weight: 600; font-size: 15px; line-height: 1.35; }
.order-item__name:hover { color: var(--brand); }
.order-item__sku { color: var(--muted); font-size: 12.5px; }
.order-item__qty { grid-area: qty; color: var(--muted); font-size: 14px; }
.order-item__price { grid-area: price; justify-self: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-item__remove { grid-area: remove; justify-self: end; width: 36px; height: 36px; color: var(--muted); }
.order-item__remove:hover { color: var(--danger); background: #fbeceb; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0 0; font-weight: 600; }
.order-total b { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }

.empty-state { display: grid; justify-items: center; gap: 14px; padding: 48px 24px; border-radius: 20px; background: var(--bg); text-align: center; color: var(--ink-2); }
.empty-state > .icon { width: 44px; height: 44px; color: var(--brand); }
.empty-state h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
.empty-state p { max-width: 46ch; }
.empty-state--page { padding: 72px 24px; }
.empty-state--ok > .icon { color: var(--ok); }

/* Блог и поиск */

.post-list { display: grid; gap: 16px; }
.post-card { display: grid; gap: 16px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: #fff; }
@media (min-width: 640px) { .post-card--media { grid-template-columns: 200px 1fr; align-items: start; } }
.post-card { padding: 20px 22px; }
.empty-state form.search { width: min(420px, 100%); }
.empty-state form.search .search__input { background: #fff; }
.post-card__media img { width: 100%; aspect-ratio: 345 / 260; object-fit: cover; border-radius: 12px; }
.post-card__date { color: var(--muted); font-size: 13.5px; }
.post-card__title { margin: 4px 0 8px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.post-card__title a:hover { color: var(--brand); }
.post-card__excerpt { color: var(--ink-2); font-size: 15px; }
.post-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); }

.search--page { margin-top: 18px; max-width: 640px; gap: 8px; }
.search--page .search__input { padding-right: 16px; background: #fff; }
.search--page .search__submit { min-height: 46px; }
.search-others { margin: 48px 0 12px; }
.link-list { display: grid; border-top: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.link-list a:hover { color: var(--brand); }

/* Появление и движение */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .showcase__track { animation: none !important; }
}

/* Главная: разделы плотнее */
@media (min-width: 1024px) { .catalog-home .cat-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .catalog-home .cat-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.catalog-home .cat-card__body { padding: 12px 44px 14px 14px; }
.catalog-home .cat-card__name { font-size: 14.5px; }
.catalog-home .cat-card__arrow { right: 10px; bottom: 12px; width: 28px; height: 28px; }

.wpcf7-response-output:empty, .wpcf7-display-none { display: none !important; }
.crumbs span[typeof="ListItem"] { margin-right: .3em; }
.crumbs span[typeof="ListItem"] + span[typeof="ListItem"], .crumbs > span:not(:first-child) { margin-left: .2em; }
.price__cur { margin-left: -6px; font-weight: 600; font-size: 22px; color: var(--muted); }

#jcart fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wpcf7 select {
  width: 100%; height: 48px; padding: 0 40px 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366657d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.wpcf7 select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(43 37 119 / .1); }
/* Мобильная раскладка */
@media (max-width: 959px) { .product { grid-template-columns: minmax(0, 1fr); } }
.product > *, .product-grid > *, .cat-grid > *, .promo__grid > *, .layout > *, .checkout__grid > * { min-width: 0; }
.search__input { min-width: 0; }
.cat-card__name, .product-card__title { overflow-wrap: anywhere; }
.promo-card__title, .page-title, .product__title, .hero__title { overflow-wrap: break-word; hyphens: manual; }
.header-main__search { display: none; }
@media (max-width: 1023px) {
  .header-main__search { display: inline-grid; margin-left: auto; }
  .header-main__phone { margin-left: 0; }
}
@media (max-width: 560px) {
  .ladder { display: grid; grid-template-columns: repeat(2, 1fr); height: auto; gap: 8px; }
  .ladder li { height: auto; min-height: 0; padding: 12px; border-radius: 12px; }
  .ladder li:nth-child(1) { opacity: .7; }
  .ladder li:nth-child(2) { opacity: .8; }
  .ladder li:nth-child(3) { opacity: .9; }
  .promo-card { padding: 22px; min-height: 0; }
  .promo-card--collection .promo-card__text { height: auto; }
  .promo-card--collection .link-arrow { margin-top: 4px; }
  .promo-card__stack { height: 170px; margin-top: 16px; }
  .promo-card__stack img { width: 56%; }
  .perks__list { grid-template-columns: 1fr; padding: 6px; }
  .perk:last-child { grid-column: auto; }
  .perk { padding: 8px 10px; }
  .perk small { display: inline; margin-left: 4px; }
  .perk strong { display: inline; font-size: 14.5px; }
  .buy-box { padding: 16px; }
  .qty__btn { width: 38px; }
  .qty__input { width: 40px; }
}

/* В форме заказа у выбора транспортной компании нет подписи */
.formclass > p:first-child::before { content: "Транспортная компания (обязательно)"; }
