/* Сброс стилей */

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

:root {
    --primary-color: #2b67b2;
    /* Более спокойный синий */
    --secondary-color: #ffe659;
    /* Более мягкий желтый */
    --accent-color: #4CAF50;
    --text-color: #2c3e50;
    /* Темно-синий для текста */
    --light-text: #7f8c8d;
    /* Серый для второстепенной информации */
    --light-bg: #f8f9fa;
    --dark-bg: #1a4d84;
    --folk-red: #e74c3c;
    --folk-green: #2ecc71;
    --folk-blue: #3498db;
    --white: #ffffff;
    --border-radius: 12px;
    /* Увеличили радиус скругления */
    --shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    /* Более мягкая тень */
    --transition: all 0.3s ease;
    /* Плавные переходы для всех элементов */
    --card-bg: #ffffff;
    /* Фон для карточек */
    --vyshyvanka-pattern: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23FFD700' d='M15 5L10 10L15 15L10 20L15 25L20 20L15 15L20 10L15 5Z'/%3E%3C/svg%3E");
    --vyshyvanka-border: repeating-linear-gradient(45deg, #0057b7, #0057b7 10px, #ffd700 10px, #ffd700 20px);
}


/* Служебные классы */

.text-center {
    text-align: center;
    margin-top: 30px;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.7;
    /* Увеличили межстрочный интервал */
}


/* Header */

.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 12px 0;
    /* Увеличили отступы */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-color);
    /* Упростили границу */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    /* Увеличили ширину контейнера */
    margin: 0 auto;
    padding: 0 20px;
    /* Увеличили боковые отступы */
}

.header-menu {
    display: flex;
    gap: 20px;
    /* Увеличили расстояние между пунктами меню */
}

.menu-item {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    /* Немного увеличили размер шрифта */
    padding: 8px 16px;
    /* Увеличили отступы */
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.menu-item:hover,
.menu-item.active {
    background-color: var(--light-bg);
    color: var(--primary-color);
    transform: translateY(-2px);
    /* Добавили эффект поднятия при наведении */
}

.menu-item.active {
    border-bottom: 2px solid var(--secondary-color);
}


/* Основные стили для контейнера */

.container {
    max-width: 1200px;
    /* Увеличили ширину контейнера */
    margin: 0 auto;
    padding: 20px;
    /* Увеличили отступы */
}


/* Логотип */

.logo-container {
    margin-bottom: 0;
}

.logo {
    max-width: 130px;
    /* Немного увеличили размер логотипа */
    height: auto;
}

.footer-logo {
    max-width: 110px;
    height: auto;
}


/* Hero section */

.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: white;
    padding: 130px 0 30px;
    /* Увеличили верхний отступ */
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--secondary-color);
    /* Уменьшили толщину границы */
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    /* Увеличили отступ между текстом и изображением */
    margin-bottom: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

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

.family-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 3px solid var(--secondary-color);
    /* Уменьшили толщину границы */
    transition: var(--transition);
    /* Добавили переход для анимации */
}

.family-image:hover {
    transform: scale(1.02);
    /* Легкое увеличение при наведении */
}

.hero-section h1 {
    color: white;
    font-size: 36px;
    /* Увеличили размер заголовка */
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Roboto Slab', serif;
}

.hero-subtitle {
    font-size: 18px;
    /* Увеличили размер подзаголовка */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    /* Увеличили отступ */
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* Секция заголовка */

.section-header {
    text-align: center;
    margin-bottom: 50px;
    /* Увеличили отступ снизу */
    position: relative;
}

.section-header h2 {
    font-size: 28px;
    /* Увеличили размер заголовка */
    margin-bottom: 15px;
    /* Увеличили отступ */
    color: var(--primary-color);
    font-family: 'Roboto Slab', serif;
}

.ukraine-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 150px;
}

.divider-blue,
.divider-yellow {
    height: 4px;
    border-radius: 2px;
    width: 50%;
}

.divider-blue {
    background-color: var(--primary-color);
}

.divider-yellow {
    background-color: var(--secondary-color);
}


/* Секция преимуществ */

.benefits-section {
    padding: 80px 0 60px;
    /* Увеличили нижний отступ */
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    /* Адаптивные колонки */
    gap: 30px;
    /* Увеличили отступ между карточками */
}

.benefit-item {
    background-color: var(--card-bg);
    /* Белый фон для карточек */
    padding: 25px;
    /* Увеличили внутренние отступы */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    /* Добавили переход для эффектов */
    border-top: 3px solid transparent;
    /* Для эффекта при наведении */
}

