/**
 * Card Game Landing Styles
 * 
 * BEM methodology, modular CSS for /razvivayushchaya-kartochnaya-igra/
 * @package Dflex
 */

/* ==========================================================================
   Base typography & layout
   ========================================================================== */
.sa-game-landing {
    overflow-x: hidden;
}

.sa-game-section-title {
    font-family: var(--font-title);
    color: #614D8F;
    text-transform: uppercase;
    font-size: clamp(1.75rem, 2.8vw, 2.4rem);
    line-height: 1.25;
    text-align: center;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   1. Hero Screen
   ========================================================================== */
.sa-game-hero {
    background: linear-gradient(180deg, #F9F6FD 0%, #FFFFFF 100%);
    padding: 56px 0 64px;
}

.sa-game-hero__layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.sa-game-hero__badge {
    display: inline-block;
    background: #EDE7F6;
    color: #614D8F;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    margin-bottom: 16px;
}

.sa-game-hero__title {
    font-family: var(--font-title);
    color: #2D2448;
    font-size: clamp(2.2rem, 3.8vw, 3.4rem);
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0 0 18px;
    letter-spacing: 0.02em;
}

.sa-game-hero__subtitle {
    font-size: 1.15rem;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 28px;
}

.sa-game-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
}

.sa-game-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-game-hero__btn:hover {
    transform: translateY(-2px);
}

.sa-game-hero__btn--primary {
    background: var(--color-accent, #FF7A00);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.35);
}

.sa-game-hero__btn--primary:hover {
    box-shadow: 0 8px 22px rgba(255, 122, 0, 0.45);
}

.sa-game-hero__btn--secondary {
    background: transparent;
    color: #614D8F;
    border: 2px solid #614D8F;
}

.sa-game-hero__btn--secondary:hover {
    background: #EDE7F6;
}

.sa-game-hero__btn-icon {
    display: flex;
    align-items: center;
}

.sa-game-hero__strip {
    display: flex;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid #EDE7F6;
}

.sa-game-hero__strip-item {
    display: flex;
    flex-direction: column;
}

.sa-game-hero__strip-val {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 800;
    color: #614D8F;
    line-height: 1;
    margin-bottom: 4px;
}

.sa-game-hero__strip-lbl {
    font-size: 0.8rem;
    color: #777777;
    line-height: 1.3;
}

.sa-game-hero__img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sa-game-hero__img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. About / Study with Pleasure
   ========================================================================== */
.sa-game-about {
    background: #F8F6FB;
    padding: 72px 0;
}

.sa-game-about__card {
    background: #FFFFFF;
    border: 1px solid #ECE6F6;
    border-radius: 28px;
    padding: 48px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
    box-shadow: 0 12px 36px rgba(97, 77, 143, 0.08);
}

.sa-game-about__media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sa-game-about__img {
    width: 100%;
    max-width: 440px;
    height: auto;
    display: block;
    object-fit: contain;
}

.sa-game-about__badge {
    display: inline-block;
    background: #EDE7F6;
    color: #614D8F;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    margin-bottom: 14px;
}

.sa-game-about__title {
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: #614D8F;
    text-transform: uppercase;
    margin: 0 0 16px;
    line-height: 1.25;
}

.sa-game-about__text {
    font-size: 0.98rem;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 16px;
}

.sa-game-about__action {
    margin-top: 12px;
}

.sa-game-about__btn {
    display: inline-flex;
    padding: 12px 28px;
    background: #614D8F;
    color: #FFFFFF;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-game-about__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(97, 77, 143, 0.3);
}

/* ==========================================================================
   3. Advantages vs Classic Tests
   ========================================================================== */
.sa-game-advantages {
    background: #FFFFFF;
    padding: 72px 0;
}

.sa-game-advantages__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.sa-game-advantages__subtitle {
    font-size: 1.05rem;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.sa-game-advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sa-game-advantages__card {
    background: #FBF9FD;
    border: 1px solid #ECE6F6;
    border-radius: 18px;
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sa-game-advantages__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(97, 77, 143, 0.08);
    border-color: #614D8F;
}

.sa-game-advantages__icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #EDE7F6;
    color: #614D8F;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.sa-game-advantages__icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sa-game-advantages__title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: #2D2448;
    text-transform: uppercase;
    margin: 0 0 8px;
    line-height: 1.3;
}

.sa-game-advantages__desc {
    font-size: 0.92rem;
    color: #555555;
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================================
   4. Catalog / Products
   ========================================================================== */
.sa-game-shop {
    background: #F8F6FB;
    padding: 72px 0;
}

.sa-game-shop__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.sa-game-shop__subtitle {
    font-size: 1.05rem;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.sa-game-shop__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sa-game-shop__card {
    background: #FFFFFF;
    border: 1px solid #ECE6F6;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 8px 24px rgba(97, 77, 143, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sa-game-shop__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(97, 77, 143, 0.1);
}

.sa-game-shop__card--featured {
    border: 2px solid #FF7A00;
    box-shadow: 0 12px 32px rgba(255, 122, 0, 0.12);
}

.sa-game-shop__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #FF7A00;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
}

.sa-game-shop__img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 190px;
    margin-bottom: 16px;
}

.sa-game-shop__img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
    display: block;
}

.sa-game-shop__info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sa-game-shop__title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: #2D2448;
    text-transform: uppercase;
    margin: 0 0 6px;
    line-height: 1.25;
}

