﻿:root {
    --bg: #f3f6fb;
    --bg-accent: #eef4ff;
    --panel: rgba(255, 255, 255, 0.96);
    --panel-soft: #f8fbff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #dbe4f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #e8f0ff;
    --success: #0f766e;
    --danger: #dc2626;
    --warn-bg: #fff7ed;
    --warn-text: #c2410c;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 12px 28px rgba(37, 99, 235, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #f3f6fb 42%, #eef2f7 100%);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(219, 228, 240, 0.85);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.nav nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav nav a { padding: 10px 14px; border-radius: 999px; color: var(--muted); transition: all .18s ease; }
.nav nav a:hover { color: var(--primary); background: var(--primary-soft); }
.brand { font-weight: 800; font-size: 24px; letter-spacing: 0.02em; color: var(--primary); }
.card,
.hero { background: var(--panel); border: 1px solid rgba(219, 228, 240, 0.92); border-radius: 24px; box-shadow: var(--shadow); }
.card { padding: 24px; margin: 24px 0; }
.compact-card { padding: 22px 24px; }
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; padding: 46px; margin: 28px 0; }
.hero h1,
.page-head h1,
.catalog-hero h1 { margin: 12px 0; font-size: 42px; line-height: 1.1; letter-spacing: -0.03em; }
.section-label,
.tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.inline { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 14px; padding: 12px 18px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%); color: #fff; box-shadow: var(--shadow-soft); }
.btn.primary:hover { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); }
.btn.secondary { background: var(--panel-soft); color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { border-color: #bfdbfe; color: var(--primary); background: #f8fbff; }
.btn.linklike { padding: 0; background: transparent; color: var(--primary); }
input,
select,
textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
input:focus,
select:focus,
textarea:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10); }
textarea { min-height: 120px; resize: vertical; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
form { display: grid; gap: 14px; }
.alert { padding: 12px 14px; border-radius: 14px; margin: 12px 0; border: 1px solid transparent; }
.alert.success { background: #ecfdf5; color: var(--success); border-color: #bbf7d0; }
.alert.error { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.site-footer { margin-top: 44px; padding: 34px 0 52px; border-top: 1px solid rgba(219, 228, 240, 0.9); }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
pre.delivery { white-space: pre-wrap; background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 12px; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin: 28px 0; }
.admin-menu { padding: 18px; }
.admin-menu a { display: block; padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; color: var(--muted); }
.admin-menu a:hover,
.admin-menu a.active { background: var(--panel-soft); color: var(--primary); }
.home-hero { align-items: center; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; max-width: 520px; }
.hero-facts div { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.72); }
.hero-facts strong { font-size: 24px; color: var(--primary); line-height: 1; }
.hero-facts span { font-size: 13px; color: var(--muted); }
.hero-menu { background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(255, 255, 255, 0.98)); }
.hero-menu-link { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); margin-top: 10px; transition: all .18s ease; }
.hero-menu-link:hover { color: var(--primary); border-color: #bfdbfe; background: #f8fbff; }
.catalog-hero,
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.catalog-user-box { min-width: 220px; display: grid; gap: 6px; justify-items: end; }
.catalog-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.catalog-badges span,
.side-chip,
.server-stock-tag { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.catalog-badges span { background: #f8fbff; border: 1px solid var(--line); color: var(--muted); }
.feature-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card h3 { margin: 14px 0 8px; font-size: 20px; }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.entry-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.entry-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(37, 99, 235, 0.10); border-color: #bfdbfe; }
.entry-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.entry-arrow { color: var(--muted); font-size: 13px; font-weight: 700; }
.entry-card h2 { margin: 16px 0 10px; }
.entry-meta { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.clean-builder { display: grid; grid-template-columns: minmax(0, 1.7fr) 320px; gap: 20px; align-items: start; margin: 24px 0; }
.clean-side { position: sticky; top: 92px; }
.side-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.side-head h3 { margin: 0; }
.side-chip { background: var(--primary-soft); color: var(--primary); }
.inline-note { padding: 12px 14px; border-radius: 14px; margin-bottom: 18px; font-size: 14px; border: 1px solid transparent; }
.success-note { background: #ecfdf5; color: var(--success); border-color: #bbf7d0; }
.warn-note { background: var(--warn-bg); color: var(--warn-text); border-color: #fed7aa; }
.warn-note a { color: var(--primary); }
.clean-form { gap: 22px; }
.builder-block { display: grid; gap: 14px; }
.builder-block h3 { margin: 0; font-size: 18px; }
.two-col-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.clean-pill input,
.node-card input { display: none; }
.clean-pill,
.node-card { cursor: pointer; }
.clean-pill span { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-soft); transition: all .16s ease; }
.clean-pill.two-line { display: grid; gap: 4px; min-width: 92px; text-align: center; }
.clean-pill.two-line small { color: var(--muted); }
.clean-pill input:checked + span,
.clean-pill input:checked + span + small { color: var(--primary); }
.clean-pill:has(input:checked) span,
.clean-pill:has(input:checked) { border-color: #bfdbfe; }
.clean-pill:has(input:checked) span { background: var(--primary-soft); }
.region-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.region-stock-box { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #bfdbfe; border-radius: 14px; background: var(--primary-soft); min-width: 150px; text-align: right; }
.region-stock-box span { color: var(--muted); font-size: 12px; }
.region-stock-box strong { color: var(--primary); font-size: 24px; line-height: 1; }
.node-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.node-card { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: all .16s ease; }
.node-card:hover { transform: translateY(-2px); border-color: #bfdbfe; }
.node-card strong { font-size: 15px; }
.node-card span { color: var(--muted); font-size: 13px; }
.node-card:has(input:checked) { border-color: #93c5fd; box-shadow: inset 0 0 0 1px #60a5fa; background: #f8fbff; }
.summary-stack { display: grid; gap: 10px; margin: 18px 0 24px; }
.summary-stack div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.price-box-clean { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.price-box-clean strong { font-size: 30px; color: var(--primary); }
.wide-btn { min-height: 48px; }
.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.server-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 16px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.server-card:hover { transform: translateY(-4px); border-color: #bfdbfe; box-shadow: 0 22px 42px rgba(37, 99, 235, 0.10); }
.server-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.server-card-head h3 { margin: 0; font-size: 24px; }
.server-stock-tag { margin-top: 10px; width: fit-content; }
.server-stock-tag.in-stock { background: #ecfdf5; color: var(--success); }
.server-stock-tag.sold-out { background: #f1f5f9; color: #64748b; }
.server-card-body { display: grid; gap: 10px; }
.server-spec-line { display: grid; grid-template-columns: 74px 1fr; gap: 10px; }
.server-spec-line span { color: var(--muted); }
.server-price-row { display: flex; gap: 8px; align-items: baseline; color: var(--primary); }
.server-price-row strong { font-size: 36px; }
.server-btn { width: 100%; min-height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%); color: #fff; border: 0; font: inherit; font-weight: 700; display: inline-flex; justify-content: center; align-items: center; cursor: pointer; }
.server-btn.disabled { background: #cbd5e1; color: #475569; }
.server-buy-form { display: block; }
.sold-out { opacity: 0.92; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-weight: 700; }
@media (max-width: 980px) {
    .clean-builder,
    .server-grid,
    .entry-grid,
    .grid-3,
    .search-grid,
    .feature-strip { grid-template-columns: 1fr 1fr; }
    .clean-side { position: static; }
    .node-grid,
    .two-col-block { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav { flex-direction: column; justify-content: center; padding: 14px 0; }
    .hero,
    .footer-grid,
    .admin-shell,
    .grid-2,
    .grid-3,
    .entry-grid,
    .clean-builder,
    .server-grid,
    .search-grid,
    .node-grid,
    .two-col-block,
    .feature-strip { grid-template-columns: 1fr; }
    .catalog-hero,
    .page-head,
    .region-header { flex-direction: column; align-items: flex-start; }
    .hero-facts { grid-template-columns: 1fr; width: 100%; max-width: none; }
    .catalog-user-box { justify-items: start; min-width: 0; }
    .hero { padding: 28px; }
    .hero h1,
    .page-head h1,
    .catalog-hero h1 { font-size: 32px; }
    .region-stock-box { text-align: left; }
}
