body {
    font-family: 'Circe', sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.main-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 20px;
}

.container {
    width: 90%;
    background: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 24px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    font-size: 24px;
    margin: 0 0 20px;
}

.branch-btns,
.tech-btns,
.locations {
    width: 100%; /* Кнопки тоже занимают 100% ширины контейнера */
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.branch-selection,
.tech-selection,
.location-selection,
.info-box {
    width: 100%;
}


button {
    font-family: 'Circe', sans-serif;
    background: linear-gradient(214.64deg, #d93e38 21.01%, #ee942a 97.75%);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
}

button.back-btn {
    background: linear-gradient(30.47deg, #58af58 2.62%, #14b4ab 81.75%) !important;
    margin-bottom: 10px;
}

.location-btn {
    margin-bottom: 10px;
}

.reset-btn {
    background: linear-gradient(30.47deg, #58af58 2.62%, #14b4ab 81.75%) !important;
    margin-bottom: 10px;
}

.bottom-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.gallery-btn {
    display: inline-block;
    padding: 15px 40px;
    margin-bottom: 20px;
    font-size: 18px;
    background: #FFB800;
    border: none;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 184, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 184, 0, 0.8);
    }
}

.footer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(48.67deg, #9e58af 6.17%, #6414b4 78.23%);
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.footer input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-family: 'Circe', sans-serif;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

.footer button {
    width: 40px;
    height: 40px;
    padding: 0;
    background: linear-gradient(30.47deg, #1fabd5 2.62%, #006cb7 81.75%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.hidden {
    display: none !important;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 998;
}

#preloader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    border: 8px solid #ffffff;
    border-top: 8px solid #ee942a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-box {
    text-align: left;
    margin-top: 20px;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.info-box.show {
    max-height: 10000px;
    opacity: 1;
}

.slider-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0px 4px 24px -1px rgba(0, 0, 0, 0.1);
}

.swiper {
    width: 100%;
    position: relative;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16/9;
}

.swiper-slide a {
    display: flex;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background-color: #fff;
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: #FF6B00;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        padding: 15px;
    }

    .container {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 20px;
    }

    button {
        padding: 12px;
        font-size: 15px;
    }

    .slider-container {
        padding: 12px;
        margin: 20px;
        width: 90%;
    }

    .swiper-slide {
        aspect-ratio: 4/3; /* Изменил пропорции для мобильного */
    }

    .swiper-pagination {
        margin-top: 15px;
    }

    .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }

    .swiper-pagination-bullet-active {
        width: 20px;
    }

    .gallery-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .footer input[type="text"] {
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
    }
}