/* =========================================================
   catalog/telega — публичная часть
   Цвета, шрифт заголовков и скругления задаются в админке
   (Настройки → Внешний вид) через CSS-переменные в <head>.
   ========================================================= */

:root {
  --lime: #C6F23A; --on-lime: #0C0D0F; --link: #C6F23A;
  --lime-soft: rgba(198,242,58,.12); --lime-line: rgba(198,242,58,.45);
  --bg: #0C0D0F; --bg2: #121418; --panel: #181B20; --panel2: #1F2329;
  --line: #262A31; --line2: #363B44;
  --ink: #F2F3EE; --ink2: #D6D9DE; --muted: #9AA0AA;
  --hot: #FF8A4C; --on-hot: #1A0B03; --red: #FF6B6B; --ok: #3DDC84;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --f-display: "Dela Gothic One", "Arial Black", sans-serif; --fw-display: 400; --tt-display: uppercase;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 10px; --gut: 16px; --tabbar: 64px; --wrap: 1280px;
}
[data-theme="light"] {
  --bg: #F4F4EF; --bg2: #FFFFFF; --panel: #ECEDE6; --panel2: #E3E5DD;
  --line: #DEE0D8; --line2: #C8CBC1;
  --ink: #121316; --ink2: #2A2D33; --muted: #5C616B;
  --hot: #E8590C; --on-hot: #FFFFFF; --red: #C92A2A; --ok: #2B8A3E;
  --shadow: 0 10px 30px rgba(20,22,26,.10);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
@media (min-width: 960px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, p, li, dd, dt, span, a, b { overflow-wrap: break-word; }
.ic { flex: none; display: block; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--on-lime); padding: 8px 12px; z-index: 200; border-radius: var(--r); }
.skip:focus { left: 8px; }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum"; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.narrow { max-width: 820px; }
.narrow-left { max-width: 640px; }
@media (min-width: 700px) { :root { --gut: 28px; } }
@media (max-width: 559px) { .hide-sm { display: none; } }

/* ---------- Типографика ---------- */
.display {
  font-family: var(--f-display); font-weight: var(--fw-display); text-transform: var(--tt-display);
  letter-spacing: -.01em; line-height: 1.04; hyphens: manual; overflow-wrap: normal; word-break: normal;
  text-wrap: balance;
}
.eyebrow { margin: 0 0 12px; font-size: 13px; color: var(--muted); letter-spacing: .01em; }
.h2 { font-family: var(--f-display); font-weight: var(--fw-display); text-transform: var(--tt-display); font-size: clamp(22px, 5vw, 32px); line-height: 1.1; letter-spacing: -.01em; }
.h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.lead { font-size: 17px; color: var(--muted); max-width: 720px; margin-top: 10px; }
.page-h1 { font-size: clamp(28px, 7vw, 54px); margin-bottom: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none !important;
  white-space: nowrap; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; position: relative;
}
.btn .ic { transition: transform .2s; }
.btn:hover .ic { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-lime { background: var(--lime); color: var(--on-lime); box-shadow: 0 0 0 0 var(--lime-line); }
.btn-lime:hover { color: var(--on-lime); box-shadow: 0 0 0 4px var(--lime-soft); filter: brightness(1.06); }
.btn-ink { background: #0C0D0F; color: #F2F3EE; }
.btn-ink:hover { color: #fff; background: #23262C; }
.btn-outline-ink { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline-ink:hover { background: rgba(0,0,0,.08); color: inherit; }
.btn-ghost { border-color: var(--line2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--panel); color: var(--ink); }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn-danger:hover { color: var(--red); background: rgba(255,107,107,.08); }
@media (prefers-reduced-motion: reduce) { .btn, .btn .ic, .vcard, .qbtn { transition: none !important; } }

/* ---------- Объявление и шапка ---------- */
.announce { background: var(--lime); color: var(--on-lime); font-size: 14px; font-weight: 600; }
.announce-in { display: flex; justify-content: center; align-items: center; min-height: 38px; text-align: center; padding-top: 6px; padding-bottom: 6px; }
.announce a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }

.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; text-decoration: none !important; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); border-radius: calc(var(--r) * .8); transform: rotate(-6deg); }
.logo-word { font-family: var(--f-mono); font-weight: 700; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-word b { color: var(--lime); }
[data-theme="light"] .logo-word b { color: var(--link); }
.top-search { display: none; flex: 1 1 240px; max-width: 420px; position: relative; }
.top-search input { width: 100%; height: 42px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg2); padding: 0 44px 0 14px; }
.top-search input:focus { border-color: var(--lime); outline: none; }
.top-search button { position: absolute; right: 0; top: 0; width: 44px; height: 42px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.top-nav { display: none; align-items: center; gap: 2px; margin-left: auto; }
.top-nav a:not(.btn) { color: var(--ink2); padding: 10px 11px; border-radius: var(--r); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.top-nav a:not(.btn):hover, .top-nav a[aria-current] { background: var(--panel); color: var(--ink); }
.top-nav .nav-accent { color: var(--link) !important; }
.top-nav .nav-add { margin-left: 6px; }
.icon-link { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink); flex: none; }
.icon-link:hover { border-color: var(--lime); color: var(--lime); }
.burger { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); background: none; border-radius: var(--r); display: grid; place-content: center; gap: 5px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.top-nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; padding: 4px 0 14px; order: 10; }
.top-nav.open a:not(.btn) { background: var(--panel); text-align: center; padding: 12px; }
.top-nav.open .nav-add { grid-column: 1 / -1; margin: 4px 0 0; min-height: 48px; }
@media (min-width: 960px) {
  .top-search { display: block; }
  .top-nav { display: flex; }
  .burger { display: none; }
  .icon-link { margin-left: 0; order: 5; }
}
@media (min-width: 960px) and (max-width: 1180px) { .top-nav a:not(.btn) { padding: 10px 8px; font-size: 14px; } .nav-add span { display: none; } }

.flash { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--panel); }
.flash-ok { border-color: var(--lime-line); }
.flash-error { border-color: var(--red); }

/* ---------- Первый экран ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 32px; }
.hero-grid > * { min-width: 0; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-top: 56px; padding-bottom: 56px; align-items: center; } .hero-grid.no-day { grid-template-columns: minmax(0, 1fr); } }
.hero-h1 { font-size: clamp(30px, 8.6vw, 92px); }
@media (min-width: 1000px) { .hero-h1 { font-size: clamp(44px, 5.4vw, 88px); } }
.hero-search { display: flex; margin-top: 24px; max-width: 680px; border: 2px solid var(--lime); border-radius: calc(var(--r) + 2px); background: var(--bg2); overflow: hidden; }
.hero-search input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; padding: 0 16px; font-size: 17px; outline: none; }
.hero-search .btn { border-radius: 0; min-height: 56px; padding: 0 20px; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; max-width: 680px; }
@media (min-width: 640px) { .quick { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.qbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 74px; padding: 8px 4px; border: 1px solid var(--line2); border-radius: var(--r); color: var(--ink); background: var(--bg2); font-size: 13px; font-weight: 600; line-height: 1.15; text-align: center; text-decoration: none !important; transition: border-color .15s, transform .15s, background .15s; }
.qbtn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qbtn .ic { color: var(--link); transition: transform .25s; }
.qbtn:hover { border-color: var(--lime); color: var(--ink); transform: translateY(-2px); background: var(--panel); }
.qbtn:hover .ic { transform: scale(1.12) rotate(-8deg); }
.qbtn-main { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.qbtn-main .ic { color: var(--on-lime); }
.qbtn-main:hover { background: var(--lime); color: var(--on-lime); filter: brightness(1.06); }
.qbtn-main:hover .ic { transform: rotate(180deg); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; max-width: 680px; }
.hero-stats div { border-top: 1px solid var(--line2); padding-top: 10px; min-width: 0; }
.hero-stats dt { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stats dd { margin: 2px 0 0; font-size: clamp(22px, 5.5vw, 32px); font-weight: 700; line-height: 1.2; }

.day { background: var(--lime); color: var(--on-lime); border-radius: calc(var(--r) + 4px); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.day a:not(.btn) { color: var(--on-lime); }
.day-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.day-top { display: flex; gap: 14px; align-items: center; min-width: 0; }
.day-ava { width: 76px; height: 76px; flex: none; border-radius: var(--r); overflow: hidden; background: #0C0D0F; color: var(--lime); display: grid; place-items: center; font: var(--fw-display) 32px var(--f-display); }
.day-ava img { width: 100%; height: 100%; object-fit: cover; }
.day-head { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.day-title { font-family: var(--f-display); font-weight: var(--fw-display); text-transform: var(--tt-display); font-size: 20px; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.day-meta { font-size: 13px; opacity: .8; }
.day-desc { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ticker { border-top: 1px solid var(--line); background: var(--bg2); overflow: hidden; }
.ticker-in { display: flex; width: max-content; animation: tick 45s linear infinite; }
.ticker:hover .ticker-in { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; gap: 18px; padding: 12px 9px; white-space: nowrap; }
.ticker-set a { color: var(--ink); font-family: var(--f-mono); font-size: 14px; }
.ticker-set a:hover { color: var(--link); }
.ticker-set i { color: var(--lime); font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-in { animation: none; } .ticker { overflow-x: auto; } }

/* ---------- Блоки ---------- */
.block { margin-top: 44px; }
@media (min-width: 900px) { .block { margin-top: 68px; } }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 40px; }
.block-head .h2 { min-width: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; white-space: nowrap; flex: none; }

