
/* =========================================
   1. Reset & Variables (Modern Setup)
   ========================================= */
:root {
    /* Цветовая палитра (Brand: 1win Blue & Dark Theme) */
    --color-primary: #2289e4;
    --color-primary-dark: #1a6fb0;
    --color-accent: #00d4ff;
    --color-bg-body: #0b1118;
    --color-bg-card: #16202c;
    --color-bg-input: #1f2b38;
    
    --color-text-main: #ffffff;
    --color-text-muted: #94a3b8;
    --color-border: #2d3b4e;

    /* Типографика & Размеры */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    /* Clamp для адаптивных заголовков */
    --font-size-h1: clamp(2rem, 5vw, 3.5rem);
    --font-size-h2: clamp(1.5rem, 3vw, 2.5rem);

    /* Отступы */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 75rem; /* 1200px */

    /* Эффекты */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(34, 137, 228, 0.4);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* CSS Reset / Normalize */
*, *::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-body);
    color: var(--color-text-main);
    line-height: var(--line-height-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* =========================================
   2. Layout & Grid Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.row-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.col-xs-12 {
    width: 100%;
    flex: 0 0 100%;
}

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

.pa-0 {
    padding: 0 !important;
}

.table {
    display: table;
    width: 100%;
    height: 100%;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) 0;
}

/* =========================================
   3. Header & Hero Section
   ========================================= */
.bg-bk {
    background: radial-gradient(circle at top center, #1b2838 0%, var(--color-bg-body) 80%);
    position: relative;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

/* Логотип */
.logo {
    width: 100%;
    max-width: 18rem;
    height: auto;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 0 10px rgba(34, 137, 228, 0.3));
    animation: slideDown 0.8s ease-out;
}

.logo path {
    transition: var(--transition-base);
}

.logo:hover path[fill="#2289e4"] {
    fill: var(--color-accent);
}

/* H1 Заголовок */
h1 {
    font-size: var(--font-size-h1);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #b4c6d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

h1 span {
    color: var(--color-primary);
    -webkit-text-fill-color: var(--color-primary);
    display: block;
    font-size: 1.2em;
    margin-bottom: 0.2em;
    text-shadow: 0 0 20px rgba(34, 137, 228, 0.5);
}

/* =========================================
   4. Promo Card Component
   ========================================= */
.item-promo-kod {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 50rem;
    margin: 0 auto var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.item-promo-kod:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
}

.item-name {
    flex: 1;
    min-width: 12rem;
    text-align: center;
}

.item-title {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.item-title.color {
    color: var(--color-primary);
    font-weight: 700;
}

.item-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.item-copy {
    background: var(--color-bg-input);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--color-primary);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.item-copy:hover {
    background: rgba(34, 137, 228, 0.1);
}

.item-copy p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
}

.promo-text {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-accent);
    letter-spacing: 1px;
}

/* =========================================
   5. Buttons (Interactive)
   ========================================= */
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, var(--color-primary) 0%, #1e7bc9 100%);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    padding: 1rem 3rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 137, 228, 0.4);
    transition: var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1e7bc9 0%, var(--color-primary) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 137, 228, 0.6);
}

.button:hover::before {
    opacity: 1;
}

.button:active {
    transform: translateY(0);
}

/* =========================================
   6. Main Content Styling
   ========================================= */
.content {
    padding: var(--spacing-lg) 0;
    flex: 1;
}

h2 {
    font-size: var(--font-size-h2);
    color: white;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--color-primary);
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Списки */
ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
    display: grid;
    gap: 0.75rem;
}

ul li {
    position: relative;
    padding-left: 2rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Изображения в контенте */
.img {
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--color-bg-card);
}

.img img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.img:hover img {
    transform: scale(1.02);
}

/* Lazyload placeholder style (optional) */
.lazyload {
    background-color: var(--color-bg-card);
    min-height: 200px;
}

/* =========================================
   7. Footer
   ========================================= */
footer {
    background-color: #05080c;
    padding: var(--spacing-md) 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-size: 0.875rem;
    color: #4b5563;
    text-align: center;
    margin: 0;
    max-width: 50rem;
}

/* =========================================
   8. Animations
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   9. Responsive Media Queries
   ========================================= */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 2.5rem;
        --spacing-md: 1.5rem;
    }

    .item-promo-kod {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .item-name, .item-copy {
        width: 100%;
    }
    
    .button {
        width: 100%;
        max-width: 20rem;
        padding: 0.875rem 2rem;
    }
    
    h1 span {
        font-size: 1em;
    }
}

/* Стили для скроллбара (Webkit) */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #2d3b4e;
    border-radius: 5px;
}

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