
/* Event lists */
.event-list { list-style: none; padding: 0; }
.event-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.event-list .event-date { color: var(--text-gray); font-size: 0.85rem; margin-left: 0.5rem; }

/* ═══════════════════════════════════════════════════════════════
   EVENTS CALENDAR (home page, right column) — 30-day paging window
   ═══════════════════════════════════════════════════════════════ */
.calendar{
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-2xl);padding:16px;
}
.city-picker{
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-2xl);overflow:hidden;
}
.city-picker__summary{
  display:flex;align-items:center;gap:8px;height:44px;
  padding:0 12px;cursor:pointer;list-style:none;
  color:var(--text);font-weight:700;font-size:0.9375rem;line-height:1.2;
}
.city-picker__summary::-webkit-details-marker{display:none;}
.city-picker__summary svg{width:16px;height:16px;flex:0 0 16px;}
.city-picker__name{flex:1;min-width:0;padding-top:7px;}
@media(max-width:700px){.city-picker__name{padding-top:0;}}
.city-picker__chevron{
  width:8px;height:8px;flex:0 0 8px;margin-top:-3px;
  border-right:2px solid var(--text-gray);border-bottom:2px solid var(--text-gray);
  transform:rotate(45deg);transition:transform var(--t),margin-top var(--t);
}
.city-picker[open] .city-picker__chevron{transform:rotate(-135deg);margin-top:3px;}
.city-picker__menu{
  height:0;overflow:hidden;opacity:0;transform:translateY(-4px);
  padding:0 10px;
  transition:height .28s cubic-bezier(0.4,0,0.2,1),
             opacity .2s ease,
             transform .28s cubic-bezier(0.4,0,0.2,1);
}
.city-picker__menu-inner{padding-bottom:10px;}
.city-picker[open] .city-picker__menu{height:auto;opacity:1;transform:none;}
.city-picker__search{
  width:100%;padding:8px 10px;margin-bottom:8px;
  border:1px solid var(--border);border-radius:var(--radius-xl);
  background:var(--surface);color:var(--text);font-family:var(--font);
  font-size:0.875rem;outline:none;
}
.city-picker__search:focus{border-color:var(--text);}
.city-picker__options{display:flex;flex-direction:column;gap:6px;}
.city-picker__option[hidden]{display:none;}
.city-picker__empty{margin:4px 0;color:var(--text-muted);font-size:0.8125rem;}
.city-picker__option:not(.is-selected) svg{visibility:hidden;}
@media (prefers-reduced-motion: reduce){.city-picker__menu{transition:none;}}
.city-picker__option{
  display:flex;gap:8px;width:100%;min-height:40px;
  padding:8px 10px;border:1px solid var(--border);border-radius:var(--radius-xl);
  background:var(--surface);color:var(--text);font-family:var(--font);
  font-size:0.875rem;font-weight:600;cursor:pointer;text-align:left;
}
.city-picker__option svg{width:16px;height:16px;flex:0 0 16px;align-self:center;}
.city-picker__option-name{align-self:stretch;display:flex;align-items:flex-end;line-height:1.2;padding-bottom:1px;}
.city-picker__option:hover{background:var(--bg-hover-light);}
.city-picker__option.is-selected{background:var(--text);color:var(--surface);border-color:var(--text);}
.city-picker__option.is-selected:hover{background:var(--text);}
.city-picker--field{width:100%;background:var(--surface);}
.city-picker--field .city-picker__summary{height:46px;}
.city-picker--field .city-picker__menu{background:var(--surface);}
.calendar-head{display:flex;flex-direction:column;gap:8px;margin-bottom:12px;}
.calendar-head h2{font-size:1.25rem;font-weight:800;margin:0;}
.calendar-nav{display:flex;align-items:center;justify-content:center;gap:10px;}
.calendar-nav-btn{
  width:28px;height:28px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;
  border-radius:var(--radius-full);color:var(--text-gray);text-decoration:none;
  transition:background var(--t),color var(--t);
}
.calendar-nav-btn:hover{background:var(--bg-hover);color:var(--text);text-decoration:none;}
.calendar-range{font-size:0.8125rem;color:var(--text-gray);white-space:nowrap;}
.calendar-days{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;}
.calendar-day{
  display:flex;gap:10px;align-items:flex-start;
  padding:10px 8px;border-top:1px solid var(--border);
}
.calendar-day:first-child{border-top:none;padding-top:2px;}
.calendar-date{
  flex-shrink:0;width:46px;display:flex;flex-direction:column;align-items:center;
  font-size:0.6875rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.03em;
  padding:10px 0;
}
.calendar-dm{font-size:0.8125rem;font-weight:700;color:var(--text);text-transform:none;letter-spacing:0;}
.calendar-events{
  list-style:none;margin:0;padding:0;min-width:0;flex:1 1 0;
  display:flex;flex-direction:column;gap:8px;
}
.calendar-event{
  width:100%;box-sizing:border-box;padding:10px 12px;border-radius:var(--radius-xl);
  background-color:var(--surface);
  background-image:linear-gradient(
    rgba(29,155,240,calc(var(--near,0) * 0.07)),
    rgba(29,155,240,calc(var(--near,0) * 0.07))
  );
  border:1px solid var(--border);
  box-shadow:0 0 calc(var(--near,0) * 14px) rgba(29,155,240,calc(var(--near,0) * 0.16));
  transition:transform 0.35s cubic-bezier(0.23,1,0.32,1),box-shadow 0.35s cubic-bezier(0.23,1,0.32,1),background var(--t);
}
.calendar-event:hover{
  background-image:linear-gradient(
    rgba(29,155,240,calc(var(--near,0) * 0.11)),
    rgba(29,155,240,calc(var(--near,0) * 0.11))
  );
  transform:translateY(-1px);
  box-shadow:0 4px 14px rgba(0,0,0,0.06),0 0 calc(var(--near,0) * 18px) rgba(29,155,240,calc(var(--near,0) * 0.20));
}
.calendar-event-title{
  display:block;font-size:0.875rem;font-weight:600;color:var(--text);text-decoration:none;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.calendar-event-title:hover{text-decoration:underline;color:var(--text);}
.calendar-event-meta{display:flex;gap:6px;align-items:baseline;font-size:0.75rem;color:var(--text-muted);}
.calendar-event-time{font-weight:600;color:var(--text-gray);}
.calendar-event-club{color:var(--text-muted);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.calendar-event-club:hover{color:var(--text-gray);text-decoration:underline;}
.calendar-empty{font-size:0.875rem;color:var(--text-gray);line-height:1.5;margin:0;}

/* ═══════════════════════════════════════════════════════════════
   EVENT PAGES — public detail and owner form
   ═══════════════════════════════════════════════════════════════ */
.event-image{width:100%;max-width:520px;border-radius:var(--radius-xl);margin:12px 0;display:block;}
.event-date{color:var(--text-gray);font-size:0.875rem;font-weight:600;}
.detail .event-date{display:inline-block;}

/* Events list on club pages */
.event-list{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;}
.event-list li{
  display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;
  padding:8px 0;border-bottom:1px solid var(--border);
}
.event-list li:last-child{border-bottom:none;}
.event-list a{font-weight:600;color:var(--text);text-decoration:none;}
.event-list a:hover{text-decoration:underline;}
.event-list form{display:inline;margin:0;}
.event-list .btn{height:32px;padding:0 12px;font-size:0.8125rem;}

/* Public club page: each event is a fully clickable card with the same
   hover lift the rest of the site uses. */
.event-list.event-list--cards{gap:8px;margin-top:10px;}
.event-list.event-list--cards li{padding:0;border-bottom:none;display:block;}
.event-list--cards .event-card-link{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;border-radius:var(--radius-xl);
  background:rgba(255,255,255,0.72);
  box-shadow:0 1px 0 rgba(0,0,0,0.04),0 2px 8px rgba(0,0,0,0.04);
  text-decoration:none;color:var(--text);
  transition:background var(--t),box-shadow 0.35s cubic-bezier(0.23,1,0.32,1),
    transform 0.35s cubic-bezier(0.23,1,0.32,1);
}
.event-list--cards .event-card-link:hover{
  background:rgba(255,255,255,0.9);transform:translateY(-2px);
  box-shadow:0 2px 0 rgba(0,0,0,0.05),0 8px 24px rgba(0,0,0,0.08);
  text-decoration:none;color:var(--text);
}
.event-list--cards .event-card-title{font-weight:600;}
.event-list--cards .event-date{margin-left:auto;flex:0 0 auto;}


/* ═══════════════════════════════════════════════════════════════
   CALENDAR — title row, today marker, all-events link, spinner
   ═══════════════════════════════════════════════════════════════ */
.calendar-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;}
.calendar-all-link{font-size:0.8125rem;color:var(--text);font-weight:600;text-decoration:none;white-space:nowrap;}
.calendar-all-link:hover{text-decoration:underline;text-underline-offset:2px;}
.calendar-spinner{display:inline-flex;align-items:center;justify-content:center;}
.calendar-spinner .spinner{width:16px;height:16px;border-width:2px;}
.calendar-day.is-today{
  background:none;border-radius:0;padding:10px 8px;
}
.calendar-day.is-today .calendar-dm{color:var(--text);font-weight:800;}
.calendar-dot{
  width:7px;height:7px;border-radius:50%;background:transparent;
  border:1.5px solid var(--text);
  display:block;margin:0 auto 4px;opacity:1;
}
/* Today — filled black dot. */
.calendar-day.is-today .calendar-dot{background:var(--text);border-color:var(--text);}
/* Past — muted grey dot. */
.calendar-day.is-past .calendar-dot{background:var(--text-muted);border-color:var(--text-muted);opacity:0.6;}

/* Nearest event line on club cards */
.profile-card-next-event,
.profile-list-next-event{
  display:flex;align-items:center;gap:6px;
  font-size:0.8125rem;color:var(--text-gray);margin:2px 0 8px;
}
.next-event-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0;}

