
/* =========================================
   1. Reset & Variables (Custom Properties)
   ========================================= */
:root {
    /* Цветовая палитра (Dark Theme - Modern & Premium) */
    --color-bg-main: #0f172a;        /* Глубокий темный фон */
    --color-bg-secondary: #1e293b;   /* Фон карточек/секций */
    --color-bg-highlight: #334155;   /* Фон при наведении */
    
    --color-text-primary: #f8fafc;   /* Основной текст */
    --color-text-secondary: #94a3b8; /* Вторичный текст */
    --color-accent: #34d399;         /* Яркий мятный акцент */
    --color-accent-hover: #10b981;   /* Темнее при ховере */
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #34d399 0%, #3b82f6 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(52, 211, 153, 0.15) 0%, transparent 70%);

    /* Типографика */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --line-height-base: 1.6;
    
    /* Размеры и отступы */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    
    /* Тени */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 20px rgba(52, 211, 153, 0.4);
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   2. Typography
   ========================================= */
h1, h2, h3 {
    color: var(--color-text-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-top: var(--spacing-lg);
    border-left: 4px solid var(--color-accent);
    padding-left: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
    font-size: 1.125rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* =========================================
   3. Layout & Structure
   ========================================= */
section {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-sm);
}

/* =========================================
   4. Header & Navigation
   ========================================= */
header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: var(--spacing-sm) 0;
}

header ul {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    list-style: none;
    flex-wrap: wrap;
    max-width: var(--container-width);
    margin: 0 auto;
}

header li a {
    color: var(--color-text-primary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

header li a:hover,
header li a:focus {
    background-color: rgba(52, 211, 153, 0.1);
    color: var(--color-accent);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.2);
}

/* =========================================
   5. Intro Section (Hero)
   ========================================= */
.intro {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-sm);
    background-image: var(--gradient-glow);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

.intro p {
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    font-size: 1.25rem;
}

/* CTA Button Styling */
.intro a[href="/go/"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: 2px solid transparent;
}

.intro a[href="/go/"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(52, 211, 153, 0.6);
    -webkit-text-fill-color: initial; /* Override text-fill from global links if any */
}

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

/* =========================================
   6. Content Section
   ========================================= */
.content {
    background-color: transparent;
}

/* Отзывы (Reviews List) */
.content ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    list-style: none;
    margin-top: var(--spacing-md);
}

.content ul li {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
}

.content ul li::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: rgba(255,255,255,0.03);
    font-family: serif;
    line-height: 1;
}

.content ul li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: var(--color-bg-highlight);
    border-color: rgba(52, 211, 153, 0.3);
}

/* Изображения внутри контента (если есть) */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: var(--spacing-sm) 0;
}

/* =========================================
   7. Forms (Generic Styles)
   ========================================= */
/* Even though explicit forms aren't in the HTML, these are required by the prompt */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    background-color: var(--color-bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

button, input[type="submit"] {
    cursor: pointer;
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: filter var(--transition-fast);
}

button:hover {
    filter: brightness(1.1);
}

/* =========================================
   8. Footer
   ========================================= */
footer {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-md) 0;
    margin-top: auto; /* Pushes footer to bottom */
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer ul {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    list-style: none;
    flex-wrap: wrap;
    padding: 0 var(--spacing-sm);
}

footer li a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    text-transform: capitalize;
}

footer li a:hover {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =========================================
   9. Animations
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   10. Responsiveness (Media Queries)
   ========================================= */
@media screen and (max-width: 768px) {
    /* Header adjustments */
    header {
        padding: 0.5rem 0;
    }
    
    header ul {
        gap: 0.5rem;
    }
    
    header li a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    /* Intro adjustments */
    .intro {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    /* Typography adjustments */
    h2 {
        font-size: 1.5rem;
        margin-top: var(--spacing-md);
        padding-left: 0.5rem;
        border-left-width: 3px;
    }
    
    p {
        font-size: 1rem;
        text-align: left;
    }
    
    /* Content adjustments */
    .content ul {
        grid-template-columns: 1fr; /* Single column for reviews */
    }
    
    /* CTA Button mobile */
    .intro a[href="/go/"] {
        width: 100%;
        max-width: 300px;
        padding: 0.8rem 1rem;
        font-size: 1.1rem;
    }
    
    /* Footer adjustments */
    footer ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}
