/* СТИЛИ ДЛЯ ШАПКИ */
.main-header {
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    /*padding: 1rem 0;*/
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header.scrolled {
    background: rgba(26, 35, 126, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-header.hidden {
    transform: translateY(-100%);
}

/* Бренд/логотип */
.brand-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-icon {
    font-size: 2rem;
    color: #64dd17;
    margin-right: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(100, 221, 23, 0.3));
}

.brand-text {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.brand-leads {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-finder {
    color: #64dd17;
    background: linear-gradient(135deg, #64dd17 0%, #aeea00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Навигация */
.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 1rem;
    font-weight: 300;
}

/* Кнопки в шапке */
.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #00c853 0%, #64dd17 100%);
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00b248 0%, #4caf50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
}

/* ФУТЕР */
.footer-section {
    background: #1a237e;
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-section .brand-wrapper {
    justify-content: flex-start;
}

.footer-section .brand-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.footer-section .brand-text {
    font-size: 1.3rem;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #64dd17 !important;
}

/* Стили для аутентифицированных пользователей */
.authenticated-view {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    min-height: calc(100vh - 56px);
}

.welcome-card {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 35, 126, 0.2);
}


/* Стили для главной страницы */
.hero-section {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 30%, #5c6bc0 100%);
    color: white;
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Кнопки героя */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #00c853 0%, #64dd17 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.3);
}


.btn-hero-primary:hover {
    background: linear-gradient(135deg, #00b248 0%, #4caf50 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 200, 83, 0.4);
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
    color: white;
}

/* Анимированные цифры */
.stats-counter {
    display: flex;
    justify-content: start;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Карточка "Как это работает" */
/* ОСНОВНЫЕ СТИЛИ ДЛЯ БЛОКА "КАК ЭТО РАБОТАЕТ" */
.how-it-works-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(250, 251, 253, 0.98) 100%);
    border: 1px solid rgba(234, 236, 240, 0.8);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
        0 4px 24px rgba(26, 35, 126, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.how-it-works-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        #3949ab 0%,
        #00c853 33%,
        #ff6d00 66%,
        #2196f3 100%);
    border-radius: 4px 4px 0 0;
    z-index: 1;
}


/* Заголовок блока */
.how-it-works-card h3 {
    font-weight: 700;
    color: #1a237e;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.how-it-works-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3949ab, #00c853);
    border-radius: 2px;
    opacity: 0.8;
}

/* СТИЛИ ДЛЯ ШАГОВ ПРОЦЕССА */
.feature-step {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.feature-step:last-child {
    margin-bottom: 0;
}

.feature-step:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(var(--icon-color-rgb), 0.2);
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Контейнер для иконки шага */
.step-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.step-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--icon-color);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.feature-step:hover .step-icon-wrapper::before {
    opacity: 0.15;
}

/* Дополнительное свечение при наведении */
.step-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(var(--icon-color-rgb), 0.05);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-step:hover .step-icon-wrapper::after {
    opacity: 1;
}

/* Иконка шага */
.step-icon {
    font-size: 1.5rem;
    color: var(--icon-color);
    z-index: 1;
    transition: transform 0.3s ease;
}

.feature-step:hover .step-icon {
    transform: scale(1.1);
}

/* Контент шага */
.step-content {
    flex: 1;
}

.step-content h4 {
    color: #1a237e;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.feature-step:hover .step-content h4 {
    color: var(--icon-color);
}

.step-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Устанавливаем RGB значения для цветов иконок */
.feature-step[style*="3949ab"] { --icon-color-rgb: 57, 73, 171; }
.feature-step[style*="00c853"] { --icon-color-rgb: 0, 200, 83; }
.feature-step[style*="ff6d00"] { --icon-color-rgb: 255, 109, 0; }
.feature-step[style*="2196f3"] { --icon-color-rgb: 33, 150, 243; }


/* Возможности */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a237e;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--feature-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.05);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--feature-color) 0%, var(--feature-color-dark) 100%);
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    color: #1a237e;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Призыв к действию */
.cta-section {
    background: linear-gradient(135deg, #ff6d00 0%, #ffab00 100%);
    color: white;
    padding: 4rem 0;
    border-radius: 30px;
    margin: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-cta {
    background: white;
    color: #ff6d00;
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    color: #ff6d00;
}

/* Анимации */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fade-in-up {
    animation-name: fadeInUp;
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-header {
        padding: 0.5rem 0;
    }
    
    .brand-text {
        font-size: 1.4rem;
    }
    
    .brand-icon {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }
    
    .hero-section {
        padding: 6rem 0 3rem;
        margin-top: 50px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

        .how-it-works-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .feature-step {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .step-icon-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .how-it-works-card h3 {
        font-size: 1.3rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
    }

    .stats-counter {
        gap: 2rem;
        justify-content: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .step-icon-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .how-it-works-card {
        margin-top: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 3rem 1.5rem;
        margin: 3rem 0;
    }

    .cta-title {
        font-size: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section .brand-wrapper {
        justify-content: center;
    }
    
    .footer-links {
        margin-top: 1.5rem;
        text-align: center !important;
    }
}


/* Стили для модальных окон */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.98), rgba(26, 35, 126, 0.93));
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h6 {
    color: #1a237e;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.modal-body ul {
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem 2rem;
}