@font-face {
    font-family: 'BTitr';
    src: url('/main/fonts/btitr.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: 572px;
    display: block;
    margin: 0;
    object-fit: cover;
    object-position: center 50%;
    border-radius: 8px;
    transition: opacity 0.5s ease-in-out;
}

.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(75, 0, 130, 0.1), rgba(0, 0, 0, 0.1));
    border-radius: 8px;
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    padding: 25px 35px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.slide-text {
    font-family: 'BTitr', sans-serif;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.slide-text-right {
    font-size: 1rem;
    align-self: flex-start;
}

.slide-text-center {
    font-size: 5.5rem;
    align-self: center;
    white-space: nowrap;
}

.slide-text-left {
    font-size: 1.2rem;
    align-self: flex-end;
}

.contact-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.contact-text {
    font-family: 'BTitr', sans-serif;
    font-size: 0.77rem;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.contact-text a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-text a:hover {
    color: #e0e0e0;
}

.contact-text.contact-agency {
    font-size: 0.77rem;
    font-weight: bold;
}

.contact-text i {
    font-size: 0.88rem;
}

.swiper-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 3;
}

.swiper-progress-bar .swiper-progressbar-fill {
    height: 100%;
    background: #4B0082;
    width: 0;
    transition: width 4s linear;
}

@media (max-width: 1100px) {
    .slider {
        margin: 0;
        border-radius: 6px;
    }

    .swiper-slide img {
        height: auto;
        max-height: 572px;
    }

    .slide-content {
        padding: 20px 30px;
        gap: 6px;
    }

    .contact-text {
        font-size: 0.715rem;
    }

    .contact-text.contact-agency {
        font-size: 0.715rem;
    }

    .contact-text i {
        font-size: 0.825rem;
    }
}

@media (max-width: 600px) {
    .slider {
        margin: 0;
        border-radius: 4px;
    }

    .swiper-slide img {
        max-height: 500px;
    }

    .slide-content {
        padding: 15px 20px;
        gap: 5px;
    }

    .slide-text-right {
        font-size: 0.8rem;
        align-self: flex-start;
    }

    .slide-text-center {
        font-size: 3rem;
        align-self: center;
        white-space: nowrap;
    }

    .slide-text-left {
        font-size: 0.95rem;
        align-self: flex-end;
    }

    .contact-text {
        font-size: 0.66rem;
    }

    .contact-text.contact-agency {
        font-size: 0.66rem;
    }

    .contact-text i {
        font-size: 0.77rem;
    }
}

@media (max-width: 480px) {
    .slider {
        margin: 0;
        border-radius: 4px;
    }

    .swiper-slide img {
        max-height: 400px;
    }

    .slide-content {
        padding: 15px;
        gap: 6px;
    }

    .slide-text-right {
        font-size: 0.65rem;
        align-self: center;
    }

    .slide-text-center {
        font-size: 2.5rem;
        align-self: center;
        white-space: nowrap;
    }

    .slide-text-left {
        font-size: 0.8rem;
        align-self: center;
    }

    .contact-text {
        font-size: 0.605rem;
    }

    .contact-text.contact-agency {
        font-size: 0.605rem;
    }

    .contact-text i {
        font-size: 0.715rem;
    }
}