/* Общие стили */
:root {
    --primary-color: #C41E3A;
    --primary-dark: #8B0000;
    --secondary-color: #1a1a1a;
    --text-color: #2c2c2c;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Отступ для фиксированной шапки */
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px; /* Меньший отступ на мобильных */
    }
}

body {
    font-family: 'Montserrat', 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-white);
    font-size: 16px;
}

/* Скрываем весь контент до загрузки шрифтов только если JavaScript работает */
body:not(.fonts-loaded).js-enabled {
    overflow: hidden;
}

body:not(.fonts-loaded) > *:not(#preloader) {
    opacity: 0;
    visibility: hidden;
}

/* Плавное появление контента после загрузки шрифтов */
body.fonts-loaded > *:not(#preloader) {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

/* Fallback для отключенного JavaScript - автоматически скрываем прелоадер через 3 секунды */
#preloader {
    animation: autoHidePreloader 3s forwards;
}

@keyframes autoHidePreloader {
    0%, 90% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Если JavaScript работает, отменяем автоскрытие */
body.js-enabled #preloader {
    animation: none;
}

/* Показываем контент через 3 секунды даже без JavaScript */
body:not(.fonts-loaded):not(.js-enabled) > *:not(#preloader) {
    animation: autoShowContent 3s forwards;
}

@keyframes autoShowContent {
    0%, 90% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Типографика */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

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

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

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

p {
    margin-bottom: 16px;
    color: var(--text-color);
}

/* Секции */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 48px 0;
    }
}

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

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

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
    background-color: #0088cc;
    color: white;
    border: 2px solid #0088cc;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.btn-secondary:hover {
    background-color: #006699;
    color: white;
    border-color: #006699;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-telegram {
    background-color: #0088cc !important;
    color: white !important;
    border: none;
    padding: 10px 16px;
    font-size: 1rem;
}

.btn-telegram:hover {
    background-color: #006699 !important;
    color: white !important;
}

.telegram-icon {
    font-size: 1.2em;
    margin-right: 4px;
}

@media (max-width: 768px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* --- HEADER --- */
#header-main {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    min-height: 72px;
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 16px;
        min-height: 64px;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 700;
    gap: 12px;
    transition: var(--transition);
}

.logo-link:hover {
    color: var(--primary-color);
}

.logo-link .logo {
    height: 48px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-link {
        font-size: 1.1rem;
    }
    
    .logo-link .logo {
        height: 40px;
    }
}

.menu-toggle {
    display: none;
    font-size: 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 8px;
    transition: var(--transition);
}

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

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 16px;
    display: block;
    transition: var(--transition);
    font-weight: 500;
    border-radius: 6px;
}

.nav-menu li a:hover {
    color: var(--primary-color);
    background-color: rgba(196, 30, 58, 0.05);
}

/* Мобильная навигация */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        padding: 16px 0;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
        padding: 16px;
        text-align: center;
    }

    .nav-menu li a {
        padding: 16px 24px;
    }

    .btn-small {
        margin: 0;
        display: inline-block;
    }
}

/* --- HERO --- */
#hero {
    position: relative;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 72px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    filter: blur(3px);
    object-position: center center; /* По центру на десктопе */
}

@media (max-width: 768px) {
    .hero-video {
        object-position: 35% center; /* Смещение влево на мобильных (показываем левую часть видео) */
        transform: translate(-35%, -50%); /* Альтернативный способ смещения */
    }
}

/* Fallback для браузеров без поддержки видео или если видео не загрузилось */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    filter: blur(2px);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
}

#hero h1 {
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#hero h1 .highlight {
    color: #FFD700;
    font-weight: 800;
}

.hero-content .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-content .btn {
    margin: 0;
}

@media (max-width: 768px) {
    #hero {
        padding-top: 64px;
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 32px 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* --- ABOUT --- */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.125rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .about-content p {
        font-size: 1rem;
    }
}

/* --- DIRECTIONS --- */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

