:root {
    --bg-1: #f0f7ff;
    --bg-2: #ffffff;
    --accent-1: #0066ff;
    --accent-2: #3399ff;
    --text-main: #0b1120;
    --text-muted: #475569;
    --card-bg: rgba(255,255,255,0.8);
    --card-border: rgba(255,255,255,0.6);
    --item-bg: #ffffff;
    --header-bg: rgba(255,255,255,0.7);
    --footer-text: #64748b;
    --shadow: rgba(0, 102, 255, 0.08);
    --plan-bg: #ffffff;
    --nav-link: #0f172a;
    --price-color: #0066ff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-1: #050a14;
        --bg-2: #0b1121;
        --accent-1: #007bff;
        --accent-2: #3b82f6;
        --text-main: #ffffff;
        --text-muted: #cbd5e1;
        --card-bg: rgba(15, 23, 42, 0.6);
        --card-border: rgba(59, 130, 246, 0.2);
        --item-bg: #0f172a;
        --header-bg: rgba(5, 10, 20, 0.85);
        --footer-text: #94a3b8;
        --shadow: rgba(0, 0, 0, 0.6);
        --plan-bg: rgba(15, 23, 42, 0.8);
        --nav-link: #e2e8f0;
        --price-color: #60a5fa;
        --glow: 0 0 30px rgba(0, 123, 255, 0.3);
    }
}

* { box-sizing: border-box; }

/* Ensure hero card is centered and matches header container */
.hero-merged .card { margin: 0 auto; max-width: 1400px; }

/* if the card still looks visually off, adjust internal padding to align with header */
.hero-merged .card .hero-inner { padding-left: 20px; padding-right: 20px; }



html { overflow-x: hidden; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    position: relative;
    overflow-x: hidden;
    color: var(--text-main);
    transition: background 0.3s ease, color 0.3s ease;
}

.wrap {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container { max-width: 1600px; margin: 0 auto; padding: 0 20px; }

.site-header {
    width: 100%;
    padding: 20px 0;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; color: var(--accent-1); font-size: 1.5rem; letter-spacing: -0.5px; text-shadow: var(--glow, none); }
.main-nav a { margin-left: 24px; color: var(--nav-link); text-decoration: none; font-weight: 600; opacity: 0.9; transition: all 0.2s; }
.main-nav a:hover { opacity: 1; color: var(--accent-1); transform: translateY(-1px); text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }

.card {
    background: var(--card-bg);
    backdrop-filter: blur(8px) saturate(160%); /* уменьшил размытие */
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 12px 30px -8px var(--shadow); /* мягче тень */
    text-align: center;
    border: 1px solid var(--card-border);
    position: relative;
    z-index: 1;
    animation: enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Reduce global decorative blur and center it */
body::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -5%;
    transform: translateX(-50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 123, 255, 0.12), transparent 70%);
    filter: blur(40px); /* уменьшено */
    pointer-events: none;
    z-index: 0;
} 

/* Merged card specific */
.merged-card { display: block; }
.hero-top { text-align: center; margin-bottom: 18px; }
.divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent); margin: 18px 0 22px; }
.merged-body { display: flex; gap: 28px; align-items: flex-start; justify-content: center; }
.merged-left, .merged-right { flex: 1 1 50%; display: flex; flex-direction: column; padding-left: 12px; padding-right: 12px; }
.merged-left { justify-content: flex-start; }
.merged-right { justify-content: flex-start; align-items: flex-start; }

/* Balance layout: make the Drives item span full width and vertically center the right column */
.hardware-spec-list li:nth-child(3) { grid-column: 1 / -1; }
.merged-right { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }

