
/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --primary: #2289e4;
    --primary-dark: #1a6fb0;
    --primary-light: #6fbaff;
    --accent: #ff4757;
    --text-main: #2c3e50;
    --text-secondary: #596b7e;
    --text-white: #ffffff;
    
    /* Backgrounds */
    --bg-body: #f4f7fa;
    --bg-card: #ffffff;
    --bg-header: #0f1923;
    --bg-header-gradient: linear-gradient(135deg, #0f1923 0%, #1c2e40 100%);
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --fs-base: 1rem;
    --fs-h1: clamp(1.5rem, 5vw, 2.5rem);
    --fs-h2: clamp(1.25rem, 4vw, 2rem);
    --fs-h3: 1.25rem;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    /* UI Elements */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -20px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

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

/* =========================================
   2. LAYOUT 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;
}

/* =========================================
   3. HEADER STYLES
   ========================================= */
.bg-bk {
    background: var(--bg-header-gradient);
    color: var(--text-white);
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

.bg-bk::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 137, 228, 0.1) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto var(--spacing-md);
    filter: drop-shadow(0 0 10px rgba(34, 137, 228, 0.5));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

h1 span {
    color: var(--primary);
    display: block;
    font-size: 1.2em;
    margin-bottom: 0.2em;
}

/* =========================================
   4. PROMO BLOCK (Header Card)
   ========================================= */
.item-promo-kod {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.item-promo-kod:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.item-name {
    flex: 1;
    min-width: 200px;
}

.item-title {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.item-title.color {
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
}

.item-text {
    font-size: 1.1rem;
    font-weight: 700;
}

.item-copy {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px dashed var(--primary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.item-copy p {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    opacity: 0.7;
}

.promo-text {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-light);
    letter-spacing: 1px;
}

/* =========================================
   5. BUTTONS
   ========================================= */
.button {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(34, 137, 228, 0.4);
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-sm);
    text-align: center;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

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

.button:hover::before {
    left: 100%;
}

.button:active {
    transform: translateY(1px);
}

/* =========================================
   6. CONTENT AREA
   ========================================= */
.content {
    padding: var(--spacing-lg) 0;
    background: var(--bg-body);
}

.content .col-xs-12 {
    background: var(--bg-card);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

h2 {
    font-size: var(--fs-h2);
    color: var(--text-main);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

h3 {
    font-size: var(--fs-h3);
    color: var(--text-main);
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

ul {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

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

/* Specific Line Section Grid */
.line-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
    background: #f8fbff;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid #e1e9f4;
}

.line-section .text-center {
    grid-column: 1 / -1;
    margin-bottom: var(--spacing-sm);
}

.line-section .text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.line-subsection {
    background: var(--bg-card);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
    margin: var(--spacing-md) auto;
}

.img img {
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

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

/* =========================================
   7. TABLES
   ========================================= */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eef2f5;
}

/* Override inline styles safely */
table th, table td {
    border: none !important;
    padding: 1rem !important;
    text-align: left;
    vertical-align: middle;
}

thead tr {
    background-color: #2c3e50 !important;
    color: #fff;
}

thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tbody tr {
    background-color: #fff;
    transition: background-color 0.2s;
    border-bottom: 1px solid #eef2f5;
}

tbody tr:nth-child(even) {
    background-color: #f8fbff;
}

tbody tr:hover {
    background-color: #f1f7ff;
}

td {
    color: var(--text-secondary);
}

/* Force specific column alignments from original HTML logic but better */
table td:nth-child(2),
table th:nth-child(2),
table td:nth-child(3),
table th:nth-child(3) {
    text-align: center !important;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer.container {
    margin-top: auto;
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-top: 1px solid #e1e4e8;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* =========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .content .col-xs-12 {
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 2.5rem;
    }
    
    .bg-bk {
        padding: var(--spacing-md) 0;
        clip-path: polygon(0 0, 100% 0, 100% 98%, 0 100%);
    }

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

    .item-name {
        width: 100%;
    }

    .item-copy {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .button {
        width: 100%;
        max-width: 300px;
    }

    /* Make tables scrollable horizontally */
    div:has(> table) {
        overflow-x: auto;
        width: 100%;
        border-radius: var(--radius-sm);
    }
    
    table {
        min-width: 600px; /* Force scroll on small screens */
    }
    
    h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    h2 {
        text-align: center;
    }
}

/* Animation for entering viewport */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section.content {
    animation: fadeInUp 0.8s ease-out;
}
