@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #F2F2F7;
    --card-bg: #FFFFFF;
    --accent-color: #007AFF;
    --accent-color-dark: #0059b8;
    --green-color: #34C759;
    --text-primary: #0f172a;
    --text-secondary: #667085;
    --separator-color: #D9DDE7;
    --control-bg: #E7ECF4;
    --surface-muted: linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 25px 70px rgba(0, 122, 255, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(242, 242, 247, 0.85);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.nav-row {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.nav-links a:hover { color: var(--accent-color); }

.hero {
    padding: 56px 0 36px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 28px;
    align-items: stretch;
}
.hero-badge, .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.10);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
}
.hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}
.hero-text {
    margin: 0;
    max-width: 680px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}
.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.hero-points span {
    padding: 10px 14px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: 999px;
}

.hero-card,
.feature-card,
.tariff-card,
.app-card,
.content-card,
.empty-card,
.doc-card,
.faq-item,
.stat-card,
.server-list-box,
.payments-box {
    background: var(--card-bg);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.hero-card {
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: var(--shadow-lg);
}
.hero-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; }
.hero-card-subtitle { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.stat-card { padding: 18px; }
.stat-value { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.04em; }
.stat-label { margin-top: 8px; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.4; }
.server-list-box { margin-top: 16px; padding: 18px; }
.server-list { margin: 0; padding-left: 18px; color: var(--text-secondary); line-height: 1.8; }

.section { padding: 28px 0 48px; }
.section-muted { background: var(--surface-muted); }
.section-head { margin-bottom: 22px; }
.section-head h2 {
    margin: 16px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.04em;
}
.section-head p { margin: 0; color: var(--text-secondary); line-height: 1.7; }

.feature-grid,
.tariff-grid,
.apps-grid,
.content-grid {
    display: grid;
    gap: 18px;
}
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tariff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.apps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.content-grid { grid-template-columns: 1.25fr 0.85fr; }

.feature-card,
.tariff-card,
.app-card,
.content-card,
.empty-card { padding: 24px; }
.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 255, 0.12);
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 18px;
}
.feature-card h3,
.empty-card h3,
.tariff-title,
.app-card-title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
}
.feature-card p,
.empty-card p,
.support-card p,
.tariff-description {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tariff-card-featured {
    border-color: rgba(0, 122, 255, 0.28);
    box-shadow: var(--shadow-md);
}
.tariff-price {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 6px;
}
.tariff-period {
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.tariff-meta {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--text-secondary);
}
.tariff-description { margin-bottom: 18px; }
.payments-box { margin-top: 20px; padding: 18px 20px; }
.payments-title { font-weight: 700; margin-bottom: 12px; }
.payment-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.08);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.92rem;
}

.app-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 145px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.app-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.app-card-action {
    margin-top: 14px;
    color: var(--accent-color);
    font-weight: 700;
}

.prose-block,
.doc-card {
    color: var(--text-secondary);
    line-height: 1.8;
}
.prose-block blockquote {
    margin: 0 0 16px;
    padding: 16px 18px;
    background: rgba(0, 122, 255, 0.06);
    border-left: 4px solid rgba(0, 122, 255, 0.35);
    border-radius: 14px;
}
.prose-block h2,
.prose-block h3,
.doc-card h2,
.doc-card h3 {
    color: var(--text-primary);
    margin-top: 22px;
    margin-bottom: 10px;
}
.prose-block p,
.prose-block ul,
.doc-card p,
.doc-card ul { margin-top: 0; }

.stack-actions { display: grid; gap: 12px; margin-top: 20px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 122, 255, 0.22);
}
.btn-secondary {
    background: rgba(0, 122, 255, 0.08);
    color: var(--accent-color);
}
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.10);
}
.btn-block { width: 100%; }

.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px 20px; }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 14px 0 0; color: var(--text-secondary); line-height: 1.7; }

.site-footer {
    padding: 28px 0 48px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}
.brand-footer { margin-bottom: 10px; }
.footer-text { margin: 0; color: var(--text-secondary); max-width: 520px; line-height: 1.7; }
.footer-links {
    display: grid;
    gap: 10px;
    color: var(--text-secondary);
    justify-items: flex-start;
}
.footer-links a:hover { color: var(--accent-color); }

.doc-shell { max-width: 860px; }
.doc-title {
    margin: 18px 0 18px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}
.doc-card { padding: 28px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

@media (max-width: 1080px) {
    .hero-grid,
    .content-grid,
    .apps-grid,
    .tariff-grid,
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .nav-row,
    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links { gap: 12px; }
    .hero { padding-top: 34px; }
    .hero-grid,
    .feature-grid,
    .tariff-grid,
    .apps-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions,
    .doc-actions { width: 100%; }
    .hero-actions .btn,
    .doc-actions .btn { width: 100%; }
}

.nav-cta {
    padding: 10px 14px;
    border: 1px solid rgba(91, 208, 255, 0.35);
    border-radius: 999px;
    background: rgba(8, 25, 56, 0.72);
}
.hero-video {
    position: relative;
    overflow: hidden;
    min-height: 720px;
}
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.26;
    pointer-events: none;
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(91, 208, 255, 0.18), transparent 36%), linear-gradient(180deg, rgba(4, 11, 28, 0.58), rgba(4, 11, 28, 0.86));
}
.hero-grid-wide, .auth-grid, .cabinet-grid, .choice-grid {
    position: relative;
    z-index: 1;
}
.hero-card-glass, .choice-card, .auth-card, .auth-side-card, .content-card {
    backdrop-filter: blur(12px);
}
.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.choice-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(91, 208, 255, 0.14);
    background: rgba(7, 17, 41, 0.82);
    box-shadow: var(--shadow-md);
}
.choice-card-accent {
    background: linear-gradient(180deg, rgba(10, 28, 66, 0.92), rgba(7, 18, 40, 0.92));
}
.choice-label, .cabinet-label {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(91, 208, 255, 0.12);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 10px;
}
.choice-list, .history-list, .kv-list {
    display: grid;
    gap: 12px;
}
.choice-list {
    padding-left: 18px;
    margin: 18px 0;
    color: var(--text-secondary);
}
.info-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}
.info-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
}
.auth-main {
    padding-top: 40px;
}
.auth-grid, .cabinet-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
}
.auth-form {
    display: grid;
    gap: 14px;
}
.auth-form label {
    display: grid;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 600;
}
.auth-form input {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(91, 208, 255, 0.16);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    outline: none;
}
.auth-links {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-secondary);
}
.notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}
.notice.success {
    background: rgba(28, 169, 109, 0.14);
    border-color: rgba(28, 169, 109, 0.25);
}
.notice.error {
    background: rgba(255, 90, 90, 0.14);
    border-color: rgba(255, 90, 90, 0.25);
}
.muted-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.status-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.status-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    font-weight: 700;
}
.status-pill.ok {
    background: rgba(28, 169, 109, 0.16);
}
.status-pill.warn {
    background: rgba(255, 170, 0, 0.16);
}
.kv-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.history-item {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-space { margin-top: 18px; }
.compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-tariff {
    min-height: auto;
}
.section-head-left { text-align: left; }
.feature-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1024px) {
    .choice-grid, .auth-grid, .cabinet-grid, .feature-grid-4 {
        grid-template-columns: 1fr;
    }
    .compact-grid {
        grid-template-columns: 1fr;
    }
}