/* "Show more" clubs button */
.show-more-wrap{display:flex;align-items:center;justify-content:center;gap:10px;padding:16px;}
.show-more{
  display:inline-flex;align-items:center;height:40px;padding:0 22px;
  border:1px solid var(--border-gray);border-radius:var(--radius-full);
  font-size:0.9375rem;font-weight:600;color:var(--text);text-decoration:none;
  transition:background var(--t),border-color var(--t);
}
.show-more:hover{background:var(--bg-hover-light);text-decoration:none;color:var(--text);}

/* ═══════════════════════════════════════════════════════════════
   АФИША — метка статуса карточки события и пагинация
   ═══════════════════════════════════════════════════════════════ */
.event-badge{
  flex-shrink:0;font-size:0.6875rem;font-weight:600;padding:2px 9px;
  border-radius:var(--radius-full);line-height:1.4;
}
@media(max-width:700px){
  .event-badge{font-size:0.625rem;padding:2px 7px;}
}
.event-badge.is-upcoming{background:var(--text);color:var(--surface);}
.event-badge.is-past{background:var(--bg-input);color:var(--text-gray);}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 12px;}
.pagination-btn{
  font-size:0.875rem;font-weight:600;color:var(--text);text-decoration:none;
  padding:8px 14px;border:1px solid var(--border-gray);border-radius:var(--radius-full);
  transition:background var(--t);
}
.pagination-btn:hover{background:var(--bg-hover-light);text-decoration:none;color:var(--text);}
.pagination-btn.is-disabled{opacity:0.4;pointer-events:none;}
.pagination-info{font-size:0.8125rem;color:var(--text-gray);}

