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

:root {
    --bg-primary: #0A0C0F;
    --bg-card: #14181C;
    --accent-blue: #4A9EFF;
    --accent-cyan: #2CC0D0;
    --accent-red: #FF6B6B;
    --accent-ochre: #D4A574;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B8C0;
    --text-muted: #6B7280;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 12, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-blue);
    letter-spacing: 2px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-text {
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
}

.nav-link:focus-visible,
.btn-play:focus-visible,
.base-link:focus-visible,
.footer-link:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

.btn-play {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.6);
}

/* —— Hero: сначала бренд (ZETA COLLECTIVE), потом сервер (ESCAPE FROM GMOD) —— */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 80px;
    padding-bottom: 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 158, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 158, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 25s linear infinite;
    opacity: 0.8;
}

.hero-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 45%, transparent 0%, var(--bg-primary) 65%);
    pointer-events: none;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 900px;
}

/* Верхняя подпись — контекст */
.hero-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* 1. Главное: кто мы — ZETA COLLECTIVE */
.hero-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(74, 158, 255, 0.25);
}

.hero-brand .zeta-accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Связка: наш сервер */
.hero-sub {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 1.25rem 0;
}

/* 2. Наш проект — ESCAPE FROM GMOD */
.hero-project {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.75rem 0;
    animation: heroProjectGlow 3s ease-in-out infinite alternate;
}

@keyframes heroProjectGlow {
    from { filter: drop-shadow(0 0 12px rgba(74, 158, 255, 0.4)); }
    to { filter: drop-shadow(0 0 24px rgba(44, 192, 208, 0.5)); }
}

/* Слоган */
.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    font-weight: 400;
    margin: 0 0 2.5rem 0;
}

/* Кнопки */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-hero {
    display: inline-block;
    padding: 0.95rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: var(--text-primary);
    border: none;
    box-shadow: 0 4px 24px rgba(74, 158, 255, 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(74, 158, 255, 0.5);
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid rgba(74, 158, 255, 0.5);
    color: var(--accent-blue);
}

.btn-hero-outline:hover {
    border-color: var(--accent-blue);
    background: rgba(74, 158, 255, 0.08);
    transform: translateY(-2px);
}

.btn-hero:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.base-section {
    padding: 5rem 0;
    background: var(--bg-card);
    position: relative;
}

.base-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(74, 158, 255, 0.03) 2px,
            rgba(74, 158, 255, 0.03) 4px
        );
    pointer-events: none;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 1rem auto;
    line-height: 1.65;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    color: var(--accent-blue);
    position: relative;
    z-index: 1;
}

.base-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.base-card {
    background: var(--bg-primary);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.base-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.base-card:hover::before {
    left: 100%;
}

.base-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.2);
}

.base-icon {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.base-card:hover .base-icon {
    transform: scale(1.1);
}

.base-card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.base-link {
    display: inline-block;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.base-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.base-link:hover {
    color: var(--accent-cyan);
}

.base-link:hover::after {
    transform: translateX(5px);
}

.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(74, 158, 255, 0.1);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-blue);
}

.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    max-width: 320px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: opacity 0.3s, transform 0.3s;
}
.toast--success {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}
.toast--error {
    background: var(--accent-red);
    color: var(--text-primary);
}
.toast--info {
    background: var(--bg-card);
    border: 1px solid var(--accent-blue);
    color: var(--text-primary);
}
.toast--hide {
    opacity: 0;
    transform: translateX(1rem);
}

.blog-image {
    height: auto;
    border-radius: 8px;
    margin: 1rem auto;
    display: block;
}
.blog-image.size-small { max-width: 300px; }
.blog-image.size-medium { max-width: 600px; }
.blog-image.size-large { max-width: 900px; }

.loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 4px solid rgba(74, 158, 255, 0.25);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 1px;
    animation: loading-pulse 1.2s ease-in-out infinite;
}
@keyframes loading-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.blog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.btn-retry {
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.btn-retry:hover {
    background: var(--accent-blue);
    color: var(--text-primary);
}

.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: var(--bg-card);
    position: relative;
    margin-top: 70px;
}