/* ---------- Вертикальные карточки (закрепы) ---------- */
.vcards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); scrollbar-width: thin; }
.vcards::-webkit-scrollbar { height: 4px; }
.vcards::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
@media (min-width: 640px) { .vcards { grid-auto-columns: minmax(170px, 30%); } }
@media (min-width: 960px) { .vcards { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin-right: 0; padding-right: 0; } }
.vcard { scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); background: var(--bg2); color: var(--ink); overflow: hidden; text-decoration: none !important; transition: transform .15s, border-color .15s, box-shadow .15s; min-width: 0; }
.vcard:hover { transform: translateY(-3px); border-color: var(--lime-line); box-shadow: var(--shadow); color: var(--ink); }
.vcard-pin { border-color: var(--lime-line); }
.vcard-hl { background: var(--lime-soft); }
.vcard-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--panel); overflow: hidden; }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.vcard:hover .vcard-img img { transform: scale(1.04); }
.vcard-ini { position: absolute; inset: 0; display: grid; place-items: center; font: var(--fw-display) 52px var(--f-display); color: var(--lime); }
.vcard-badges { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.vcard-badges .tag { display: inline-flex; align-items: center; gap: 3px; backdrop-filter: blur(4px); }
.vcard-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; min-width: 0; }
.vcard-title { font-weight: 700; font-size: 15px; line-height: 1.25; height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard-foot { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); min-width: 0; }
.vcard-foot b { color: var(--ink); font-size: 14px; flex: none; }
.vcard-foot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard-cta { border-style: dashed; background: transparent; }
.vcard-plus { position: absolute; inset: 0; display: grid; place-items: center; color: var(--link); }
.vcard-cta .vcard-img { background: var(--lime-soft); }

