/* ── Reset base container (override base.html.twig .main-content) ── */
.main-content:has(.lp3-page),
.main-content:has(.lp3-hero) {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* ── Reset & base ── */
.lp3-page { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--color-text); position: relative; overflow: hidden; background: var(--color-white); }

/* ── Decorative ellipses (blue glow) — соответствуют Figma Ellipse 1/2 ── */
.lp3-ellipse {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    background: var(--landing-home-ellipse-bg);
    filter: blur(80px);
    border-radius: 50%;
    will-change: transform;
}
.lp3-ellipse-1 { top: 1300px; left: -208px; width: 2358px; height: 316px; }
.lp3-ellipse-2 { top: 5500px; left: -119px; width: 1150px; height: 740px; }
.lp3-page > section, .lp3-page > footer { position: relative; z-index: 1; }
.lp3-page > header { position: sticky; z-index: 1000; }
/* Секции с прозрачным фоном пропускают эллипс на просвет */
.lp3-problems, .lp3-testimonials, .lp3-faq, .lp3-cta { background: transparent !important; }
@media (max-width: 767px) {
    .lp3-ellipse-1 { width: 628px; height: 1810px; top: 30%; left: -186px; background: var(--landing-home-ellipse-bg); filter: blur(700px); }
    .lp3-ellipse-2 { width: 1150px; height: 740px; top: 75%; left: -119px; background: var(--landing-home-ellipse-bg); filter: blur(700px); }
}
.lp3-container { max-width: 1760px; margin: 0 auto; padding: 0 80px; }

/* ── HEADER ── */
.lp3-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--color-white);
    border-bottom: 1px solid var(--landing-home-border, rgba(13,27,42,.08));
    height: 110px; display: flex; align-items: center;
    width: 100%;
}
.lp3-header-inner {
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 1760px; margin: 0 auto;
    padding-left: 80px !important; padding-right: 80px !important;
}
.lp3-logo { display: flex; align-items: center; text-decoration: none; color: var(--color-text); }
.lp3-logo svg, .lp3-logo img { height: 85px; width: auto; flex-shrink: 0; display: block; }
.lp3-nav { display: flex; align-items: center; gap: 32px; }
.lp3-nav-link { text-decoration: none; color: var(--color-text-secondary); font-size: var(--font-size-base); font-weight: var(--font-weight-medium); transition: color .2s; }
.lp3-nav-link:hover { color: var(--color-text); }
.lp3-header-actions { display: flex; align-items: center; gap: 12px; }
.lp3-btn-login {
    display: inline-flex; align-items: center;
    background: var(--button-primary-background); color: var(--color-white);
    border: none; border-radius: 16px;
    padding: 10px 24px; font-size: var(--font-size-sm); font-weight: var(--font-weight-bold);
    font-family: 'Montserrat', sans-serif;
    text-decoration: none; cursor: pointer; transition: opacity .2s;
}
.lp3-btn-login:hover { opacity: .9; }

/* Burger */
.lp3-burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 36px; height: 36px; cursor: pointer; padding: 8px; background: none; border: none; }
.lp3-burger span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: all .3s; }
.lp3-nav-mobile { display: none; }

/* ── FOOTER ── */
.lp3-footer { background: var(--color-text); padding: 0; width: 100%; }
.lp3-footer-inner {
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 1760px; margin: 0 auto; padding: 80px;
    flex-wrap: wrap; gap: 20px;
}
.lp3-footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp3-footer-logo-text { color: var(--color-white); font-size: var(--font-size-base); font-weight: var(--font-weight-bold); }
.lp3-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.lp3-footer-nav-link { font-family: 'Montserrat', sans-serif; font-size: var(--font-size-base); font-weight: var(--font-weight-medium); line-height: var(--line-height-tight); color: var(--color-white); text-decoration: none; transition: color .2s; white-space: nowrap; }
.lp3-footer-nav-link:hover { color: var(--color-white); }
.lp3-footer-cta {
    background: var(--button-primary-background); color: var(--color-white);
    border-radius: 8px; padding: 9px 20px; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold);
    text-decoration: none; white-space: nowrap; transition: opacity .2s;
}
.lp3-footer-cta:hover { opacity: .9; }

/* ── RESPONSIVE ── */
@media (max-width: 1199px) {
    .lp3-container { padding: 0 40px; }
    .lp3-header-inner { padding-left: 40px !important; padding-right: 40px !important; }
    .lp3-footer-inner { padding: 60px 40px; }
}

@media (max-width: 1199px) {
    .lp3-footer-inner { flex-direction: column; align-items: center; gap: 32px; padding: 48px 40px; }
    .lp3-footer-logo { align-self: center; }
    .lp3-footer-nav { flex-direction: column; align-items: center; gap: 32px; }
    .lp3-footer-cta { align-self: center; min-width: 280px; max-width: 360px; text-align: center; padding: 16px 24px; font-size: var(--font-size-lg); }
}

@media (max-width: 767px) {
    .lp3-container { padding: 0 20px; }
    .lp3-header { height: 72px; }
    .lp3-header-inner { padding-left: 20px !important; padding-right: 20px !important; }
    .lp3-logo svg, .lp3-logo img { height: 56px; }
    .lp3-footer-inner { padding: 40px 20px; flex-direction: column; align-items: center; gap: 32px; }
    .lp3-footer-logo { align-self: center; }
    .lp3-footer-nav { flex-direction: column; align-items: center; gap: 32px; }
    .lp3-footer-cta { align-self: stretch; text-align: center; padding: 16px 24px; font-size: var(--font-size-lg); max-width: none; min-width: 0; }

    .lp3-nav { display: none; }
    .lp3-burger { display: flex; }
    .lp3-header-actions { display: none; }

    .lp3-nav-open .lp3-nav {
        display: flex; flex-direction: column; align-items: flex-start; gap: 0;
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--color-white); border-bottom: 1px solid var(--landing-home-border-subtle);
        padding: 16px 20px;
        z-index: 100;
    }
    .lp3-nav-open .lp3-nav .lp3-nav-link { padding: 10px 0; font-size: var(--font-size-base); }
}
