/* ==========================================================
   PHOENIX NTR — стили по макету (десктоп)
   ========================================================== */
:root {
  --wine: #751138;        /* фирменный: навигация, акценты, цены */
  --wine-2: #83294c;      /* «Доп. каталог» */
  --wine-3: #9c1743;      /* «Распродажа» */
  --ink: #151318;         /* верхняя строка, чёрные кнопки */
  --night: #1c1a20;       /* блок заявки и подвал */
  --sand: #f4f1ec;        /* фон секции новинок */
  --line: #dcdcdc;        /* рамки карточек */
  --line-soft: #e6e6e6;
  --grey: #6b6a70;        /* вторичный текст */
  --paper: #ffffff;

  /* Заголовки — Play (бесплатный, Google Fonts): техничный характер в духе TECE.
     У Play два начертания: 400 и 700, поэтому все жирные заголовки — 700. */
  --font-head: "Play", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1290px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-text); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.caps { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.mono { font-family: var(--font-mono); }
svg.i { width: 16px; height: 16px; flex: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 28px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--white { background: #fff; color: var(--wine); }
.btn--white:hover { background: var(--sand); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
/* Спокойная кнопка-ссылка: тонкая рамка, небольшая стрелка, при наведении — бордовый и сдвиг стрелки. */
.btn--quiet { height: 48px; padding: 0 22px; border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--quiet svg { width: 16px; height: 16px; transition: transform .2s; }
.btn--quiet:hover { border-color: var(--wine); color: var(--wine); }
.btn--quiet:hover svg { transform: translateX(4px); }
.btn--wine { background: var(--wine); color: #fff; }
.btn--wine:hover { background: var(--wine-3); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--wine); }
.btn--outline-light { border-color: rgba(255,255,255,.3); color: #fff; font-family: var(--font-mono); letter-spacing: .08em; }
.btn--outline-light:hover { border-color: #fff; }

/* ---------- Верхняя строка ---------- */
.topbar { background: var(--ink); color: #e9e6ea; font-size: 15px; }
.topbar__inner { display: flex; align-items: center; height: 47px; }
.topbar__left { display: flex; align-items: center; }
.topbar__left > * + *::before { content: ""; display: inline-block; width: 1px; height: 12px; background: #4a484e; margin: 0 16px; vertical-align: -1px; }
.topbar__phone { font-weight: 700; }
/* Второй номер: на телефоне пока скрыт (решение — за мобильной версией). */
@media (max-width: 767px) { .topbar .topbar__phone--2 { display: none; } }
.topbar__mail { color: #969498; }
.topbar__mail:hover, .topbar__links a:hover { color: #fff; }
.topbar__links { margin-left: auto; display: flex; gap: 24px; }


/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 60; background: #fff; }
.header__main { display: flex; align-items: center; gap: 24px; height: 80px; }
.logo { flex: none; display: block; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.logo img { display: block; pointer-events: none; -webkit-user-drag: none; user-drag: none; } /* весь прямоугольник — одна кнопка «на главную» */
.header .logo { transition: filter .15s ease, transform .1s ease; }
.header .logo:hover { filter: brightness(1.12); }
.header .logo:active { transform: translateY(1px); filter: brightness(.95); }
.header .logo:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.header .logo img { width: 294px; height: 52px; }
.footer .logo img { height: auto; }
.logo__text { display: inline-block; padding: 6px 12px; background: var(--wine); color: #fff; font-family: var(--font-head); font-weight: 700; font-style: italic; font-size: 24px; }

.hsearch { flex: 1; display: flex; height: 52px; border: 1px solid var(--ink); }
.hsearch input { flex: 1; min-width: 0; border: 0; padding: 0 22px; font-size: 16px; }
.hsearch input::placeholder { color: #8b8a8f; }
.hsearch input:focus { outline: none; }
.hsearch:focus-within { border-color: var(--wine); }
.hsearch button { flex: none; width: 64px; border: 0; background: var(--wine); color: #fff; display: grid; place-items: center; }
.hsearch button:hover { background: var(--wine-3); }
.hsearch button svg { width: 18px; height: 18px; }


/* Навигация */
.nav { background: var(--wine); color: #fff; }
.nav__inner { display: flex; align-items: stretch; height: 64px; }
.nav__btn { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; border: 0; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.nav__btn--catalog { background: #fff; color: var(--ink); padding: 0 18px; }
.nav__btn--catalog svg { width: 18px; height: 18px; }
.nav__links { margin-left: 36px; display: flex; align-items: center; gap: 22px; font-size: 15px; letter-spacing: .06em; }
.nav__btn--brands { margin-left: 2px; padding: 0 22px; text-decoration: none; }
.nav__btn--brands:hover { background: var(--sand); }
.nav__links--center { flex: 1; justify-content: flex-start; margin-left: 36px; }
.nav__links--right { margin-left: 0; }
.nav__links a { opacity: .95; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav__btn--menu, .nav__only-mobile { display: none; }

.mega { position: absolute; left: 50%; top: 100%; z-index: 55; width: min(calc(var(--container) + 96px), calc(100vw - 32px)); transform: translateX(-50%); background: #fff; border: 1px solid var(--line); border-top: 0; box-shadow: 0 30px 50px rgba(21,19,24,.12); display: none; }
.mega .mega__grid { max-width: none; margin: 0; padding: 36px 48px 10px; }
.header[data-mega] .mega { display: block; }
.mega__grid { display: block; column-count: 3; column-gap: 40px; padding-top: 36px; padding-bottom: 40px; }
.mega__grid > div { display: inline-block; width: 100%; margin: 0; padding-bottom: 30px; vertical-align: top; break-inside: avoid; -webkit-column-break-inside: avoid; }
.mega h4 { margin-top: 0; }
.mega h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); margin-bottom: 16px; }
.mega a { display: block; padding: 7px 0; font-size: 17px; }
.mega a:hover { color: var(--wine); }

/* ---------- Первый экран ---------- */
.hero { position: relative; height: 943px; color: #fff; overflow: hidden; background: #2b2926; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; } /* как в макете: кадр прижат к низу — видны пол и сантехника */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,16,.62) 0%, rgba(20,18,16,.38) 45%, rgba(20,18,16,.12) 75%); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; height: 100%; }
.hero__content { position: absolute; left: var(--gutter); top: 438px; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.hero h1 { font-size: 92px; font-weight: 700; line-height: .86; letter-spacing: -.01em; margin-top: 30px; }
.hero h1 .line { display: block; }
.hero h1 .mark { display: inline-block; padding: 0 16px 10px 0; margin-top: -2px; background: linear-gradient(180deg, transparent 0 50%, rgba(117,17,56,.6) 50% 100%); }
.hero__lead { font-size: 19px; color: rgba(255,255,255,.88); margin-top: 26px; }
.hero__actions { display: flex; gap: 20px; margin-top: 46px; }
.hero__actions .btn--white { min-width: 172px; }

.spec { position: absolute; right: var(--gutter); top: 632px; width: 286px; padding: 18px 20px 20px; background: rgba(21,19,24,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.spec__brand { display: inline-block; padding: 3px 8px; background: var(--wine); font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .14em; }
.spec h2 { font-size: 16px; letter-spacing: .02em; margin-top: 12px; }
.spec__type { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 2px; }
.spec__line { height: 1px; background: rgba(255,255,255,.25); margin: 16px 0 14px; }
.spec dl { margin: 0; display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 12px 16px; }
.spec dt { font-family: var(--font-mono); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); }
.spec dd { margin: 2px 0 0; font-family: var(--font-mono); font-weight: 800; font-size: 14px; white-space: nowrap; }

/* Плашка товара проявляется на месте при каждой смене слайда (только прозрачность, без сдвига) */
.spec { opacity: 0; }
.spec.is-in { animation: phoenix-spec-in .9s ease .45s both; }
@keyframes phoenix-spec-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .spec, .spec.is-in { opacity: 1; animation: none; } }

.hero__dots { position: absolute; left: 50%; bottom: 26px; z-index: 3; display: flex; gap: 14px; transform: translateX(-50%); }
.hero__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.35); }
.hero__dots button[aria-current="true"] { background: #fff; }

/* ---------- Преимущества ---------- */
.benefits { border-bottom: 1px solid var(--line); }
.benefits__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit { display: grid; grid-template-columns: 18px 1fr; align-content: start; column-gap: 18px; padding: 32px 26px 34px 6px; min-height: 156px; }
.benefit + .benefit { border-left: 1px solid var(--line); padding-left: 32px; }
.benefit svg { width: 18px; height: 18px; color: var(--wine); margin-top: 1px; }
.benefit h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; line-height: 1.35; }
.benefit p { grid-column: 2; font-size: 15px; color: var(--grey); line-height: 1.45; margin-top: 8px; }

/* ---------- Секции ---------- */
.section { padding: 110px 0 90px; }
.section--sand { background: var(--sand); padding: 50px 0 90px; }
.section--brands { padding: 90px 0 90px; }
.section__head { display: flex; align-items: center; margin-bottom: 42px; }
.section__head h2 { font-size: 51px; letter-spacing: -.005em; }
.section__more { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.section__more svg { width: 14px; height: 14px; transition: transform .2s; }
.section__more:hover { color: var(--wine); border-color: var(--wine); }
.section__more:hover svg { transform: translateX(3px); }

/* Категории */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cat { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; transition: border-color .2s; }
.cat:hover { border-color: var(--wine); }
.cat__media { position: relative; height: 262px; overflow: hidden; background: #fff; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat__media img.is-placeholder { object-fit: contain; padding: 22px; }
.cat__media img.is-contain { object-fit: contain; padding: 8px; }
.cat:hover .cat__media img { transform: scale(1.03); }
.cat__body { display: flex; align-items: center; gap: 12px; padding: 18px 18px 18px 18px; border-top: 1px solid var(--line); min-height: 74px; }
.cat__body div { flex: 1; min-width: 0; }
.cat h3 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.cat p { font-size: 14px; color: var(--grey); margin-top: 4px; }
.cat__arrow { flex: none; display: grid; place-items: center; width: 26px; height: 26px; background: var(--ink); color: #fff; transition: background-color .2s; }
.cat:hover .cat__arrow { background: var(--wine); }
.cat__arrow svg { width: 14px; height: 14px; }

/* Товары */
.products { display: grid; grid-template-columns: repeat(4, 300px); gap: 20px; }
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; padding: 9px 9px 9px; }
.pcard__media { position: relative; display: grid; place-items: center; height: 290px; }
.pcard__media img, .woocommerce ul.products li.product .pcard__media img { display: block; width: 100% !important; height: 230px !important; max-height: none; margin: 0 !important; object-fit: contain; }
.pcard .pcard__meta { border-top: 1px dotted #c9c9c9; padding-top: 16px; min-height: 100px; }
.pcard__sku { font-family: var(--font-mono); font-size: 12px; color: var(--grey); letter-spacing: .04em; }
.pcard h3 { font-family: var(--font-text); font-size: 16px; font-weight: 800; line-height: 1.3; margin-top: 12px; }
.pcard h3 a:hover { color: var(--wine); }
.pcard__price { border-top: 1px dotted #c9c9c9; padding-top: 12px; margin-top: 14px; text-align: right; font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--wine); }
.pcard__price small { display: block; font-family: var(--font-text); font-weight: 600; font-size: 13px; color: var(--grey); letter-spacing: 0; }
.pcard__actions { display: flex; gap: 8px; margin-top: 16px; }
.pcard__actions .btn { flex: 1; height: 45px; padding: 0 12px; }
.pcard__add { flex: none; width: 46px; height: 45px; border: 1px solid #c9c9c9; background: #fff; font-size: 22px; line-height: 1; }
.pcard__add:hover:not(:disabled) { border-color: var(--wine); color: var(--wine); }
.pcard__add:disabled { cursor: default; opacity: .55; }

/* Бренды */

/* Заявка + подвал */
.cta { background: var(--night); color: #fff; }
.cta__inner { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 64px; padding-bottom: 46px; }
.cta h2 { font-size: 47px; line-height: 1.08; }
.cta p { font-size: 16px; color: #b9b7bd; margin-top: 16px; max-width: 360px; line-height: 1.45; }
.cta__actions { display: flex; gap: 12px; margin-top: 22px; }
.cta__actions .btn--wine { min-width: 232px; height: 56px; }
.cta__actions .btn--outline-light { min-width: 214px; height: 56px; font-weight: 700; font-size: 15px; }

.footer { background: var(--night); color: #b9b7bd; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1fr 154px 161px 288px auto; padding-top: 40px; padding-bottom: 54px; }
.cta__inner, .footer__grid { background: linear-gradient(#4a4a4a, #4a4a4a) no-repeat var(--gutter) 100% / calc(100% - var(--gutter) * 2) 1px; }
.footer__about p { margin-top: 24px; max-width: 250px; line-height: 1.5; }
.footer h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #d7d5da; margin: 6px 0 26px; }
.footer li + li { margin-top: 16px; }
.footer nav a { color: #fff; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__contacts li { color: #fff; line-height: 1.5; }
.footer__contacts li + li { margin-top: 18px; }
.footer__phones { justify-self: end; }
.footer__phones li + li { margin-top: 6px; }
.footer__phones a { font-family: var(--font-mono); font-weight: 800; font-size: 20px; color: #fff; white-space: nowrap; }
.footer__bottom { display: flex; gap: 38px; padding-top: 26px; padding-bottom: 36px; }
.footer__bottom span { margin-right: auto; }

/* Плавающие кнопки */
.floating { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.floating a, .floating button { width: 52px; height: 52px; border: 0; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(21,19,24,.25); }
.floating .up { background: #fff; color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.floating .up[data-visible] { opacity: 1; visibility: visible; }
.floating svg { width: 24px; height: 24px; }

/* ---------- Модальные окна ---------- */
.modal { border: 0; padding: 0; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--ink); }
.modal::backdrop { background: rgba(21,19,24,.7); }
.modal__box { position: relative; padding: 44px 40px 36px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--grey); }
.modal h2 { font-size: 32px; padding-right: 30px; }
.modal__lead { color: var(--grey); margin-top: 10px; }
.form { display: grid; gap: 14px; margin-top: 26px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #c9c9c9; background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); }
.field__error { display: none; font-size: 14px; color: var(--wine-3); margin-top: 4px; }
.field[data-invalid] input { border-color: var(--wine-3); }
.field[data-invalid] .field__error { display: block; }
.form .btn { width: 100%; margin-top: 6px; }
.form__consent { font-size: 14px; color: var(--grey); }
.form__consent a { text-decoration: underline; }
.order-summary { background: var(--sand); padding: 16px 18px; display: grid; gap: 12px; margin-top: 22px; }
.order-summary__name { font-weight: 800; }
.order-summary__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-summary strong { font-family: var(--font-head); color: var(--wine); font-size: 19px; }
.qty { display: inline-flex; border: 1px solid #c9c9c9; background: #fff; }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 20px; }
.qty input { width: 48px; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.success { text-align: center; padding: 16px 0 4px; }
.success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sand); color: var(--wine); display: grid; place-items: center; margin: 0 auto 18px; font-size: 32px; }


/* ---------- Формы: ловушка для ботов и ошибки ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; padding: 10px 12px; background: #fbeef2; color: var(--wine-3); font-size: 15px; }
.form button[type="submit"][disabled] { opacity: .6; cursor: progress; }

/* ---------- Внутренние страницы ---------- */
.pg { padding: 48px 0 96px; min-height: 50vh; }
.page__title { font-size: 51px; margin-bottom: 32px; }
.page__content { max-width: 820px; font-size: 18px; line-height: 1.65; }
.page__content h2 { font-size: 32px; margin: 40px 0 16px; }
.page__content h3 { font-size: 22px; margin: 32px 0 12px; }
.page__content p, .page__content ul, .page__content ol { margin: 0 0 16px; }
.page__content ul { list-style: disc; padding-left: 22px; }
.page__content a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.page__item + .page__item { margin-top: 32px; }
.page__item h2 { font-size: 24px; margin-bottom: 8px; }

/* ---------- Каталог WooCommerce (временное оформление) ---------- */
.breadcrumbs { font-size: 15px; color: var(--grey); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--wine); }
.breadcrumbs .sep { margin: 0 8px; color: #b5b3b8; }
.pg--shop .woocommerce-products-header__title, .pg--shop h1.page-title { font-family: var(--font-head); font-size: 51px; margin: 0 0 24px; }
.pg--shop .term-description { max-width: 820px; color: var(--grey); margin-bottom: 24px; }
.pg--shop .woocommerce-result-count { float: left; margin: 10px 0 24px; color: var(--grey); font-size: 15px; }
.pg--shop .woocommerce-ordering { float: right; margin: 0 0 24px; }
.pg--shop .woocommerce-ordering select { height: 40px; padding: 0 12px; border: 1px solid #c9c9c9; background: #fff; }
.woocommerce ul.products, ul.products { clear: both; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 0 40px; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after, ul.products::before, ul.products::after { display: none !important; }
.woocommerce ul.products li.product, ul.products li.pcard-item { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; }
ul.products .pcard { height: 100%; border: 1px solid var(--line-soft); }
.pg--shop .woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; border: 0 !important; }
.pg--shop .woocommerce-pagination ul li { border: 0 !important; }
.pg--shop .woocommerce-pagination a, .pg--shop .woocommerce-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px !important; border: 1px solid var(--line) !important; font-family: var(--font-mono); }
.pg--shop .woocommerce-pagination .current { background: var(--wine) !important; border-color: var(--wine) !important; color: #fff !important; }
.pg--shop .woocommerce-info { padding: 20px 24px; background: var(--sand); border: 0; color: var(--ink); }
.pg--shop .woocommerce-info::before { display: none; }

/* Карточка товара (временное оформление) */
.pg--shop div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pg--shop div.product .woocommerce-product-gallery, .pg--shop div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.pg--shop div.product .woocommerce-tabs, .pg--shop div.product .related, .pg--shop div.product .upsells { grid-column: 1 / -1; }
.pg--shop .product_title { font-size: 38px; line-height: 1.15; margin-bottom: 16px; }
.single-price { margin: 18px 0 24px; padding: 18px 0; border-top: 1px dotted #c9c9c9; border-bottom: 1px dotted #c9c9c9; }
.single-price small { display: block; font-size: 14px; font-weight: 600; color: var(--grey); }
.single-price span { font-family: var(--font-head); font-weight: 700; font-size: 36px; color: var(--wine); }
.single-actions { margin: 0 0 28px; }
.single-actions .btn { min-width: 260px; }
.pg--shop .product_meta { font-size: 15px; color: var(--grey); display: grid; gap: 6px; }
.pg--shop .product_meta a { color: var(--wine); }
.pg--shop .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 24px !important; border-bottom: 1px solid var(--line); display: flex; gap: 28px; }
.pg--shop .woocommerce-tabs ul.tabs::before, .pg--shop .woocommerce-tabs ul.tabs li::before, .pg--shop .woocommerce-tabs ul.tabs li::after { display: none !important; }
.pg--shop .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
.pg--shop .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 0 !important; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey) !important; }
.pg--shop .woocommerce-tabs ul.tabs li.active a { color: var(--wine) !important; box-shadow: inset 0 -2px 0 var(--wine); }
.pg--shop .woocommerce-tabs .panel h2 { font-size: 24px; margin-bottom: 16px; }
.pg--shop table.shop_attributes { width: 100%; border-collapse: collapse; }
.pg--shop table.shop_attributes th, .pg--shop table.shop_attributes td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; font-style: normal; }
.pg--shop table.shop_attributes th { width: 35%; font-weight: 600; color: var(--grey); }
.pg--shop .related > h2 { font-size: 32px; margin: 40px 0 24px; }

/* =========================================================
   Внутренние страницы: первый экран
   ========================================================= */
.phero { position: relative; height: 100vh; min-height: 640px; max-height: 1150px; color: #fff; background: #2b2926; overflow: hidden; }
.phero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.phero::after { content: ""; position: absolute; inset: 0; background: rgba(28,28,28,.65); }
.phero__inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.phero__content { max-width: 760px; display: flex; flex-direction: column; gap: 35px; padding-top: 40px; }
.phero__title { font-size: 92px; font-weight: 700; line-height: .9; letter-spacing: -.01em; }
.phero__title .line { display: block; }
.phero__title .line--mark { display: inline-block; padding: 0 18px 4px 4px; margin-left: -4px; background: linear-gradient(180deg, transparent 0 58%, rgba(117,17,56,.8) 58% 100%); }
.phero__desc { max-width: 460px; font-size: 19px; line-height: 1.5; color: rgba(255,255,255,.88); }
.phero .btn--white { min-width: 214px; }

.section__head--stack { align-items: flex-start; }
.section__head--stack .section__head--stack h2 { line-height: .95; }

/* ---------- Привилегии ---------- */
.adv { padding: 90px 0; }
.adv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.adv__card { display: flex; flex-direction: column; gap: 16px; padding: 41px; border: 1px solid #e5e7eb; transition: border-color .25s; }
.adv__card:hover { border-color: var(--wine); }
.adv__icon { width: 44px; height: 44px; color: var(--ink); margin-bottom: 14px; }
.adv__card h3 { font-size: 20px; line-height: 1.4; letter-spacing: .03em; text-transform: uppercase; transition: color .25s; }
.adv__card:hover h3 { color: var(--wine); }
.adv__card p { font-size: 18px; line-height: 1.63; color: #4a5565; }

/* ---------- Программа обучения ---------- */
.courses { background: var(--sand); padding: 72px 0; }
.courses__inner { display: grid; grid-template-columns: 300px 1fr; gap: 100px; align-items: start; }
.courses .section__head { margin-bottom: 20px; }
.courses__desc { font-size: 18px; line-height: 1.5; color: #5d5862; }
.courses__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.course { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(117,17,56,.1); padding: 32px; box-shadow: 0 8px 30px rgba(21,19,24,.04); transition: box-shadow .25s, transform .25s, border-color .25s; overflow: hidden; }
.course::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.course:hover { border-color: rgba(117,17,56,.3); box-shadow: 0 14px 38px rgba(21,19,24,.08); transform: translateY(-3px); }
.course:hover::before { transform: scaleX(1); }
.course__body { flex: 1; padding-bottom: 32px; border-bottom: 1px solid rgba(21,19,24,.08); }
.course h3 { font-size: 20px; line-height: 1.4; text-transform: uppercase; margin-bottom: 16px; }
.course ul { display: grid; gap: 12px; }
.course li { position: relative; padding-left: 16px; font-size: 16px; line-height: 1.43; color: #4a4550; }
.course li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--wine); }
.course__foot { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 18px; }
.course__duration { font-family: var(--font-mono); font-size: 14px; color: #6a6572; }
.course__price { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--wine); }

/* ---------- Профессиональный клуб ---------- */
.club { padding: 90px 0; }
.club__inner { display: grid; grid-template-columns: .85fr 1fr; gap: 76px; align-items: center; }
.club__left { position: relative; padding-left: 24px; padding-top: 24px; }
.club__decor { position: absolute; top: 0; left: 0; width: 128px; height: 128px; background: rgba(117,17,56,.1); }
.levels { position: relative; overflow: hidden; background: var(--sand); border: 1px solid rgba(117,17,56,.12); border-left: 4px solid var(--wine); padding: 44px 48px; box-shadow: 0 18px 45px rgba(21,19,24,.08); }
.levels__watermark { position: absolute; top: -10px; right: -30px; width: 200px; height: 200px; color: var(--wine); opacity: .06; pointer-events: none; }
.levels__label { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--wine); margin-bottom: 20px; }
.levels__list { position: relative; display: grid; gap: 22px; }
.level { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(21,19,24,.1); }
.level:last-child { border-bottom: 0; padding-bottom: 0; }
.level__name { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.level__name.is-gold { color: #b8860b; }
.level__name.is-platinum { color: #5b7290; }
.level__note { display: block; font-size: 14px; line-height: 1.5; color: #6a6572; }
.level__discount { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--wine); }
.club .section__head { margin-bottom: 36px; }
.club__body { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.club__body > p { font-size: 20px; line-height: 1.63; color: #555; }
.club__list { display: grid; gap: 16px; }
.club__list li { display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 600; color: #1e2939; }
.club__list svg { width: 24px; height: 24px; flex: none; color: var(--wine); }
.club__body .btn { min-width: 232px; }

/* =========================================================
   Бренды: плитки с логотипами (главная и /brands/)
   ========================================================= */
.bgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bcard { display: flex; align-items: center; justify-content: center; min-height: 180px; padding: 28px; background: #fff; border: 1px solid rgba(21,19,24,.08); transition: transform .25s, box-shadow .25s; }
.bcard:hover { transform: translateY(-4px); box-shadow: 0 18px 35px rgba(0,0,0,.08); }
.bcard img { max-width: 72%; max-height: 75px; width: auto; height: auto; object-fit: contain; }
.bcard__name { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--wine); text-align: center; }

/* =========================================================
   Общие страницы со светлым фоном: «Бренды», «Объекты»
   ========================================================= */
.pg--sand { background: var(--sand); }
.pg--light { background: #f7f6f4; }
.page__intro { max-width: 825px; margin-bottom: 44px; }
.page__intro .page__title { font-size: 42px; margin-bottom: 14px; }
.page__intro p { font-size: 18px; line-height: 1.5; color: #555; }
.pg .breadcrumbs { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 700; margin-bottom: 28px; }
.pg .nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pg .nav-links a, .pg .nav-links span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line); background: #fff; font-family: var(--font-mono); }
.pg .nav-links .current { background: var(--wine); border-color: var(--wine); color: #fff; }

/* ---------- Объекты ---------- */
.objects { display: grid; gap: 30px; }
.ocard { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: stretch; }
.ocard__img { display: block; height: 373px; overflow: hidden; background: #fff; }
.ocard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ocard__img img.is-placeholder { object-fit: contain; padding: 30px; }
.ocard:hover .ocard__img img { transform: scale(1.03); }
.ocard__content { display: flex; flex-direction: column; align-items: flex-start; background: #fff; padding: 32px 76px; }
.ocard__content h2 { font-size: 24px; line-height: 1.33; text-transform: uppercase; margin-bottom: 20px; transition: color .25s; }
.ocard__content:hover h2 { color: var(--wine); }
.ocard__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 60px; row-gap: 15px; width: 100%; margin: 0; padding-bottom: 20px; border-bottom: 1px solid #e6e6e6; }
.ocard__specs dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #151515; }
.ocard__specs dd { margin: 3px 0 0; font-size: 16px; font-weight: 600; }
.ocard__desc { padding: 25px 0 30px; font-size: 17px; line-height: 1.52; color: #555; }
.ocard__btn { display: inline-flex; align-items: center; margin-top: auto; padding: 14px 37px; border: 1px solid #c8c8c8; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; transition: border-color .2s, color .2s; }
.ocard__btn:hover { border-color: var(--wine); color: var(--wine); }
.ocard--single { grid-template-columns: 1.1fr 1fr; }
.ocard--single .ocard__img { height: auto; min-height: 420px; }
.ocard--single .ocard__content { padding: 40px 48px; }
.ocard--single .page__content { padding: 24px 0 30px; font-size: 17px; color: #444; }
.objects-empty { padding: 60px; background: #fff; text-align: center; color: var(--grey); }
.objects-empty p + p { margin-top: 20px; }

/* =========================================================
   «База знаний» / «Что мы проектируем»
   ========================================================= */
.kb { background: var(--sand); padding: 72px 0; }
.kb__inner { display: grid; grid-template-columns: 340px 1fr; gap: 80px; align-items: center; }
.kb .section__head { margin-bottom: 20px; }
.kb__desc { font-size: 18px; line-height: 1.5; color: #5d5862; }
.kb__all { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.kb__all:hover { color: var(--wine); }
.kb__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.kb__item { display: flex; align-items: center; gap: 14px; padding: 22px 24px; background: #fff; box-shadow: 0 8px 30px rgba(21,19,24,.05); transition: box-shadow .2s, transform .2s; }
a.kb__item:hover { box-shadow: 0 14px 38px rgba(21,19,24,.1); transform: translateY(-2px); }
.kb__doc { flex: none; }
.kb__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kb__title { font-size: 16px; font-weight: 800; line-height: 1.35; }
.kb__size { font-family: var(--font-mono); font-size: 13px; color: #6a6572; }
.kb__dl { flex: none; opacity: .5; transition: opacity .2s; }
a.kb__item:hover .kb__dl { opacity: 1; }
.kb__item--dot { padding-left: 38px; position: relative; }
.kb__item--dot::before { content: ""; position: absolute; left: 20px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--wine); }
.kb__empty { grid-column: 1 / -1; padding: 24px; background: #fff; color: var(--grey); }

/* ---------- Фото с плашкой (шоурум, сроки разработки) ---------- */
.showroom__photo { position: relative; }
.showroom__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.photo-badge { position: absolute; right: -32px; bottom: -28px; min-width: 230px; max-width: 260px; padding: 22px 24px; background: var(--ink); color: #fff; border-left: 3px solid var(--wine); }
.photo-badge span { display: block; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.75); }
.photo-badge strong { display: block; margin-top: 8px; font-family: var(--font-head); font-size: 16px; line-height: 1.3; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Этапы работы ---------- */
.stages { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.stages li { display: flex; align-items: flex-start; gap: 16px; }
.stages__num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.stages strong { display: block; font-family: var(--font-head); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.stages li span:not(.stages__num) { display: block; font-size: 15px; color: #6a6572; margin-top: 2px; }

/* =========================================================
   «О компании»: миссия и ценности
   ========================================================= */
.mission .club__inner { align-items: center; }
.mission__card { background: var(--sand); border: 1px solid rgba(117,17,56,.12); border-left: 4px solid var(--wine); padding: 52px 56px; box-shadow: 0 18px 45px rgba(21,19,24,.08); }
.mission__card h2 { font-size: 42px; line-height: .98; margin-bottom: 28px; }
.mission__card p { font-size: 18px; line-height: 1.6; color: #3b3740; }
.mission__values li { align-items: flex-start; font-weight: 400; }
.mission__values li svg { margin-top: 1px; }
.mission__values strong { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* =========================================================
   «Контакты»
   ========================================================= */
.contacts { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: stretch; padding-bottom: 20px; }
.contacts__card { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; background: #fff; padding: 40px 32px 44px; }
.contacts__title { width: 100%; padding-bottom: 16px; border-bottom: 1px solid #eee; font-size: 28px; letter-spacing: -.01em; text-transform: uppercase; }
.contacts__list { width: 100%; display: grid; }
.contacts__list li { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid #eee; }
.contacts__list li:first-child { padding-top: 0; }
.contacts__list li:last-child { border-bottom: 0; }
.contacts__list img { flex: none; margin-top: 2px; }
.contacts__list div { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 1px solid #eee; }
.contacts__label { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.contacts__list a { font-size: 18px; line-height: 1.35; transition: color .2s; }
.contacts__list a:hover { color: var(--wine); }
.contacts__phone { font-family: var(--font-mono); font-weight: 700; font-size: 17px !important; }
.contacts__note { font-size: 14px; color: var(--grey); }
.contacts__soon { font-style: normal; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--wine); padding: 2px 8px; margin-left: 8px; vertical-align: 1px; }
.contacts__note--soon { color: var(--wine); font-weight: 600; }
.showroom__soon { color: var(--wine); }
.contacts__map { position: relative; min-height: 560px; background: #e9e7e3; overflow: hidden; }
.contacts__map iframe, .contacts__map > div:not(.contacts__map-empty) { width: 100% !important; height: 100% !important; min-height: 560px; border: 0; display: block; }
.contacts__map-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: repeating-linear-gradient(45deg, #ecebe7 0 12px, #e6e4df 12px 24px); }
.contacts__map-empty p { font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.contacts__map-links { display: flex; gap: 12px; }

/* ---------- Карточка товара: артикул/бренд, описание, характеристики ---------- */
.single-meta { display: grid; gap: 8px; margin: 22px 0 0; }
.single-meta div { display: flex; gap: 12px; align-items: baseline; }
.single-meta dt { min-width: 90px; font-size: 14px; color: var(--grey); }
.single-meta dd { margin: 0; font-size: 16px; font-weight: 600; }
.single-meta a { color: var(--wine); }
.mono { font-family: var(--font-mono); }
.product-details { grid-column: 1 / -1; display: grid; gap: 48px; margin-top: 56px; }
.product-details__block h2 { font-size: 28px; margin-bottom: 18px; }
.product-details__text { max-width: 860px; font-size: 16px; line-height: 1.65; color: #3b3740; }
.product-details__text h3 { font-size: 18px; margin: 26px 0 10px; }
.product-details__text p + p { margin-top: 10px; }
.product-details__text ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; list-style: disc; }
.product-details__text li { display: list-item; }
.product-details__text li::marker { color: var(--wine); }
.specs { margin: 0; max-width: 860px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--grey); font-size: 15px; }
.specs dd { margin: 0; font-size: 15px; font-weight: 600; }
.specs a { color: var(--wine); }
.pg--shop .single-actions { display: none; }
, *::after { transition: none !important; } }

/* =========================================================
   Карточка товара (0.7.8) — woocommerce/content-single-product.php
   ========================================================= */
.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

.pcard-single { padding-bottom: 72px; }
.ps-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 8px; }
.ps-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 560px; padding: 0; background: #fff; border: 1px solid var(--line-soft); cursor: zoom-in; }
.ps-stage img { display: block; width: 100%; height: 100%; padding: 24px; box-sizing: border-box; object-fit: contain; }
.ps-thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.ps-thumb { display: flex; align-items: center; justify-content: center; flex: 0 0 96px; width: 96px; height: 96px; padding: 6px; box-sizing: border-box; overflow: hidden; background: #fff; border: 1px solid var(--line-soft); cursor: pointer; }
.ps-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ps-thumb.is-active { border-color: var(--ink); }

.ps-eyebrow { margin-bottom: 14px; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--wine); }
.ps-title { margin: 0; font-size: 42px; line-height: 1.12; }
.ps-sku { margin-top: 14px; font-size: 15px; color: var(--grey); }
.ps-sku b { color: var(--ink); }
.ps-price { margin: 22px 0 0; padding: 18px 0; border-top: 1px dotted #c9c9c9; border-bottom: 1px dotted #c9c9c9; font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1.1; color: var(--wine); }
.ps-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 22px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.ps-facts div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; }
.ps-facts span { font-size: 13px; color: var(--grey); }
.ps-facts b { font-size: 17px; }
.ps-cta { display: flex; gap: 12px; margin-top: 26px; }
.ps-cta .btn { flex: 1; }
.ps-quick { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; font-size: 15px; }
.ps-quick a { display: flex; gap: 10px; align-items: center; color: var(--wine); }
.ps-quick a:hover { text-decoration: underline; }

.ps-nav { display: flex; flex-wrap: wrap; margin: 56px 0 40px; border-bottom: 2px solid var(--ink); }
.ps-nav a { padding: 14px 22px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); }
.ps-nav a:hover { color: var(--wine); }
.ps-nav a span { font-weight: 400; color: var(--grey); }

.ps-sec { margin-bottom: 56px; scroll-margin-top: var(--ps-stick, 120px); }
.ps-nav a.is-active { color: var(--wine); }

/* Закреплённая полоса карточки товара (собирается в main.js). На телефоне скрыта — стили для телефона в mobile.css. */
.ps-sticky { position: fixed; left: 0; right: 0; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgba(21,19,24,.08); transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s; }
.ps-sticky.is-on { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .2s ease, opacity .2s ease; }
.ps-sticky__inner { display: flex; flex-direction: column; }
.ps-sticky__head { display: flex; align-items: center; gap: 16px; padding: 10px 0 6px; min-width: 0; }
.ps-sticky__img { flex: none; width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.ps-sticky__info { flex: 1 1 auto; min-width: 0; }
.ps-sticky__title { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-sticky__meta { display: flex; gap: 14px; margin-top: 2px; font-size: 13px; color: var(--grey); }
.ps-sticky__meta b { color: var(--ink); font-weight: 600; }
.ps-sticky__brand { font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.ps-sticky__links { flex: none; display: flex; gap: 18px; font-size: 14px; }
.ps-sticky__links a { display: flex; gap: 6px; align-items: center; color: var(--wine); white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.ps-sticky__links a:hover { text-decoration: underline; }
.ps-sticky__links svg { flex: none; width: 16px; height: 16px; }
.ps-sticky__nav { display: flex; flex-wrap: wrap; margin-left: 64px; }
.ps-sticky__nav a { padding: 8px 0 10px; margin-right: 22px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink); border-bottom: 2px solid transparent; }
.ps-sticky__nav a:last-child { margin-right: 0; }
.ps-sticky__nav a span { font-weight: 400; color: var(--grey); }
.ps-sticky__nav a:hover, .ps-sticky__nav a.is-active { color: var(--wine); }
.ps-sticky__nav a.is-active { border-bottom-color: var(--wine); }
@media (max-width: 1100px) { .ps-sticky__links { display: none; } }
@media (max-width: 767px) { .ps-sticky { display: none; } }
@media (prefers-reduced-motion: reduce) { .ps-sticky, .ps-sticky.is-on { transition: none; } }
.ps-sec h2 { margin: 0 0 18px; font-size: 28px; }
.ps-two { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.ps-extra { padding: 22px 24px; background: var(--sand); }
.ps-extra h3 { margin: 0 0 6px; font-size: 18px; }
.ps-extra a, .ps-extra > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid #dcd6cc; font-size: 15px; font-weight: 600; color: var(--ink); }
.ps-extra a:hover { color: var(--wine); }
.ps-extra small { font-size: 12px; font-weight: 400; color: var(--grey); }

.ps-dims { display: flex; flex-wrap: wrap; gap: 16px; }
.ps-dims button { padding: 12px; background: #fff; border: 1px solid var(--line-soft); cursor: zoom-in; }
.ps-dims img { max-height: 420px; width: auto; }

.ps-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ps-docs h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--wine); }
.ps-doc { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; padding: 14px 16px; border: 1px solid var(--line); color: var(--ink); }
.ps-doc:hover { border-color: var(--wine); }
.ps-doc i { display: flex; align-items: flex-end; justify-content: center; flex-shrink: 0; width: 38px; height: 48px; padding-bottom: 6px; box-sizing: border-box; background: var(--wine); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; font-style: normal; }
.ps-doc b { display: block; font-size: 15px; line-height: 1.3; }
.ps-doc span { display: block; margin-top: 4px; font-size: 13px; color: var(--grey); }
.ps-doc em { display: inline-block; margin-top: 6px; padding: 2px 7px; background: #eceaed; color: #4a4850; font-size: 11px; font-weight: 700; font-style: normal; letter-spacing: .06em; }
.ps-doc em.is-main { background: var(--wine); color: #fff; }

.ps-spares { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: start; }
.ps-spares.is-plain { grid-template-columns: minmax(0, 1fr); }
.ps-scheme { padding: 12px; background: #fff; border: 1px solid var(--line-soft); cursor: zoom-in; }
.ps-scheme img { width: 100%; height: auto; }
.ps-sp { border-top: 2px solid var(--ink); }
.ps-sp__head, .ps-sp__row { display: grid; grid-template-columns: 56px 110px minmax(0, 1fr) 170px; gap: 12px; align-items: center; width: 100%; padding: 11px 8px; border: 0; border-bottom: 1px solid var(--line); font: inherit; font-size: 14px; text-align: left; background: #fff; color: var(--ink); }
.ps-sp__head { font-size: 13px; font-weight: 700; color: var(--grey); }
.ps-sp__row { cursor: pointer; }
.ps-sp__row:hover { background: #f6e9ee; box-shadow: inset 3px 0 0 var(--wine); }
.ps-sp__name { font-weight: 600; color: var(--wine); }
.ps-sp__price span, .ps-sp__price { font-family: var(--font-head); font-weight: 700; color: var(--wine); }
.ps-sp__price.is-order { font-family: var(--font-text); font-size: 13px; font-weight: 600; color: var(--grey); }

.ps-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(21, 19, 24, .94); }
.ps-lightbox[hidden] { display: none; }
.ps-lightbox img { max-width: 92vw; max-height: 84vh; padding: 20px; box-sizing: border-box; background: #fff; }
.ps-lightbox__bar { position: absolute; top: 20px; right: 24px; display: flex; gap: 12px; }
.ps-lightbox__bar .btn { height: 48px; color: var(--ink); }
.ps-lightbox__bar .btn--ghost { color: #fff; }

/* Описание: свёрнуто до высоты блока справа (или 15 строк), плавно разворачивается */
.ps-desc { position: relative; overflow: hidden; transition: max-height .5s ease; }
.ps-desc.is-collapsed { max-height: 24.75em; }
.ps-desc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.5em; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.ps-desc.is-collapsed::after { opacity: 1; }
.ps-desc__toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.ps-desc__toggle:hover { border-color: var(--wine); color: var(--wine); }
.ps-desc__toggle svg { transition: transform .4s ease; }
.ps-desc__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ps-desc__toggle[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ps-desc, .ps-desc::after, .ps-desc__toggle svg { transition: none; } }

/* Групповая карточка: таблица типоразмеров */
.pf-desc { max-width: 860px; }
.pf-sizes { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.pf-sizes.is-plain { grid-template-columns: minmax(0, 1fr); }
.pf-table { border-top: 2px solid var(--ink); overflow-x: auto; }
@media (max-width: 1240px) {
  .pf-sizes { grid-template-columns: minmax(0, 1fr); }
  .pf-drawing { max-width: 420px; }
}
.pf-row { display: grid; gap: 8px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 15px; background: #fff; scroll-margin-top: 160px; transition: background .3s; }
.pf-row--head { padding: 10px 8px; font-size: 13px; font-weight: 700; color: var(--grey); }
.pf-row:not(.pf-row--head):hover { background: #faf4f6; }
.pf-row.is-hit { background: #f6e9ee; box-shadow: inset 3px 0 0 var(--wine); }
.pf-art { font-weight: 700; color: var(--wine); }
.pf-size { font-weight: 700; }
.pf-price { text-align: right; }
.pf-row .pf-price span { font-family: var(--font-head); font-weight: 700; color: var(--wine); white-space: nowrap; }
.pf-row .pf-price span[data-price="0"] { font-family: var(--font-text); font-size: 13px; font-weight: 600; color: var(--grey); }
.pf-drawing button { display: flex; justify-content: center; width: 100%; padding: 12px; background: #fff; border: 1px solid var(--line-soft); cursor: zoom-in; }
.pf-drawing img { max-height: 300px; max-width: 100%; width: auto; }
.pf-drawing p { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--grey); }
@media (max-width: 900px) {
  .pf-sizes { grid-template-columns: minmax(0, 1fr); }
  .pf-row { min-width: 560px; font-size: 14px; }
}

@media (max-width: 900px) {
  .ps-top, .ps-two, .ps-spares { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ps-docs { grid-template-columns: minmax(0, 1fr); }
  .ps-title { font-size: 30px; }
  .ps-stage { height: 380px; }
  .ps-cta { flex-direction: column; }
  .ps-sp__head, .ps-sp__row { grid-template-columns: 36px minmax(0, 1fr); }
  .ps-sp__head span:nth-child(2), .ps-sp__row > span:nth-child(2) { display: none; }
  .ps-sp__price { grid-column: 2; }
  .ps-sp__head span:last-child { display: none; }
}

/* Каталог по структуре: заголовок раздела, фильтр бренда/линии, плитки подразделов */
.cat-head { margin: 8px 0 24px; }
.cat-head h1 { margin: 0; font-family: var(--font-head); font-size: 44px; line-height: 1.1; }
.cat-head__desc { max-width: 860px; margin-top: 14px; font-size: 16px; line-height: 1.6; color: #3b3740; }
.cat-head__desc p { margin: 0 0 10px; }
.cat-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.cat-filter > span { margin-right: 4px; font-size: 14px; color: var(--grey); }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; transition: border-color .2s, background-color .2s; }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--line { height: 32px; font-weight: 600; }
.chip--line.is-active { background: #fff; border-color: var(--wine); color: var(--wine); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 20px 0 40px; }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 96px; padding: 18px 56px 18px 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s; }
.cat-tile:hover { border-color: var(--wine); text-decoration: none; }
.cat-tile b { font-family: var(--font-head); font-size: 18px; line-height: 1.25; }
.cat-tile span { font-size: 13px; color: var(--grey); }
.cat-tile em { position: absolute; top: 18px; right: 18px; font-style: normal; font-family: var(--font-mono); font-size: 13px; color: var(--wine); }
@media (max-width: 700px) { .cat-head h1 { font-size: 30px; } .cat-tiles { grid-template-columns: minmax(0, 1fr); } }
.cat-soon { max-width: 760px; margin: 12px 0 48px; padding: 22px 24px; background: var(--sand); }
.cat-soon b { display: block; font-size: 17px; margin-bottom: 6px; }
.cat-soon p { margin: 0; line-height: 1.55; }
@media (max-width: 1100px) { .mega__grid { column-count: 2; } }
@media (max-width: 700px) { .mega__grid { column-count: 1; } .mega .mega__grid { padding: 24px 20px 4px; } }
.chip small { margin-left: 8px; font-size: 12.5px; font-weight: 400; color: var(--grey); }
.chip.is-active small { color: inherit; opacity: .8; }

/* Кнопки страниц: цифры по центру (перебиваем стили WooCommerce) */
.woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; border: 0; }
.woocommerce nav.woocommerce-pagination ul li { display: block; float: none; border: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; line-height: 1; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 15px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--wine); border-color: var(--wine); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--wine); color: var(--wine); background: #fff; }

/* Исполнения (модель + цвет / длина) */
.ps-variants { margin-top: 20px; }
.ps-variants__label { font-size: 14px; color: var(--grey); margin-bottom: 10px; }
.ps-variants__label b { color: var(--ink); }
.ps-variants__list { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-var { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 8px 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12px; line-height: 1.3; text-align: center; }
.ps-var img { width: 72px; height: 72px; object-fit: contain; }
.ps-var:hover { border-color: var(--ink); text-decoration: none; }
.ps-var.is-active { border: 2px solid var(--wine); padding: 7px 5px; }
.mega h4 a { display: inline; padding: 0; font-size: inherit; color: inherit; }
.mega h4 a:hover { text-decoration: underline; }
.bcard--tece img { height: 75px; max-height: 75px; max-width: 80%; }

/* ---------- 0.9.1: переключатель брендов с логотипами, вид «таблица» ---------- */
.brand-switch { display: flex; gap: 10px; margin: 4px 0 22px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.brand-switch::-webkit-scrollbar { display: none; }
.brand-switch__item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 148px; height: 88px; padding: 10px 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, box-shadow .2s, opacity .2s; }
.brand-switch__item:hover { border-color: var(--ink); text-decoration: none; }
.brand-switch__logo { display: flex; align-items: center; justify-content: center; height: 44px; }
.brand-switch__logo img { max-height: 44px; max-width: 128px; width: auto; height: auto; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s; }
.brand-switch__logo b { font-size: 16px; font-weight: 800; }
.brand-switch__item small { font-size: 12.5px; color: var(--grey); line-height: 1; }
.brand-switch__item:hover img, .brand-switch__item.is-active img { filter: none; opacity: 1; }
.brand-switch__item.is-active { border: 2px solid var(--wine); padding: 9px 17px; }
.brand-switch__item--static, .brand-switch__item--static:hover { border-color: transparent; padding-left: 0; padding-right: 0; align-items: flex-start; min-width: 0; cursor: default; }
.brand-switch__item--static img { filter: none; opacity: 1; }
@media (max-width: 640px) { .brand-switch { margin-left: -16px; margin-right: -16px; padding: 0 16px; } .brand-switch__item { min-width: 120px; height: 76px; } .brand-switch__logo, .brand-switch__logo img { max-height: 34px; } }

.view-switch { display: flex; justify-content: flex-end; gap: 4px; margin: 0 0 12px; }
.view-switch__btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line); background: #fff; color: var(--grey); font-size: 14px; font-weight: 600; }
.view-switch__btn svg { width: 16px; height: 16px; fill: currentColor; }
.view-switch__btn:hover { color: var(--ink); text-decoration: none; }
.view-switch__btn.is-active { color: var(--ink); border-color: var(--ink); }
.ptable-wrap { overflow-x: auto; margin-bottom: 24px; background: #fff; border: 1px solid var(--line-soft); }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th { text-align: left; font-size: 13px; font-weight: 600; color: var(--grey); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #faf9f8; }
.ptable td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.ptable a { color: var(--ink); }
.ptable a:hover { color: var(--wine); }
.ptable__img { width: 64px; }
.ptable td.ptable__img { padding: 4px 8px; }
.ptable__img img { display: block; width: 48px; height: 48px; object-fit: contain; }
.ptable__sku { white-space: nowrap; font-variant-numeric: tabular-nums; width: 110px; }
.ptable__price { text-align: right !important; white-space: nowrap; font-weight: 700; width: 130px; }
.ptable__head td { background: #faf9f8; border-top: 2px solid var(--line); }
.ptable__head a { font-weight: 800; }
.ptable__head span { margin-left: 8px; font-size: 13px; color: var(--grey); }
.ptable__kid .ptable__name { padding-left: 20px; }
.ptable tbody tr:not(.ptable__head):hover td { background: #fbf7f8; }
@media (max-width: 640px) { .ptable__img { display: none; } .ptable { font-size: 14px; } .view-switch__btn span { display: none; } }

/* ---------- 0.9.3: подразделы с карточками ---------- */
.cat-block { margin: 48px 0 0; scroll-margin-top: 120px; }
.cat-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }
.cat-block__head h2 { margin: 0; font-family: var(--font-head); font-size: 28px; line-height: 1.2; }
.cat-block__head h2 a { color: var(--ink); }
.cat-block__head h2 a:hover { color: var(--wine); text-decoration: none; }
.cat-block__all { flex: 0 0 auto; font-size: 15px; font-weight: 700; color: var(--wine); }
.cat-block__desc { max-width: 860px; margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: #3b3740; }
.cat-block ul.products { margin-bottom: 16px; }
.cat-block__soon { margin: 16px 0; color: var(--grey); }
.cat-block__more { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1px solid var(--ink); font-weight: 700; color: var(--ink); }
.cat-block__more:hover { background: var(--ink); color: #fff; text-decoration: none; }
.cat-tiles + .view-switch { margin-top: 32px; }
@media (max-width: 640px) { .cat-block__head h2 { font-size: 22px; } }
.ps-extra__kind { margin: 16px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.ps-extra__kind--required { color: var(--wine); }
.ps-extra__label { margin: 6px 0 2px; font-size: 13.5px; color: #3b3740; }
/* 0.9.5: переключатель вида — на уровне хлебных крошек */
.cat-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cat-top .breadcrumbs { margin-bottom: 0; }
.cat-top .view-switch { margin: 0; flex: 0 0 auto; }
@media (max-width: 640px) { .cat-top { align-items: flex-start; } }

/* ---------- 0.9.7: TECE на странице «О компании», ссылка на первом экране ---------- */
.hero__eyebrow--link { color: #fff; width: max-content; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 6px; transition: border-color .2s; }
.hero__eyebrow--link:hover { color: #fff; border-color: #fff; text-decoration: none; }
.hero__eyebrow--link svg { width: 16px; height: 16px; }
.about-tece { scroll-margin-top: 100px; }
.about-tece__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.about-tece__inner > :only-child { grid-column: 1 / -1; max-width: 860px; }
/* Без фото завода: текст слева, сертификат справа. */
.about-tece__inner:not(:has(.about-tece__photo)) { grid-template-columns: minmax(0, 1fr) 260px; }
.about-tece__inner:not(:has(.about-tece__photo)) .about-tece__text { max-width: 860px; }
.about-tece__photo { margin: 0; grid-row: span 2; }
.about-tece__photo img { width: 100%; height: auto; display: block; }
.about-tece__photo figcaption { margin-top: 10px; font-size: 13px; color: var(--grey); }
.about-tece__text .hero__eyebrow { color: var(--wine); margin-bottom: 14px; }
.about-tece__text h2 { font-family: var(--font-head); font-size: 36px; line-height: 1.15; margin: 0 0 20px; }
.about-tece__text p { font-size: 17px; line-height: 1.6; color: #3b3740; margin: 0 0 14px; }
.about-tece__links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }
.about-tece__cert-link { font-weight: 700; color: var(--wine); }
.about-tece__cert { display: flex; flex-direction: column; gap: 8px; max-width: 280px; color: var(--ink); }
.about-tece__cert img { width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.about-tece__cert span { font-size: 13px; color: var(--grey); }
.about-tece__cert:hover span { color: var(--wine); }
.about-brands__lead { font-size: 17px; color: #3b3740; margin: 0 0 24px; max-width: 860px; }
.about-brands__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.about-brands__item { display: flex; gap: 20px; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--line-soft); color: var(--ink); transition: border-color .2s; }
.about-brands__item:hover { border-color: var(--wine); text-decoration: none; }
.about-brands__logo { flex: 0 0 110px; height: 56px; display: flex; align-items: center; justify-content: center; }
.about-brands__logo img { max-width: 110px; max-height: 56px; width: auto; height: auto; }
.about-brands__text { font-size: 14.5px; line-height: 1.5; color: #3b3740; }
.about-brands__text b { color: var(--ink); }
@media (max-width: 900px) { .about-tece__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; } .about-tece__text h2 { font-size: 28px; } }

/* ---------- 0.10: вводный текст и преимущества раздела, серии, меню каталога ---------- */
.cat-head__desc { max-width: 900px; font-size: 18px; line-height: 1.6; color: #2b2830; }
.cat-usp { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 24px 0 4px; padding: 0; list-style: none; }
.cat-usp li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: var(--sand); font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cat-usp svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: var(--wine); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cat-usp svg circle { stroke-width: 1.7; }
.cat-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 24px 0 40px; }
.series-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft); padding: 14px 18px 18px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.series-tile:hover { border-color: var(--wine); box-shadow: 0 10px 30px rgba(21,19,24,.08); text-decoration: none; }
.series-tile__img { display: flex; align-items: center; justify-content: center; height: 190px; margin-bottom: 14px; }
.series-tile__img img { max-width: 100%; max-height: 190px; width: auto; height: auto; object-fit: contain; }
.series-tile b { font-family: var(--font-head); font-size: 22px; line-height: 1.15; }
.series-tile__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dotted #c9c9c9; }
.series-tile__price { font-weight: 800; color: var(--wine); font-size: 17px; }
.series-tile small { color: var(--grey); font-size: 13px; }
.mega { width: min(var(--container), calc(100vw - var(--gutter) * 2)); }
@media (max-width: 640px) { .cat-head__desc { font-size: 16px; } .cat-usp li { font-size: 14px; } .cat-series { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .series-tile__img { height: 120px; } .series-tile b { font-size: 18px; } }
.cat-tile span { line-height: 1.45; font-size: 13.5px; }

/* Страница бренда: логотип в заголовке, системы, группы разделами */
.cat-head__logo { margin: 0 0 12px; line-height: 0; }
.cat-head__logo img { height: 64px; width: auto; max-width: 280px; object-fit: contain; }
.brand-systems { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 28px; }
.brand-systems > span { font-weight: 600; margin-right: 4px; }
.brand-systems small { opacity: .7; margin-left: 4px; }
.group-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.group-section { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; padding: 20px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; }
.group-section__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; background: var(--sand); border-radius: 8px; overflow: hidden; }
.group-section__img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.group-section h2 { font-size: 22px; margin: 0 0 8px; }
.group-section h2 a { color: inherit; text-decoration: none; }
.group-section h2 a:hover { color: var(--wine); }
.group-section p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.group-section__usp { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.group-section__usp li::before { content: "✓ "; color: var(--wine); font-weight: 700; }
.group-section__more { font-weight: 600; color: var(--wine); text-decoration: none; }
@media (max-width: 700px) {
	.group-section { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
	.cat-head__logo img { height: 48px; }
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.group-section h2 { font-family: var(--font-head); }

/* Поиск: подсказки под строкой */
.hsearch { position: relative; }
.hsearch__drop { position: absolute; left: -1px; right: -1px; top: 100%; z-index: 60; max-height: min(70vh, 560px); overflow-y: auto; background: #fff; border: 1px solid var(--ink); border-top: 0; box-shadow: 0 18px 40px rgba(21,19,24,.14); }
.hsd__note { margin: 0; padding: 10px 16px; font-size: 13px; color: var(--grey); }
.hsd__terms { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.hsd__term { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; }
.hsd__term small { font-weight: 400; color: var(--grey); font-size: 12px; }
.hsd__item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 8px 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.hsd__img { width: 56px; height: 56px; display: grid; place-items: center; background: var(--sand); }
.hsd__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.hsd__txt b { display: block; font-size: 14px; line-height: 1.3; }
.hsd__txt small { color: var(--wine); font-size: 13px; }
.hsd__body { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; row-gap: 4px; min-width: 0; }
.hsd__txt { flex: 0 1 auto; min-width: 0; }
.hsd__meta { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 14px; text-align: right; font-size: 13px; color: var(--grey); }
.hsd__brand { font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.hsd__all { display: block; padding: 12px 16px; font-weight: 700; color: var(--wine); text-decoration: none; }
.hsd__all small { font-weight: 400; color: var(--grey); margin-left: 4px; }
.hsd__item:hover, .hsd__term:hover, .hsd__all:hover, .hsearch__drop a.is-active { background: var(--sand); }

/* Поиск: страница результатов */
.srch-head { margin: 8px 0 20px; }
.srch-head h1 { margin: 0 0 16px; }
.srch-form { display: flex; max-width: 720px; height: 52px; border: 1px solid var(--ink); }
.srch-form input { flex: 1; min-width: 0; border: 0; padding: 0 18px; font-size: 16px; }
.srch-form input:focus { outline: none; }
.srch-form button { border: 0; padding: 0 28px; background: var(--wine); color: #fff; font-weight: 700; }
.srch-count { margin: 12px 0 0; color: var(--grey); }
.srch-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.srch-terms > span { font-weight: 600; margin-right: 4px; }
.srch-terms .chip small { font-weight: 400; color: var(--grey); margin-left: 6px; }
.srch-empty { max-width: 720px; padding: 24px 0 48px; }
.srch-empty ul { padding-left: 20px; }
@media (max-width: 700px) {
	.srch-form button { padding: 0 16px; }
	.hsd__item { grid-template-columns: 44px 1fr; }
	.hsd__img { width: 44px; height: 44px; }
}

/* Группы внутри списка раздела */
.lgroup-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.lgroup-nav .chip small { font-weight: 400; color: var(--grey); margin-left: 6px; }
.lgroup { scroll-margin-top: 90px; }

/* Меню каталога: бренды сверху */
.mega__brands { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 24px 48px 0; }
.mega__brand { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 96px; padding: 0 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 14px/1 var(--font-text); cursor: pointer; transition: border-color .2s, background-color .2s; }
.mega__brand img { max-height: 22px; max-width: 110px; width: auto; object-fit: contain; }
.mega__brand:hover { border-color: var(--ink); }
.mega__brand.is-active { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.mega__grid [hidden] { display: none !important; }
@media (max-width: 700px) { .mega__brands { padding: 16px 16px 0; } }

/* Страница «Каталог»: текстовый указатель разделов */
.cat-index__brands { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.cat-index { column-count: 3; column-gap: 56px; margin-bottom: 64px; }
.cat-index > section { break-inside: avoid; -webkit-column-break-inside: avoid; display: inline-block; width: 100%; padding: 0 0 36px; }
.cat-index h2 { font-family: var(--font-head); font-size: 22px; line-height: 1.2; margin: 0 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cat-index h2 a { color: var(--ink); text-decoration: none; }
.cat-index h2 a:hover { color: var(--wine); }
.cat-index small { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--grey); }
.cat-index p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--grey); }
.cat-index ul { list-style: none; margin: 0; padding: 0; }
.cat-index li a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--line); color: var(--ink); text-decoration: none; font-size: 16px; }
.cat-index li a:hover { color: var(--wine); }
.cat-index [hidden], .cat-index__brands [hidden] { display: none !important; }
@media (max-width: 1000px) { .cat-index { column-count: 2; } }
@media (max-width: 640px) { .cat-index { column-count: 1; } }

/* ---------- «Полезно знать» ---------- */
.arts-head { max-width: 820px; margin: 8px 0 40px; }
.arts-head h1 { margin: 0 0 14px; }
.arts-head p { font-size: 18px; line-height: 1.55; color: #3b3740; margin: 0; }
.arts-list { display: flex; flex-direction: column; gap: 28px; margin-bottom: 72px; }
.arts-item { display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.arts-item__img { display: block; aspect-ratio: 3 / 2; background: var(--sand); overflow: hidden; }
.arts-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.arts-item:hover .arts-item__img img { transform: scale(1.03); }
.arts-item h2 { font-family: var(--font-head); font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.arts-item h2 a { color: var(--ink); text-decoration: none; }
.arts-item h2 a:hover { color: var(--wine); }
.arts-item p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: #3b3740; }
.arts-item__more { font-weight: 700; color: var(--wine); text-decoration: none; }
/* Рубрикатор «Полезно знать» (чипы как у систем бренда; на телефоне переносятся на новые строки) */
.arts-rubrics { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 36px; scroll-margin-top: calc(var(--stick, 130px) + 16px); }
.arts-rubrics .chip { height: auto; min-height: 32px; padding-top: 5px; padding-bottom: 5px; white-space: normal; }
.arts-item[hidden] { display: none; }
.arts-item__rubric { display: inline-block; margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wine); text-decoration: none; }
.arts-item__rubric:hover { text-decoration: underline; }
.arts-item__img--product { background: #fff; border: 1px solid var(--line-soft); }
.arts-item__img--product img { object-fit: contain; padding: 16px; }
.art__cover--product { background: #fff; }
.art__cover--product img { object-fit: contain; padding: 24px; box-sizing: border-box; }
.art__eyebrow a { color: inherit; text-decoration: none; }
.art__eyebrow a:hover { text-decoration: underline; }
.art-more__all { margin: 16px 0 0; }
.art-more__all a { font-weight: 700; color: var(--wine); }
.cat-articles { margin: 32px 0 0; font-size: 15px; line-height: 1.6; }
.cat-articles > span { color: var(--grey); margin-right: 4px; }
.cat-articles a { color: var(--ink); }
.cat-articles a:hover { color: var(--wine); }

.art { margin-bottom: 56px; }
.art__head { max-width: 860px; margin: 8px 0 28px; }
.art__eyebrow { color: var(--wine); margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; font-weight: 700; }
.art__head h1 { font-family: var(--font-head); font-size: 44px; line-height: 1.12; margin: 0 0 20px; }
.art__lead { font-size: 22px; line-height: 1.5; font-style: italic; color: #2b2830; margin: 0; }
.art__cover { margin: 0 0 40px; aspect-ratio: 21 / 9; overflow: hidden; background: var(--sand); }
.art__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.art__toc { position: sticky; top: 24px; font-size: 14px; }
.art__toc .caps { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--grey); margin: 0 0 10px; }
.art__toc ol { margin: 0; padding: 0 0 0 18px; }
.art__toc li { margin: 0 0 8px; line-height: 1.35; }
.art__toc a { color: var(--ink); text-decoration: none; }
.art__toc a:hover { color: var(--wine); }
.art__body { max-width: 760px; font-size: 18px; line-height: 1.7; color: #26232b; }
.art__body h2 { font-family: var(--font-head); font-size: 28px; line-height: 1.2; margin: 44px 0 14px; scroll-margin-top: 24px; }
.art__body h2:first-child { margin-top: 0; }
.art__body p { margin: 0 0 16px; }
.art__body ul, .art__body ol { margin: 0 0 18px; padding-left: 22px; }
.art__body li { margin: 0 0 8px; }
.art__body strong { color: var(--ink); }
.art__body a:not(.btn) { color: var(--wine); text-decoration: none; }
.art__body a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }
.art__body strong a:not(.btn) { color: var(--wine); }
.art-check { background: #fff3c4; color: #6b4e00; padding: 1px 4px; font-size: .88em; border-radius: 2px; }
.art-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 24px; border: 1px solid var(--line-soft); }
.art-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.art-table th, .art-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.art-table thead th { background: var(--sand); font-family: var(--font-head); font-size: 14px; }
.art-table tbody th { font-weight: 700; white-space: nowrap; }
.art-table tbody tr:last-child > * { border-bottom: 0; }
.art-short { background: var(--sand); padding: 28px 32px; margin: 40px 0 24px; }
.art-short h2 { margin: 0 0 12px !important; font-size: 22px !important; }
.art-short ul { margin: 0; }
.art-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 8px 0 0; padding: 22px 0; border-top: 1px solid var(--ink); }
.art-cta > span { font-weight: 700; font-size: 17px; }
.art-cta__links { display: flex; flex-wrap: wrap; gap: 10px; }
.art-more { border-top: 1px solid var(--line-soft); padding: 28px 0 64px; }
.art-more h2 { font-family: var(--font-head); font-size: 22px; margin: 0 0 12px; }
.art-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.art-more a { color: var(--ink); font-size: 17px; }
.art-more a:hover { color: var(--wine); }
@media (max-width: 1000px) {
	.art__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.art__toc { position: static; background: var(--sand); padding: 18px 20px; }
	.arts-item { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
	.art__head h1 { font-size: 30px; }
	.art__lead { font-size: 19px; }
	.art__body { font-size: 17px; }
	.art__cover { aspect-ratio: 3 / 2; }
	.art-short { padding: 20px; }
}
.art__body ul { list-style: disc; }
.art__body ol { list-style: decimal; }
.art__body li::marker { color: var(--wine); }
.hsd__head { margin: 0; padding: 12px 16px 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--grey); }
.hsd__art { display: block; padding: 8px 16px 10px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.hsd__art b { display: block; font-size: 14px; line-height: 1.3; }
.hsd__art small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--grey); margin-top: 2px; }
.hsd__art:hover, .hsearch__drop a.hsd__art.is-active { background: var(--sand); }

/* Последние запросы в подсказках поиска */
.hsd__head--recent { display: flex; justify-content: space-between; align-items: center; }
.hsearch .hsd__clear { display: inline-block; border: 0; background: none; padding: 0; width: auto; height: auto; min-width: 0; font: inherit; letter-spacing: .08em; color: var(--grey); cursor: pointer; text-transform: uppercase; }
.hsearch .hsd__clear:hover { color: var(--wine); background: none; }
.hsd__recent { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--ink); text-decoration: none; font-size: 15px; }
.hsd__recent svg { color: var(--grey); flex: 0 0 auto; }
.hsd__recent:hover, .hsearch__drop a.hsd__recent.is-active { background: var(--sand); }

/* «Каталог товаров» и «Бренды» — две одинаковые белые кнопки */
@media (min-width: 768px) {
  .nav__btn--catalog, .nav__btn--brands { flex: none; width: 206px; justify-content: center; box-sizing: border-box; }
}

/* Бордовая полоса меню: шрифт крупнее и жирнее (компьютер и планшет) */
@media (min-width: 768px) {
  .nav__btn { font-size: 15px; }
  .nav__btn--catalog svg { width: 20px; height: 20px; }
  .nav__links { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
  .nav__btn--catalog, .nav__btn--brands { width: 240px; }
}

/* Плитки «Товарные категории» на 1101–1300 px: длинное слово («Трубопроводные») не распирает колонку */
@media (max-width: 1300px) {
  .cat h3 { font-size: 13px; letter-spacing: 0; }
  .cat__body { padding: 16px 14px; }
}

/* Меню «Бренды» в шапке (0.12.63): как меню каталога, под каждым брендом — его системы */
.header[data-mega] .mega.mega--brands { display: none; }
.header[data-brandsmenu] .mega.mega--brands { display: block; }
.mega .mega__grid.mega__grid--brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; column-count: auto; }
.mega h4.mega__blogo { height: 40px; margin-bottom: 14px; display: flex; align-items: center; }
.mega h4.mega__blogo a { display: inline-flex; align-items: center; }
.mega h4.mega__blogo img { max-height: 36px; max-width: 150px; width: auto; height: auto; }
.mega a.mega__all { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--wine); }
@media (max-width: 1100px) { .mega .mega__grid.mega__grid--brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .mega .mega__grid.mega__grid--brands { grid-template-columns: minmax(0, 1fr); } }

/* Страница «Бренды» (0.12.66): логотип, под ним описание, дальше следующий бренд */
.blist { margin-top: 8px; }
.blist__item { padding: 40px 0; border-top: 1px solid var(--line); }
.blist__item:last-child { border-bottom: 1px solid var(--line); }
.blist__logo { display: flex; align-items: center; justify-content: center; width: 280px; height: 130px; padding: 24px 32px; background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
.blist__logo:hover { border-color: var(--ink); }
.blist__logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.blist__logo span { font: 800 28px/1 var(--font-head, inherit); color: var(--ink); }
.blist__desc { max-width: 820px; margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.blist__desc p { margin: 0 0 12px; }
.blist__desc p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .blist__item { padding: 28px 0; } .blist__logo { width: 220px; height: 100px; padding: 18px 24px; } .blist__desc { font-size: 16px; margin-top: 14px; } }

/* Правовые страницы (0.12.71) */
.legal { font-size: 17px; }
.legal__date { color: var(--grey); font-size: 15px; }
.page__content .legal h2 { font-size: 24px; margin: 36px 0 12px; }
.page__content .legal h3 { font-size: 19px; margin: 24px 0 10px; }
.legal code { font-size: .9em; background: rgba(0,0,0,.05); padding: 1px 5px; }
@media (max-width: 640px) { .legal { font-size: 16px; } .page__content .legal h2 { font-size: 21px; } }

/* Переключатель языков в верхней строке (0.13.0): ҚАЗ | РУС */
.langs { display: flex; align-items: center; margin-left: 24px; font-size: 13px; font-weight: 700; letter-spacing: .06em; line-height: 1; }
.langs__item { display: inline-flex; align-items: center; min-height: 28px; padding: 0 8px; color: #969498; text-decoration: none; }
.langs__item + .langs__item { border-left: 1px solid #4a484e; }
a.langs__item:hover { color: #fff; }
.langs__item.is-active { color: #fff; cursor: default; }
@media (max-width: 767px) {
  .topbar__langs { margin-left: 0; margin-right: auto; order: -1; font-size: 12px; }
  .topbar__langs .langs__item { min-height: 40px; padding: 0 10px; }
  .topbar__langs .langs__item:first-child { padding-left: 0; }
}

/* Посадочные страницы-подборки (inc/landings.php) */
.pg--landing .landing { margin: 56px 0 64px; }
.landing__body { max-width: 860px; }
.landing-faq__item { border-top: 1px solid var(--line-soft); padding: 18px 0 4px; }
.landing-faq__item h3 { font-family: var(--font-head); font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.landing__more { margin-top: 28px; font-weight: 700; }
.cat-landings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 16px 0 0; }
.cat-landings > span { color: var(--grey); font-size: 14px; }
.section-text { margin: 56px 0 64px; border-top: 1px solid var(--line-soft); padding-top: 40px; }
.section-text .art__body { max-width: 860px; }
