/* ============================================
   СНТ «Радуга» — современная тема
   Файл: css/theme.css
   ============================================ */

:root {
    --bg:            #f6f7f9;
    --surface:       #ffffff;
    --surface-2:     #fafbfc;
    --border:        #e5e7eb;
    --border-strong: #d1d5db;

    --text:          #0f172a;
    --text-muted:    #64748b;
    --text-soft:     #94a3b8;

    --accent:        #2563eb;
    --accent-hover:  #1d4ed8;
    --accent-soft:   #dbeafe;

    --success:       #16a34a;
    --warning:       #f59e0b;
    --danger:        #dc2626;

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow:    0 4px 16px rgba(15, 23, 42, .06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .08);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --container: 1200px;
    --header-h:  72px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Шапка ---------- */
.site-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #0f172a);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    box-shadow: var(--shadow-sm);
}

.logo-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.main-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: all .2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--surface-2);
    color: var(--text);
}

.nav-link.is-active {
    background: var(--accent-soft);
    color: var(--accent);
}

.nav-icon {
    font-size: 15px;
    line-height: 1;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background .2s ease;
}

.burger:hover {
    background: var(--surface-2);
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .3s;
}

/* ---------- Сетка страницы ---------- */
.page-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 48px;
    align-items: start;
}

.page-grid > .main-content {
    grid-column: 1;
    min-width: 0;
}

.page-grid > .sidebar {
    grid-column: 2;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    height: fit-content;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%);
    border-radius: 50%;
}

.hero h1 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
}

.hero p {
    color: rgba(255, 255, 255, .85);
    margin: 0;
    font-size: 16px;
    position: relative;
}

/* ---------- Карточки ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s ease, transform .25s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card h2,
.card h3 {
    margin-top: 0;
}

.card.bg-light {
    background: var(--surface);
}

h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; margin-top: 28px; }
h3 { font-size: 17px; }
h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ---------- Таблица графика воды ---------- */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.schedule-table th,
.schedule-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.schedule-table th {
    background: var(--surface-2);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr.closed-day td {
    color: var(--danger);
    background: #fef2f2;
    font-weight: 600;
}

.schedule-table tbody tr {
    transition: background .15s;
}

.schedule-table tbody tr:hover {
    background: var(--surface-2);
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    font-family: var(--font);
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

/* ---------- Сайдбар ---------- */
.sidebar .card {
    margin-bottom: 16px;
}

.sidebar .card h3 {
    font-size: 17px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar .card p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
}

.sidebar .card p strong {
    color: var(--text);
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
}

.sidebar .card hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* ---------- Сжатые контакты ---------- */
.sidebar-contacts .contact-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    line-height: 1.45;
}

.sidebar-contacts .contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-contacts .contact-role {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.sidebar-contacts .contact-name {
    display: block;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 2px;
}

.sidebar-contacts .contact-phone {
    display: block;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}

.sidebar-contacts .contact-phone:hover {
    color: var(--accent-hover);
}

.sidebar-contacts .contact-empty {
    color: var(--text-soft);
    font-style: italic;
    font-weight: 400;
}

.sidebar-contacts .contact-address {
    margin-top: 4px;
}

.sidebar-contacts .contact-link {
    font-size: 13px;
    color: var(--text);
}

.sidebar-contacts .contact-link:hover {
    color: var(--accent);
}

.sidebar-contacts hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

.sidebar-contacts .org-block {
    padding-top: 6px;
}

.sidebar-contacts .org-block .contact-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.sidebar-contacts .contact-sub {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sidebar-contacts .contact-sub a {
    color: var(--text);
    font-weight: 500;
}

.sidebar-contacts .contact-site-url {
    color: var(--accent) !important;
    word-break: break-all;
    font-size: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 48px;
    padding-top: 48px;
    width: 100%;
}

.site-footer .footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    margin: 0 0 10px;
    line-height: 1.6;
}

.footer-col a {
    color: #cbd5e1;
}

.footer-col a:hover {
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
    margin-top: 12px;
}

.logo-footer .logo-mark {
    background: #fff;
    color: #0f172a;
}

.logo-footer .logo-text strong {
    color: #fff;
}

.logo-footer .logo-text small {
    color: #94a3b8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 0;
    font-size: 13px;
    color: #94a3b8;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f172a;
    color: #fff;
    padding: 14px 0;
    transform: translateY(100%);
    transition: transform .35s ease;
    z-index: 9999;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .15);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-inner a {
    color: #93c5fd;
}

/* ============================================
   Стили виджетов
   ============================================ */

.news-widget-container,
.forum_widget_container,
.voice_container {
    margin-bottom: 24px;
}

.news-widget-container .widget-header,
.forum_widget_container .widget-header,
.voice_widget_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.news-widget-container .widget-header h3,
.forum_widget_container .widget-header h3,
.voice_widget_header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-widget-container .widget-header a,
.forum_widget_container .widget-header a,
.voice_widget_header a {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.news-widget-container .widget-header a:hover,
.forum_widget_container .widget-header a:hover,
.voice_widget_header a:hover {
    color: var(--accent-hover);
}

/* --- Виджет форума --- */
.forum_topic_card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s ease, border-color .2s ease, transform .25s ease;
}

.forum_topic_card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.forum_topic_title a {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: color .2s ease;
}

.forum_topic_title a:hover {
    color: var(--accent);
}

.forum_topic_desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 10px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.forum_topic_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.forum_badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-left: 6px;
}

.forum_badge_sadovod {
    background: #dcfce7;
    color: #166534;
}

.forum_badge_guest {
    background: #fef9c3;
    color: #713f12;
}

/* --- Виджет голосований --- */
.voice_poll_card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow .25s ease, transform .25s ease;
}

