@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; }

/* --- Плавающие элементы --- */
.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; }

/* --- Sections --- */
.screen { min-height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; background-size: cover; background-position: center; padding: 60px 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; }

/* --- Layouts & Specific Blocks --- */
.split-layout { display: flex; align-items: center; gap: 40px; }
.split-layout.reverse { flex-direction: row-reverse; }

.text-part {
    flex: 1;
    text-align: left;
}
.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: 20px;
}

.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); }

/* --- Стили для блока основателя на главной --- */
.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; 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;}
.tariff-card.popular { border-color: var(--primary-color); }
#contact-form-section .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 Styles --- */
.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;
}

/* --- Стили для страницы основателя (/founder) --- */
.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) {
    h1, h2 {
        overflow-wrap: break-word; /* Мягкий перенос длинных слов */
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    /* ТОЧЕЧНОЕ ИСПРАВЛЕНИЕ ДЛЯ ПРОБЛЕМНЫХ ЗАГОЛОВКОВ */
    #ai .text-part h2,
    #example .text-part h2,
    .founder-preview-text h2 {
        font-size: 1.8rem; /* Уменьшаем только эти заголовки */
        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 h3 {
        font-size: 1.2rem;
    }
    .founder-preview-text p, .founder-preview-text .founder-title {
        font-size: 1rem;
    }

    .floating-cta { bottom: 20px; right: 85px; padding: 12px 20px; font-size: 0.9rem; }
    .floating-phone { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 1.6em; }
    .tariff-card { width: 90%; }
    #contact-form-section .content { padding: 20px; }
    .contact-details { gap: 20px; }
}

/* --- Responsive для страницы основателя (.founder-container) --- */
@media (max-width: 992px) {
    .founder-container {
        flex-direction: column;
        gap: 20px;
    }
    .founder-sidebar {
        flex-basis: auto;
        width: 100%;
        margin-bottom: 20px;
    }
    .founder-main h1 {
        text-align: center;
    }
}