/* Responsive */
@media (max-width: 1120px) {
    .navbar {
        grid-template-columns: auto auto;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }

    .nav-links {
        display: none;
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

    .nav-links.is-open {
        display: grid;
    }

    .main-nav,
    .account-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero,
    .detail-section,
    .auth-shell,
    .dashboard-summary,
    .personal-dashboard,
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        text-align: center;
    }

    .hero-description,
    .hero-motto-line {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .page-actions {
        justify-content: center;
    }

    .hero-images {
        width: min(520px, 100%);
        margin: 0 auto;
    }

    .play-block,
    .filters-section,
    .filters-main-row,
    .department-card {
        grid-template-columns: 1fr;
    }

    .events-grid,
    .card-grid,
    .about-features,
    .dashboard-grid,
    .related-event-grid,
    .personal-dashboard .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .department-grid {
        grid-template-columns: 1fr;
    }

    .department-card img {
        width: 100%;
        height: 220px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page-shell,
    .section-inner,
    .navbar,
    .hero,
    .play-block,
    .detail-section,
    .filters-section,
    .auth-shell,
    .form-card,
    .wide-form-card,
    .page-hero,
    .events-hero,
    .flash-container {
        width: calc(100% - 32px);
    }

    .navbar {
        margin-top: 12px;
        padding: 14px;
        border-radius: 22px;
    }

    .navbar-logo-mark {
        width: 170px;
        height: 42px;
    }

    .auth-logo img {
        width: 180px;
        height: auto;
    }

    .main-nav,
    .account-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 16px;
    }

    .nav-links .nav-action {
        text-align: center;
    }

    .hero {
        padding: 58px 0 54px;
    }

    .hero-scroll-indicator {
        right: 24px;
        bottom: 24px;
        width: 28px;
        height: 28px;
    }

    .hero h1,
    .page-hero h1,
    .events-hero h1,
    .detail-content h1 {
        font-size: 42px;
    }

    .hero-motto-line {
        font-size: 13px;
    }

    .hero-images {
        min-height: 430px;
    }

    .image-large {
        width: 250px;
        height: 320px;
        right: 26px;
        top: 64px;
    }

    .image-small {
        width: 140px;
        height: 160px;
    }

    .image-small.top {
        right: 0;
        top: 18px;
    }

    .image-small.bottom {
        left: 8px;
        bottom: 22px;
    }

    .content-band,
    .events-section,
    .memory-band,
    .about-section {
        padding: 54px 16px;
    }

    .about-section {
        padding-bottom: 30px;
    }

    .memory-band {
        padding-top: 30px;
    }

    .about-description {
        margin-bottom: 34px;
    }

    .filters-main-row,
    .filters-custom-row {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .events-hero {
        padding: 66px 0 38px;
    }

    .events-grid,
    .card-grid,
    .about-features,
    .registered-events-grid,
    .related-event-grid,
    .event-neighbor-nav,
    .event-details,
    .form-grid,
    .stat-grid,
    .dashboard-grid,
    .personal-dashboard .stat-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .poster-card img {
        aspect-ratio: 1 / 1.05;
    }

    .auth-main {
        align-items: flex-start;
        padding-top: 22px;
    }

    .auth-brand-panel {
        min-height: 320px;
    }

    .auth-card {
        padding: 26px;
    }

    .profile-list p {
        display: grid;
        gap: 4px;
    }

    .profile-list span {
        max-width: none;
        text-align: left;
    }

    .category-row {
        grid-template-columns: 1fr;
    }

    .primary-button,
    .secondary-button,
    .success-button {
        max-width: 100%;
        white-space: normal;
    }
}
