/* Новая главная страница. Подключается только на activePage = home. */

.home-page--new {
    display: block;
    width: 100%;
}

/* ——— Полосы преимуществ/функций (как wl-feature-strip) ——— */
.home-feature-strip.wl-feature-strip {
    --wl-line: #e4e9f0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    border-top: 1px solid var(--wl-line);
    border-bottom: 1px solid var(--wl-line);
}

.home-feature-strip .wl-feature {
    display: block;
    min-height: 146px;
    padding: 28px 15px;
    text-align: center;
    color: #101828;
    text-decoration: none;
}

.home-feature-strip .wl-feature + .wl-feature {
    border-left: 1px solid var(--wl-line);
}

.home-feature-strip .wl-feature__icon {
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
}

.home-feature-strip .wl-feature__photo {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    object-position: center;
}

.home-feature-strip .wl-feature strong {
    display: block;
    margin-bottom: 6px;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.home-feature-strip .wl-feature small {
    display: block;
    color: #5b7a96;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .home-feature-strip.wl-feature-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-feature-strip .wl-feature:nth-child(3) {
        border-left: 0;
    }
    .home-feature-strip .wl-feature:nth-child(n + 3) {
        border-top: 1px solid var(--wl-line);
    }
}

@media (max-width: 560px) {
    .home-feature-strip.wl-feature-strip {
        grid-template-columns: minmax(0, 1fr);
    }
    .home-feature-strip .wl-feature + .wl-feature {
        border-left: 0;
        border-top: 1px solid var(--wl-line);
    }
}

/* ——— Карусель ——— */
.home-hero-carousel {
    position: relative;
    width: 100%;
    height: clamp(320px, 34vw, 460px);
    margin: 0 0 2rem;
    overflow: hidden;
    border-radius: 0 0 14px 14px;
    background: #101522;
}

.home-hero-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-hero-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.home-hero-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.home-hero-carousel__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.home-hero-carousel__shade {
    position: absolute;
    inset: 0;
}

.home-hero-carousel__content {
    position: absolute;
    top: 0;
    left: 8%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    width: 500px;
    max-width: calc(100% - 32px);
    height: 100%;
    color: #fff;
}

.home-hero-carousel__title {
    max-width: 100%;
    margin: 0;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 100;
    text-align: left;
    letter-spacing: -0.02em;
}

.home-hero-carousel__text {
    max-width: 540px;
    margin: 0;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
}

.home-hero-carousel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 6px;
    padding: 0 22px;
    border-radius: 8px;
    background: #1a8cff;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(26, 140, 255, 0.35);
}

.home-hero-carousel__btn:hover {
    background: #0e7ae6;
}

.home-hero-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    color: #101522;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.home-hero-carousel__nav--prev { left: 14px; }
.home-hero-carousel__nav--next { right: 14px; }

body.gallery-body.is-home-landing .home-page--new .home-hero-carousel__nav.home-hero-carousel__nav--prev,
body.gallery-body.is-home-landing .home-page--new .home-hero-carousel__nav.home-hero-carousel__nav--next {
    display: flex !important;
    justify-content: center !important;
    font-size: 38px !important;
    text-align: center;
}

.home-hero-carousel__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.home-hero-carousel__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.home-hero-carousel__dot.is-active {
    width: 26px;
    border-radius: 5px;
    background: #fff;
}

/* ——— Преимущества ——— */
.home-benefits--new {
    margin: 0 0 2.5rem;
}

.home-benefits-grid--new {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-benefits-grid--new .home-benefit {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 210px;
    padding: 22px 20px 18px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-benefits-grid--new .home-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.13);
}

.home-benefits-grid--new .home-benefit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.85);
}

