/* ══════════════════════════════════════
   MRKT SELECTION — design system
   Палитра: строгая чёрно-белая (путь от белого к near-black)
   Акцент — чистый чёрный (#000); на светлом фоне он выделяет,
   на тёмном фоне вместо акцента используется near-white (--cream).
   Шрифты: Playfair Display (serif) + Jost (sans)
   ══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --cream:  #F6F6F6;   /* фон страницы + светлый текст на тёмном (чистый серый) */
  --sand:   #ECECEC;   /* вторичный фон (how-блок, админка) */
  --line:   #E4E4E4;   /* границы / сетки */
  --line2:  #CBCBCB;   /* границы кнопок, точка-черновик */
  --ink:    #161616;   /* основной тёмный (текст, marquee, кнопки) */
  --ink2:   #262626;
  --muted:  #6C6C6C;   /* приглушённый текст */
  --soft:   #A4A4A4;   /* ещё светлее (подписи) */
  --accent: #000000;   /* акцент: акцентное слово, цены, ссылки (на светлом фоне) */
  --accent-dark: #333333;  /* ховер основной кнопки */
  --white:  #FFFFFF;   /* карточки */
  --danger: #161616;   /* удаление (монохром) */
  --green:  #161616;   /* статус «опубликовано» (сплошная точка) */
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  background-color: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}
button { font-family: var(--sans); cursor: pointer; }
input, textarea, select { font-family: var(--sans); }
a { color: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }

