:root {
    --bg-page: #f7f7f7;
    --bg-card: #ffffff;
    --text-primary: #0a0a0a;
    --text-secondary: #525252;
    --text-muted: #737373;
    --border-line: #e2e2e2;
    --lime-accent: #a8ff00;
    --lime-hover: #96e600;
    --dark-btn: #0a0a0a;
    --dark-btn-hover: #262626;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.navbar {
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--border-line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Логотип теперь использует Plus Jakarta Sans (ровный, плотный, без искривлений) */
.brand-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.server-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border-line);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, transform 0.1s ease;
}

.server-pill:hover {
    border-color: var(--text-primary);
}

.server-pill:active {
    transform: scale(0.98);
}

.server-label {
    font-size: 13px;
    color: var(--text-muted);
}

.server-pill code {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.copy-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* Всплывающая подсказка СНИЗУ */
.copy-toast {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--text-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-cta-btn {
    background-color: var(--lime-accent);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.nav-cta-btn:hover {
    background-color: var(--lime-hover);
}

.main-wrapper {
    max-width: 1360px;
    margin: 0 auto;
    padding: 56px 32px 80px;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
    align-items: start;
}

/* Заголовки тоже переведены на Plus Jakarta Sans для аккуратности */
.hero-left h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 520px;
}

.hero-right {
    border-top: 1px solid var(--border-line);
}

.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-line);
}

.info-row h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.info-row p {
    font-size: 14px;
    color: var(--text-secondary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.platform-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
}

.card-web {
    border: 1.5px solid var(--text-primary);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.platform-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-icon {
    width: 26px;
    height: 26px;
    color: var(--text-primary);
}

.platform-title h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.badge {
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: #f0f0f0;
    color: var(--text-primary);
}

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 44px;
}

.qr-wrapper {
    background-color: var(--bg-page);
    border: 1px solid var(--border-line);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    margin-bottom: 18px;
}

.qr-code {
    width: 136px;
    height: 136px;
    background: #ffffff;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--border-line);
    margin-bottom: 8px;
}

.qr-caption {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.release-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 16px;
    border-top: 1px solid var(--border-line);
    border-bottom: 1px solid var(--border-line);
}

.release-link {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.release-link:hover {
    color: #404040;
}

.release-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.file-size {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.btn-lime {
    background-color: var(--lime-accent);
    color: var(--text-primary);
}

.btn-lime:hover {
    background-color: var(--lime-hover);
}

.btn-dark {
    background-color: var(--dark-btn);
    color: #ffffff;
}

.btn-dark:hover {
    background-color: var(--dark-btn-hover);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.modal-overlay.open {
    display: flex;
}

.modal-window {
    background: #ffffff;
    border-radius: 18px;
    max-width: 520px;
    width: 100%;
    padding: 28px;
    border: 1px solid var(--border-line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-line);
}

.modal-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-body ul {
    padding-left: 20px;
    margin-top: 10px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-footer {
    ,display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.official-changelog-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: underline;
}

.modal-ok-btn {
    width: auto;
    padding: 10px 22px;
}

@media (max-width: 960px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
