/* 1. ШРИФТЫ */
@font-face { font-family: 'Inter'; src: url('fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-v20-cyrillic_latin-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-v20-cyrillic_latin-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-v20-cyrillic_latin-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* 2. ПЕРЕМЕННЫЕ */
:root {
    --bg-color: #1B1C21;
    --platform-bg: #232429;
    --card-bg: #232429;
    --border-color: #2A2B32;
    --accent: #FAED5D;
    --text-main: #B9C2CB;
    --text-muted: #A6ACB3;
    --text-black: #000000;
    --font-family: 'Inter', sans-serif;
}

/* 3. БАЗА */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; min-width: 0; }
html { font-size: 15px; height: 100%; overflow-x: hidden; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
.container { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; overflow-wrap: break-word; }
a { text-decoration: none; color: inherit; }
.text-yellow { color: var(--accent); }

.page-view { width: 100%; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 4. КНОПКИ */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; border-radius: 8px; cursor: pointer; border: none; font-size: 0.9rem; text-align: center; }
.btn:hover { opacity: 0.85; }
.btn-primary { background-color: var(--accent); color: var(--text-black); padding: 10px 24px; }
.btn-large { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }
.btn-login { padding: 13px 26px; font-size: 0.9rem; border-radius: 10px; }

/* 5. HEADER */
.header { display: flex; justify-content: center; align-items: center; padding: 30px 0; position: relative; min-height: 90px; }
.burger-btn { display: none; }

/* Глобус языка */
.lang-wrapper {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 10001;
}

.lang-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.lang-btn:hover { opacity: 0.7; }

.lang-menu {
    position: absolute; top: 100%; left: 0; margin-top: 5px;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 8px; overflow: hidden;
    display: none; z-index: 1000; min-width: 120px;
}
.lang-menu.show { display: block; }
.lang-option { padding: 10px 16px; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; text-align: left; word-break: normal; }
.lang-option:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }

.header-content { display: flex; width: 100%; justify-content: center; align-items: center; }
.nav-links { display: flex; gap: 8px; color: var(--text-muted); font-size: 1.1rem; font-weight: 500; }
.nav-links a { padding: 10px 16px; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
.header-actions { position: absolute; right: 0; display: flex; align-items: center; gap: 16px; }

/* 6. HERO */
.hero { display: flex; align-items: center; justify-content: space-between; padding: 40px 0 60px; gap: 40px; }
.hero-content { max-width: 50%; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); word-break: break-word; }
.hero p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; font-weight: 400; max-width: 400px; }
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.logo-img { width: 140px; max-width: 100%; height: auto; display: block; } /* Убрана тень (drop-shadow) */

/* =========================================
   СИСТЕМА ИКОНОК
   ========================================= */
.svg-icon {
    flex-shrink: 0;
    background-repeat: no-repeat; background-position: center; background-size: contain;
    mask-repeat: no-repeat; mask-position: center; mask-size: contain;
    -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
}
.icon-white { background-color: #FFFFFF; }
.icon-text { background-color: var(--text-main); }
.icon-yellow { background-color: var(--accent); }

/* Платформы */
.icon-windows { mask-image: url('icons/windows.svg'); -webkit-mask-image: url('icons/windows.svg'); width: 26px; height: 26px; }
.icon-apple { mask-image: url('icons/apple.svg'); -webkit-mask-image: url('icons/apple.svg'); width: 32px; height: 32px; }
.icon-linux { mask-image: url('icons/linux.svg'); -webkit-mask-image: url('icons/linux.svg'); width: 32px; height: 32px; }
.icon-android { mask-image: url('icons/android.svg'); -webkit-mask-image: url('icons/android.svg'); width: 32px; height: 32px; }

/* Глобус языка: 24px */
.icon-globe-lang { mask-image: url('icons/Globe.svg'); -webkit-mask-image: url('icons/Globe.svg'); width: 24px; height: 24px; display: block; }

.icon-download-sm { width: 18px; height: 18px; mask-image: url('icons/download.svg'); -webkit-mask-image: url('icons/download.svg'); }
.icon-arrow-sm { width: 12px; height: 12px; mask-image: url('icons/arrow-right-up.svg'); -webkit-mask-image: url('icons/arrow-right-up.svg'); }
.icon-check { width: 22px; height: 22px; mask-image: url('icons/Check-mark.svg'); -webkit-mask-image: url('icons/Check-mark.svg'); }

/* Иконки в фичах */
.icon-lightning { width: 56px; height: 50px; mask-image: url('icons/lightning.svg'); -webkit-mask-image: url('icons/lightning.svg'); margin-right: 6px;}
.icon-lock { width: 35px; height: 28px; mask-image: url('icons/Lock.svg'); -webkit-mask-image: url('icons/Lock.svg'); margin-right: 5px; }
.icon-globe { width: 28px; height: 28px; mask-image: url('icons/Globe.svg'); -webkit-mask-image: url('icons/Globe.svg'); }

/* 7. ПЛАТФОРМЫ */
.platforms-section { margin-top: 40px; margin-bottom: 40px; width: 100%; box-sizing: border-box; }
.section-inner { padding: 0; }
.platforms-section h2 { margin-bottom: 12px; font-size: 1.2rem; font-weight: 600; color: var(--text-main); }
.section-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; max-width: 600px; }