/* ───── offline badge / toast ───── */
.offline-badge {
  position: fixed; bottom: 14px; left: 14px; z-index: 1200;
  background-color: var(--ink); color: var(--cream);
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 99px; opacity: .82; display: none;
}
.offline-badge.show { display: block; }

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--ink); color: var(--cream);
  padding: 12px 24px; border-radius: 99px;
  font-size: 11px; letter-spacing: .1em; z-index: 1300;
  opacity: 0; transition: all .3s; pointer-events: none;
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ───── buttons ───── */
.btn {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 99px; border: 1px solid transparent;
  transition: all .2s; display: inline-block; text-decoration: none;
  text-align: center;
}
.btn-primary { background-color: var(--accent); color: var(--white); }
.btn-primary:hover { background-color: var(--accent-dark); }
.btn-ghost { background: none; border-color: var(--line2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-light { background: none; border-color: rgba(255,255,255,.28); color: var(--cream); }
.btn-ghost-light:hover { border-color: rgba(255,255,255,.9); color: #fff; }
.btn-danger { background: none; border-color: var(--line2); color: var(--ink); }
.btn-danger:hover { background-color: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-sm { padding: 6px 12px; font-size: 9px; }

/* ───── misc ───── */
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state .es-glyph { font-family: var(--serif); font-size: 48px; font-style: italic; color: var(--line2); margin-bottom: 16px; }
.empty-state p { font-size: 13px; line-height: 1.7; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-pub { background-color: var(--green); }
.dot-draft { background-color: var(--white); border: 1px solid var(--muted); }

/* ───── skeleton loading ───── */
.skel-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background-color: var(--line); border: 2px solid var(--line); }
.skel { background-color: var(--sand); aspect-ratio: 4/5; position: relative; overflow: hidden; }
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ═══════════════════════════════════════════════════
   PUBLIC SITE
   ═══════════════════════════════════════════════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background-color: var(--cream); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 58px;
}
.nav-logo { font-family: var(--serif); font-size: 15px; text-decoration: none; color: var(--ink); }
.nav-logo em { font-style: italic; color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* burger + mobile menu */
.burger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; padding: 8px;
}
.burger span { display: block; width: 18px; height: 1px; background-color: var(--ink); transition: .2s; }
.mobile-menu {
  position: fixed; top: 58px; left: 0; right: 0; z-index: 490;
  background-color: var(--cream); border-bottom: 1px solid var(--line);
  padding: 6px 22px 16px;
  transform: translateY(-115%); transition: transform .3s ease;
}
.mobile-menu.open { transform: none; }
.mobile-menu a {
  display: block; padding: 13px 0;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sand);
}
.mobile-menu a:last-child { border-bottom: none; }

.hero {
  margin-top: 58px; background-color: var(--cream);
  padding: 72px 32px 56px; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.hero::before {
  content: 'S'; position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 340px; font-style: italic; font-weight: 400;
  color: rgba(0,0,0,.045); line-height: 1; pointer-events: none; user-select: none;
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background-color: var(--accent); }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 9vw, 76px); font-weight: 400; line-height: .96; margin-bottom: 26px; max-width: 720px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 380px; }

.marquee { background-color: var(--ink); overflow: hidden; padding: 11px 0; }
.m-track { display: flex; white-space: nowrap; animation: mx 24s linear infinite; }
.m-item { display: inline-flex; align-items: center; gap: 26px; padding: 0 26px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.m-item b { color: var(--cream); font-weight: 400; }
@keyframes mx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.sel-sec { background-color: var(--cream); padding: 56px 32px 64px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.sec-tag { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.sec-title { font-family: var(--serif); font-size: clamp(28px, 6vw, 44px); font-weight: 400; line-height: 1; }
.sec-count { font-size: 11px; color: var(--muted); letter-spacing: .08em; }

/* category filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 99px;
  border: 1px solid var(--line2); background: none; color: var(--muted);
  transition: all .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background-color: var(--ink); border-color: var(--ink); color: var(--cream); }

.sel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background-color: var(--line); border: 2px solid var(--line); }
.sel-card { background-color: var(--white); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; transition: background-color .2s; border: none; text-align: left; padding: 0; }
.sel-card:hover { background-color: var(--sand); }
.sel-cover { aspect-ratio: 4/5; position: relative; overflow: hidden; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.sel-cover-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sel-cover-glyph { font-family: var(--serif); font-size: 64px; font-style: italic; color: rgba(255,255,255,.5); }
.sel-cover-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62) 0%, transparent 55%); }
.sel-cover-meta { position: relative; z-index: 2; padding: 18px; width: 100%; }
.sel-cover-cat { font-size: 8px; letter-spacing: .22em; text-transform: uppercase; color: var(--white); opacity: .8; margin-bottom: 6px; }
.sel-cover-title { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--white); line-height: 1.1; }
.sel-foot { padding: 14px 18px 18px; display: flex; align-items: center; justify-content: space-between; }
.sel-sub { font-size: 11px; color: var(--muted); }
.sel-arrow { font-size: 11px; color: var(--accent); letter-spacing: .1em; }

.footer { background-color: var(--cream); border-top: 1px solid var(--line); padding: 36px 32px; }
.f-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.f-logo { font-family: var(--serif); font-size: 14px; text-decoration: none; color: var(--ink); }
.f-logo em { font-style: italic; color: var(--accent); }
.f-nav { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.f-nav a { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.f-nav a:hover { color: var(--accent); }
.f-copy { font-size: 9px; color: var(--line2); letter-spacing: .1em; text-align: center; }

/* ───── modal (selection detail) ───── */
.modal { position: fixed; inset: 0; z-index: 800; background-color: var(--cream); display: none; flex-direction: column; overflow-y: auto; }
.modal.open { display: flex; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-bar { position: sticky; top: 0; z-index: 10; background-color: var(--cream); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; height: 58px; gap: 10px; }
.modal-back { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); background: none; border: none; }
.modal-back:hover { color: var(--accent); }
.modal-logo { font-family: var(--serif); font-size: 14px; }
.modal-logo em { font-style: italic; color: var(--accent); }
.modal-share {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line2); background: none; color: var(--ink);
  padding: 7px 14px; border-radius: 99px; transition: all .2s;
}
.modal-share:hover { border-color: var(--accent); color: var(--accent); }
.modal-hero { padding: 48px 32px 36px; border-bottom: 1px solid var(--line); position: relative; }
.modal-cat { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.modal-title { font-family: var(--serif); font-size: clamp(30px, 7vw, 52px); font-weight: 400; line-height: 1; margin-bottom: 16px; }
.modal-sub { font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 480px; }
.modal-products { padding: 36px 32px 16px; }
.mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background-color: var(--line); border: 2px solid var(--line); }
.mp-card { background-color: var(--white); display: flex; flex-direction: column; overflow: hidden; }
.mp-img { aspect-ratio: 1; position: relative; overflow: hidden; background-color: var(--sand); display: flex; align-items: center; justify-content: center; }
.mp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-img-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--soft); }
.mp-img-fallback span { font-family: var(--serif); font-size: 32px; font-style: italic; }
.mp-mk { position: absolute; top: 10px; left: 10px; background-color: var(--white); color: var(--ink); font-size: 7px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.mp-ad { position: absolute; top: 10px; right: 10px; background-color: rgba(0,0,0,.8); color: var(--cream); font-size: 7px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.mp-info { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.mp-name { font-family: var(--serif); font-size: 15px; font-weight: 400; line-height: 1.25; margin-bottom: 6px; }
.mp-desc { font-size: 11px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; flex: 1; }
.mp-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mp-price { font-size: 13px; color: var(--accent); white-space: nowrap; }
.mp-buy { font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--white); background-color: var(--ink); padding: 8px 14px; border-radius: 99px; text-decoration: none; transition: all .2s; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--ink); }
.mp-buy:hover { background-color: var(--cream); color: var(--ink); }

/* ═══════════════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════════════ */

body.admin-body { background-color: var(--sand); }

.admin-bar { position: sticky; top: 0; z-index: 10; background-color: var(--ink); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; height: 56px; gap: 10px; flex-wrap: wrap; }
.admin-bar-logo { font-family: var(--serif); font-size: 14px; color: var(--cream); }
.admin-bar-logo em { font-style: italic; color: var(--cream); }
.admin-bar-tag { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); margin-left: 10px; }
.admin-bar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* на тёмной панели основная кнопка инвертируется — белая пилюля, чтобы выделяться */
.admin-bar .btn-primary { background-color: var(--cream); color: var(--ink); border-color: var(--cream); }
.admin-bar .btn-primary:hover { background-color: var(--line); color: var(--ink); }

.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 30px 28px 80px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.admin-head h1 { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.admin-head p { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tab {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  background: none; border: none; color: var(--muted);
  padding: 11px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }

/* login */
.login { max-width: 380px; margin: 0 auto; padding: 110px 28px; text-align: center; }
.login-glyph { font-family: var(--serif); font-size: 44px; font-style: italic; color: var(--accent); margin-bottom: 8px; }
.login h2 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 6px; }
.login p { font-size: 11px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.login input { width: 100%; background-color: var(--white); border: 1px solid var(--line); padding: 14px 16px; font-size: 14px; color: var(--ink); border-radius: 8px; margin-bottom: 12px; outline: none; text-align: center; letter-spacing: .1em; }
.login input:focus { border-color: var(--accent); }
.login .btn { width: 100%; padding: 14px; }
.login-err { font-size: 11px; color: var(--danger); margin-top: 10px; min-height: 16px; }
.login-hint { font-size: 10px; color: var(--soft); margin-top: 16px; line-height: 1.6; }

/* list */
.admin-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.al-card { background-color: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; }
.al-cover { width: 104px; flex-shrink: 0; background-size: cover; background-position: center; background-color: var(--sand); display: flex; align-items: center; justify-content: center; }
.al-cover-glyph { font-family: var(--serif); font-size: 28px; font-style: italic; color: var(--soft); }
.al-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.al-cat { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.al-title { font-family: var(--serif); font-size: 18px; font-weight: 400; line-height: 1.15; margin-bottom: 4px; }
.al-meta { font-size: 10px; color: var(--muted); margin-bottom: auto; line-height: 1.6; }
.al-actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

/* stats */
.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card { background-color: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; }
.stat-card .n { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1; }
.stat-card .l { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 7px; line-height: 1.5; }

.tbl-wrap { background-color: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 400; white-space: nowrap; }
.tbl td { font-size: 12px; padding: 12px 14px; border-bottom: 1px solid var(--sand); }
.tbl tr:last-child td { border-bottom: none; }
.tbl .num { color: var(--accent); font-size: 13px; }
.tag-ad { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }

/* editor */
.editor { background-color: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin-bottom: 20px; }
.editor h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; background-color: var(--cream); border: 1px solid var(--line); padding: 12px 14px; font-size: 13px; color: var(--ink); border-radius: 8px; outline: none; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
.field-hint { font-size: 9px; color: var(--soft); margin-top: 5px; letter-spacing: .04em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.check-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink); cursor: pointer; user-select: none; }
.check-row input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.check-row .ch-sub { color: var(--muted); font-size: 10px; }

.img-picker { display: flex; gap: 12px; align-items: flex-start; }
.img-drop {
  width: 96px; height: 96px; flex-shrink: 0; border-radius: 10px;
  border: 1px dashed var(--line2); background-color: var(--cream); background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  position: relative; overflow: hidden; transition: border-color .2s;
}
.img-drop:hover { border-color: var(--accent); }
.img-drop-hint { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); text-align: center; padding: 6px; line-height: 1.4; }
.img-drop input[type=file] { display: none; }
.img-picker-right { flex: 1; }
.cover-picker .img-drop { width: 100%; height: 130px; }

.prod-section { margin-top: 8px; }
.prod-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.prod-section-head h4 { font-family: var(--serif); font-size: 16px; font-weight: 400; }
.prod-row { background-color: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.prod-row-top { display: flex; gap: 14px; align-items: flex-start; }
.prod-fields { flex: 1; min-width: 0; }
.prod-row .field { margin-bottom: 10px; }
.prod-remove { background: none; border: none; color: var(--ink); font-size: 18px; line-height: 1; padding: 4px; flex-shrink: 0; transition: color .2s; }
.prod-remove:hover { color: var(--accent); }
.editor-actions { display: flex; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 820px) {
  .sel-grid, .skel-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-list { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav, .hero, .sel-sec, .modal-bar, .modal-hero, .modal-products, .footer { padding-left: 18px; padding-right: 18px; }
  .hero::before { font-size: 200px; right: -15px; }
  .field-row { grid-template-columns: 1fr; }
  .prod-row-top { flex-direction: column; }
  .f-top { flex-direction: column; align-items: flex-start; }
  .admin-wrap { padding: 22px 16px 60px; }
  .editor { padding: 18px; }
  .modal-bar { height: 54px; }
  .modal-share { padding: 6px 10px; font-size: 9px; }
  .cover-picker .img-drop { height: 110px; }
  .admin-bar { padding: 8px 14px; height: auto; min-height: 56px; }
  .tabs { overflow-x: auto; }
}

/* ═══════════ ДОПОЛНЕНИЯ: hero CTA, how-it-works, дисклеймер, админ ═══════════ */

.hero-cta {
  display: inline-block; margin-top: 30px;
  background-color: var(--ink); color: var(--cream);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 99px; text-decoration: none;
  transition: all .2s; box-shadow: inset 0 0 0 1px var(--ink);
}
.hero-cta:hover { background-color: var(--cream); color: var(--ink); }

.how {
  background-color: var(--sand); border-bottom: 1px solid var(--line);
  padding: 44px 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.how-item { display: flex; gap: 14px; align-items: flex-start; }
.how-n { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--accent); line-height: 1; }
.how-item h3 { font-family: var(--serif); font-size: 16px; font-weight: 400; margin-bottom: 6px; }
.how-item p { font-size: 11px; color: var(--muted); line-height: 1.7; }

.f-disc {
  font-size: 9px; color: var(--soft); line-height: 1.7;
  max-width: 560px; margin: 0 auto 14px; text-align: center; letter-spacing: .04em;
}

.modal-bottom {
  display: flex; justify-content: center;
  padding: 8px 32px 64px; background-color: var(--cream);
}

.admin-search { margin-bottom: 16px; }
.admin-search input {
  width: 100%; max-width: 420px;
  background-color: var(--white); border: 1px solid var(--line); border-radius: 99px;
  padding: 11px 18px; font-size: 12px; color: var(--ink); outline: none;
  transition: border-color .2s;
}
.admin-search input:focus { border-color: var(--accent); }

.prod-ctl { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.prod-ctl button {
  width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid var(--line2); background: none; color: var(--muted);
  font-size: 12px; line-height: 1; padding: 0; transition: all .2s;
}
.prod-ctl button:hover { border-color: var(--accent); color: var(--accent); }
.prod-ctl .prod-remove { color: var(--ink); border-color: var(--line2); font-size: 14px; }
.prod-ctl .prod-remove:hover { background-color: var(--ink); border-color: var(--ink); color: var(--white); }

.stats-sub { font-family: var(--serif); font-size: 17px; font-weight: 400; margin: 24px 0 12px; }

@media (max-width: 820px) {
  .how { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .how { padding: 30px 18px; }
  .modal-bottom { padding: 8px 18px 56px; }
}

/* ═══════════ Соцсети в подвале + менеджер категорий ═══════════ */
.f-social { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.f-social-label { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.f-social-links { display: flex; gap: 20px; flex-wrap: wrap; }
.f-social-a { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.f-social-a:hover { color: var(--accent); }

.cat-add { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-add input { flex: 1; min-width: 200px; background-color: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13px; color: var(--ink); outline: none; transition: border-color .2s; }
.cat-add input:focus { border-color: var(--accent); }
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background-color: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.cat-name { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.cat-ctl { display: flex; gap: 6px; flex-shrink: 0; }
.cat-ctl button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line2); background: none; color: var(--muted); font-size: 13px; line-height: 1; padding: 0; transition: all .2s; }
.cat-ctl button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cat-ctl button:disabled { opacity: .35; cursor: default; }
.cat-ctl .cat-del { color: var(--ink); }
.cat-ctl .cat-del:hover { background-color: var(--ink); border-color: var(--ink); color: var(--white); }

@media (max-width: 560px) {
  .f-social { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ═══════════ Страница «О проекте» ═══════════ */
.about { background-color: var(--sand); border-top: 1px solid var(--line); padding: 64px 32px; }
.about-inner { max-width: 720px; margin: 0 auto; }
.about-title { font-family: var(--serif); font-size: clamp(28px, 6vw, 44px); font-weight: 400; line-height: 1.05; margin: 8px 0 26px; }
.about-title em { font-style: italic; }
.about-text p { font-size: 14px; line-height: 1.9; color: var(--muted); margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text b { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) {
  .about { padding: 44px 18px; }
}