/* ═══════════════════════════════════════════════════════════════
   ERROR PAGES (404 / 500)
   ═══════════════════════════════════════════════════════════════ */
.error-page{
  display:flex;align-items:center;justify-content:center;
  min-height:100vh;padding:24px;text-align:center;
}
.error-box{max-width:420px;display:flex;flex-direction:column;align-items:center;gap:8px;}
.error-code{font-size:4rem;font-weight:800;line-height:1;color:var(--accent);}
.error-box h1{font-size:1.375rem;margin:4px 0;}
.error-box p{color:var(--text-gray);font-size:0.9375rem;margin-bottom:12px;}
.error-box .actions{justify-content:center;}

/* ═══════════════════════════════════════════════════════════════
   SPA-STYLE NAVIGATION — top progress bar (boosted requests)
   ═══════════════════════════════════════════════════════════════ */
.route-progress{
  position:fixed;top:0;left:0;right:0;height:2px;z-index:300;
  background:linear-gradient(90deg,var(--accent),var(--success));
  transform:scaleX(0);transform-origin:left center;
  transition:transform 0.25s ease-out,opacity 0.25s ease-out;
  opacity:0;pointer-events:none;
}
.route-progress.htmx-request{
  transform:scaleX(0.7);
  opacity:1;
  transition:transform 6s cubic-bezier(0.1,0.7,0.3,1),opacity 0.15s ease-out;
}

/* ═══════════════════════════════════════════════════════════════
   EVENT TAG ON CLUB CARDS — black pill with "Событие" and the date
   ═══════════════════════════════════════════════════════════════ */
.event-tag{display:inline-flex;align-items:center;gap:5px;font-weight:600;}
.event-tag-date{font-variant-numeric:tabular-nums;}
.profile-list-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;}

/* Calendar day header (weekday label) */
.calendar-weekday{text-transform:none;letter-spacing:0;font-size:0.75rem;}
.event-list li{
  background:rgba(255,255,255,0.72);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-radius:var(--radius-xl);padding:10px 12px;border-bottom:none;margin-bottom:8px;
  box-shadow:0 1px 0 rgba(0,0,0,0.04),0 2px 8px rgba(0,0,0,0.04),0 4px 16px rgba(0,0,0,0.03);
}
.event-list li:last-child{margin-bottom:0;}

/* Auth pages hint line */
.auth-hint{color:var(--text-gray);margin-top:16px;font-size:0.9375rem;}
/* The switch link ("Регистрация" / "Войти") is black, not the hint grey. */
.auth-hint a{color:var(--text);font-weight:600;text-decoration:none;}
.auth-hint a:hover{text-decoration:underline;text-underline-offset:2px;}

