/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
    color: #333;
}

.app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Slide Styles */
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* Main Banner Styles */
.main-banner {
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: multiply;
}

.banner-content {
    max-width: 800px;
    padding: 30px;
    border-radius: 15px;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 150px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Job Categories Styles */
.job-categories {
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: multiply;
}

.categories-container {
    max-width: 800px;
    padding: 30px;
    border-radius: 15px;
}

/* БАЗОВО: на мобильных / планшетах — колонка */
.category-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    height: auto;
}

/* Button Styles */
.cta-button,
.category-btn,
.back-button {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-button {
    background-color: #4CAF50;
    color: white;
    margin: 0 auto;
}

.cta-button:hover {
    background-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.category-btn {
    background-color: rgba(85, 6, 95, 0.7);
    color: #0096FF;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 0 15px 5px rgba(85, 6, 95, 0.7);
}

.category-btn:hover {
    background-color: rgba(83, 15, 84, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 0 15px 5px rgba(83, 15, 84, 0.7);
}

.back-button {
    background-color: #f44336;
    color: white;
}

.back-button:hover {
    background-color: #da190b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    background-blend-mode: multiply;
    background-size: cover;
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    color: white;
    animation: modalFadeIn 0.5s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #f44336;
}

.modal h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.modal p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.modal ul {
    list-style-type: none;
    margin-bottom: 30px;
}

.modal ul li {
    padding: 10px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.apply-btn,
.close-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.apply-btn {
    background-color: #4CAF50;
    color: white;
}

.apply-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.close-btn {
    background-color: #f44336;
    color: white;
}

.close-btn:hover {
    background-color: #da190b;
    transform: translateY(-2px);
}

/* === АДАПТИВ 1024px (планшеты горизонтально и вниз) === */
@media (max-width: 1024px) {
    .banner-content h1 {
        font-size: 2.4rem;
        margin-bottom: 100px;
    }

    .category-buttons {
        gap: 20px;
    }

    .category-btn {
        font-size: 1.6rem;
    }
}

/* === АДАПТИВ 768px (планшеты вертикально) === */
@media (max-width: 768px) {
    .banner-content {
        padding: 20px;
    }

    .banner-content h1 {
        font-size: 2rem;
        margin-bottom: 80px;
    }

    .cta-button,
    .category-btn,
    .back-button {
        padding: 12px 25px;
        font-size: 1.4rem;
    }

    .modal-content {
        padding: 20px;
    }

    .modal h3 {
        font-size: 1.6rem;
    }

    .modal p,
    .modal ul li {
        font-size: 1rem;
    }
}

/* === АДАПТИВ 480px (телефоны) === */
@media (max-width: 480px) {
    .banner-content,
    .categories-container {
        padding: 20px;
    }

    .banner-content h1 {
        font-size: 1.6rem;
        margin-bottom: 60px;
    }

    .category-buttons {
        gap: 15px;
    }

    .category-btn {
        max-width: 280px;
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .cta-button {
        font-size: 1.1rem;
        padding: 10px 20px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal h3 {
        font-size: 1.4rem;
    }

    .modal p,
    .modal ul li {
        font-size: 0.95rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* 💻 ДЕСКТОПНЫЙ ВАРИАНТ С ДИАГОНАЛЬНЫМИ КНОПКАМИ (СОХРАНЯЮ ТВОЙ ДИЗАЙН) */
@media (min-width: 1025px) {
    .category-buttons {
        position: relative;
        width: 100%;
        height: 340px;
        margin-bottom: 30px;
        display: block; /* освобождаем под абсолюты */
    }

    /* Все кнопки — абсолютные, как ты делал */
    .category-buttons .category-btn {
        position: absolute;
        width: 360px;
    }

    /* ВЕРХНЯЯ КНОПКА — ПО ЦЕНТРУ */
    .category-buttons .chemist-btn {
        left: 50%;
        transform: translateX(-50%);
        top: -100px;
    }

    /* ЛЕВАЯ НИЖНЯЯ — НАД ЛЕВОЙ ФИОЛЕТОВОЙ ПОЛОСКОЙ + ДИАГОНАЛЬ */
    .category-buttons .driver-btn {
        left: 3%;
        bottom: 15px;
        transform: translateX(200px) rotate(-37deg);
    }

    /* ПРАВАЯ НИЖНЯЯ — НАД ПРАВОЙ ПОЛОСКОЙ + ДИАГОНАЛЬ */
    .category-buttons .courier-btn {
        right: -30%;
        bottom: 15px;
        transform: translateX(-200px) rotate(37deg);
    }
}
