* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    overflow: hidden;
    background-color: #f5f5f7;
}

body {
    display: flex;
}

/* ============================
   ЛЕВАЯ ПАНЕЛЬ
   ============================ */
.left_container_slapsnap {
    flex: 0 0 50%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #ffffff;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.left_container_slapsnap::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Внутренние контейнеры */
.item_container {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.item_inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 40px 0;
    text-align: center;
}

.item_text {
    color: #ffffff;
    max-width: 90%;
}

.item_title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.item_subtitle {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
    opacity: 0.95;
}

.item_desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.85;
    max-width: 480px;
    margin: 0 auto;
}

.item_image {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    margin-top: auto;
    margin-bottom: 0;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.25));
}

/* Цвета фонов */
.item_container:nth-child(1)  { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.item_container:nth-child(2)  { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.item_container:nth-child(3)  { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.item_container:nth-child(4)  { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.item_container:nth-child(5)  { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.item_container:nth-child(6)  { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.item_container:nth-child(7)  { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.item_container:nth-child(8)  { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.item_container:nth-child(9)  { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.item_container:nth-child(10) { background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%); }
.item_container:nth-child(11) { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.item_container:nth-child(12) { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }

/* ============================
   ПРАВАЯ ПАНЕЛЬ
   ============================ */
.right_container_slapsnap {
    flex: 0 0 50%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    background-color: #f5f5f7;
    overflow: hidden;
}

.right_content {
    max-width: 580px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top_block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom_block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    width: 100%;
}

/* Десктоп: три кнопки в одну строку */
@media (min-width: 769px) {
    .platform_links {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .platform_link {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
}

.brand_title {
    font-size: 44px;
    font-weight: 800;
    color: #222;
    margin-bottom: 24px;
}

.brand_tagline {
    font-size: 20px;
    color: #6f7985;
    line-height: 1.6;
    margin-bottom: 24px;
}

.seo_text {
    font-size: 15px;
    color: #6f7985;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.seo_text p {
    margin: 0;
}

.platform_links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.platform_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.platform_version {
    font-size: 13px;
    color: #8e8e93;
    font-weight: 500;
}

.platform_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.platform_link:hover {
    background-color: #0077ff;
    color: #ffffff;
    border-color: #0077ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.25);
}

.copyright {
    font-size: 14px;
    color: #8e8e93;
    margin-top: 24px;
}

/* Неактивная (недоступная) кнопка */
.platform_link.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: auto;
}

/* Тост-уведомление */
.toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(33, 33, 33, 0.92);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    max-width: 90vw;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* На мобильной раскладке чуть выше */
@media (max-width: 768px) {
    .toast {
        bottom: 20px;
    }
}

.platform_icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
}

svg.platform_icon {
    fill: currentColor;
}

.platform_icon_logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 16px;
    border-radius: 16px;
}

/* ============================
   МОБИЛЬНАЯ ВЕРСИЯ
   ============================ */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    /* Левая панель = 55%, правая = 45% */
    .left_container_slapsnap {
        flex: 0 0 55%;
        width: 100vw;
        height: 55vh;
    }

    .right_container_slapsnap {
        flex: 0 0 45%;
        width: 100vw;
        height: 45vh;
        padding: 16px 20px;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Контейнер = ровно высота левой панели */
    .item_container {
        height: 55vh;
    }

    /* Раскладка: текст сверху, картинка снизу */
    .item_inner {
        padding: 16px 16px 0;
        justify-content: space-between;
        gap: 0;
    }

    .item_text {
        max-width: 100%;
    }

    /* ⚠️ ШРИФТЫ УВЕЛИЧЕНЫ */
    .item_title {
        font-size: 22px;        /* было 17px */
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .item_subtitle {
        font-size: 14.5px;      /* было 11.5px */
        margin-bottom: 5px;
        line-height: 1.35;
    }

    .item_desc {
        font-size: 13px;        /* было 10.5px */
        line-height: 1.4;
        max-width: 100%;
    }

    /* Картинка прижата к низу контейнера */
    .item_image {
        max-width: 100%;
        max-height: 78%;        /* увеличел с 65%, чтобы заполнить пустоту */
        margin-top: auto;
        margin-bottom: 0;
        object-fit: contain;
    }

    /* Правая панель компактнее */
    .right_content {
        width: 100%;
        margin: 0 auto;
        height: auto;
        justify-content: flex-start;
    }

    .top_block {
        width: 100%;
    }

    .bottom_block {
        margin-top: 14px;
        width: 100%;
    }

    .brand_title {
        font-size: 24px;        /* было 22px */
        margin-bottom: 10px;
    }

    .brand_tagline {
        font-size: 14px;        /* было 13px */
        margin-bottom: 14px;
        line-height: 1.4;
    }

    .seo_text {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 14px;
        flex: none;
    }

    .platform_icon_logo {
        width: 44px;
        height: 44px;
        margin-bottom: 6px;
    }

    .platform_links {
        gap: 10px;
        margin-bottom: 14px;
    }

    .platform_link {
        padding: 8px 14px;
        font-size: 13px;        /* было 12px */
        gap: 6px;
    }

    .platform_icon {
        width: 20px;
        height: 20px;
    }

    .platform_version {
        font-size: 11px;
        margin-top: -4px;
    }

    .copyright {
        font-size: 11px;
        margin-top: 8px;
    }
}

/* ============================
   ТЁМНАЯ ТЕМА (по системной теме устройства)
   ============================ */
@media (prefers-color-scheme: dark) {
    html, body {
        background-color: #121212;
    }

    .left_container_slapsnap {
        background-color: #121212;
    }

    /* Контейнеры с градиентами — слегка затемняем поверх (фон всё равно цветной) */
    .item_container {
        filter: saturate(0.85) brightness(0.9);
    }

    .right_container_slapsnap {
        background-color: #1a1a1a;
    }

    .brand_title {
        color: #f5f5f7;
    }

    .brand_tagline,
    .seo_text {
        color: #a9adb8;
    }

    .platform_version {
        color: #8e8e93;
    }

    .platform_link {
        background-color: #2a2a2a;
        border-color: #3a3a3a;
        color: #ececec;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }

    .platform_link:hover {
        background-color: #0077ff;
        color: #ffffff;
        border-color: #0077ff;
    }

    .copyright {
        color: #8e8e93;
    }

    .toast {
        background-color: rgba(245, 245, 247, 0.92);
        color: #1a1a1a;
    }

    /* Фон градиентных слотов в тёмной теме */
    .item_text {
        color: #ffffff;
    }
}