/* ═══════════════════════════════════════════════════════════════
   CONTENT SKELETON while the centre column is navigating
   ═══════════════════════════════════════════════════════════════ */
.feed-skeleton[hidden]{display:none!important;}
.feed-skeleton{pointer-events:none;display:flex;flex-direction:column;gap:10px;padding:12px;}
.feed.is-navigating > *:not(.feed-skeleton){opacity:0.25;transition:opacity 0.15s ease-out;}
.skeleton-card{
  display:flex;gap:12px;align-items:flex-start;height:132px;
  padding:14px 16px;border-radius:var(--radius-xl);
  background:rgba(255,255,255,0.72);
  box-shadow:0 1px 0 rgba(0,0,0,0.04),0 2px 8px rgba(0,0,0,0.04);
}
.skeleton-avatar{
  width:44px;height:44px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(90deg,var(--bg-input) 25%,rgba(255,255,255,0.9) 37%,var(--bg-input) 63%);
  background-size:400% 100%;animation:skeletonShimmer 1.2s ease-in-out infinite;
}
.skeleton-lines{display:flex;flex-direction:column;gap:8px;flex:1;padding-top:2px;}
.skeleton-lines i{
  display:block;height:10px;border-radius:var(--radius-full);
  background:linear-gradient(90deg,var(--bg-input) 25%,rgba(255,255,255,0.9) 37%,var(--bg-input) 63%);
  background-size:400% 100%;animation:skeletonShimmer 1.2s ease-in-out infinite;
}
.skeleton-lines i:nth-child(1){width:55%;}
.skeleton-lines i:nth-child(2){width:90%;}
.skeleton-lines i:nth-child(3){width:70%;}
@keyframes skeletonShimmer{
  0%{background-position:100% 0;}
  100%{background-position:0 0;}
}
@media(prefers-reduced-motion:reduce){
  .skeleton-avatar,.skeleton-lines i{animation:none;}
}

/* Logout lives under the user chip; see the .sidebar-logout rules above */

/* Forms: keep breathing room between fields and actions (login/signup too) */
.form > form{display:flex;flex-direction:column;gap:20px;}
.form .actions{margin-top:4px;}
.confirm-box form{display:flex;flex-direction:column;gap:16px;}
.confirm-box .actions{margin-top:4px;}

/* (1) During a View-Transition navigation the feed cross-fades as a whole:
   do not re-run per-card entrance animations inside it (double motion). */
.vt-nav #main-feed .profile-card,
.vt-nav #main-feed .profile-list-item,
.vt-nav #main-feed .stat-card,
.vt-nav #main-feed .calendar-event,
.vt-nav #main-feed .skeleton-card{animation:none!important;}

/* Content that arrived via a swap already cross-faded: never animate it twice */
.feed.no-entrance .profile-card,
.feed.no-entrance .profile-list-item,
.feed.no-entrance .stat-card,
.feed.no-entrance .calendar-event,
.feed.no-entrance .skeleton-card{animation:none!important;}

/* Club/event forms keep their fields inside #form-container */
#form-container{display:flex;flex-direction:column;gap:20px;}

/* ═══════════════════════════════════════════════════════════════
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ — /privacy/, /cookies/, /terms/
   Документ читают, а не разглядывают: текстовая колонка, спокойные
   акценты, никакой анимации поверх чтения.
   ═══════════════════════════════════════════════════════════════ */
.legal-doc{max-width:1000px;padding:16px 20px 32px;font-size:1rem;line-height:1.65;color:var(--text);}
.legal-doc-lead{font-size:0.9375rem;color:var(--text-gray);margin-bottom:16px;}
.legal-doc-meta{
  font-size:0.8125rem;color:var(--text-gray);
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:10px 12px;margin-bottom:20px;
}
.legal-doc-meta a{color:var(--text);font-weight:600;text-decoration:none;}
.legal-doc h2{font-size:1.0625rem;font-weight:700;margin:24px 0 8px;}
.legal-doc h3{font-size:0.9375rem;font-weight:700;margin:18px 0 6px;}
.legal-doc p{margin:0 0 10px;}
.legal-doc ul,.legal-doc ol{margin:0 0 12px 20px;}
.legal-doc li{margin-bottom:6px;}
.legal-doc a{color:var(--text);text-decoration:underline;text-underline-offset:2px;}
.legal-doc a:hover{color:var(--text);}
/* Кнопка-ссылка внутри документа не подчёркивается: подчёркивание нужно
   ссылкам в тексте, а не кнопкам. */
