/* Базовые стили для работы без JavaScript/Tailwind */

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0D0E16;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #1B1D2B;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .flex {
    display: flex;
    align-items: center;
    gap: 24px;
}

header nav {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

header nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

header nav a:hover {
    color: #9CA3AF;
}

header img {
    height: 32px;
}

header select {
    background-color: #2A2C3A;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

header > div:last-child {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

/* Main container */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 16px;
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 16px;
    background: linear-gradient(to right, #60A5FA, #9333EA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-align: center;
    text-shadow: 0 4px 8px rgba(96, 165, 250, 0.3);
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
    h1 {
        color: #60A5FA;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
}

h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 32px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #60A5FA;
}

/* Акцент на CS2/CSGO в заголовках */
.highlight-cs {
    color: #60A5FA;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(96, 165, 250, 0.4);
}

/* Специальные стили для заголовков с классами */
.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.font-bold {
    font-weight: bold;
}

.font-semibold {
    font-weight: 600;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

.text-center {
    text-align: center;
}

.text-blue-400 {
    color: #60A5FA;
}

.text-purple-400 {
    color: #A855F7;
}

/* Для H1 заголовка */
h1.text-4xl {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 16px;
    background: linear-gradient(to right, #60A5FA, #9333EA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-align: center;
    text-shadow: 0 4px 8px rgba(96, 165, 250, 0.3);
}

/* Адаптивные размеры для H1 */
.md\:text-5xl {
    font-size: 2.25rem;
}

@media (min-width: 768px) {
    .md\:text-5xl {
        font-size: 3rem;
    }
}

/* Для H2 заголовков, чтобы они были крупными */
h2.text-3xl {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 32px;
    text-align: center;
}

p {
    color: #D1D5DB;
    margin-bottom: 16px;
}

/* Sections */
section {
    margin-bottom: 64px;
}

.text-center {
    text-align: center;
}

/* Hero section */
.hero-section {
    text-align: center;
    margin-bottom: 48px;
}

.hero-section p {
    font-size: 1.25rem;
    color: #D1D5DB;
    margin-bottom: 32px;
}

/* Buttons */
a.button, .button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.button-primary {
    background: linear-gradient(to right, #3B82F6, #9333EA);
    color: white;
}

.button-primary:hover {
    background: linear-gradient(to right, #2563EB, #7C3AED);
    transform: scale(1.05);
}

.button-secondary {
    background-color: #374151;
    color: white;
}

.button-secondary:hover {
    background-color: #4B5563;
}

.button-success {
    background: linear-gradient(to right, #10B981, #3B82F6);
    color: white;
}

.button-success:hover {
    background: linear-gradient(to right, #059669, #2563EB);
    transform: scale(1.05);
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 24px;
}

.grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Cards */
.card {
    background-color: #1B1D2B;
    padding: 24px;
    border-radius: 8px;
}

.card-blue {
    border-left: 4px solid #3B82F6;
}

.card-green {
    border-left: 4px solid #10B981;
}

.card-red {
    border-left: 4px solid #EF4444;
}

.card-purple {
    border-left: 4px solid #9333EA;
}

/* Tables */
table {
    width: 100%;
    background-color: #0D0E16;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 16px;
}

thead {
    background-color: #2A2C3A;
}

th, td {
    padding: 12px 16px;
    text-align: left;
}

th {
    font-weight: 600;
}

tr {
    border-top: 1px solid #374151;
}

/* Color indicators */
.color-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

.color-red { background-color: #EF4444; }
.color-black { background-color: #1F2937; }
.color-green { background-color: #10B981; }
.color-blue { background-color: #3B82F6; }
.color-yellow { background-color: #EAB308; }
.color-white { background-color: white; }

/* Коэффициенты */
.coefficient {
    color: #FDE047;
    font-weight: bold;
}

/* Детали/аккордеон FAQ */
details {
    background-color: #1B1D2B;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    cursor: pointer;
}

summary {
    font-weight: 600;
    font-size: 1.125rem;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '▶ ';
    display: inline-block;
    transition: transform 0.3s;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details p {
    margin-top: 16px;
    color: #9CA3AF;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 64px 32px;
    background: linear-gradient(to right, rgba(30, 58, 138, 0.2), rgba(88, 28, 135, 0.2));
    border-radius: 16px;
}

/* Footer */
footer {
    background-color: #1B1D2B;
    margin-top: 64px;
    padding: 32px 0;
}

footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
    color: #9CA3AF;
}

footer p {
    margin-bottom: 16px;
    color: #9CA3AF;
}

/* Link styles */
a {
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: underline;
}

.text-blue-400 {
    color: #60A5FA;
}

.text-blue-300 {
    color: #93C5FD;
}

/* Utility classes */
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-16 { margin-bottom: 64px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: bold; }
.font-semibold { font-weight: 600; }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.space-x-4 > * + * { margin-left: 16px; }
.space-x-6 > * + * { margin-left: 24px; }

/* Icons/emoji sizing */
.icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.875rem;
}

.icon-blue { background: linear-gradient(to right, #3B82F6, #9333EA); }
.icon-green { background: linear-gradient(to right, #10B981, #3B82F6); }
.icon-purple { background: linear-gradient(to right, #9333EA, #EC4899); }
.icon-yellow { background: linear-gradient(to right, #EAB308, #EF4444); }
.icon-indigo { background: linear-gradient(to right, #6366F1, #3B82F6); }
.icon-pink { background: linear-gradient(to right, #EC4899, #9333EA); }

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    header nav {
        display: none;
    }
    
    header > div:last-child {
        margin-top: 16px;
        width: 100%;
        justify-content: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .flex-row {
        flex-direction: column;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 8px;
    }
}

/* Hide nav on mobile, show on desktop */
@media (min-width: 768px) {
    header nav.hidden {
        display: flex !important;
    }
    
    .md\:flex-row {
        flex-direction: row;
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Inline-block для кнопок в контейнере */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.button-container a {
    text-decoration: none;
}