/* TABLET */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .focus {
        background-image: none;
        background-color: #000;
        padding-top: 0;
    }

    .focus::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: clamp(240px, 62vw, 340px);
        background: center top / cover no-repeat;
        background-image: image-set(
            url('../img/bg-management.webp') type('image/webp'),
            url('../img/bg-management.png') type('image/png')
        );
        pointer-events: none;
    }

    .focus::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: clamp(240px, 62vw, 340px);
        /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 92%, #000 50%); */
        pointer-events: none;
    }

    .focus-inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: clamp(220px, 58vw, 320px);
        position: relative;
        z-index: 2;
        display: block;
        justify-content: initial;
    }

    .focus-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding-left: 0;
    }

    .events::before {
        top: 0;
        bottom: auto;
        right: -22%;
        width: 110vw;
        height: min(52vh, 400px);
        opacity: 0.84;
        filter: blur(72px);
    }

    .events::after {
        top: 2%;
        bottom: auto;
        right: -10%;
        transform: none;
        width: 88vw;
        height: min(42vh, 320px);
        opacity: 0.76;
        filter: blur(58px);
    }

    .artists::before {
        top: 0;
        bottom: auto;
        left: -28%;
        width: 110vw;
        height: min(52vh, 400px);
        opacity: 0.84;
        filter: blur(72px);
    }

    .artists::after {
        top: 2%;
        bottom: auto;
        left: -10%;
        width: 88vw;
        height: min(42vh, 320px);
        opacity: 0.76;
        filter: blur(58px);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-social {
        justify-content: center;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --header-height-compact: 80px;
        --section-spacing: 70px;
    }

    html.header-scrolled {
        --header-height: 80px;
    }

    html.header-scrolled .logo-text {
        font-size: 1rem;
        letter-spacing: 2.5px;
    }

    .site-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(5, 5, 8, 0.94);
    }

    html.header-scrolled .site-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(5, 5, 8, 0.97);
    }

    .btn-header {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo img {
        width: 42px;
    }

    html.header-scrolled .navigation ul a {
        font-size: clamp(0.8rem, 3.2vw, 0.9rem);
        letter-spacing: 1.5px;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        background: #0a0a12;
        z-index: 1001;
        -webkit-transform: translate3d(100%, 0, 0);
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition:
            -webkit-transform 0.35s ease,
            transform 0.35s ease,
            visibility 0s linear 0.35s;
        padding:
            calc(var(--header-height) + env(safe-area-inset-top, 0px) + 16px)
            max(24px, env(safe-area-inset-right, 0px))
            max(20px, env(safe-area-inset-bottom, 0px))
            max(24px, env(safe-area-inset-left, 0px));
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .navigation::-webkit-scrollbar {
        display: none;
    }

    .navigation.mobile-nav {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
        transition:
            -webkit-transform 0.35s ease,
            transform 0.35s ease,
            visibility 0s;
    }

    .navigation ul {
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        gap: 0;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        width: 100%;
    }

    .navigation li {
        width: 100%;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
        text-align: center;
    }

    .navigation ul a {
        display: block;
        padding: clamp(12px, 2.4vh, 18px) 12px;
        font-size: clamp(0.8rem, 3.2vw, 0.9rem);
        line-height: 1.3;
        text-align: center;
    }

    .nav-indicator {
        bottom: auto;
        left: 0;
        top: 0;
        width: 2px;
        height: 0;
        transform: translateY(0);
        transition:
            transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.25s ease;
    }

    .nav-social {
        display: flex;
        gap: clamp(12px, 3vw, 16px);
        justify-content: center;
        flex-shrink: 0;
        padding-top: clamp(16px, 3vh, 28px);
        margin-top: auto;
    }

    .nav-social a {
        width: clamp(40px, 11vw, 44px);
        height: clamp(40px, 11vw, 44px);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 50%;
        color: var(--text-muted);
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
        line-height: 1;
        text-transform: none;
        letter-spacing: 0;
        transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    }

    .nav-social a:hover {
        color: var(--white);
        border-color: var(--purple);
        background: rgba(168, 85, 247, 0.1);
    }

    .mobile-nav-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-nav-overlay.active {
        pointer-events: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 60px 24px;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-logo img {
        max-width: 260px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(5, 5, 8, 0.85) 0%, rgba(5, 5, 8, 0.7) 100%);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .service-card {
        min-height: 0;
        padding: 20px 18px 18px;
    }

    .service-image {
        max-width: 110px;
        margin-bottom: 14px;
    }

    .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .service-card > p {
        font-size: 0.875rem;
        line-height: 1.55;
        margin-bottom: 14px;
    }

    .service-arrow svg {
        width: 22px;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-list {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
    }

    .contact-list li {
        width: 100%;
    }

    .contact-list li:nth-child(odd),
    .contact-list li:nth-child(even) {
        justify-self: stretch;
    }

    .contact-list li > div > a,
    .contact-list li > div > span:not(.contact-label) {
        white-space: normal;
    }

    .contact-claim {
        margin-top: 32px;
        padding-top: 0;
        width: 100%;
        text-align: center;
    }

    .contact::before {
        top: auto;
        bottom: 2%;
        right: -22%;
        width: 110vw;
        height: min(58vh, 440px);
        opacity: 0.84;
        filter: blur(72px);
    }

    .contact::after {
        top: auto;
        bottom: 6%;
        right: -10%;
        transform: none;
        width: 88vw;
        height: min(46vh, 340px);
        opacity: 0.76;
        filter: blur(58px);
    }

    .contact-form-wrapper {
        min-height: auto;
        padding: 28px 24px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-submit .btn {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .legal-page {
        hyphens: auto;
        -webkit-hyphens: auto;
        text-align: justify;
    }

    .legal-page h1,
    .legal-page h2,
    .legal-page h3,
    .legal-page .legal-back,
    .legal-page .legal-source {
        text-align: left;
        hyphens: manual;
        -webkit-hyphens: manual;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .event-modal-body {
        padding: 24px;
    }
}