.legal-doc a.btn{text-decoration:none;}
.legal-doc code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:0.8125rem;background:var(--bg-input);border-radius:4px;padding:1px 5px;
}
.legal-table-wrap{overflow-x:auto;margin:0 0 14px;}
.legal-table{width:100%;border-collapse:collapse;margin:0 0 14px;font-size:0.875rem;}
.legal-table th,.legal-table td{
  text-align:left;vertical-align:top;padding:8px 10px;border-bottom:1px solid var(--border);
}
.legal-table th{font-weight:700;color:var(--text-gray);font-size:0.8125rem;}
.legal-consent{
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-xl);padding:14px 16px;margin:12px 0 16px;
}
.legal-consent h3{margin-top:0;}
.legal-consent p{font-size:0.875rem;color:var(--text-gray);}
.legal-nav{
  display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:28px;
  border-top:1px solid var(--border);padding-top:16px;
}
.legal-nav a{font-size:0.875rem;font-weight:600;text-decoration:none;}
.legal-nav a:hover{text-decoration:underline;text-underline-offset:2px;}

/* ═══════════════════════════════════════════════════════════════
   ПОДДЕРЖКА — страница с контактом администрации.
   В интерфейсе от неё остался один пункт «Поддержка» в левом
   сайдбаре (и в мобильном меню): адрес не мелькает в каждой ленте.
   Селекторы идут через .support-page, чтобы перебивать правила
   .legal-doc, которые задают свои отступы спискам и заголовкам.
   ═══════════════════════════════════════════════════════════════ */
.support-page{padding-bottom:40px;}
.support-page .support-lead{
  font-size:1rem;color:var(--text-gray);margin:0 0 22px;max-width:62ch;
}

.support-page .support-contact{
  display:flex;flex-direction:column;gap:14px;
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-2xl);padding:18px;margin:0 0 30px;
}
.support-page .support-contact h2{margin:0 0 6px;font-size:1.0625rem;}
.support-page .support-contact p{margin:0;color:var(--text-gray);font-size:0.9375rem;max-width:62ch;}
.support-page .support-contact-email{font-weight:600;color:var(--text);word-break:break-word;}

/* Форма живёт внутри карточки: внешние отступы и ширина уже заданы ею. */
.support-page .support-form{padding:0;max-width:none;gap:16px;}

/* Темы — карточками: на телефоне в одну колонку, на широком экране в две. */
.support-page .support-list{
  list-style:none;margin:0 0 30px;padding:0;display:grid;gap:10px;
}
@media(min-width:700px){
  .support-page .support-list{grid-template-columns:1fr 1fr;}
}

/* Документы — перечень: ссылки подчёркнуты, потому что в списке иначе
   не понять, что это ссылки, а не подписи. */
.support-page .support-docs{
  list-style:none;margin:0 0 30px;padding:0;
  display:flex;flex-direction:column;gap:8px;
}
.support-page .support-docs li{margin:0;}
.support-page .support-docs a{
  color:var(--text);font-size:0.9375rem;font-weight:600;
  text-decoration:underline;text-underline-offset:3px;
}
.support-page .support-list li{
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-xl);padding:12px 14px;margin:0;
}
.support-page .support-list strong{display:block;font-size:0.9375rem;margin-bottom:3px;}
.support-page .support-list span{display:block;font-size:0.875rem;color:var(--text-gray);line-height:1.5;}

/* Секции поддержки: заголовок — всегда скруглённая кнопка, а текст —
   отдельный скруглённый блок, который выезжает сверху. Нативный <details>
   продолжает работать без JS. */
.support-page .support-acc{
  margin:0 0 10px;border:0;background:none;overflow:visible;
  scroll-margin-top:84px;
}
.support-page .support-acc > summary{
  padding:0;cursor:pointer;list-style:none;overflow:hidden;
  border:1px solid var(--border);border-radius:var(--radius-xl);
  background:var(--bg-card);
}
.support-page .support-acc > summary::-webkit-details-marker{display:none;}
/* Строка заголовка — отдельный flex-контейнер, а не сам <summary>: так
   стрелка и название гарантированно стоят в одну строку во всех браузерах,
   даже когда <summary> рисует свой маркер. */
.support-page .support-acc__head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:15px 16px;transition:background var(--t);
}
.support-page .support-acc > summary:hover .support-acc__head{background:var(--bg-hover-light);}
.support-page .support-acc__title{
  margin:0;font-size:1rem;font-weight:700;color:var(--text);
  flex:1;min-width:0;
}
.support-page .support-acc__chevron{
  width:9px;height:9px;flex:0 0 9px;margin-top:-4px;
  border-right:2px solid var(--text-gray);border-bottom:2px solid var(--text-gray);
  transform:rotate(45deg);transition:transform var(--t),margin-top var(--t);
}
.support-page .support-acc[open] .support-acc__chevron{
  transform:rotate(-135deg);margin-top:4px;
}
.support-page .support-acc__panel{
  height:auto;overflow:hidden;padding-top:8px;
  transition:height .3s cubic-bezier(0.4,0,0.2,1),
             padding-top .3s cubic-bezier(0.4,0,0.2,1),
             opacity .22s ease,
             transform .3s cubic-bezier(0.4,0,0.2,1);
}
.support-page .support-acc__body{
  padding:16px;overflow:hidden;
  border:1px solid var(--border);border-radius:var(--radius-xl);
  background:var(--bg-card);
}
.support-page .support-acc__body > :first-child{margin-top:0;}
.support-page .support-acc__body > :last-child{margin-bottom:0;}
@media (prefers-reduced-motion: reduce){
  .support-page .support-acc__panel{transition:none;}
}

