/* CSS Variables - обновлены в соответствии с трендами 2025 */
:root {
    /* Future Dusk - главный цвет 2025 года */
    --primary-color: #2d3a6d;
    --primary-light: #3d4a8d;
    --primary-dark: #1d2a5d;

    /* Контрастные сочетания */
    --accent-color: #e94f37; /* Яркий оранжево-красный для контраста */
    --secondary-color: #f9c22e; /* Золотистый для акцентов */

    /* Замена черного на темные оттенки */
    --text-color: #2d2a32; /* Темно-фиолетовый вместо черного */
    --text-light: #4a4754;
    --text-white: #fff;

    /* Фоновые цвета */
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --bg-dark: #2d3a6d; /* Future Dusk для темных секций */

    /* Футер */
    --footer-bg: #2d3a6d; /* Future Dusk */
    --footer-dark: #1d2a5d; /* Темный Future Dusk */
    --footer-text: #ecf0f1;

    /* Дополнительные цвета */
    --star-color: #f9c22e;
    --border-color: #e0e0e0;

    /* Тени */
    --shadow-sm: 0 2px 5px rgba(45, 58, 109, 0.1);
    --shadow-md: 0 4px 8px rgba(45, 58, 109, 0.15);
    --shadow-lg: 0 10px 20px rgba(45, 58, 109, 0.2);

    /* Другие переменные */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --max-width: 1200px;
}

/* Base Styles */
html {
    height: 100%;
    scroll-behavior: smooth;
}

/* General Styles */
body {
    font-family: "Outfit", "Roboto", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

main {
    flex: 1;
    padding: 0;
}

/* Типография - ИСПРАВЛЕНО: уменьшены отступы между параграфами */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    line-height: 1.2;
    font-family: "Space Grotesk", "Outfit", sans-serif;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

/* ИСПРАВЛЕНО: уменьшены отступы между параграфами */
p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0 0 0.75rem 0;
}

/* Специальные стили для футера - еще меньше отступов */
footer p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Для последнего параграфа в секции убираем нижний отступ */
.footer-section p:last-child {
    margin-bottom: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-normal);
    position: relative;
}

a:not(.btn):after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-normal);
}

a:not(.btn):hover:after {
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* Footer - УЛУЧШЕНО */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 0 0;
    position: relative;
    overflow: hidden;
}

/* Добавляем волнистый эффект в футере */
footer:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: var(--accent-color);
    clip-path: polygon(
            0% 0%,
            5% 60%,
            10% 0%,
            15% 60%,
            20% 0%,
            25% 60%,
            30% 0%,
            35% 60%,
            40% 0%,
            45% 60%,
            50% 0%,
            55% 60%,
            60% 0%,
            65% 60%,
            70% 0%,
            75% 60%,
            80% 0%,
            85% 60%,
            90% 0%,
            95% 60%,
            100% 0%
    );
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
    font-family: "Space Grotesk", sans-serif;
}

.footer-section h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

/* ИСПРАВЛЕНО: обычные изображения в футере */
.footer-section img {
    max-width: 150px;
    height: auto;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.footer-section img:hover {
    transform: scale(1.05);
}

/* НОВОЕ: Отдельная секция для логотипа банка на всю ширину */
.footer-bank-section {
    width: 100%;
    max-width: var(--max-width);
    margin: 20px auto 0;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

/* Заголовок для секции банка */
.footer-bank-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: "Space Grotesk", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Контейнер для логотипа банка - на всю ширину */
.bank-logo-container {
    width: 100%;
    max-width: 100%;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 10px;
    transition: none;
    overflow: hidden;
    box-sizing: border-box;
}

.bank-logo-container:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Логотип банка - занимает всю доступную ширину */
.footer-bank-logo {
    width: calc(100% - 10px) !important;
    max-width: calc(100% - 10px) !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 8px !important;
    display: block !important;
    margin: 5px auto !important;
    object-fit: contain !important;
    max-height: 80px !important;
    box-sizing: border-box !important;
}

.footer-bank-logo:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.footer-section.about p {
    margin-bottom: 0.5rem;
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section.links ul li {
    margin-bottom: 12px;
}

.footer-section.links ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--transition-normal);
    display: inline-block;
    transform-origin: left;
}

.footer-section.links ul li a:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-section.contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
    min-width: 16px;
}

.footer-section.contact a {
    color: var(--footer-text);
    text-decoration: none;
}

.footer-section.contact a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    margin-top: 20px;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    border-radius: 50%;
    transition: var(--transition-normal);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.social-links a:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform: translateY(100%);
    transition: var(--transition-normal);
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: var(--text-white);
}

.social-links a:hover:before {
    transform: translateY(0);
}

