/* Custom variables based on chosen 'Luxury Green' premium theme color set */
:root {
    --bg-primary: #0a1f16;    /* Deep Forest Green */
    --bg-secondary: #122e22;  /* Slightly lighter deep green card backgrounds */
    --accent-gold: #d4af37;   /* Brass/Gold */
    --accent-gold-hover: #f3cf5a;
    --text-light: #f4f6f0;    /* Ivory White */
    --text-muted: #a3b899;    /* Mossy structural gray-green */
    --border-color: #1e4233;  /* Sleek luxury boundaries */
    --error-red: #e07a5f;     /* Sophisticated compliance warm tones */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Shared Typography Architecture */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 1.2rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    opacity: 0.92;
}

/* Premium Navigation Header */
.site-header {
    background-color: rgba(10, 31, 22, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 400;
    margin-left: 0.5rem;
}

.header-nav .nav-link {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.header-nav .nav-link:hover {
    color: var(--accent-gold);
}

/* Split Design Hero Layout */
.hero-section {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    background-color: var(--border-color);
    color: var(--accent-gold);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* UI Premium Component Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Premium Wrapper for Image Containment */
.hero-image-wrapper {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* Trust Badges Ribbon */
.trust-bar {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
}

.trust-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.trust-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Asymmetric Article + Sidebar Container Grid */
.content-section {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: flex-start;
}

/* Sticky Sidebar & Table of Contents Setup */
.sticky-box {
    position: sticky;
    top: 100px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    border-left: 2px solid transparent;
}

.toc-link:hover, .toc-link.active {
    color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.05);
    border-left-color: var(--accent-gold);
}

.sidebar-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.sidebar-cta h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.sidebar-cta p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Main Editorial Styling elements */
.main-article h2 {
    font-size: 1.9rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.lead-text {
    font-size: 1.15rem;
    color: #fff;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.subsection-title {
    font-size: 1.3rem;
    margin-top: 1.5rem;
}

/* Styled lists layouts */
.styled-list {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.styled-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
}

.styled-list li::before {
    content: "•";
    color: var(--accent-gold);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.error-list li::before {
    content: "⚠️";
    font-size: 0.85rem;
}

/* Premium Responsive Table Execution */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.premium-table th {
    background-color: rgba(30, 66, 51, 0.5);
    color: #fff;
    padding: 1rem 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.premium-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    opacity: 0.9;
}

.premium-table.zebra tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Content Multi-Image Layout Structures */
.image-led-feature, .inline-visual {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin: 2rem 0;
}

.content-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.img-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    margin-bottom: 0;
    text-align: center;
}

/* Highlighted Informational Box Blocks */
.checklist-box, .info-block {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-gold);
    padding: 2rem;
    border-radius: 0 8px 8px 0;
    margin: 2.5rem 0;
}

.styled-checklist, .styled-ol {
    list-style: none;
}

.styled-checklist li, .styled-ol li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.styled-checklist li span, .styled-ol li {
    font-weight: 500;
}

.styled-checklist li span {
    background: var(--border-color);
    color: var(--accent-gold);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Premium Compliance Alerts Boxes */
.premium-note, .fact-box {
    background: rgba(224, 122, 95, 0.05);
    border: 1px dashed var(--error-red);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.premium-note h3, .fact-box h3 {
    color: var(--error-red);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Multi-Column FAQ Accordion Component */
.faq-section {
    background-color: var(--bg-secondary);
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.2rem 1.5rem;
    text-align: left;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    width: 12px;
    height: 12px;
    position: relative;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-icon::before, .faq-icon::after {
    content: "";
    background-color: var(--accent-gold);
    position: absolute;
    transition: var(--transition-smooth);
}

/* Horizontal line */
.faq-icon::before {
    top: 5px;
    left: 0;
    width: 12px;
    height: 2px;
}

/* Vertical line */
.faq-icon::after {
    top: 0;
    left: 5px;
    width: 2px;
    height: 12px;
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    padding: 0 1.5rem;
}

.faq-item.active .faq-panel {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
    padding-bottom: 1.5rem;
}

.faq-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Bottom Actions Box (Final CTA Zone) */
.final-cta-section {
    padding: 5rem 0;
}

.cta-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 3.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Mandatory Compliance footer banner */
.compliance-banner {
    background-color: rgba(224, 122, 95, 0.1);
    border-top: 1px solid var(--error-red);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #e2b4a8;
    text-align: center;
}

/* Standard Footer Grids Layouts */
.site-footer {
    background-color: #05120d;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Responsive media queries engine for fluid UI transformations */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .sidebar {
        display: none; /* Hide TOC on mobile to prevent layouts overlap */
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Table-to-Cards Transformation Engine */
    .premium-table, .premium-table thead, .premium-table tbody, .premium-table th, .premium-table td, .premium-table tr {
        display: block;
    }
    .premium-table thead {
        display: none;
    }
    .premium-table tr {
        margin-bottom: 1rem;
        border-bottom: 2px solid var(--border-color);
    }
    .premium-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid rgba(30, 66, 51, 0.3);
    }
    .premium-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1.2rem;
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: var(--accent-gold);
    }
    .trust-container {
        justify-content: center;
    }
    .hero-actions {
        flex-direction: column;
    }
}

/* Стили для нового графического логотипа в шапке */
.logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 140px; /* Ограничиваем ширину, чтобы логотип был компактным */
    height: 40px;     /* Задаем фиксированную высоту для аккуратного выравнивания */
    overflow: hidden;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.logo-link:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.header-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фокусирует внимание на центральной части бренда */
    object-position: center; /* Центрирует графику внутри рамки */
}

/* Корректировка шапки под новый размер логотипа */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}