:root {
    --bg: #07111f;
    --bg-soft: #0d1b2f;
    --card: rgba(255,255,255,0.08);
    --card-border: rgba(255,255,255,0.14);
    --text: #f4f7fb;
    --muted: #b9c4d6;
    --brand: #ff385c;
    --brand-2: #35d0ff;
    --accent: #ffe066;
    --shadow: 0 24px 60px rgba(0,0,0,0.35);
    --radius: 22px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, rgba(53,208,255,0.22), transparent 35%),
                radial-gradient(circle at top right, rgba(255,56,92,0.20), transparent 35%),
                var(--bg);
    color: var(--text);
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: rgba(7,17,31,0.82);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 1.25rem;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(53,208,255,0.25);
    transform: rotate(-8deg);
}

.logo-mark::after {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    border-radius: 3px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.menu-btn {
    display: none;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 1.1rem;
}

.hero {
    padding: 80px 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 42px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,0.06);
    font-weight: 700;
    font-size: 0.9rem;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.04em; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 16px; color: var(--muted); }

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--brand-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 900;
    border: 1px solid transparent;
}

.btn-primary { background: linear-gradient(135deg, var(--brand), #ff7a18); color: #fff; box-shadow: 0 14px 34px rgba(255,56,92,0.28); }
.btn-primary-sec { 
  background: linear-gradient(135deg, var(--brand), #ff7a18); 
  color: #fff; 
  box-shadow: 0 14px 34px rgba(255,56,92,0.28); 
  
  font-size: 21px; 
  font-weight: 600; 
  border-radius: 14px;
  display: block; 
  width: 450px;
  text-align: center;
  
  margin: 50px auto; 
  height: 60px;
  line-height: 60px; 
  padding: 0 25px; /
  min-width: 450px;
}

.btn-secondary { border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.08); color: #fff; }

.hero-card {
    position: relative;
    min-height: 420px;
    border: 1px solid var(--card-border);
    border-radius: 34px;
    background: linear-gradient(160deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04));
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 26px;
}

.cube-scene {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(255,224,102,0.18), transparent 26%);
}

.block {
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(53,208,255,0.95), rgba(255,56,92,0.95));
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    transform: rotate(12deg);
}

.block:nth-child(1) { left: 45px; top: 70px; }
.block:nth-child(2) { right: 48px; top: 120px; transform: rotate(-18deg); background: linear-gradient(135deg, #ffe066, #ff7a18); }
.block:nth-child(3) { left: 135px; bottom: 70px; transform: rotate(28deg); background: linear-gradient(135deg, #fff, #35d0ff); }

.stats-card {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 24px;
    background: rgba(7,17,31,0.72);
    backdrop-filter: blur(14px);
    padding: 22px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    text-align: center;
}

.stat strong { display: block; font-size: 1.4rem; color: #fff; }
.stat span { color: var(--muted); font-size: 0.85rem; }

.section { padding: 54px 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

.card {
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background: var(--card);
    padding: 24px;
    box-shadow: 0 16px 42px rgba(0,0,0,0.16);
}

.card .icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(53,208,255,0.15);
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.article-list { display: grid; gap: 22px; }
.article {
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.07);
    padding: 26px;
}

.notice {
    border-left: 4px solid var(--accent);
    background: rgba(255,224,102,0.10);
    border-radius: 16px;
    padding: 18px;
    margin: 22px 0;
}

.page-hero { padding: 70px 0 28px; }
.content-page { max-width: 900px; }

.footer {
    margin-top: 60px;
    padding: 42px 0;
    background: rgba(0,0,0,0.22);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    justify-content: flex-end;
    color: var(--muted);
    font-weight: 700;
}

input, textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.07);
    color: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    margin-bottom: 14px;
}

textarea { min-height: 140px; resize: vertical; }

@media (max-width: 860px) {
    .hero-grid, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 50px; }
    .hero-card { min-height: 340px; }
    .footer-links { justify-content: flex-start; }
    .menu-btn { display: inline-flex; }
    .nav-links {
        position: absolute;
        top: 76px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 18px;
        background: rgba(7,17,31,0.96);
        border: 1px solid rgba(255,255,255,0.12);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 8px; }
}

@media (max-width: 520px) {
    .stats-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .btn-primary-sec { width: 100%; }
    .block { width: 76px; height: 76px; }
}

.text-link {
    display: inline-flex;
    margin-top: 8px;
    color: #fff;
    font-weight: 900;
}
.text-link:hover { color: var(--accent); }

.inline-link { display: inline; margin-top: 0; color: #fff; }
