* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FFFFFF;
    color: #1F1F1F;
    line-height: 1.4;
    overflow-x: hidden;
}
body .benzin-font {
    font-family: 'Benzin-Medium', sans-serif;
}

/* Исчезающий плейсхолдер для полей ввода */
input:focus::placeholder,
textarea:focus::placeholder {
    color: transparent;
    opacity: 0;
    transition: all 0.2s ease;
}

/* Чтобы плейсхолдер плавно исчезал, можно также задать transition для самого элемента */
input, textarea {
    transition: all 0.2s ease;
}


/* Контейнеры */
.container-wide,
.container-narrow {
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.container-wide {
    max-width: 1357px;
}

.container-narrow {
    max-width: 1170px;
}

/* Стили секций */
.section {
    padding: 45px 0;
}

section#events {
    padding-top: 90px;
}

section#about {
    padding-top: 90px;
    padding-bottom: 90px;
}

section#re-our {
    padding-bottom: 90px;
}

section#revs {
    padding-bottom:70px;
}


.section-dark {
    background: #01142A;
    color: #fff;
}

.section-light {
    background: #FFFFFF;
}

/* Кнопки */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 17px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    min-width: 220px;
}

.btn-primary {
    background: linear-gradient(93.61deg, #5392F5 1.06%, #1B66F0 96.2%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 105, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 105, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #2F76F4;
    color: white;
}

.btn-outline:hover {
    background: rgba(47, 118, 244, 0.2);
}

/* Header */








/* Шапка — общие стили */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    position: relative;
}

.logo img {
    /*max-height: 80px;*/
    width: auto;
    display: block;
    margin: auto;
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #212121;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0069FF;
}