.features-side { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.features-center { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Bubble toggle control for low-end devices */
.bubbles-toggle {
    position: fixed;
    bottom: 22px;
    /* align to the left edge of the centered container (container max-width:1600px, padding:20px) */
    left: calc((100% - 1600px) / 2 + 20px);
    z-index: 1200;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 8px 30px rgba(2,6,23,0.45);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
}
.bubble-switch { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.bubble-switch input { appearance: none; -webkit-appearance: none; width: 0; height: 0; position: absolute; pointer-events: none; }
.bubble-ui {
    width: 44px;
    height: 26px;
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
    position: relative;
    display: inline-block;
    transition: background 0.2s ease;
    border: 1px solid rgba(255,255,255,0.03);
}
.bubble-dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 6px 18px rgba(0,123,255,0.18);
    transition: transform 0.18s cubic-bezier(.2,.9,.2,1), background 0.18s;
}
/* checked state */
.bubble-switch input:checked + .bubble-ui { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); }
.bubble-switch input:checked + .bubble-ui .bubble-dot { transform: translateX(18px); background: #fff; box-shadow: 0 8px 22px rgba(0,123,255,0.26); }
.bubble-label { color: var(--text-main); font-weight: 800; font-size: 0.95rem; }
@media (max-width: 700px) { .bubbles-toggle { left: 12px; bottom: 12px; padding: 6px 10px; } .bubble-ui { width: 36px; height: 22px; } .bubble-dot { width: 18px; height: 18px; } }

/* Fallback for viewports narrower than container max-width */
@media (max-width: 1600px) {
    .bubbles-toggle { left: 20px; }
}

@media (max-width: 900px) {
    .hardware-spec-list li:nth-child(3) { grid-column: auto; }
    .merged-right { align-items: flex-start; }
    .features-side { flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; }
}
.card-subtitle { font-weight: 800; font-size: 1.4rem; margin-bottom: 10px; color: var(--text-main); }
.merged-usage .usage-item { background: var(--item-bg); color: var(--text-main); box-shadow: 0 8px 20px var(--shadow); }
.subtitle.small { margin-top: 6px; }

@media (max-width: 900px) {
    .merged-body { flex-direction: column; }
    .merged-left, .merged-right { width: 100%; }
}
.card.alt { background: var(--card-bg); border-radius: 24px; }

.card-title { margin: 0 0 24px 0; font-size: 2rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    min-width: 160px;
    height: 44px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    border: none;
    box-shadow: 0 8px 24px rgba(2,6,23,0.35);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
    cursor: pointer;
    text-shadow: none;
    white-space: nowrap;
}

/* Remove complex pseudo-elements to keep buttons simple & identical */
.cta::before, .cta::after { display: none; }

/* hover/active use integer translations for crisp movement */
.cta:hover { transform: translateY(-4px); }
.cta:active { transform: translateY(-2px); }

/* ghost variant: simple inverted look */
.cta.ghost {
    background: #071627;
    color: #84b6ff;
    border: 3px solid rgba(255,255,255,0.06);
}

/* ensure plan buttons use the same cubic styling and consistent size */
.plan .cta { display: inline-block; min-width: 160px; height: 44px; align-self: center; }

/* accessibility focus */
.cta:focus { outline: 2px solid rgba(255,255,255,0.08); outline-offset: 2px; }

/* Minecraft-style button variant removed — keep site non-pixel */
.cta.minecraft { display: inline-flex; }



.name { margin: 0 0 16px 0; font-weight: 800; font-size: 3.5rem; line-height: 1.1; color: var(--text-main); letter-spacing: -1px; }
.subtitle { margin: 0 0 40px 0; color: var(--text-muted); font-weight: 400; font-size: 1.2rem; line-height: 1.6; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Hero */
.hero-links { display: flex; gap: 20px; justify-content: center; }

.hero.large {
    position: relative;
    width: 100%;
    display: block;
    padding: 12px 0; /* spacing around the card */
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 24px;
    margin-bottom: 32px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 11, 17, 0.55), rgba(9,11,17,0.6));
    backdrop-filter: blur(4px) saturate(120%);
    z-index: 0;
}
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 48px; width: 100%; margin: 0; }

/* ensure hero-card matches .card exactly */
.hero-card { display: block; text-align: center; }
.hero-badge {
    display: inline-block;
    background: linear-gradient(90deg, rgba(34,197,94,0.12), rgba(96,165,250,0.06));
    color: var(--hero-badge-color);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.04);
    backdrop-filter: blur(6px);
    letter-spacing: 0.2px;
}

