:root {
    --main-color: #f4b300;
    --main-text: #293133;
    --main-title: #1e2426;
    --button-blue: #0d6efd;
    --bg-light: #ffffff;
    --bg-muted: #F8F9FA;
    --border: #E0E0E0;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--main-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container h2 {
    margin-top: -20px;
    margin-bottom: 20px;
}

/* Шапка */
header {
    padding: 100px 0 0;
    text-align: center;
    background-color: var(--main-title);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(244, 179, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}
.lang-switcher a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    font-weight: bold;
    opacity: 0.5;
    font-size: 0.9rem;
}
.lang-switcher a.active {
    opacity: 1;
    border-bottom: 2px solid var(--main-color);
}

.logo {
    width: 140px;
    height: 140px;
    background: var(--main-color);
    color: var(--main-title);
    border-radius: 24px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(244, 179, 0, 0.4);
    position: relative;
    z-index: 2;
}

.image-container {
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* или object-fit: contain; /* помещает всё изображение без обрезки */
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}
header .tagline {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.store-btn {
    background: #ffffff;
    color: var(--main-title);
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: var(--main-color);
}
.store-btn.primary {
    background: var(--button-blue);
    color: #ffffff;
}

/* Размер иконки в кнопках магазинов */
.store-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain; 
}

/* Опционально: специфичный класс для RuStore, если нужно отдельное поведение */
.store-btn.rustore img {
    background: white; /* RuStore иконка может быть на прозравом фоне — подложка */
    border-radius: 6px;
    padding: 2px;
}

/* Блоки Фич */
.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    padding: 100px 0 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    padding-top: 60px;
}
.feature-text h2 {
    font-size: 2.6rem;
    margin-bottom: 24px;
    color: var(--main-title);
    line-height: 1.1;
}
.feature-text h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background: var(--main-color);
    margin-top: 12px;
    border-radius: 3px;
}
.feature-text p {
    font-size: 1.2rem;
    color: var(--main-text);
    opacity: 0.9;
}

/* Скриншоты */
.feature-image {
    flex: 1;
    background: #000;
    border-radius: 36px 36px 0 0;
    border: 10px solid var(--main-title);
    border-bottom: none;
    height: 450px;
    max-width: 340px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    position: relative;
}
.feature-image::before {
    content: "";
    position: absolute;
    top: 18px;
    width: 60px;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    z-index: 3;
}
.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 26px 26px 0 0;
    position: relative;
    z-index: 2;
}

/* Футер */
footer {
    padding: 80px 0;
    background: var(--bg-muted);
    border-top: 1px solid var(--border);
}
.footer-links {
    text-align: center;
    margin-bottom: 30px;
}
.footer-links a {
    color: var(--main-text);
    font-weight: 700;
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.1rem;
}
.footer-links a:hover {
    color: var(--main-color);
}
.copy {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Новая секция с 3 столбцами */
.features-three-columns {
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 60px;
    color: var(--main-title);
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background: var(--main-color);
    margin: 15px auto 0;
    border-radius: 3px;
}

.columns-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.feature-column {
    flex: 1;
    background: var(--bg-muted);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.feature-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.column-image {
    height: 200px;
    overflow: hidden;
    background: #000; /* Черный фон как у скриншотов */
    position: relative;
    border: 8px solid var(--main-title); /* Толстая темная рамка */
    border-radius: 20px 20px 0 0; /* Скругление сверху */
    border-bottom: none; /* Нет нижней границы */
    margin-top: 10px;
}

.column-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 12px 12px 0 0; /* Скругление внутри */
}

.column-text {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}


.column-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--main-title);
    min-height: 3.5rem;
}

.column-text p {
    color: var(--main-text);
    opacity: 0.9;
    line-height: 1.6;
    flex-grow: 1;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .features-three-columns {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .columns-container {
        flex-direction: column;
        gap: 30px;
        max-width: 500px;
        margin: 0 auto;
    }

    .feature-column {
        min-height: auto;
        width: 100%;
    }

    .column-image {
        height: 180px;
        padding: 15px;
    }

    .column-text {
        padding: 25px;
    }

    .column-text h3 {
        font-size: 1.3rem;
        min-height: auto;
        margin-bottom: 12px;
    }

    .column-text p {
        font-size: 1rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .features-three-columns {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .column-image {
        height: 375px;
        padding: 10px;
    }

    .column-text {
        padding: 20px;
    }

    .column-text h3 {
        font-size: 1.2rem;
    }
}

/* Для планшетов и средних экранов */
@media (min-width: 769px) and (max-width: 1024px) {
    .columns-container {
        gap: 30px;
    }

    .feature-column {
        min-height: 500px;
    }

    .column-text {
        padding: 25px;
    }

    .column-text h3 {
        font-size: 1.3rem;
        min-height: 4rem;
    }
}

@media (max-width: 850px) {
    header h1 {
        font-size: 2.5rem;
    }
    .feature-row {
        flex-direction: column !important;
        text-align: center;
        padding-top: 60px;
        gap: 40px;
    }
    .feature-text h2::after {
        margin: 15px auto 0;
    }
    .feature-image {
        margin: 0 auto;
        min-height: 300px;
        max-height: 300px;
        height: 300px;
        width: 300px;
    }
    .badges {
        flex-direction: column;
        align-items: center;
    }
    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}