/* Палитра бренда «Нолик» (бренд-лист) */
:root {
  --brand: #FF6A00;        /* основной оранжевый: кнопки, логотип, акценты */
  --brand-hover: #EB6100;
  --brand-soft: #FFF1E6;   /* светлая подложка: уведомления, свои сообщения */
  --accent: #C2410C;       /* оранжевый для текста и ссылок - читаемый на белом (контраст 5:1) */
  --text: #0F172A;         /* тёмно-синий */
  --muted: #64748B;        /* второстепенный текст */
  --subtle: #9CA3AF;       /* светло-серый бренда - только для крупных подзаголовков */
  --bg: #F8FAFC;           /* фон страницы */
  --card: #fff;
  --border: #E2E8F0;
  --ok: #15803D;           /* зелёный - только для «проверено» */
  --ok-soft: #E8F7EE;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(15, 23, 42, .06);
  --brand-border: #FFD3B0;
  --input-bg: #fff;
  --surface-2: #eef0f3;    /* подложка под фото, чужие сообщения */
  --stripe-1: #f0f1f3;     /* штриховка рекламного места */
  --stripe-2: #e9ebee;
  --stripe-border: #c9cdd3;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --danger-border: #f5c2bd;
  --hero-soft: #FFE8D6;
  --glass: rgba(255, 255, 255, .92);
  color-scheme: light;
}

