/*блок с анимациями машин*/

.info-block {
    /*   display: flex;
       justify-content: space-between;
       align-items: flex-start;
       margin: 20px 0;
       /*background-color: #ffffff;*/
    /*  padding: 20px;
      border-radius: 12px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      /*background-image: url('/upload/foto-mashin/2_.png'); /* Укажите путь к изображению */
    /* background-size: cover; /* Масштабируем изображение, чтобы оно покрывало весь блок */
    /* background-position: center; /* Центрируем изображение */
    /* background-repeat: no-repeat; /* Избегаем повторения */
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

.info-block::before {
    padding: 10px;
    margin-top: -10px;
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 101vw;
    height: 100%;
    z-index: -1;
    background-image: url('/upload/foto-mashin/2_.png'); /* Укажите путь к изображению */
    background-size: cover; /* Масштабируем изображение, чтобы оно покрывало весь блок */
    background-position: center; /* Центрируем изображение */
    background-repeat: no-repeat; /* Избегаем повторения */
}

.container .text-content {
    max-width: 100%; /* Ограничение ширины текста */
    font-size: 25px;
    padding-right: 20px; /* Добавление отступа между текстом и изображением */
    position: relative; /* Для отображения синей полосы */
}

.container ul {
    list-style: none; /* Убираем стандартные маркеры списка */
    padding-left: 20px; /* Отступ слева, чтобы текст не был вплотную к синей полосе */
    margin: 20px; /* Убираем стандартные отступы */
    border-left: 4px solid rgb(50, 153, 227); /* Синяя полоса слева */
}

.container li {
    margin: 10px;
}

.info-block {
    /*  display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin: 20px 0;
      background-color: #ffffff;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.container .text-content {
    /*max-width: 40%;*/
    font-size: 25px;
    /* margin: 60px;*/
}

.container h2 {
    font-size: 40px;
    color: #333;
    margin: 0 0 10px;
}

.container p {
    font-size: 16px;
    color: #666;
}

.container .buttons {
    display: flex;
    gap: 60px;
    margin: 40px;
}

.container .buttons a {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgb(50, 153, 227);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 25px;
    transition: background-color 0.3s;
}

.container .buttons a:hover {
    background-color: #0056b3;
}

.info-block img {
    max-width: 100%; /* Ограничение ширины изображения */
}

/*адаптив блока*/

@media (max-width: 1024px) {
    .info-block {
        max-width: 90%; /* Уменьшение ширины блока для лучшего отображения */
        padding: 15px; /* Уменьшение отступов */
    }

    .container .text-content {
        font-size: 22px; /* Уменьшение размера текста */
        padding-right: 10px;
    }

    .container h2 {
        font-size: 32px; /* Уменьшение размера заголовка */
    }

    .container p {
        font-size: 14px; /* Уменьшение размера текста параграфов */
        /* margin-left: 20px;*/
    }

    .container .buttons a {
        font-size: 20px; /* Уменьшение размера кнопок */
        padding: 8px 16px; /* Уменьшение отступов кнопок */
    }

    .container .buttons {
        gap: 30px; /* Уменьшение расстояния между кнопками */
        margin: 20px;
    }
}

/* Адаптивность для мобильных устройств (ширина экрана до 768px) */
@media (max-width: 768px) {
    .info-block {
        max-width: 95%; /* Ещё больше уменьшение ширины */
        margin: 10px;
        padding: 10px;
    }

    .container .text-content {
        font-size: 18px; /* Ещё большее уменьшение размера текста */
        margin-left: 20px;
    }

    .container h2 {
        font-size: 24px; /* Уменьшение заголовка для мобильных */
    }

    .container ul {
        padding-left: 10px; /* Уменьшение отступа у списка */
    }

    .container .buttons a {
        font-size: 18px; /* Ещё большее уменьшение размера кнопок */
        padding: 6px 12px;
    }

    .container .buttons {
        /*flex-direction: column; */
        gap: 10px;
    }
}

/* Адаптивность для маленьких экранов (ширина экрана до 480px) */
@media (max-width: 480px) {
    .info-block .text-content {
        font-size: 16px; /* Уменьшение шрифта для маленьких экранов */
        max-width: 100%;
    }

    .info-block h2 {
        font-size: 20px; /* Сжатие заголовка */
    }

    .info-block .buttons a {
        font-size: 16px; /* Уменьшение текста кнопок */
        padding: 5px 10px;
    }

    .text_transit {
        distlay: none;
    }
}


/*блок с машинами и метриками*/

body {
    /*font-family: Arial, sans-serif;
    display: flex;*/
    flex-direction: column;
    align-items: center;
    margin: 0;
    /*padding: 20px;*/
    /*background: url('/upload/foto-mashin/2_.png') no-repeat center center fixed; Замените 'background.jpg' на путь к вашему фоновому изображению */
    background-size: cover;
    color: #333;

}

.container_block {
    width: 100%;
    /*max-width: 800px;*/
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

@media (min-width: 320px) and (max-width: 768px) {
    .container_block {
        width: 100%;
        max-width: 350px;
    }
}

@media (min-width: 768px) and (max-width: 1400px) {
    .container_block {
        width: 100%;
        max-width: 100%;
    }
}

.container {
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;

}

.container::before {
    padding: 10px;
    /* margin-top: -10px;*/
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 101vw;
    height: 100%;
    z-index: -1;
    background:  var(--before-background, #f4f4f4);
    background-image: var(--before-background-image, none);
    /* Вы можете изменить цвет фона для серого блока */
    border-top: 1px solid #ddd;
    background-size: cover; /* Масштабируем изображение, чтобы оно покрывало весь блок */
    background-position: center; /* Центрируем изображение */
    background-repeat: no-repeat; /* Избегаем повторения */
}

.block {
    display: flex;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    overflow: hidden;

}

@media (min-width: 320px) and (max-width: 768px) {
    .block {
        display: block !important; /* Изменяем на display: block для вертикального расположения */
    }

    .block img {
        width: 100% !important; /* Изображение занимает всю ширину блока */
        height: auto !important;
        display: block !important; /* Устанавливаем display: block для изображения */
        margin-bottom: 20px !important; /* Добавляем отступ снизу для разделения с текстом */
    }

    .content_block {
        padding-left: 0 !important; /* Убираем отступ слева, чтобы текст начинался сразу после картинки */
    }

    .content {
        text-align: center !important; /* Центрируем текст для лучшего отображения на мобильных устройствах */
    }
}


.block img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

@media (min-width: 768px) and (max-width: 1400px) {
    .block img {
        width: 250px;
    }
}

.content_block {
    padding-left: 20px;
}

.line {
    border-radius: 6px;
    background-color: rgb(50, 153, 227);
    background-position: center center;
    border-color: transparent;
    border-style: solid;
    max-width: 90px;
}

.content h3 {
    font-weight: bold;
    color: #333;
    margin: 0 0 10px;
}

.content p {
    color: #666;
    margin: 0;
}

.content a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.title_text {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 80%;
    margin-bottom: 50px;
}

@media (min-width: 320px) and (max-width: 768px) {
    .title_text {
        max-width: 100%;
        font-size: 20px;
        margin-bottom: 20px;
        padding-top: 20px;
    }
}

.stat-blocks {
    display: flex;
    gap: 20px;
    /*margin-top: 40px;*/
    margin-bottom: 50px;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

@media (min-width: 320px) and (max-width: 768px) {
    .stat-blocks {
        display: flex;
        gap: 10px;
        width: 80%;
    }
}

@media (min-width: 768px) and (max-width: 1400px) {
    .stat-blocks {
        display: flex;
        gap: 20px;
        width: 60%;
        max-width: 100%;
    }

}

.stat-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

@media (min-width: 320px) and (max-width: 768px) {
    .stat-block {
        padding: 10px;
    }

}

.stat-block h4 {
    font-size: 2em;
    color: #4682b4;
    margin: 0;
}

.stat-block h5 {
    font-size: 1.5em;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.stat-block p {
    color: #666;
    margin: 10px 0 0;
}

/*блок со скидками*/

.content-block {
    margin-left: 7px;
    margin-right: auto;
    max-width: 1200px;
    width: 100% ;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

.left-block {
    display: flex;
    align-items: flex-start;
    width: 55%;
    background-color: #ffffff;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.number-circle {
    background-color: rgb(50, 153, 227);
    color: #ffffff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    font-size: 16px;
    position: absolute;
    top: -15px;
    left: -15px;
}

.text-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    position: relative;
}

.text-content h3::after {
    content: "";
    display: block;
    width: 100px;
    height: 2px;
    background-color: #007bff;
    margin-top: 10px;
}

.text-content p {
    color: #333333;
    margin-top: 10px;
    font-size: 16px;
}

.right-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 35%;
    background-color: #f0f5ff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    background-image: url('/upload/foto-mashin/Group_137.svg');
    background-repeat: no-repeat;
    background-size: 80px;
    background-position: center center;
    opacity: 0.9;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.right-block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: rgb(50, 153, 227);
    border-radius: 4px;
}

.discount-amount {
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    margin: 0;
}

.discount-text {
    color: #666666;
    font-size: 16px;
    margin-top: 10px;
}

/* Медиазапросы для адаптации */
@media (max-width: 1200px) {
    .content-block {
        width: 80%;
        gap: 20px;
    }

    .left-block,
    .right-block {
        width: 100%;
    }

    .text-content h3 {
        font-size: 18px;
    }

    .discount-amount {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .content-block {
        /*padding: 10px;*/
        max-width: 80%;
        flex-direction: column;
        gap: 0;
    }

    .left-block,
    .right-block {
        padding: 15px;
        border-radius: 8px;
    }

    .right-block::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        border-radius: 4px;
        width: 100%;
        height: 2px;
        background-color: #007bff;


    }

    .number-circle {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .text-content h3 {
        font-size: 16px;
    }

    .text-content p {
        font-size: 14px;
    }

    .discount-amount {
        font-size: 18px;
    }

    .discount-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .left-block,
    .right-block {
        padding: 10px;
        border-radius: 6px;
    }

    .number-circle {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .text-content h3 {
        font-size: 14px;
    }

    .text-content p {
        font-size: 12px;
    }

    .discount-amount {
        font-size: 16px;
    }

    .discount-text {
        font-size: 12px;
    }
}

/*блок с галочками*/

/*  .container {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 0 auto;
      padding: 20px;
  }*/

.container_checklist {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start; /* Ensures icon stays on the left */
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
    max-width: 1200px;
    margin-bottom: 20px;
}

.icon {
    font-size: 50px;
    margin-right: 30px;
}

.text {
    /* max-width: 800px;*/
    font-size: 20px;
    text-align: justify;
    padding: 20px;
}

@media (max-width: 1024px) {
    .container_checklist {
        padding: 15px;
        flex-direction: row; /* Maintains icon on the left */
        align-items: flex-start;
        max-width: 90%;
        margin-bottom: 30px;
    }

    .icon {
        font-size: 80px;
        margin-right: 20px;
        padding-top: 20px;
    }

    .text {
        font-size: 20px;
        max-width: 100%;
        text-align: justify;
    }
}

@media (max-width: 768px) {
    .container_checklist {
        padding: 10px;
        flex-direction: row; /* Maintains icon on the left */
    }

    .icon {
        font-size: 36px;
    }

    .text {
        font-size: 16px;
    }

}

@media (max-width: 480px) {
    .container_checklist {
        padding: 5px;
        flex-direction: row; /* Maintains icon on the left */
        margin-left: auto;
        margin-right: auto;
    }

    .icon {
        font-size: 30px;
    }

    .text {
        font-size: 14px;
    }
}

/*блок  акардионом*/

.accordion {
    width: 50%;
    margin: 0 auto;
    margin-bottom: 10px;
}

.accordion-item {
    border-bottom: 1px solid #ccc;
}

.accordion-header {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    padding: 15px;
    display: none;
    font-size: 20px;
}

.accordion-header .icon {
    font-size: 24px;
}

.accordion-texts {
    font-size: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .accordion {
        width: 70%;
    }

    .accordion-header {
        padding: 20px;
    }

    .accordion-content {
        font-size: 18px;
    }

    .accordion-texts {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .accordion {
        width: 90%;
    }

    .accordion-header {
        padding: 15px;
    }

    .accordion-content {
        font-size: 16px;
    }

    .accordion-texts {
        font-size: 22px;
    }

    .accordion-header .icon {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .accordion {
        width: 100%;
    }

    .accordion-header {
        padding: 15px;
    }

    .accordion-content {
        font-size: 14px;
    }

    .accordion-texts {
        font-size: 18px;
    }

    .accordion-header .icon {
        font-size: 18px;
    }
}

/*блок с партнерами*/

.partners-section {
    text-align: center;
    margin: 50px 0;
    font-size: 25px;
}

.partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; /* Allows wrapping for smaller screens */
}

.partner {
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px; /* Sets consistent width */
    height: 100px; /* Sets consistent height */
}

.partner img {
    max-width: 100%; /* Scales image to container width */
    max-height: 100%; /* Scales image to container height */
}

.partner:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .partners {
        gap: 30px; /* Reduces gap for medium screens */
    }

    .partner {
        width: 130px; /* Adjusts size for medium screens */
        height: 90px;
    }
}

@media (max-width: 768px) {
    .partners {
        gap: 20px; /* Further reduces gap for smaller screens */
    }

    .partner {
        width: 110px; /* Adjusts size for smaller screens */
        height: 80px;
    }
}

@media (max-width: 480px) {
    .partners {
        gap: 10px; /* Minimal gap for mobile */
    }

    .partner {
        width: 90px; /* Smaller size for mobile devices */
        height: 70px;
    }

    .partners-section {
        font-size: 20px; /* Reduces section title size */
    }
}

.text_block {
    max-width: 1200px;
}

.text_block_p {
    /*width: 40%;*/
    margin: 0 auto;
    margin-bottom: 10px;
    font-size: 20px;
    text-align: justify;
    padding-top: 20px;
}

.text_block_ul {
    /*width: 40%;*/
    margin: 0 auto;
    margin-bottom: 10px;
    font-size: 20px;
    text-align: justify;
}

/**блок преимуществ*/
/***начало*/
.container_b {
    /*max-width: 800px;*/
    display: grid;
    grid-template-columns: repeat(2, 45%); /* задаем два столбца */
    gap: 20px;
    /* padding: 50px;*/


    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.benefit-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.benefit-desc {
    font-size: 14px;
    color: #777;
}

.icons {
    max-width: 40px;
}

/**конец*/
.company_block {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    padding: 50px;
}

.company_text_block {
    padding: 20px;
}

.company_text_hide {
    display: none;
}

.company_buttons {
    padding: 10px 20px;
    background-color: rgb(50, 153, 227);
    color: #fff;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 5px;
}

/***блок карусели**/
.carousel_block {
    max-width: 80%;

}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel {
    display: flex;
    gap: 10px;
}

.slide {
    text-align: center;
}

/*.slide img {
    width: 200px;
}*/

#prevBtn,
#nextBtn {
    background-color: rgba(255, 255, 255, .7);
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 99;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
}

#prevBtn {
    left: 20px;
}

#nextBtn {
    right: 20px;
}

/* Адаптивность */
@media screen and (min-width: 992px) {
    .carousel {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media screen and (max-width: 767px) and (orientation: portrait) {
    /* Для телефонов */
    .container_b{
        max-width: 767px;
        justify-content: center;
        padding-left: 7px;
        padding-right: 7px;
    }
    .carousel {
        display: block;
    }

    .slide {
        width: calc(100vw - 60px); /* Ширина экрана минус отступы кнопок */
        margin-left: 30px;
    }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
    /* Для планшетов */
    .carousel {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*блок с доходом*/

.income-section {
    width: 70%;
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
}

.income-section h2 {
    color: rgb(50, 153, 227);
    font-size: 58px;
}

.income-section .description {
    color: #666666;
    font-size: 16px;
    margin: 0 auto 30px auto;
    max-width: 60%;
    line-height: 1.5;
}

.income-values {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
}

.income-item {
    text-align: center;
    font-size: 20px;
    color: #333333;
}

.income-item .amount {
    font-size: 56px;
    color: rgb(50, 153, 227);
    margin: 0;
}

.income-item .label {
    font-size: 16px;
    color: #666666;
    margin-top: 5px;
}

.income-item hr {
    width: auto;
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 10px auto;
}

/* Медиазапросы для адаптации под разные экраны */
@media (max-width: 1024px) {
    .income-section {
        width: 90%;
    }

    .income-values {
        gap: 15px;
    }

    .income-section h2 {
        font-size: 48px;
    }

    .income-item .amount {
        font-size: 48px;
    }
}

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

    .income-section .description {
        font-size: 14px;
        max-width: 100%;
    }

    .income-values {
        gap: 15px;
    }

    .income-item .amount {
        font-size: 36px;
    }

    .income-item .label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .income-section {
        padding: 10px;
    }

    .income-section h2 {
        font-size: 36px;
    }

    .income-section .description {
        font-size: 10px;
    }

    .income-item .amount {
        font-size: 20px;
    }

    .income-item .label {
        font-size: 10px;
    }

    .income-item {
        font-size: 16px;
    }
    .company_block {
        margin-left: 20px;
    }
}

