@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
:root { --primary-color: #8A2BE2; --secondary-color: #00BFFF; --dark-bg: #12121c; --light-text: #EAEAEA; --card-bg: #1A1A2E;}
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; margin: 0; background-color: var(--dark-bg); color: var(--light-text); overflow-x: hidden; }

/* --- Навигационное меню --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1500;
    padding: 15px 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
    background-color: rgba(18, 18, 28, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 10px 0;
}
.nav-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
    text-decoration: none;
}
.nav-links a {
    color: #ccc;
    text-decoration: none;
    margin-left: 25px;
    font-weight: bold;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--secondary-color);
}
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.8rem;
    cursor: pointer;
}
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(18, 18, 28, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1400;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
}
.mobile-nav.is-open {
    transform: translateX(0);
}
.mobile-nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 2rem;
    margin: 15px 0;
    font-weight: bold;
}
.mobile-nav-link.cta {
    margin-top: 40px;
    padding: 10px 30px;
    border-radius: 50px;
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.floating-cta {
    position: fixed; bottom: 30px; right: 100px;
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white; padding: 15px 25px; border-radius: 50px;
    text-decoration: none; font-weight: bold; z-index: 1000;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
    transition: transform 0.3s ease;
}
.floating-cta:hover { transform: scale(1.1); }

.floating-phone {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #28a745;
    color: white; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8em; z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}
.floating-phone:hover { transform: scale(1.1); background-color: #218838; }

.screen { min-height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; background-size: cover; background-position: center; padding: 100px 20px; box-sizing: border-box; }
.screen::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(18, 18, 28, 0.7); }
.content, .split-layout { position: relative; z-index: 2; width: 90%; max-width: 1200px; margin: 0 auto; text-align: center; }
.screen.text-only { background: var(--dark-bg); }
.screen.text-only::before { display: none; }
h1, h2 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
p { font-size: 1.2rem; line-height: 1.7; max-width: 700px; margin: 20px auto; }
.highlight { background-color: var(--primary-color); color: white; padding: 5px 10px; border-radius: 5px; font-weight: bold; }

.split-layout { display: flex; align-items: center; gap: 40px; }
.split-layout.reverse { flex-direction: row-reverse; }

.text-part {
    flex: 1;
    text-align: left;
    max-width: 580px;
    margin: 0 auto;
}
.text-part p, .text-part ul { max-width: 100%; margin: 20px 0; }
.text-part h2 { font-size: 3rem; }

.image-part { flex: 1; min-height: 60vh; background-size: cover; background-position: center; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.problem-points { margin: 40px auto 0; max-width: 700px; display: grid; gap: 15px; }
.problem-item { display: flex; align-items: flex-start; text-align: left; gap: 12px; }
.problem-item i { color: var(--secondary-color); margin-top: 5px; flex-shrink: 0; }

.steps { margin-top: 30px; }
.step-item { display: flex; align-items: flex-start; margin-bottom: 20px; }
.step-num { font-size: 4rem; font-weight: 700; color: var(--secondary-color); line-height: 1; margin-right: 20px; }
.step-text { text-align: left; }
.step-text h3 { margin: 0 0 5px 0; font-size: 1.5rem; }
.step-text p { margin: 0; font-size: 1rem; }

.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: left; margin-top: 40px;}
.benefit-item { background-color: var(--card-bg); padding: 20px; border-radius: 10px; border-left: 3px solid var(--primary-color); transition: transform 0.3s ease; }
.benefit-item:hover { transform: scale(1.05); }

.founder-preview-container { position: relative; max-width: 850px; margin: 0 auto; padding-top: 40px; }
.founder-preview-photo { width: 180px; height: 180px; background-size: cover; background-position: center; border-radius: 50%; border: 4px solid var(--dark-bg); box-shadow: 0 5px 20px rgba(0,0,0,0.5); position: absolute; top: 50%; left: 0; transform: translate(-40%, -50%); z-index: 3; }
.founder-preview-text { background-color: var(--card-bg); border-radius: 15px; padding: 30px 40px 30px 140px; text-align: left; border: 1px solid rgba(255, 255, 255, 0.05); }
.founder-preview-text h2 { font-size: 2.5rem; margin: 0 0 5px 0; }
.founder-preview-text h3 { font-size: 1.5rem; margin: 0; }
.founder-preview-text .founder-title { font-size: 1rem; color: #aaa; margin: 5px 0 20px 0; font-style: italic; }
.founder-preview-text p { font-size: 1rem; line-height: 1.6; max-width: 100%; }

/* ИСПРАВЛЕНИЕ: Выравниваем карточки тарифов */
.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Заставляет карточки растягиваться на одну высоту */
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.tariff-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex; /* Делаем карточку flex-контейнером */
    flex-direction: column; /* Элементы внутри - в колонку */
    text-align: left;
}
.tariff-content {
    flex-grow: 1; /* Этот блок будет растягиваться, прижимая цену к низу */
}
.tariff-price {
    flex-shrink: 0; /* Блок с ценой не будет сжиматься */
}
.tariff-card:hover { border-color: var(--primary-color); transform: scale(1.05); }
.tariff-link { text-decoration: none; color: inherit; display: flex; } /* display:flex чтобы ссылка растянулась на всю карточку */
.price-month {
    font-size: 2rem;
    font-weight: bold;
    margin: 15px 0 5px 0;
}
.price-year {
    font-size: 1.2rem;
    color: #ccc;
}