/* Подтверждение отправки: модальное окно поверх страницы, форма под ним
   остаётся заполненной — поэтому это <dialog>, а не отдельная страница. */
.support-modal{
  /* Глобальный сброс обнуляет margin у всех элементов, включая <dialog>,
     поэтому центр задаётся явно: fixed + inset:0 + margin:auto. */
  position:fixed;inset:0;margin:auto;
  width:calc(100% - 32px);max-width:440px;height:fit-content;
  max-height:calc(100dvh - 32px);overflow:auto;padding:24px;
  border:1px solid var(--border);border-radius:var(--radius-2xl);
  background:var(--bg-card);color:var(--text);
  box-shadow:0 24px 70px rgba(0,0,0,0.28);
}
.support-modal::backdrop{background:rgba(15,20,25,0.45);}
.support-modal h2{margin:0 0 10px;font-size:1.125rem;font-weight:800;}
.support-modal p{margin:0 0 18px;color:var(--text-gray);font-size:0.9375rem;line-height:1.5;}
.support-modal strong{color:var(--text);word-break:break-word;}
.support-modal .actions{justify-content:flex-end;}

/* ═══════════════════════════════════════════════════════════════
   ИНФОРМАЦИОННОЕ СООБЩЕНИЕ О COOKIE
   Сайт ставит только технически необходимые cookie, поэтому сообщение
   ничего не блокирует, не перекрывает контент и не просит согласия:
   контент остаётся читаемым, а сообщение закрывается кнопкой «Понятно».
   ═══════════════════════════════════════════════════════════════ */