.voice_poll_card:hover {
    box-shadow: var(--shadow);
}

.voice_question {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.voice_gallery {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.voice_gallery img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.voice_gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.voice_options_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voice_option_item {
    position: relative;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    overflow: hidden;
    transition: all .2s ease;
}

.voice_option_item:hover {
    border-color: var(--accent);
    background: var(--surface-2);
}

.voice_progress_bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.1);
    z-index: 1;
    transition: width .4s ease;
}

.voice_text {
    z-index: 2;
    font-weight: 600;
    color: var(--text);
}

.voice_stats {
    z-index: 2;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
    font-weight: 500;
}

.voice_total_votes {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
    font-weight: 500;
}

/* --- Виджет объявлений --- */
.snt-ads-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 24px;
}

.snt-ads-widget h3 {
    margin: 0 0 20px 0;
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.snt-ads-widget .widget-link-all {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    flex-shrink: 0;
}

.snt-ads-widget .widget-link-all:hover {
    color: var(--accent-hover);
}

.snt-ads-widget .widget-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.snt-ads-widget .widget-item-link {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    align-items: center;
    border: 1px solid transparent;
    transition: all .2s ease;
    width: 100%;
    box-sizing: border-box;
}

.snt-ads-widget .widget-item-link:hover {
    background: var(--surface-2);
    border-color: var(--border);
    transform: translateX(4px);
}

.snt-ads-widget .widget-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: block;
}

.snt-ads-widget .widget-no-img {
    width: 70px;
    height: 70px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 0.7rem;
    text-align: center;
    box-sizing: border-box;
}

.snt-ads-widget .widget-info {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.snt-ads-widget .widget-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    margin: 0 0 6px 0;
    line-height: 1.3;
    word-wrap: break-word;
    word-break: break-word;
    transition: color .2s ease;
}

.snt-ads-widget .widget-item-link:hover .widget-title {
    color: var(--accent);
}

.snt-ads-widget .widget-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 8px 0;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.snt-ads-widget .widget-meta {
    font-size: 0.75rem;
    color: var(--text-soft);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.snt-ads-widget .widget-meta span {
    flex-shrink: 0;
}

/* --- Новости: файлы и миниатюры --- */
.news-widget-container .thumb-link {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
}

.news-widget-container .widget-img-preview {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-widget-container .widget-img-preview:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow);
}

.news-widget-container .widget-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    color: var(--accent);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    transition: all .2s ease;
}

.news-widget-container .widget-doc-link:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.news-widget-container .files-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.news-widget-container .date {
    font-size: 12px;
    color: var(--warning);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

/* ============================================
   Аккордеон плашек
   ============================================ */

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s ease, border-color .25s ease;
}

.accordion-item.is-open {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    text-align: left;
    transition: background .2s ease;
}

.accordion-header:hover {
    background: var(--surface-2);
}

.accordion-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.accordion-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.accordion-arrow {
    font-size: 22px;
    color: var(--text-muted);
    transition: transform .3s ease;
    line-height: 1;
    font-weight: 300;
}

.accordion-item.is-open .accordion-arrow {
    transform: rotate(90deg);
    color: var(--accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .3s ease;
    padding: 0 20px;
}

.accordion-item.is-open .accordion-content {
    max-height: 3000px;
    padding: 0 20px 20px;
}

/* Содержимое плашек */
.accordion-news-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.accordion-news-item:last-child {
    border-bottom: none;
}

.accordion-news-date {
    font-size: 12px;
    color: var(--warning);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.accordion-news-item h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.accordion-news-item p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.accordion-bus-info {
    padding: 10px 0;
}

.accordion-bus-info p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

.accordion-bus-info .btn {
    margin-top: 10px;
}

.no-content {
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   Адаптив
   ============================================ */

@media (max-width: 960px) {
    .page-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-grid > .sidebar {
        grid-column: 1;
        position: static;
    }

    .site-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .site-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
        top: 0 !important;
    }

    .header-inner {
        height: 60px !important;
        padding: 0 16px !important;
        gap: 16px !important;
    }

    .logo-text small {
        display: none;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .logo-text strong {
        font-size: 15px;
    }

    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform .3s ease;
        box-shadow: var(--shadow-lg);
        align-items: stretch;
        gap: 2px;
    }

    body.nav-open .main-nav {
        transform: translateY(0);
    }

    .burger {
        display: flex;
    }

    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .page-grid {
        padding-top: 16px;
        padding-bottom: 32px;
        gap: 20px;
    }

    .card {
        padding: 18px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Мобильный аккордеон — крупные плашки */
    .accordion {
        gap: 10px;
    }

    .accordion-header {
        padding: 20px 18px;
        gap: 16px;
    }

    .accordion-icon {
        font-size: 28px;
    }

    .accordion-title {
        font-size: 15px;
    }

    .accordion-content {
        padding: 0 18px;
    }

    .accordion-item.is-open .accordion-content {
        padding: 0 18px 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-link span:not(.nav-icon) {
        font-size: 13px;
    }

    .nav-link {
        padding: 8px 10px;
    }
}