.platforms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.platform-card {
    background-color: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 16px;
    display: grid; grid-template-columns: 32px 1fr 34px; align-items: center; gap: 12px;
    height: 72px; position: relative; cursor: pointer; transition: border-color 0.2s;
}
.platform-card:hover { border-color: #444; }
.platform-card .svg-icon { margin: 0 auto; justify-self: center; }

.platform-info { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.platform-info strong { font-size: 0.95rem; font-weight: 600; color: var(--text-main); word-break: break-word; }

.download-btn { background: rgba(255,255,255,0.08); border: none; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; flex-shrink: 0; }
.download-btn:hover { background: rgba(255,255,255,0.15); }

.linux-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; width: 100%; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 6px; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,0.4); flex-direction: column; gap: 2px; }
.linux-option { color: var(--text-muted); font-size: 0.85rem; padding: 10px 14px; border-radius: 8px; text-align: left; font-weight: 500; display: flex; align-items: center; justify-content: space-between; }
.linux-option:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }

/* 8. ПОДПИСКИ И ФИЧИ */
.pricing-section { margin-top: 60px; width: 100%; }
.pricing-section h2 { margin-bottom: 24px; font-size: 1.2rem; font-weight: 600; color: var(--text-main); }
.pricing-wrapper { display: flex; flex-direction: column; gap: 60px; width: 100%; }
.pricing-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; width: 100%; }

.price-card { grid-column: span 3; background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.4rem; margin-bottom: 8px; font-weight: 700; color: var(--text-main); word-break: break-word; }
.price-card .desc { color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }
.features-list { list-style: none; margin-bottom: 40px; flex-grow: 1; }

.features-list li { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 500; color: var(--text-main); }
.features-list li .svg-icon { flex-shrink: 0; margin-top: 0; }
.features-list li span { display: block; line-height: 1.4; word-break: break-word; }

