/* =====================================================================
   Общая база тем витрин duty-store — стили каркаса.
   Цвета, шрифты и характер конкретной витрины — в css/skin.css (подключается после этого файла).
   ===================================================================== */

/* ---------- 1. Токены ---------- */
:root {
    --bg: #FBFAF7;
    --surface: #F2EEE7;
    --surface-2: #E9E3D9;
    --ink: #1B1A18;
    --ink-2: #55504A;
    --muted: #8E887F;
    --line: rgba(var(--ink-rgb), .12);
    --line-strong: rgba(var(--ink-rgb), .28);
    --accent: #8C6B43;
    --sale: #A5483A;
    --ok: #4F7A55;
    --white: #FFFFFF;
    /* те же цвета фона и текста в виде «r, g, b» — для полупрозрачных подложек и теней */
    --bg-rgb: 251, 250, 247;
    --ink-rgb: 27, 26, 24;
    --badge-bg: rgba(255, 255, 255, .78);

    --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --f-ui: "Jost", "Helvetica Neue", Arial, sans-serif;
    --f-logo: var(--f-ui);
    --w-thin: 300;
    --w-ui: 300;
    --w-strong: 400;
    --w-bold: 500;

    --container: 1360px;
    --gutter: 40px;
    --header-h: 84px;
    --radius: 0px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    color-scheme: light;
}
@media (max-width: 1023px) {
    :root { --gutter: 24px; --header-h: 64px; }
}
@media (max-width: 639px) {
    :root { --gutter: 16px; }
}

/* ---------- 2. Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 60px); }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-ui);
    font-weight: var(--w-ui);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-numeric: lining-nums;
    overflow-x: clip;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-weight: var(--w-strong); line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
::selection { background: var(--surface-2); color: var(--ink); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- 3. Утилиты ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: 13px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.show-lg, .show-sm { display: none !important; }
@media (max-width: 1023px) {
    .hide-lg { display: none !important; }
    .show-lg { display: inline-flex !important; }
}
@media (max-width: 639px) {
    .hide-sm { display: none !important; }
    .show-sm { display: inline !important; }
}

/* ---------- 4. Типографика ---------- */
.eyebrow {
    display: block;
    margin: 0;
    font-family: var(--f-ui);
    font-size: 11px;
    font-weight: var(--w-strong);
    letter-spacing: .22em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--muted);
}
.display {
    font-family: var(--f-display);
    font-weight: var(--w-thin);
    letter-spacing: -.01em;
    line-height: 1.06;
    margin: 0;
}
.display em { font-style: italic; }
.h1 { font-size: clamp(38px, 4.6vw, 64px); }
.h2 { font-size: clamp(32px, 3.6vw, 52px); }
.h3 { font-size: clamp(24px, 2.4vw, 32px); }
.page-title { margin-bottom: 28px; }

.rich-text { max-width: 760px; color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.rich-text h1, .rich-text h2, .rich-text h3 {
    font-family: var(--f-display); font-weight: var(--w-thin); color: var(--ink); letter-spacing: -.01em; line-height: 1.15;
    margin: 1.6em 0 .5em;
}
.rich-text h2 { font-size: 34px; }
.rich-text h3 { font-size: 26px; }
.rich-text h4 { font-size: 15px; font-weight: var(--w-bold); color: var(--ink); margin: 1.6em 0 .5em; }
.rich-text a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.rich-text a:hover { border-color: var(--ink); }
.rich-text ul, .rich-text ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.rich-text li { margin: .35em 0; }
.rich-text strong, .rich-text b { font-weight: var(--w-bold); color: var(--ink); }
.rich-text img { margin: 1.5em 0; }
.rich-text table { width: 100%; margin: 1.5em 0; font-size: 15px; }
.rich-text th, .rich-text td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.rich-text blockquote { margin: 1.5em 0; padding-left: 24px; border-left: 1px solid var(--accent); font-family: var(--f-display); font-size: 24px; line-height: 1.35; color: var(--ink); }

/* ---------- 5. Иконки ---------- */
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; stroke-width: 1.3; }
.icon--lg { width: 30px; height: 30px; stroke-width: 1; }