/* ---------- Указатель категорий ---------- */
.cat-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .cat-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cat-index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-index li { border-bottom: 1px solid var(--line); min-width: 0; }
.cat-index a { display: flex; align-items: center; gap: 10px; min-height: 52px; color: var(--ink); padding: 6px 4px; text-decoration: none; }
.cat-index a:hover { color: var(--link); }
.cat-n { width: 26px; flex: none; font-size: 12px; color: var(--muted); }
.cat-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-cnt { flex: none; min-width: 32px; text-align: right; font-size: 13px; color: var(--muted); }
.cat-adult .cat-n { color: var(--hot); }
.cat-index.collapsed .cat-extra { display: none; }
.btn-more { width: 100%; margin-top: 12px; justify-content: space-between; }
.btn-more span { flex: 1; text-align: left; }
.btn-more[aria-expanded="true"] .ic:last-child { transform: rotate(180deg); }
@media (min-width: 960px) { .cat-index.collapsed .cat-extra { display: block; } .btn-more { display: none !important; } }

/* ---------- Строки каналов ---------- */
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.cols2 > * { min-width: 0; }
@media (min-width: 1000px) { .cols2:not(.cols1) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px; column-gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); transition: background .15s; }
.row:hover { background: var(--bg2); }
.row-n { display: none; }
.row-ava { width: 56px; height: 56px; border-radius: var(--r); overflow: hidden; background: var(--panel); display: grid; place-items: center; font: var(--fw-display) 22px var(--f-display); color: var(--lime); align-self: start; }
.row-ava img { width: 100%; height: 100%; object-fit: cover; }
.row-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-title { font-size: 16px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-title a { color: var(--ink); text-decoration: none; }
.row-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.row:hover .row-title a { color: var(--link); }
.row-sub { display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--muted); min-width: 0; white-space: nowrap; }
.row-sub > span { overflow: hidden; text-overflow: ellipsis; }
.row-sub .mono { flex: 0 1 auto; max-width: 60%; }
.row-cat { flex: 1 1 auto; min-width: 0; }
.row-cat::before { content: "·"; margin-right: 8px; }
.row-desc { display: none; color: var(--muted); font-size: 14px; line-height: 1.45; }
.row-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.row-subs b { color: var(--ink); font-size: 14px; }
.row-go { position: relative; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: var(--r); color: var(--ink); transition: background .15s, transform .15s; }
.row-go:hover { background: var(--lime); border-color: var(--lime); color: var(--on-lime); transform: rotate(-6deg); }
.row-promo { background: linear-gradient(90deg, var(--lime-soft), transparent 70%); }
.row-hl { background: var(--lime-soft); box-shadow: inset 3px 0 0 var(--lime); }
@media (min-width: 760px) {
  .rows-wide .row, .list-main .row { grid-template-columns: 28px 64px minmax(0, 1fr) 48px; column-gap: 16px; padding: 16px 8px; }
  .list-main .row-n, .rows-wide .row-n { display: block; font-size: 12px; color: var(--muted); }
  .list-main .row-ava { width: 64px; height: 64px; }
  .list-main .row-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

.tag { display: inline-flex; align-items: center; height: 22px; font-family: var(--f-mono); font-size: 11px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); text-transform: lowercase; white-space: nowrap; line-height: 1; }
.tag-chat { color: #5BB8F0; border-color: rgba(91,184,240,.4); }
.tag-bot { color: #B08CFF; border-color: rgba(176,140,255,.4); }
.tag-adult { color: var(--on-hot); background: var(--hot); border-color: var(--hot); font-weight: 700; }
.tag-promo { color: var(--on-lime); background: var(--lime); border-color: var(--lime); font-weight: 700; }

/* Размытие 18+ до подтверждения возраста */
.is-adult img { filter: blur(14px) saturate(.6); transform: scale(1.2); }
.age-ok .is-adult img { filter: none; transform: none; }

/* ---------- Блок «Есть канал?» ---------- */
.cta { background: var(--lime); color: var(--on-lime); border-radius: calc(var(--r) + 6px); padding: 26px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 44px; } }
.cta .eyebrow { color: inherit; opacity: .7; }
.cta-h { font-size: clamp(26px, 6vw, 48px); }
.cta-text p:last-child { margin-top: 12px; max-width: 560px; }
.cta-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 480px) { .cta-actions { grid-template-columns: repeat(2, auto); } }