.contact-email {
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-email a {
    display: table;
    text-decoration: underline;
    color: #212121;
}

.contact-email a:hover {
    color: #0069FF;
}

.btn-header {
    background: linear-gradient(93.61deg, #5190F3 1.06%, #1964EF 96.2%);
    display: table;
    border-radius: 12px;
    padding: 20px 36px;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-header:hover {
    transform: translateY(-2px);
}

.burger {
    display: none;
    width: 68px;
    height: 68px;
    background: #021540;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 30;  /* выше меню */
    position: relative;
}

.burger svg {
    width: 30px;
    height: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    /*height: 100vh;*/
    background: white;
    padding: 30px 30px;
    transition: right 0.3s ease;
    z-index: 20;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu .logo {
    margin-bottom: 50px;
}


.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    color: #212121;
    text-decoration: none;
}

.mobile-menu .contact-email {
    display: block;
    margin: 50px 0 30px;
    font-weight: 400;
    font-size: 17px;
    line-height: 182%;
    color: #212121;
    text-decoration: none;
}

.mobile-menu  .btn-header {
    display: block;
    width:100%;
    max-width:360px;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .burger {
        display: flex;
    }
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 756px) {
    .contact-email {
        display: none;
    }
    .btn-header {
        display: none;
    }
}


@media (max-width: 756px) {
    .burger {
        width: 45px;
        height: 45px;
    }

    .burger svg {
        width: 23px;
        height: auto;
    }
}


/* Hero */
.hero {
    margin: 20px 0 40px;
}

.hero-inner {

    background:
            linear-gradient(180deg, #021540 0%, #011429 100%),
            url('../img/hero.png');
    background-size: cover;
    background-blend-mode: overlay; /* или multiply, overlay и т.д. */

    border-radius: 45px;
    padding: 90px 0 80px;
    text-align: center;
    position: relative;
}

.hero_1 {
    position: absolute;
    left:-40px;
    top:30px;
}

.hero_2 {
    position: absolute;
    left:0px;
    top:300px;
}

.hero_3 {
    position: absolute;
    right:50px;
    top:20px;
}

.hero_4 {
    position: absolute;
    right:10px;
    top:310px;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    color: #fff;
    margin-bottom: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h2 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: #fff;
    margin-bottom: 1.9rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1rem;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 0.5rem;
    font-weight: bold;
}

.hero p.p-min {
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 20px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.hero_5 {display:none;}

@media (max-width: 1250px) {
    .hero_1 {display:none;}
    .hero_2 {display:none;}
    .hero_3 {display:none;}
    .hero_4 {display:none;}
    .hero_5 {display:block;max-width:100%;margin:auto;}
    .hero-buttons {
        margin-bottom:30px;
    }

    .hero-inner {
        padding: 50px 0 50px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 280px;
    }


}

@media (max-width: 756px) {


    .hero-inner {
        padding: 40px 20px 40px;
    }



    .hero {
        padding: 0 0;
    }


}




/* Карточки преимуществ */
.feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 60px 0;
}

.feature-card {
    flex: 1;
    background: #01142A;
    border-radius: 22px;
    padding: 36px 20px;
    padding-right: 100px;
    min-width: 260px;
    text-align: left;

}

.feature-card_1 {
    background: url('../img/feature1.png')  no-repeat right center #01142A;
}

.feature-card_2 {
    background: url('../img/feature2.png')  no-repeat right center #01142A;
}

.feature-card_3 {
    background: url('../img/feature3.png')  no-repeat right center #01142A;
}

.feature-card h4 {
    margin-top: 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 148%;
    color: #fff
}

@media (max-width: 1070px) {
    .feature-card {
        width:360px;
        flex: unset;
    }

}

@media (max-width: 756px) {

    .feature-cards {
        flex-direction: column;
        margin-bottom: 20px;
        gap: 20px;
    }

    .feature-card {
        width:auto;
        max-width:360px;
        margin-left:auto;
        margin-right:auto;
    }

}

/* Услуги */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.service-card-wrap {
    flex: 2.1;
    border: 1.88px dashed #011a35;
    border-radius: 28px;
    padding: 30px;
}

.service-card-wrap-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-card-wrap-title {
    font-weight: 400;
    font-size: 16px;
    line-height: 121%;
    text-align: center;
    color: #022146;
    background: #f9f9f9;
    border: 1.60px solid #021540;
    border-radius: 12px;
    display: table;
    margin: 0 auto 20px;
    padding: 12px;

}


.service-card {
    background: #F9F9F9;
    border: 1px solid #E0E0E0;
    border-radius: 28px;
    padding: 28px 20px;
    flex: 1;
    min-width: 280px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card_1 {
    background: url('../img/service_1.png')  no-repeat right 8px;
}

.service-card_2 {
    background: url('../img/service_2.png')  no-repeat 93% 12px;
}

.service-card_3 {
    background: url('../img/service_3.png')  no-repeat 93% 12px;
}

.service-card h3 {
    margin-bottom: 20px;
    font-family: 'Benzin-Medium', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 146%;
    color: #022146;
}

.service-card .s-card-button {
    margin-top: auto;
}

.service-list {
    list-style: none;
    margin: 20px 0 0;
}

.service-list li {
    margin-bottom: 7px;
    padding-left: 20px;
    position: relative;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #022146;
}

.service-list li::before {
    content: "";
    width: 7px;
    height: 7px;
    background: #0069FF;
    position: absolute;
    left: 0;
    border-radius: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.service-list li.r-li {
    background: #BD2026;
    display: table;
    color:#fff;
    border-radius: 6px;
    padding: 5px;
    padding-left: 25px;
    padding-right: 10px;
    position: relative;
    margin-left: -7px;
    margin-top: 10px;
}

.service-list li.r-li::before {

    background: #fff;
    left: 7px;
}



.price-tag {
    border: 0.62px dashed #1f1f1f;
    border-radius: 9px;
    padding: 12px;
    text-align: center;
    font-weight: 400;
    font-size: 14px;
    margin: 20px 0;
    font-family: 'Benzin-Medium', sans-serif;
}

.btn-service {
    background: linear-gradient(93.61deg, #5190F3 1.06%, #1964EF 96.2%);
    box-shadow: 0 3px 20px 0 #0069ff;
    width: 100%;
    border-radius: 12px;
    padding: 19px 14px;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 105, 255, 0.4);
}


/* ========== АДАПТАЦИЯ БЛОКА «НАШИ УСЛУГИ» ========== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .services-grid {
        flex-direction: column;
        gap: 30px;
    }

    .service-card-wrap {
        flex: auto;
        padding: 25px;
    }

    .service-card-wrap-grid {
        gap: 25px;
    }

    .service-card {
        min-width: auto;
        background-position: 97% 12px;
        background-size: 65px auto;
        flex:unset;
        width:320px;
    }

    .service-card_3{
            width:320px;
            margin-left:auto;
            margin-right:auto;
    }

    .service-card h3 {
        font-size: 17px;
        padding-right: 60px;
    }

    .service-list li {

    }

    .price-tag {
        font-size: 13px;
        padding: 10px;
    }

    .btn-service {
        padding: 16px 14px;
        font-size: 14px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .services-grid {
        gap: 25px;
    }

    .service-card-wrap {
        flex-direction: column;
        padding: 18px;
        border-width: 1.5px;
    }

    .service-card-wrap-title {
        font-size: 11px;
        padding: 8px 12px;
        margin-bottom: 18px;
        white-space: normal;
        max-width: 90%;
    }

    .service-card {
        padding: 20px 15px;
        background-position: 95% 8px;

    }

    .service-card h3 {
        font-size: 15px;
        margin-bottom: 15px;
        padding-right: 50px;
    }

    .service-list {
        margin: 15px 0;
    }

    .service-list li {
        padding-left: 16px;
        margin-bottom: 4px;
    }

    .price-tag {
        font-size: 12px;
        padding: 8px;
        margin: 15px 0;
    }

    .btn-service {
        padding: 14px 14px;
        font-size: 13px;
    }
}

@media (max-width: 500px) {
    .service-card {
        width:100%;
    }

    .service-card_3 {
        width:100%;
    }

}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {


    .services-grid {
        gap: 20px;
    }

    .service-card-wrap {
        padding: 15px;
    }

    .service-card-wrap-title {
        font-size: 14px;
        padding: 6px 10px;
        margin-bottom: 15px;
    }

    .service-card {
        padding: 15px 12px;
        /*background: none;*/
    }

    .service-card h3 {
        font-size: 15px;
        padding-right: 30px;

    }

    .service-list li {
        padding-left: 14px;
    }

    .service-list li::before {
        width: 5px;
        height: 5px;
    }

    .price-tag {
        font-size: 11px;
        padding: 6px;
    }

    .btn-service {
        padding: 12px 12px;
        font-size: 14px;
        border-radius: 10px;
    }
}



/* Преимущества работы с нами */
.services-inner {
    background: linear-gradient(180deg, #021540 0%, #011429 100%);
    border-radius: 45px;
    padding: 70px 0 70px 100px;

    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    text-align: left;
}

.services-inner h2{
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 148%;
    text-transform: uppercase;
    color: #fff;
    font-family: 'Benzin-Medium', sans-serif;
    margin-bottom: 40px;
}

.adv-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.adv-card {
    flex: 1;
    min-width: unset;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    line-height: 153%;
    color: #1a1d24;
    display: flex;
    padding:10px;
    align-items: center;
}

.adv-ico {
    width: 120px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #011a35;
    border-radius: 16px;
}

.adv-ico img{
   display:block;
    margin:auto;
    max-width:100%;
}

.adv-card h3 {
    padding-left:10px;
    width: calc(100% - 120px);
}

.adv-card.adv-card-last {

    border: 1px solid #fff;
    border-radius: 20px;
    width: 343px;
    height: 135px;
    background: transparent;
    display: flex;
    align-items: center;

}

.adv-card.adv-card-last h3{
    padding-left:0;
    width:100%;
    color: #fff;
    padding: 5px;
}


.adv-card H3{
    font-size:12px;

}



.service-left {
    flex: 1;
}

.service-right {
    flex: 1;
}

.service-right img{
    display: block;
    margin: auto;
    max-width: 100%;
}


/* ========== АДАПТАЦИЯ БЛОКА ПРЕИМУЩЕСТВ ========== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .services-inner {
        padding: 50px 40px;
        flex-direction: column;
        gap: 40px;
    }

    .services-inner h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .adv-grid {
        gap: 20px;
    }

    .adv-card {
        flex: 1 1 calc(50% - 20px);
        min-width: 200px;
    }

    .adv-card.adv-card-last {
        width: 100%;
        max-width: none;
        height: auto;
        padding: 20px;
    }

    .service-left {
        width: 100%;
    }

    .service-right {
        width: 100%;
        text-align: center;
    }

    .service-right img {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .services-inner {
        padding: 30px 20px;
        border-radius: 30px;
    }

    .services-inner h2 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .adv-grid {
        flex-direction: column;
        gap: 15px;
    }

    .adv-card {
        flex: 1 1 100%;
        margin-bottom: 0;
        padding: 12px;
    }

    .adv-ico {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .adv-ico img {
        max-width: 60px;
        max-height: 60px;
    }

    .adv-card h3 {
        font-size: 12px;
        padding-left: 12px;
        width: calc(100% - 80px);
    }

    .adv-card.adv-card-last {
        width: 100%;
        height: auto;
        min-height: 100px;
        padding: 15px;
    }

    .adv-card.adv-card-last h3 {
        font-size: 12px;
        text-align: center;
    }

    .service-right img {
        max-width: 100%;
    }

    .adv-grid {
        margin-bottom: 15px;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .services-inner {
        padding: 20px 15px;
    }

    .services-inner h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .adv-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .adv-ico {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .adv-card h3 {
        width: 100%;
        padding-left: 0;
        font-size: 11px;
    }

    .adv-card.adv-card-last {
        padding: 12px;
    }

    .adv-card.adv-card-last h3 {
        font-size: 11px;
    }
}











/* Шаги работы */
.steps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.step-item {
    background: #F9F9F9;
    border: 1px solid #E0E0E0;
    border-radius: 26px;
    flex: 1 1 calc(50% - 15px);
    padding: 25px 20px;
    display: flex;
    align-items: center;
}

.step-number {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    width: calc(100% - 82px);
}

.step-content H3 {
    font-family: 'Benzin-Medium', sans-serif;
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 20px;
    line-height: 145%;
    color: #1a1d24;
}

@media (max-width: 1000px) {
    .step-item:nth-child(1) {order:1}
    .step-item:nth-child(2) {order:3}
    .step-item:nth-child(3) {order:2}
    .step-item:nth-child(4) {order:4}
}

/* Блок преимуществ (выделенное сообщение) */
.highlight-message {
    background: #01142A;
    color: white;
    padding: 20px;
    border-radius: 28px;
}

/* ========== НАШИ ЗАКАЗЧИКИ (адаптивная сетка) ========== */
.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.client-logo {
    flex: 1 1 calc(33.333% - 20px); /* 3 колонки на десктопе */
    min-width: 200px;
    background: #011A34;
    border-radius: 24px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 143px;
    box-sizing: border-box;
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Кнопка "Стать нашим клиентом" */
.client-logo-last {
    background: transparent;
    padding: 0;
}

.btn-client {
    background: linear-gradient(93.61deg, #5190F3 1.06%, #1964EF 96.2%);
    box-shadow: 0 3px 20px 0 #0069ff;
    border-radius: 24px;
    width: 100%;
    height: 100%;
    min-height: 143px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-client:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 105, 255, 0.4);
}

/* Адаптация под планшет (2 колонки) */
@media (max-width: 1024px) {
    .client-logo {
        flex: 1 1 calc(50% - 15px);
        height: auto;
        min-height: 130px;
    }
    .btn-client {
        min-height: 130px;
        font-size: 18px;
    }
}

/* Адаптация под мобильные устройства (1 колонка) */
@media (max-width: 768px) {
    .clients-logos {
        gap: 20px;
    }
    .client-logo {
        flex: 1 1 100%;
        max-width: 100%;
        height: auto;
        padding: 20px;
    }
    .client-logo img {
        max-height: 60px;
    }
    .btn-client {
        min-height: 80px;
        font-size: 16px;
        padding: 15px;
    }

    .clients-logos {
        margin-bottom: 0;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .client-logo {
        padding: 15px;
    }
    .client-logo img {
        max-height: 50px;
    }
    .btn-client {
        font-size: 14px;
        min-height: 70px;
    }
}

/* ========== СЛАЙДЕР РЕАЛИЗОВАННЫХ ПРОЕКТОВ ========== */
.projects-carousel {
    position: relative;
    margin-top: 40px;
    padding: 0 50px;
}
.projects-container {
    overflow: hidden;
    border-radius: 24px;
}
.projects-wrapper {
    display: flex;
    transition: transform 0.4s ease;
    gap: 20px;  /* отступ между слайдами (должен совпадать с gap в JS) */
}
/* Стили для карточек внутри слайдера */
.projects-wrapper .client-logo-re {
    flex: 0 0 calc(20% - 16px); /* 5 слайдов на десктопе: (100% - 4*gap)/5 */
    background: #f9f9f9;
    border: 0.8px solid #e0e0e0;
    border-radius: 22px;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.projects-wrapper .client-logo-re img {
    max-width: 80%;
    max-height: 70%;
    width: auto;
    display: block;
}
/* Адаптация под планшет (3 слайда) */
@media (max-width: 1024px) {
    .projects-wrapper .client-logo-re {
        flex: 0 0 calc(33.333% - 13.33px); /* 3 слайда на планшете */
    }
    .projects-carousel {
        padding: 0 40px;
    }
}
/* Адаптация под мобилку (1 слайд) */
@media (max-width: 768px) {
    .projects-wrapper .client-logo-re {
        flex: 0 0 100%; /* 1 слайд */
    }
    .projects-carousel {
        padding: 0 30px;
    }
}
/* Кнопки навигации (переиспользуются стили от отзывов) */
.projects-prev,
.projects-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: #0069FF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}
.projects-prev:hover,
.projects-next:hover {
    background: #1B66F0;
}
.projects-prev:active,
.projects-next:active {
    transform: translateY(-50%) scale(0.96);
}
.projects-prev { left: -20px; }
.projects-next { right: -20px; }
@media (max-width: 768px) {
    .projects-prev,
    .projects-next {
        width: 40px;
        height: 40px;
    }
    .projects-prev { left: -5px; }
    .projects-next { right: -5px; }
}




/* ========== РЕАЛИЗОВАННЫЕ ПРОЕКТЫ (адаптивная сетка) ========== */
.clients-logos-re {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.client-logo-re  {
    flex: 1 1 calc(20% - 16px); /* 5 элементов в строку на десктопе (каждый 20% ширины) */
    min-width: 140px;
    background: #f9f9f9;
    border: 0.80px solid #e0e0e0;
    border-radius: 22px;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
}

#re-our .client-logo-re{
    max-width: 225px;
}


.client-logo-re img {
    max-width: 80%;
    max-height: 70%;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Планшеты (от 768px до 1024px) — 3 колонки */
@media (max-width: 1024px) {
    .client-logo-re {
        flex: 1 1 calc(33.333% - 14px);
        min-width: 160px;
        height: 110px;
    }
}

/* Мобильные устройства (до 768px) — 2 колонки */
@media (max-width: 768px) {
    .clients-logos-re {
        gap: 15px;
    }
    .client-logo-re {
        flex: 1 1 calc(50% - 15px);
        min-width: 130px;
        height: 100px;
    }
    .client-logo-re img {
        max-width: 70%;
    }
}

/* Очень маленькие экраны (до 480px) — 1 колонка (но 2 тоже норм, оставим 2, лучше 1 для читаемости) */
@media (max-width: 540px) {
    .client-logo-re {
        flex: 1 1 100%;
        margin: 0 auto;
        height: 90px;
    }
}



/* Отзывы */
.reviews-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.review-card {
    flex: 1;
    background: #1D3C5E;
    border-radius: 24px;
    padding: 24px;
    width: 280px;
    color: white;
    position: relative;
}

.review-card img {
    width: 100%;
    max-width: 175px;
    border-radius: 20px;
    margin-bottom: 16px;
    background: #fff;
    cursor:pointer;
}

.review-title {
    font-weight: 800;
    margin: 12px 0 8px;
}

.review-number {
    display: flex;
    width: 63px;
    height: 63px;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    border: 8px solid #011a35;
    font-family: 'Benzin-Medium', serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 117%;
    text-align: center;
    color: #fff;
    position:absolute;
    top:-2px;
    right:-2px;
}

/* ========== СЛАЙДЕР ОТЗЫВОВ (уникальные классы) ========== */
.reviews-carousel {
    position: relative;
    margin-top: 40px;
    padding: 0 50px;
}
.reviews-container {
    overflow: hidden;
    border-radius: 24px;
}
.reviews-wrapper {
    display: flex;
    transition: transform 0.4s ease;
    gap: 24px;
    will-change: transform;
}
.reviews-wrapper .review-card {
    flex: 0 0 calc(25% - 18px); /* 4 слайда на десктопе */
}
@media (max-width: 1024px) {
    .reviews-wrapper .review-card {
        flex: 0 0 calc(50% - 12px);
    }
    .reviews-carousel {
        padding: 0 40px;
    }
}
@media (max-width: 768px) {
    .reviews-wrapper .review-card {
        flex: 0 0 100%;
    }
    .reviews-carousel {
        padding: 0 30px;
    }
}
/* Кнопки */
.reviews-prev,
.reviews-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: #0069FF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    z-index: 10;
}
.reviews-prev:hover,
.reviews-next:hover {
    background: #1B66F0;
}
.reviews-prev:active,
.reviews-next:active {
    transform: translateY(-50%) scale(0.96);
}
.reviews-prev { left: -20px; }
.reviews-next { right: -20px; }
@media (max-width: 768px) {
    .reviews-prev,
    .reviews-next {
        width: 40px;
        height: 40px;
    }
    .reviews-prev { left: -5px; }
    .reviews-next { right: -5px; }
}

/* Карточка отзыва – базовые стили (сохранены ваши) */
.review-card {
    flex: 0 0 calc(25% - 18px); /* 4 слайда на десктопе: (100% - 3*gap)/4 = 25% - 18px */
    background: #1D3C5E;
    border-radius: 24px;
    padding: 24px;
    color: white;
    position: relative;
    box-sizing: border-box;
}





@media (max-width: 560px) {

    #revs {
        padding-bottom: 90px;
    }

    .review-card{
        text-align: center;
    }

    .review-card img {
        display:block;
        margin:auto;
    }

    .carousel-prev, .reviews-prev {
        top: unset;
        bottom: -60px;
        display:block;
        left: 0;
        right:0;
        margin: auto;
        transform: translatex(-100%)!important;

    }
    .carousel-next, .reviews-next {
        top: unset;
        bottom: -60px;
        left: 0;
        right:0;
        margin: auto;
        transform: translatex(100%)!important;
    }
}



/* Стили содержимого карточки (ваши оригинальные) */
.review-card img {
    width: 100%;
    max-width: 175px;
    border-radius: 20px;
    margin-bottom: 16px;
    background: #fff;
}

.review-number {
    display: flex;
    width: 63px;
    height: 63px;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    border: 8px solid #011a35;
    font-family: 'Benzin-Medium', serif;
    font-weight: 400;
    font-size: 15px;
    text-align: center;
    color: #fff;
    position: absolute;
    top: -5px;
    right: -5px;
    background: #1D3C5E;
}

.review-title {
    font-weight: 800;
    margin: 12px 0 8px;
}

.review-card small {
    font-size: 12px;
    line-height: 1.4;
    display: inline-block;
}



/* ========== О КОМПАНИИ В ЦИФРАХ ========== */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-top: 50px;
}

.stat-block {
    background: #367AF1;
    border-radius: 30px;
    padding: 20px 20px 20px 30px;
    flex: 1 1 calc(50% - 15px); /* Два блока в строку на десктопе */
    min-width: 250px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    box-sizing: border-box;
}

.stat-block-c {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    font-family: 'Benzin-Medium', sans-serif;
    margin-bottom: 8px;
}

.stat-block-ico {
    width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.stat-block-ico img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Специальный сдвиг для 4-й иконки, если необходимо */
.stat-block-ico_4 {
    position: static;
    margin-bottom: -20px;
}

.stat-block-ico_4 img {
    position: relative;
    top: -20px;
    margin-bottom: -20px; /* компенсируем смещение */
}

/* Планшеты (до 1024px) — всё ещё 2 колонки, но отступы уменьшаются */
@media (max-width: 1024px) {
    .stat-block {
        flex: 1 1 calc(50% - 15px);
        padding: 20px;
    }
    .stat-block-ico {
        width: 100px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
}

/* Мобильные устройства (до 768px) — 1 колонка */
@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column;
        gap: 20px;
        margin: 20px 0;
    }
    .stat-block {
        flex: 1 1 100%;
        width: 100%;
        padding: 20px;
    }
    .stat-block-ico {
        width: 80px;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .stat-block-ico_4 img {

    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .stat-block {
        flex-direction: row;
        text-align: left;
        padding: 16px;
    }
    .stat-block-ico {
        width: 70px;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .stat-block-c div:last-child {
        font-size: 14px;
    }
}


/* История */
.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.timeline-item {
    border-bottom: 1px solid #718395;
    padding-bottom: 30px;
    position: relative;
    padding-right: 100px;
}

.timeline-item:last-child {
    border-bottom:0;
    margin-bottom: 0;

}

.timeline-year {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.timeline-item h3 {
    font-family: 'Benzin-Medium', sans-serif;
    font-weight: 400;
    font-size: 29px;
    line-height: 169%;
    color: #fff;
    margin-bottom: 10px;
}

.timeline-item p {
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
}

.arrow-up {
    border-radius: 13px;
    width: 58px;
    height: 58px;
    background: url("../img/arrow-up.svg") no-repeat center center #fff;
    position: absolute;
    right:0;
    top:10px;
}

.timeline-span {
    display:table;
    font-weight: 600;
    line-height: 178%;
    color: #fff;
    background: #214164;
    border-radius: 10px;
    padding: 2px 10px;
    margin-top: 18px;
}

/* ========== АДАПТАЦИЯ БЛОКА «ИСТОРИЯ КОМПАНИИ» ========== */

/* Планшеты (ширина до 1024px) */
@media (max-width: 1024px) {
    .timeline-item {
        padding-right: 80px; /* уменьшаем отступ для стрелки */
    }
    .timeline-item h3 {
        font-size: 28px;
        line-height: 1.4;
    }
    .timeline-item p {
        font-size: 16px;
        line-height: 1.4;
    }
    .arrow-up {
        width: 48px;
        height: 48px;
        background-size: 24px;
        top: 5px;
    }
    .timeline-span {
        font-size: 14px;
        display: inline-block;
        margin-right: 10px;
        margin-top: 12px;
    }
}

/* Мобильные устройства (ширина до 768px) */
@media (max-width: 768px) {
    .timeline-item {
        padding-right: 60px;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        position: relative;
    }
    .timeline-item h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .timeline-item p {
        font-size: 15px;
        margin-bottom: 15px;
    }
    .arrow-up {
        width: 44px;
        height: 44px;
        background-size: 20px;
        order: 1;
    }
    .timeline-span {
        display: inline-block;
        font-size: 12px;
        margin-top: 8px;
        margin-right: 8px;
        padding: 4px 12px;
    }
    /* Последний элемент: теги технологий идут после стрелки */
    .timeline-item:last-child .arrow-up {
        margin-bottom: 15px;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .timeline-item h3 {
        font-size: 20px;
    }
    .timeline-item p {
        font-size: 14px;
    }
    .timeline-span {
        font-size: 12px;
        white-space: normal;
        word-break: break-word;
    }

    .arrow-up {
        width: 32px;
        height: 32px;
        background-size: 14px;
        order: 1;
    }


}




/* Мероприятия */
.events-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.event-card {
    flex: 1;
    min-width: 280px;
    border-radius: 30px;
    overflow: hidden;

}

.event-img img{
   display: block;
    margin: auto;
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 30px;
}

.event-content {
    padding: 20px;
    border: 1px solid #E0E0E0;
    border-radius:30px;
}

.event-content h4{
    font-family: 'Benzin-Medium', sans-serif;
    margin-bottom: 10px;
    font-weight: 400;
}

.event-content p{
    font-size: 16px;
}

/* ========== FAQ (Аккордеон, 2 колонки на flex) ========== */
/* ========== FAQ – 2 независимые колонки ========== */
.faq-grid {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    align-items: flex-start;
}
.faq-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Мобильная версия: одна колонка */
@media (max-width: 768px) {
    .faq-grid {
        flex-direction: column;
        gap: 20px;
    }
    .faq-column {
        gap: 20px;
    }
}

.faq-item {
    flex: 0 0 calc(50% - 15px);
    background: #F2F2F2;
    border: 1px solid #B7B7B7;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    color: #001A34;
    cursor: pointer;
    user-select: none;
}

.faq-toggle {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    background: #367AF1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.faq-toggle::before,
.faq-toggle::after {
    content: "";
    position: absolute;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.faq-toggle::before {
    width: 27px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-toggle::after {
    width: 2px;
    height: 27px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item.active .faq-toggle::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.faq-answer {
    max-height: 0;
    padding: 0 30px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background-color: #F9F9F9;
    border-top: none;
    font-size: 15px;
    line-height: 1.5;
    color: #1A1D24;
}

.faq-answer p {
    margin: 0 0 0 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 20px 30px 20px 30px;
    border-top: 1px solid #E0E0E0;
}

@media (max-width: 768px) {
    .faq-item {
        flex: 0 0 100%; /* на мобильных – одна колонка */
    }
    .faq-question {
        padding: 20px;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 20px 20px 20px 20px;
    }
}

/* ========== Блок "Обсудим ваш проект" ========== */
.discuss-block {
    background: linear-gradient(104.22deg, #6EABFF 7.67%, #0F5CEE 92.72%), url(../img/form-bg.png);
    background-blend-mode: overlay;
    background-repeat: no-repeat ;
    background-position: right 90%;
    border-radius: 42px;
    padding: 60px 70px;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: space-between;
}

.discuss-form {
    flex: 1;
    min-width: 280px;
}

.discuss-title {
    font-family: 'Benzin-Medium', sans-serif;
    font-weight: 400;
    font-size: 45px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.discuss-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 33px;
    color: #FFFFFF;
    margin-bottom: 40px;
    max-width: 520px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row-first {
    display:flex;
    justify-content: space-between;
}

.form-row-first .form-input{
    width:48%;
}

.form-input,
.form-textarea {
    width: 100%;
    background: #7BA9FF;
    border: none;
    border-radius: 20px;
    padding: 18px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF;
    transition: background 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: #5B94FF;
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

/* Две колонки для имени и телефона */
.form-row:first-child {
    display: flex;
    gap: 20px;
}
.form-row:first-child .form-input {
    flex: 1;
}

.discuss-btn {
    width: 100%;
    background: #FFFFFF;
    border-radius: 18px;
    padding: 22px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 21px;
    text-transform: uppercase;
    color: #5B94FF;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.discuss-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========== КАСТОМНЫЙ ЧЕКБОКС ========== */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-top: 10px;
    position: relative;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #FFFFFF;
    border-radius: 6px;
    background: transparent;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
}

/* Белая галочка при выбранном состоянии */
.checkbox-input:checked + .checkbox-custom::after {
    content: "✓";
    display: block;
    text-align: center;
    line-height: 20px;
    font-size: 16px;
    color: #FFFFFF;
    font-weight: bold;
}

.checkbox-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 23px;
    color: #FFFFFF;
    flex: 1;
}
/* Правая часть – РБК */
.discuss-rbc {
    flex: 0.8;
    min-width: 280px;
    padding-top: 20px;
}

.rbc-content {
    display:flex;
    align-items: center;
}

.rbc-left {
    width:320px;
}

.rbc-right {
    width:calc(100% - 320px);
    text-align: center;
}



.rbc-title {

}

.rbc-title a{
    font-family: 'Benzin-Medium', sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 151%;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.rbc-logo {
    max-width: 100%;
    margin-bottom: 30px;
}

.rbc-name a{
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    color: #FFFFFF;
    margin-bottom: 2px;
    text-decoration: none;
}

.rbc-position a{
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    color: #FFFFFF;
    opacity: 0.9;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .discuss-block {
        padding: 40px;
        gap: 40px;
    }
    .discuss-title {
        font-size: 36px;
    }
    .rbc-title {
        font-size: 24px;
        line-height: 1.3;
    }
}

@media (max-width: 992px) {
    .discuss-block {
        flex-direction: column;
    }
    .discuss-rbc {
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 30px;
        justify-content: space-between;
    }
    .rbc-title {
        margin-bottom: 0;
        flex: 1;
    }
    .rbc-content {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    .rbc-logo {
        margin-bottom: 0;
        max-width: 150px;
    }
}


@media (max-width: 1000px) {
    .discuss-block {
        background-position: right bottom;
        padding-bottom: 450px;

    }

    .discuss-rbc {
        width:100%;
        display:block;
    }

    .rbc-content {
        width:100%;
        gap:30px;
        justify-content: flex-end;
    }

    .rbc-left {
        width:auto;
    }

    .rbc-right {
        width:auto;
    }

}



@media (max-width: 768px) {





    .discuss-block {
        padding: 30px 20px;
        padding-bottom: 450px;
    }





    .discuss-title {
        font-size: 28px;
    }
    .discuss-subtitle {
        font-size: 16px;
        line-height: 1.4;
    }
    .form-row:first-child {
        flex-direction: column;
        gap: 20px;
    }
    .discuss-rbc {
        flex-direction: column;
    }

    .rbc-content {
        gap: 0;
        flex-wrap: wrap;
    }

    .rbc-left {
        width: 60%;
    }

    .rbc-title {
        font-size: 20px;
        line-height: 1.3;
    }
    .rbc-right {
        width: 40%;
    }


    .rbc-title {

    }
    .rbc-content {
        justify-content: center;
    }
}

@media (max-width: 535px) {



    .rbc-logo {
        max-width: 110px;
    }

    .rbc-right img {
        max-width:72px;
    }

    .rbc-title a{
        font-size: 15px;
        line-height: 1.2;
    }

    .rbc-name a{
        font-size: 15px;
        line-height: 1.2;
        margin-bottom: 0px;
    }

    .rbc-content {

        align-items: flex-start;

    }

    .discuss-block {
       background-size: contain;
        padding-bottom: 400px;

    }


}


@media (max-width: 440px) {


    .discuss-block {
        background-size: contain;
        padding-bottom: 290px;

    }

    .form-row-first {
        display: block;

    }

    .form-row-first .form-input {
        width: 100%;
    }

    .form-row-first .form-input:first-child {
        margin-bottom: 20px;
    }

    .discuss-title {
        font-size: 24px;
    }

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


}

@media (max-width: 360px) {


    .discuss-block {
        background-size: contain;
        padding-bottom: 220px;

    }

    .rbc-left {
        width: 50%;
    }

    .rbc-right {
        width: 50%;
    }

    .discuss-form {
        flex: unset;
        min-width: unset;
        width: 100%;
    }


}





/* Футер */
footer {
    font-size: 0.9rem;

}


.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-top {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.footer-links a,
.footer-grid a {
    font-size: 0.9rem;
    color: white;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .container-wide,
    .container-narrow {
        padding: 0 15px;
    }
    .header {

    }
    .steps-grid
   {
        flex-direction: column;
    }

    .tech-tags {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {

    .stats-grid {
        flex-direction: column;
    }

    .form-section {
        padding: 30px 20px;
    }

    .section {
        padding: 30px 0;
    }
    section#events {
        padding-top: 60px;
    }

    section#about {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    section#re-our {
        padding-bottom: 60px;
    }

    .services-grid, .steps-grid, .clients-logos, .clients-logos-re, .stats-grid, .events-gallery,.faq-grid {
        margin-top: 30px;
    }

    .hero {
        margin-top:0;
    }

    .faq-toggle {
        width: 48px;
        height: 48px;
    }


}

@media (max-width: 460px) {


    .section {
        padding: 30px 0;
    }
    section#events {
        padding-top: 40px;
    }

    section#about {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    section#re-our {
        padding-bottom: 80px;
    }

    .services-grid, .steps-grid, .clients-logos, .clients-logos-re, .stats-grid, .events-gallery,.faq-grid {
        margin-top: 25px;
    }

    .hero {
        margin-top:0;
    }

    .faq-toggle {
        width: 40px;
        height: 40px;
    }

    .faq-toggle::before {
        width: 20px;
    }

    .faq-toggle::after {
        height: 23px;
    }

    .faq-question {
        padding: 15px;
    }

    .discuss-block, .hero-inner {
        border-radius: 30px;
    }

    .stat-block {
        border-radius: 20px;
    }

    .faq-question {
        font-size:15px;
    }

    .timeline-item {
        padding-right: 40px;
    }

    section#revs {
        padding-bottom: 90px;
    }

    .reviews-carousel {
        padding: 0 0;
    }

    .step-content H3 {
        font-size: 18px;
    }

    .step-number {
        width: 62px;
        height: 62px;
    }

    .step-number img{
        width: 62px;
        height: 62px;
    }

    .step-content {
        width: calc(100% - 62px);
        padding-right: 8px;
    }

    .client-logo {
        min-height: 110px;
    }

    .step-item {
        border-radius: 20px;
        padding: 18px 18px;
    }

    .timeline-span {
      width:100%;
    }

}

/* Вспомогательные классы */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.benzin-style {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: 2.5rem;
}

@media (max-width: 768px) {

    .benzin-style {
        font-size: 1.7rem;
    }
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-container {
    position: relative;
    width: 482px;
    max-width: 90%;
    background: #0D203A;
    border-radius: 31.63px;
    box-shadow: 0px 0px 25.9573px rgba(0, 0, 0, 0.15);
    padding: 40px 35px 50px;
    animation: fadeInScale 0.3s ease;
}

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

.popup-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 37px;
    height: 37px;
    background: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    z-index: 10;
}

.popup-close:hover {
    transform: rotate(90deg);
}

.popup-title {
    font-family: 'Benzin-Medium', sans-serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 39px;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.popup-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 23px;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 30px;
}

/* Поля формы */
.popup-form .form-field {
    margin-bottom: 20px;
}

.popup-form input,
.popup-form textarea {
    width: 100%;
    background: transparent;
    border: 0.83px solid #FFFFFF;
    border-radius: 14.3px;
    padding: 16px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #FFFFFF;
    outline: none;
    transition: border-color 0.2s;
}

.popup-form input::placeholder,
.popup-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.popup-form input:focus,
.popup-form textarea:focus {
    border-color: #5190F3;
}

.popup-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Кастомный чекбокс */
.popup-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 25px 0 20px;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 1.5px solid #FFFFFF;
    border-radius: 5px;
    background: transparent;
    position: relative;
    flex-shrink: 0;

}

.checkbox-input:checked + .checkbox-custom::after {
    content: "✓";
    display: block;
    text-align: center;
    line-height: 18px;
    font-size: 14px;
    color: #FFFFFF;
    font-weight: bold;
}

.checkbox-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 11px;
    line-height: 22px;
    color: #FFFFFF;
    flex: 1;
}

.checkbox-text a{
    color: #FFFFFF;
    text-decoration: underline;
}

/* Кнопка отправки */
.popup-submit-btn {
    width: 100%;
    background: #FFFFFF;
    border-radius: 11.8px;
    padding: 18px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15.5px;
    line-height: 19px;
    text-align: center;
    text-transform: uppercase;
    color: #0D203A;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.popup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .popup-container {
        padding: 70px 20px 40px;

    }
    .popup-title {
        font-size: 20px;
        line-height: 30px;
    }
    .popup-submit-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* Дополнительные стили для success-попапа */
.popup-success-container {
    max-width: 450px;
}

.success-content {
    text-align: center;
}

.success-icon {
    margin-bottom: 20px;
}

.popup-success-btn {
    background: #FFFFFF;
    border-radius: 11.8px;
    padding: 14px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #0D203A;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s;
}

.popup-success-btn:hover {
    transform: translateY(-2px);
}



/* Попап для изображения в стиле формы */
.popup-image-container-form {
    background: #0D203A;
    padding: 20px;
    max-width: 90vw;
    width: auto;
    border-radius: 31.63px;
    border: 1px solid rgba(81, 144, 243, 0.5);
    box-shadow: 0 0 25px rgba(0, 105, 255, 0.2);
}

.popup-content-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content-image img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}

#popupImageForm {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

button[type="submit"]:disabled,
.popup-submit-btn:disabled,
.discuss-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #cccccc !important;
    box-shadow: none !important;
    transform: none !important;
}



/* ========== БАННЕР COOKIE ========== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: #0D203A;
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    z-index: 10000;
    padding: 20px 30px;
    backdrop-filter: blur(4px);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-text strong {
    font-family: 'Benzin-Medium', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #FFFFFF;
    display: block;
    margin-bottom: 6px;
}

.cookie-text p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    opacity: 0.9;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.cookie-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-accept {
    background: #0069FF;
    color: white;
    box-shadow: 0 2px 8px rgba(0,105,255,0.3);
}
.cookie-btn-accept:hover {
    background: #1B66F0;
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
}
.cookie-btn-decline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.cookie-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #90c0ff;
    text-decoration: underline;
    transition: opacity 0.2s;
}
.cookie-link:hover {
    opacity: 0.8;
    color: #FFFFFF;
}

@media (max-width: 850px) {
    .cookie-banner {
        padding: 18px 22px;
        bottom: 16px;
    }
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        justify-content: center;
    }
}

@media (max-width: 550px) {
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    .cookie-link {
        text-align: center;
        display: block;
        width: 100%;
    }
}