/* ------------------- */
/* -- 1. ПЕРЕМЕННЫЕ И ГЛОБАЛЬНЫЕ СТИЛИ -- */
/* ------------------- */
:root {
    /* Цвета */
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --yellow-400: #facc15;
    
    /* УЛУЧШЕННАЯ Светлая тема */
    --bg-light: #f5f5f7; /* Мягкий серый фон */
    --surface-light: #ffffff; /* Чистые белые карточки */
    --text-light: #171717;
    --text-secondary-light: #525252;
    --border-light: rgba(0, 0, 0, 0.08); /* Чуть мягче */

    /* Темная тема */
    --bg-dark: #0A0A0A;
    --surface-dark: #171717;
    --text-dark: #f5f5f5;
    --text-secondary-dark: #a3a3a3;
    --border-dark: rgba(255, 255, 255, 0.1);
    
    /* Типографика */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    
    /* Переходы */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Применение переменных в зависимости от темы */
html[data-theme='light'] {
    --bg-color: var(--bg-light);
    --surface-color: var(--surface-light);
    --text-color: var(--text-light);
    --text-secondary-color: var(--text-secondary-light);
    --border-color: var(--border-light);
}

html[data-theme='dark'] {
    --bg-color: var(--bg-dark);
    --surface-color: var(--surface-dark);
    --text-color: var(--text-dark);
    --text-secondary-color: var(--text-secondary-dark);
    --border-color: var(--border-dark);
}

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

::selection {
    background-color: var(--orange-500);
    color: white;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-medium), color var(--transition-medium);
    overflow-x: hidden;
}

/* Стилизация скроллбара */
body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-track {
    background: var(--surface-color);
}
body::-webkit-scrollbar-thumb {
    background-color: var(--orange-500);
    border-radius: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--yellow-400), var(--orange-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* ------------------- */
/* -- 2. ФОНОВЫЕ ЭФФЕКТЫ -- */
/* ------------------- */
.blurry-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.blurry-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}
.blob1 {
    width: 400px;
    height: 400px;
    background: var(--orange-600);
    top: 10%;
    left: 10%;
    animation: moveBlob1 20s infinite alternate;
}
.blob2 {
    width: 300px;
    height: 300px;
    background: var(--yellow-400);
    bottom: 5%;
    right: 15%;
    animation: moveBlob2 25s infinite alternate;
}

@keyframes moveBlob1 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 200px) scale(1.2); }
}
@keyframes moveBlob2 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-150px, -100px) scale(0.8); }
}


