/* ==========================================================
   LAYOUT — scoped to .landing-v3
   Header, Hero, Features strip, Classla, Footer CTA, Footer
   Responsive overrides → responsive.css
   ========================================================== */

/* ========== HEADER ========== */
.landing-v3 .header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-total);
    background: transparent;
    border: none;
    padding: 0;
    padding-top: var(--safe-top);
    color: var(--white);
    transition: background 0.3s;
}
.landing-v3 .header--scrolled {
    background: rgba(53, 64, 82, 0.95);
    backdrop-filter: blur(10px);
}
.landing-v3 .header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;

    &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
    }
}
.landing-v3 .header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;

    &:visited, &:active { color: var(--white); }
}
.landing-v3 .header__nav {
    display: flex;
    gap: 56px;
    margin-left: auto;
    margin-right: auto;

    & a {
        font-weight: 600;
        font-size: 20px;
        color: var(--white);
        text-decoration: none;
        transition: opacity 0.2s;

        &:visited, &:active { color: var(--white); }
        &:hover { opacity: 0.8; }
    }
}
.landing-v3 .header__login {
    margin-left: auto;
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
    font-size: 18px;
    padding: 14px 44px;
    border-radius: 10px;
    border: 2px solid var(--white);
    transition: background 0.2s;

    &:hover { background: var(--blue-deep); }
}

/* ========== HERO ========== */
.landing-v3 .library-hero {
    position: relative;
    min-height: 55vh;
    background:
        linear-gradient(90deg, rgba(53, 64, 82, 0.82) 10%, rgba(168, 177, 191, 0.72) 90%),
        url('/img/landing-v3/hero-bg.jpg') center/cover no-repeat;

    & .container {
        /* header-total + 50px эстетического воздуха */
        padding-top: calc(var(--header-total) + 50px);
        padding-bottom: 48px;
        padding-right: calc(var(--phone-width) + 120px);
    }
}
.landing-v3 .library-hero__text { max-width: 780px; }
.landing-v3 .library-hero__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 48px;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 16px;
}
.landing-v3 .library-hero__subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 26px;
    color: var(--white);
    margin-bottom: 36px;
    line-height: 1.4;
}
.landing-v3 .library-hero__cta-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 60px;
}
.landing-v3 .library-hero__stores {
    display: flex;
    width: 354px;
    justify-content: space-between;
    align-items: center;
}
.landing-v3 .library-hero__store-badge {
    height: auto;
    border-radius: 6px;
    opacity: 0.9;
    transition: opacity 0.2s;

    &:first-child { width: 148px; }
    &:last-child { width: 167px; }
    &:hover { opacity: 1; }
}

/* ========== FEATURES STRIP ========== */
.landing-v3 .features-strip {
    position: relative;
    z-index: 2;
    overflow: visible;
    background: var(--blue);

    & .container {
        padding-top: 80px;
        padding-bottom: 80px;
        padding-right: calc(var(--phone-width) + 120px);
    }
}
.landing-v3 .features-strip__inner {
    display: flex;
    justify-content: space-around;
}
.landing-v3 .feature-icon-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    max-width: 280px;
}
.landing-v3 .feature-icon-block__icon {
    width: 80px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;

    & img { width: 100%; height: 100%; }
}
.landing-v3 .feature-icon-block__text {
    font-weight: 500;
    font-size: 18px;
    color: var(--white);
    line-height: 1.4;
}

/* ========== CLASSLA ========== */
.landing-v3 .classla-section { padding: var(--section-pad-md) 0; }
.landing-v3 .classla-block {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}
.landing-v3 .classla-block__bar {
    width: 3px;
    min-height: 120px;
    background: var(--blue);
    border-radius: 2px;
    flex-shrink: 0;
}
.landing-v3 .classla-block__logo { flex-shrink: 0; width: 64px; border-radius: 6px; }
.landing-v3 .classla-block__text {
    font-size: var(--text-body-lg);
    line-height: 1.6;
    color: var(--black);

    & a { color: var(--blue); text-decoration: underline; }
}

/* ========== FOOTER CTA ========== */
.landing-v3 .footer-cta {
    padding: var(--section-pad-sm) 0;
    background: linear-gradient(180deg, #60A5FA 0%, #2563EB 100%);
    text-align: center;

    & .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}
.landing-v3 .footer-cta__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 28px;
    line-height: 1.2;
    color: var(--white);
}
.landing-v3 .footer-cta__sub {
    font-size: var(--text-body-sm);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}

/* ========== FOOTER ========== */
.landing-v3 .footer {
    background: var(--white);
    padding: 64px 0;
}
.landing-v3 .footer__columns { display: flex; gap: 40px; }
.landing-v3 .footer__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;

    & h4 {
        font-family: var(--font-body);
        font-size: var(--text-body-sm);
        font-weight: 700;
        color: var(--grey-heading);
        letter-spacing: 0.5px;
    }

    & a {
        font-family: var(--font-body);
        font-size: var(--text-body-sm);
        color: var(--grey-text);
        text-decoration: none;
        transition: color 0.15s;

        &:hover { color: var(--blue); }
    }
}
.landing-v3 .footer__divider {
    border: none;
    border-top: 1px solid var(--grey-border);
    margin: 40px 0 24px;
}
.landing-v3 .footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.landing-v3 .footer__bottom-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: var(--text-body);
    font-weight: 700;
    color: var(--grey-dark);
}
.landing-v3 .footer__copyright { font-size: 13px; color: var(--grey-muted); }
