/* ===========================================
   CSS ПЕРЕМЕННЫЕ
   =========================================== */
:root {
    /* Цветовая схема */
    --primary-color: #d04581;
    --primary-light: #e097b7;
    --primary-hover: #c03d75;
    --primary-bg: rgba(208, 69, 129, 0.1);
    --primary-bg-light: rgba(208, 69, 129, 0.05);
    
    /* Дополнительные цвета */
    --secondary-color: #ff1493;
    --secondary-hover: #dc1274;
    --secondary-light: #ff69b4;
    --accent-color: #ff4757;
    --accent-light: #ffe6f2;
    --accent-bg: #fef7f7;
    
    /* Нейтральные цвета */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e9ecef;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #2d3748;
    --gray-800: #2c3e50;
    --gray-900: #333;
    --dark: #2d2d2d;
    
    /* Текстовые цвета */
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #6c757d;
    --text-light: #999;
    --text-dark: #121111;
    
    /* Фоновые цвета */
    --bg-body: #f8f9fa;
    --bg-white: #ffffff;
    --bg-highlight: #ffe6f2;
    
    /* Статусные цвета */
    --success-color: #4CAF50;
    --error-color: #f44336;
    --warning-color: #ffc107;
    --info-color: #0066cc;
    
    /* Размеры */
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-small: 8px;
    
    /* Тени */
    --shadow-light: 0 2px 8px rgba(208, 69, 129, 0.1);
    --shadow-medium: 0 4px 15px rgba(208, 69, 129, 0.1);
    --shadow-heavy: 0 5px 20px rgba(208, 69, 129, 0.4);
}

/* ===========================================
   GLOBAL STYLES AND RESET
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a, abbr, acronym, address, applet, b, big, blockquote, body, center, cite, code, dd, del, dfn, div, dl, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, html, i, iframe, img, ins, kbd, label, legend, li, object, ol, p, pre, q, s, samp, small, span, strike, strong, sub, sup, tt, u, ul, var {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    vertical-align: baseline;
    background: transparent;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}
h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h2, h3, h4 {
    margin: 30px 0px 30px;
}

h2 {
    background: linear-gradient(to bottom, rgba(255,255,102,0) 60%, var(--accent-light) 60%);
}

p {
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.6;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
}

/* List styles */
ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 20px;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ===========================================
   HEADER AND NAVIGATION
   =========================================== */
.header {
    background: var(--light-gray);
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    flex-shrink: 0;
    z-index: 101;
}

.nav-menu {
    display: flex;
    list-style: none;
    background: var(--primary-bg);
    border-radius: 25px;
    padding: 5px;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-item {
    margin: 0 2px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.nav-link:hover, 
.nav-link.active {
    background: rgba(208, 69, 129, 0.5);
    color: var(--white);
}

/* Мобильная навигация */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 102;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-bg);
    border-radius: var(--border-radius-small);
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(-320px);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--primary-bg-light);
}

.mobile-logo {
    flex-shrink: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 30px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    padding: 18px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-bg);
    color: var(--primary-color);
    padding-left: 30px;
}

.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

/* Mobile adaptation of header */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 6px 12px;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .mobile-menu {
        width: 90vw;
        right: -90vw;
    }
    
    .mobile-menu.active {
        transform: translateX(-90vw);
    }
}

/* Animation of mobile menu */
.mobile-menu.active .mobile-nav-item {
    animation: slideInRight 0.3s ease forwards;
}

.mobile-menu.active .mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-nav-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.active .mobile-nav-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.active .mobile-nav-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.active .mobile-nav-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu.active .mobile-nav-item:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu.active .mobile-nav-item:nth-child(7) { animation-delay: 0.4s; }
.mobile-menu.active .mobile-nav-item:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================================
   BREADCRUMBS
   =========================================== */
.breadcrumbs {
    background-color: var(--primary-color);
    padding: 10px 0;
    border-bottom: 1px solid #bdc3c7;
    font-weight: bold;
    color: var(--white);
}