#contact { padding: 100px 20px; }
#contact .content { background: rgba(0,0,0,0.5); padding: 40px; border-radius: 20px; }
.contact-details { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 40px; }
.contact-item { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.contact-item a { color: var(--light-text); text-decoration: none; }
.contact-item i { color: var(--secondary-color); font-size: 1.3em; }

.contact-form { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.contact-form input, .contact-form textarea { width: 100%; max-width: 500px; padding: 15px; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; background-color: rgba(255,255,255,0.05); color: var(--light-text); font-size: 1rem; box-sizing: border-box; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.6); }
.contact-form button.cta-button { width: 100%; max-width: 500px; cursor: pointer; border: none; background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: white; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 1.1em; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.contact-form button.cta-button:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(138, 43, 226, 0.6); }

.consent-checkbox { max-width: 500px; width: 100%; margin: 10px 0; display: flex; align-items: flex-start; text-align: left; font-size: 0.9rem; }
.consent-checkbox input[type="checkbox"] { margin-right: 10px; width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.consent-checkbox label { color: #ccc; }
.consent-checkbox a { color: var(--secondary-color); text-decoration: underline; }

.flashes { list-style: none; padding: 0; margin: 20px auto; max-width: 500px; width: 100%; }
.flashes li { padding: 10px 20px; margin-bottom: 10px; border-radius: 5px; font-weight: bold; }
.flashes .success { background-color: #28a745; color: white; }
.flashes .error { background-color: #dc3545; color: white; }

footer { text-align: center; padding: 40px 20px; color: #777; background: #0d0d14; font-size: 0.9rem; }
.legal-links { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
.legal-links a { color: #aaa; text-decoration: none; transition: color 0.3s ease; }
.legal-links a:hover { color: var(--primary-color); text-decoration: underline; }

.read-more-btn { display: inline-block; margin-top: 20px; padding: 12px 24px; border: 2px solid var(--secondary-color); border-radius: 50px; color: var(--secondary-color); text-decoration: none; font-weight: bold; transition: all 0.3s ease; }
.read-more-btn:hover { background-color: var(--secondary-color); color: white; }

#cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--card-bg); border-top: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 -5px 15px rgba(0,0,0,0.3); padding: 20px; z-index: 2000; display: none; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; box-sizing: border-box; }
#cookie-banner p { margin: 0; font-size: 0.9rem; color: #ccc; text-align: center; max-width: 600px; }
#cookie-banner a { color: var(--secondary-color); text-decoration: underline; }
#cookie-banner button { padding: 10px 20px; border-radius: 50px; border: none; background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: white; font-weight: bold; cursor: pointer; transition: transform 0.2s ease; }
#cookie-banner button:hover { transform: scale(1.05); }

/* ИСПРАВЛЕНИЕ: Возвращаем стили для страницы основателя */
.founder-container {
    display: flex;
    gap: 40px;
    text-align: left;
}
.founder-sidebar {
    flex: 0 0 280px;
    text-align: center;
}
.founder-main {
    flex: 1;
}
.founder-main h1 {
    text-align: left;
    margin-top: 0;
}
.founder-main h4 {
    font-size: 1.4rem;
    margin-top: 30px;
}
.founder-photo-page {
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border-radius: 50%; /* Круглое фото */
    border: 5px solid var(--card-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.styled-list {
    list-style: none;
    padding: 0;
}
.styled-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 0;
}
.styled-list li i {
    color: #28a745;
    font-size: 1.2rem;
    margin-top: 5px;
}


/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    h1, h2 { overflow-wrap: break-word; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .text-part h2 { font-size: 1.9rem; line-height: 1.3; }
    p { font-size: 1.1rem; }
    .split-layout, .split-layout.reverse { flex-direction: column; gap: 20px; }
    #founder .split-layout { flex-direction: column-reverse; }
    .image-part { min-height: 40vh; width: 100%; margin-top: 30px; }
    .text-part { text-align: center; }
    .text-part p, .text-part ul, .problem-points, .step-text, .benefits-grid { text-align: left; }
    .benefits-grid { grid-template-columns: 1fr; }
    .step-item { flex-direction: column; align-items: center; text-align: center; }
    .step-text { text-align: center; }
    .founder-preview-container { padding-top: 60px; }
    .founder-preview-photo { width: 120px; height: 120px; left: 50%; top: 0; transform: translateX(-50%); }
    .founder-preview-text { padding: 80px 20px 20px 20px; text-align: center; }
    .founder-preview-text p { text-align: left; }
    .founder-preview-text h2 { font-size: 1.8rem; }
    .founder-preview-text h3 { font-size: 1.2rem; }
    .founder-preview-text p, .founder-preview-text .founder-title { font-size: 1rem; }
    .floating-cta { display: none; }
    .floating-phone { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 1.6em; }
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }
    .tariff-card { width: 90%; max-width: 350px; }
    #contact .content { padding: 20px; }
    .contact-details { gap: 20px; }
    .founder-container {
        flex-direction: column;
        gap: 20px;
    }
    .founder-sidebar {
        flex-basis: auto;
        width: 100%;
        margin-bottom: 20px;
    }
    .founder-main h1 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    #cookie-banner { flex-direction: column; text-align: center; }
    #cookie-banner p { margin-bottom: 10px; }
}