/* ===== ГЛОБАЛЬНЫЙ СБРОС И ПЕРЕМЕННЫЕ ===== */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
    --bg-main: #f1f5f9; --bg-card: #ffffff; --bg-secondary: #f8fafc; --bg-accent: #f1f5f9;
    --text-primary: #0f172a; --text-secondary: #334155; --text-tertiary: #475569; --text-muted: #64748b;
    --border-light: #cbd5e1; --border-hover: #64748b; --border-card: #cbd5e1;
    --accent: #2563eb; --accent-soft: #eff6ff; --accent-hover: #1d4ed8;
    --success: #059669; --success-bg: #d1fae5;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.02); --shadow-md: 0 4px 12px rgba(0,0,0,0.04); --shadow-hover: 0 8px 20px rgba(0,0,0,0.06);
    --radius-md: 6px; --radius-sm: 4px; --radius-lg: 8px;
    --header-height: 64px; --city-header-height: 60px; --filter-height: 56px;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background-color: var(--bg-main); color: var(--text-primary); line-height: 1.5; -webkit-font-smoothing: antialiased; padding-bottom: 80px; }
.header { position: fixed; top:0; left:0; right:0; height:var(--header-height); background:white; padding:0 24px; display:flex; align-items:center; justify-content:space-between; z-index:1000; border-bottom:1px solid var(--border-light); box-shadow:0 2px 4px rgba(0,0,0,0.02); }
.header-left { display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.logo-img { width:50px; height:50px; border-radius:var(--radius-sm); object-fit:contain; }
.header h1 { font-size:1.25rem; font-weight:600; letter-spacing:-0.01em; color:var(--text-primary); margin:0; }
.slogan { font-size:0.9rem; color:var(--text-tertiary); font-weight:400; display:none; }
.consent-block { margin:18px 0 22px 0; padding:12px 16px; background:rgba(58,197,187,0.05); border-left:3px solid var(--accent,#3ac5bb); border-radius:2px; display:flex; flex-direction:column; gap:8px; }
.consent-checkbox-wrapper { display:flex; align-items:flex-start; gap:10px; margin-bottom:4px; }
.consent-checkbox-wrapper input[type="checkbox"] { flex-shrink:0; width:16px; height:16px; margin-top:3px; cursor:pointer; accent-color:#3ac5bb; }
.consent-checkbox-label { font-size:0.72rem; line-height:1.4; color:var(--text-muted,#5a6a7a); }
.consent-link { color:var(--accent,#3ac5bb); text-decoration:none; font-weight:500; transition:opacity 0.2s; border-bottom:none; }
.consent-link:hover { opacity:0.7; text-decoration:none; }
@media (min-width:1024px) { .slogan { display:block; margin-left:16px; position:absolute; left:50%; transform:translateX(-50%); white-space:nowrap; } }
.hamburger { width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:var(--radius-sm); color:var(--text-secondary); font-size:1.6rem; font-weight:300; cursor:pointer; transition:background 0.2s; }
.hamburger:hover { background:var(--bg-accent); }
.city-header { position:fixed; top:var(--header-height); left:0; right:0; background:var(--bg-main); padding:12px 24px; display:flex; justify-content:space-between; align-items:center; z-index:999; border-bottom:1px solid var(--border-light); }
.city-select-container select { font-family:'Inter',sans-serif; font-size:1rem; font-weight:500; padding:8px 42px 8px 16px; border:1px solid var(--border-light); border-radius:var(--radius-sm); background:white; color:var(--text-primary); appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:16px; cursor:pointer; max-width:100%; }
.add-button { background:#10b981; border:none; color:white; width:38px; height:38px; border-radius:var(--radius-sm); font-size:1.6rem; font-weight:300; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background 0.2s; box-shadow:var(--shadow-sm); flex-shrink:0; }
.add-button:hover { background:#059669; }
.filter-section { position:fixed; top:calc(var(--header-height) + var(--city-header-height)); left:0; right:0; background:var(--bg-main); padding:8px 20px; z-index:998; display:flex; gap:8px; flex-wrap:wrap; align-items:center; border-bottom:1px solid var(--border-light); margin-top:-1px; }
select, .search-input { font-family:'Inter',sans-serif; font-size:0.85rem; padding:8px 12px; border:1px solid var(--border-light); border-radius:var(--radius-sm); background:white; color:var(--text-primary); outline:none; }
select { min-width:180px; flex:0 1 auto; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; background-size:14px; }
.search-container, .favorites-container, .promo-filter-container, .filters-toggle-container { display:flex; align-items:center; background:white; border:1px solid var(--border-light); border-radius:var(--radius-sm); padding:0 8px 0 12px; gap:6px; height:38px; box-sizing:border-box; }
.search-container { flex:1 1 auto; max-width:280px; margin-left:auto; }
.favorites-container, .promo-filter-container, .filters-toggle-container { flex:0 0 auto; gap:4px; padding:0 10px; cursor:pointer; user-select:none; transition:border-color 0.2s, background 0.2s; }
.favorites-container:hover, .promo-filter-container:hover, .filters-toggle-container:hover { border-color:var(--border-hover); }
.favorites-container.active { border-color:#e74c3c; background:#fff5f5; }
.promo-filter-container.active { border-color:#f59e0b; background:#fffbeb; }
.filters-toggle-container.has-filter { border-color:#22c55e; background:#f0fdf4; }
.filters-toggle-container .filters-label { font-size:0.85rem; font-weight:500; color:var(--text-secondary); white-space:nowrap; margin-left:8px; transition:color 0.2s; }
.filters-toggle-container .filters-icon { font-size:1em; line-height:1; color:var(--text-muted); transition:color 0.2s; }
.filters-toggle-container.has-filter .filters-label { color:#22c55e; }
.filters-toggle-container.has-filter .filters-icon { color:#22c55e; }
.favorites-container .favorite-label, .promo-filter-container .promo-label { font-size:0.85rem; font-weight:500; color:var(--text-secondary); white-space:nowrap; margin-left:8px; }
.favorites-container .favorite-filter, .promo-filter-container .promo-filter { font-size:1em; line-height:1; color:var(--text-muted); transition:color 0.2s; }
.favorites-container.active .favorite-filter { color:#e74c3c; }
.favorites-container.active .favorite-label { color:#e74c3c; }
.promo-filter-container.active .promo-filter { color:#f59e0b; }
.promo-filter-container.active .promo-label { color:#f59e0b; }
@media (max-width:700px) {
    :root { --filter-height:84px; --city-header-height:56px; }
    .filter-section { display:flex; flex-wrap:wrap; gap:6px; padding:6px 12px; align-items:center; margin-top: -3px;}
    .filter-section select { min-width:0; flex:1 1 calc(50% - 6px); font-size:0.75rem; padding:6px 8px; }
    .search-container { flex:1 1 50%; max-width:none; margin-left:0; height:32px; padding:0 6px; }
    .favorites-container, .promo-filter-container, .filters-toggle-container { flex:0 0 auto; height:32px; padding:0 8px; }
    .favorites-container .favorite-label, .promo-filter-container .promo-label, .filters-toggle-container .filters-label { display:none; }
    .favorites-container .favorite-filter, .promo-filter-container .promo-filter, .filters-toggle-container .filters-icon { font-size:1.1em; }
    .search-container input { font-size:0.75rem; padding:4px 0; }
    .search-icon, .clear-icon { font-size:0.9rem; padding:4px; }
    .filter-section .search-container { order:3; margin-right:auto; }
    .filter-section .favorites-container { order:4; }
    .filter-section .promo-filter-container { order:5; }
    .filter-section .filters-toggle-container { order:6; }
    .filter-section select:first-of-type { order:1; flex:1 1 45%; }
    .filter-section select:last-of-type { order:2; flex:1 1 45%; }
}
.search-input { border:none; padding:8px 0; width:100%; background:transparent; font-size:0.85rem; flex:1; min-width:0; }
.search-input:focus { box-shadow:none; }
.search-icon, .clear-icon { font-size:1.1rem; color:var(--text-tertiary); cursor:pointer; padding:6px; border-radius:var(--radius-sm); transition:background 0.2s; display:flex; align-items:center; justify-content:center; }
.search-icon:hover, .clear-icon:hover { background:var(--bg-secondary); }
.clear-icon { display:none; }

/* ===== КОНТЕНТ: снова учитываем filter-height, но панель стала ниже ===== */
.content { margin-top:calc(var(--header-height) + var(--city-header-height) + var(--filter-height) + 4px); padding:8px 20px 40px; margin-left:auto; margin-right:auto; display:grid; grid-template-columns:1fr; gap:33px; transition:opacity 0.2s; align-items:stretch; }
@media (min-width:768px) { .content { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1024px) { .content { grid-template-columns:repeat(3,1fr); } }

.club-card { background:var(--bg-card); border-radius:var(--radius-md); padding:16px; box-shadow:var(--shadow-sm); border:1.5px solid var(--border-card); transition:border-color 0.2s, box-shadow 0.2s, transform 0.1s; cursor:pointer; -webkit-tap-highlight-color:transparent; display:flex; flex-direction:column; justify-content:space-between; height:100%; word-wrap:break-word; overflow-wrap:break-word; position:relative; overflow:hidden; }
.club-card:hover { border-color:var(--border-hover); border-width:1.5px; box-shadow:var(--shadow-hover); }
.club-card h2 { font-size:1rem; font-weight:600; margin:0 0 6px 0; color:var(--text-primary); letter-spacing:-0.01em; line-height:1.4; word-break:break-word; }
.club-card h2 a { color:black; text-decoration:none; }
.club-card h2 a:hover { color:var(--accent-hover); text-decoration:none; }
.club-info { font-size:0.85rem; color:var(--text-secondary); margin:2px 0; display:flex; flex-wrap:wrap; align-items:center; gap:1px; word-break:break-word; text-decoration:none; }
.club-info .address-link { color:var(--text-secondary); text-decoration:none; display:inline-block; margin-right:4px; }
.club-info .address-link:hover { text-decoration:underline; }
.address-link img { width:16px; height:16px; vertical-align:middle; margin-right:4px; }
.phone-masked, .phone-revealed, .wa-masked { font-weight:500; color:var(--text-primary); padding:4px 10px 4px 0px; border-radius:var(--radius-sm); display:inline-flex; align-items:center; gap:4px; font-size:0.85rem; word-break:break-word; text-decoration:none; }
.phone-revealed a { color:var(--accent); text-decoration:none; font-weight:600; word-break:break-word; }
.club-card .club-info img { width:16px; height:16px; opacity:0.8; flex-shrink:0; }
.club-info a { color:var(--accent); text-decoration:none; }
.club-info a:hover { color:var(--accent-hover); text-decoration:none; }
.direction-badge { display:inline-block; background:var(--bg-secondary); border-radius:var(--radius-sm); font-size:0.8rem; font-weight:500; color:var(--text-secondary); margin-top:2px; word-break:break-word; }
.club-card button {
    font-family:'Inter',sans-serif;
    font-size:0.85rem;
    font-weight:500;
    padding:6px 10px;
    border-radius:var(--radius-sm);
    border:1px solid var(--border-light);
    background:#a8efbf;
    color:var(--text-primary);
    cursor:pointer;
    transition:background 0.2s, border-color 0.2s;
    margin-right:2px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    white-space:nowrap;
}
.club-card button:hover { background:var(--bg-secondary); border-color:var(--text-muted); }
.card-actions { display:flex; justify-content:space-between; align-items:center; padding-top:8px; flex-wrap:nowrap; gap:2px; }
.card-actions-left { display:flex; gap:4px; flex-wrap:nowrap; align-items:center; overflow-x:auto; flex:1; }
.card-actions-right { display:flex; gap:10px; align-items:center; flex-shrink:0; }
.favorite-btn { background:transparent !important; border:none !important; font-size:1.8rem; padding:0 2px !important; margin:0 !important; color:#ccc; cursor:pointer; transition:color 0.2s; line-height:1; }
.favorite-btn.active { color:#e74c3c; }
.favorite-btn:hover { color:#e74c3c; }
.favorite-btn:active { color:#e74c3c; }
.promo-icon-btn { background:transparent !important; border:none !important; font-size:1.8rem; padding:0 2px !important; margin:0 !important; color:#f59e0b; cursor:pointer; transition:transform 0.2s; line-height:1; }
.promo-icon-btn:hover { transform:scale(1.1); }
.club-register-button { background:var(--accent) !important; border:1px solid var(--accent) !important; color:white !important; }
.club-register-button:hover { background:var(--accent-hover) !important; border-color:var(--accent-hover) !important; }
.club-share-button { background:var(--bg-secondary) !important; border:1px solid var(--border-light) !important; color:var(--text-secondary) !important; padding:5px 10px !important; min-width:auto; }
.club-share-button i { color:#2563eb; }
.club-share-button:hover { background:var(--border-light) !important; border-color:var(--text-muted) !important; color:var(--text-primary) !important; }
.club-card.banner { background:#fefce8; border:1.5px solid #fde68a; box-shadow:var(--shadow-sm); }
.club-card.banner:hover { border-color:#f59e0b; border-width:1.5px; }
.club-card.banner h4 { font-weight:600; color:#854d0e; margin:0 0 6px 0; font-size:0.9rem; }
.club-card.banner div { font-size:0.85rem; word-break:break-word; }
.club-card.banner a { text-decoration:none; font-weight:600; font-size:0.9rem; word-break:break-word; }
.club-card.banner a:hover { text-decoration:underline; }
.banner-desktop-text { display: block; }
.banner-mobile-text { display: none; }
@media (max-width: 700px) {
    .banner-desktop-text { display: none; }
    .banner-mobile-text { display: block; }
}
@media (max-width: 480px) {
    .banner-desktop-text { display: none !important; }
    .banner-mobile-text { display: block !important; }
}
.pagination { position:fixed; bottom:0; left:0; right:0; background:var(--bg-main); padding:10px 20px; z-index:100; border-top:1px solid var(--border-light); box-shadow:0 -2px 10px rgba(0,0,0,0.05); display:flex; justify-content:center; align-items:center; gap:10px; flex-wrap:wrap; }
.pagination button { font-family:'Inter',sans-serif; background:white; border:1px solid var(--border-light); color:var(--text-primary); padding:6px 12px; border-radius:var(--radius-sm); font-weight:500; font-size:1rem; transition:all 0.15s; cursor:pointer; line-height:1.2; min-width:36px; }
.pagination button:hover:not(:disabled) { background:var(--bg-secondary); border-color:var(--text-tertiary); }
.pagination button:disabled { opacity:0.4; cursor:default; }
#pageInfo { font-size:0.85rem; color:var(--text-tertiary); font-weight:450; margin:0 4px; }
.modal, .modal-details { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.3); backdrop-filter:blur(4px); z-index:2000; display:none; align-items:center; justify-content:center; opacity:0; transition:opacity 0.25s ease; }
.modal.active, .modal-details.active { display:flex; opacity:1; }
.modal-content, .modal-details-content { background:white; border-radius:var(--radius-md); width:90%; max-width:500px; max-height:90vh; overflow-y:auto; padding:24px 20px; box-shadow:0 20px 40px rgba(0,0,0,0.05); transform:scale(0.98); transition:transform 0.25s; border:1px solid var(--border-light); }
.modal.active .modal-content, .modal-details.active .modal-details-content { transform:scale(1); }
.close-menu { font-size:1.8rem; line-height:1; cursor:pointer; color:var(--text-tertiary); transition:color 0.2s; }
.close-menu:hover { color:var(--text-primary); }
.form-group { margin-bottom:6px; display:flex; align-items:center; gap:8px; background:var(--bg-secondary); padding:4px 14px; border-radius:var(--radius-sm); border:1px solid transparent; transition:border 0.2s; }
.form-group:focus-within { border-color:var(--accent); background:white; }
.form-group input, .form-group textarea { width:100%; padding:6px 0; border:none; background:transparent; font-family:'Inter',sans-serif; font-size:0.9rem; outline:none; }
.form-group textarea { min-height:70px; resize:vertical; padding:10px 0; }
.side-menu { position:fixed; top:0; right:-400px; width:360px; height:100%; background:white; box-shadow:-8px 0 30px rgba(0,0,0,0.04); transition:right 0.3s cubic-bezier(0.2,0,0,1); z-index:1100; display:flex; flex-direction:column; border-left:1px solid var(--border-light); }
.side-menu.active { right:0; }
.side-menu-header { padding:20px 20px 16px; border-bottom:1px solid var(--border-light); display:flex; justify-content:space-between; align-items:center; }
.side-menu-content { padding:20px; overflow-y:auto; flex:1; }
.menu-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.2); backdrop-filter:blur(2px); z-index:1099; display:none; }
.city-info-card { background:var(--bg-secondary); padding:16px; border-radius:var(--radius-md); margin-bottom:24px; text-align:center; }
.city-info h3 { margin:0 0 8px 0; font-size:1rem; line-height:1.5; text-align:center; }
.city-highlight { font-weight:700; color:var(--accent); }
.telegram-channel-info { font-size:0.85rem; color:var(--text-secondary); line-height:1.5; text-align:center; }
.telegram-channel-info p { text-align:justify; }
.telegram-channel-info a { color:var(--accent); text-decoration:none; font-weight:600; }
.instruction-section { margin-bottom:24px; }
.section-header { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.section-icon { font-size:1.3rem; }
.features-grid { display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.feature-item { display:flex; align-items:flex-start; gap:10px; padding:10px; background:var(--bg-secondary); border-radius:var(--radius-md); font-size:0.85rem; }
.warning-note { background:#fff3cd; border:1px solid #ffeaa7; border-radius:var(--radius-md); padding:14px; display:flex; gap:10px; margin-top:14px; font-size:0.85rem; }
.benefits-list { display:flex; flex-direction:column; gap:14px; margin-bottom:18px; }
.benefit-item { display:flex; align-items:flex-start; gap:12px; padding:14px; background:var(--bg-secondary); border-radius:var(--radius-md); font-size:0.85rem; }
.benefit-number { background:var(--accent); color:white; width:22px; height:22px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:bold; flex-shrink:0; }
.action-card { background:var(--accent-soft); border-radius:var(--radius-md); padding:16px; display:flex; align-items:flex-start; gap:12px; margin-top:14px; font-size:0.85rem; }
.telegram-button { display:block; background:var(--accent); color:white; text-align:center; padding:12px; border-radius:var(--radius-sm); font-weight:600; text-decoration:none; transition:background 0.2s; margin-top:14px; font-size:0.85rem; }
.telegram-button:hover { text-decoration:underline; }
#organizations-table { width:100%; border-collapse:collapse; background:white; border-radius:var(--radius-md); overflow:hidden; font-size:0.8rem; margin:14px 0; border:1px solid var(--border-light); }
#organizations-table th { background:var(--bg-secondary); padding:10px 6px; font-weight:600; color:var(--text-primary); border-bottom:1px solid var(--border-light); font-size:0.8rem; }
#organizations-table td { padding:10px 6px; border-bottom:1px solid var(--border-light); font-size:0.8rem; }
.highlighted-row { background:var(--accent-soft) !important; }
.copyright { text-align:center; padding-top:24px; color:var(--text-muted); font-size:0.75rem; border-top:1px solid var(--border-light); margin-top:20px; margin-bottom:15px; }
#copy-notification { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:#0f172a; color:white; padding:10px 24px; border-radius:var(--radius-md); font-size:0.9rem; z-index:9999; box-shadow:0 4px 12px rgba(0,0,0,0.15); transition:opacity 0.3s; opacity:0; pointer-events:none; }
@media (max-width:700px) {
    .club-card { padding:12px; }
    .club-card h2 { font-size:0.9rem; }
    .club-info, .phone-masked, .phone-revealed { font-size:0.75rem; }
    .direction-badge { font-size:0.7rem; }
    .club-card button { font-size:0.8rem; padding:4px 8px; }
    .card-actions-left { gap:2px; }
    .favorite-btn, .promo-icon-btn { font-size:1.5rem; }
    .club-share-button { padding:4px 8px; }
    .content { gap:14px; padding:8px 12px 30px; margin-top:calc(var(--header-height) + var(--city-header-height) + var(--filter-height) + 4px); }
    .city-header { padding:10px 12px; }
    .city-select-container select { font-size:0.85rem; padding:6px 30px 6px 10px; max-width:200px; }
    .add-button { width:34px; height:34px; font-size:1.4rem; }
}
@media (max-width:480px) {
    .header h1 { font-size:1.2rem; }
    .logo-img { width:40px; height:40px; }
    .hamburger { width:32px; height:32px; font-size:1.3rem; }
    .side-menu { width:100%; right:-100%; }
    .city-select-container select { max-width:160px; font-size:0.8rem; }
    .add-button { width:32px; height:32px; font-size:1.3rem; }
}
.loader { display:none; position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:1001; }
.double-button-group { display:flex; gap:20px; justify-content:center; margin-top:4px; }
.channel-btn { display:inline-block; padding:6px 16px; background:var(--accent); color:white; text-decoration:none; border-radius:var(--radius-sm); width:fit-content; font-size:0.85rem; font-weight:500; transition:background 0.2s; cursor:pointer; }
.channel-btn:hover { background:var(--accent-hover); }
.brand-title { font-size:1rem; font-weight:700; margin:6px 0 0px; text-align:center; letter-spacing:-0.3px; color:#1e3a8a; }
.vizitka-image { width:100%; border-radius:6px; border:1px solid var(--border-light); }
.vizitka-row { margin-bottom:12px; }
.vizitka-label { font-size:0.7rem; font-weight:600; color:var(--text-secondary); margin-bottom:4px; display:block; text-transform:uppercase; letter-spacing:0.5px; }
.vizitka-input-group { display:flex; gap:6px; align-items:center; }
.vizitka-input { flex:1; padding:8px 10px; border:1px solid var(--border-light); border-radius:4px; font-size:0.75rem; background:var(--bg-secondary); font-family:monospace; color:var(--text-primary); }
.vizitka-btn-icon { width:32px; height:32px; border:1px solid var(--border-light); border-radius:4px; cursor:pointer; font-size:0.85rem; display:inline-flex; align-items:center; justify-content:center; transition:all 0.2s; background:white; color:var(--text-secondary); }
.vizitka-btn-icon:hover { background:var(--bg-secondary); border-color:var(--text-muted); }
.vizitka-png-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; padding:8px 0; border-top:1px solid var(--border-light); border-bottom:1px solid var(--border-light); }
.vizitka-png-link { flex:1; font-size:0.7rem; color:var(--accent); text-decoration:none; word-break:break-all; text-align:center; }
.vizitka-png-link:hover { text-decoration:underline; }
.vizitka-png-download-btn { flex:1; background:none; border:none; cursor:pointer; font-size:0.7rem; color:var(--accent); }
.vizitka-png-download-btn:hover { text-decoration:underline; }
.modal-success-message { display:none; text-align:center; padding:20px 0; }
.modal-success-message h2 { font-size:1.3rem; margin-bottom:10px; color:var(--success); }
.modal-success-message p { font-size:0.95rem; color:var(--text-secondary); margin-bottom:20px; }
.modal-success-message .btn-close-success { background:var(--accent); border:none; color:white; padding:10px 30px; border-radius:var(--radius-sm); font-weight:600; font-size:0.85rem; cursor:pointer; }
.modal-success-message .btn-close-success:hover { background:var(--accent-hover); }
.feedback-form .form-group { margin-bottom:6px; padding:2px 10px; border-radius:4px; background:var(--bg-secondary); }
.feedback-form .form-group input, .feedback-form .form-group textarea, .feedback-form .form-group select { padding:6px 0; font-size:0.85rem; line-height:1.3; }
.feedback-form .form-group textarea { min-height:50px; padding:4px 0; }
.feedback-form .form-group select { padding:6px 0; background:transparent; }
.feedback-form .consent-block { margin:6px 0 10px 0; padding:6px 10px; }
.feedback-form .consent-checkbox-label { font-size:0.68rem; line-height:1.3; }
.feedback-form button[type="submit"] { padding:8px; font-size:0.85rem; }
@media (max-width:480px) {
    .feedback-form .form-group { padding:2px 8px; }
    .feedback-form .form-group input, .feedback-form .form-group textarea, .feedback-form .form-group select { font-size:0.8rem; }
    .feedback-form .form-group textarea { min-height:40px; }
}
.promo-ribbon {
    position: absolute;
    top: 12px;
    right: -30px;
    transform: rotate(45deg);
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s;
}
.promo-ribbon:hover {
    opacity: 0.85;
}
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(3px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    transform: none;
}
.loader.active {
    display: flex;
}
.loader::after {
    content: "";
    width: 48px;
    height: 48px;
    border: 5px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.loader-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.filter-group {
    margin-bottom: 16px;
}
.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: white;
    color: var(--text-primary);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}
.filter-group input[readonly] {
    background: #f0f0f0;
    color: #666;
    background-image: none;
}
.filter-group input[type="range"] {
    width: 100%;
    margin-top: 4px;
    padding: 0;
    border: none;
    background: transparent;
    appearance: auto;
}
.filter-group .range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.filter-group .checkbox-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter-group .checkbox-group-vertical label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}
.filter-group .checkbox-group-vertical label:last-child {
    border-bottom: none;
}
.filter-group .checkbox-group-vertical input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}
.filter-group .filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: column;
}
.filter-group .filter-row > * {
    flex: 1;
    min-width: 100px;
}
.filter-group .search-actions,
.filter-group .address-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-group .search-actions button,
.filter-group .address-actions button {
    padding: 6px 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.filter-group .search-actions button:hover,
.filter-group .address-actions button:hover {
    background: var(--bg-secondary);
}
.filter-group .search-actions button.apply-btn,
.filter-group .address-actions button.apply-btn {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.filter-group .search-actions button.apply-btn:hover,
.filter-group .address-actions button.apply-btn:hover {
    background: var(--accent-hover);
}
.filter-group .search-actions button.clear-btn,
.filter-group .address-actions button.clear-btn {
    background: #f0f0f0;
}
#modal-filters .modal-content {
    max-width: 600px;
}
#modal-filters .map-placeholder {
    background: #e9ecef;
    min-height: 280px;
    height: 40vh;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}
#modal-filters .map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 480px) {
    #modal-filters .modal-content {
        padding: 16px;
    }
    .filter-group .search-actions button span,
    .filter-group .address-actions button span {
        display: none;
    }
    .filter-group .search-actions button,
    .filter-group .address-actions button {
        padding: 6px 8px;
    }
    #modal-filters .map-placeholder {
        min-height: 180px;
        height: 30vh;
        max-height: 280px;
    }
}
#modal-filters .filter-actions {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}
#modal-filters .filter-actions button {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid var(--border-light);
    background: white;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#modal-filters .filter-actions button.apply-btn {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
#modal-filters .filter-actions button.apply-btn:hover {
    background: var(--accent-hover);
}
#modal-filters .filter-actions button.clear-btn {
    background: #f0f0f0;
}
#modal-filters .filter-actions button.clear-btn:hover {
    background: #e0e0e0;
}
#modal-filters .filter-actions button.close-btn {
    background: lightgray;
}
#modal-filters .filter-actions button.close-btn:hover {
    background: #d0d0d0;
}
@media (max-width: 480px) {
    #modal-filters .filter-actions button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}
.filter-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--accent-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-section-title i {
    color: var(--accent);
}
.filter-group-divider {
    border-top: 1px solid var(--border-light);
    margin: 20px 0 16px 0;
}
.saved-filter-indicator {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.saved-filter-indicator.visible {
    display: flex;
}
.saved-filter-indicator .label {
    font-size: 0.85rem;
    color: #166534;
    font-weight: 500;
}
.saved-filter-indicator .load-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}
.saved-filter-indicator .load-btn:hover {
    background: var(--accent-hover);
}
.back-to-catalog {
    display: inline-block;
    margin-bottom: 8px;
    background: white;
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    font-size: 1rem;
}
.back-to-catalog:hover {
    background: var(--bg-secondary);
}


/* ===== РАСШИРЕННАЯ СТРАНИЦА ОРГАНИЗАЦИИ ===== */
.org-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.org-page .org-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.org-page .org-logo {
    flex-shrink: 0;
}
.org-page .org-logo img {
    width: 150px;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}
.org-page .org-info {
    flex: 1;
}
.org-page .org-info h1 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}
.org-page .org-info .org-meta {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 5px 0;
}
.org-page .org-info .org-meta strong {
    color: var(--text-primary);
}
.org-page .org-description {
    margin: 20px 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.org-page .org-map {
    margin: 20px auto;
    height: 400px;
    max-width: 900px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.org-page .org-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.org-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.custom-page {
    padding: 20px;
}
@media (max-width: 700px) {
    .org-page .org-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .org-page .org-info h1 {
        font-size: 1.5rem;
    }
    .org-page .org-map {
        height: 300px;
    }
}

/* Верхняя панель страницы организации — уменьшен отступ снизу */
.org-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
}
.org-top-bar .org-url {
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow-wrap: anywhere;
    word-break: normal;
    flex: 1;
    min-width: 150px;
}
.org-top-bar .org-url a {
    color: var(--accent);
    text-decoration: none;
}
.org-top-bar .org-url a:hover {
    text-decoration: underline;
}
.org-top-bar .org-actions-top {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}
.org-top-bar .org-actions-top button {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.org-top-bar .org-actions-top button:hover {
    background: var(--bg-secondary);
}
.org-top-bar .org-actions-top .favorite-btn-top {
    font-size: 0.8rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
}
.org-top-bar .org-actions-top .favorite-btn-top.active {
    color: #e74c3c;
}

/* Смартфон: уменьшаем шрифты и запрещаем переносы */
@media (max-width: 700px) {
    .org-top-bar {
        padding: 8px 12px;
        gap: 6px;
    }
    .org-top-bar .org-url {
        font-size: 0.7rem;
        min-width: 100%;
        order: 3;
    }
    .org-top-bar .org-actions-top {
        gap: 6px;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        order: 1;
    }
    .org-top-bar .org-actions-top button {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    .org-top-bar .org-actions-top .favorite-btn-top {
        font-size: 0.72rem;
        padding: 3px 5px;
    }
}

/* Кнопка "Подробно" – салатный цвет */
.club-card button {
    background: #a8efbf;
}

/* Кнопка "Вернуться в каталог" — уменьшен отступ снизу */
.back-to-catalog {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-bottom: 8px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.back-to-catalog:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

/* Форма записи внизу страницы */
.org-register-form {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}
.org-register-form h3 {
    margin-bottom: 15px;
}
.org-register-form .form-group {
    margin-bottom: 12px;
}
.org-register-form .form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.org-register-form .form-group input,
.org-register-form .form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
}
.org-register-form .form-group textarea {
    min-height: 80px;
    resize: vertical;
}
.org-register-form button[type="submit"] {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.org-register-form button[type="submit"]:hover {
    background: var(--accent-hover);
}

/* Блок расширенного описания */
.org-extended-description {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}
.org-extended-description h3 {
    margin-bottom: 10px;
}
.org-extended-description .content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.org-extended-description .placeholder {
    color: var(--text-muted);
    font-style: italic;
}
.club-card button.details-btn {
    background: #a8efbf;
}