/* ---------- 6. Кнопки и ссылки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 52px; padding: 0 34px;
    font-family: var(--f-ui); font-size: 12px; font-weight: var(--w-strong); letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
    background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: var(--radius);
    cursor: pointer; text-align: center; white-space: nowrap;
    transition: background .25s, color .25s, border-color .25s, opacity .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:disabled, .btn.is-disabled { opacity: .35; pointer-events: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light:hover { background: transparent; color: var(--bg); }
.btn--sm { min-height: 40px; padding: 0 20px; font-size: 11px; letter-spacing: .18em; }
.btn--block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
    content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
    border: 1px solid currentColor; border-color: var(--bg) transparent var(--bg) transparent; animation: spin .8s linear infinite;
}
.btn--ghost.is-loading::after { border-color: var(--ink) transparent var(--ink) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: var(--w-strong); letter-spacing: .2em; text-transform: uppercase;
    padding-bottom: 6px; border-bottom: 1px solid var(--line-strong);
    transition: border-color .25s, gap .25s;
}
.link-arrow:hover { border-color: var(--ink); gap: 16px; }
.link-muted { color: var(--muted); border-bottom: 1px solid var(--line); font-size: 14px; }
.link-muted:hover { color: var(--ink); border-color: var(--ink); }

.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; color: var(--ink); }
.icon-btn:hover { opacity: .6; }
.icon-btn__count {
    position: absolute; top: -3px; right: -8px;
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: var(--ink); color: var(--bg);
    font-size: 10px; line-height: 17px; text-align: center; font-weight: var(--w-strong); letter-spacing: 0;
    transition: transform .25s var(--ease);
}
.icon-btn__count.is-empty { display: none; }
.icon-btn__dot { position: absolute; top: 3px; right: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
#header-cart.is-bump .icon-btn__count { transform: scale(1.35); }

/* ---------- 7. Формы ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="input"], input[type="search"],
input[type="number"], input[type="url"], input[type="date"], select, textarea {
    width: 100%; max-width: 100%;
    min-height: 48px; padding: 12px 16px;
    font: inherit; font-size: 15px; font-weight: var(--w-ui); color: var(--ink);
    background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
textarea { min-height: 120px; line-height: 1.5; resize: vertical; }
select {
    padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231B1A18' stroke-width='1.2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input.error, select.error, textarea.error, .wa-error { border-color: var(--sale) !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 16px; height: 16px; vertical-align: -2px; }
label { cursor: pointer; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field__label { font-size: 13px; color: var(--ink-2); }

.notice { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--surface); font-size: 14px; margin: 0 0 24px; }
.notice--ok { color: var(--ok); }
.notice--error { color: var(--sale); }

/* ---------- 8. Анонс ---------- */
.announce { border-bottom: 1px solid var(--line); background: var(--bg); }
.announce__row { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 40px; position: relative; }
.announce__text {
    margin: 0; padding: 8px 0;
    font-size: 11px; font-weight: var(--w-strong); letter-spacing: .2em; text-transform: uppercase; text-align: center; color: var(--ink-2);
}
.announce__text b, .announce__text strong { font-weight: var(--w-strong); color: var(--accent); }
.announce__city { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--ink-2); }
.announce__city a { border-bottom: 1px dotted var(--line-strong); }
@media (max-width: 1023px) {
    .announce__city { position: static; transform: none; }
    .announce__row { justify-content: space-between; gap: 12px; }
}
@media (max-width: 639px) {
    .announce__text { letter-spacing: .14em; font-size: 10px; }
}

