/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #0f1b33;
    line-height: 1.5;
}

/* Шапка */
header {
    background-color: #fff;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

    header .logo {
        font-weight: bold;
        font-size: 20px;
        color: #0f1b33;
        margin-bottom: 10px;
    }

    header nav {
        flex: 1;
        text-align: center;
        margin-bottom: 10px;
    }

        header nav a {
            margin: 0 10px;
            text-decoration: none;
            color: #0f1b33;
            font-weight: 500;
            display: inline-block;
        }

    header .contact {
        text-align: right;
    }

/* Главный баннер */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background: #e5efff;
    flex-wrap: wrap;
}

    .hero .text {
        max-width: 50%;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .hero ul {
        margin-bottom: 20px;
        list-style: none;
    }

        .hero ul li::before {
            content: "✔";
            color: #0f1b33;
            margin-right: 10px;
        }

    .hero .buttons button {
        margin-right: 15px;
        padding: 12px 25px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-weight: bold;
    }

    .hero .buttons .yellow {
        background-color: #fbbc04;
        color: #fff;
    }

    .hero .buttons .blue {
        background-color: #0f1b33;
        color: #fff;
    }

    .hero img {
        max-width: 45%;
        border-radius: 5px;
    }

.logo-section {
    display: flex; /* Устанавливаем flex-контейнер для логотипов */
    justify-content: space-around; /* Распределение пространства равномерно между логотипами */
    padding: 20px; /* Отступы вокруг секции с логотипами */
    background-color: white; /* Цвет фона для секции */
}

.logo-left, .logo-right {
    display: flex; /* Устанавливаем flex-контейнер для логотипов */
    align-items: center; /* Центрируем элементы внутри логотипа */
}

    .logo-left img, .logo-right img {
        margin-right: 10px; /* Отступ между изображением и текстом */
        height: 90px; /* Установите нужную высоту для изображения */
        width: auto; /* Поддерживает пропорции изображения */
    }

.logo-item {
    text-align: center; /* Центрируем текст под логотипом */
}

    .logo-item img {
        height: 50px; /* Устанавливаем высоту логотипов */
        width: auto; /* Сохраняем пропорции изображений */
        margin-bottom: 10px; /* Отступ между логотипом и текстом */
    }

    .logo-item p {
        margin: 0; /* Убираем отступ у параграфов */
        color: darkblue; /* Цвет текста под логотипами */
        font-size: 1em; /* Размер шрифта для описания */
    }

.blue-btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: #1f3c88;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

    .blue-btn:hover {
        background-color: #16306b;
    }

/* Услуги */
.services {
    padding: 50px;
    text-align: center;
	position: relative;
    z-index: 1;
}

    .services h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

.service-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    overflow: visible;
}

