:root {
    --primary-background: #0B0E14;
    --primary-text: #F3F4F6;
    --secondary-background: #111827;
    --secondary-text: #9CA3AF;
    --card-surface: #1A2234;
    --card-border: #2D3748;
    --accent-primary: #6366F1;
    --accent-primary-hover: #4F46E5;
    --accent-secondary: #EC4899;
    --success-color: #10B981;
}

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

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

html,
body {
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-background);
    color: var(--primary-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

h4 {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

h5 {
    font-size: clamp(1rem, 2vw, 1.15rem);
}

h6 {
    font-size: 0.95rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.3s ease;
}

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

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

#cookieConsentBanner {
    display: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.4rem, 5vw, 1.85rem);
    }

    h3 {
        font-size: clamp(1.2rem, 4vw, 1.45rem);
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 0.95rem;
    }

    a,
    p,
    span,
    td,
    th {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    #cookieConsentBanner {
        right: 0.5rem;
        bottom: 0.5rem;
        left: 0.5rem;
        width: calc(100% - 1rem);
        max-width: none;
    }
}

/* ===== header ===== */
#site-header .js-mobile-menu.open {
    max-height: 400px;
}

/* ===== hero_section ===== */
#hero {
    word-break: break-word;
    hyphens: auto;
}

#hero a {
    transition: all 0.2s ease-in-out;
}

/* ===== about_store ===== */
#about {
    overflow: hidden;
}

#about img {
    width: 100%;
    display: block;
}

/* ===== featured_items ===== */
#featured {
    overflow: hidden;
    hyphens: auto;
}

#featured .js-order-btn {
    transition: all 0.2s ease-in-out;
}

#featured .js-order-btn:active {
    transform: scale(0.98);
}

/* ===== game_categories ===== */
#categories {
    overflow: hidden;
}

#categories .js-category-card {
    min-height: 190px;
}

/* ===== store_advantages ===== */
#advantages {
    overflow: hidden;
    hyphens: auto;
}

#advantages .ph-lightning,
#advantages .ph-cards,
#advantages .ph-check-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== order_guide ===== */
#how-to-order {
    overflow: hidden;
}

/* ===== full_catalog ===== */
#catalog {
    overflow: hidden;
}

#catalog article {
    border-color: var(--card-border);
    background-color: var(--card-surface);
}

#catalog h2,
#catalog h3 {
    hyphens: auto;
}

/* ===== best_sellers_section ===== */
#best-sellers {
    overflow: hidden;
}

#best-sellers .js-product-card {
    height: 100%;
}

/* ===== product_quality ===== */
#quality {
    hyphens: auto;
}

#quality .ph-seal-check,
#quality .ph-package,
#quality .ph-certificate,
#quality .ph-shield-check,
#quality .ph-check-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== motivation_banner ===== */
#motivation {
    overflow: hidden;
}

#motivation .js-anchor-btn {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#motivation .js-anchor-btn:hover {
    transform: translateY(-2px);
}

/* ===== order_form_section ===== */
#order-form {
    overflow: hidden;
    hyphens: auto;
}

#order-form input::placeholder,
#order-form select::placeholder {
    color: #9CA3AF;
}

#order-form select option {
    background-color: #1A2234;
    color: #F3F4F6;
}

/* ===== final_cta_banner ===== */
#cta {
    overflow: hidden;
}

#cta h2 {
    hyphens: auto;
}

/* ===== footer ===== */
#site-footer {
    overflow: hidden;
    hyphens: auto;
    box-sizing: border-box;
}

#site-footer a {
    text-decoration: none;
}