/* Тёмная тема: автоматически по настройке устройства или вручную (атрибут data-theme ставит переключатель) */
:root[data-theme="dark"] {
  --brand-hover: #FF7F26;
  --brand-soft: #2B1B10;
  --brand-border: #5A3215;
  --accent: #FF8F4A;
  --text: #E5E9F0;
  --muted: #94A3B8;
  --subtle: #64748B;
  --bg: #0B1120;
  --card: #141C2F;
  --border: #24304A;
  --ok: #4ADE80;
  --ok-soft: #12301F;
  --shadow: 0 2px 12px rgba(0, 0, 0, .35);
  --input-bg: #0F1729;
  --surface-2: #1C2640;
  --stripe-1: #182136;
  --stripe-2: #1C2640;
  --stripe-border: #2B3756;
  --danger: #F87171;
  --danger-soft: #3A1717;
  --danger-border: #5C2323;
  --hero-soft: #3A2210;
  --glass: rgba(20, 28, 47, .92);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-hover: #FF7F26;
    --brand-soft: #2B1B10;
    --brand-border: #5A3215;
    --accent: #FF8F4A;
    --text: #E5E9F0;
    --muted: #94A3B8;
    --subtle: #64748B;
    --bg: #0B1120;
    --card: #141C2F;
    --border: #24304A;
    --ok: #4ADE80;
    --ok-soft: #12301F;
    --shadow: 0 2px 12px rgba(0, 0, 0, .35);
    --input-bg: #0F1729;
    --surface-2: #1C2640;
    --stripe-1: #182136;
    --stripe-2: #1C2640;
    --stripe-border: #2B3756;
    --danger: #F87171;
    --danger-soft: #3A1717;
    --danger-border: #5C2323;
    --hero-soft: #3A2210;
    --glass: rgba(20, 28, 47, .92);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
h1, h2 { letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; margin: 1rem 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.inline { display: inline; margin: 0; }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover, .auth button:hover { background: var(--brand-hover); }
.btn--big { padding: 12px 20px; font-size: 1.05rem; }

.message { background: var(--brand-soft); border: 1px solid var(--brand-border); padding: 10px 14px; border-radius: 8px; margin: 12px 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.crumbs { color: var(--muted); font-size: .9rem; }

.search { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.search input, .search select { padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--input-bg); min-width: 0; color: inherit; }
.search__q { flex: 1 1 260px; }
.search input[type=number] { width: 110px; }

.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
.cats a { white-space: nowrap; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 6px 12px; color: var(--text); font-size: .9rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, .1); }
.card__img, .detail__img { aspect-ratio: 4/3; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.card__img img, .detail__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 10px 12px; }
.card__price { font-weight: 700; font-size: 1.1rem; }
.card__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__meta { color: var(--muted); font-size: .85rem; }

.ad { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, var(--stripe-1), var(--stripe-1) 10px, var(--stripe-2) 10px, var(--stripe-2) 20px); border: 1px dashed var(--stripe-border); border-radius: var(--radius); color: var(--muted); font-size: .85rem; }
.ad--card { min-height: 250px; }
.ad--wide { min-height: 90px; margin: 8px 0 16px; }

.pages { display: flex; justify-content: center; gap: 20px; margin: 24px 0; }

.detail { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.detail__img { border-radius: var(--radius); overflow: hidden; }
.detail__price { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.detail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; }
.detail .ad { margin-top: 20px; }
.detail__desc { background: var(--card); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }

.form { background: var(--card); padding: 20px; border-radius: var(--radius); max-width: 640px; }
.form p { margin: 0 0 14px; }
.form label { display: block; font-weight: 600; margin-bottom: 4px; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.form .helptext { color: var(--muted); font-size: .85rem; }
.errorlist { color: var(--danger); padding-left: 18px; margin: 4px 0; }

.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: var(--card); padding: 12px 16px; border-radius: 8px; margin-bottom: 8px; }
.row > a:first-child { flex: 1; font-weight: 600; }
.row--off { opacity: .55; }

.footer { color: var(--muted); font-size: .85rem; text-align: center; padding: 32px 16px; }

@media (max-width: 700px) {
  .detail { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nav { gap: 10px; font-size: .9rem; }
}

/* Чат */
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: var(--radius); background: #e5484d; color: #fff; font-size: .75rem; font-weight: 700; text-align: center; line-height: 20px; }
a.row { color: var(--text); }
.row__main { flex: 1; }
.row--unread { border-left: 4px solid var(--brand); }
.chat { background: var(--card); border-radius: var(--radius); padding: 16px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.msg { align-self: flex-start; max-width: 75%; background: var(--surface-2); padding: 8px 12px; border-radius: 12px 12px 12px 2px; overflow-wrap: anywhere; }
.msg--mine { align-self: flex-end; background: var(--brand-soft); border-radius: 12px 12px 2px 12px; }
.msg time { display: block; font-size: .75rem; color: var(--muted); }
.chat__form { display: flex; gap: 8px; margin: 12px 0 24px; }
.chat__form textarea { flex: 1; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; resize: vertical; }

/* Фото */
.form .field { margin: 0 0 14px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--surface-2); aspect-ratio: 4/3; }
.gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 400 !important; font-size: .85rem; }
.thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.form .thumb input { width: auto; }

/* Страницы и категории */
.cats a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page { background: var(--card); border-radius: var(--radius); padding: 8px 24px 24px; margin: 16px 0; max-width: 800px; }
.form input[type=checkbox] { width: auto; }
.ad--live { background: none; border: 0; }

/* Аккаунт, модерация */
.muted { color: var(--muted); font-size: .9rem; }
.danger { color: var(--danger); }
.btn--danger { background: var(--danger); }
.message--danger { background: var(--danger-soft); border-color: var(--danger-border); }
.tag { font-size: .8rem; padding: 2px 8px; border-radius: 6px; }
.tag--danger { background: var(--danger-soft); color: var(--danger); }
.props { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.props dt { color: var(--muted); }
.props dd { margin: 0; }
.links { padding-left: 18px; line-height: 2; }
.form ul:not(.errorlist) { list-style: none; padding: 0; margin: 4px 0; }
.form ul:not(.errorlist) label { font-weight: 400; display: flex; gap: 8px; align-items: center; }

/* Страницы входа и регистрации (allauth) */
.auth { max-width: 520px; }
.auth form { background: var(--card); padding: 20px; border-radius: var(--radius); margin: 12px 0; }
.auth form p, .auth form > div { margin: 0 0 14px; }
.auth label { display: block; font-weight: 600; margin-bottom: 4px; }
.auth input:not([type=checkbox]):not([type=hidden]) { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.auth button { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; }
.auth .helptext, .auth form ul { color: var(--muted); font-size: .85rem; }
.social { display: grid; gap: 8px; }
.social__btn { display: block; text-align: center; padding: 12px; border-radius: 8px; font-weight: 600; color: #fff; }
.social__btn--yandex { background: #fc3f1d; }
.social__btn--vk { background: #0077ff; }
.social__btn--telegram { background: #2aabee; }
.or { text-align: center; color: var(--muted); font-size: .9rem; margin: 16px 0 0; }
.auth .field input[type=checkbox] { margin-right: 6px; }
.auth .field:has(input[type=checkbox]) label { display: inline; font-weight: 400; }

/* Продавцы и магазины */
.seller { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: var(--radius); padding: 10px 12px; margin: 12px 0; color: var(--text); }
.seller__img, .avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.verified { color: var(--ok); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.tag { background: var(--surface-2); }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.profile-head { display: flex; gap: 20px; align-items: center; margin: 16px 0; }
.profile-head h1 { margin: 0; }
.profile-head p { margin: 4px 0; }
.avatar { width: 96px; height: 96px; font-size: 2.4rem; }
.shop { background: var(--card); border-radius: 12px; overflow: hidden; margin: 16px 0; }
.shop__cover { height: 180px; background: linear-gradient(120deg, #FF6A00, #FF9A4D) center/cover; }
.shop__head { display: flex; gap: 16px; align-items: flex-end; padding: 0 20px; margin-top: -40px; }
.shop__head > div { padding-top: 48px; }
.shop__head h1 { margin: 0; }
.shop__head p { margin: 4px 0; }
.shop__logo { width: 96px; height: 96px; border-radius: 16px; border: 4px solid var(--card); background: var(--card); object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; flex: none; }
.shop__info { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px 20px; }
.shop__about { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.shop__about .page { margin: 0; max-width: none; }
.inline-details { display: inline; }
.inline-details summary { cursor: pointer; color: var(--accent); display: inline; }
.legal { text-align: center; font-size: .8rem; margin: 24px 0 0; }
.form h2 { margin: 24px 0 8px; font-size: 1.2rem; }
@media (max-width: 700px) {
  .shop__about { grid-template-columns: 1fr; }
  .shop__cover { height: 110px; }
  .profile-head { flex-direction: column; align-items: flex-start; }
}

/* Шапка */
.header { background: var(--card); box-shadow: 0 1px 0 var(--border), var(--shadow); position: sticky; top: 0; z-index: 10; }
.header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; flex: none; }
.logo img { height: 54px; width: auto; display: block; }
.logo__mini { display: none !important; }
.hsearch { flex: 1; display: flex; max-width: 520px; }
.hsearch input { flex: 1; min-width: 0; padding: 10px 14px; border: 1.5px solid var(--border); border-right: 0; border-radius: 10px 0 0 10px; font: inherit; background: var(--bg); }
.hsearch input:focus { outline: none; border-color: var(--brand); background: var(--input-bg); }
.hsearch button { border: 0; background: var(--brand); color: #fff; border-radius: 0 10px 10px 0; padding: 0 14px; cursor: pointer; display: flex; align-items: center; }
.hsearch button:hover { background: var(--brand-hover); }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text); font-size: .75rem; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.nav__item:hover { color: var(--brand); }
.nav__item svg { width: 24px; height: 24px; }
.nav__item .badge { position: absolute; top: -6px; right: 0; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 700px) {
  .header__inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo__full { display: none !important; }
  .logo__mini { display: block !important; height: 38px !important; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .nav { gap: 14px; }
  .nav__item span:not(.badge) { display: none; }
  .nav .btn { padding: 8px 12px; }
  .search { display: grid; grid-template-columns: 1fr 1fr; }
  .search select, .search .btn { grid-column: span 2; }
  .search input[type=number] { width: auto; }
}
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn--ghost:hover { background: var(--bg); }

/* Избранное */
.card { position: relative; }
.card__link { color: inherit; display: block; }
.fav-form { margin: 0; }
.card .fav { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; background: var(--glass); box-shadow: var(--shadow); }
.fav { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; color: var(--text); font: inherit; padding: 0; background: none; }
.fav:hover { color: var(--brand); }
.fav--on { color: var(--brand); }
.fav--on .icon { fill: var(--brand); }
.fav--big { margin: 10px 0; font-weight: 600; }
.card__delivery { font-size: .8rem; color: var(--accent); font-weight: 600; }

/* Фильтры */
.search select { padding: 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--input-bg); color: inherit; }
.check { display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 0 6px; }

/* Страница объявления */
.phone { margin: 10px 0; }
.phone summary { list-style: none; text-align: center; }
.phone summary::-webkit-details-marker { display: none; }
.phone[open] summary { display: none; }
.phone__num { display: block; text-align: center; font-size: 1.3rem; font-weight: 800; padding: 10px; background: var(--bg); border-radius: 10px; }
.detail__info .btn--big { width: 100%; text-align: center; margin: 4px 0; }

/* Чат: доставка и безопасность */
.safety { font-size: .85rem; color: var(--muted); background: var(--card); border-radius: 10px; padding: 8px 12px; }
.tracking { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--ok-soft); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.tracking .btn { margin-left: auto; }
.tracking__text { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.msg__warn { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: .85rem; }
.tracking-form { background: var(--card); border-radius: 10px; padding: 10px 14px; margin-bottom: 24px; }
.tracking-form summary { cursor: pointer; font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inline-form input, .inline-form select { padding: 9px; border: 1px solid var(--border); border-radius: 10px; font: inherit; flex: 1 1 160px; }

/* Страницы ошибок */
.error-page { text-align: center; padding: 48px 16px; }
.error-page img { filter: drop-shadow(0 12px 24px rgba(255, 106, 0, .3)); }
.error-page p { color: var(--muted); }
.search select { flex: 1 1 150px; min-width: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Волна 1: «как приложение» ===== */

/* Нижнее меню на телефоне */
.tabbar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 4px env(safe-area-inset-bottom); background: var(--glass); backdrop-filter: blur(12px);
    box-shadow: 0 -1px 0 var(--border), 0 -4px 16px rgba(15, 23, 42, .05); justify-content: space-around; align-items: center; }
  .tabbar__item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--muted); }
  .tabbar__item svg { width: 24px; height: 24px; }
  .tabbar__item.is-active { color: var(--brand); }
  .tabbar__item .badge { position: absolute; top: -4px; left: 50%; margin-left: 4px; }
  .tabbar__add { width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(255, 106, 0, .4); margin-top: -18px; }
  .tabbar__add svg { width: 28px; height: 28px; stroke-width: 2.4; }
  /* На телефоне шапка - только логотип и поиск, остальное в нижнем меню */
  .header .nav { display: none; }
  .header__inner { flex-wrap: nowrap; height: 60px; padding-top: 0; padding-bottom: 0; }
  .hsearch { order: 0; flex-basis: auto; }
  .footer { padding-bottom: 16px; }
}

/* Подсказки поиска */
.hsearch { position: relative; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; background: var(--card); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16); overflow: hidden; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--text); }
.suggest a:hover, .suggest a.is-active { background: var(--brand-soft); }
.suggest img, .suggest__icon { width: 44px; height: 33px; border-radius: 6px; object-fit: cover; flex: none; background: var(--bg);
  display: flex; align-items: center; justify-content: center; }
.suggest__title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__cat small { margin-left: auto; color: var(--muted); }
.suggest__all { color: var(--accent) !important; font-weight: 600; border-top: 1px solid var(--border); }

/* Подгрузка ленты */
.loader { display: flex; justify-content: center; gap: 6px; padding: 28px 0; }
.loader span { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: bounce 1s infinite ease-in-out; }
.loader span:nth-child(2) { animation-delay: .15s; }
.loader span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* Галерея */
.gallery-wrap { position: relative; }
.gallery img { cursor: zoom-in; }
.gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--glass); box-shadow: var(--shadow); font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--text); }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__counter { position: absolute; right: 12px; bottom: 12px; background: rgba(15, 23, 42, .6); color: #fff; font-size: .8rem; padding: 2px 10px; border-radius: 999px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; opacity: .65; }
.gallery__thumbs button.is-active { border-color: var(--brand); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .gallery__arrow { display: none; } }

/* Просмотр фото на весь экран */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; }
.lightbox::backdrop { background: #000; }
.lightbox__track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.lightbox__close { position: fixed; top: 12px; right: 16px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }

/* Загрузка фото */
.dropzone { display: block; border: 2px dashed var(--brand-border); border-radius: var(--radius); background: var(--brand-soft); padding: 16px; cursor: pointer; text-align: center; transition: background .15s; }
.dropzone.is-over { background: var(--hero-soft); border-color: var(--brand); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone__hint { display: block; color: var(--muted); font-weight: 400; }
.dropzone__hint b { color: var(--brand); font-size: 1.05rem; }
.dropzone__previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.dropzone__previews:empty { display: none; }
.preview { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--input-bg); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview--cover { outline: 3px solid var(--brand); }
.preview__badge, .preview__cover { position: absolute; left: 6px; bottom: 6px; font-size: .7rem; border-radius: 6px; padding: 2px 6px; }
.preview__badge { background: var(--brand); color: #fff; }
.preview__cover { border: 0; background: var(--glass); cursor: pointer; }
.preview__remove { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .65); color: #fff; cursor: pointer; line-height: 1; }
.thumb label { display: flex !important; align-items: center; gap: 4px; font-weight: 400 !important; }

/* Фильтры: на телефоне свёрнуты */
.filters__toggle { display: none; }
@media (max-width: 700px) {
  .filters__toggle { display: block; width: 100%; border: 0; background: var(--card); border-radius: 10px; box-shadow: var(--shadow);
    padding: 10px; margin: 12px 0; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); }
  .filters:not(.is-open) .search { display: none; }
  .filters.is-open .filters__toggle { margin-bottom: 0; }
}

/* Волна 2 */
.save-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 12px; }
.recent { margin: 8px 0 16px; }
.recent h2 { font-size: 1.15rem; margin: 8px 0; }
.recent__row { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.recent__row .card__meta, .recent__row .card__delivery { display: none; }
.app-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 12px 0; }
.app-buttons [hidden] { display: none; }

/* Тёмная тема: логотип со светлыми буквами */
.logo__full--dark { display: none !important; }
:root[data-theme="dark"] .logo__full--light { display: none !important; }
:root[data-theme="dark"] .logo__full--dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo__full--light { display: none !important; }
  :root:not([data-theme="light"]) .logo__full--dark { display: block !important; }
}
@media (max-width: 700px) {
  .logo__full--dark, :root[data-theme="dark"] .logo__full--dark { display: none !important; }
}
@media (max-width: 700px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo__full--dark { display: none !important; }
}
.theme-toggle { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }


/* ===== Карусель баннеров на главной ===== */
.carousel { position: relative; margin: 16px 0 20px; }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 20px;
  scrollbar-width: none; box-shadow: var(--shadow); }
.carousel__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; min-height: 260px; padding: 32px 48px; }
.slide__text { position: relative; z-index: 1; max-width: 620px; }
.slide h1, .slide h2 { font-size: 2.2rem; line-height: 1.15; margin: 0 0 10px; font-weight: 800; }
.slide p { font-size: 1.1rem; margin: 0 0 20px; max-width: 520px; }
.slide__art { position: relative; z-index: 1; flex: none; width: 220px; height: 200px; display: flex; align-items: center; justify-content: center; margin-right: 24px; }
.slide__art img { max-width: 100%; max-height: 100%; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .18)); }
.slide__icon { font-size: 120px; line-height: 1; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .2)); }
/* Декоративные круги, как в бренд-листе */
.slide::before, .slide::after { content: ''; position: absolute; border-radius: 50%; }
.slide::before { width: 420px; height: 420px; right: -60px; top: 50%; transform: translateY(-50%); }
.slide::after { width: 220px; height: 220px; right: 320px; bottom: -150px; }