.seo-text { color: var(--muted); max-width: 860px; font-size: 15px; }
.seo-text > * + * { margin-top: 12px; }
.seo-text h2, .seo-text h3 { color: var(--ink); font-size: 20px; }

/* ---------- Списки (категория, поиск) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; color: var(--muted); margin: 20px 0 16px; min-width: 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }
.crumbs [aria-current] { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-head { margin-bottom: 18px; }
.list-h1 { font-size: clamp(28px, 7vw, 56px); }
.list-lead { color: var(--muted); margin-top: 10px; }
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.list-layout > * { min-width: 0; }
@media (min-width: 1000px) { .list-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none !important; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.list-side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .list-side { position: sticky; top: 84px; } }
.side-box { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--bg2); }
.side-t { display: block; margin-bottom: 8px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); font-weight: 500; }
.side-list { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow: auto; }
.side-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 8px; color: var(--ink); font-size: 14px; border-radius: calc(var(--r) * .7); text-decoration: none; }
.side-list a:hover, .side-list a[aria-current] { background: var(--panel); color: var(--link); }
.side-list span { color: var(--muted); font-size: 12px; flex: none; }
.side-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--lime); color: var(--on-lime); text-decoration: none !important; }
.side-cta .ic { grid-row: span 2; }
.side-cta:hover { color: var(--on-lime); filter: brightness(1.05); }
.side-cta span { font-size: 14px; }
@media (max-width: 999px) { .list-side .side-box { display: none; } }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: var(--r); color: var(--ink); font-family: var(--f-mono); font-size: 14px; text-decoration: none; }
.pager a:hover { border-color: var(--lime); color: var(--link); }
.pager .cur { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---------- Карточка канала ---------- */
.ch { border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: 20px; background: var(--bg2); }
.ch-hl { border-color: var(--lime); }
@media (min-width: 800px) { .ch { padding: 32px; } }
.ch-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 700px) { .ch-top { grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 32px; } }
.ch-ava { width: 120px; height: 120px; border-radius: calc(var(--r) + 6px); overflow: hidden; background: var(--panel); display: grid; place-items: center; font: var(--fw-display) 56px var(--f-display); color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
@media (min-width: 700px) { .ch-ava { width: 168px; height: 168px; } }
.ch-ava img { width: 100%; height: 100%; object-fit: cover; }
.ch-head { min-width: 0; }
.ch-h1 { font-size: clamp(26px, 6vw, 48px); overflow-wrap: anywhere; }
.ch-handle { color: var(--muted); margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 600px) { .ch-actions { display: flex; flex-wrap: wrap; align-items: stretch; } }
.icon-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
@media (min-width: 600px) { .icon-btns { display: flex; } }
.ibtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 80px; height: 54px; padding: 4px 10px; border: 1px solid var(--line2); border-radius: var(--r); background: transparent; color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: border-color .15s, color .15s, transform .15s; }
.ibtn:hover { border-color: var(--lime); color: var(--link); transform: translateY(-2px); }
.ibtn-hot { border-color: var(--lime-line); color: var(--link); }
.ibtn.done { border-color: var(--lime); background: var(--lime); color: var(--on-lime); }
.ch-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 26px 0; }
@media (min-width: 800px) { .ch-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ch-stats div { background: var(--bg2); padding: 14px 16px; min-width: 0; }
.ch-stats dt { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-stats dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-desc { max-width: 760px; font-size: 16px; overflow-wrap: anywhere; }
.ch-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Формы ---------- */
.ch-form { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.f-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f-row > label, .f-label { font-weight: 600; font-size: 14px; }
.f-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) { .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ch-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .ch-form select, .ch-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--bg2); font-size: 16px;
}
.ch-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.ch-form textarea { resize: vertical; min-height: 140px; }
.ch-form input:focus, .ch-form select:focus, .ch-form textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.f-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.f-inline input { flex: 1 1 220px; }
.f-inline .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .f-inline .btn { flex: 0 0 auto; } }
.f-hint { font-size: 13px; color: var(--muted); }
.f-err { font-size: 13px; color: var(--red); }
.f-group { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.f-group legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.f-admin { border-color: var(--lime-line); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg-item { display: block; }
.seg-item input { position: absolute; opacity: 0; }
.seg-item span { display: flex; align-items: center; justify-content: center; height: 46px; border: 1px solid var(--line2); border-radius: var(--r); cursor: pointer; font-weight: 600; }
.seg-item input:checked + span { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.seg-item input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lime); flex: none; }
.photo-pick { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-prev { width: 96px; height: 96px; flex: none; border-radius: var(--r); border: 1px dashed var(--line2); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 12px; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.f-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 559px) { .f-actions .btn { width: 100%; } }
.danger-zone { margin: 36px 0; padding-top: 20px; border-top: 1px solid var(--line); }

.auth { display: grid; place-items: center; padding-top: 32px; padding-bottom: 40px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-h { font-size: clamp(30px, 8vw, 46px); }
.auth-alt { margin-top: 20px; color: var(--muted); text-align: center; }

/* ---------- Кабинет ---------- */
.my-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 24px; }
.my-head > div:first-child { min-width: 0; }
.my-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.my-actions form { margin: 0; }
.my-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 16px; }
@media (min-width: 800px) { .my-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.my-card { border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg2); min-width: 0; }
.my-card-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.my-card-top .row-ava { width: 48px; height: 48px; font-size: 20px; flex: none; align-self: center; }
.my-card-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.my-card-t a { color: var(--ink); }
.my-card-t b, .my-card-t .mono { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-card-t .mono { font-size: 12px; }
.my-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.my-stats div { background: var(--panel); border-radius: calc(var(--r) * .8); padding: 8px 10px; min-width: 0; }
.my-stats dt { font-size: 12px; color: var(--muted); }
.my-stats dd { margin: 0; font-weight: 700; }
.my-promos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.my-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.st { font-family: var(--f-mono); font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; flex: none; }
.st-ok { background: var(--lime); color: var(--on-lime); }
.st-wait { background: rgba(255,214,107,.15); color: #E0B23A; }
.st-bad { background: rgba(255,107,107,.15); color: var(--red); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin-top: 16px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.tbl th, .tbl td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 500; font-size: 13px; }

/* ---------- Тарифы ---------- */
.feat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 24px; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feat { background: var(--bg2); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.feat span { color: var(--muted); font-size: 14px; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { position: relative; border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg2); min-width: 0; }
.plan form, .plan > .btn { margin-top: auto; }
.plan-hot { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.plan-hot .plan-days, .plan-hot .plan-note, .plan-hot s { color: inherit; opacity: .7; }
.plan-badge { position: absolute; top: 14px; right: 14px; font-size: 11px; background: #0C0D0F; color: var(--lime); padding: 3px 8px; border-radius: 6px; }
.plan-name { font-size: 18px; padding-right: 76px; line-height: 1.3; }
.plan-days { color: var(--muted); font-size: 13px; }
.plan-price { margin-top: 4px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.plan-price b { font-size: 30px; line-height: 1.1; }
.plan-price s { color: var(--muted); }
.plan-note { color: var(--muted); font-size: 14px; }
.plan-feats { list-style: none; padding: 0; margin: 4px 0 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.plan-feats li::before { content: "→ "; font-family: var(--f-mono); }
.pay-info { margin-top: 20px; max-width: 760px; }

.page-empty { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.page-empty h1 { font-size: clamp(32px, 8vw, 72px); }

/* ---------- Подвал ---------- */
.foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--bg2); }
.foot-in { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 340px; }
.foot-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.foot-col b { font-family: var(--f-mono); font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.foot-col a { color: var(--ink); font-size: 14px; padding: 6px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-col a:hover { color: var(--link); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-bottom: 24px; color: var(--muted); font-size: 13px; }

/* ---------- Нижнее меню (телефон) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg2) 96%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none; min-width: 0; }
.tabbar a > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar a[aria-current] { color: var(--link); }
.tab-plus { width: 40px; height: 32px; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); border-radius: calc(var(--r) * .9); }
.tabbar .tab-add { color: var(--ink); }
@media (min-width: 960px) { .tabbar { display: none; } }

.to-top { position: fixed; right: 14px; bottom: calc(var(--tabbar) + 14px + env(safe-area-inset-bottom)); z-index: 45; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: color-mix(in srgb, var(--bg2) 90%, transparent); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; backdrop-filter: blur(8px); }
.to-top:hover { transform: translateY(-3px); border-color: var(--lime); color: var(--link); }
.to-top[hidden] { display: none; }
@media (min-width: 960px) { .to-top { bottom: 24px; right: 24px; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--r); font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); }
.toast[hidden] { display: none; }
@media (min-width: 960px) { .toast { bottom: 28px; } }

/* ---------- Окно 18+ и поиск на телефоне ---------- */
.age-modal { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.86); display: grid; place-items: center; padding: 16px; }
.age-modal[hidden] { display: none; }
.age-box { max-width: 420px; width: 100%; background: var(--panel); border: 1px solid var(--line2); border-radius: calc(var(--r) + 6px); padding: 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.age-box h2 { font-family: var(--f-display); font-weight: var(--fw-display); text-transform: var(--tt-display); font-size: 24px; line-height: 1.15; }
.age-box p { color: var(--muted); }
.age-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; width: 100%; }
.m-search { position: fixed; inset: 0; z-index: 70; background: var(--bg); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.m-search[hidden] { display: none; }
.m-search form { display: flex; gap: 8px; }
.m-search input { flex: 1; min-width: 0; height: 52px; border: 2px solid var(--lime); border-radius: var(--r); background: var(--bg2); padding: 0 14px; font-size: 17px; outline: none; }

/* Переменные формы карточки (assets/css/form.css) */
:root { --cf-card: var(--bg2); --cf-panel: var(--panel); --cf-input: var(--bg); --cf-line: var(--line); --cf-line2: var(--line2); --cf-ink: var(--ink); --cf-muted: var(--muted); --cf-accent: var(--lime); --cf-on-accent: var(--on-lime); --cf-accent-text: var(--link); --cf-accent-line: var(--lime-line); --cf-accent-soft: var(--lime-soft); --cf-red: var(--red); --cf-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { :root { --cf-bottom: 0px; } }
[data-theme="light"] { --cf-input: #FFFFFF; --cf-card: #FFFFFF; }

/* ---------- Категории плитками ---------- */
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 1240px) { .cats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cats li { min-width: 0; }
.cats.collapsed .cat-extra { display: none; }
.cat { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); color: var(--ink); text-decoration: none !important; transition: border-color .15s, transform .15s, background .15s; min-width: 0; }
.cat:hover { border-color: hsl(var(--h) 70% 60% / .6); transform: translateY(-2px); background: var(--panel); color: var(--ink); }
.cat-badge { width: 38px; height: 38px; flex: none; border-radius: calc(var(--r) * .8); display: grid; place-items: center; font-weight: 800; font-size: 16px; background: hsl(var(--h) 70% 55% / .16); color: hsl(var(--h) 80% 70%); }
[data-theme="light"] .cat-badge { background: hsl(var(--h) 70% 50% / .14); color: hsl(var(--h) 70% 32%); }
.cat-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.cats .cat-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cats .cat-cnt { font-size: 11px; color: var(--muted); margin-top: 3px; text-align: left; min-width: 0; }
.cat-adult { border-color: rgba(255,138,76,.4); }
.cats + .btn-more { display: flex !important; }

/* ---------- Мои каналы ---------- */
.my-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 18px 0 14px; }
.my-bar .chips { flex: 1 1 auto; min-width: 0; }
.chip .mono { font-size: 12px; margin-left: 6px; }
.chip.on .mono { color: inherit; opacity: .6; }
.my-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.my-search input { width: 100%; height: 42px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--bg2); padding: 0 44px 0 14px; }
.my-search input:focus { outline: none; border-color: var(--lime); }
.my-search button { position: absolute; right: 0; top: 0; width: 44px; height: 42px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
@media (max-width: 559px) { .my-search { max-width: none; } }
.my-card-top .row-ava { width: 52px; height: 52px; }
.my-promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.my-promo select { width: 100%; min-width: 0; height: 44px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--bg); color: var(--ink); padding: 0 36px 0 12px; font-size: 14px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 19px, calc(100% - 14px) 19px; background-size: 5px 5px; background-repeat: no-repeat; text-overflow: ellipsis; }
.my-promo select:focus { outline: none; border-color: var(--lime); }
.my-promo .btn { min-height: 44px; padding: 0 16px; }
.req-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 14px; }
.req { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.req:last-child { border-bottom: 0; }
.req-t { display: flex; flex-direction: column; min-width: 0; }
.req-t b, .req-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-t span { font-size: 13px; }
.req-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.my-settings summary { list-style: none; cursor: pointer; }
.my-settings summary::-webkit-details-marker { display: none; }
.my-settings[open] summary .ic:last-child { transform: rotate(180deg); }
.my-settings .ch-form { max-width: 640px; }
@media (min-width: 600px) { .f-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- правки после проверки на ПК и телефоне --- */
@media (min-width: 960px) { .vcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .vcards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat { height: auto; min-height: 64px; padding: 10px 12px; }
.cats .cat-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
@media (max-width: 559px) { .row-cat { display: none; } .row-sub .mono { max-width: 100%; } }
main.wrap > .eyebrow:first-child, main.wrap > .my-head:first-child { margin-top: 24px; }
@media (max-width: 639px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feat { padding: 14px; } .feat span { font-size: 13px; } }
@media (min-width: 960px) { .icon-link { display: none; } .top-in { flex-wrap: nowrap; } .top-search { flex: 1 1 200px; } }
@media (min-width: 960px) and (max-width: 1360px) { .top-nav a:not(.btn) { padding: 10px 8px; font-size: 14px; } .nav-add span { display: none; } .nav-add { padding: 0 12px; } }
/* бегущая строка: скорость не зависит от числа пунктов, текст в одну строку */
.ticker-set { flex: none; }
.ticker-set a { max-width: 420px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }

/* Первый экран без «Канала дня» — по центру */
.hero-grid.no-day { justify-items: center; text-align: center; }
.hero-grid.no-day .hero-left { width: 100%; max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.hero-grid.no-day .hero-search, .hero-grid.no-day .quick, .hero-grid.no-day .hero-stats { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; }
.hero-grid.no-day .hero-stats div { text-align: center; }
.hero-grid.no-day .hero-h1 { font-size: clamp(30px, 8.6vw, 80px); }
/* выравнивание строк списков */
.list-main .row-n, .rows-wide .row-n { align-self: start; padding-top: 22px; }
.list-main .seo-text { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.side-list { max-height: min(60vh, 520px); -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); padding-bottom: 24px; }
@media (min-width: 1000px) { .rows-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 0; } .rows-2 .row:nth-child(-n+2) { border-top: 1px solid var(--line); } }
.list-h1, .page-h1, .ch-h1 { hyphens: none; }
.my-card-actions { margin-top: auto; }
.my-card .my-promo + .my-card-actions { margin-top: 0; }
.my-card:not(:has(.my-promo)) .my-card-actions { margin-top: auto; }
.my-head { align-items: center; }
.my-head .page-h1 { margin-bottom: 0; }
.active-box { margin-top: 18px; border: 1px solid var(--lime-line); background: var(--lime-soft); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.active-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.active-box li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
@media (max-width: 639px) { .plan { padding: 16px; } .plan-price b { font-size: 26px; } }
.lead b { color: var(--ink); }
