/* =================================
   СТИЛИ ЛЕНДИНГА (ФИНАЛЬНАЯ ВЕРСИЯ)
   ================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* --- Базовые стили --- */
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; background-color: #fff; color: #333; margin: 0; line-height: 1.6; }
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
main { flex-grow: 1; }
.landing-content { max-width: 1100px; width: 100%; margin: 0 auto; padding: 1rem; box-sizing: border-box; }
section { margin-top: 6rem; margin-bottom: 6rem; }
a { color: #3b82f6; text-decoration: none; }
a:hover { text-decoration: none; color: #1e3a8a; }
h2 { text-align: center; font-size: 2.5rem; color: #1e3a8a; font-weight: 700; margin-bottom: 3rem; }

/* --- Навигация --- */
.main-navigation { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; padding: 0 1rem; position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 70px; }
.nav-logo a { font-size: 1.5rem; font-weight: 700; color: #1e3a8a; }
.nav-menu { display: flex; gap: 2rem; }
.nav-menu a { font-weight: 500; color: #4a5568; }
.nav-actions { display: flex; gap: 1rem; }
.stButton { display: inline-block; padding: 10px 20px; border: 1px solid #e2e8f0; background-color: #fff; color: #333; border-radius: 8px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
.stButton:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.stButton.primary { background-color: #3b82f6; color: white; border-color: #3b82f6; }
.stButton.primary:hover { background-color: #1e3a8a; }
.stButton.secondary { }
.stButton.large { padding: 14px 28px; font-size: 1.1rem; }
.stButton.full-width { width: 100%; text-align: center; box-sizing: border-box; }

/* --- Страницы аутентификации --- */
.auth-page-wrapper { display: flex; align-items: center; justify-content: center; width: 100%; padding: 2rem 1rem; box-sizing: border-box; }
.auth-container { width: 100%; max-width: 450px; padding: 2.5rem; background: white; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); box-sizing: border-box; }
.auth-container h3 { text-align: center; color: #1e3a8a; margin-top: 0; margin-bottom: 1.5rem; font-size: 1.8rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #4a5568; }
.form-group input[type="text"], .form-group input[type="email"],.form-group input[type="tel"], .form-group input[type="password"] { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; box-sizing: border-box; transition: border-color 0.3s; }
.form-group input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
.auth-links { text-align: center; margin-top: 1.5rem; }
.auth-links a { margin: 0 10px; color: #4a5568; font-weight: 500; }
.error-alert, .success-alert, .info-alert { padding: 1rem; border-radius: 8px; margin: 1.5rem 0; color: white; text-align: center; }
.error-alert { background: #ef4444; }
.success-alert { background: #10b981; }
.info-alert { background: #3b82f6; }

/* --- 1. Первый экран --- */
.hero-section { display: flex; align-items: center; justify-content: center;  text-align: center; min-height: 70vh; padding: 3rem 0;}
.hero-content {  max-width: 800px; }
.hero-content h1 { font-size: 3.2rem; font-weight: 900; line-height: 1.2; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.2rem; color: #4a5568; margin-bottom: 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center;}
.hero-visual { flex: 1; text-align: center; }
.hero-visual img { max-width: 100%; border-radius: 15px; }

/* --- 2. Социальное доказательство --- */
.trust-section { text-align: center; color: #9ca3af; font-weight: 500; letter-spacing: 1px; }
.logos-container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 2rem; margin-top: 1.5rem; filter: grayscale(100%); opacity: 0.7; }

/* --- 3. Как это работает --- */
.steps-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card { text-align: center; background: #f8fafc; padding: 2rem; border-radius: 15px; }
.step-number { font-size: 1.2rem; font-weight: 700; color: #3b82f6; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; background: #e0e7ff; margin: 0 auto 1rem auto; }
.step-icon { font-size: 3rem; line-height: 1; }
.step-card h3 { margin-top: 1rem; }

/* --- 4. Сценарии --- */
.scenarios-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.scenario-card { background: #eef2f9; padding: 1.5rem; border-radius: 10px; }
.scenario-icon { font-size: 2.5rem; line-height: 1; }
.scenario-card h4 { margin-top: 1rem; color: #1e3a8a; }

/* --- 5. Преимущества --- */
.features-grid.expanded { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: white; padding: 1.5rem; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.feature-card h3 { display: flex; align-items: center; gap: 0.5rem; }

/* --- 6. Отзывы --- */
.testimonials-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.testimonial-card { background: #f8fafc; padding: 2rem; border-left: 4px solid #3b82f6; border-radius: 8px; }
.testimonial-text { font-style: italic; color: #4a5568; }
.testimonial-author { margin-top: 1.5rem; }
.author-title { font-size: 0.9rem; color: #6b7280; }

/* --- 7. Тарифы --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; align-items: start; }
.pricing-card { background: white; padding: 2rem; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: all 0.3s ease; }
.pricing-card.featured {
    border: 2px solid #3b82f6;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}
.pricing-price {
    font-size: 2.2rem; /* ИЗМЕНЕНИЕ: Немного уменьшаем шрифт для универсальности */
    font-weight: 700;
    color: #1e3a8a;
    margin: 1rem 0;
    min-height: 60px; /* ИЗМЕНЕНИЕ: Задаем минимальную высоту, чтобы выровнять блоки */
    display: flex;
    align-items: center;
    justify-content: center;
}
.pricing-card .stButton { margin-top: auto; }

/* --- 8. Финальный CTA --- */
.cta-section { text-align: center; background: #1e3a8a; color: white; padding: 4rem 1rem; border-radius: 15px; }
.cta-section h2 { color: white; }
.cta-buttons { margin-top: 1.5rem; }

/* --- Подвал --- */
.site-footer { background: #1e293b; color: #e2e8f0; padding-top: 3rem; }
.footer-container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: white; }
.site-footer a { color: #93c5fd; }
.footer-bottom { border-top: 1px solid #334155; margin-top: 2rem; padding: 1.5rem 1rem; text-align: center; font-size: 0.9rem; }
.grant-container {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Отступ между лого и текстом */
}
.grant-logo {
    width: 150px;
    height: auto;
    flex-shrink: 0; /* Запрещаем логотипу сжиматься */
}
.grant-text { font-size: 0.8rem; line-height: 1.4; color: #9ca3af; margin: 0; }


/* --- Адаптивность --- */
@media (max-width: 992px) {
    .hero-section { flex-direction: column; text-align: center; }
    .nav-menu { display: none; }
    .steps-container, .features-grid, .testimonials-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .scenarios-grid, .footer-container, .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: scale(1); }
    .grant-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 41, 59, 0.8); /* темный фон с прозрачностью */
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
}
.demo-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 1001;
    display: none;
    box-sizing: border-box;
}
.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #9ca3af;
    border: none;
    background: none;
    cursor: pointer;
    line-height: 1;
}
.close-popup:hover {
    color: #1e293b;
}
