/* KudaBiz */
:root {
  --accent: #2f54eb;
  --accent-dark: #1d39c4;
  --hot: #fa541c;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #7a8194;
  --border: #e6e8f0;
  --ok: #237804;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(31, 41, 71, .07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 16px/1.55 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1 { font-size: 1.9rem; margin-bottom: .8em; line-height: 1.25; }
h2 { font-size: 1.4rem; margin-bottom: .7em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.page { padding: 28px 20px 56px; }
.page-narrow { max-width: 720px; }
.center { text-align: center; padding-top: 60px; }
.count { color: var(--muted); font-weight: 400; font-size: .8em; }
.empty { color: var(--muted); padding: 24px 0; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--text); letter-spacing: -.5px; white-space: nowrap; flex: none; }
.logo span { color: var(--accent); }
.logo .logo-tld { color: var(--muted); font-style: normal; font-weight: 800; }
.site-footer .logo .logo-tld { color: #aab1c7; }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 15px; flex: 1; align-items: center; }
.main-nav a { color: var(--text); font-weight: 500; white-space: nowrap; }
.nav-fav { margin-left: auto; line-height: 0; display: inline-flex; align-items: center; gap: 4px; transition: transform .12s; }
.nav-fav:hover { transform: scale(1.12); }
.nav-fav-ico { width: 27px; height: 27px; display: block; fill: #ff2d55; stroke: #ff2d55; stroke-width: 2; } /* та же форма, что на карточках, красная */
.nav-fav .fav-word { display: none; } /* на десктопе — только сердечко */
.nav-fav #favCountNav { color: var(--muted); font-weight: 600; font-size: .82rem; }
.header-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--border); color: var(--muted); background: transparent; cursor: pointer; flex: none; }
.icon-btn:hover { text-decoration: none; }
.fav-link { padding: 8.5px 12px; }
.burger { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }
.admin-bar { background: #101322; }
.admin-bar .container { display: flex; gap: 18px; padding-top: 8px; padding-bottom: 8px; }
.admin-bar a { color: #cdd4f0; font-size: .9rem; }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; border: 0; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; opacity: .92; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-danger { background: var(--hot); color: #fff; }
.btn-light { background: #fff; color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); padding: 8.5px 16px; }
.btn-block { display: block; text-align: center; margin-top: 12px; }
.btn-reg { display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: normal; line-height: 1.15; padding: 10px 14px; width: 100%; }
.btn-reg-main { font-size: 1.1rem; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.btn-reg-sub { font-size: .8rem; font-weight: 500; opacity: .92; }
.link-btn { background: none; border: 0; cursor: pointer; font-size: 1rem; color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(135deg, #1d2547 0%, #2f54eb 100%); color: #fff; padding: 64px 0; position: relative; z-index: 5; }
.hero-inner { position: relative; z-index: 2; }

/* ── Декоративная SVG-анимация в hero (справа, не мешает тексту). overflow:hidden — на самой
   анимации, чтобы её масштабируемые круги не давали горизонтальный скролл, но НЕ на .hero
   (иначе подсказки поиска обрезались бы). ── */
.hero-anim { position: absolute; top: 50%; right: 4%; transform: translateY(-50%); width: 300px; height: 260px; z-index: 1; opacity: .9; pointer-events: none; overflow: hidden; }
.hero-anim svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 1080px) { .hero-anim { opacity: .5; right: 1%; width: 240px; } }
@media (max-width: 820px) { .hero-anim { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-anim * { animation: none !important; } }

/* KudaBiz: сеть */
.ha-net .nodes circle { transform-box: fill-box; transform-origin: center; animation: haPulse 3s ease-in-out infinite; }
.ha-net .nodes circle:nth-child(2) { animation-delay: .5s; }
.ha-net .nodes circle:nth-child(3) { animation-delay: 1s; }
.ha-net .nodes circle:nth-child(4) { animation-delay: 1.5s; }
.ha-net .nodes circle:nth-child(5) { animation-delay: 2s; }
.ha-net .links line { stroke-dasharray: 6 7; animation: haDash 3s linear infinite; }
@keyframes haPulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.28); opacity: 1; } }
@keyframes haDash { to { stroke-dashoffset: -26; } }
/* KudaBiz: охват */
.ha-reach .rings circle { transform-box: fill-box; transform-origin: center; opacity: 0; animation: haRing 3s ease-out infinite; }
.ha-reach .rings circle:nth-child(2) { animation-delay: 1s; }
.ha-reach .rings circle:nth-child(3) { animation-delay: 2s; }
.ha-reach .pin { transform-box: fill-box; transform-origin: 140px 130px; animation: haBob 2.6s ease-in-out infinite; }
@keyframes haRing { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes haBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* KudaBiz: календарь */
.ha-cal .cal-days rect { opacity: .55; }
.ha-cal .cal-hot { opacity: 1; transform-box: fill-box; transform-origin: center; animation: haPulse 2.4s ease-in-out infinite; }

/* Eventomat: томат + горячие кольца */
.ha-tomato .rings circle { transform-box: fill-box; transform-origin: center; opacity: 0; animation: haRing 3.2s ease-out infinite; }
.ha-tomato .rings circle:nth-child(2) { animation-delay: 1.6s; }
.ha-tomato .tomato { transform-box: fill-box; transform-origin: 140px 132px; animation: haBob 2.8s ease-in-out infinite; }
.ha-tomato .steam path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: haSteam 2.6s ease-in-out infinite; }
.ha-tomato .steam path:nth-child(2) { animation-delay: .4s; }
.ha-tomato .steam path:nth-child(3) { animation-delay: .8s; }
@keyframes haSteam { 0% { stroke-dashoffset: 40; opacity: 0; } 40% { opacity: .8; } 100% { stroke-dashoffset: -10; opacity: 0; } }
/* Eventomat: автомат выдаёт билеты */
.ha-machine .tickets { transform-box: fill-box; transform-origin: center; animation: haTicket 2.8s ease-in-out infinite; }
@keyframes haTicket { 0%,100% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 60% { transform: translateY(34px); opacity: 1; } 90% { transform: translateY(48px); opacity: 0; } }
/* Eventomat: орбита событий */
.ha-orbit .spin { transform-box: fill-box; transform-origin: 140px 130px; animation: haSpin 9s linear infinite; }
.ha-orbit .tomato { transform-box: fill-box; transform-origin: 140px 130px; animation: haBob 3s ease-in-out infinite; }
@keyframes haSpin { to { transform: rotate(360deg); } }
.hero h1 { font-size: 2.4rem; max-width: 760px; }
.hero-sub { opacity: .85; max-width: 640px; margin-bottom: 26px; }
.hero-search { display: flex; gap: 10px; max-width: 820px; background: #fff; padding: 8px; border-radius: 14px; align-items: stretch; }
/* поле поиска — широкое (растягивается), город и кнопка — компактные */
.hero-field { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.hero-field input[type=search] { width: 100%; border: 0; padding: 12px 14px; font: inherit; outline: none; min-width: 0; background: transparent; }
.hero-search select { flex: 0 0 auto; width: auto; max-width: 168px; border: 0; background: var(--bg); border-radius: 8px; padding: 0 8px; font: inherit; cursor: pointer; }
.hero-search .btn { flex: 0 0 auto; }
.hero-chips { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-chips a { color: #fff; background: rgba(255,255,255,.14); padding: 6px 14px; border-radius: 999px; font-size: .9rem; cursor: pointer; transition: background .12s, color .12s; }
.hero-chips a.active { background: #fff; color: var(--accent); font-weight: 700; }

/* Автоподсказки поиска (в стиле Яндекса) */
.ac-box { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: 0 10px 34px rgba(0,0,0,.20); overflow: hidden; z-index: 50; max-height: 380px; overflow-y: auto; text-align: left; }
.ac-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 15px; color: var(--text); border-bottom: 1px solid var(--border); }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover { background: var(--bg); text-decoration: none; }
.ac-t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-c { color: var(--muted); font-size: .85rem; white-space: nowrap; flex: none; }

.btn-linklike { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-weight: 600; padding: 0; }
.btn-linklike:hover { text-decoration: underline; }
#liveGrid .empty { padding: 30px 0; }

/* Sections */
.section { padding: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.section-featured { background: linear-gradient(180deg, #fffdf4, var(--bg)); }
.cta-strip { background: var(--accent); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }

/* Grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.card { position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
/* Избранное (клиентское, в браузере; на приоритет каталога не влияет) — стиль как на маркетплейсах */
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 3; border: 0; background: none; padding: 4px; cursor: pointer; line-height: 0; transition: transform .12s; }
.fav-btn svg { width: 30px; height: 30px; display: block; fill: rgba(255,255,255,.35); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); transition: fill .12s, stroke .12s; }
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.is-fav svg { fill: #ff2d55; stroke: #ff2d55; } /* красное = в избранном (промо авто-добавляется, но снимается вручную) */
.card-wide .fav-btn { top: 12px; right: 12px; }
.event-head { display: flex; align-items: flex-start; gap: 14px; }
.event-head h1 { flex: 1; margin-bottom: .6em; }
.event-fav { position: static; flex: none; padding: 6px; }
.event-fav svg { width: 38px; height: 38px; fill: #f0f1f5; stroke: #b8bdcc; }
.event-fav.is-fav svg { fill: #ff2d55; stroke: #ff2d55; }
.card:hover { transform: translateY(-3px); }
.card--highlight { outline: 2px solid #faad14; background: #fffbea; }
.card-img { position: relative; display: block; aspect-ratio: 16/9; background: #eceef5; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.4rem; opacity: .4; }
.badge { position: absolute; top: 10px; left: 10px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #fff; }
.badge-pin { background: var(--accent); }
.badge-hot { background: var(--hot); top: auto; bottom: 10px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); gap: 8px; }
.card-cat { color: var(--accent); font-weight: 600; }
.card-title { font-size: 1.02rem; line-height: 1.35; flex: 1; }
.card-title a { color: var(--text); }
.card-bottom { display: flex; justify-content: space-between; font-size: .87rem; color: var(--muted); }
.card-price { font-weight: 700; color: var(--text); }

/* Featured («Рекомендуем»), 1–3 оплаченных: карточки-афиши без описания, во всю ширину блока.
   Афиша показывается целиком (contain), пустоты по краям заполняет размытая копия — ничего не обрезается. */
.featured-grid { display: grid; gap: 20px; }
.feat-1 { grid-template-columns: 1fr; }
.feat-2 { grid-template-columns: 1fr 1fr; }
.feat-3 { grid-template-columns: repeat(3, 1fr); }
.card-feat { outline: 2px solid #faad14; outline-offset: -2px; background: #fffdf4; }
.card-feat .card-body { padding: 13px 18px 16px; gap: 8px; }
.card-feat .card-title { font-size: 1.08rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-feat .card-bottom { font-size: .9rem; }
.card-feat-btn { align-self: stretch; text-align: center; margin-top: 4px; padding: 9px 18px; }

.feat-poster .card-feat .card-img { aspect-ratio: auto; height: 220px; position: relative; overflow: hidden; background: #eee; }
.feat-poster .card-feat .card-img::before { content: ''; position: absolute; inset: 0; background-image: var(--poster); background-size: cover; background-position: center; filter: blur(18px) brightness(.92); transform: scale(1.12); }
.feat-poster .card-feat .card-img img { position: relative; z-index: 1; object-fit: contain; }

@media (max-width: 900px) {
  .feat-2, .feat-3 { grid-template-columns: 1fr; }
}

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cat-tile { display: flex; justify-content: space-between; background: var(--card); padding: 14px 18px; border-radius: 10px; box-shadow: var(--shadow); color: var(--text); font-weight: 600; }
.cat-tile small { color: var(--muted); }
.cat-tile:hover { text-decoration: none; outline: 2px solid var(--accent); }

/* Filters, forms */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--card); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
/* поле поиска — широкое (растягивается), остальные фильтры компактные; всё в одну строку на десктопе */
.filter-field { position: relative; flex: 1 1 200px; min-width: 160px; display: flex; }
.filter-field input[type=search] { width: 100%; }
.filters select { flex: 0 1 auto; max-width: 170px; min-width: 0; }
.filters .check { flex: 0 0 auto; white-space: nowrap; }
.filters .btn-arrow { flex: 0 0 auto; width: 46px; padding: 0; font-size: 1.35rem; line-height: 1; border-radius: 10px; }
.filters .ac-box { color: var(--text); }
@media (min-width: 900px) { .filters { flex-wrap: nowrap; } }
.filters input, .filters select, .form input, .form select, .form textarea {
  border: 1.5px solid var(--border); border-radius: 9px; padding: 9px 12px; font: inherit; background: #fff;
}
.filters input:focus, .form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent); outline: none; }
.check { display: flex; align-items: center; gap: 7px; font-size: .95rem; cursor: pointer; }
.form { display: flex; flex-direction: column; gap: 16px; background: var(--card); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .93rem; }
.form label.check { flex-direction: row; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.form-preview { max-width: 220px; border-radius: 8px; margin-top: 8px; }

/* Инлайн-валидация форм */
.field-invalid { border-color: #a8071a !important; background: #fff6f6; }
.field-err { color: #a8071a; font-size: .82rem; font-weight: 500; margin-top: 5px; }
.email-hint { margin-top: 6px; font-size: .84rem; color: #ad6800; cursor: pointer; }
.email-hint b { text-decoration: underline; }
.phone-field { position: relative; display: flex; gap: 8px; }
.phone-field input { flex: 1; min-width: 0; }
.phone-cc { flex: none; border: 1.5px solid var(--border); background: #fff; border-radius: 9px; padding: 9px 12px; font: inherit; cursor: pointer; white-space: nowrap; }
.phone-cc:hover { border-color: var(--accent); }
.phone-menu { position: absolute; top: 100%; left: 0; z-index: 30; margin-top: 4px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; min-width: 240px; }
.phone-menu-item { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 14px; font: inherit; cursor: pointer; }
.phone-menu-item:hover { background: var(--bg); }
.phone-menu-item span { color: var(--muted); }

/* Flash & statuses */
.flash { padding: 12px 18px; border-radius: 10px; margin: 16px 0; }
.flash-ok { background: #ecf9e8; color: var(--ok); }
.flash-err { background: #fff1f0; color: #a8071a; }
.flash-info { background: #e6f4ff; color: #0958d9; }
.status { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status-published { background: #ecf9e8; color: var(--ok); }
.status-pending, .status-manual { background: #fff7e6; color: #ad6800; }
.status-rejected { background: #fff1f0; color: #a8071a; }
.status-archived { background: #f0f0f0; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 8px; align-items: center; }
.tx-site { color: var(--muted); }
.amount-plus { color: var(--ok); font-weight: 700; }
.amount-minus { color: #a8071a; font-weight: 700; }

/* Event page */
.breadcrumbs { font-size: .87rem; color: var(--muted); margin-bottom: 16px; }
.event-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; /* stretch: колонка сайдбара во всю высоту, иначе sticky-карточке некуда прилипать */ }
.event-side { min-height: 100%; }
/* Обложка события: фиксированная область, вертикальная афиша вписывается целиком (contain) поверх размытого фона */
.event-cover { position: relative; height: 380px; border-radius: var(--radius); overflow: hidden; margin: 0 0 20px; background: #eceef5; }
.event-cover::before { content: ''; position: absolute; inset: 0; background-image: var(--poster); background-size: cover; background-position: center; filter: blur(22px) brightness(.9); transform: scale(1.15); }
.event-img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
@media (max-width: 640px) { .event-cover { height: 300px; } }
.event-desc { line-height: 1.55; }
.event-desc b, .event-desc strong { font-weight: 700; }
.event-desc p { margin: 0 0 .75em; }
/* абзац-«подзаголовок» (только жирный текст, напр. имя спикера) — отступ сверху больше, к своему описанию прижат */
.event-desc p:has(> b:only-child), .event-desc p:has(> strong:only-child) { margin: 1.1em 0 .15em; }
.event-desc > :first-child { margin-top: 0; }
.event-desc ul, .event-desc ol { margin: 0 0 1.3em; padding-left: 1.5em; }
.event-desc li { margin-bottom: .6em; padding-left: .2em; }
.event-desc li::marker { color: var(--accent); }
.event-desc > :first-child { margin-top: 0; }
.event-desc h3, .event-desc h4, .event-desc h5 { margin: 1.4em 0 .6em; line-height: 1.3; }
.event-desc blockquote { border-left: 3px solid var(--accent); padding-left: 14px; margin: 0 0 1em; color: var(--muted); }
.event-desc a { text-decoration: underline; }
.side-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 84px; }
.side-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.side-row:last-of-type { border-bottom: 0; }
.side-row span { font-size: 1.2rem; }

/* LK */
.lk-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.balance-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 22px; display: flex; align-items: center; gap: 16px; }
.balance-card b { font-size: 1.3rem; }
.balance-card small { color: var(--muted); }

/* Promo */
.promo-list { display: flex; flex-direction: column; gap: 14px; }
.promo-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.promo-info p { color: var(--muted); font-size: .92rem; }
.promo-buy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.promo-buy select { border: 1.5px solid var(--border); border-radius: 9px; padding: 9px 12px; font: inherit; }
.promo-hint { color: var(--muted); width: 100%; }
.pay-methods { color: var(--muted); align-self: center; }

/* Admin moderation */
.mod-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 18px; margin-bottom: 16px; }
.mod-card > img { width: 180px; height: 110px; object-fit: cover; border-radius: 8px; }
.mod-body { flex: 1; }
.mod-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mod-flags { color: #a8071a; font-size: .95rem; font-weight: 600; }
.mod-full { max-height: 280px; overflow-y: auto; background: #fafbff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin: 8px 0; font-size: .92rem; }
.mod-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.mod-actions input { border: 1.5px solid var(--border); border-radius: 9px; padding: 9px 12px; font: inherit; min-width: 260px; }

/* Pagination */
.pagination { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pagination a { background: var(--card); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.pagination a.current { background: var(--accent); color: #fff; }

/* Footer */
.site-footer { background: #101322; color: #aab1c7; margin-top: 40px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 30px 20px 0; }
.foot-tagline { margin: 0; color: #8e96ad; font-size: .88rem; max-width: 640px; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 22px 20px 20px; }
.site-footer .logo { color: #fff; }
.site-footer b { color: #fff; display: block; margin-bottom: 10px; }
.site-footer a { display: block; color: #aab1c7; margin-bottom: 6px; }
.copyright { padding: 16px 20px 28px; font-size: .85rem; border-top: 1px solid #23283d; line-height: 1.7; }
.copyright a { display: inline; color: #aab1c7; text-decoration: underline; margin: 0; }
.copyright a:hover { color: #fff; }

/* Cookie bar */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; background: #101322; color: #cdd4f0; border-radius: 14px; padding: 14px 20px; display: flex; align-items: center; gap: 18px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: .9rem; max-width: 860px; margin: 0 auto; }
.cookie-bar[hidden] { display: none; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar .btn { padding: 8px 18px; white-space: nowrap; }

/* Legal pages */
.legal-page { max-width: 860px; }
.legal-page h1 { font-size: 1.5rem; margin-bottom: .5em; }
.legal-page h2 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
.legal-page p { margin-bottom: .7em; }
.legal-page .legal-date { color: var(--muted); font-size: .9rem; margin-bottom: 1.5em; }

/* TG button + consent */
.btn-tg { background: #2aabee; color: #fff; }
.subscribe-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.subscribe-row input[type=email], .subscribe-row select { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font: inherit; background: #fff; min-width: 0; }
.subscribe-row input[type=email] { flex: 2 1 240px; }
.subscribe-row select { flex: 1 1 170px; cursor: pointer; }
/* пара кнопок «e-mail / Telegram» — равные по ширине, с «или» между */
.sub-actions { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.sub-actions .btn { flex: 1 1 0; text-align: center; justify-content: center; white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.sub-or { color: var(--muted); font-size: .9rem; flex: 0 0 auto; }
.home-sub { max-width: 880px; margin: 0 auto; }
.subscribe-box .check { align-items: flex-start; }
.subscribe-box .check input { margin-top: 3px; flex: 0 0 auto; }
@media (max-width: 640px) {
  .subscribe-row { flex-direction: column; }
  .subscribe-row input[type=email], .subscribe-row select { width: 100%; flex: 1 1 auto; }
  .sub-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .sub-or { text-align: center; }
}
.consent-check { font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: 10px; }

/* Reg + subscribe boxes on event page */
.reg-box, .subscribe-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-top: 24px; }
#regForm { scroll-margin-top: 90px; }
.reg-box h2, .subscribe-box h2 { margin-bottom: .4em; }
.reg-box p, .subscribe-box p { color: var(--muted); margin-bottom: 16px; }
.reg-box .form, .subscribe-box .form { padding: 0; box-shadow: none; background: none; margin: 0; }
.subscribe-box { background: linear-gradient(135deg, #eef3ff, #fff); border: 1.5px solid var(--border); border-left: 4px solid var(--accent); box-shadow: 0 6px 22px rgba(47,84,235,.10); }
.subscribe-box .form-inline input[type=email] { flex: 1; min-width: 200px; }

/* Moderation log */
.mod-score { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; font-size: .85rem; }
.mod-score-bad code { color: #a8071a; font-weight: 700; }
.mod-bar { width: 90px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; flex: none; }
.mod-bar span { display: block; height: 100%; background: var(--accent); }
.mod-score-bad .mod-bar span { background: var(--hot); }

/* Mini editor */
.editor-toolbar { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.editor-toolbar button { border: 1.5px solid var(--border); background: #fff; border-radius: 7px; padding: 5px 10px; cursor: pointer; font: inherit; font-size: .9rem; }
.editor-toolbar button:hover { border-color: var(--accent); color: var(--accent); }
.editor-area { border: 1.5px solid var(--border); border-radius: 9px; padding: 10px 12px; min-height: 180px; background: #fff; font-weight: 400; overflow-y: auto; max-height: 420px; }
.editor-area:focus { border-color: var(--accent); outline: none; }
.editor-area ul, .editor-area ol { margin-left: 1.3em; }

/* Options at event creation */
.opt-choose { display: flex; flex-direction: column; gap: 10px; background: #f7f9ff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.opt-choose label.check { align-items: flex-start; font-weight: 400; }
.opt-choose small { color: var(--muted); }

/* Sold out */
.soldout { display: block; text-align: center; background: #f0f0f0; color: var(--muted); font-weight: 800; padding: 12px; border-radius: 10px; margin-top: 12px; }

/* Support chat */
.btn-logout:hover { color: #cf1322; border-color: #ffccc7; background: #fff1f0; }

/* Карточка организатора (админка) */
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 8px 0 28px; }
.org-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.org-card h3 { margin: 0 0 10px; font-size: 1rem; }
.org-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.org-row:last-child { border-bottom: 0; }
.org-row span { color: var(--muted); }
.org-event { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; }
.org-event-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.org-event-head time { color: var(--muted); font-size: .85rem; }
.org-event-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.org-sub { font-weight: 700; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px; }
.org-opt { font-size: .92rem; padding: 3px 0; }
.org-opt .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.org-opt .dot.on { background: #52c41a; }
.org-opt .dot.off { background: #d9d9d9; }
@media (max-width: 700px) { .org-event-cols { grid-template-columns: 1fr; } }

/* Отзывы о мероприятии */
.reviews { border-top: 1px solid var(--border); padding-top: 8px; }
.review-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.review { display: flex; gap: 12px; }
.review-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.review-ava img { width: 100%; height: 100%; object-fit: cover; }
.review-body { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; flex: 1; min-width: 0; }
.review-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.review-head time { color: var(--muted); font-size: .8rem; }
.review-body p { margin: 0; white-space: pre-line; word-break: break-word; }
.review-form { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; max-width: 720px; }
.review-form textarea { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; }
.review-form .btn { align-self: flex-start; }
.review-as { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.review-as-ava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.review-ok { color: #237804; background: #f6ffed; border: 1px solid #b7eb8f; border-radius: 8px; padding: 8px 12px; }
.review-login { background: var(--card); border: 1px dashed var(--border); border-radius: 14px; padding: 18px; max-width: 720px; }
.review-login p { margin: 0 0 12px; }
.review-wait { color: var(--muted); font-size: .9rem; margin: 12px 0 0 !important; }
/* Рейтинг: вывод */
.stars { color: #faad14; letter-spacing: 1px; font-size: .95rem; }
/* Рейтинг: ввод (звёзды) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; font-size: 1.7rem; line-height: 1; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { color: #d9dee8; cursor: pointer; transition: color .1s; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #faad14; }
/* Ответ организатора */
.review-reply { margin-top: 10px; padding: 10px 12px; background: var(--bg); border-radius: 10px; border-left: 3px solid var(--accent); }
.review-reply-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.org-badge { background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.review-reply-head time { color: var(--muted); font-size: .8rem; }
.review-reply p { margin: 0; white-space: pre-line; word-break: break-word; }
.review-reply-form { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.review-reply-form textarea { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit; resize: vertical; }
.review-reply-form .btn { align-self: flex-start; }
.review-more { margin: 0 auto 24px; display: block; }
/* Админка: инлайн-редактор отзыва */
.rev-edit { display: inline-block; margin: 4px 0; }
.rev-edit > summary { list-style: none; cursor: pointer; display: inline-block; }
.rev-edit > summary::-webkit-details-marker { display: none; }
.rev-edit-form { margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); min-width: 320px; gap: 8px; }
.rev-edit-form label { font-size: .85rem; }
.rev-edit-form input, .rev-edit-form select, .rev-edit-form textarea { width: 100%; }
.field-invalid { border-color: #cf1322 !important; box-shadow: 0 0 0 2px rgba(207,19,34,.15) !important; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-head h1 { margin: 0; }
.snd-btn { border: 1px solid var(--border); background: var(--card); border-radius: 10px; padding: 6px 10px; font-size: 1.15rem; line-height: 1; cursor: pointer; transition: background .15s, opacity .15s; }
.snd-btn:hover { background: var(--bg); }
.snd-btn.off { opacity: .55; }
.chat-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; max-height: 60vh; overflow-y: auto; padding: 4px; scroll-behavior: smooth; }
.chat-msg { display: flex; }
.chat-msg { animation: chatIn .18s ease; }
@keyframes chatIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-me { justify-content: flex-end; }
.chat-support { justify-content: flex-start; }
.chat-bubble { max-width: 80%; padding: 10px 16px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.chat-me .chat-bubble { background: #e8edff; border-bottom-right-radius: 4px; }
.chat-support .chat-bubble { border-bottom-left-radius: 4px; }
.chat-time { color: var(--muted); font-size: .75rem; margin-top: 6px; }

/* Модалка */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(16,19,34,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: var(--card); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.3); width: 100%; max-width: 760px; max-height: 85vh; display: flex; flex-direction: column; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-close { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.modal-body { padding: 8px 20px 20px; overflow-y: auto; }

/* Кликабельные строки целей */
.goal-row { cursor: pointer; }
.goal-row:hover { background: #f5f7ff; }
.goal-more { color: var(--accent); font-weight: 700; }

/* Admin stats */
.stats-tabs { margin-bottom: 22px; }
.stats-tabs a { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.stats-tabs a.active { background: var(--accent); color: #fff; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat-tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.stat-tile small { color: var(--muted); display: block; margin-bottom: 4px; }
.stat-tile b { font-size: 1.5rem; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 190px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.chart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.chart-col:hover .chart-bar { background: var(--hot); }
.chart-bar { width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; }
.chart-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; padding: 6px 16px 24px; }
.stats-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.setting-current { color: var(--muted); font-weight: 400; }

/* Шапка: полное горизонтальное меню требует ~1080px — ниже сворачиваем в бургер,
   иначе nav+кнопки вылезают за экран и дают горизонтальный скролл (карточки «обрезаются»). */
@media (max-width: 1080px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--card); flex-direction: column; padding: 16px 20px; gap: 14px; border-bottom: 1px solid var(--border); z-index: 30; }
  .main-nav.open { display: flex; }
  .burger { display: block; }
  .nav-fav { margin-left: 0; font-size: 1rem; font-weight: 700 !important; }
  .nav-fav .fav-word { display: inline; } /* в мобильном меню — с подписью */
}
/* «Войти»/«Кабинет» прячем только на телефонах (на планшетах место есть) */
@media (max-width: 640px) {
  .header-actions .btn-ghost { display: none; }
}

/* Mobile */
@media (max-width: 860px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-search { flex-wrap: wrap; }
  .hero-field { flex-basis: 100%; }
  .hero-search select { flex: 1 1 auto; max-width: none; }
  .event-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .mod-card { flex-direction: column; }
  .stats-cols { grid-template-columns: 1fr; }
}

/* --- SEO-блоки: вводный текст, перелинковка по городам/категориям, баннер «завершено» --- */
.page-intro { color: var(--muted); max-width: 820px; margin: -4px 0 20px; line-height: 1.55; }
.page-intro a { color: var(--accent); }
.linkhub { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.linkhub h2 { font-size: 1.1rem; margin: 0 0 12px; }
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chips a { display: inline-flex; align-items: center; gap: 4px; background: var(--card);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; font-size: .9rem;
  color: var(--text); text-decoration: none; transition: border-color .15s, color .15s; }
.link-chips a:hover { border-color: var(--accent); color: var(--accent); }
.link-chips .count { color: var(--muted); font-size: .82rem; }
.past-banner { background: #fff7e6; border: 1px solid #ffe0a3; color: #ad6800;
  font-weight: 700; padding: 11px 16px; border-radius: 10px; margin-bottom: 18px; }
.past-banner a { color: var(--accent-dark); }

/* --- Режим просмотра от имени организатора (admin impersonation) --- */
.imp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: flex; flex-wrap: wrap;
  gap: 10px 16px; align-items: center; justify-content: center; text-align: center;
  background: #ad6800; color: #fff; padding: 10px 16px; font-size: 14px; font-weight: 600;
  box-shadow: 0 -2px 14px rgba(0,0,0,.22); }
.imp-bar b { color: #fff; }
.imp-exit { background: #fff; color: #ad6800; border: 0; border-radius: 8px; padding: 7px 15px;
  font-weight: 700; cursor: pointer; font-family: inherit; font-size: 13px; white-space: nowrap; }
.imp-exit:hover { opacity: .92; }
body.imp-on { padding-bottom: 60px; }

/* ===== Личный кабинет организатора — редизайн (05.10.2026) ===== */
.btn-sm { padding: 6px 13px !important; font-size: .9rem !important; }

.lk-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.lk-head h1 { margin: 0; }
.lk-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-head-actions .btn-logout { color: var(--muted); border-color: var(--border); }

/* Финансы */
.lk-finance { display: grid; grid-template-columns: minmax(230px, 264px) 1fr; grid-template-areas: "bal stats" "bal recent"; gap: 14px 18px; margin-bottom: 30px; }
.fin-balance { grid-area: bal; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.fin-balance small { opacity: .85; font-size: .85rem; }
.fin-amount { font-size: 2rem; font-weight: 800; line-height: 1.1; margin: 2px 0 14px; }
.fin-balance .btn-primary { background: #fff; color: var(--accent-dark); border: 0; }
.fin-balance .btn-primary:hover { opacity: .92; }
.fin-invoice { display: block; text-align: center; color: #fff; opacity: .9; font-size: .85rem; margin-top: 10px; text-decoration: underline; }
.fin-stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: 12px; }
.fin-stat { flex: 1 1 140px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.fin-stat span { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 4px; }
.fin-stat b { font-size: 1.2rem; }
.fin-recent { grid-area: recent; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.fin-recent-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; margin-bottom: 8px; }
.fin-recent-head a { font-size: .85rem; font-weight: 500; }
.tx-feed { list-style: none; margin: 0; padding: 0; }
.tx-feed li { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--border); font-size: .9rem; }
.tx-feed li:first-child { border-top: 0; }
.tx-date { color: var(--muted); font-size: .82rem; }
.tx-desc { min-width: 0; }
.tx-st { color: var(--muted); font-weight: 500; }
.tx-sum { white-space: nowrap; }

/* Заголовок «Мои мероприятия» */
.lk-events-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.lk-events-head h2 { margin: 0; }

/* Бейджи активных опций в таблице */
.opt-badge { display: inline-block; background: #ecf9e8; color: var(--ok); border-radius: 7px; padding: 3px 8px; font-size: .78rem; font-weight: 700; margin: 0 4px 4px 0; }
.opt-badge em { font-style: normal; font-weight: 500; opacity: .8; }
.promo-link { display: inline-block; margin-top: 4px; font-weight: 600; }
.td-promo { max-width: 280px; }

/* Продающий блок опций */
.upsell { margin-top: 36px; }
.upsell-head h2 { margin: 0 0 6px; }
.upsell-head p { color: var(--muted); max-width: 760px; margin: 0 0 18px; line-height: 1.5; }
.upsell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.upsell-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s; }
.upsell-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.upsell-ico { font-size: 1.6rem; line-height: 1; }
.upsell-body b { display: block; margin-bottom: 4px; }
.upsell-body p { color: var(--muted); font-size: .9rem; line-height: 1.45; margin: 0; }
.upsell-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.upsell-price { font-weight: 800; color: var(--text); white-space: nowrap; }
.upsell-price small { font-weight: 500; color: var(--muted); font-size: .72rem; }

@media (max-width: 760px) {
  .lk-finance { grid-template-columns: 1fr; grid-template-areas: "bal" "stats" "recent"; }
}
@media (max-width: 640px) {
  .lk-events tr:first-child { display: none; }               /* шапка таблицы */
  .lk-events, .lk-events tbody { display: block; }
  .lk-events tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .lk-events tr:last-child { border-bottom: 0; }
  .lk-events td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 4px 0; border: 0; text-align: right; }
  .lk-events td::before { content: attr(data-label); color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .3px; text-align: left; flex: 0 0 auto; }
  .lk-events td[data-label=""]::before { content: none; }
  .lk-events td.td-promo { flex-direction: column; align-items: flex-start; text-align: left; max-width: none; }
  .lk-events td.actions { justify-content: flex-start; gap: 18px; }
}

/* Статус активной опции в продающем блоке ЛК */
.upsell-card.is-on { border-color: #bfe6ca; background: #f7fdf9; }
.upsell-on { color: var(--ok); font-weight: 800; }
.upsell-manage { font-size: .85rem; white-space: nowrap; }
.upsell-partly { color: var(--ok); font-weight: 700; }

/* ЛК: напоминание/продление опции, счётчик заявок, умная подсказка */
.opt-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 5px; }
.opt-badge.opt-warn { background: #fff7e6; color: #ad6800; }
.ext-form { display: inline; margin: 0; }
.ext-btn { background: #ad6800; color: #fff; border: 0; border-radius: 7px; padding: 3px 9px; font-size: .76rem; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
.ext-btn:hover { opacity: .9; }
.promo-nudge { display: inline-block; color: var(--accent-dark); font-size: .86rem; line-height: 1.4; }
.lead-count { display: inline-block; margin-top: 4px; font-size: .85rem; font-weight: 600; color: var(--ok); }
@media (max-width: 640px) {
  .lk-leads tr:first-child { display: none; }
  .lk-leads, .lk-leads tbody { display: block; }
  .lk-leads tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .lk-leads tr:last-child { border-bottom: 0; }
  .lk-leads td { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border: 0; text-align: right; }
  .lk-leads td::before { content: attr(data-label); color: var(--muted); font-size: .75rem; text-transform: uppercase; text-align: left; flex: 0 0 auto; }
}

/* Сортируемые заголовки таблиц (админка) */
.th-sort { user-select: none; }
.th-sort a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; cursor: pointer; }
.th-sort a:hover { color: var(--accent); }
.th-active a { color: var(--accent); }
.act-fresh { color: var(--ok); font-weight: 600; }
.act-old { color: var(--muted); }

/* Крупная кнопка «Регистрация на сайте организатора» в основном контенте (site_link) */
.reg-cta { margin: 22px 0 6px; text-align: center; }
.btn-reg-cta { display: inline-flex; flex-direction: column; align-items: center; padding: 13px 46px; min-width: 280px; }
@media (max-width: 640px) { .btn-reg-cta { width: 100%; padding: 13px 20px; } }

/* Повторяющееся событие — форма и карточка */
.repeat-box { border: 1.5px dashed var(--border, #e2e6ee); border-radius: 12px; padding: 12px 14px; background: var(--bg-soft, #f7f9fc); }
.repeat-box > .check { margin: 0; font-weight: 600; }
#repArea { margin-top: 10px; }
.rep-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.rep-row input[type="datetime-local"] { flex: 1 1 180px; min-width: 150px; }
.rep-del { border: none; background: #fdecec; color: #cf1322; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 1rem; flex: 0 0 auto; }
.rep-del:hover { background: #f8c6c6; }
.next-dates { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border, #e2e6ee); }
.next-dates .nd-label { font-size: .82rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.next-dates ul { list-style: none; margin: 0; padding: 0; }
.next-dates li { font-size: .9rem; color: var(--muted, #556); padding: 2px 0; }
.card-recur { font-size: .74rem; font-weight: 700; color: var(--accent); background: rgba(94,96,206,.1); border-radius: 6px; padding: 1px 6px; margin-left: auto; white-space: nowrap; }
