/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-blue: #1c54ff;
    --accent-pink: #d900c9;
    --accent-cyan: #00eaff;
    --bg-light: #eef4ff;
    --radius-card: 30px;
    --font-main: 'Montserrat', sans-serif;
    --text-dark: #111;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background-color: #fff;
    color: var(--text-dark);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.header { padding: 20px 0; background: #fff; }
.header__inner { display: flex; justify-content: space-between; align-items: center; }

.header__logo {
    font-size: 24px; font-weight: 800; color: var(--primary-blue);
    text-transform: uppercase; letter-spacing: 1px;
}

.btn-login {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}
.btn-login:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* --- COMMON CARD STYLES --- */
.card-section { margin-bottom: 20px; }
.card {
    border-radius: var(--radius-card);
    padding: 60px 80px;
    position: relative;
    overflow: hidden;
}

/* --- HERO SECTION --- */
.hero .card {
    background: linear-gradient(135deg, #dbeafe 0%, #eaddff 100%);
    display: flex; align-items: center; justify-content: space-between;
}
.hero__content { max-width: 45%; z-index: 2; }
.hero__title { font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero__text { color: #555; margin-bottom: 30px; font-size: 16px; line-height: 1.5; }

.text-pink { color: var(--accent-pink); }
.text-blue { color: var(--primary-blue); }
.text-cyan { color: var(--accent-cyan); }

.btn-primary {
    background: var(--primary-blue); color: #fff; padding: 15px 30px;
    border-radius: 8px; font-weight: 600; border: none; cursor: pointer; font-size: 16px;
}
.btn-primary:hover { background: #123bcc; transform: translateY(-2px); }

/* HERO IMAGES */
.hero__visual {
    width: 50%;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__bg-circle {
    position: absolute;
    width: 350px; height: 350px;
    background-color: #7b9cff;
    border-radius: 50%; opacity: 0.2;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 1;
}

.avatar-img { position: absolute; z-index: 2; width: 220px; height: auto; transition: transform 0.3s ease; }
.avatar-man { left: 10%; bottom: 10%; z-index: 2; }
.avatar-woman { right: 10%; top: 10%; z-index: 3; }
.hero__visual:hover .avatar-man { transform: scale(1.05) rotate(-5deg); }
.hero__visual:hover .avatar-woman { transform: scale(1.05) rotate(5deg); }

/* --- FEATURE SECTION --- */
.feature .card {
    background: linear-gradient(135deg, #e3eeff 0%, #eff6ff 100%);
    display: flex; align-items: center; justify-content: space-between;
    flex-direction: row-reverse;
}
.feature__content { max-width: 45%; }
.feature__visual { width: 45%; display: flex; justify-content: center; position: relative; }

.phone-img {
    max-width: 100%; height: auto; max-height: 450px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
    animation: float 6s ease-in-out infinite;
}

/* --- FAQ SECTION (NEW) --- */
.faq .card {
    background: #f9faff;
    border: 1px solid #eef0f5;
    padding: 60px 80px;
}

.faq__title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: 0.3s;
}

.faq-head {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-head::after {
    content: '╱╲'; /* FontAwesome Chevron Down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    color: var(--primary-blue);
    transition: transform 0.3s;
}

.faq-item.active .faq-head::after {
    transform: rotate(180deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
    color: #555;
    line-height: 1.6;
}

.faq-item.active .faq-body {
    /* Padding добавляется динамически или фиксировано, если открыт */
    padding-bottom: 25px;
}

/* --- CTA FORM SECTION --- */
.cta .card {
    background: linear-gradient(135deg, #2b55ff 0%, #1a45ff 100%);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

.cta__content { position: relative; z-index: 10; max-width: 700px; margin: 0 auto; }
.cta__title { font-size: 32px; font-weight: 700; margin-bottom: 40px; line-height: 1.3; }

/* Кнопка Регистрация (белая для контраста на синем) */
.btn-white {
    background: #fff;
    color: var(--primary-blue);
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* 3D DECORATIONS */
.decor { position: absolute; z-index: 1; pointer-events: none; animation: float 5s ease-in-out infinite; }
.decor-flame { width: 100px; top: 40px; left: 5%; animation-delay: 0s; }
.decor-crystal-top { width: 100px; top: 40px; right: 8%; animation-delay: 1s; }
.decor-crystal-bottom { width: 120px; bottom: 40px; left: 10%; transform: rotate(-45deg); animation-delay: 2s; filter: blur(1px); }
.decor-lightning { width: 70px; bottom: 30px; right: 5%; transform: rotate(15deg); animation-delay: 1.5s; }

/* --- FINAL SECTION --- */
.final .card {
    background: linear-gradient(to bottom, #f8faff 0%, #fff 100%);
    text-align: center; padding: 100px 20px;
}
.final__title { font-size: 36px; font-weight: 700; margin-bottom: 0; }

/* --- FOOTER LEGAL --- */
.footer-legal {
    padding: 20px 0 40px 0;
    color: #888;
    font-size: 14px;
}

.footer-legal p { margin-bottom: 5px; }

/* --- ANIMATIONS --- */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero .card, .feature .card {
        flex-direction: column; text-align: center; padding: 40px 20px;
    }
    .feature .card { flex-direction: column-reverse; }
    .hero__content, .feature__content, .hero__visual, .feature__visual { max-width: 100%; width: 100%; }
    .hero__visual { height: 350px; margin-top: 30px; }
    .avatar-man { left: 50%; transform: translateX(-90%); width: 180px; }
    .avatar-woman { right: 50%; transform: translateX(90%); top: 20%; width: 180px; }
    .hero__text { margin: 0 auto 30px auto; }
    .phone-img { max-height: 350px; margin-bottom: 30px; }
    .card { padding: 40px 20px; }
}

@media (max-width: 600px) {
    .hero__title, .feature__title { font-size: 28px; }
    .cta__title { font-size: 24px; }
    .faq__title { font-size: 26px; }
    .faq-head { font-size: 16px; }

    .decor-flame { width: 60px; left: -10px; top: 10px; }
    .decor-crystal-top { width: 60px; right: -10px; top: 10px; }
    .decor-crystal-bottom { width: 70px; left: -10px; bottom: 10px; }
    .decor-lightning { width: 50px; right: -5px; bottom: 10px; }
    .faq .card { padding: 40px 20px; }
    .final__title { font-size: 32px; font-weight: 700; margin-bottom: 0; }
}