.breadcrumbs-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    font-size: 14px;
    color: var(--white);
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: var(--white);
}

.breadcrumbs a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Mobile adaptation of breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs ol {
        flex-wrap: wrap;
    }
}

/* ===========================================
   UPDATE INFORMATION
   =========================================== */
.update-info {
    background-color: var(--white);
    padding: 3px 0;
    border-bottom: 1px solid var(--gray-200);
}

.update-info-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: right;
}

.update-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.main-container {
    max-width: var(--container-width);
    margin: 40px auto;
    padding: 0 20px;
}

.content-section {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    min-height: 300px;
}

#inter-section {
    margin-bottom: 40px;
}

/* Image styles for inter-section and content-section */
#inter-section img,
.content-section img,
.faq-section img {
    border-radius: var(--border-radius);
    max-width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    margin: 20px auto;
    box-shadow: var(--shadow-light);
    object-fit: cover;
}

/* Mobile adaptation of main content */
@media (max-width: 768px) {
    .main-container {
        padding: 0 15px;
    }
    
    .content-section {
        padding: 20px;
    }
}

/* ===========================================
   CASINO LIST
   =========================================== */
.casino-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.casino-item {
    background-color: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.casino-item:hover {
    transform: translateY(-2px);
}

.casino-wrapper {
    display: flex;
    min-height: 170px;
}

.casino-logo-container {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    position: relative;
    padding: 20px;
}

.casino-logo-container img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.casino-content {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
}

.casino-left {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.casino-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.casino-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.casino-main-info {
    flex: 1;
}

.casino-name {
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: bold;
    /* margin-bottom: 5px; */
    margin: 30px 0px 5px 0px;
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.rating-score {
    color: var(--text-primary);
    font-weight: bold;
    font-size: 18px;
}

.rating-text {
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
}

.casino-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.casino-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
    align-items: center;
    justify-content: center;
}

.casino-bonus {
    background-color: var(--accent-bg);
    border-radius: var(--border-radius-small);
    padding: 15px;
    text-align: center;
    width: 100%;
    border: 2px solid var(--accent-light);
}

.bonus-badge {
    background-color: var(--secondary-light);
    color: var(--white);
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
}

.bonus-text {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: bold;
}

.bonus-terms {
    color: var(--text-light);
    font-size: 10px;
}

.casino-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius-small);
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

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

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

.more-info-btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--light-gray);
    color: var(--secondary-color);
    border: none;
    padding: 8px 20px;
    border-top-left-radius: var(--border-radius-small);
    border-top-right-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.more-info-btn:hover {
    background-color: var(--secondary-light);
    color: var(--white);
}

.expanded-content {
    display: none;
    background-color: var(--accent-bg);
    padding: 30px;
    border-top: 1px solid var(--accent-light);
}

.expanded-content.show {
    display: block;
}

.review-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.review-section-title {
    color: var(--secondary-color);
    font-size: 16px;
    /* margin-bottom: 15px; */
    margin: 30px 0px 15px 0px;
    font-weight: 600;
}

.pros-cons h4 {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 15px;
}

.pros-cons ul {
    list-style: none;
    padding: 0;
}

.pros-cons li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.pros li {
    color: var(--success-color);
}

.cons li {
    color: var(--error-color);
}