.sa-game-shop__subject {
    font-size: 0.82rem;
    color: #777777;
    margin: 0 0 14px;
}

.sa-game-shop__features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sa-game-shop__feature-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: #444444;
    line-height: 1.4;
}

.sa-game-shop__feature-bullet {
    color: #614D8F;
    flex-shrink: 0;
    margin-top: 2px;
}

.sa-game-shop__price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid #F0EAF7;
}

.sa-game-shop__price {
    font-family: var(--font-title);
    font-size: 1.55rem;
    font-weight: 800;
    color: #2D2448;
    line-height: 1;
}

.sa-game-shop__old-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: #999999;
}

.sa-game-shop__btn {
    width: 100%;
    background: #614D8F;
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    padding: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-game-shop__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(97, 77, 143, 0.3);
}

.sa-game-shop__btn--combo {
    background: var(--color-accent, #FF7A00);
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.35);
}

.sa-game-shop__btn--combo:hover {
    box-shadow: 0 8px 22px rgba(255, 122, 0, 0.45);
}

/* ==========================================================================
   5. Teaser (6, 7, 8 Grades)
   ========================================================================== */
.sa-game-teaser {
    background: linear-gradient(135deg, #614D8F 0%, #4D3C73 100%);
    padding: 44px 0;
    color: #FFFFFF;
}

.sa-game-teaser__banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.sa-game-teaser__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.sa-game-teaser__title {
    font-family: var(--font-title);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    color: #FFFFFF;
    text-transform: uppercase;
    margin: 0 0 8px;
    line-height: 1.3;
}

.sa-game-teaser__desc {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.sa-game-teaser__btn {
    background: #FFB347;
    color: #2D2448;
    border: none;
    border-radius: 30px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-game-teaser__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   6. Samples / Preview Cards
   ========================================================================== */
.sa-game-samples {
    background: #FFFFFF;
    padding: 72px 0;
}

.sa-game-samples__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.sa-game-samples__subtitle {
    font-size: 1.05rem;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.sa-game-samples__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sa-game-samples__card {
    background: #FBF9FD;
    border: 1px solid #ECE6F6;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-game-samples__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(97, 77, 143, 0.08);
}

.sa-game-samples__img-wrap {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.sa-game-samples__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.sa-game-samples__title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: #614D8F;
    text-transform: uppercase;
    margin: 0 0 8px;
    line-height: 1.3;
}

.sa-game-samples__desc {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
    .sa-game-shop__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sa-game-advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .sa-game-hero__layout {
        grid-template-columns: 1fr;
    }

    .sa-game-hero__media {
        max-width: 480px;
        margin: 0 auto;
    }

    .sa-game-about__card {
        grid-template-columns: 1fr;
        padding: 36px 24px;
        text-align: center;
    }

    .sa-game-teaser__banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .sa-game-hero {
        padding: 36px 0 48px;
    }

    .sa-game-about,
    .sa-game-advantages,
    .sa-game-shop,
    .sa-game-samples {
        padding: 48px 0;
    }

    .sa-game-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .sa-game-hero__btn {
        width: 100%;
    }

    .sa-game-hero__strip {
        flex-wrap: wrap;
        gap: 16px;
    }

    .sa-game-advantages__grid,
    .sa-game-shop__grid,
    .sa-game-samples__grid {
        grid-template-columns: 1fr;
    }

    .sa-game-about__card {
        padding: 24px 16px;
    }
}