/* ---------- 9. Шапка ---------- */
.header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(var(--bg-rgb), .92);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(var(--ink-rgb), .35); }
.header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 16px; }
.header__side { display: flex; align-items: center; gap: 24px; min-width: 0; }
.header__side--right { justify-content: flex-end; }
.header__phone { font-size: 13px; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.header__phone:hover { color: var(--ink); }
@media (max-width: 639px) {
    .header__row { gap: 8px; }
    .header__side { gap: 10px; }
    .header .icon-btn { min-width: 28px; }
}

.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); text-align: center; }
.logo__word { font-family: var(--f-logo); font-weight: 300; font-size: 21px; letter-spacing: .46em; padding-left: .46em; white-space: nowrap; }
.logo__sub { margin-top: 7px; font-size: 9px; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--muted); font-weight: var(--w-strong); white-space: nowrap; }
.logo__img { max-height: 48px; width: auto; }
.logo--left { align-items: flex-start; text-align: left; }
.logo--left .logo__word, .logo--left .logo__sub { padding-left: 0; }
.logo--sm .logo__word { font-size: 15px; letter-spacing: .34em; }
@media (max-width: 1023px) {
    .logo__word { font-size: 16px; letter-spacing: .34em; padding-left: .34em; }
    .logo__sub { display: none; }
    .logo__img { max-height: 36px; }
}
@media (max-width: 380px) {
    .logo__word { font-size: clamp(13px, 4.1vw, 15px); letter-spacing: .28em; padding-left: .28em; }
}

.logo__mark { margin-right: .35em; }