.page-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.page-content {
    padding: 4rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.content-card h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.content-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin: 2rem 0 1rem;
    letter-spacing: 1px;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-card ul {
    list-style: none;
    padding-left: 0;
}

.content-card li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.content-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

.server-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-item {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid rgba(74, 158, 255, 0.1);
}

.info-item strong {
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

.info-item span {
    color: var(--text-secondary);
}

.archive-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.archive-item {
    background: var(--bg-card);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.archive-item:hover {
    border-color: var(--accent-blue);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.2);
}

.archive-year {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.archive-name {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.archive-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.2);
}

.team-role {
    font-family: 'Rajdhani', sans-serif;
    color: var(--accent-blue);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.team-name {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.play-instructions {
    background: var(--bg-card);
    border: 2px solid var(--accent-blue);
    border-radius: 8px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.2);
}

.play-instructions h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 2px;
}

.instruction-step {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent-blue);
}

.instruction-step h3 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.instruction-step p {
    color: var(--text-secondary);
    margin: 0;
}

.code-block {
    background: var(--bg-primary);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 4px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-blue);
    margin: 1rem 0;
    max-width: 100%;
    overflow-x: auto;
    word-break: break-all;
    -webkit-overflow-scrolling: touch;
}

.blog-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.blog-post {
    background: var(--bg-card);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-post:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.2);
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post img {
    max-width: 100%;
    width: 300px;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
    display: block;
    object-fit: cover;
}

.blog-excerpt img {
    max-width: 100%;
    width: 300px;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
    display: block;
    object-fit: cover;
}

.blog-read-more {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-read-more:hover {
    color: var(--accent-cyan);
}

.blog-full {
    background: var(--bg-card);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    padding: 3rem;
    margin-top: 2rem;
}

.blog-full-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.blog-full-content p {
    margin-bottom: 1.5rem;
}

.blog-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.1);
    display: block;
}

.blog-full-content code {
    background: var(--bg-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--accent-cyan);
}

.blog-full-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-full-content em {
    color: var(--text-secondary);
    font-style: italic;
}

.admin-panel {
    background: var(--bg-card);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    padding: 2.5rem;
    margin: 2rem 0;
}
.admin-panel > h2 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--accent-blue);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--accent-blue);
    font-weight: 500;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background: var(--bg-primary);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 4px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.2);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

#preview-area img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

#preview-area img:hover {
    transform: scale(1.02);
}

#preview-area p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

#preview-area code {
    background: var(--bg-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--accent-cyan);
}

#preview-area strong {
    color: var(--text-primary);
    font-weight: 600;
}

#preview-area em {
    color: var(--text-secondary);
    font-style: italic;
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: var(--text-primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
}