.cookie-notice{
  position:fixed;left:16px;right:16px;bottom:16px;z-index:250;
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  max-width:560px;margin:0 auto;pointer-events:auto;
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px solid var(--border-gray);border-radius:var(--radius-2xl);
  padding:14px 16px;
  box-shadow:0 1px 0 rgba(0,0,0,0.04),0 8px 24px rgba(0,0,0,0.10);
  font-size:0.8125rem;color:var(--text-gray);
}
.cookie-notice[hidden]{display:none;}
.cookie-notice p{margin:0;flex:1 1 260px;line-height:1.5;}
.cookie-notice a{color:var(--text);font-weight:600;text-decoration:underline;text-underline-offset:2px;}
.cookie-notice-btn{
  flex:0 0 auto;height:34px;padding:0 18px;border-radius:var(--radius-full);
  border:1px solid var(--text);background:var(--text);color:var(--surface);
  font-family:var(--font);font-size:0.8125rem;font-weight:600;cursor:pointer;
  transition:background var(--t),color var(--t);
}
.cookie-notice-btn:hover{background:var(--surface);color:var(--text);}
@media(max-width:999px){
  .cookie-notice{left:12px;right:12px;}
  /* Палец, а не курсор: кнопка дорстаёт до удобных 44px */
  .cookie-notice-btn{height:44px;}
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN CLUB PANEL — /<slug>/admin/
   ═══════════════════════════════════════════════════════════════ */
.admin-club{max-width:1000px;margin:0;padding:12px 20px 32px;}
.admin-club-hero{
  display:flex;align-items:flex-start;justify-content:space-between;gap:18px;
  padding:24px;border:1px solid var(--border);border-radius:24px;
  background:linear-gradient(135deg,var(--surface) 0%,var(--bg-card) 100%);
  box-shadow:0 10px 30px rgba(15,20,25,0.06);
}
.admin-club-identity{display:flex;align-items:center;gap:16px;min-width:0;}
.admin-club-banner{
  width:120px;height:68px;flex:0 0 120px;border-radius:12px;object-fit:cover;
  padding:0;background:var(--bg-input);border:1px solid var(--border);
}
.admin-club-banner--letter{
  display:flex;align-items:center;justify-content:center;
  font-family:'KroogWordmark',var(--font);font-size:30px;font-weight:600;color:var(--text);
}
.admin-club-heading{min-width:0;}
.admin-club-kicker{
  margin:0 0 4px;font-size:0.6875rem;font-weight:800;letter-spacing:0.12em;
  text-transform:uppercase;color:var(--text-gray);
}
.admin-club h1{
  margin:0;font-size:1.35rem;font-weight:800;letter-spacing:-0.03em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.admin-club-link{
  display:inline-block;margin-top:4px;font-size:0.8125rem;font-weight:600;
  color:var(--text-gray);text-decoration:underline;text-underline-offset:3px;
}
.admin-club-alert{
  margin-top:14px;padding:12px 16px;border-radius:16px;
  background:var(--danger-bg);color:#8b0000;font-size:0.875rem;font-weight:600;
}
.admin-club-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:10px;margin:14px 0 18px;}
.admin-club-stats > div{
  display:flex;flex-direction:column;gap:2px;padding:14px 16px;
  background:var(--surface);border:1px solid var(--border);border-radius:18px;
}
.admin-club-stats strong{font-size:1.5rem;line-height:1;font-weight:800;}
.admin-club-stats span{font-size:0.75rem;color:var(--text-gray);}
.admin-club-section{
  margin-bottom:14px;padding:20px;background:var(--surface);
  border:1px solid var(--border);border-radius:22px;
}
.admin-club-section h2{
  margin:0 0 12px;font-size:0.75rem;font-weight:800;letter-spacing:0.1em;
  text-transform:uppercase;color:var(--text-gray);
}
.admin-club-text,.admin-club-contacts{font-size:0.9375rem;line-height:1.65;color:var(--text);}
.admin-club-muted{font-size:0.9375rem;color:var(--text-muted);}
.admin-club-tags{margin:10px 0;}
.admin-club-contacts{margin-top:10px;color:var(--text-gray);}
.admin-club-meta-line{margin:12px 0 0;font-size:0.75rem;color:var(--text-muted);}
.admin-club .manage-panel{background:var(--bg-card);}
@media(max-width:640px){
  .admin-club{padding:8px 10px 24px;}
  .admin-club-hero{padding:16px;border-radius:20px;flex-direction:column;gap:12px;}
  .admin-club-banner{width:88px;height:56px;flex-basis:88px;border-radius:12px;padding:0;}
  .admin-club-stats{grid-template-columns:1fr 1fr 1fr;gap:6px;}
  .admin-club-stats > div{padding:10px;}
  .admin-club-stats strong{font-size:1.2rem;}
  .admin-club-section{padding:16px;border-radius:18px;}
}


/* ═══════════════════════════════════════════════════════════════
   IMAGE UPLOAD — preview, filename, delete and replace
   ═══════════════════════════════════════════════════════════════ */
.image-upload-current{
  position:relative;display:flex;align-items:center;gap:14px;padding:12px 56px 12px 12px;
  background:var(--bg-card);border:1px solid var(--border);border-radius:16px;
}
.image-upload-current[hidden]{display:none;}
.image-upload-preview{
  width:72px;height:72px;flex:0 0 72px;object-fit:contain;
  padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:12px;
}
.image-upload-info{display:flex;flex-direction:column;gap:6px;min-width:0;}
.image-upload-name{
  font-size:0.8125rem;color:var(--text-gray);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.image-upload-remove{
  position:absolute;right:10px;top:50%;transform:translateY(-50%);
  display:flex;align-items:center;
}
.image-upload-remove input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}
.image-upload-remove.is-busy{opacity:0.5;pointer-events:none;}
.image-upload-trash{
  width:38px;height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center;
  border:0;border-radius:50%;background:transparent;color:var(--danger);cursor:pointer;
  transition:background var(--t),color var(--t);
}
.image-upload-trash svg{width:20px;height:20px;}
.image-upload-trash:hover,
.image-upload-trash:focus-visible{background:var(--danger);color:var(--surface);}
.image-upload-removed{
  display:inline-block;margin-top:8px;font-size:0.8125rem;font-weight:600;color:var(--text-gray);
}
.image-upload-removed[hidden]{display:none;}
.image-upload-choose{
  display:inline-flex;align-items:center;justify-content:center;width:fit-content;
  margin-top:10px;padding:8px 14px;border:1px solid var(--text);border-radius:var(--radius-full);
  font-size:0.8125rem;font-weight:700;color:var(--text);cursor:pointer;
  transition:background var(--t),color var(--t);
}
.image-upload-choose:hover{background:var(--text);color:var(--surface);}
.image-upload-choose input{
  position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;
}
@media(max-width:640px){
  .image-upload-current{align-items:flex-start;flex-wrap:wrap;}
  .image-upload-preview{width:64px;height:64px;flex-basis:64px;}
}

/* Structured contacts in the club admin panel */
.admin-club-contact-list{
  display:flex;flex-direction:column;gap:8px;
  margin:12px 0 0;padding:0;list-style:none;
}
.admin-club-contact-list li{display:flex;align-items:baseline;gap:10px;font-size:0.9375rem;}
.admin-club-contact-list span{
  flex:0 0 82px;color:var(--text-muted);font-size:0.6875rem;font-weight:700;
  letter-spacing:0.04em;text-transform:uppercase;
}
.admin-club-contact-list a{color:var(--text);font-weight:600;text-decoration:none;word-break:break-word;}
.admin-club-contact-list a:hover{text-decoration:underline;}

/* External-site confirmation: show the exact destination, not just "some site" */
.external-site-modal .actions{align-items:center;}
.external-site-modal__cancel,
.external-site-modal__go{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;padding:10px 18px;border-radius:var(--radius-full);
  font-family:var(--font);font-size:0.875rem;font-weight:700;
  cursor:pointer;text-decoration:none;transition:background var(--t),color var(--t),border-color var(--t);
}
.external-site-modal__cancel{
  border:1px solid var(--text);background:var(--surface);color:var(--text);
}
.external-site-modal__cancel:hover{background:var(--bg-hover-light);}
.external-site-modal__go,
.external-site-modal a.external-site-modal__go,
.external-site-modal a.external-site-modal__go:visited{
  border:1px solid var(--text);background:var(--text);color:var(--surface);
}
.external-site-modal__go:hover,
.external-site-modal a.external-site-modal__go:hover{
  background:var(--surface);color:var(--text);text-decoration:none;
}
.external-site-modal .external-site-url{
  margin:-8px 0 18px;padding:10px 12px;
  border:1px solid var(--border);border-radius:var(--radius-xl);
  background:var(--bg-input);color:var(--text);font-size:0.8125rem;
  overflow-wrap:anywhere;
}

/* Right-click menu on a club card */
.context-menu{
  position:fixed;z-index:400;min-width:184px;padding:6px;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-xl);
  box-shadow:0 16px 40px rgba(0,0,0,0.18),0 4px 12px rgba(0,0,0,0.08);
}
.context-menu[hidden]{display:none;}
.context-menu__item{
  display:flex;align-items:center;gap:10px;width:100%;
  padding:9px 11px;border-radius:var(--radius-lg);
  color:var(--text);font-size:0.875rem;font-weight:600;
  text-decoration:none;transition:background var(--t),color var(--t);
}
.context-menu__item:hover,
.context-menu__item:focus-visible{
  background:var(--bg-hover-light);color:var(--text);text-decoration:none;
}
.context-menu__item svg{width:18px;height:18px;flex:0 0 18px;}
.support-ticket-success__title{margin:0 0 8px;font-size:1.0625rem;font-weight:800;}

