:root {
    /* Color Palette */
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #c0651a;
    --accent-hover: #a85516;
    
    /* Backgrounds */
    --bg-light: #f8f9fa;
    --white: #ffffff;
    
    /* Text */
    --text-main: #333;
    --text-light: #666;
    
    /* Borders & Decor */
    --border: #e9ecef;
    --radius: 8px;
    --radius-sm: 4px;
    
    /* Shadows - Pro Max Layered */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    /* Spacing Tokens */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Transitions */
    --transition: all 0.2s ease-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Heebo', 'Rubik', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-bottom: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; font-weight: 600; color: var(--secondary); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }

/* --- Layout Wrappers --- */
.alexei-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.alexei-section {
    padding: 80px 0; /* More breathing room */
}

.bg-light {
    background-color: var(--bg-light);
}

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

/* --- Components: Buttons --- */
.btn-primary, .btn-accent {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active, .btn-accent:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* --- Header --- */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo strong {
    font-size: 1.5rem;
    color: var(--primary);
    display: block;
}

.logo .subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--bg-light);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-badges {
    margin-bottom: 20px;
}

.hero-badges span {
    background: #e9ecef;
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 5px;
    display: inline-block;
    letter-spacing: 0.02em;
}

/* --- Grids & Cards --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(230, 126, 34, 0.2);
}

.service-card h3 {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 15px;
    display: inline-block;
    margin-bottom: 15px;
}

/* --- Tables --- */
.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table th, .price-table td {
    padding: 18px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.price-table th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.step-item {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 15px;
    opacity: 0.4;
    transition: var(--transition);
}

.step-item:hover .step-num {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Footer --- */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: auto;
}

.site-footer a {
    color: #bdc3c7;
    position: relative;
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* --- Forms (Modern) --- */
input[type="text"],
input[type="number"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    background-color: #fff;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

/* --- Accessibility Focus --- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --- Utilities --- */
.cursor-pointer { cursor: pointer; }
.shadow-hover:hover { box-shadow: var(--shadow-hover); }

/* --- Scroll to Top Button --- */
.scroll-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 99;
    box-shadow: var(--shadow);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: var(--secondary);
}

/* --- FAQ Accordion --- */
details summary {
    cursor: pointer;
    transition: color 0.2s;
}
details summary:hover {
    color: var(--accent);
}
details[open] summary {
    color: var(--accent);
    font-weight: 700;
}

/* --- Scroll Reveal --- */
.card, .step-item {
    opacity: 0;
    transform: translateY(20px);
}
.card.visible, .step-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- CTA Group --- */
.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    
    .alexei-section { padding: 50px 0; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .btn-primary, .btn-accent {
        width: 100%; /* Easy tap on mobile */
        margin-bottom: 10px;
        min-height: 44px;
    }
    
    .header-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }

    .price-list-section table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    z-index: 9999;
    border-radius: var(--radius);
    font-weight: 700;
}
.skip-link:focus {
    top: 10px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}