/* ------------------- */
/* -- 3. ШАПКА (HEADER) И АНИМАЦИЯ ЛОГО -- */
/* ------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 0;
    z-index: 1000;
    transition: background-color var(--transition-medium);
    border-bottom: 1px solid transparent;
}
.main-header.scrolled {
    background-color: rgba(23, 23, 23, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
html[data-theme='light'] .main-header.scrolled {
    background-color: rgba(245, 245, 247, 0.6);
}

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

.header-logo-container {
    opacity: 0;
    transition: opacity var(--transition-medium);
}
.main-header.logo-in-header .header-logo-container {
    opacity: 1;
}
.logo-img {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.header-logo-container .logo-img:hover {
    transform: rotate(360deg);
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links-wrapper {
    background-color: rgba(41, 41, 41, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.25rem 0.5rem;
    transition: background-color var(--transition-medium), border-color var(--transition-medium);
}
html[data-theme='light'] .nav-links-wrapper {
    background-color: rgba(255, 255, 255, 0.5);
}

.nav-links-wrapper ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links-wrapper ul li a {
    text-decoration: none;
    color: #E5E5E5;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 50px;
}
.nav-links-wrapper ul li a svg {
    width: 20px;
    height: 20px;
}
html[data-theme='light'] .nav-links-wrapper ul li a {
    color: var(--text-light);
    text-shadow: none;
}

.nav-links-wrapper ul li a:not(.btn-nav-cta):hover,
.nav-links-wrapper ul .dropdown:hover > a {
    transform: translateY(-2px);
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}
html[data-theme='light'] .nav-links-wrapper ul li a:not(.btn-nav-cta):hover,
html[data-theme='light'] .nav-links-wrapper ul .dropdown:hover > a {
    color: var(--orange-500);
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-nav-cta {
    background-color: var(--orange-500);
    color: white !important;
    text-shadow: none;
}
.btn-nav-cta:hover {
    background-color: var(--orange-600) !important;
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: -1rem;
}

.dropdown-menu {
    position: absolute;
    top: 90%; 
    left: 50%;
    transform: translateX(-50%); 
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 320px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-menu li a {
    display: flex;
    flex-direction: row; 
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color var(--transition-fast);
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

html[data-theme='light'] .dropdown-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-icon {
    color: var(--orange-500);
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-item-content h3 {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.dropdown-item-content p {
    color: var(--text-secondary-color);
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: normal;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}
.theme-switch-wrapper input {
    display: none;
}
.theme-switch {
    width: 52px;
    height: 28px;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: background-color var(--transition-medium);
}
html[data-theme='light'] .theme-switch {
    background-color: var(--surface-light);
    border: 1px solid var(--border-light);
}
.theme-switch::after {
    content: '🌙';
    font-size: 14px;
    color: white;
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--orange-500);
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-switch-wrapper input:checked + .theme-switch::after {
    content: '☀️';
    transform: translateX(24px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #E5E5E5;
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 1001;
}
html[data-theme='light'] .mobile-menu-toggle {
    color: var(--text-light);
}

/* ------------------- */
/* -- 4. СЕКЦИЯ ГЕРОЯ (HERO) -- */
/* ------------------- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
    overflow: hidden;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
    transition: background-color var(--transition-medium);
}
html[data-theme='light'] #hero::before {
    background: rgba(245, 245, 247, 0.6); 
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 5vh;
}

#hero-logo-container {
    margin-bottom: 2.5rem;
    opacity: 1;
    transition: opacity var(--transition-medium);
}
#hero-logo-container img {
    max-width: 400px;
    width: 80vw;
    height: auto;
}
.main-header.logo-in-header #hero-logo-container {
    opacity: 0;
    pointer-events: none;
}

.typing-text {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    color: var(--text-dark);
    height: 40px;
    margin-bottom: 2rem;
    transition: color var(--transition-medium);
}
html[data-theme='light'] .typing-text {
    color: var(--text-light);
}
#typing-span {
    border-right: 2px solid var(--orange-500);
    animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--orange-500); }
}

.cta-buttons {
    display: flex;
    justify-content: center;
}
.btn {
    padding: 0.8rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background-color: var(--orange-500);
    color: white;
    box-shadow: 0 0 15px 0 rgba(249, 115, 22, 0);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(249, 115, 22, 0.6), 0 0 25px 5px rgba(249, 115, 22, 0.4);
}

/* ------------------- */
/* -- 5. СЕКЦИЯ "ПОЧЕМУ МЫ?" -- */
/* ------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    perspective: 1500px;
}
.feature-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform var(--transition-slow);
}
.feature-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.feature-card-inner {
    background: rgba(23, 23, 23, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    height: 100%;
}
html[data-theme='light'] .feature-card-inner {
    background: rgba(255, 255, 255, 0.5);
}
.feature-icon {
    color: var(--orange-500);
    margin-bottom: 1rem;
    transform: translateZ(40px);
}
.feature-icon svg {
    width: 48px;
    height: 48px;
}
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transform: translateZ(20px);
}
.feature-card p {
    color: var(--text-secondary-color);
    line-height: 1.6;
}

/* ------------------- */
/* -- 6. СЕКЦИЯ РАЗРАБОТЧИКОВ -- */
/* ------------------- */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    perspective: 1000px;
    justify-content: center;
}

.dev-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.dev-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.dev-card-inner {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-slow);
    height: 100%;
}

.dev-head-link {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.dev-head {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background-size: cover;
    image-rendering: pixelated;
    transform: translateZ(40px);
    transition: filter var(--transition-medium);
    filter: drop-shadow(0px 8px 8px rgba(0, 0, 0, 0.2));
}
.dev-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}
.dev-card p {
    color: var(--text-secondary-color);
    margin-bottom: 1.5rem;
    min-height: 40px;
}
.dev-links a {
    color: var(--text-secondary-color);
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}
.dev-links a:hover {
    color: var(--orange-500);
    transform: scale(1.2);
}

/* ------------------- */
/* -- 7. СЕКЦИЯ ССЫЛОК -- */
/* ------------------- */
.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    perspective: 1500px;
}
.link-block {
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transform-style: preserve-3d;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.link-block:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.link-block-icon {
    margin-bottom: 1rem;
    color: var(--orange-500);
    transform: translateZ(40px);
}
.link-block-icon svg {
    width: 40px;
    height: 40px;
}
.link-block-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateZ(20px);
}
.link-block-content p {
    color: var(--text-secondary-color);
    line-height: 1.5;
}

@keyframes icon-bounce {
  0%, 100% {
    transform: translateY(0) translateZ(40px);
  }
  50% {
    transform: translateY(-8px) translateZ(40px);
  }
}