/* Feature pills */
.features { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.feat-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; font-weight: 700; color: #0b1220; box-shadow: 0 6px 18px rgba(2,6,23,0.28); }
.feat-pill.blue { background: linear-gradient(90deg, rgba(0,123,255,0.14), rgba(51,153,255,0.08)); color: #e8f4ff; }
.feat-pill.purple { background: linear-gradient(90deg, rgba(124,58,237,0.12), rgba(139,92,246,0.06)); color: #fffafc; }
.feat-pill.cyan { background: linear-gradient(90deg, rgba(6,182,212,0.12), rgba(56,189,248,0.06)); color: #f6fffe; }
.feat-pill.yellow { background: linear-gradient(90deg, rgba(253,224,71,0.12), rgba(255,213,79,0.06)); color: #f6fffe; }

@media (max-width: 768px) {
    .features { justify-content: flex-start; }
}
.name { color: var(--text-main); font-size: 2rem; line-height: 1.05; margin: 8px 0 12px; }
.name .accent { color: var(--accent-1); text-shadow: none; }
.lead { color: var(--text-muted); font-size: 1rem; max-width: 700px; margin: 0 auto 12px; }

.cta.cta-danger { background: var(--accent-1); box-shadow: 0 8px 30px rgba(0,123,255,0.18); }
    .cta.cta-danger:hover { transform: translateY(-3px); }
    .cta.cta-ghost { background: var(--accent-2); color: var(--text-main); border: none; box-shadow: 0 8px 30px rgba(59,130,246,0.12); }


.feat { background: rgba(255,255,255,0.06); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 8px 20px rgba(2,6,23,0.35); }

/* mobile tweaks */
@media (max-width: 768px) {
    .hero.large { min-height: 420px; }
    .name { font-size: 2.4rem; }
    .lead { font-size: 1rem; }
    .cta { padding: 12px 22px; }
}

/* Hardware */
.hardware-spec { font-size: 1.6rem; margin: 20px 0; color: var(--text-main); font-weight: 700; }
.hardware-spec-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
}
.hardware-spec-list li {
    background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-weight: 700;
    box-shadow: 0 8px 20px -8px var(--shadow);
}
.hardware-spec-list li strong { width: 110px; color: var(--accent-1); font-weight: 800; display:inline-block; }
@media (min-width: 700px) {
    .hardware-spec-list { grid-template-columns: 1fr 1fr; }
}
.link-more { color: var(--accent-1); text-decoration: none; font-weight: 700; font-size: 1.1rem; border-bottom: 2px solid transparent; transition: all 0.2s; }
.link-more:hover { border-bottom-color: var(--accent-1); }

/* Usage */
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 40px 0; }
.usage-item { background: var(--item-bg); padding: 28px; border-radius: 20px; font-weight: 700; box-shadow: 0 10px 20px var(--shadow); transition: all 0.3s; border: 1px solid var(--card-border); }
.usage-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px var(--shadow); border-color: var(--accent-1); }

/* Pricing */
.section-title { text-align: center; font-size: 3rem; font-weight: 800; margin: 60px 0 40px; color: var(--text-main); letter-spacing: -1px; }
.pricing-category { margin-bottom: 100px; width: 100%; }
.pricing-category h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 40px; color: var(--text-main); border-left: 6px solid var(--accent-1); padding-left: 20px; text-align: left; letter-spacing: -0.5px; }
.pricing-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 20px; 
}
@media (min-width: 700px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-grid.single { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

.plan {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    backdrop-filter: blur(8px) saturate(160%);
    padding: 32px 24px;
    border-radius: 28px;
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 30px -8px var(--shadow);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
    overflow: hidden;
    min-height: 360px;
}

/* keep overlay minimal so blur matches hero card but bubbles stay hidden */
.plan::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.06); /* subtle darken */
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    backdrop-filter: blur(8px) saturate(160%);
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
}

/* ensure content sits above the overlay */
.plan > * { position: relative; z-index: 1; }

