/* общие стили*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #000;
}

html {
    scroll-behavior: smooth;
}

.container {

    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 20px;
}

.menu-container {

    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    /*max-width: 1200px;*/
    margin: auto;

}


/* шапка */

.header {
    background-color: #000;
    border-color: #000;
    color: #fff;
    padding: 20px 0;
}

.logo {
    font-size: 26px;
    font-weight: bold;
}

.logo span {
    color: #ffcb05;
    font-size: 30px;
}

.nav {
    display: flex;
    gap: 150px;
    margin-right: 200px;
    font-size: 16px;
    font-weight: bold;
}

.nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 700;
}

.nav a:hover {
    color: #ffcb05;
}

/* Hero section */
.hero {
    background-color: #dada00;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
}

/*вспдывающая форма вызова такси*/
/* === Всплывающая форма вызова такси === */

.taxi-button {

    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
    background-color: #000;
    color: #dada00;
    font-size: 18px;
    padding: 10px 20px;

}

.taxi-button:hover {
    background-color: #fff;
    color: #000;
}

.taxi-form {
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin: 10px auto;

}


.taxi-form input {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;


}

/* Чтобы кнопка и форма были сверху по центру */
.taxi-form-wrapper {
    position: absolute;
    top: 125px;
    /* отступ сверху, можешь регулировать */
    left: 29%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    /* чтобы быть поверх изображения и текста */
}

/* чтобы .hero могла содержать абсолютные элементы */
.hero {
    position: relative;
}

.taxi-form.show {
    display: block;
}













.hero-text {
    min-width: 50%;
}

.hero-text span {
    color: #fff;
    font-size: 60px;
}

.button-container span {
    color: #dada00;
    font-size: 18px;
    padding: 0 5px;
}

.hero h1,
h3 {
    text-align: center;
    font-size: 48px;
    margin-top: 40px;
    margin-bottom: 20px;

}

.hero-buttons {
    /* display: flex;
    gap: 15px;*/
    text-align: center;
}

/*.btn-primary,*/
.btn-secondary {

    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);


}

.btn-secondary:hover {
    background-color: #fff;
    color: #000;
}


/*.btn-primary {
    background-color: #ffcb05;
    color: #000;
}*/

.btn-secondary {
    background-color: #000;
    color: #dada00;
    font-size: 18px;
    padding: 10px 20px;
}



.button-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #000;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-decoration: none;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
}



.btn:hover {
    background-color: #fff;
    color: #000;
}

.hero-image img {
    max-width: 100%;
    min-width: auto;
}

.subscriptions {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.subscriptions h2,
h3 {
    font-size: 31px;
    margin-bottom: 30px;
}



.subscriptions-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.subscription-item {
    font-size: 16px;
    padding-left: 20px;
    line-height: 25px;
    position: relative;
}

.subscription-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffcb05;
    font-weight: bold;
}

.benefits,
.Markup {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.Markup h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.benefits h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.benefits-table-wrapper {
    overflow-x: auto;
}

.benefits-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.benefits-table th,
.benefits-table td {
    border: 1px solid #ccc;
    padding: 12px 16px;
    text-align: center;
}

.benefits-table th {
    background-color: #000;
    color: #fff;
}

.benefits-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    border: 1px solid #ccc;
    padding: 20px;

}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    text-align: center;
    padding-bottom: 20px;
    line-height: 1.5;

}

.slide.active {
    display: block;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 80%;
    transform: translateY(-50%);
    /*background-color: #dada0045;
    color: #000;*/
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    font-size: 26px;
}

.btn-carousel {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 16px;
    color: #000;
    font-weight: bold;
    /*background-color: #dada0045;
    border-radius: 5px;*/

    transition: background-color 0.3s;
    text-decoration: none;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.container h5 {
    text-align: center;
    padding-bottom: 20px;
    font-size: 36px;
}

.container h4 {
    text-align: center;
    padding-bottom: 20px;
    font-size: 26px;
}


.vacancies {
    background-color: #dada00;
    padding-top: 20px;
    text-align: center;
}

.vacancies span {
    color: #fff;
}


.footer-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    background-color: #000;
    color: #fff;
    padding: 20px 0;

}

.footer a {
    text-decoration: none;
    color: #fff;
    line-height: 1.5;
}

.footer p {
    padding-top: 10px;
    font-style: 16px;
}


.system-teg {
    display: flex;
    gap: 30px;
}

.system-teg a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.system-teg a:hover {
    color: #dada00;
}

.button_subscriptions {
    margin-top: 50px;

}

.btn-sub_secondary {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color: #dada00;
}



/* ======== АДАПТИВНАЯ ВЕРСТКА ======== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {

    .container,
    .menu-container {
        width: 95%;
        min-width: auto;
    }

    .nav {
        gap: 50px;
        margin-right: 0;
        font-size: 15px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        max-width: 80%;
        min-width: auto;
        margin-top: 20px;
    }

    .subscriptions-list {
        grid-template-columns: 1fr;
    }

    .benefits-table {
        font-size: 14px;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .system-teg {
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* Смартфоны (до 768px) */
@media (max-width: 768px) {

    .menu-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }

    .logo {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
        font-size: 14px;
    }

    .hero h1,
    .hero h3 {
        font-size: 25px;
    }

    .taxi-form-wrapper {
        top: 33px;
        /* отступ сверху, можешь регулировать */
        left: 50%;
    }

    .button-container {
        /*flex-direction: column;*/
        gap: 10px;
    }

    .subscriptions h2,
    .subscriptions h3,
    .benefits h2,
    .Markup h2,
    .container h5 {
        font-size: 28px;
    }

    .carousel-container {
        padding: 10px;
    }

    .prev-btn,
    .next-btn {
        top: 90%;
        padding: 8px;
    }

    .benefits-table {
        font-size: 13px;
    }

    .btn,
    .btn-secondary,
    .btn-sub_secondary,
    .taxi-button {
        font-size: 14px;
        padding: 10px 18px;
    }
}


/* Маленькие смартфоны (до 480px) */
@media (max-width: 480px) {

    body {
        font-size: 14px;
    }

    .logo {
        font-size: 20px;
    }





    .hero-image img {
        width: 100%;
    }

    .subscriptions-list {
        padding: 0 10px;
    }

    .benefits-table th,
    .benefits-table td {
        padding: 8px;
    }

    .footer-container {
        font-size: 14px;
    }
}


/* Базовые стили для блоков */
.container {


    /* Изначально блоки скрыты и сдвинуты за пределы экрана */
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Плавный переход */


/* Модификатор для выезда справа */
.container.from-right-container {
    transform: translateX(100px);
}

/* Состояние видимости, которое будет добавлять JavaScript */
.container.visible {
    opacity: 1;
    transform: translateX(0);
}



@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

.btn-secondary {
    animation: shake 2s infinite;
}