/* Wollsdorf — дизайн-система витрины.
   Премиальный минимализм: графит, тёплый песок, коньячный акцент. */

:root {
    --ink:        #14161a;
    --ink-2:      #33383f;
    --muted:      #6d737c;
    --paper:      #fbf9f6;
    --paper-2:    #f3efe9;
    --paper-3:    #ebe5dc;
    --line:       #e0d9ce;
    --line-2:     #cfc6b8;
    --accent:     #96562f;
    --accent-dk:  #7a4525;
    --accent-sf:  #f6ede6;
    --gold:       #b1935e;
    --ok:         #2f7d4f;
    --warn:       #b0342c;
    --white:      #ffffff;

    --radius:     4px;
    --radius-lg:  8px;
    --shadow:     0 1px 2px rgba(20, 22, 26, .06), 0 8px 24px rgba(20, 22, 26, .06);
    --shadow-hi:  0 2px 6px rgba(20, 22, 26, .08), 0 16px 40px rgba(20, 22, 26, .12);
    --container:  1240px;
    --header-h:   72px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: -.015em;
}
h1 { font-size: clamp(28px, 4.2vw, 44px); }
h2 { font-size: clamp(23px, 3vw, 32px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
p  { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--paper2 { background: var(--paper-2); }
.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.section__head h2 { margin: 0; }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.lead { font-size: 18px; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Шапка ---------- */
.topbar {
    background: var(--ink);
    color: #cfd3d8;
    font-size: 13px;
}
.topbar__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
    flex-wrap: wrap;
}
.topbar a { color: #e8eaed; }
.topbar__badge { display: inline-flex; align-items: center; gap: 7px; }
.topbar__badge::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(251, 249, 246, .95);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header__in {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    color: var(--ink);
    text-decoration: none;
    flex: none;
}
.logo:hover { text-decoration: none; color: var(--ink); }
.logo__name {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.logo__sub {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
    text-decoration: none;
}

.header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header__phone {
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
}
.cart-link:hover { background: var(--paper-2); text-decoration: none; color: var(--ink); }
.cart-count {
    display: none;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}
.cart-count.is-visible { display: inline-block; }

.burger {
    display: none;
    width: 42px; height: 42px;
    align-items: center; justify-content: center;
    background: none;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    cursor: pointer;
}
.burger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--ink);
    position: relative;
}
.burger span::before, .burger span::after {
    content: ""; position: absolute; left: 0;
    width: 18px; height: 2px; background: var(--ink);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }

/* ---------- Хлебные крошки ---------- */
.crumbs {
    padding: 14px 0;
    font-size: 13px;
    color: var(--muted);
}
.crumbs ol {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.crumbs li::after { content: "/"; margin-left: 6px; color: var(--line-2); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }

/* ---------- Главная: герой ---------- */
.hero {
    background: var(--ink);
    color: #f2efe9;
    padding: 64px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 120% at 85% 15%, rgba(150, 86, 47, .35), transparent 60%),
        radial-gradient(50% 90% at 10% 90%, rgba(177, 147, 94, .18), transparent 60%);
    pointer-events: none;
}
.hero__in { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { color: #c9cdd3; font-size: 18px; max-width: 620px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .eyebrow { color: var(--gold); }

.hero__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    margin-top: 44px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.fact { background: #17191d; padding: 20px; }
.fact__num {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
}
.fact__txt { font-size: 13px; color: #9aa0a8; margin-top: 4px; line-height: 1.4; }

/* ---------- Сетка категорий ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.cat-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--ink);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.cat-card:hover {
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow-hi);
    border-color: var(--line-2);
    transform: translateY(-2px);
}
.cat-card__img { aspect-ratio: 4 / 3; background: var(--paper-3); }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__body { padding: 16px 18px 18px; }
.cat-card__name { font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.cat-card__meta { font-size: 13px; color: var(--muted); }

/* ---------- Карточка товара в списке ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.p-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .18s ease, border-color .18s ease;
}
.p-card:hover { box-shadow: var(--shadow-hi); border-color: var(--line-2); }
.p-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--paper-3); }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; }
.p-card__flags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.flag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    background: var(--ink);
    color: #fff;
}
.flag--hit { background: var(--accent); }
.flag--out { background: var(--muted); }
.p-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.p-card__name {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--ink);
}
.p-card__name a { color: inherit; }
.p-card__name a:hover { color: var(--accent); text-decoration: none; }
.p-card__sub { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.p-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.price__unit { font-size: 13px; font-weight: 500; color: var(--muted); }
.price--request { font-size: 16px; font-weight: 600; color: var(--accent); }
.price--from::before { content: "от "; font-size: 13px; font-weight: 500; color: var(--muted); }
.stock-line { font-size: 13px; margin-top: 6px; }
.stock-line--in { color: var(--ok); }
.stock-line--out { color: var(--muted); }

/* ---------- Страница товара ---------- */
/* Галерея и описание слева, блок покупки справа.
   На мобильном порядок меняется: галерея → цена и кнопка → описание,
   чтобы цену было видно без прокрутки. */
.product {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    grid-template-areas:
        "gallery buy"
        "tabs    buy";
    column-gap: 40px;
    row-gap: 0;
    align-items: start;
}
.product__gallery { grid-area: gallery; }
.buybox           { grid-area: buy; }
.product__tabs    { grid-area: tabs; }
.gallery__main {
    background: var(--paper-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumb {
    width: 74px; height: 58px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: none;
    padding: 0;
    cursor: pointer;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.buybox {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--header-h) + 16px);
}
.buybox__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.buybox__price .price { font-size: 30px; }
.buybox__wholesale {
    margin-top: 6px;
    font-size: 14px;
    color: var(--muted);
}
.buybox__row { margin-top: 18px; }
.buybox__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 7px;
}
.select, .input, .textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--white);
    font: inherit;
    font-size: 15px;
    color: var(--ink);
}
.select:focus, .input:focus, .textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
    border-color: var(--accent);
}
.textarea { min-height: 92px; resize: vertical; }

.qty {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 190px;
}
.qty button {
    width: 44px;
    background: var(--paper-2);
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
}
.qty button:hover { background: var(--paper-3); }
.qty input {
    flex: 1;
    min-width: 0;
    border: none;
    text-align: center;
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    padding: 11px 4px;
    background: var(--white);
    color: var(--ink);
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__unit {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--paper-2);
    font-size: 14px;
    color: var(--muted);
    border-left: 1px solid var(--line);
}

.buybox__total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.buybox__total b { font-size: 22px; }
.buybox__note { font-size: 13px; color: var(--muted); margin-top: 14px; }

.stock-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.stock-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.stock-table td:last-child { text-align: right; font-weight: 600; }
.stock-table tr:last-child td { border-bottom: none; }

.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 45%; padding-right: 20px; }
.specs tr:last-child td { border-bottom: none; }

.tabs { margin-top: 48px; }
.tabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs__btn {
    padding: 12px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    color: var(--muted);
    cursor: pointer;
    margin-bottom: -1px;
}
.tabs__btn[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs__panel { padding: 24px 0; max-width: 760px; }
.tabs__panel[hidden] { display: none; }

/* ---------- Инфоблоки ---------- */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.usp {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
}
.usp__mark {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--accent-sf);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    margin-bottom: 14px;
}
.usp h3 { font-size: 17px; margin-bottom: 6px; }
.usp p { font-size: 14px; color: var(--ink-2); margin: 0; }

.callout {
    background: var(--accent-sf);
    border: 1px solid #e6d5c6;
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.callout p:last-child { margin-bottom: 0; }

.placeholder {
    background: repeating-linear-gradient(45deg, #fff6e5, #fff6e5 10px, #fdf0d8 10px, #fdf0d8 20px);
    border: 1px dashed #d9b878;
    border-radius: var(--radius);
    padding: 4px 8px;
    font-size: 13px;
    color: #8a6420;
    display: inline-block;
}

/* ---------- Формы и заявка ---------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field > label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 6px;
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.req { color: var(--warn); }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
    padding: 10px 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    background: var(--white);
}
.seg input:checked + label {
    border-color: var(--accent);
    background: var(--accent-sf);
    color: var(--accent-dk);
    font-weight: 600;
}
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Панель фильтров каталога — отдельно от .seg: здесь input'ы видимые. */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.filter-bar .input { max-width: 300px; }
.filter-bar__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-2);
    cursor: pointer;
    white-space: nowrap;
}
.filter-bar__check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; flex: none; }

.form-msg { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 15px; }
.form-msg--ok  { background: #eaf6ee; border: 1px solid #bfe0cb; color: #1d6138; }
.form-msg--err { background: #fdecea; border: 1px solid #f2c4bf; color: #97231b; }

/* ---------- Корзина ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
    gap: 32px;
    align-items: start;
}
.cart-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.cart-item__img {
    width: 92px; height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-3);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 600; margin-bottom: 3px; }
.cart-item__meta { font-size: 13px; color: var(--muted); }
.cart-item__right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cart-item__sum { font-weight: 700; font-size: 17px; white-space: nowrap; }
.link-del {
    background: none; border: none; padding: 0;
    color: var(--muted); font: inherit; font-size: 13px;
    cursor: pointer; text-decoration: underline;
}
.link-del:hover { color: var(--warn); }

.summary {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: sticky;
    top: calc(var(--header-h) + 16px);
    box-shadow: var(--shadow);
}
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.summary__row--total {
    border-top: 1px solid var(--line);
    margin-top: 10px; padding-top: 14px;
    font-size: 19px; font-weight: 700;
}

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state p { color: var(--muted); }

/* ---------- Статьи ---------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.a-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.a-card:hover { box-shadow: var(--shadow-hi); }
.a-card__img { aspect-ratio: 16 / 9; background: var(--paper-3); }
.a-card__img img { width: 100%; height: 100%; object-fit: cover; }
.a-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.a-card__date { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.a-card__title { font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.a-card__title a { color: var(--ink); }
.a-card__title a:hover { color: var(--accent); text-decoration: none; }
.a-card__lead { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.a-card__more { margin-top: auto; font-size: 14px; font-weight: 600; }

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 48px;
    align-items: start;
}
.prose { max-width: 720px; font-size: 17px; line-height: 1.75; }
.prose h2 { margin-top: 1.7em; font-size: 26px; }
.prose h3 { margin-top: 1.4em; font-size: 20px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--accent);
    color: var(--ink-2);
    font-style: italic;
}
.toc {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    font-size: 14px;
    border-left: 2px solid var(--line);
    padding-left: 18px;
}
.toc__title {
    font-size: 12px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 9px; }
.toc a { color: var(--ink-2); }

/* ---------- Подвал ---------- */
.footer {
    background: var(--ink);
    color: #9aa0a8;
    padding: 48px 0 28px;
    margin-top: 64px;
    font-size: 14px;
}
.footer a { color: #d5d8dc; }
.footer a:hover { color: #fff; }
.footer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 32px;
}
.footer__title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer__bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}
.footer__badge {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--gold);
    font-weight: 600;
}

/* ---------- Мобильная панель ---------- */
.mobile-bar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
    box-shadow: 0 -2px 12px rgba(20, 22, 26, .08);
}
.mobile-bar a {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 11px 6px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
}
.mobile-bar .mb-call { background: var(--ink); color: #fff; }
/* Фирменный зелёный WhatsApp с белым текстом не проходит по контрасту — берём темнее. */
.mobile-bar .mb-wa   { background: #0f7a40; color: #fff; }
.mobile-bar .mb-cart { background: var(--accent); color: #fff; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
    .product {
        grid-template-columns: 1fr;
        grid-template-areas: "gallery" "buy" "tabs";
        row-gap: 28px;
    }
    .buybox { position: static; }
    .product__tabs .tabs { margin-top: 0; }
    .article-layout { grid-template-columns: 1fr; gap: 24px; }
    .toc { position: static; border-left: none; padding-left: 0;
           border-top: 1px solid var(--line); padding-top: 16px; }
    .cart-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
}

@media (max-width: 860px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 8px 20px 16px;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav a:last-child { border-bottom: none; }
    .header__in { position: relative; }
    .header__phone { display: none; }
    .burger { display: flex; order: -1; }
    .logo { margin-right: auto; }
    .header__actions { margin-left: 0; }
    .mobile-bar { display: flex; }
    body { padding-bottom: 68px; }
    .footer { margin-bottom: 0; }
}

@media (max-width: 560px) {
    /* На узком экране в топбаре оставляем только статус — адрес есть в контактах и подвале. */
    .topbar__in > span + span { display: none; }
    .topbar__in { min-height: 32px; }
    .section { padding: 36px 0; }
    .hero { padding: 44px 0 40px; }
    .hero p { font-size: 16px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .p-card__body { padding: 12px; }
    .p-card__name { font-size: 15px; }
    .price { font-size: 18px; }
    .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cat-card__body { padding: 12px; }
    .cat-card__name { font-size: 15px; }
    .cart-item { grid-template-columns: 68px minmax(0, 1fr); }
    .cart-item__img { width: 68px; height: 54px; }
    .cart-item__right { grid-column: 2; flex-direction: row; justify-content: space-between; width: 100%; align-items: center; }
    .topbar__in { font-size: 12px; }
    .btn { padding: 12px 18px; }
}

@media print {
    .header, .topbar, .footer, .mobile-bar, .buybox { display: none; }
}

/* ---------- Карточка товара «Паспорт мастера» ---------- */
:root { --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; }
.pp-main {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-3);
}
.pp-main img { width: 100%; height: 100%; object-fit: cover; }
.pp-cars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.pp-car {
    background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit;
}
.pp-car img {
    aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius);
    outline: 1px solid var(--line); outline-offset: -1px; transition: outline-color .15s;
}
.pp-car[aria-current="true"] img { outline: 2px solid var(--accent); outline-offset: -2px; }
.pp-car__cap { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); margin-top: 7px; }
.pp-car__cap b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }

.pp-pass { box-shadow: none; border: 0; background: transparent; padding: 0 0 0 8px; }
.pp-kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.pp-title { font: 400 clamp(30px, 3.4vw, 42px)/1.1 var(--serif); letter-spacing: -.01em; margin: 0 0 8px; }
.pp-sub { font-size: 16px; color: var(--ink-2); margin: 0 0 20px; }
.pp-price { font: 400 28px/1.15 var(--serif); color: var(--accent); margin-bottom: 18px; }
.pp-price__unit { font: 500 14px/1 var(--font); color: var(--muted); }
.pp-price small { display: block; font: 13px/1.45 var(--font); color: var(--muted); margin-top: 7px; }

.pp-table { margin: 0 0 22px; border-top: 1px solid var(--ink); }
.pp-table > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pp-table dt { color: var(--muted); margin: 0; }
.pp-table dd { margin: 0; font-weight: 500; text-align: right; }
.pp-ok { color: var(--ok); font-weight: 600; }

.pp-qty .qty { max-width: 220px; }
.pp-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 15px; }
.pp-total b { font-size: 20px; }
.pp-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.pp-note { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }

@media (max-width: 1000px) { .pp-pass { padding-left: 0; } }
@media (max-width: 560px) {
    .pp-cars { grid-template-columns: repeat(2, 1fr); }
    .pp-title { font-size: 30px; }
}