/* ── Club logo cropper ──────────────────────────────────────────── */
.image-upload-hint{font-size:0.75rem;color:var(--text-muted);line-height:1.4;}
.crop-modal{max-width:520px;}
.crop-modal__hint{margin:0 0 14px;color:var(--text-gray);font-size:0.875rem;line-height:1.5;}
.crop-modal__error{margin:0 0 14px;padding:10px 12px;border:1px solid var(--danger);border-radius:12px;color:var(--danger);font-size:0.8125rem;font-weight:600;}
.crop-stage{
  /* Баннер — широкий прямоугольник 3:1: рамка показывает ровно то, что
     попадёт на страницу клуба. */
  position:relative;width:100%;aspect-ratio:3/1;margin:0 0 16px;
  overflow:hidden;border-radius:20px;background:#dfe3e6;
  cursor:grab;touch-action:none;user-select:none;
}
.crop-stage.is-dragging{cursor:grabbing;}
.crop-stage__image{
  position:absolute;left:0;top:0;max-width:none;pointer-events:none;
  user-select:none;-webkit-user-drag:none;
}
.crop-stage__guide{
  position:absolute;inset:0;border-radius:inherit;
  border:2px solid rgba(255,255,255,0.92);
  pointer-events:none;
}
.crop-zoom{
  display:flex;align-items:center;gap:12px;margin:0 0 18px;
  color:var(--text-gray);font-size:0.8125rem;font-weight:700;
}
.crop-zoom input{flex:1;accent-color:var(--text);}
.crop-modal__cancel,.crop-modal__apply{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;padding:10px 18px;border-radius:var(--radius-full);
  font-family:var(--font);font-size:0.875rem;font-weight:700;cursor:pointer;
  transition:background var(--t),color var(--t),border-color var(--t);
}
.crop-modal__cancel{border:1px solid var(--text);background:var(--surface);color:var(--text);}
.crop-modal__cancel:hover{background:var(--bg-hover-light);}
.crop-modal__apply{border:1px solid var(--text);background:var(--text);color:var(--surface);}
.crop-modal__apply:hover{background:var(--surface);color:var(--text);}
.crop-modal .actions{justify-content:flex-end;}