.benefit-item:hover {
    transform: translateY(-5px);
    /* Эффект поднятия при наведении */
    border-top: 3px solid var(--secondary-color);
    /* Цветная граница при наведении */
}

.benefit-icon {
    background-color: rgba(43, 103, 178, 0.1);
    /* Полупрозрачный фон для иконок */
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    /* Увеличили отступ снизу */
}

.benefit-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.benefit-content p {
    font-size: 15px;
    color: var(--light-text);
    margin-bottom: 0;
}


/* Секция причин */

.reasons-section {
    padding: 60px 0;
    /* Увеличили отступы */
}

.reasons-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Адаптивные колонки */
    gap: 30px;
    /* Увеличили отступ между карточками */
}

.reason-card {
    background-color: var(--card-bg);
    /* Белый фон для карточек */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    /* Добавили переход для эффектов */
}

.reason-card:hover {
    transform: translateY(-5px);
    /* Эффект поднятия при наведении */
}

.reason-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Равномерное заполнение изображения */
}

.reason-card h3 {
    padding: 0 20px;
    margin-top: 20px;
    font-size: 18px;
    color: var(--primary-color);
}

.reason-card p {
    padding: 0 20px 20px;
    color: var(--light-text);
    font-size: 15px;
}


/* Народный баннер */

.folk-banner {
    background-color: #f6f3ea;
    /* Более теплый фон */
    display: flex;
    margin: 40px 0;
    /* Увеличили отступы */
    border-radius: var(--border-radius);
    overflow: hidden;
}

.folk-pattern {
    width: 50px;
    background-image: var(--vyshyvanka-pattern);
    opacity: 0.2;
    /* Снизили непрозрачность для более минималистичного вида */
}

.folk-content {
    flex-grow: 1;
    padding: 40px;
    /* Увеличили отступы */
    text-align: center;
}

.folk-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Roboto Slab', serif;
}

.folk-content p {
    color: var(--light-text);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.folk-button {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 24px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.folk-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    /* Эффект поднятия при наведении */
}


/* Отзывы */

.testimonials-section {
    padding: 60px 0;
    /* Увеличили отступы */
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Адаптивные колонки */
    gap: 30px;
    /* Увеличили отступ */
}

.testimonial-card {
    background-color: var(--card-bg);
    /* Белый фон для карточек */
    border-radius: var(--border-radius);
    padding: 25px;
    /* Увеличили внутренние отступы */
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    /* Эффект поднятия при наведении */
}

.testimonial-avatar {
    text-align: center;
    margin-bottom: 15px;
}

.testimonial-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    object-fit: cover;
}

.testimonial-content h3 {
    text-align: center;
    margin-bottom: 5px;
    font-size: 18px;
    color: var(--primary-color);
}

.testimonial-stars {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 15px;
    /* Увеличили отступ */
}

.testimonial-content p {
    font-size: 15px;
    color: var(--light-text);
    font-style: italic;
    text-align: center;
}


/* CTA секция */

.cta-section {
    background-color: var(--primary-color);
    padding: 50px 30px;
    /* Увеличили отступы */
    border-radius: var(--border-radius);
    margin: 40px 0;
    /* Увеличили отступы */
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 28px;
    /* Увеличили размер заголовка */
    font-family: 'Roboto Slab', serif;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    /* Увеличили отступ */
    font-size: 18px;
    /* Увеличили размер текста */
}


/* Кнопки */

.main-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 28px;
    /* Увеличили отступы */
    font-weight: 600;
    font-size: 16px;
    /* Увеличили размер шрифта */
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Добавили тень */
}

.main-button:hover {
    background-color: #ffdf33;
    /* Немного ярче при наведении */
    transform: translateY(-3px);
    /* Эффект поднятия */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    /* Усилили тень */
}

.secondary-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 24px;
    /* Увеличили отступы */
    font-weight: 600;
    font-size: 16px;
    /* Увеличили размер шрифта */
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.secondary-button:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    /* Эффект поднятия */
}


/* Footer */

.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 50px 0 20px;
    /* Увеличили отступы */
    position: relative;
    margin-top: 60px;
    /* Увеличили отступ сверху */
}

.footer-container {
    max-width: 1200px;
    /* Увеличили ширину контейнера */
    margin: 0 auto;
    padding: 0 20px;
    /* Увеличили боковые отступы */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Адаптивные колонки */
    gap: 40px;
    /* Увеличили отступ */
}