.home-benefit--prompts { background: linear-gradient(140deg, #eef4ff 0%, #cfe0ff 60%, #b7d3ff 100%); }
.home-benefit--generations { background: linear-gradient(140deg, #e8fbf6 0%, #c9f4e4 60%, #a9ebd3 100%); }
.home-benefit--price { background: linear-gradient(140deg, #f4ecff 0%, #e2d1ff 60%, #cfbaff 100%); }
.home-benefit--free { background: linear-gradient(140deg, #fff4e8 0%, #ffe1c7 60%, #ffd1a8 100%); }

.home-benefit__icon {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    font-size: 26px;
    line-height: 1;
}

.home-benefit__value {
    position: relative;
    z-index: 2;
    margin: 22px 0 4px;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #101828;
}

.home-benefit__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #344054;
}

.home-benefit__label {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #667085;
}

/* ——— Витрина ——— */
.home-show-more {
    display: flex;
    justify-content: center;
    margin: 26px 0 0;
}

.home-show-more__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 24px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.home-show-more__btn:hover {
    border-color: #1a8cff;
    color: #1a8cff;
}

/* ——— Приложения ——— */
.home-apps {
    margin: 2.5rem 0;
}

.home-apps__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 180px;
    padding: 22px 24px;
    border-radius: 14px;
    color: #fff !important;
    text-decoration: none !important;
    overflow: hidden;
}

.home-app-card--vk { background: linear-gradient(120deg, #7b3fe4, #a855f7); }
.home-app-card--android { background: linear-gradient(120deg, #0f3a5f, #1a8cff); }

.home-app-card__brand {
    font-size: 20px;
    font-weight: 800;
}

.home-app-card__title {
    font-size: 24px;
    font-weight: 800;
}

.home-app-card__text {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

.home-app-card__btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font-size: 13px;
    font-weight: 700;
}

.home-app-card__deco {
    position: absolute;
    right: 26px;
    bottom: 24px;
    font-size: 96px;
    line-height: 1;
    opacity: 0.12;
}

/* ——— Компактные карточки приложений ——— */
.home-apps__grid {
    gap: 14px;
}

.home-app-inline {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 92px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    color: #101828 !important;
    text-decoration: none !important;
    overflow: hidden;
}

.home-app-inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0c987, #e7c9ff);
}

.home-app-inline--vk {
    background: radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.65) 0, transparent 42%),
                linear-gradient(110deg, #eaf4ff 0%, #dbeafe 55%, #e8e0ff 100%);
}

.home-app-inline--android {
    background: radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.7) 0, transparent 42%),
                linear-gradient(110deg, #f3edff 0%, #e9ddff 55%, #fde9e5 100%);
}

.home-app-inline__icon,
.home-app-inline__play {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid #dfe6f2;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    object-fit: contain;
}

.home-app-inline__play {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-app-inline__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.home-app-inline__copy strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-app-inline__copy small {
    font-size: 13px;
    color: #5b6472;
}

.home-app-inline__btn {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-left: auto;
    padding: 0 22px;
    border: 1px solid #e7c988;
    border-radius: 999px;
    background: #101828;
    color: #f7d99a !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-app-inline:hover .home-app-inline__btn {
    background: #241241;
    border-color: #f0c987;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .home-app-inline__btn {
        min-height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }
}

/* ——— Партнёрская программа ——— */
.home-referral {
    margin: 2.5rem 0;
    border-radius: 14px;
    background: linear-gradient(110deg, #7c3aed, #a855f7 55%, #d946ef);
    overflow: hidden;
}

.home-referral__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 28px 24px;
    text-align: center;
    color: #fff;
}

.home-referral__copy {
    position: relative;
    z-index: 2;
}

.home-referral__title {
    margin: 0 0 8px;
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 800;
}

.home-referral__text {
    margin: 0 0 18px;
    font-size: 15px;
    opacity: 0.92;
}

.home-referral__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 8px;
    background: #101828;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.home-referral__deco {
    position: absolute;
    font-size: 130px;
    line-height: 1;
    opacity: 0.13;
}

.home-referral__deco--left { left: 4%; top: 10%; }
.home-referral__deco--right { right: 4%; bottom: 6%; }

/* ——— Горизонтальные карточки функций ——— */
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 170px;
    padding: 18px 18px 16px;
    border-radius: 16px;
    color: #101828 !important;
    text-decoration: none !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.home-feature-card:nth-child(1) { background: linear-gradient(135deg, #c9e8ff, #a7f3d0); }
.home-feature-card:nth-child(2) { background: linear-gradient(135deg, #c7d2fe, #ddd6fe); }
.home-feature-card:nth-child(3) { background: linear-gradient(135deg, #ddd6fe, #fbcfe8); }
.home-feature-card:nth-child(4) { background: linear-gradient(135deg, #fed7aa, #fecaca); }

.home-feature-card__icon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 96px;
    height: 96px;
    object-fit: contain;
    pointer-events: none;
}

.home-feature-card__icon--emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    line-height: 1;
}

.home-feature-card__title {
    position: relative;
    z-index: 2;
    margin: auto 0 6px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-feature-card__text {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 78%;
    font-size: 14px;
    line-height: 1.4;
    color: #344054;
}

@media (max-width: 900px) {
    .home-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .home-features-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ——— Блоки функций «как это работает» ——— */
.home-features {
    margin: 0 0 2.5rem;
}

.home-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: clamp(24px, 4vw, 64px);
    margin: 0 0 24px;
    padding: clamp(20px, 3vw, 44px);
    border-radius: 18px;
    background: linear-gradient(135deg, #f7f9ff 0%, #eef4ff 45%, #e8f0ff 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.home-feature:nth-child(even) {
    background: linear-gradient(135deg, #f6fffb 0%, #e9fbf4 50%, #dcf5ec 100%);
}

.home-feature.home-feature--referral {
    position: relative;
    height: 500px;
    padding: calc(clamp(24px, 4vw, 56px) - 5px) clamp(24px, 4vw, 56px);
    border: 2px solid #f3d9a4;
    border-radius: 22px;
    background:
        radial-gradient(circle at 78% 40%, rgba(168, 85, 247, 0.26) 0, transparent 42%),
        linear-gradient(120deg, #1a0b3b 0%, #2c125e 48%, #160834 100%);
    color: #fff;
    overflow: hidden;
}

.home-feature--referral::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(243, 217, 164, 0.22);
    border-radius: 14px;
    pointer-events: none;
}

.home-feature__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
}

.home-feature__kicker {
    margin: 0;
    color: #1a8cff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-feature--referral .home-feature__kicker {
    color: #f3d9a4;
    letter-spacing: 0.16em;
}

.home-feature__title {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #101828;
}

.home-feature__steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 4px 0 6px;
    padding: 0;
    list-style: none;
}

.home-feature__step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.home-feature__step-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: 2px;
    border-radius: 10px;
    background: #fff;
    color: #1a8cff;
    box-shadow: 0 4px 12px rgba(26, 140, 255, 0.13);
    font-size: 18px;
    font-weight: 800;
}

.home-feature--referral .home-feature__step-icon {
    width: 38px;
    height: 38px;
    border: 1px solid #e7c988;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(243, 217, 164, 0.22), rgba(168, 85, 247, 0.14));
    color: #f7d99a;
    box-shadow: none;
}

.home-feature--referral .home-feature__title {
    color: #fff;
    font-size: clamp(30px, 3.4vw, 46px);
}

.home-feature--referral .home-feature__step strong {
    color: #fff;
}

.home-feature--referral .home-feature__step small {
    color: rgba(255, 255, 255, 0.7);
}

.home-feature__step strong {
    display: block;
    font-size: 15px;
    color: #101828;
}

.home-feature__step small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.45;
    color: #667085;
}

.home-feature__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 6px;
    padding: 0 24px;
    border-radius: 9px;
    background: linear-gradient(90deg, #35a7ff, #1a8cff);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(26, 140, 255, 0.28);
}

.home-feature--referral .home-feature__btn {
    border: 1px solid #e7c988;
    background: linear-gradient(135deg, #2a1259, #1a0b3b);
    color: #f7d99a !important;
    box-shadow: 0 0 18px rgba(231, 201, 136, 0.18) !important;
}

.home-feature--referral .home-feature__media {
    min-height: 170px;
    background: transparent;
}

.home-feature--referral .home-feature__media img {
    max-height: 100%;
    object-fit: contain;
}

.home-feature__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.45);
}

.home-feature__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .home-benefits-grid--new,
    .home-apps__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-feature {
        grid-template-columns: minmax(0, 1fr);
    }
    .home-feature__media {
        min-height: 260px;
    }
}

@media (max-width: 600px) {
    .home-feature.home-feature--referral {
        height: auto;
    }
    .home-hero-carousel__content {
        left: 16px;
        width: calc(100% - 32px);
    }
    .home-benefits-grid--new,
    .home-apps__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ——— Единые тени для всех блоков главной ——— */
.home-page--new .wl-feature,
.home-page--new .home-benefit,
.home-page--new .home-feature-card,
.home-page--new .home-feature,
.home-page--new .home-referral,
.home-page--new .home-app-inline,
.home-page--new .home-show-more__btn,
.home-page--new .home-hero-carousel__btn,
.home-page--new .home-feature__btn,
.home-page--new .home-referral__btn,
.home-page--new .blog-card,
.home-page--new .gallery-card {
    box-shadow: 0 10px 20px -20px #606161 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page--new .wl-feature:hover,
.home-page--new .home-benefit:hover,
.home-page--new .home-feature-card:hover,
.home-page--new .home-feature:hover,
.home-page--new .home-referral:hover,
.home-page--new .home-app-inline:hover,
.home-page--new .home-show-more__btn:hover,
.home-page--new .home-hero-carousel__btn:hover,
.home-page--new .home-feature__btn:hover,
.home-page--new .home-referral__btn:hover,
.home-page--new .blog-card:hover,
.home-page--new .gallery-card:hover {
    box-shadow: 0 35px 35px -38px #606161 !important;
    transform: translateY(-4px);
}