.anim-icon:hover {
    animation: icon-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ------------------- */
/* -- 8. СЕКЦИЯ FAQ -- */
/* ------------------- */
#faq {
    padding-bottom: 0;
}
#faq .container {
    max-width: 800px;
}
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
}
.faq-arrow {
    color: var(--text-secondary-color);
    transition: transform var(--transition-medium);
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
}


/* ------------------- */
/* -- 8.5 СТРАНИЦА 404 -- */
/* ------------------- */
.error-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    width: 100%;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.error-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.error-title {
    font-size: clamp(8rem, 25vw, 15rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0;
    background: linear-gradient(45deg, var(--yellow-400), var(--orange-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.error-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: -2rem;
}
.error-text {
    font-size: 1rem;
    color: var(--text-secondary-color);
    max-width: 400px;
    margin-bottom: 1.5rem;
}


/* ------------------- */
/* -- 9. СЕКЦИЯ CTA (Призыв к действию) -- */
/* ------------------- */
#cta-final {
    padding: 6rem 0; /* ИСПРАВЛЕНИЕ: Возвращаем отступ */
}
.cta-card {
    background-color: var(--surface-color);
    padding: 6rem 2rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}
.cta-content {
    position: relative;
    z-index: 2;
}
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: conic-gradient(from var(--angle, 0deg), var(--border-dark), var(--orange-500), var(--border-dark));
    animation: spin 5s linear infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin {
  to {
    --angle: 360deg;
  }
}
.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}
.cta-btn {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.cta-particles span {
    position: absolute;
    bottom: -20px;
    background-color: var(--orange-500);
    border-radius: 50%;
    opacity: 0;
    animation: float-up 10s linear infinite;
    filter: blur(2px);
}
@keyframes float-up {
    0% { transform: translateY(0); opacity: 0; }
    10%, 90% { opacity: 0.3; }
    100% { transform: translateY(-120vh); opacity: 0; }
}
.cta-particles span:nth-child(1) { left: 10%; width: 8px; height: 8px; animation-delay: 1s; }
.cta-particles span:nth-child(2) { left: 25%; width: 4px; height: 4px; animation-delay: 3s; animation-duration: 12s; }
.cta-particles span:nth-child(3) { left: 40%; width: 10px; height: 10px; animation-delay: 0s; animation-duration: 8s; }
.cta-particles span:nth-child(4) { left: 60%; width: 6px; height: 6px; animation-delay: 5s; }
.cta-particles span:nth-child(5) { left: 75%; width: 5px; height: 5px; animation-delay: 8s; animation-duration: 15s; }
.cta-particles span:nth-child(6) { left: 90%; width: 12px; height: 12px; animation-delay: 4s; }


/* --- НОВОЕ: Стили для модального окна игры --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}
.modal-overlay.hidden {
    display: none;
}
.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-medium);
}
.modal-overlay.visible .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary-color);
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.modal-close:hover {
    color: var(--text-color);
    transform: scale(1.1);
}
.modal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.modal-content p {
    color: var(--text-secondary-color);
    margin-bottom: 1.5rem;
}

/* Стили для игры */
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}
/* --- НОВОЕ: Стиль для блокировки поля --- */
.board.locked {
    pointer-events: none;
    opacity: 0.8;
}

.cell {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
.cell:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
html[data-theme='light'] .cell:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.cell.x {
    color: var(--orange-500);
}
.cell.o {
    color: var(--text-secondary-color);
}

/* ------------------- */
/* -- 11. ФУТЕР (FOOTER) -- */
/* ------------------- */
.main-footer {
    background-color: var(--surface-color);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-left {
    text-align: left;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-logo-img {
    height: 48px;
    width: auto;
    cursor: pointer; /* Намекаем на интерактивность для пасхалки */
}
.footer-brand-text {
    display: flex;
    flex-direction: column;
}
.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--yellow-400), var(--orange-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.copyright-text {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
}
.footer-right {
    text-align: right;
    max-width: 450px;
}
.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.footer-socials a {
    color: var(--text-secondary-color);
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.footer-socials a:hover {
    color: var(--orange-500);
    transform: translateY(-3px);
}
.footer-socials svg {
    width: 24px;
    height: 24px;
}
.footer-disclaimer {
    font-size: 0.8rem;
    color: #737373;
    line-height: 1.6;
}

/* ------------------- */
/* -- 12. АДАПТИВНОСТЬ (RESPONSIVENESS) -- */
/* ------------------- */
@media (max-width: 1024px) {
    .features-grid, .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    section {
        padding: 4rem 0;
    }
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .features-grid, .links-grid, .dev-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-left, .footer-right {
        text-align: center;
    }
    .footer-brand {
        justify-content: center;
    }
    .footer-socials {
        justify-content: center;
    }
}
