
/* CSS Reset & Normalize */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

:root {
    /* Цветовая палитра (Dark Mode / Casino Vibes) */
    --color-bg-body: #0f172a;
    --color-bg-card: #1e293b;
    --color-bg-header: rgba(15, 23, 42, 0.85);
    
    --color-primary: #6366f1;
    --color-primary-dark: #4338ca;
    --color-accent: #ec4899;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: #334155;

    /* Типографика */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fs-h1: clamp(2rem, 5vw, 3.5rem);
    --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
    --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
    --fs-body: 1rem;

    /* Отступы и Размеры */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    
    /* Тени и Эффекты */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.4);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: var(--fs-body);
    overflow-x: hidden;
}

/* Ссылки (Общие) */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
    font-weight: 500;
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип (пустой span в HTML) */
header span {
    display: block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    position: relative;
    box-shadow: var(--shadow-glow);
}

header span::after {
    content: 'UX';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 800;
    font-size: 0.8rem;
}

header ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

header ul li a {
    color: var(--color-text-main);
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
}

header ul li a:hover,
header ul li a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* Intro Section */
.intro {
    text-align: center;
    padding: 6rem 1rem;
    background: radial-gradient(circle at center, #1e1b4b 0%, var(--color-bg-body) 70%);
    animation: fadeIn 1s ease-out;
}

.intro h1 {
    font-size: var(--fs-h1);
    background: linear-gradient(to right, #fff, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.intro p {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* CTA Кнопка в Intro */
.intro a[href="/go/"] {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.5);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.intro a[href="/go/"]:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.6);
}

.intro a[href="/go/"]:active {
    transform: translateY(-1px);
}

/* Основной контент */
.content, section:not(.intro) {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem var(--spacing-lg);
}

h2 {
    font-size: var(--fs-h2);
    color: var(--color-text-main);
    margin: var(--spacing-lg) 0 var(--spacing-md);
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--color-accent);
}

h3 {
    font-size: var(--fs-h3);
    color: var(--color-text-main);
    margin: 2.5rem 0 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    text-align: justify;
}

/* Списки */
ul:not(header ul):not(footer ul) {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

ul:not(header ul):not(footer ul) li {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    position: relative;
    list-style: none;
}

ul:not(header ul):not(footer ul) li::before {
    content: "•";
    color: var(--color-accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

thead {
    background-color: rgba(99, 102, 241, 0.1);
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

td {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Специфические стили для таблицы преимуществ */
.advantages-disadvantages th:first-child {
    color: var(--color-success);
}
.advantages-disadvantages th:last-child {
    color: var(--color-accent); /* Redish pink for disadvantage */
}

/* Footer */
footer {
    background-color: var(--color-bg-card);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-lg);
}

footer ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
}

footer a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styling Helpers (если появятся формы) */
input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-main);
    font-family: inherit;
    transition: var(--transition-base);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    header ul {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    header ul li a {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .intro {
        padding: 3rem 1rem;
    }

    /* Адаптивность таблиц */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        padding: 0.75rem 1rem;
    }

    footer ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}
