
:root {
    /* Цветовая палитра */
    --color-bg: #0f172a;
    --color-bg-card: #1e293b;
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-accent: #8b5cf6;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: #334155;
    
    /* Градиенты */
    --gradient-btn: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    --gradient-hover: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    --gradient-promo: linear-gradient(45deg, #ec4899, #8b5cf6);

    /* Размеры и отступы */
    --container-width: 1000px;
    --header-height: 80px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --shadow-md: 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(59, 130, 246, 0.5);

    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 2rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Сброс инлайн-стилей для заголовков в HTML, которые ломают сетку */
h3[style], div[style], p[style] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* --- Header --- */
.header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    padding: 0 1.5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}

/* --- Navigation --- */
.menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.menu a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-main);
    position: relative;
    padding: 0.5rem 0;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--color-accent);
    transition: var(--transition-fast);
}

.menu a:hover {
    color: var(--color-primary);
}

.menu a:hover::after {
    width: 100%;
}

/* Burger Menu (Hidden on desktop) */
.burger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 101;
}

.burger::before, .burger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    transition: var(--transition-fast);
}

.burger::before { top: 0; }
.burger::after { bottom: 0; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    background: var(--gradient-btn);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

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

/* Shine Effect */
.wqec_shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
    z-index: -1;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Promo Button Variant */
.btn.promo {
    background: var(--gradient-promo);
    margin-top: 1rem;
    font-size: 1.25rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

/* --- Images & Figures --- */
.wp-block-image {
    margin: 3rem 0;
    position: relative;
}

.wp-block-image img {
    width: 100%;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.wp-block-image:hover img {
    transform: scale(1.02);
}

/* --- Forms & Reviews --- */
.rev {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
    margin-top: 4rem;
    box-shadow: var(--shadow-md);
}

.rev1 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.rev input[type="search"] {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.5rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
    margin-bottom: 1.5rem;
}

.rev input[type="search"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search_but {
    background-color: var(--color-warning);
    color: #1a1a1a;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-block;
}

.search_but:hover {
    background-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* --- Footer --- */
.footer {
    margin-top: 4rem;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-card);
}

/* --- Specific Content Fixes --- */
/* Center alignment wrapper usually generated by old WordPress themes */
center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fixing the header container structure */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* --- Responsive Design --- */
@media screen and (max-width: 900px) {
    .header {
        justify-content: space-between;
        padding: 0 1rem;
    }

    .burger {
        display: block;
        order: 1; 
    }

    .menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--color-bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }

    /* Class used by JS in HTML to toggle menu */
    .menu.acr {
        transform: translateX(0);
    }
    
    .menu a {
        font-size: 1.5rem;
        padding: 1rem;
    }

    /* Adjust container padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Center align headings on mobile for better aesthetics */
    h1, h2, h3 {
        text-align: center;
    }

    /* Stack buttons */
    .btn {
        width: 100%;
        max-width: 350px;
        margin: 0.5rem auto;
        display: flex;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    .rev {
        padding: 1.5rem;
    }
    
    .rev input[type="search"] {
        width: 100%;
    }
    
    .search_but {
        width: 100%;
    }
}