.btn-delete {
    background: var(--accent-red);
    color: var(--text-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-delete:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}
.editor-toolbar-btn {
    background: transparent;
    border: 1px solid rgba(74, 158, 255, 0.4);
    color: var(--accent-blue);
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}
.editor-toolbar-btn:hover {
    background: rgba(74, 158, 255, 0.15);
    border-color: var(--accent-blue);
}
.editor-toolbar-btn--bold { font-weight: 700; }
.editor-toolbar-btn--italic { font-style: italic; }
.editor-toolbar-btn--code { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
.editor-toolbar-divider {
    width: 1px;
    height: 1.5rem;
    background: rgba(74, 158, 255, 0.3);
    margin: 0 0.25rem;
}
.editor-toolbar-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.editor-toolbar select {
    background: var(--bg-card);
    border: 1px solid rgba(74, 158, 255, 0.3);
    color: var(--text-primary);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}
.editor-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    min-height: 420px;
}
.editor-col {
    display: flex;
    flex-direction: column;
}
.editor-col label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-family: 'JetBrains Mono', monospace;
}
.editor-textarea {
    flex: 1;
    min-height: 380px;
    width: 100%;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    tab-size: 2;
    resize: vertical;
    background: var(--bg-primary);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    transition: border-color 0.2s;
}
.editor-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}
.editor-preview {
    flex: 1;
    min-height: 380px;
    max-height: 420px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    line-height: 1.75;
}
.editor-hint {
    margin-top: 1rem;
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-primary);
}
.editor-hint-toggle {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.editor-hint-toggle:hover { color: var(--accent-blue); }
.editor-hint-body {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
    border-top: 1px solid rgba(74, 158, 255, 0.1);
}
.editor-hint-body p { margin: 0 0 0.5rem 0; }
.editor-hint-body p:last-child { margin-bottom: 0; }
.editor-hint-body code {
    background: rgba(74, 158, 255, 0.12);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.8rem;
}
@media (max-width: 900px) {
    .editor-body { grid-template-columns: 1fr; }
    .editor-preview { max-height: 320px; }
}

/* Кнопка «Наверх» */
.btn-back-to-top {
    position: fixed;
    bottom: 4rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    font-size: 1.25rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
    transition: all 0.3s ease;
}
.btn-back-to-top:hover {
    background: var(--accent-blue);
    color: var(--text-primary);
    transform: translateY(-3px);
}
.btn-back-to-top.visible {
    display: flex;
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    .btn-play {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }

    .hero-brand {
        letter-spacing: 0.12em;
    }

    .hero-sub {
        font-size: 0.95rem;
        letter-spacing: 0.12em;
    }

    .hero-project {
        letter-spacing: 0.12em;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-hero {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .section-intro {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .base-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .base-card {
        padding: 1.75rem 1.25rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .team-card {
        padding: 1.5rem 1.25rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-content {
        padding: 2rem 0;
    }

    .page-content .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .content-card {
        padding: 1.5rem 1rem;
    }

    .blog-post {
        padding: 1.25rem 1rem;
    }

    .blog-title {
        font-size: 1.25rem;
    }

    .blog-full,
    .blog-full-content {
        padding: 1.5rem 1rem;
    }

    .btn-back-to-top {
        right: 1rem;
        bottom: 3.5rem;
        width: 44px;
        height: 44px;
    }
}

/* --- Стили для страницы "Как играть" (в стиле сайта) --- */
.dev-notice {
    background: var(--bg-card);
    border: 2px solid rgba(74, 158, 255, 0.3); /* Прозрачная граница как у карточек */
    border-radius: 8px; /* Как у всех карточек */
    padding: 4rem 2rem;
    margin: 2rem auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Как у карточек на главной */
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

/* Эффект сканирующей линии при наведении, как у карточек на главной */
.dev-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.dev-notice:hover::before {
    left: 100%;
}

/* Иконка Discord — в стиле hero-элементов */
.discord-icon {
    color: var(--accent-blue);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    animation: discordPulse 3s ease-in-out infinite alternate; /* Плавное пульсирование как у .hero-project */
}

@keyframes discordPulse {
    0% {
        opacity: 0.9;
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(74, 158, 255, 0.3));
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(44, 192, 208, 0.5)); /* Цвет cyan как в анимации hero */
    }
}

.discord-icon svg {
    width: 80px;
    height: 80px;
    stroke: var(--accent-blue); /* Акцентный цвет для обводки */
    fill: var(--accent-blue); /* Заливка для внутренних элементов */
}

/* Текст сообщения — как hero-tagline */
.dev-message {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}

.dev-message br {
    display: none;
}

@media (max-width: 600px) {
    .dev-message {
        font-size: 1.2rem;
    }
    .dev-message br {
        display: block; /* Перенос строки на мобильных */
    }
}

/* Кнопка Discord — стилизована под .btn-hero-primary */
.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); /* Градиент как у главной кнопки */
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 6px; /* Как у всех кнопок */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase; /* Заглавные как у .btn-hero */
    border: none;
    box-shadow: 0 4px 24px rgba(74, 158, 255, 0.35); /* Как у .btn-hero-primary */
    transition: all 0.25s ease;
    position: relative;
    z-index: 2;
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(74, 158, 255, 0.6); /* Как у .btn-hero-primary:hover */
}

.btn-discord:active {
    transform: translateY(-1px);
}

.btn-discord svg {
    width: 22px;
    height: 22px;
    stroke: currentColor; /* Цвет текста кнопки */
    fill: currentColor;
}

/* Дополнительно: анимация появления блока (опционально) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dev-notice {
    animation: fadeInUp 0.6s ease-out;
}