.service-card {
    position: relative;
    background-color: #fff;
    padding: 60px;
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

    .service-card img {
        width: 300px;
        height: 400px;
        object-fit: cover;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .service-card h3 {
        margin-bottom: 10px;
        font-size: 18px;
    }

    .service-card p {
        font-size: 14px;
        color: #555;
        margin-bottom: 10px;
    }

    .service-card button {
        background-color: #0f1b33;
        color: #fff;
        border: none;
        padding: 8px 15px;
        border-radius: 5px;
        cursor: pointer;
    }

/* скрываем полный текст по умолчанию */
.card-full {
    display: none;
}

/* активное состояние */
.service-card.active .card-preview {
    display: none;
}

.service-card.active .card-full {
    display: block;
}

/* кнопка */
.toggle-btn {
    margin-top: 10px;
    background: #1f3c88;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* контейнер картинки */
.image-wrapper {
    overflow: hidden;
    border-radius: 10px;
    display: inline-block; 
    width: auto;         
    height: auto;         
    text-align: center;    
}

.service-img {
    width: 100%;
    border-radius: 10px;
}

/* скрываем полный текст по умолчанию */
.card-full {
    display: none;
}

/* активное состояние */
.service-card.active .card-preview {
    display: none;
}

.service-card.active .card-full {
    display: block;
}

/* кнопка */
.toggle-btn {
    margin-top: 10px;
    background: #1f3c88;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* скрытый блок */
.hidden-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: 0.3s;
}

/* активное состояние */
.image-wrapper.active .hidden-text {
    opacity: 1;
}

.image-wrapper.active .service-img {
    opacity: 0;
}

/* кнопка */
.toggle-btn {
    background: #1f3c88;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

    .toggle-btn:hover {
        background: #162d66;
    }

.cta {
    padding: 40px 20px;
}

.cta-content {
    background: #1f3c88;
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

    .cta-left img {
        width: 50px;
        height: 50px;
        padding: 10px;
        border: 2px solid white;
        border-radius: 50%;
    }

    .cta-left h3 {
        margin: 0;
        font-size: 18px;
    }

    .cta-left p {
        margin: 3px 0 0;
        font-size: 14px;
        opacity: 0.9;
    }

/* КНОПКА */
.cta-content a {
    background: #f2c94c;
    color: black;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

    .cta-content a:hover {
        background: #e0b93f;
    }

/* иконка */
.icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f3c88;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 5; /* важно */
}

    .icon img {
        width: 32px;
        height: 32px;
    }

/* Цены */

/*фон только для страницы цен */
.prices-page {
    background: linear-gradient(180deg, #1f3c88, #0f2a5a);
    color: white;
}

.prices-page .logo-item p {
    color: white;
}

header {
    background: white;
    color: black;
}

.pricing {
    text-align: center;
    padding: 40px 20px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
}

.prices-page .price-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.prices-page .logo-section {
    background: transparent;
    border-radius: 12px;
    padding: 20px;
}

.price-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    backdrop-filter: blur(5px);
}

.price-img {
    width: 300px;
    margin-bottom: 25px;
}

.price {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
}

.min-order {
    opacity: 0.8;
}

.logo-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 20px;
    flex-wrap: wrap;
}

.logo-item {
    text-align: center;
    font-size: 14px;
}

    .logo-item img {
        width: 90px;
        height: 90px; /* фиксируем, чтобы не было "узких" */
        object-fit: contain;
    }

.price-banner {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
}

.banner-content {
    background: linear-gradient(90deg, #f2c94c, #f2994a);
    color: black;
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 800px;
    width: 100%;
}

    .banner-content img {
        width: 40px;
    }

    .banner-content h3 {
        margin: 0;
    }

    .banner-content p {
        margin: 5px 0 0;
    }

/* Отзывы */
.reviews {
    padding: 50px;
    text-align: center;
}

    .reviews h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

.review-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.review-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: left;
}

    .review-card p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .review-card .author {
        font-weight: bold;
        font-size: 14px;
        color: #0f1b33;
    }

/* Футер */
footer {
    background-color: #0f1b33;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Контакты */
.contact-section {
    padding: 50px;
    text-align: center;
}

    .contact-section h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .contact-section form {
        max-width: 500px;
        margin: 0 auto;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .contact-section input,
    .contact-section textarea {
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
        width: 100%;
    }

    .contact-section button {
        padding: 12px;
        background-color: #0f1b33;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-weight: bold;
    }

.contact-info {
    margin-top: 40px;
    font-size: 16px;
}

    .contact-info p {
        margin-bottom: 10px;
    }

/*Преимущества*/
.advantages-hero {
    text-align: center;
    padding: 60px 20px 30px; /* сверху больше воздуха */
}

.services {
    padding: 40px 20px 60px;
}

    .services h2 {
        margin-bottom: 30px;
    }

.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 40px;
}

.stat h2 {
    font-size: 36px;
    color: #1f3c88;
}

.steps {
    padding: 60px 20px;
    text-align: center;
}

.steps-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.step {
    max-width: 220px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #1f3c88;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}

.cta-content {
    background: #1f3c88;
    color: white; /* ВАЖНО */
}

    .cta-content a {
        background: #f2c94c;
        color: black;
    }

.cta {
    padding: 60px 20px;
}

/*Для ЮЛ*/
.b2b-hero {
    text-align: center;
    padding: 60px 20px 30px;
}

.b2b-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    width: 230px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

    /* hover эффект */
    .benefit-card:hover {
        transform: translateY(-5px);
    }

    .benefit-card img {
        width: 50px;
        margin-bottom: 15px;
    }

    .benefit-card h3 {
        margin-bottom: 10px;
    }

    .benefit-card p {
        font-size: 14px;
        opacity: 0.7;
    }

.benefit {
    max-width: 200px;
    text-align: center;
}

.b2b-solutions {
    padding: 60px 20px;
    text-align: center;
}

.solutions-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.solution-card {
    background: white;
    border-radius: 14px;
    border-top: 4px solid #1f3c88;
    padding: 30px 20px;
    width: 250px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

    .solution-card:hover {
        transform: translateY(-8px);
    }

    .solution-card img {
        width: 60px;
        margin-bottom: 20px;
    }

    .solution-card h3 {
        margin-bottom: 10px;
    }

    .solution-card p {
        font-size: 14px;
        opacity: 0.7;
    }

/* =========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
========================================= */

@media (max-width: 768px) {

    /* ---------------- HEADER ---------------- */

    header {
        padding: 15px;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 15px;
    }

    header .logo {
        font-size: 16px;
        max-width: 45%;
    }

    header .contact {
        font-size: 13px;
        text-align: right;
        max-width: 45%;
    }

    /* меню теперь горизонтальное */
    header nav {
        width: 100%;
        order: 3;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    header nav a {
        display: inline-block;
        width: auto;
        padding: 6px 10px;
        font-size: 14px;
    }

    /* ---------------- HERO ---------------- */

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 35px 15px;
    }

    .hero .text {
        max-width: 100%;
    }

    .hero img {
        max-width: 100%;
        margin-top: 20px;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero ul {
        text-align: left;
        margin-bottom: 25px;
    }

    .hero ul li {
        font-size: 15px;
        margin-bottom: 10px;
    }

    /* ---------------- КНОПКИ ---------------- */

    .hero .buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero .buttons button,
    .blue-btn {
        width: 100%;
        margin: 0;
        padding: 14px;
        font-size: 16px;
    }

    /* ---------------- КАРТОЧКИ ---------------- */

    .service-card,
    .price-card,
    .review-card,
    .benefit-card,
    .solution-card {
        width: 100%;
        height: 100%;
        padding: 20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-card img {
        height: auto;
        width: auto;
    }

    /* ---------------- СЕТКИ ---------------- */

    .service-cards,
    .price-cards,
    .review-cards,
    .solutions-grid,
    .b2b-benefits,
    .steps-wrapper {
        flex-direction: column;
        align-items: center;
    }

    /* ---------------- СЕКЦИИ ---------------- */

    .services,
    .pricing,
    .reviews,
    .contact-section,
    .steps,
    .b2b-solutions {
        padding: 50px 15px;
    }

    .services h2,
    .pricing h2,
    .reviews h2,
    .contact-section h2,
    .section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    /* ---------------- CTA ---------------- */

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cta-left {
        flex-direction: column;
    }

    /* ---------------- ФОРМА ---------------- */

    .contact-section form {
        width: 100%;
    }

    input,
    textarea,
    button {
        width: 100%;
    }

    /* ---------------- FIX OVERFLOW ---------------- */

    body,
    html {
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* =========================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ
========================================= */

@media (max-width: 480px) {

    .hero h1 {
        font-size: 28px;
    }

    .hero p,
    .hero ul li {
        font-size: 14px;
    }

    .services h2,
    .pricing h2,
    .reviews h2,
    .contact-section h2,
    .section-title {
        font-size: 24px;
    }

    header .logo {
        font-size: 14px;
    }

    header .contact {
        font-size: 12px;
    }

    header nav a {
        font-size: 13px;
    }
}

.hero-description {
    margin-top: 20px;
    margin-bottom: 25px;

    max-width: 650px;

    font-size: 18px;
    line-height: 1.7;

    color: #dbe4f0;
}
