/* ─── TOKENS ─── */
:root {
  --paper: #f5f1ea; --paper-deep: #ece6db;
  --ink: #1a1612; --ink2: #373737; --muted: #8a7f70;
  --copper: #b0683a; --copper-soft: #c98a5a; --pink: #f04489;
  --serif: "Noto Serif", Georgia, serif;
  --display: "Noto Serif Display", "Noto Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  /* Единый размер геройских заголовков страниц (page-h1/hero-h1/about/contacts/…) */
  --h1: clamp(38px, 5.6vw, 94px);
  /* Единый стиль надзаголовков (sh-eye/process-eye/eyebrow/label/…) */
  --eyebrow-size: 15px; --eyebrow-ls: 2px; --eyebrow-color: #524c45;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); font-family: var(--serif); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* sticky footer: на коротких страницах (корзина с одним товаром и т.п.) футер прижат к низу окна.
   Переменная WP вычитает высоту админ-бара (у гостей = 0). */
body { display: flex; flex-direction: column; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px)); }
.footer { margin-top: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: normal; }
p { margin: 0; }
em { font-style: italic; }
svg { display: block; flex-shrink: 0; }
input, textarea { font-family: var(--serif); }

/* ─── VISUAL PLACEHOLDERS ─── */
.v-ocean  { background: radial-gradient(ellipse at 35% 30%, #9ed5e6, #1f7da3, #0a3a52); }
.v-amber  { background: radial-gradient(ellipse at 35% 30%, #f5d27a, #c98a5a, #6b3a1a); }
.v-tundra { background: radial-gradient(ellipse at 35% 30%, #9ec5a0, #3a6b3a, #1a3a1a); }
.v-fire   { background: radial-gradient(ellipse at 35% 30%, #f5a64a, #c9531a, #5a2008); }
.v-frost  { background: radial-gradient(ellipse at 35% 30%, #ddeef5, #9ec5d4, #2a5a7a); }
.v-stars  { background: radial-gradient(ellipse at 35% 30%, #c5a0d4, #5a3a8a, #1a0a3a); }
.v-rose   { background: radial-gradient(ellipse at 35% 30%, #f0d0e0, #d49ec5, #7a2a5a); }
.v-copper { background: radial-gradient(ellipse at 35% 30%, #e8d4ba, #b0683a, #5a2a0a); }
.v-silver { background: radial-gradient(ellipse at 35% 30%, #e0e0e8, #a0a0c0, #3a3a5a); }
.v-warm   { background: radial-gradient(ellipse at 40% 35%, #eed5bb, #c98a5a, #6b3a1a); }
.vflame   { background: radial-gradient(ellipse at 60% 65%, #c98a5a 0%, #6b3a1a 38%, #1a1410 78%); position: relative; overflow: hidden; display: block; }
.fill     { width: 100%; height: 100%; display: block; }

/* ─── ANNOUNCEMENT BAR ─── */
.annbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 40px; border-bottom: 1px solid var(--ink); font-family: var(--sans); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.annbar > :last-child { justify-self: end; }
@media (max-width: 1023px) { .annbar { display: none; } }

/* ─── HEADER ─── */
.header { border-bottom: 1px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 40px; gap: 24px; }
.logo-wrap { grid-column: 2; text-align: center; }
.logo-name { font-family: var(--display); font-size: 38px; line-height: .9; letter-spacing: -.5px; text-align: center; }
.logo-sub  { font-family: var(--sans); font-size: 9.5px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin-top: 4px; text-align: center; }
.nav { display: flex; gap: 28px; font-family: var(--sans); font-size: 13px; letter-spacing: .6px; text-transform: uppercase; }
.nav a { border-bottom: 1px solid transparent; padding-bottom: 2px; white-space: nowrap; }
.nav a.on, .nav a:hover { border-bottom-color: var(--ink); font-weight: 600; }
.hicons { grid-column: 3; display: flex; gap: 18px; justify-content: flex-end; align-items: center; }
/* Только прямым детям: правый блок навигации лежит внутри .hicons, и общий
   селектор снимал его ссылкам border-style, из-за чего подчёркивание активного
   пункта (оно задаётся лишь border-bottom-color) слева было, а справа нет. */
.hicons > button, .hicons > a { display: flex; position: relative; background: none; border: none; cursor: pointer; padding: 0; }
.hbadge { position: absolute; top: -4px; right: -6px; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 9px; font-weight: 600; width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.hdivider { width: 1px; height: 18px; background: var(--ink); opacity: .3; }
.hburger { display: none; }
.hnav-tablet { display: none; justify-content: center; flex-wrap: wrap; gap: 28px; padding: 14px 24px 16px; border-top: 1px solid var(--paper-deep); font-family: var(--sans); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.hnav-tablet a { white-space: nowrap; }
@media (max-width: 1023px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; padding: 16px 24px; }
  .logo-name { font-size: 26px; }
  .logo-sub { display: none; }
  .nav { display: none; }
  .hburger { display: none; }
  .hdivider { display: none; }
  .hnav-tablet { display: flex; }
}
@media (max-width: 599px) {
  .header-inner { padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .logo-name { font-size: 22px; }
  .hnav-tablet { display: none; }
  .hburger { display: flex; }
  .hicons { display: none; }
}

/* ─── FOOTER ─── */
.footer { background: var(--ink); color: var(--paper); padding: 64px 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { font-family: var(--display); font-size: 36px; line-height: 1; margin-bottom: 14px; }
.footer-desc { font-family: var(--serif); font-size: 14px; line-height: 1.55; color: #cbc1b0; max-width: 320px; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 12px; }
.fsoc { width: 36px; height: 36px; border: 1px solid rgba(245,241,234,.3); display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 11px; color: #cbc1b0; transition: color .2s, border-color .2s; }
.fsoc:hover { color: var(--paper); border-color: rgba(245,241,234,.7); }
.fsoc svg { display: block; }
.footer-col-title { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #cbc1b0; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-family: var(--serif); color: var(--paper); font-size: 14px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid #3a342c; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-family: var(--sans); font-size: 11px; letter-spacing: 1px; color: #a89d8c; text-transform: uppercase; }
.footer-bottom > :nth-child(2) { text-align: center; }
.footer-bottom > :last-child { text-align: right; }
.footer-bottom a { color: inherit; transition: color .2s; }
.footer-bottom a:hover { color: var(--paper); }
@media (max-width: 1023px) { .footer { padding: 48px 24px 24px; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
/* Телефоны: футер в одну колонку и целиком по центру. Раньше центрировались
   только два элемента нижней строки из трёх, а копирайт, ссылки и соцсети
   оставались прижатыми влево — получалась разнобойная выключка. */
@media (max-width: 599px) {
  .footer { padding: 40px 20px 110px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-desc { margin-left: auto; margin-right: auto; }
  .footer-socials { justify-content: center; }
  .footer-links { align-items: center; }
  .footer-bottom { grid-template-columns: 1fr; gap: 8px; }
  /* Селектор с .footer намеренно: базовое `.footer-bottom > :last-child`
     задаёт text-align:right и имеет специфичность (0,2,0). Простое `> *`
     это (0,1,0) — оно бы проиграло, и «Политика конфиденциальности»
     осталась бы справа. */
  .footer .footer-bottom > * { text-align: center; }
}

/* ─── TAB BAR (mobile) ─── */
.tabbar { display: none; }
@media (max-width: 599px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--paper); border-top: 1px solid var(--ink); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
  .tbi { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; position: relative; }
  .tbi.on::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 2px; background: var(--ink); }
  /* Бейдж счётчика в нижней панели. Классом, а не инлайном: плагин «Избранное»
     показывает бейдж через style.display = '', и инлайновый display:flex при
     этом стёрся бы вместе с ним — центрирование цифры пропало бы. */
  .tbi-badge { position: absolute; top: 4px; right: calc(50% - 16px); background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 9px; font-weight: 600; width: 14px; height: 14px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
  .tbi-label { font-family: var(--sans); font-size: 9px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
  .tbi.on .tbi-label { color: var(--ink); font-weight: 600; }
}
@media (max-width: 389px) { .tbi-label { display: none; } .tabbar { padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); } }

/* ─── 2K+ MAX WIDTH ─── */
@media (min-width: 2560px) {
  /* width:100% обязателен: body — flex-колонка (sticky footer), и элемент
     с auto-маржинами внутри флекса иначе сжимается до ширины контента. */
  .annbar, .header, .footer, .tabbar { width: 100%; max-width: 2560px; margin-left: auto; margin-right: auto; }
  body { max-width: 2560px; margin: 0 auto; }
}

/* ════════════════════════════════════════════════════════════
   HAMBURGER MENU · MODALS · COOKIE · TOASTS  (from design system)
   ════════════════════════════════════════════════════════════ */
body.fb-noscroll { overflow: hidden; }

/* ─── HAMBURGER MENU DRAWER ─── */
.menu-drawer { position: fixed; inset: 0; z-index: 1100; visibility: hidden; }
.menu-drawer.open { visibility: visible; }
.menu-overlay { position: absolute; inset: 0; background: rgba(26,22,18,.55); opacity: 0; transition: opacity .3s ease; }
.menu-drawer.open .menu-overlay { opacity: 1; }
.menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 440px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; overflow: hidden; transform: translateX(100%); transition: transform .38s cubic-bezier(.4,0,.2,1); }
.menu-drawer.open .menu-panel { transform: translateX(0); }
.menu-top { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 16px 14px; border-bottom: 1px solid var(--ink); flex-shrink: 0; }
.menu-logo-name { font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: -.3px; }
/* Logo connector «и»: same upright face as the rest of the wordmark, just scaled down. */
.logo-c { font-style: normal; font-size: .8em; }
.menu-logo-sub { font-family: var(--sans); font-size: 7.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.menu-close { width: 40px; height: 40px; border: 1px solid var(--ink); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.menu-search { padding: 14px 16px; border-bottom: 1px solid var(--ink); flex-shrink: 0; }
.menu-search-inner { display: flex; align-items: center; gap: 12px; border: 1px solid var(--ink); padding: 12px 14px; }
.menu-search-inner input { flex: 1; border: none; background: transparent; outline: none; font-family: var(--serif); font-size: 15px; color: var(--ink); }
.menu-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.menu-nav { padding: 8px 16px; }
.menu-link { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--paper-deep); color: var(--ink); }
.menu-link-l { display: flex; align-items: baseline; gap: 14px; }
.menu-link-num { font-family: var(--sans); font-size: 11px; letter-spacing: 1.4px; color: var(--muted); }
.menu-link-t { font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 600; }
.menu-link.on .menu-link-t { font-weight: 400; font-style: italic; }
.menu-link-en { font-family: var(--sans); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.menu-secondary { padding: 12px 16px; border-top: 1px solid var(--ink); flex-shrink: 0; display: flex; flex-direction: column; }
.menu-sec-link { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: var(--ink); }
.menu-sec-ic { position: relative; display: flex; }
.menu-sec-badge { position: absolute; top: -6px; right: -8px; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 9px; font-weight: 600; width: 15px; height: 15px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.menu-sec-t { font-family: var(--serif); font-size: 16px; }
.menu-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); flex-shrink: 0; }
.menu-foot-row { display: flex; justify-content: space-between; align-items: center; }
.menu-lang { display: flex; gap: 4px; font-family: var(--sans); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; }
.menu-lang .on { font-weight: 600; border-bottom: 1px solid var(--paper); padding-bottom: 2px; }
.menu-lang .sep, .menu-lang .off { color: rgba(245,241,234,.5); }
.menu-soc { display: flex; gap: 10px; }
.menu-soc a { width: 32px; height: 32px; border: 1px solid rgba(245,241,234,.4); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 10px; letter-spacing: .5px; }
.menu-foot-note { margin-top: 14px; font-family: var(--sans); font-size: 10px; letter-spacing: 1px; color: rgba(245,241,234,.6); text-transform: uppercase; }

/* ─── MODALS ─── */
.modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background: rgba(26,22,18,.55); opacity: 0; transition: opacity .25s ease; }
.modal.open .modal-overlay { opacity: 1; }
.modal-card { position: relative; background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 40px 80px rgba(0,0,0,.3); width: 100%; max-height: 90vh; overflow-y: auto; transform: translateY(14px) scale(.98); opacity: 0; transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s ease; }
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-x { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border: 1px solid var(--ink); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.modal-eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); }
.m-btn { font-family: var(--sans); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; padding: 15px 24px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: none; }
.m-btn-primary { background: var(--ink); color: var(--paper); font-weight: 600; }
.m-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); font-weight: 500; }
.m-btn-danger { background: #b23b3b; color: #fff; font-weight: 600; }

/* added-to-cart */
.mc-cart { max-width: 480px; }
.mc-cart-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #3a7a4a; }
.mc-cart-eyebrow .dot { width: 8px; height: 8px; border-radius: 4px; background: #3a7a4a; }
.mc-cart-body { padding: 20px 32px; display: flex; gap: 18px; }
.mc-cart-img { width: 96px; aspect-ratio: 3/4; flex-shrink: 0; overflow: hidden; background: var(--paper-deep); }
.mc-cart-img img, .mc-cart-img > div { width: 100%; height: 100%; object-fit: cover; }
.mc-cart-cat { font-family: var(--sans); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.mc-cart-name { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 4px 0 8px; line-height: 1; }
.mc-cart-spec { font-family: var(--serif); font-size: 13px; color: var(--ink2); }
.mc-cart-price { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-top: 8px; }
.mc-cart-actions { padding: 0 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.mc-cart-note { text-align: center; font-family: var(--sans); font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

/* newsletter */
.mc-news { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; }
.mc-news-vis { position: relative; overflow: hidden; background: #1a1410; min-height: 320px; }
.mc-news-body { padding: 44px 40px; position: relative; }
.mc-news-h { font-family: var(--display); font-size: 44px; font-weight: 400; line-height: 1; letter-spacing: -.5px; margin: 16px 0 14px; }
.mc-news-h em { font-style: italic; }
.mc-news-p { font-family: var(--serif); font-size: 15px; line-height: 1.6; color: var(--ink2); margin-bottom: 24px; }
.mc-news-input { border-bottom: 1px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px; }
.mc-news-input input { width: 100%; border: none; background: transparent; outline: none; font-family: var(--serif); font-size: 18px; color: var(--ink); }
.mc-news-fine { font-family: var(--sans); font-size: 10.5px; letter-spacing: .6px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
@media (max-width: 599px) { .mc-news { grid-template-columns: 1fr; } .mc-news-vis { min-height: 160px; } .mc-news-body { padding: 28px 22px; } .mc-news-h { font-size: 34px; } }

/* messenger contact */
.mc-msgr { max-width: 520px; padding: 44px 40px; }
.mc-msgr-h { font-family: var(--display); font-size: 38px; font-weight: 400; line-height: 1; margin: 14px 0 8px; }
.mc-msgr-h em { font-style: italic; }
.mc-msgr-p { font-family: var(--serif); font-size: 14px; line-height: 1.6; color: var(--ink2); margin-bottom: 22px; }
.mc-msgr-opts { display: flex; flex-direction: column; gap: 10px; }
.mc-msgr-opt { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--ink); padding: 16px 18px; color: var(--ink); }
.mc-msgr-opt .c { font-family: var(--sans); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.mc-msgr-opt .h { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-top: 2px; }
.mc-msgr-div { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.mc-msgr-div .ln { flex: 1; height: 1px; background: var(--paper-deep); }
.mc-msgr-div span { font-family: var(--sans); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.mc-msgr-field { width: 100%; border: 1px solid var(--ink); background: transparent; outline: none; font-family: var(--serif); font-size: 15px; color: var(--ink); padding: 14px 16px; margin-bottom: 10px; }
@media (max-width: 599px) { .mc-msgr { padding: 36px 22px; } .mc-msgr-h { font-size: 30px; } }

/* search results page */
.search-hero { padding: 56px 56px 24px; }
.sfield { margin-top: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 16px; }
.sfield input { flex: 1; border: none; background: transparent; outline: none; font-family: var(--display); font-size: clamp(38px, 6vw, 72px); font-style: italic; font-weight: 400; color: var(--ink); letter-spacing: -1px; padding: 0; min-width: 0; }
.sfield input::placeholder { color: var(--muted); }
.sfield input::-webkit-search-cancel-button { display: none; }
.sfield-clear { font-family: var(--sans); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sfield-clear:hover { color: var(--ink); }
.sresult { margin-top: 12px; font-family: var(--sans); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.ssec { padding: 24px 56px 32px; }
.ssec-title { font-family: var(--display); font-size: 28px; font-weight: 400; margin-bottom: 20px; }
.ssec-title em { font-style: italic; }
.ssec-journal { border-top: 1px solid var(--paper-deep); }
@media (max-width: 1023px) { .search-hero { padding: 40px 24px 20px; } .ssec { padding: 20px 24px 28px; } }
@media (max-width: 599px) { .search-hero { padding: 24px 16px 14px; } .sfield input { font-size: 32px; } .ssec { padding: 16px 16px 24px; } }

/* search modal */
.mc-search { max-width: 640px; padding: 44px 40px 40px; }
.mc-search-form { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); margin-top: 16px; }
.mc-search-input { flex: 1; border: none; background: transparent; outline: none; font-family: var(--display); font-size: 32px; color: var(--ink); padding: 4px 0 12px; min-width: 0; }
.mc-search-input::placeholder { color: var(--muted); }
.mc-search-input::-webkit-search-cancel-button { display: none; }
.mc-search-btn { background: none; border: none; cursor: pointer; padding: 0 2px 8px; }
.mc-search-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.mc-search-tag { font-family: var(--sans); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--ink); color: var(--ink); transition: background .15s, color .15s; }
.mc-search-tag:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 599px) { .mc-search { padding: 36px 22px; } .mc-search-input { font-size: 22px; } }

/* auth (вход / регистрация) */
.mc-auth { max-width: 460px; padding: 44px 40px; }
.mc-auth-h { font-family: var(--display); font-size: 38px; font-weight: 400; line-height: 1; margin: 14px 0 22px; }
.mc-auth-h em { font-style: italic; }
.mc-auth-tabs { display: flex; gap: 0; margin: 18px 0 24px; border: 1px solid var(--ink); }
.mc-auth-tab { flex: 1; font-family: var(--sans); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; padding: 12px 8px; background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.mc-auth-tab.active { background: var(--ink); color: var(--paper); }
.mc-auth-field { display: block; margin-bottom: 20px; }
.mc-auth-label { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mc-auth-field input { width: 100%; border: none; border-bottom: 1px solid var(--ink); background: transparent; outline: none; font-family: var(--serif); font-size: 16px; color: var(--ink); padding: 6px 0 8px; }
.mc-auth-note { font-family: var(--serif); font-size: 13.5px; color: var(--ink2); line-height: 1.5; margin-bottom: 18px; }
.mc-auth-lost { display: inline-block; margin-top: 14px; font-family: var(--sans); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--muted); padding-bottom: 1px; }
.fab-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; cursor: pointer; }
.fab-consent input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--ink); cursor: pointer; flex-shrink: 0; }
.fab-consent span { font-family: var(--sans); font-size: 11.5px; line-height: 1.5; color: var(--ink2); letter-spacing: .2px; }
.fab-consent a { color: var(--copper); border-bottom: 1px solid var(--copper); }
.mc-auth .m-btn { margin-top: 8px; }
@media (max-width: 599px) { .mc-auth { padding: 36px 22px; } }

/* legal documents */
.mc-legal { max-width: 540px; padding: 44px 40px; }
.mc-legal-h { font-family: var(--display); font-size: 38px; font-weight: 400; line-height: 1; margin: 14px 0 22px; }
.mc-legal-h em { font-style: italic; }
.mc-legal-list { display: flex; flex-direction: column; }
.mc-legal-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 2px; border-bottom: 1px solid var(--paper-deep); font-family: var(--serif); font-size: 15.5px; line-height: 1.35; color: var(--ink); transition: color .15s; }
.mc-legal-row:first-child { border-top: 1px solid var(--paper-deep); }
.mc-legal-row svg { flex-shrink: 0; color: var(--muted); transition: color .15s, transform .15s; }
.mc-legal-row:hover { color: var(--copper); }
.mc-legal-row:hover svg { color: var(--copper); transform: translateX(3px); }
.mc-legal-fine { font-family: var(--sans); font-size: 10.5px; letter-spacing: .6px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
@media (max-width: 599px) { .mc-legal { padding: 36px 22px; } .mc-legal-h { font-size: 30px; } }

/* confirm */
.mc-confirm { max-width: 440px; padding: 36px 36px 32px; }
.mc-confirm-h { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.05; margin: 12px 0 10px; }
.mc-confirm-p { font-family: var(--serif); font-size: 14px; line-height: 1.6; color: var(--ink2); margin-bottom: 26px; }
.mc-confirm-row { display: flex; gap: 10px; }
.mc-confirm-row .m-btn { flex: 1; }

/* size guide */
.mc-size { max-width: 600px; padding: 40px 40px 36px; }
.mc-size-h { font-family: var(--display); font-size: 36px; font-weight: 400; line-height: 1; margin: 14px 0 8px; }
.mc-size-h em { font-style: italic; }
.mc-size-p { font-family: var(--serif); font-size: 14px; line-height: 1.6; color: var(--ink2); margin-bottom: 22px; }
.mc-size-table { border-top: 1px solid var(--ink); }
.mc-size-head { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; padding: 10px 0; border-bottom: 1px solid var(--ink); font-family: var(--sans); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.mc-size-row { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; padding: 12px 0; border-bottom: 1px solid var(--paper-deep); align-items: center; }
.mc-size-row .s { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.mc-size-row .w { font-family: var(--serif); font-size: 14px; }
.mc-size-row .n { font-family: var(--serif); font-size: 14px; color: var(--ink2); }

/* ─── COOKIE BAR ─── */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: var(--ink); color: var(--paper); padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; box-shadow: 0 -10px 40px rgba(0,0,0,.25); transform: translateY(110%); transition: transform .4s cubic-bezier(.4,0,.2,1); }
.cookie-bar.show { transform: translateY(0); }
.cookie-eyebrow { font-family: var(--sans); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--copper-soft); margin-bottom: 8px; }
.cookie-text { font-family: var(--serif); font-size: 14.5px; line-height: 1.55; color: #e8e1d4; max-width: 620px; }
.cookie-text a { color: var(--copper-soft); border-bottom: 1px solid var(--copper-soft); }
.cookie-text a:hover { color: var(--paper); border-bottom-color: var(--paper); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions button { padding: 14px 22px; cursor: pointer; font-family: var(--sans); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; }
.cookie-set { background: transparent; color: var(--paper); border: 1px solid var(--paper); }
.cookie-accept { background: var(--paper); color: var(--ink); border: none; font-weight: 600; }
@media (max-width: 599px) { .cookie-bar { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); } .cookie-actions { flex-direction: column; } .cookie-actions button { width: 100%; } }

/* ─── TOASTS ─── */
.toast-stack { position: fixed; top: 48px; right: 16px; z-index: 1300; display: flex; flex-direction: column; gap: 12px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { width: 380px; max-width: 100%; background: var(--paper); border: 1px solid var(--ink); border-left: 4px solid var(--ink); padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: 0 12px 30px rgba(0,0,0,.14); transform: translateX(120%); transition: transform .35s cubic-bezier(.4,0,.2,1); pointer-events: auto; }
.toast.in { transform: translateX(0); }
.toast.success { border-left-color: #3a7a4a; }
.toast.info { border-left-color: var(--copper); }
.toast.warning { border-left-color: #c79a2a; }
.toast.error { border-left-color: #b23b3b; }
.toast-ic { width: 28px; height: 28px; border-radius: 14px; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.toast.success .toast-ic { color: #3a7a4a; }
.toast.info .toast-ic { color: var(--copper); }
.toast.warning .toast-ic { color: #c79a2a; }
.toast.error .toast-ic { color: #b23b3b; }
.toast-title { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.toast-msg { font-family: var(--serif); font-size: 13.5px; color: var(--ink2); line-height: 1.5; margin-top: 4px; }
.toast-x { background: none; border: none; cursor: pointer; padding: 2px; flex-shrink: 0; }
@media (max-width: 599px) { .toast-stack { top: 40px; left: 16px; right: 16px; } .toast { width: 100%; } }

/* ─── GENERIC CONTENT (page / post / search / 404 / journal) ─── */
.fab-shell { padding: 72px 56px; }
.fab-shell-wide { padding: 64px 56px; }
.fab-eyebrow { font-family: var(--sans); font-size: var(--eyebrow-size); letter-spacing: var(--eyebrow-ls); text-transform: uppercase; color: var(--eyebrow-color); margin-bottom: 20px; }
.fab-h1 { font-family: var(--display); font-weight: 600; font-size: var(--h1); line-height: .92; letter-spacing: -1.5px; margin-bottom: 28px; }
.fab-h1 em { font-weight: 400; font-style: italic; }
.fab-prose { font-family: var(--serif); font-size: 17px; line-height: 1.7; color: var(--ink2); }
.fab-prose h2 { font-family: var(--display); font-size: 32px; margin: 32px 0 12px; color: var(--ink); }
.fab-prose h3 { font-family: var(--serif); font-size: 24px; margin: 24px 0 10px; color: var(--ink); }
.fab-prose p { margin-bottom: 18px; }
.fab-prose a { color: var(--copper); border-bottom: 1px solid var(--copper); }
.fab-prose img { max-width: 100%; height: auto; }
.fab-postmeta { font-family: var(--sans); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.fab-grid-journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fab-jcard { display: block; color: var(--ink); }
.fab-jcard-img { overflow: hidden; } /* рамка по пропорциям самого фото */
.fab-jcard-img img { width: 100%; height: auto; display: block; } /* фото целиком, своя высота */
.fab-jcard-title { font-family: var(--serif); font-size: 20px; line-height: 1.2; margin-top: 12px; font-weight: 500; }
.fab-pagination { margin-top: 40px; font-family: var(--sans); font-size: 13px; letter-spacing: 1px; }
.fab-pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--ink); margin-right: 6px; }
.fab-pagination .current { background: var(--ink); color: var(--paper); }
@media (max-width: 1023px) { .fab-shell, .fab-shell-wide { padding: 48px 24px; } .fab-grid-journal { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .fab-shell, .fab-shell-wide { padding: 32px 16px 80px; } .fab-grid-journal { grid-template-columns: 1fr; } }