.footer-bottom {
    background: var(--footer-dark);
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.accessibility-statement a {
    color: var(--footer-text);
    margin: 0 8px;
}

.accessibility-statement a:hover {
    color: var(--secondary-color);
}

/* Buttons - обновлены в соответствии с трендами 2025 */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    margin: 0 10px 10px;
    will-change: transform;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.btn:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    transition: all 0.3s;
    z-index: -1;
}

/* Основная кнопка - синяя */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 58, 109, 0.2);
}

/* Акцентная кнопка - оранжевая */
.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-white);
    border-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(233, 79, 55, 0.2);
}

/* Вторичная кнопка - прозрачная с белой обводкой */
.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Вторичная кнопка на светлом фоне */
.btn-secondary-dark {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary-dark:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 58, 109, 0.2);
}

/* Золотая кнопка */
.btn-gold {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-color: var(--secondary-color);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(249, 194, 46, 0.2);
}

/* Кнопка с иконкой */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.btn-icon:hover i {
    transform: translateX(3px);
}

/* Размеры кнопок */
.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Кнопка с эффектом пульсации */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 58, 109, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(45, 58, 109, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 58, 109, 0);
    }
}

/* Кнопка с градиентом */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    color: var(--text-white);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 58, 109, 0.3);
}

/* Кнопка для услуг */
.services-more .btn {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.services-more .btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 58, 109, 0.2);
}

/* Services section */
.services-section {
    padding: 100px 20px;
    text-align: center;
    background-color: var(--bg-light);
    position: relative;
}

.services-section h2 {
    margin-bottom: 60px;
    font-size: clamp(2rem, 5vw, 3rem);
    position: relative;
    display: inline-block;
}

.services-section h2:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    will-change: transform;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: calc(33.33% - 40px);
}

.service-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover:before {
    transform: scaleX(1);
}

.service-card.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(45, 58, 109, 0.1);
    border-radius: 50%;
    margin-bottom: 25px;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: rotateY(180deg);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.service-card p {
    margin: 0;
    color: var(--text-light);
}

/* Reviews section */
.reviews-section {
    padding: 100px 20px;
    text-align: center;
    background-color: var(--bg-white);
    position: relative;
}

.reviews-section h2 {
    margin-bottom: 60px;
    font-size: clamp(2rem, 5vw, 3rem);
    position: relative;
    display: inline-block;
}

.reviews-section h2:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.review-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    border-left: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.review-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.5s ease;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.review-card:hover:before {
    height: 100%;
}

.review-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.review-rating {
    color: var(--star-color);
}

.star {
    font-size: 1.2rem;
}

.star.filled {
    color: var(--star-color);
}

.review-content {
    position: relative;
}