/* Plan card CTAs: consistent centered buttons */
.plan .cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    align-self: center;
    padding: 12px 24px;
    min-width: 160px;
    height: 44px;
    transition: transform 0.18s cubic-bezier(.2,.9,.2,1), box-shadow 0.18s ease, background 0.18s ease;
}
.plan .cta:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,123,255,0.18); }
.plan .cta:active { transform: translateY(-1px) scale(0.99); }

.plan:hover { transform: translateY(-10px); box-shadow: 0 30px 60px var(--shadow); border-color: var(--accent-1); }

.plan .cta.ghost { min-width: 140px; }

/* Slight adjustment for featured plan CTA */
.plan.featured .cta { min-width: 200px; }
.plan-name { font-weight: 800; color: var(--text-main); font-size: 1.6rem; margin-bottom: 12px; letter-spacing: -0.5px; }
.plan-price { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--price-color); 
    margin-bottom: 24px; 
    text-shadow: var(--glow, none);
}
.plan-features { list-style: none; padding: 0; margin: 0 0 32px 0; color: var(--text-muted); font-size: 1.05rem; flex-grow: 1; }
.plan-features li { margin: 14px 0; padding-left: 32px; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-1); font-weight: 900; }
.plan-desc { color: var(--text-muted); margin-bottom: 32px; font-size: 1.1rem; line-height: 1.6; }

.plan.popular { border: 2px solid var(--accent-1); }
.plan.popular::after { content: "Популярный"; position: absolute; top: 20px; right: -35px; background: var(--accent-1); color: #fff; padding: 8px 40px; font-size: 0.85rem; font-weight: 800; transform: rotate(45deg); }

.plan.featured {
    background: linear-gradient(135deg, var(--plan-bg), var(--bg-1));
    border-color: var(--accent-1);
}
@media (prefers-color-scheme: dark) {
    .plan.featured {
        background: linear-gradient(135deg, var(--plan-bg), rgba(0, 123, 255, 0.1));
    }
}

/* Services */
.services-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; text-align: left; margin-top: 40px; }
.service-item { display: flex; gap: 24px; align-items: flex-start; background: var(--item-bg); padding: 32px; border-radius: 24px; box-shadow: 0 10px 25px var(--shadow); transition: all 0.3s; border: 1px solid var(--card-border); }
.service-item:hover { transform: scale(1.02); border-color: var(--accent-1); }
.service-icon { font-size: 2.8rem; }
.service-info strong { display: block; color: var(--text-main); margin-bottom: 8px; font-weight: 800; }
.service-info p { margin: 0; font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; }

.note { margin-top: 30px; font-size: 1.1rem; color: var(--text-muted); }
.note a { color: var(--accent-1); font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; transition: all 0.2s; }
.note a:hover { border-bottom-color: var(--accent-1); }

.site-footer { width: 100%; padding: 60px 0; color: var(--footer-text); font-size: 1.1rem; border-top: 1px solid var(--card-border); margin-top: 60px; transition: all 0.3s; }
.site-footer .container { text-align: center; opacity: 0.7; }

@keyframes enter {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}



@media (max-width: 768px) {
    .name { font-size: 2.4rem; }
    .section-title { font-size: 2.2rem; }
    .pricing-grid { grid-template-columns: 1fr; }

    .hero-links { flex-direction: column; gap: 12px; }
    .hero-links .cta { width: 80%; max-width: 420px; margin: 0 auto; }

    /* Make cards a bit tighter on mobile */
    .card { padding: 32px 18px; }

    /* Plan cards - ensure CTA is anchored to bottom and full-width */
    .plan { padding: 24px; min-height: 320px; display: flex; flex-direction: column; }
    .plan .cta { margin-top: 18px; align-self: center; }
    .plan .cta, .plan .cta.ghost { width: 100%; max-width: 100%; display: block; padding: 12px 18px; }
    .plan.featured .cta { margin-top: auto; }

    /* Features pills wrap nicely */
    .features { justify-content: center; gap: 10px; }
    .feat-pill { font-size: 0.95rem; padding: 8px 10px; }

    /* Usage grid fallback */
    .usage-grid { grid-template-columns: 1fr; gap: 12px; }

    /* General button spacing */
    .cta { padding: 12px 22px; }
}
