/* Единые стили standalone-разделов b2bclub.media: агрегатор, заявки, клубы, онлайн */
:root {
  --bg: #081120; --bg-2: #0D1B2E; --bg-3: #14263F; --line: #22344F;
  --text: #F0F6FF; --muted: #93A4BD;
  --accent: #2FBF8F; --accent-2: #57D9A8;
  --radius: 14px;
  --font-display: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { background:var(--bg); color:var(--text); font-family:var(--font-body); font-size:15px; line-height:1.5; }
a { color:var(--accent); text-decoration:none; }
.wrap { max-width:1440px; margin:0 auto; padding:24px; display:grid; grid-template-columns:260px 1fr 320px; gap:24px; }
.wrap > * { min-width: 0; }
/* Шапка standalone-разделов — единая с медиасайтом: ряд 1 (логотип+меню+вход), ряд 2 (переключатель+поиск) */
.site-header { max-width:1280px; margin:0 auto; border-bottom:1px solid #2A2A33; position:sticky; top:0; z-index:100; background:rgba(11,13,18,.9); backdrop-filter:blur(10px); }
.header-inner { max-width:1280px; margin:0 auto; padding:8px 16px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.logo { display:flex; flex-direction:column; line-height:1.1; order:1; color:#F2F0EA; }
.logo:hover { text-decoration:none; }
.logo-main { font-family:"Playfair Display", Georgia, serif; font-size:18px; font-weight:800; letter-spacing:.5px; }
.logo-sub { font-family:var(--font-body); font-size:10px; color:#A3A09A; text-transform:uppercase; letter-spacing:1px; }
.header-tools { order:4; flex:0 0 100%; display:flex; align-items:center; gap:12px; }
/* Бургер (3 жирные полосы) + выезжающая справа панель */
.burger { order:3; margin-left:auto; display:flex; flex-direction:column; justify-content:center; gap:5px; width:40px; height:38px; padding:9px 7px; background:transparent; border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.burger span { display:block; height:3px; width:100%; background:var(--text); border-radius:2px; }
.burger:hover, .burger[aria-expanded="true"] { border-color:var(--accent); }
.menu-overlay { position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:390; opacity:0; visibility:hidden; transition:opacity .3s ease, visibility 0s linear .3s; }
.menu-overlay.open { opacity:1; visibility:visible; transition:opacity .3s ease, visibility 0s; }
.menu-panel { position:fixed; top:0; right:0; height:100%; width:300px; max-width:86vw; background:var(--bg-2); border-left:1px solid var(--line); z-index:400; padding:16px; overflow-y:auto; transform:translateX(105%); visibility:hidden; transition:transform .3s ease, visibility 0s linear .3s; }
.menu-panel.open { transform:translateX(0); visibility:visible; transition:transform .3s ease, visibility 0s; }
.menu-panel-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.menu-panel-title { font-size:12px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); }
.menu-panel-close { background:transparent; border:1px solid var(--line); color:var(--text); width:32px; height:32px; border-radius:8px; font-size:18px; line-height:1; cursor:pointer; }
.menu-panel-close:hover { border-color:var(--accent); }
.menu-panel-nav { display:flex; flex-direction:column; gap:2px; margin-bottom:16px; }
.menu-panel-nav a { display:block; padding:10px 12px; border-radius:10px; color:var(--muted); font-size:14px; border:1px solid transparent; }
.menu-panel-nav a:hover { color:var(--text); background:var(--bg-3); text-decoration:none; }
.menu-panel-auth { display:flex; align-items:center; gap:8px; border-top:1px solid var(--line); padding-top:14px; }
.auth-btn { background:#1B1B21; border:1px solid #2A2A33; color:#F2F0EA; padding:8px 16px; border-radius:18px; font-size:13px; font-weight:600; line-height:1.2; }
.auth-btn:hover { border-color:var(--accent); }
.auth-logout { color:var(--muted); font-size:16px; }
.auth-logout:hover { color:var(--text); }
.side { background:var(--bg-2); border-radius:var(--radius); padding:20px 16px; height:fit-content; }
.side a { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; color:var(--muted); margin-bottom:4px; }
.side a.active { color:var(--accent); background:rgba(47,191,143,.1); border-left:3px solid var(--accent); }
h1 { font-family:var(--font-display); font-size:28px; font-weight:700; margin-bottom:4px; }
.sub { color:var(--muted); margin-bottom:16px; overflow-wrap:anywhere; }
.section-title { font-family:var(--font-display); font-size:20px; margin:26px 0 12px; }

/* Города — выпадающий список */
.city-bar { display:flex; align-items:center; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.city-select {
  appearance:none; -webkit-appearance:none;
  background:var(--bg-3) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393A4BD' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border:1px solid var(--line); color:var(--text); border-radius:10px;
  padding:10px 38px 10px 16px; font-size:14px; font-weight:600; cursor:pointer;
}
.city-select:focus { outline:none; border-color:var(--accent); }
.city-hint { color:var(--muted); font-size:12px; }

.month { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.month button { background:var(--bg-3); border:1px solid var(--line); color:var(--text); border-radius:8px; padding:6px 12px; cursor:pointer; }
.month button:hover { border-color:var(--accent); }

/* Режимы публикации — две плашки над списком */
.modes { display:flex; gap:10px; margin:0 0 16px; flex-wrap:wrap; }
.mode { flex:1 1 240px; display:flex; flex-direction:column; gap:3px; text-align:left; padding:12px 16px; border-radius:14px; border:1.5px solid var(--line); background:var(--bg-2); color:var(--text); cursor:pointer; font-family:inherit; }
.mode-name { font-size:15px; font-weight:700; }
.mode-note { font-size:12px; color:var(--muted); line-height:1.35; }
.mode:hover { border-color:var(--accent); }
.mode.active { border-color:var(--accent); background:linear-gradient(135deg, rgba(47,191,143,.16), rgba(87,217,168,.10)); }
.mode.active .mode-note { color:var(--accent); }

/* Пометка о модерации */
.mod-note { border:1px solid rgba(47,191,143,.4); background:rgba(47,191,143,.08); color:#A7F3D0; border-radius:12px; padding:12px 16px; font-size:13px; line-height:1.5; margin:0 0 16px; }

/* Календарь */
.calendar { background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius); padding:16px; margin-bottom:16px; }
.cal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.cal-head b { font-family:var(--font-display); font-size:18px; }
.cal-nav { background:var(--bg-3); border:1px solid var(--line); color:var(--text); border-radius:8px; padding:6px 12px; cursor:pointer; font-family:inherit; }
.cal-nav:hover { border-color:var(--accent); }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-wd { text-align:center; font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); padding:4px 0; }
.cal-day { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:8px 2px; border-radius:10px; border:1px solid transparent; background:var(--bg-3); color:var(--text); cursor:pointer; font-family:inherit; min-height:56px; }
.cal-day:hover { border-color:var(--accent); }
.cal-day.active { border-color:var(--accent); background:rgba(47,191,143,.16); }
.cal-day.today .cal-num { color:var(--accent); }
.cal-empty { background:transparent; pointer-events:none; }
.cal-num { font-size:16px; font-weight:700; line-height:1; }
.cal-count { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 4px; border-radius:999px; background:var(--accent); color:#04211A; font-size:11px; font-weight:700; }

/* Раскрывающийся список мероприятий на дату */
.day-group { margin-bottom:18px; }
.day-group.hide { display:none; }
.day-group-title { font-family:var(--font-display); font-size:16px; margin:0 0 10px; color:var(--text); }
.card.hide { display:none; }
.day-empty { color:var(--muted); font-size:13px; padding:14px 0; }

.card { display:flex; gap:16px; background:var(--bg-3); border:1px solid var(--line); border-radius:var(--radius); padding:16px; margin-bottom:12px; overflow:hidden; }
.card .img { width:200px; height:120px; border-radius:12px; background:linear-gradient(135deg,#0e2440,#2FBF8F); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:32px; }
.card .body { flex:1; }
.tag { font-size:11px; text-transform:uppercase; font-weight:600; }
.card h3 { font-family:var(--font-display); font-size:16px; font-weight:600; margin:4px 0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card .desc { color:var(--muted); font-size:13px; }
.card .loc { color:var(--muted); font-size:13px; margin-top:8px; }
.card .right { display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between; min-width:140px; }
.btn { border:1px solid var(--accent); color:var(--accent); border-radius:6px; padding:6px 16px; font-size:14px; background:none; cursor:pointer; display:inline-block; }
.btn:hover { background:var(--accent); color:#04211A; }
.btn-solid { background:var(--accent); color:#04211A; font-weight:700; }
.btn-solid:hover { filter:brightness(1.08); }
.btn-big { padding:13px 26px; font-size:15px; border-radius:12px; }
.filters { background:var(--bg-2); border-radius:var(--radius); padding:20px; height:fit-content; }
.filters h3 { font-family:var(--font-display); font-size:18px; margin-bottom:12px; }
.filters .group { margin-bottom:16px; }
.filters .group b { display:block; margin-bottom:8px; color:var(--muted); font-weight:500; font-size:12px; text-transform:uppercase; }
.chip { display:inline-block; padding:4px 12px; background:var(--bg-3); border:1px solid var(--line); border-radius:20px; font-size:12px; margin:0 6px 6px 0; color:var(--muted); }
.chip.active { background:var(--accent); border-color:var(--accent); color:#04211A; font-weight:600; }

/* Бизнес клубы */
.clubs { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; }
.club-card { background:var(--bg-3); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; transition:border-color .2s, transform .2s; }
.club-card:hover { border-color:var(--accent); transform:translateY(-2px); }
.club-media { width:100%; aspect-ratio:16/10; background:linear-gradient(135deg,#0e2440,#14263F); display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:12px; overflow:hidden; }
.club-media img { width:100%; height:100%; object-fit:cover; }
.club-body { padding:12px 14px; display:flex; flex-direction:column; gap:6px; }
.club-name { font-family:var(--font-display); font-size:16px; }
.club-text { font-size:13px; color:var(--muted); line-height:1.45; }
.club-meta { font-size:11px; color:var(--muted); margin-top:auto; }
.club-empty { border:1px dashed var(--line); border-radius:var(--radius); padding:26px; text-align:center; color:var(--muted); font-size:13px; line-height:1.5; grid-column:1/-1; }

/* Как это работает */
.how-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.how-card { background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius); padding:16px; display:flex; flex-direction:column; gap:6px; }
.how-card b { font-family:var(--font-display); font-size:15px; }
.how-card span { color:var(--muted); font-size:13px; line-height:1.5; }

/* Карусель */
.carousel { display:flex; gap:14px; overflow-x:auto; padding:4px 2px 12px; scroll-snap-type:x mandatory; }
.carousel::-webkit-scrollbar { height:6px; }
.carousel::-webkit-scrollbar-thumb { background:var(--line); border-radius:3px; }
.carousel .card { flex:0 0 240px; scroll-snap-align:start; }
.carousel-pager { display:flex; gap:8px; justify-content:center; margin-top:12px; align-items:center; }
.carousel-pager button { min-width:40px; height:36px; border-radius:10px; border:1px solid var(--line); background:var(--bg-2); color:var(--muted); font-size:15px; font-weight:700; cursor:pointer; }
.carousel-pager button:hover:not(:disabled) { color:var(--text); border-color:var(--accent); }
.carousel-pager button:disabled { opacity:.35; cursor:default; }
.carousel-pager .pager-status { font-size:12px; color:var(--muted); }

/* Соцсети */
.social-row { display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 6px; }
.social-btn { width:42px; height:42px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--line); color:var(--brand,var(--accent)); transition:transform .2s, box-shadow .25s; }
.social-btn:hover { transform:translateY(-2px); text-decoration:none; box-shadow:0 6px 18px rgba(0,0,0,.45); }
.social-glyph { display:inline-flex; width:18px; height:18px; }
.social-glyph svg { width:100%; height:100%; display:block; }
.social-glyph--text { font-size:12px; font-weight:800; letter-spacing:.4px; }

/* Переключатель разделов */
.switcher { position:relative; width:416px; }
.switcher-track { position:relative; display:grid; grid-template-columns:repeat(4,1fr); width:416px; background:#1B1B21; border:1px solid #2A2A33; border-radius:22px; padding:3px; }
.switch-btn { position:relative; z-index:2; min-width:0; padding:8px 0; text-align:center; font-size:13px; font-weight:600; color:#A3A09A; border-radius:19px; transition:color .25s; white-space:nowrap; line-height:1.2; overflow:hidden; text-overflow:ellipsis; }
.switch-btn:hover { text-decoration:none; color:#F2F0EA; }
.switch-btn.active { color:#0B0D12; }
.switcher-thumb { position:absolute; top:3px; left:3px; z-index:1; height:calc(100% - 6px); width:calc((100% - 6px) / 4); border-radius:19px; transition:transform .3s cubic-bezier(.4,0,.2,1); }
.switcher--media .switcher-thumb { background:linear-gradient(135deg,#C9A24B,#E6C87A); }
.switcher--aggregator .switcher-thumb { background:linear-gradient(135deg,#2FBF8F,#57D9A8); }
.switcher--clubs .switcher-thumb { background:linear-gradient(135deg,#8B5CF6,#C4B5FD); }
.switcher--online .switcher-thumb { background:linear-gradient(135deg,#06B6D4,#67E8F9); }

/* Подвал */
.agg-foot { max-width:1440px; margin:24px auto 0; padding:20px 24px; border-top:1px solid var(--bg-3); color:var(--muted); font-size:12px; }
.agg-foot-links { display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin-bottom:8px; }
.agg-foot-links a { color:var(--muted); }
.agg-foot-links a:hover { color:var(--text); }
.age-sign { display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px; border:2px solid var(--muted); border-radius:50%; font-size:11px; font-weight:700; }

/* cookie — единый с медиа-темой (20.11.2026) */
.cookie-banner { position:fixed; left:0; right:0; bottom:0; z-index:300; background:#161a21; border-top:1px solid var(--line); padding:14px 20px; }
.cookie-banner[hidden] { display:none; }
.cookie-box { max-width:1280px; margin:0 auto; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.cookie-box p { margin:0; font-size:13px; color:#c8cdd8; flex:1 1 400px; }
.cookie-box p a { color:var(--accent); }
.cookie-actions { display:flex; gap:10px; }
.cookie-accept, .cookie-decline { padding:9px 20px; border-radius:20px; border:1px solid var(--line); cursor:pointer; font-size:13px; font-weight:600; }
.cookie-accept { background:var(--accent); border-color:var(--accent); color:#fff; }
.cookie-decline { background:transparent; color:var(--muted); }
.cookie-decline:hover { color:var(--text); border-color:var(--accent); }

/* Шторка */
.page-wipe { position:fixed; inset:0; z-index:9999; pointer-events:none; background:linear-gradient(135deg,var(--accent),var(--accent-2)); transform:translateX(101%); display:flex; align-items:center; justify-content:center; }
.page-wipe--cover { transform:translateX(0); }
.page-wipe.go { transition:transform .45s cubic-bezier(.7,0,.2,1); transform:translateX(0); }
.page-wipe.leave { transition:transform .55s cubic-bezier(.7,0,.2,1); transform:translateX(-101%); }
.page-wipe-brand { color:rgba(0,0,0,.5); font-family:var(--font-display); font-size:clamp(40px,9vw,110px); font-weight:700; letter-spacing:.06em; text-transform:uppercase; }

/* Формы заявок */
.create-wrap { max-width:820px; margin:0 auto; padding:32px 24px 48px; }
.create-box { background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius); padding:24px; }
.create-box h1 { font-size:24px; margin-bottom:8px; }
.create-box .lead { color:var(--muted); margin-bottom:18px; line-height:1.5; }
.warning { background:rgba(245,166,35,.1); border:1px solid rgba(245,166,35,.4); border-radius:10px; padding:14px 16px; color:#F5D0A0; font-size:13px; line-height:1.5; margin-bottom:18px; }
.form-grid { display:grid; gap:14px; }
.form-grid label { display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--muted); }
.form-grid input, .form-grid select, .form-grid textarea {
  background:var(--bg); border:1px solid var(--line); border-radius:10px;
  padding:11px 13px; color:var(--text); font-size:14px; font-family:inherit;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline:none; border-color:var(--accent); }
.form-grid textarea { min-height:110px; resize:vertical; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.alert { border-radius:10px; padding:12px 16px; font-size:13px; margin-bottom:16px; }
.alert-err { background:rgba(237,20,59,.12); border:1px solid rgba(237,20,59,.4); color:#FFB3C1; }
.alert-ok { background:rgba(47,191,143,.12); border:1px solid rgba(47,191,143,.4); color:#A7F3D0; }
.consent { display:flex; gap:8px; align-items:flex-start; font-size:12px; color:var(--muted); line-height:1.45; }
.consent input { margin-top:3px; }
.form-actions { margin-top:20px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.done-box { text-align:center; padding:30px 10px; }
.done-box .big { font-size:44px; margin-bottom:10px; }
.done-box h2 { font-family:var(--font-display); font-size:22px; margin-bottom:8px; }
.done-box p { color:var(--muted); margin-bottom:18px; line-height:1.5; }

.city-links { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0; }
.city-links a { font-size:12px; color:var(--muted); padding:4px 10px; border:1px solid var(--line); border-radius:999px; }
.city-links a:hover { color:var(--text); border-color:var(--accent); text-decoration:none; }

@media (max-width:1000px){
  .wrap { grid-template-columns:1fr; }
  .side, .filters { order:2; }
  /* Шапка: переключатель 416px + поиск 416px не помещаются в планшет — даём им тянуться */
  .header-tools { flex-wrap:wrap; }
  .header-tools .switcher { flex:1 1 300px; width:auto; }
  .header-tools .ms-search { flex:1 1 300px; width:auto; margin-left:0; }
  .header-tools .switcher-track { width:100%; }
}
@media (max-width:760px){
  .header-inner { gap:6px 10px; padding:6px 12px; }
  /* Шапка жёстко закреплена сверху и на iPhone, и на Android */
  .site-header { position: fixed; left:0; right:0; top:0; background: rgba(11,13,18,.97); }
  .logo { order:1; margin-right:0; }
  .logo-main { font-size:16px; }
  .logo-sub { font-size:9px; }
  .burger { order:3; margin-left:auto; }
  .header-tools { order:4; flex-wrap:wrap; gap:6px; }
  .header-tools .switcher { width:100%; flex:0 0 100%; }
  .header-tools .ms-search { width:100%; flex:0 0 100%; margin-left:0; }
  .switcher-track { width:100%; }
  .switch-btn { font-size:12px; white-space:nowrap; line-height:1.1; }
  .ms-search-panel { position:fixed; top:calc(var(--header-h, 132px) + 6px); left:8px; right:8px; width:auto; max-height:calc(100vh - 150px); overflow:auto; }
  .form-row { grid-template-columns:1fr; }
  /* Селектор города — длинная плашка во всю ширину */
  .city-select { flex:1 1 100%; width:100%; }
  .city-hint { flex:1 1 100%; }
  .modes { flex-direction:column; }
  .mode { flex:1 1 100%; }
  .cal-grid { gap:4px; }
  .cal-day { min-height:48px; padding:6px 0; }
  .cal-num { font-size:14px; }
  .cal-count { min-width:16px; height:16px; font-size:10px; }
  .card { flex-direction:column; }
  .card .img { width:100%; }
  .sub, .city-hint { overflow-wrap:anywhere; }
}