.slide--light { background: var(--card); color: var(--text); }
.slide--light h1 span, .slide--light h2 span { color: var(--brand); }
.slide--light p { color: var(--muted); }
.slide--light::before { background: var(--hero-soft); }
.slide--light::after { background: var(--brand-soft); }

.slide--orange { background: linear-gradient(120deg, #FF6A00, #FF8A33); color: #fff; }
.slide--orange h1 span, .slide--orange h2 span { color: #0F172A; }
.slide--orange p { color: rgba(255, 255, 255, .92); }
.slide--orange::before { background: rgba(255, 255, 255, .16); }
.slide--orange::after { background: rgba(255, 255, 255, .1); }
.slide--orange .slide__btn { background: #fff; color: #C2410C; }
.slide--orange .slide__btn:hover { background: #FFF1E6; }

.slide--navy { background: linear-gradient(120deg, #0F172A, #1E293B); color: #fff; }
.slide--navy h1 span, .slide--navy h2 span { color: #FF6A00; }
.slide--navy p { color: #CBD5E1; }
.slide--navy::before { background: radial-gradient(circle, rgba(255, 106, 0, .45) 0%, rgba(255, 106, 0, 0) 70%); }
.slide--navy::after { background: rgba(255, 255, 255, .06); }

.carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--glass); color: var(--text); box-shadow: var(--shadow); font-size: 1.8rem; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .2s; }
.carousel:hover .carousel__arrow, .carousel__arrow:focus-visible { opacity: 1; }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--border); cursor: pointer;
  transition: width .25s, background .25s; }
.carousel__dots button.is-active { width: 24px; background: var(--brand); }

@media (max-width: 700px) {
  .carousel { margin: 12px 0 14px; }
  .slide { min-height: 0; padding: 20px 18px; align-items: flex-end; }
  .slide h1, .slide h2 { font-size: 1.35rem; }
  .slide p { font-size: .9rem; margin-bottom: 14px; }
  .slide .btn--big { padding: 10px 16px; font-size: .95rem; }
  .slide__art { position: absolute; right: -8px; top: 10px; width: 96px; height: 96px; margin: 0; opacity: .95; }
  .slide__icon { font-size: 60px; }
  .slide__text { padding-right: 70px; }
  .slide::before { width: 200px; height: 200px; right: -60px; top: 0; transform: none; }
  .slide::after { display: none; }
  .carousel__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel__track { scroll-behavior: auto; }
}

/* Плашка о cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 640px; margin: 0 auto; display: flex; align-items: center;
  gap: 12px; background: var(--card); color: var(--text); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(15, 23, 42, .2); padding: 12px 16px; font-size: .9rem; }
.cookie[hidden] { display: none; }
@media (max-width: 700px) { .cookie { bottom: calc(76px + env(safe-area-inset-bottom)); left: 8px; right: 8px; } }

/* Поделиться */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.share__label { color: var(--muted); font-size: .9rem; }
.share__btn { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem;
  font-weight: 600; cursor: pointer; color: #fff; }
.share__btn[hidden] { display: none; }
.share__tg { background: #2AABEE; }
.share__vk { background: #0077FF; }
.share__wa { background: #25D366; }
.share__copy, .share__card, .share__native { background: var(--surface-2); color: var(--text); }
.districts { margin: 28px 0 8px; }
.districts h2 { font-size: 1.15rem; }
.districts .cats { flex-wrap: wrap; overflow: visible; }
.stats { text-align: center; color: var(--muted); margin: -6px 0 14px; font-size: .95rem; }
.stats b { color: var(--text); }
.price-hint { margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); font-size: .9rem; }
.price-hint[hidden] { display: none; }

/* Магазины и производители */
.tag--maker { background: #E0E7FF; color: #3730A3; }
:root[data-theme="dark"] .tag--maker { background: #1E2A5A; color: #C7D2FE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag--maker { background: #1E2A5A; color: #C7D2FE; } }
.wholesale { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.feed-status { max-width: 640px; }
.feed-report { white-space: pre-wrap; font: inherit; font-size: .9rem; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }

/* Страница для бизнеса */
.biz-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--card); border-radius: 20px;
  box-shadow: var(--shadow); padding: 32px 40px; margin: 20px 0; }
.biz-hero h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 10px; }
.biz-hero h1 span { color: var(--brand); }
.biz-hero p { color: var(--muted); font-size: 1.05rem; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.biz-grid .page { margin: 0; max-width: none; }
.biz-grid h2 { font-size: 1.1rem; }
.biz-how { max-width: none; }
.biz-how li { margin-bottom: 8px; }
@media (max-width: 700px) { .biz-hero { padding: 20px; } .biz-hero img { display: none; } .biz-hero h1 { font-size: 1.4rem; } }

/* Подразделы (плитки на странице раздела «Еда» и других) */
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 16px; }
.subcat { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 10px; color: var(--text); text-align: center; transition: transform .15s; }
.subcat:hover { transform: translateY(-2px); }
.subcat.is-active { outline: 2px solid var(--brand); }
.subcat__icon { font-size: 2rem; line-height: 1; }
.subcat__name { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.subcat__count { color: var(--muted); font-size: .8rem; }
@media (max-width: 700px) {
  /* На телефоне - компактная лента «таблеток» в одну строку, листается пальцем */
  .subcats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 2px 16px 6px; }
  .subcat { flex-direction: row; flex-shrink: 0; gap: 6px; padding: 8px 14px; border-radius: 999px; box-shadow: none;
    border: 1px solid var(--border); }
  .subcat:hover { transform: none; }
  .subcat__icon { font-size: 1.1rem; }
  .subcat__name { font-size: .88rem; white-space: nowrap; }
  .subcat__count { background: var(--surface-2); border-radius: 999px; padding: 0 7px; font-size: .75rem; }
}

/* Сведения о продукте */
.food-fields { border: 2px solid var(--brand-border); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; background: var(--brand-soft); }
.food-fields[hidden], .food-fields [hidden] { display: none; }
.food-fields legend { font-weight: 800; padding: 0 6px; }
.food-fields .is-required label:first-child::after, .food-fields .is-required > label::after { content: ' *'; color: var(--brand); }
.food-info .props { margin: 8px 0; }

/* Проверяемость продуктов */
.food-badges .tag { display: inline-block; margin: 2px 4px 2px 0; }
.tag--big { font-size: .9rem; padding: 4px 10px; font-weight: 700; }
.best-before { font-size: 1.05rem; }
.best-before--soon { color: var(--danger); }
.allergens { background: var(--danger-soft); border-radius: 10px; padding: 8px 12px; }
.docs { padding-left: 18px; line-height: 1.9; }
.food-info h3 { font-size: 1.05rem; margin: 16px 0 4px; }
.doc-row .tag { white-space: nowrap; }
.copy-food select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--input-bg); color: inherit; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.trust__step { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; color: var(--muted); font-weight: 600; }
.trust__step small { display: block; font-weight: 400; font-size: .8rem; }
.trust__step.is-done { color: var(--ok); background: var(--ok-soft); }
.farm-photos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 10px; overflow-x: auto; margin: 0 0 16px; scrollbar-width: none; }
.farm-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 700px) { .trust { grid-template-columns: 1fr; } }

/* Отзывы */
.rating { color: #F59E0B; font-weight: 700; }
.reviews { margin: 24px 0; }
.review { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 10px; }
.review__head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.review__stars { color: #F59E0B; letter-spacing: 1px; }
.review p { margin: 6px 0; }
.review__reply { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; margin-top: 6px; font-size: .95rem; }
.review-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--brand-soft); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.review-cta .btn { margin-left: auto; }
/* Звёзды в форме: радиокнопки 5..1 справа налево, подсвечиваем выбранную и все «меньшие» */
.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 2.2rem; line-height: 1; color: var(--border); cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #F59E0B; }
.stars-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.staff-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.cat-hint { margin: 4px 0 0; font-size: .85rem; }

/* Запросы «Ищу» */
.wanted-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
a.wanted-row { color: var(--text); }
.wanted-budget { font-weight: 700; white-space: nowrap; }
.wanted-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; background: var(--brand-soft);
  border-radius: var(--radius); padding: 14px; margin: 0 0 16px; }
.wanted-strip { text-align: center; color: var(--muted); margin: 20px 0; }

/* Telegram */
.tg-app { text-align: center; padding: 40px 0; max-width: 480px; margin: 0 auto; }
.tg-app .form { text-align: left; margin: 16px auto; }
.tg-app [hidden] { display: none; }
.tg-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.storefront { background: var(--brand-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; } .storefront code { background: var(--card); padding: 2px 6px; border-radius: 6px; }

/* ---------- Совместные закупки ---------- */
.gb-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gb-card { display: flex; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 12px; color: inherit; text-decoration: none; }
.gb-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.gb-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.gb-price { font-weight: 700; color: var(--accent); }
.gb-price--big { font-size: 1.8rem; margin: 8px 0; }
.gb-price s { font-weight: 400; font-size: .85em; }
.gb-badge { background: var(--ok); color: #fff; border-radius: 8px; padding: 1px 6px; font-size: .8em; }
.gb-progress { height: 10px; background: var(--border); border-radius: 6px; overflow: hidden; margin: 6px 0 2px; }
.gb-progress span { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.gb-progress--done span { background: var(--ok); }
.gb-detail__img { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); }
.gb-orders { width: 100%; border-collapse: collapse; margin: 8px 0 16px; table-layout: fixed; overflow-wrap: break-word; }
.gb-orders th:nth-child(1) { width: 36%; }
.gb-orders th:nth-child(2) { width: 22%; }
.gb-orders td, .gb-orders th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.gb-offer { border: 2px solid var(--brand); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0; display: block; color: inherit; text-decoration: none; }
.form-extra { margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 16px; }
.form-extra summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.gb-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 340px); gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.gb-home h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.gb-home__all { font-size: .9rem; font-weight: 500; white-space: nowrap; }
.gb-home .gb-card { border: 1px solid var(--brand-border); }
/* Пока фото грузится (или не загрузилось), не показываем огромную подпись вместо него */
.card__img img, .detail__img img, .gb-card img { font-size: 0; color: transparent; }

/* ---------- Профиль: шапка, плитки разделов, компактные блоки ---------- */
.me { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.me h1 { margin: 0; font-size: 1.5rem; }
.me__text { flex: 1; min-width: 0; }
.me__edit { flex: none; }
.avatar--sm { width: 56px; height: 56px; font-size: 1.4rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 16px; }
.tile { display: flex; flex-direction: column; gap: 2px; background: var(--card); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .15s; }
.tile:hover { transform: translateY(-2px); }
.tile__icon { font-size: 1.5rem; line-height: 1; margin-bottom: 6px; }
.tile small { color: var(--muted); }
.tile__new { color: var(--accent); font-weight: 700; }
.card-block { background: var(--card); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 12px; box-shadow: var(--shadow); }
.card-block h2 { margin: 0 0 8px; font-size: 1.1rem; }
.card-block p { margin: 6px 0; }
.card-block--row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.card-block .storefront { margin: 8px 0 0; }
.links-row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.biz-hint { margin: 4px 0 12px; }
.settings { background: var(--card); border-radius: var(--radius); padding: 12px 18px; margin: 0 0 12px; }
.settings summary { cursor: pointer; font-weight: 600; }
.settings__list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.logout { margin: 8px 0 24px; }
@media (max-width: 700px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { padding: 12px 14px; }
}

/* Категория в два шага: «Еда» → «Молочное» */
.cat-steps { display: contents; }
.form .cat-steps select + select { margin-top: 8px; }

/* ---------- Мои объявления: вкладки и карточки ---------- */
.my-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.my-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 14px; }
.my-tabs a { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; white-space: nowrap; }
.my-tabs a b { color: var(--muted); font-weight: 600; margin-left: 4px; }
.my-tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.my-tabs a.active b { color: #fff; }
.my-item { display: flex; gap: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin: 0 0 10px; }
.my-item--off .my-item__img { opacity: .55; }
.my-item__img { flex: none; width: 112px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; font-size: 2rem; text-decoration: none; }
.my-item__img img { width: 100%; height: 100%; object-fit: cover; font-size: 0; }
.my-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.my-item__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.my-item__title { font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-item__price { flex: none; }
.my-item__status { font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.my-item__stats { font-size: .85rem; }
.my-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.my-item__hint { font-size: .85rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot--ok { background: var(--ok); } .dot--wait { background: #f59e0b; } .dot--bad { background: var(--danger, #dc2626); }
.btn--sm { padding: 6px 12px; font-size: .9rem; }
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more__menu { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: grid; gap: 4px; }
.more__menu form { display: grid; gap: 4px; }
.more__menu .link, .more__menu a { text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.more__menu .link:hover, .more__menu a:hover { background: var(--surface-2); }
@media (max-width: 700px) {
  .my-item { gap: 10px; padding: 10px; }
  .my-item__img { width: 84px; height: 84px; }
  .my-item__top { flex-direction: column; gap: 2px; }
  .more__menu { right: 0; left: auto; max-width: calc(100vw - 48px); }
}