.footer-info {
    margin-bottom: 20px;
}

.footer-info p {
    margin-top: 15px;
    opacity: 0.8;
    line-height: 1.7;
    /* Увеличили межстрочный интервал */
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    /* Увеличили отступ */
    font-size: 18px;
    /* Увеличили размер заголовка */
    font-weight: 600;
}

.footer-links ul {
    list-style-type: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 15px;
    /* Увеличили отступ */
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    max-width: 1200px;
    /* Увеличили ширину контейнера */
    margin: 40px auto 0;
    /* Увеличили отступ сверху */
    padding: 20px 20px 0;
    /* Увеличили отступы */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 15px;
    /* Увеличили отступ между иконками */
}

.social-icons a {
    color: white;
    opacity: 0.6;
    font-size: 18px;
    /* Увеличили размер иконок */
    transition: var(--transition);
}

.social-icons a:hover {
    opacity: 1;
    color: var(--secondary-color);
    transform: translateY(-3px);
    /* Эффект поднятия */
}


/* Модальные окна */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center !important;
    /* Принудительное вертикальное центрирование */
    justify-content: center !important;
    /* Принудительное горизонтальное центрирование */
    overflow-y: auto;
    padding: 0;
}

.modal.active {
    display: flex !important;
    /* Принудительно использовать flex */
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: modalAppear 0.3s ease-out;
    margin: 0 auto;
    /* Строгое центрирование по горизонтали */
    transform: none;
    max-height: 70vh;
    /* Максимальная высота */
    overflow-y: auto;
    /* Добавляем прокрутку для высоких модальных окон */
    align-self: center;
    /* Центрирование внутри flex-контейнера */
}

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

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    /* Увеличили отступ */
    text-align: center;
    font-size: 24px;
    /* Увеличили размер заголовка */
}

.modal-description {
    text-align: center;
    margin-bottom: 20px;
    /* Увеличили отступ */
    color: var(--light-text);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    /* Увеличили размер */
    cursor: pointer;
    color: var(--light-text);
    transition: var(--transition);
}

.close-button:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
    /* Добавили эффект вращения */
}


/* Банки */

.banks-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    /* Увеличили отступ */
    margin-top: 20px;
}

.bank-option {
    background-color: var(--light-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
    /* Увеличили отступы */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    color: var(--text-color);
}

.bank-option:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    /* Эффект поднятия */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Добавили тень */
}


/* Формы */

.form-group {
    margin-bottom: 20px;
    /* Увеличили отступ */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
    /* Увеличили размер */
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    /* Увеличили отступы */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-size: 15px;
    /* Увеличили размер шрифта */
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 103, 178, 0.1);
    /* Добавили фокусное кольцо */
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    /* Увеличили отступы */
    font-weight: 600;
    font-size: 16px;
    /* Увеличили размер шрифта */
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: var(--dark-bg);
    transform: translateY(-3px);
    /* Эффект поднятия */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Добавили тень */
}


/* Loader */

.loading-content {
    text-align: center;
    padding: 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: auto;
}

.loader {
    border: 4px solid rgba(43, 103, 178, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Пуш-уведомления */

.push-notification {
    text-align: center;
}

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

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Вопросы оператора */

.question-container {
    margin-bottom: 20px;
}

.question-box {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 10px;
    font-style: italic;
    color: var(--text-color);
}


/* Сообщения об ошибке */

.error-message {
    color: var(--folk-red);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}


/* Адаптивность */

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    .hero-text {
        text-align: center;
    }
    .hero-image {
        margin-top: 20px;
    }
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .hero-section h1 {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .section-header h2 {
        font-size: 24px;
    }
    .modal-content {
        padding: 20px;
        width: 95%;
        max-width: 450px;
        margin: auto;
        /* центрирование */
    }
    .banks-list {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 24px;
    }
    .folk-banner {
        flex-direction: column;
    }
    .folk-pattern {
        height: 20px;
        width: 100%;
    }
    .modal-content {
        padding: 15px;
        width: 95%;
        margin: auto;
        max-height: 60vh;
        /* Уменьшаем высоту на малых экранах */
    }
}


/* Стили для модального окна блокировки карты */

.message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.message-icon {
    margin-bottom: 15px;
}

#blockCardMessage {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
    margin: 10px 0;
}

#blockCardCloseButton {
    width: 100%;
    margin-top: 15px;
}