@media (max-width: 768px) {
    .directions-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.direction-card {
    padding: 32px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.direction-card:hover {
    box-shadow: var(--shadow-lg);
}

.direction-card h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.direction-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.course-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.course-list li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background-color: var(--bg-light);
    border-radius: 6px;
    font-size: 0.95rem;
    border-left: 3px solid var(--primary-color);
}

@media (max-width: 768px) {
    .direction-card {
        padding: 24px;
    }
    
    .course-list li {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* --- EVENTS --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.event-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
}

.event-card h4 {
    color: var(--secondary-color);
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.event-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: 6px;
}

.event-card p {
    margin-bottom: 16px;
}

.learn-points {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.learn-points p strong {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.learn-points ul, .zar-grid ul {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.learn-points li, .zar-grid li {
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.6;
}

.learn-points li::before, .zar-grid li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.event-card.full-width {
    grid-column: 1 / -1;
}

.zar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 20px;
}

.zar-grid > div {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.zar-grid strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .event-card {
        padding: 24px;
    }
    
    .zar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- DONATION --- */
.donation-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.donation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.donation-text h2 {
    color: white;
    margin-bottom: 24px;
    font-size: 2.25rem;
}

.donation-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    line-height: 1.8;
}

.qr-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.qr-code {
    width: 240px;
    height: 240px;
    display: block;
    margin: 0 auto 16px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.qr-label {
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.qr-label-main {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.qr-label-sub {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}

.qr-highlight {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .donation-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .donation-text {
        text-align: center;
    }
    
    .donation-text h2 {
        font-size: 1.75rem;
    }
    
    .qr-container {
        padding: 24px;
    }
    
    .qr-code {
        width: 200px;
        height: 200px;
    }
}

/* --- DOCUMENTS --- */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.doc-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    border: 2px solid var(--primary-color);
    padding: 20px 24px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doc-link::after {
    content: "→";
    font-size: 1.25rem;
    transition: var(--transition);
}

.doc-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

.doc-link:hover::after {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .doc-link {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
}

/* --- FOOTER --- */
#footer-main {
    background-color: var(--secondary-color);
    color: white;
    padding-top: 48px;
}

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

.footer-info p {
    margin-bottom: 8px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.footer-info a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: var(--transition);
}

.footer-info a:hover {
    color: #FFD700;
}

.footer-links h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    padding: 12px 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.vk-icon, .telegram-icon {
    font-weight: bold;
    font-size: 1.1em;
}

.copyright-bar {
    background-color: #0a0a0a;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.copyright-bar > p:first-child {
    color: #999;
    margin: 4px 0;
}

.developer-credit {
    font-size: 0.8rem;
    color: #555;
    margin: 4px 0;
}

.developer-credit a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
}

.developer-credit a:hover {
    color: #888;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- GALLERY GRID --- */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ровно 3 колонки */
    gap: 20px;
    margin-top: 48px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-white);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay с текстом при наведении */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 24px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Простая сетка 3x3 — все фото одинакового размера */
.gallery-item img {
    aspect-ratio: 4/3; /* Все фото стандартного размера */
}

/* Состояния загрузки */
.gallery-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Планшеты */
@media (max-width: 1024px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
        gap: 16px;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: 1fr 1fr; /* Две колонки */
        gap: 12px;
    }
    
    /* На мобильных все фото стандартные */
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        grid-column: span 1;
    }
    
    .gallery-item:nth-child(8) {
        grid-row: span 1;
    }
    
    .gallery-item img {
        aspect-ratio: 5/4 !important; /* Еще выше для надписей */
    }
    
    .gallery-overlay {
        padding: 8px 10px 16px 10px; /* Еще больше места снизу */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    }
    
    .gallery-overlay h4 {
        font-size: 0.8rem;
        margin-bottom: 3px;
        line-height: 1.1;
    }
    
    .gallery-overlay p {
        font-size: 0.7rem;
        line-height: 1.1;
        margin: 0;
    }
}

/* --- REVIEWS (TELEGRAM STYLE) --- */
.reviews-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
}

.reviews-slider {
    position: relative;
    transition: height 0.4s ease;
}

.review-message {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.review-message.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc, #006699);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-info {
    flex: 1;
}

.review-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    white-space: pre-line;
}

.review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.review-nav:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.review-prev {
    left: 0;
}

.review-next {
    right: 0;
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 8px;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.review-dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .reviews-container {
        padding: 0 50px;
    }
    
    .review-message {
        padding: 20px;
    }
    
    .review-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .review-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .review-text {
        font-size: 0.95rem;
    }
}

/* --- CTA TELEGRAM SECTION --- */
.cta-telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
    color: white;
    text-align: center;
}

.cta-telegram h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-telegram p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-telegram .btn {
    font-size: 1.25rem;
    padding: 18px 48px;
    background-color: white;
    color: #0088cc;
    border: none;
}

.cta-telegram .btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cta-telegram .btn {
        font-size: 1rem;
        padding: 14px 24px;
        width: 100%;
        max-width: 320px;
        white-space: normal;
        line-height: 1.4;
    }
    
    .cta-telegram p {
        font-size: 1rem;
        padding: 0 16px;
    }
}
