@media screen and (min-width: 1400px) {
    .container {
        max-width: 1224px;
    }
}

/*
====================================
large Screen - Others
====================================
*/

@media screen and (min-width: 1200px) and (max-width: 1399px) {}

/*
====================================
Medium Screen - Others
====================================
*/

@media screen and (min-width: 992px) and (max-width: 1199px) {
    /* header area  */
    .header-wrapper {
        gap: 40px;
    }
    .header-actions a {
        padding: 18px 30px;
    }
    /* hero area */
    .hero-char {
        right: -35%;
    }
    /* update area  */
    .update-left-wp {
        max-width: 520px;
    }
    /* fairy area  */
    .fairy-left {
        max-width: 400px;
    }
    .fairy-left h2 {
        font-size: 55px;
    }
    .fairy-left p {
        font-size: 14px;
    }
    .availity-info :is(h3, h4) {
        font-size: 13px;
    }
    .single-avibility .icon {
        max-width: 70px;
    }
}

/*
====================================
Small Screen - Tablate
====================================
*/

@media screen and (min-width: 768px) and (max-width: 991px) {
    /* header area  */
    .header-area {
        padding-block: 10px;
    }
    .header-wrapper {
        justify-content: space-between;
    }
    .header-wrapper {
        gap: 40px;
    }
    .header-actions a {
        padding: 18px 30px;
    }
    .header-actions a {
        flex: 1;
    }
    /* hero area  */
    .hero-wrapper {
        min-height: 600px;
    }
    .hero-char {
        right: -50%;
        bottom: 0;
        opacity: 0.5;
    }
    .hero-char img {
        max-height: 580px;
    }
    /* update area  */
    .update-area {
        padding-block: 70px;
    }
    .update-wrapper {
        flex-direction: column-reverse;
    }
    /* server area  */
    .server-area {
        padding-block: 60px;
    }
    .server-content-wp {
        grid-template-columns: repeat(2, 1fr);
    }
    /* fairy area  */
    .fairy-left {
        max-width: 100%;
    }
    .fairy-left h2 {
        font-size: 55px;
    }
    .fairy-left p {
        font-size: 14px;
    }
    .availity-info :is(h3, h4) {
        font-size: 13px;
    }
    .single-avibility .icon {
        max-width: 80px;
    }
    .fairy-wrapper {
        flex-direction: column;
        gap: 30px;
        padding-top: 50px;
    }
    .fairy-right {
        margin-top: 0;
    }
    /* media  */
    .media-area {
        padding-block: 60px;
    }

    .fairy-area::before {
        clip-path: polygon(0 2%, 50% 2%, 55% 0, 100% 0, 100% 100%, 0 100%);
        top: 0;
    }

    .fairy-area .container {
        overflow: hidden;
        padding-top: 0;
    }
    .fairy-area {
	margin-top: -25px;
}
}

/*
====================================
Xtra Small Screen - Small Mobile
====================================
*/
@media (max-width: 767px) {
    /* 1. Reset sekcji głównej */
    .fairy-area {
        margin-top: 0; /* Usuwamy negatywny margines z desktopu */
        padding-top: 40px;
        padding-bottom: 0; /* Usuwamy dolny padding, żeby nie robić luki */
        height: auto; /* Resetujemy wysokość sekcji */
    }

    /* 2. Układ pionowy: Tekst nad obrazkiem */
    .fairy-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* 3. Poprawa lewej strony (tekstów) */
    .fairy-left {
        max-width: 100%;
        margin-bottom: 20px; /* Odstęp między tekstem a obrazkiem */
    }

    .fairy-left h2 {
        font-size: 40px; /* Mniejszy tytuł na telefon */
    }

    /* Centrowanie statystyk (Strength/Agility itp) */
    .fairy-avibility {
        justify-content: center;
        margin-bottom: 20px;
        gap: 10px;
    }

    /* Centrowanie przycisków */
    .fairy-actions {
        justify-content: center;
    }

    /* 4. KLUCZOWA POPRAWKA DLA OBRAZKA I PUSTEGO MIEJSCA */
    .fairy-right {
        margin-top: 0;
        width: 100%;
        /* Zmieniamy na auto, żeby kontener skurczył się do wysokości obrazka */
        height: auto !important; 
        display: flex;
        justify-content: center;
        align-items: flex-end; /* Dociągnij obrazek do dołu */
    }

    .fairy-right img {
        /* Obrazek ma max 320px wysokości, ale zachowuje proporcje */
        max-height: 320px; 
        width: auto;
        max-width: 100%;
        object-fit: contain;
        /* Usuwamy cienie/filtry, jeśli one powodują wizualne błędy, lub zostawiamy */
        filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
    }

    /* 5. Naprawa Swipera, żeby slajd nie był sztucznie wysoki */
    .character-slider .swiper-slide {
        height: auto !important;
    }
}

@media screen and (max-width: 767px) {
    .update-wrapper [data-aos].update-left-wp,
    .update-wrapper [data-aos].update-right-wp { opacity: 1; transform: none; transition: none; }
    .server-area { background-image: url(../images/glory-opt/server-bg-960.webp); }
    .media-area { background-image: url(../images/glory-opt/media-server-bg-960.webp); }
    /* header area  */
    .header-area {
        padding-block: 10px;
    }
    .header-wrapper {
        justify-content: space-between;
    }
    .header-wrapper {
        gap: 40px;
    }
    .header-actions a {
        padding: 18px 30px;
    }
    .header-actions a {
        flex: 1;
    }
    /* hero area  */
    .hero-wrapper {
        min-height: auto;
        padding-block: 60px;
    }
    .hero-char {
        display: none;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    /* update area  */
    .update-wrapper {
        flex-direction: column-reverse;
        gap: 20px;
    }
    .update-left-wp {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }
    .update-tab-nav {
        gap: 10px;
        flex-wrap: wrap;
    }
    /* server area  */
    .server-area {
        padding-block: 40px;
    }
    .server-content-wp {
        grid-template-columns: repeat(1, 1fr);
    }
    /* fairy area  */
    .fairy-left {
        max-width: 100%;
    }
    .fairy-left h2 {
        font-size: 40px;
    }
    .fairy-left p {
        font-size: 14px;
    }
    .availity-info :is(h3, h4) {
        font-size: 13px;
    }
    .single-avibility .icon {
        max-width: 80px;
    }
    .fairy-wrapper {
        flex-direction: column;
        gap: 30px;
        padding-top: 50px;
    }
    .fairy-right {
        margin-top: 0;
		height: 300px;
    }
    /* media  */
    .media-area {
        padding-block: 40px;
    }
    .media-slider-wp {
        padding-top: 30px;
    }
    .footer-wrapper {
        flex-direction: column;
        align-items: center;
        padding-block: 10px;
        gap: 10px;
    }

    .fairy-area::before {
        clip-path: polygon(0 2%, 53% 2%, 55% 0, 100% 0, 100% 100%, 0 100%);
        top: 0;
    }

    .fairy-area .container {
        overflow: hidden;
        padding-top: 0;
    }
    .fairy-area {
        margin-top: -20px;
    }
    
}

@media screen and (max-width: 575px) {
    .fairy-area {
        background-size: cover;
        background-position: top center;
    }
    .footer-wrapper p {
        text-align: center;
    }
}