.review-content:before {
    content: " ";
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 4rem;
    color: rgba(45, 58, 109, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-content p {
    margin: 0;
    font-style: italic;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* Contact section */
.contact-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Добавляем метапиксельный эффект */
.contact-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h2 {
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-size: clamp(2rem, 5vw, 3rem);
}

.contact-section p {
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    opacity: 0.9;
}

.benefits-section {
    padding: 60px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 15px;
}

.benefit-card p {
    font-size: 1rem;
    color: #777;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Эффекты наведения */
.benefit-card:hover .benefit-icon {
    color: var(--secondary-color);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Process Section */
.process-section {
    padding: 100px 20px;
    background-color: var(--bg-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Подзаголовок секции */
.process-section .section-subtitle {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light);
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Контейнер шагов */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: var(--max-width);
    margin: 40px auto 0;
    position: relative;
    gap: 30px;
}

/* Линия между шагами (для десктопов) */
.process-steps:before {
    content: "";
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1;
    display: none;
}

@media (min-width: 769px) {
    .process-steps:before {
        display: block;
    }
}

/* Отдельный шаг */
.process-step {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    margin: 0 15px 30px;
    position: relative;
    z-index: 2;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

/* Номер шага */
.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.process-step:hover .step-number {
    transform: scale(1.1);
    background: var(--accent-color);
}

/* Заголовок шага */
.process-step h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Описание шага */
.process-step p {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
}

.process-step a {
    color: var(--accent-color);
    font-weight: 600;
}

.process-step a:hover {
    text-decoration: underline;
}

/* Кнопка CTA */
.process-cta {
    margin-top: 40px;
}

.process-cta .btn-primary {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* Секция статистики */
.stats-section {
    padding: 60px 20px;
    background-color: #f8fafc;
    text-align: center;
    box-sizing: border-box;
}

/* Контейнер статистики */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Индивидуальные элементы статистики */
.stat-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    position: relative;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Числа статистики */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Эффекты при наведении на числа */
.stat-item:hover .stat-number {
    transform: scale(1.05);
    color: #f39c12;
}

/* Подписи к статистике */
.stat-label {
    font-size: 1.1rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 20px;
    text-align: center;
    background-color: var(--bg-white);
}

.portfolio-filters {
    margin: 40px 0;
}

.portfolio-filter {
    background: none;
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 30px;
    transition: var(--transition-normal);
    color: var(--text-color);
}

.portfolio-filter.active,
.portfolio-filter:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 250px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 58, 109, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-info {
    text-align: center;
    color: var(--text-white);
    padding: 20px;
}

.portfolio-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.portfolio-info p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.portfolio-more {
    margin-top: 40px;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--secondary-color);
    width: 0%;
    z-index: 9999;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f0f4f8, #e8f0fc);
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.05);
    margin-top: 4rem;
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cta-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.cta-form input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    min-width: 220px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-success {
    font-weight: 500;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-normal);
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(45, 58, 109, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Checkbox styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Form validation styles */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 1px #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Form messages */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* File upload styles */
.file-upload {
    position: relative;
}

.file-upload-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-button {
    padding: 12px 20px;
    background-color: rgba(45, 58, 109, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.file-upload-button i {
    margin-right: 10px;
}

.file-upload-button:hover {
    background-color: rgba(45, 58, 109, 0.1);
}

/* CTA Form Section */
.cta-form-section {
    padding: 100px 20px;
    background-color: var(--bg-white);
}

.cta-form-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.cta-form-container:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

.cta-form-content {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    color: var(--text-white);
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-form-content h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.cta-form-content p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.cta-form {
    flex: 2;
    min-width: 300px;
    padding: 40px;
    background: var(--bg-white);
    position: relative;
    z-index: 2;
}

/* Order form styles */
.order-section {
    padding: 80px 0;
    background-color: var(--bg-light, #f9f9f9);
}

.order-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.order-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color, #3498db) 0%, var(--primary-dark, #2980b9) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.order-info:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../images/patterns/dots.svg");
    opacity: 0.1;
    z-index: 1;
}

.order-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.order-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.order-benefits {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.order-benefit {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.order-benefit i {
    color: var(--accent-color, #f1c40f);
    margin-right: 15px;
    font-size: 1.2rem;
}

.order-contact {
    position: relative;
    z-index: 2;
}

.order-contact h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
    color: var(--accent-color, #f1c40f);
}

.contact-method i {
    margin-right: 10px;
}

.order-form-container {
    flex: 2;
    min-width: 300px;
    padding: 40px;
}

.order-form {
    max-width: 600px;
}

/* Добавлено для плавного появления при скролле */
.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Анимация появления снизу */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Класс для визуального скрытия элементов (для SEO и доступности) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        max-width: 100%;
        flex-basis: 100%;
    }

    .reviews-container {
        grid-template-columns: 1fr;
    }

    .review-card {
        max-width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        margin-bottom: 25px;
        padding: 0 10px;
    }

    /* На мобильных устройствах секция банка остается как есть */
    .footer-bank-section {
        margin: 30px auto 0;
        padding: 0 15px;
        width: 100%;
        max-width: calc(100vw - 30px);
        box-sizing: border-box;
    }

    .bank-logo-container {
        padding: 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-bank-logo {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        padding: 8px !important;
        max-height: 50px !important;
        margin: 10px auto !important;
    }

    .btn {
        margin: 5px;
        display: block;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .process-steps:before {
        display: none;
    }

    .process-step {
        margin-bottom: 40px;
    }

    .cta-form-container {
        flex-direction: column;
    }

    .portfolio-item {
        height: 200px;
    }

    .tech-grid {
        gap: 15px;
    }

    .tech-item {
        width: 100px;
        height: 100px;
    }

    .tech-item img {
        width: 50px;
        height: 50px;
    }

    .benefit-card {
        flex-basis: calc(50% - 20px);
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 20px;
        border-radius: 10px;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    footer {
        padding: 40px 0 0 0;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .order-info,
    .order-form-container {
        padding: 30px;
    }

    .cta-form-content,
    .cta-form {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .benefit-card {
        flex-basis: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bank-section {
        margin: 25px auto 0;
        padding: 0 10px;
        max-width: calc(100vw - 20px);
    }

    .bank-logo-container {
        padding: 12px;
    }

    .footer-bank-logo {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        padding: 6px !important;
        max-height: 45px !important;
        margin: 8px auto !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .stats-section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

/* Для больших экранов - ограничиваем размер логотипа */
@media (min-width: 1200px) {
    .footer-bank-logo {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        max-height: 100px !important;
        padding: 10px !important;
        margin: 10px auto !important;
    }

    .bank-logo-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 15px;
    }

    .footer-bank-section {
        margin: 15px auto 0;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .contact-section {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .services-section,
    .reviews-section {
        padding: 20px 0;
        background: none;
        color: #000;
    }

    .service-card,
    .review-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