.ratings-section h4 {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 15px;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rating-bar {
    background-color: #f0f0f0;
    height: 6px;
    border-radius: 3px;
    flex: 1;
    margin: 0 10px;
}

.rating-fill {
    background-color: var(--secondary-light);
    height: 100%;
    border-radius: 3px;
}

.load-more-btn {
    display: block;
    margin: 40px auto;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.check-icon {
    color: var(--success-color);
    font-size: 12px;
}

.cross-icon {
    color: var(--error-color);
    font-size: 12px;
}

.mobile-tag {
    background-color: var(--accent-light);
    color: var(--secondary-color);
    padding: 8px 12px;
    border-radius: var(--border-radius-small);
    font-size: 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.payment-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.payment-more {
    background-color: var(--secondary-light);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

/* Мобильная адаптация списка казино */
@media (max-width: 1024px) {
    .casino-item {
        width: 90%;
        height: auto;
        min-height: 200px;
    }
    .casino-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    .casino-logo-container {
        width: 100%;
        height: 80px;
        flex-direction: row;
        justify-content: center;
    }
    .casino-content {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    .casino-header {
        flex-direction: column;
        gap: 10px;
    }
    .casino-right {
        min-width: auto;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 15px;
    }
    .casino-bonus {
        width: auto;
        flex: 1;
    }
    .casino-actions {
        flex-direction: row;
        gap: 10px;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .casino-item {
        width: 100%;
        height: auto;
        min-height: 220px;
        padding: 15px 0;
    }

    .casino-content {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .casino-header {
        flex-direction: column;
        gap: 8px;
    }
    .casino-right {
        min-width: auto;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        margin-top: 15px;
    }
    .casino-bonus {
        width: 100%;
    }
    .casino-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    .casino-name {
        font-size: 20px;
    }
    .rating-score {
        font-size: 16px;
    }
    .casino-description {
        font-size: 13px;
        line-height: 1.3;
    }
    .review-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .casino-logo-container img {
        width: 60px;
        height: 60px;
    }
    .rank-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    .casino-name {
        font-size: 18px;
    }
    .rating-score {
        font-size: 14px;
    }
    .casino-description {
        font-size: 12px;
    }

    .casino-right {
        width: 100%;
    }
    .casino-actions {
        width: 100%;
    }
    .btn {
        font-size: 12px;
        padding: 7px 14px;
    }
}

/* ===========================================
   TABLES
   =========================================== */
/* Table responsive wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 0;
    min-width: 600px;
}

thead {
    background: var(--secondary-color);
    color: var(--white);
}

th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 15px;
}

tr {
    border-bottom: 1px solid var(--gray-100);
}

tr:hover {
    background: var(--primary-bg-light);
}

td {
    padding: 15px;
    vertical-align: middle;
    color: var(--gray-700);
}

td a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

td a:hover {
    color: var(--primary-light);
}

/* ===========================================
   AUTHOR SECTION
   =========================================== */
.author-section {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.author-box {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.author-avatar img:hover {
    transform: scale(1.05);
}

.author-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.author-role {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 15px;
}

.author-bio {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.author-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon.email { background-color: #ea4335; }
.social-icon.twitter { background-color: #1da1f2; }
.social-icon.facebook { background-color: #4267b2; }
.social-icon.youtube { background-color: #ff0000; }
.social-icon.instagram { background-color: #e4405f; }
.social-icon.yahoo { background-color: #7b0099; }
.social-icon.newspicks { background-color: #ff6600; }

/* ===========================================
   FAQ SECTION
   =========================================== */
.faq-section {
    margin-top: 1rem;
}

.faq-title {
    text-align: center;
    padding: 1rem 1rem 0;
    margin-bottom: 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.glb-qa {
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 2rem;
}

.qa-question {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.qa-user-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.qa-content-left {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 1rem;
    position: relative;
    max-width: 70%;
}

.qa-arrow-left {
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #e3f2fd;
}

.qa-answer {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.qa-user-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 1rem;
    flex-shrink: 0;
}

.qa-content-right {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: #f1f8e9;
    border-radius: 1rem;
    position: relative;
    max-width: 70%;
}

.qa-arrow-right {
    position: absolute;
    right: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #f1f8e9;
}

.qa-image {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.qa-content p, .qa-content h3 {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;

    color: var(--text-dark);
    font-weight: 400;
}

.qa-name {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Мобильная адаптация FAQ */
@media (min-width: 992px) {
    .faq-section {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .qa-user-left,
    .qa-user-right {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .qa-image {
        width: 36px;
        height: 36px;
    }
    
    .qa-content-left,
    .qa-content-right {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        max-width: 75%;
    }
    
    .qa-arrow-left {
        left: -6px;
        top: 15px;
        border-right-width: 6px;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }
    
    .qa-arrow-right {
        right: -6px;
        top: 15px;
        border-left-width: 6px;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }
}

@media (max-width: 480px) {
    .qa-content-left,
    .qa-content-right {
        max-width: 80%;
    }
}

/* ===========================================
   TABLE OF CONTENTS (SLIDE TOC)
   =========================================== */
.slide-toc {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    will-change: transform;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.slide-toc.active {
    transform: translateX(0);
}

.slide-toc-toggle {
    position: absolute;
    top: 50%;
    right: -60px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 20px;
    will-change: transform, background-color;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.slide-toc-toggle:hover {
    transform: translateX(3px);
}

.slide-toc-toggle.active {
    background: var(--accent-color);
}

.burger-icon {
    position: relative;
    width: 24px;
    height: 18px;
    will-change: transform;
    transition: transform 0.25s ease;
}

.burger-icon::before,
.burger-icon::after,
.burger-icon {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    will-change: transform;
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    transition: transform 0.25s ease;
}

.burger-icon::before {
    top: 0;
}

.burger-icon::after {
    bottom: 0;
}

.slide-toc-toggle.active .burger-icon {
    background: transparent;
}

.slide-toc-toggle.active .burger-icon::before {
    transform: rotate(45deg) translateY(8px);
}

.slide-toc-toggle.active .burger-icon::after {
    transform: rotate(-45deg) translateY(-8px);
}

.slide-toc-inner {
    width: 320px;
    height: 100%;
    background: var(--white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: contents;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.slide-toc-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: #764ba2;
    will-change: width;
    transform: translateZ(0);
    border-radius: 0 2px 2px 0;
}

.slide-toc-header {
    padding: 25px 20px 20px;
    border-bottom: 2px solid var(--gray-100);
    background: var(--light-gray);
    position: relative;
    flex-shrink: 0;
}

.slide-toc-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    letter-spacing: 0.5px;
}

.slide-toc-subtitle {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-toc-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    transform: translateZ(0);
    will-change: scroll-position;
}

.slide-toc-body::-webkit-scrollbar {
    width: 4px;
}

.slide-toc-body::-webkit-scrollbar-track {
    background: transparent;
}

.slide-toc-body::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.slide-toc-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.slide-toc-nav {
    padding: 10px 0;
}

.slide-toc-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slide-toc-item {
    position: relative;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.slide-toc-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background-color 0.2s ease;
}

.slide-toc-item.active::before {
    background: var(--primary-color);
}

.slide-toc-item a {
    display: flex;
    align-items: flex-start;
    padding: 12px 20px 12px 25px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: padding-left 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    position: relative;
    border-left: 4px solid transparent;
    will-change: padding-left, background-color;
    transform: translateZ(0);
}

.slide-toc-item a::before {
    content: attr(data-numeration);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-right: 12px;
    background: #e2e8f0;
    color: #718096;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.slide-toc-item a:hover {
    background: #f7fafc;
    color: var(--gray-700);
    padding-left: 30px;
}

.slide-toc-item a:hover::before {
    background: var(--gray-300);
    color: #4a5568;
    transform: scale(1.05);
}

.slide-toc-item.active a {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-left-color: var(--primary-light);
    padding-left: 30px;
}

.slide-toc-item.active a::before {
    background: var(--primary-light);
    color: var(--white);
    transform: scale(1.05);
}

.slide-toc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.slide-toc-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-toc-stats {
    padding: 15px 20px;
    background: var(--light-gray);
    border-top: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
}

.reading-progress {
    font-weight: 600;
    color: var(--gray-600);
}

.slide-toc-item {
    opacity: 1;
    transform: translateX(0);
}

.toc-highlighted {
    background: #fff3cd !important;
    border-left: 4px solid var(--warning-color) !important;
    transition: background-color 0.3s ease !important;
}

/* Mobile adaptation of table of contents */
@media (max-width: 768px) {
    .slide-toc-inner {
        width: 90vw;
        max-width: 300px;
    }
    
    .slide-toc-toggle {
        right: -50px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .slide-toc-item a {
        font-size: 13px;
        padding: 10px 15px 10px 20px;
    }
    
    .slide-toc-header {
        padding: 20px 15px 15px;
    }
    
    .slide-toc-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .slide-toc-inner {
        width: 85vw;
    }
    
    .slide-toc-toggle {
        right: -45px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* ===========================================
   STICKY BANNER
   =========================================== */
.sticky-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-color);
    transition: transform 0.3s ease-in-out;
    animation: slideUp 0.3s ease-out;
}

.sticky-banner.hidden {
    transform: translateY(100%);
}

.sticky-banner.closing {
    animation: slideDown 0.3s ease-in forwards;
}

.sticky-banner-container {
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.sticky-banner-link:hover {
    opacity: 0.9;
}

.sticky-banner-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70px;
    object-fit: cover;
}

.sticky-banner-close {
    position: absolute;
    top: -12px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    z-index: 1001;
    transition: transform 0.2s ease;
}

.sticky-banner-close:hover {
    transform: scale(1.1);
}

.sticky-banner-close:active {
    transform: scale(0.95);
}

.close-icon {
    width: 24px;
    height: 24px;
}

/* Mobile adaptation of sticky banner */
@media (max-width: 767px) {
    .sticky-banner-container {
        padding: 0 5px;
    }
    
    .sticky-banner-image {
        max-height: 60px;
        border-radius: 4px;
    }
    
    .sticky-banner-close {
        top: -10px;
        right: 5px;
        width: 20px;
        height: 20px;
    }
    
    .close-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .sticky-banner-container {
        padding: 0 2px;
    }
    
    .sticky-banner-image {
        max-height: 50px;
        border-radius: 3px;
    }
    
    .sticky-banner-close {
        top: -8px;
        right: 2px;
        width: 18px;
        height: 18px;
    }
    
    .close-icon {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .sticky-banner-container {
        padding: 0 10px;
    }
    
    .sticky-banner-close {
        right: 15px;
    }
}

@media (min-width: 1200px) {
    .sticky-banner-container {
        padding: 0 20px;
    }
    
    .sticky-banner-close {
        right: 25px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sticky-banner,
    .sticky-banner-close,
    .sticky-banner-link {
        transition: none;
        animation: none;
    }
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom p {
    color: #ccc;
}

/* Mobile footer adaptation */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .author-box-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .et_pb_row_4col {
        flex-direction: column;
    }

    .et_pb_row_4col .et_pb_column_1_4 {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    /* Table Responsiveness */
    .table-responsive {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    table {
        min-width: 500px;
        font-size: 14px;
    }
    
    table td, table th {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    /* Author section responsiveness */
    .author-section {
        padding: 25px 20px;
        margin-bottom: 35px;
    }
    
    .author-box {
        gap: 20px;
    }
    
    .author-avatar img {
        width: 110px;
        height: 110px;
    }
    
    .author-info h3 {
        font-size: 1.4rem;
    }
    
    .author-bio {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .table-responsive {
        margin: 10px 0;
    }
    
    table {
        min-width: 450px;
        font-size: 12px;
    }
    
    table td, table th {
        padding: 6px 4px;
        font-size: 11px;
    }
    
    /* Author section responsiveness */
    .author-section {
        padding: 20px 15px;
        margin-bottom: 30px;
        border-radius: 12px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
    }
    
    .author-avatar {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .author-avatar img {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .author-info h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .author-role {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .author-bio {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .author-socials {
        justify-content: center;
        gap: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}