/* бегущая строка под шапкой (настройка marquee_text) */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__item { padding: 10px 28px; font-size: 12px; font-weight: var(--w-strong); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* навигация каталога */
.nav { border-top: 1px solid var(--line); }
.nav__list { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 34px; }
.nav__item { position: static; }
.nav__link {
    position: relative; display: flex; align-items: center; height: 50px;
    font-size: 12px; font-weight: var(--w-strong); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__item:hover > .nav__link, .nav__item.is-open > .nav__link, .nav__item.is-current > .nav__link { color: var(--ink); }
.nav__item:hover > .nav__link::after, .nav__item.is-open > .nav__link::after, .nav__item.is-current > .nav__link::after { transform: scaleX(1); }
.nav__item--sale > .nav__link { color: var(--sale); }
@media (max-width: 1279px) {
    .nav__list { gap: 0 20px; }
    .nav__link { font-size: 11px; letter-spacing: .12em; }
}
/* хуки frontend_nav и меню других приложений — вывод как обычных пунктов */
.nav__plugin { display: flex; align-items: center; height: 50px; font-size: 13px; }

.flyout {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -40px rgba(var(--ink-rgb), .45);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
    max-height: calc(100vh - 220px); overflow-y: auto;
}
.nav__item.has-flyout:hover > .flyout, .nav__item.is-open > .flyout {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .22s var(--ease) .08s, transform .22s var(--ease) .08s, visibility 0s;
}
.flyout__inner { padding-top: 32px; padding-bottom: 40px; }
.flyout__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.flyout__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 32px; }
.flyout__list--cols { display: block; columns: 6 160px; column-gap: 32px; }
.flyout__list li { break-inside: avoid; }
.flyout__list a { display: inline-block; padding: 5px 0; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.flyout__list a:hover { color: var(--ink); }

/* меню личного кабинета */
.my-nav { border-bottom: 1px solid var(--line); background: var(--bg); }
.my-nav__list { list-style: none; display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.my-nav__list::-webkit-scrollbar { display: none; }
.my-nav__list li a { display: flex; align-items: center; height: 52px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: var(--w-strong); color: var(--muted); white-space: nowrap; border-bottom: 1px solid transparent; }
.my-nav__list li a:hover { color: var(--ink); }
.my-nav__list li.selected a { color: var(--ink); border-color: var(--ink); }

/* ---------- 10. Мобильное меню ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(var(--ink-rgb), .4); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
    position: absolute; top: 0; bottom: 0; left: 0; width: min(420px, 88vw);
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-100%); transition: transform .35s var(--ease);
    display: flex; flex-direction: column; outline: none;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 16px 0 24px; border-bottom: 1px solid var(--line); flex: none; }
.drawer__search { display: flex; align-items: center; gap: 10px; margin: 16px 24px 8px; padding: 0 14px; border: 1px solid var(--line-strong); color: var(--muted); }
.drawer__search input { border: 0; min-height: 44px; padding: 0; background: transparent; box-shadow: none !important; }
.drawer__nav { padding: 8px 24px; }
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__group summary, .drawer__link {
    display: flex; justify-content: space-between; align-items: center; min-height: 56px;
    font-family: var(--f-display); font-weight: var(--w-thin); font-size: 24px; line-height: 1.15; cursor: pointer; list-style: none;
}
.drawer__link { border-bottom: 1px solid var(--line); }
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group summary .icon { transition: transform .25s; color: var(--muted); }
.drawer__group[open] summary .icon { transform: rotate(180deg); }
.drawer__group ul { list-style: none; padding: 0 0 18px; columns: 2; column-gap: 16px; }
.drawer__group li a { display: block; padding: 6px 0; font-size: 14px; color: var(--ink-2); break-inside: avoid; }
.drawer__group li a.drawer__all { color: var(--ink); font-weight: var(--w-strong); }
.drawer__meta { list-style: none; padding: 16px 24px; display: grid; gap: 2px; }
.drawer__meta a { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.drawer__count { color: var(--muted); }
.drawer__contacts { margin-top: auto; padding: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.drawer__contacts p { margin: 4px 0 0; }
.drawer__phone { font-family: var(--f-display); font-size: 24px; color: var(--ink); }

/* ---------- 11. Поиск ---------- */
.search-panel { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.search-panel.is-open { visibility: visible; }
.search-panel__backdrop { position: absolute; inset: 0; background: rgba(var(--ink-rgb), .35); opacity: 0; transition: opacity .3s; }
.search-panel.is-open .search-panel__backdrop { opacity: 1; }
.search-panel__box { position: absolute; left: 0; right: 0; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .35s var(--ease); }
.search-panel.is-open .search-panel__box { transform: none; }
.search-panel__form { display: flex; align-items: center; gap: 16px; height: 112px; color: var(--muted); }
.search-panel__form input {
    flex: 1; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; box-shadow: none !important; padding: 8px 0; min-height: 56px;
    font-family: var(--f-display); font-weight: var(--w-thin); font-size: clamp(24px, 3vw, 38px); color: var(--ink);
}
.search-panel__form input:focus { border-color: var(--ink); }
@media (max-width: 639px) {
    .search-panel__form { height: 88px; gap: 10px; }
    .search-panel__form .btn { display: none; }
}

/* ---------- 12. Основное ---------- */
.site-main { min-height: 50vh; }
.page-wrap { padding-top: 48px; padding-bottom: 96px; }
.empty-state { padding: 96px 0; text-align: center; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 24px 0 0; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs__sep { color: var(--line-strong); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px;
    border: 1px solid var(--line-strong); font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip img { width: 16px; height: 16px; }

/* пагинация wa_pagination */
.pagination, .paging-nav { margin: 56px 0 0; display: flex; justify-content: center; }
.pagination ul, .paging-nav ul, ul.menu-h.pagination-list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.paging-nav li a, .pagination li a, .paging-nav li span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
    font-size: 14px; color: var(--ink-2); border: 1px solid transparent;
}
.paging-nav li a:hover { border-color: var(--line-strong); color: var(--ink); }
.paging-nav li.selected a { border-color: var(--ink); color: var(--ink); }

/* ---------- 13. Ошибка 404 ---------- */
.error-page { max-width: 760px; margin: 0 auto; padding: 96px 0 120px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.error-page__title { font-size: clamp(44px, 6vw, 84px); }
.error-page__lead { color: var(--ink-2); font-size: 17px; max-width: 520px; margin: 0; }
.error-page__search { display: flex; gap: 8px; width: 100%; max-width: 520px; margin: 8px 0 16px; }
@media (max-width: 639px) { .error-page__search { flex-direction: column; } }

/* ---------- 14. Вход, регистрация, профиль ---------- */
.auth-page { max-width: 520px; padding-top: 64px; padding-bottom: 112px; }
.auth-page h1, .auth-page .wa-login-form-title, .auth-page .wa-signup-form-title, .auth-page .wa-forgotpassword-form-title, .auth-page .wa-set-password-form-title {
    font-family: var(--f-display) !important; font-weight: var(--w-thin) !important; font-size: clamp(36px, 4vw, 52px) !important; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 24px;
}
.auth-page .wa-field, .wa-form .wa-field { margin-bottom: 18px; }
.auth-page .wa-name, .wa-form .wa-name { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; float: none !important; width: auto !important; padding: 0 !important; }
.auth-page .wa-value, .wa-form .wa-value { margin: 0 !important; }
.auth-page input[type="submit"], .auth-page button[type="submit"], .auth-page .wa-button,
.wa-form input[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 34px;
    font-family: var(--f-ui) !important; font-size: 12px !important; font-weight: var(--w-strong) !important; letter-spacing: .2em; text-transform: uppercase;
    background: var(--ink) !important; color: var(--bg) !important; border: 1px solid var(--ink) !important; border-radius: 0 !important; cursor: pointer;
}
.auth-page a { border-bottom: 1px solid var(--line-strong); }
.auth-page .wa-error-msg, .wa-form .wa-error-msg { color: var(--sale); font-size: 13px; }

.my-page { padding-top: 40px; padding-bottom: 96px; }
.profile { max-width: 640px; }
.profile__list { margin: 0 0 32px; }
.profile__row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile__row dt { color: var(--muted); font-size: 14px; }
.profile__row dd { margin: 0; }
.profile__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.profile__social { margin-top: 56px; }
.profile__social .eyebrow { margin-bottom: 16px; }
@media (max-width: 639px) { .profile__row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 15. Подвал ---------- */
.footer { margin-top: 96px; border-top: 1px solid var(--line); }
.footer--order { margin-top: 48px; }
.footer__subscribe { border-bottom: 1px solid var(--line); background: var(--surface); }
.footer__subscribe-row { display: grid; grid-template-columns: 1fr minmax(0, 520px); align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.footer__subscribe-title { font-size: clamp(28px, 3vw, 40px); margin-top: 10px; }
.subscribe-form { display: flex; gap: 8px; }
.subscribe-form__done { font-family: var(--f-display); font-size: 24px; margin: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-top: 80px; padding-bottom: 56px; }
.footer__about { margin: 24px 0 0; color: var(--ink-2); font-size: 14px; max-width: 320px; }
.footer__social { display: flex; gap: 16px; margin-top: 24px; }
.footer__social a { color: var(--ink-2); }
.footer__social a:hover { color: var(--ink); }
.footer__col h4 { margin: 0 0 20px; }
.footer__col ul { list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.footer__col a:hover { color: var(--ink); }
.footer__phone { font-family: var(--f-display); font-size: 24px; color: var(--ink); letter-spacing: -.01em; }
.footer__app:empty { display: none; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a:hover { color: var(--ink); }
@media (max-width: 1023px) {
    .footer { margin-top: 64px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; padding-top: 56px; }
    .footer__brand { grid-column: 1 / -1; }
    .footer__subscribe-row { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
    .subscribe-form { flex-direction: column; }
    .footer__contacts { grid-column: 1 / -1; }
}

/* ---------- 16. Уведомления ---------- */
.toast {
    position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
    display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px);
    padding: 14px 16px 14px 22px; background: var(--ink); color: var(--bg); font-size: 14px;
    box-shadow: 0 20px 40px -20px rgba(var(--ink-rgb), .5);
    opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility 0s linear .3s;
}
.toast.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
.toast a { border-bottom: 1px solid rgba(var(--bg-rgb), .5); }
.toast--error { background: var(--sale); }
.toast__close { font-size: 22px; line-height: 1; opacity: .6; padding: 0 4px; color: inherit; }
.toast__close:hover { opacity: 1; }

.cookie-note {
    position: fixed; z-index: 110; left: 24px; bottom: 24px; max-width: 420px;
    display: flex; align-items: flex-end; gap: 20px; padding: 20px 22px;
    background: var(--bg); border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(var(--ink-rgb), .5);
    font-size: 13px; color: var(--ink-2); transition: opacity .3s, transform .3s;
}
.cookie-note.is-hidden { opacity: 0; transform: translateY(10px); }
.cookie-note__text a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
@media (max-width: 639px) {
    .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; gap: 14px; }
}