.price-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.price-box .price { font-size: clamp(1.8rem, 8vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.price-box .period { color: var(--text-muted); font-size: 0.9rem; white-space: nowrap; }

/* Блок Фич */
.features-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 24px;
    width: 100%;
    padding-bottom: 50px;
    padding-right: 15px;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.feature-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 16px;
    align-items: center;
    flex: 0 1 auto;
}
.feature-item .svg-icon {
    justify-self: center;
}
.feature-text h4 { font-size: 1rem; margin-bottom: 8px; font-weight: 600; color: var(--text-main); }
.feature-text p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* 9. FOOTER */
.footer { display: flex; flex-direction: column; align-items: center; padding: 30px 0 20px; color: var(--text-muted); font-size: 0.85rem; margin-top: auto; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-bottom: 16px; }
.footer-links a:hover { color: var(--text-main); }
.copyright { opacity: 0.6; font-size: 0.8rem; }

/* 10. ТЕКСТОВЫЕ СТРАНИЦЫ */
.text-page { padding: 40px 0 60px; }
.text-page h1 { font-size: clamp(2rem, 6vw, 2.5rem); color: var(--text-main); margin-bottom: 24px; font-weight: 700; word-break: break-word; }
.text-subtitle { font-size: 1.2rem; color: var(--text-main); margin: 32px 0 12px; font-weight: 600; }
.text-page p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.7; max-width: 800px; }
.text-page strong { color: var(--text-main); }
.text-page ul { list-style: none; margin-top: 24px; max-width: 800px; }
.text-page ul li { color: var(--text-muted); padding: 16px 0; border-bottom: 1px solid var(--border-color); font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: 12px; word-break: break-word; }
.text-page ul li a { word-break: break-all; }
.text-page ul li:last-child { border-bottom: none; }
.text-page a { color: var(--accent); text-decoration: none; }
.text-page a:hover { text-decoration: underline; text-underline-offset: 4px; opacity: 0.8; }

/* 11. СТРАНИЦА СЕРВЕРОВ */
.server-page { max-width: 800px; margin: 0 auto; width: 100%; }
.server-section { margin-bottom: 40px; }
.server-category { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 16px; padding-left: 8px; }

.server-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.server-item { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; display: flex; align-items: center; padding: 16px; gap: 16px; }
.server-flag { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.server-info { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.server-name { font-size: 1.1rem; font-weight: 500; color: var(--text-main); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.server-city { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================
   12. АДАПТИВНОСТЬ (МОБИЛЬНАЯ ВЕРСИЯ)
   ========================================= */
@media (max-width: 850px) {
    .header { padding: 20px 0; justify-content: center; height: 70px; z-index: 9999; }

    .lang-wrapper {
        left: 3%;
    }

    .burger-btn {
        display: flex; flex-direction: column; justify-content: space-between;
        width: 24px; height: 16px; position: absolute; right: 3%;
        top: 50%; transform: translateY(-50%); z-index: 10001; cursor: pointer;
    }
    .burger-btn span {
        display: block; width: 100%; height: 2px;
        background-color: var(--text-main);
        border-radius: 2px; transition: none;
    }
    .burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .burger-btn.open span:nth-child(2) { display: none; }
    .burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .header-content {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: auto;
        background-color: var(--bg-color); z-index: 9999;
        flex-direction: column; justify-content: center; align-items: center;
        opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .header-content.open { opacity: 1; visibility: visible; }

    .nav-links { flex-direction: column; align-items: center; gap: 0; font-size: 1rem; width: 100%; }
    .nav-links a {
        display: block; width: 80%; text-align: center;
        padding: 18px 0; border-bottom: 1px solid var(--border-color); white-space: normal;
    }
    .nav-links a:last-child { border-bottom: none; }

    .header-actions { position: static; flex-direction: column; width: 80%; padding: 18px 0 0; margin-top: 0; }
    .btn-login { width: 100%; padding: 14px 0; font-size: 0.95rem; }

    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: fit-content;
        margin: 0 auto;
        padding-right: 0;
    }
    .feature-item {
        width: 100%;
    }

    .platform-card .download-btn { display: none; }
    .platforms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .platform-card {
        grid-template-columns: 32px 1fr;
        padding: 12px; height: 60px;
    }
    .platform-info { text-align: left; }

    .hero { flex-direction: column-reverse; text-align: center; gap: 20px; padding: 20px 0 40px; }
    .hero-content { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
    .hero p { margin: 0 auto 24px; }
    .hero-image { transform: scale(0.85); }

    .pricing-grid { display: flex; flex-direction: column; }
    .price-card { width: 100%; }
}

@media (max-width: 600px) {
    .platforms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .server-list { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .price-card { padding: 20px; }
    .platform-card { grid-template-columns: 28px 1fr; padding: 10px; gap: 8px; }
    .platform-info strong { font-size: 0.85rem; }
    .text-page h1 { font-size: 1.8rem; }
}