:root {
    --primary-color: #6a1918;
    --primary-light: #8a2e2c;
    --primary-dark: #4a0f0e;
    --dark-bg: #121212;
    --darker-bg: #0d0d0d;
    --card-bg: #1a1a1a;
    --text-color: #f0f0f0;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --success-color: #2e7d32;
    --highlight-color: #ffcc00;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типография */
h1, h2, h3, h4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

h2.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 30px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 25, 24, 0.3);
}

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

.btn-secondary:hover {
    background-color: rgba(106, 25, 24, 0.1);
    transform: translateY(-3px);
}

.btn-package {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 0 0 12px 12px;
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* Шапка */
.header {
    background-color: var(--darker-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 2.5rem;
    margin-right: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
}

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

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
}

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

.nav-list a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-list a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Герой-секция */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1a0f0f 100%);
    overflow: hidden;
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-stack {
    position: relative;
    width: 300px;
    height: 300px;
}

.book {
    position: absolute;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.book-1 {
    width: 180px;
    height: 240px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    transform: rotate(5deg);
    z-index: 1;
}

.book-2 {
    width: 180px;
    height: 240px;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    transform: rotate(-8deg);
    left: 40px;
    top: 20px;
    z-index: 2;
}

.book-3 {
    width: 180px;
    height: 240px;
    background: linear-gradient(45deg, #4a0f0e, #6a1918);
    transform: rotate(15deg);
    left: 80px;
    top: 10px;
    z-index: 3;
}

.book-4 {
    width: 180px;
    height: 240px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    transform: rotate(-5deg);
    left: 120px;
    top: 30px;
    z-index: 4;
}

/* Цели школы */
.goals-section {
    padding: 100px 0;
    background-color: var(--dark-bg);
}

.goals-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.goal-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.goal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.goal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.goal-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.goal-text {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Пакеты занятий */
.packages-section {
    padding: 100px 0;
    background-color: var(--darker-bg);
}

.packages-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.package-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.package-card.featured {
    position: relative;
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 40px;
    font-weight: bold;
    transform: rotate(45deg);
    font-size: 0.9rem;
}

.package-header {
    background-color: var(--primary-dark);
    padding: 30px 20px;
    text-align: center;
}

.package-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: white;
}

.package-subtitle {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.package-subject {
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
}

.package-details {
    padding: 25px 20px;
    background-color: rgba(106, 25, 24, 0.1);
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 24px;
}

.package-features {
    padding: 25px 20px;
    flex-grow: 1;
}

.package-features h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.package-features ul {
    list-style: none;
    padding-left: 0;
}

.package-features li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    color: var(--text-muted);
}

.package-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.package-price {
    padding: 20px;
    text-align: center;
    background-color: rgba(106, 25, 24, 0.2);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.period {
    display: block;
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 5px;
}

/* Форматы обучения */
.formats-section {
    padding: 100px 0;
    background-color: var(--dark-bg);
}

.formats-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.format-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.format-card:hover {
    transform: translateY(-10px);
}

.format-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
}

.format-icon.offline {
    background-color: rgba(106, 25, 24, 0.2);
    color: var(--primary-color);
}

.format-icon.online {
    background-color: rgba(41, 128, 185, 0.2);
    color: #2980b9;
}

.format-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.format-text {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.format-address {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.format-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.format-note {
    background-color: rgba(106, 25, 24, 0.1);
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.format-note p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Результаты */
.results-section {
    padding: 100px 0;
    background-color: var(--darker-bg);
}

.results-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

.results-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.results-quote {
    max-width: 600px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.quote-text {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.5;
}

.quote-author {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: right;
}

/* Контакты */
.contact-section {
    padding: 100px 0;
    background-color: var(--dark-bg);
}

.contact-container {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236a1918' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

/* Футер */
.footer {
    background-color: var(--darker-bg);
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

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

/* Адаптивность */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .results-content {
        flex-direction: column;
        text-align: center;
    }
    
    .results-stats {
        order: 2;
    }
    
    .results-quote {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--darker-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        margin: 15px 0;
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    h2.section-title {
        font-size: 2rem;
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .package-badge {
        right: -30px;
        padding: 8px 35px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .book-stack {
        width: 250px;
        height: 250px;
    }
    
    .book-1, .book-2, .book-3, .book-4 {
        width: 150px;
        height: 200px;
    }
}
/* Дополнительные стили и анимации */

/* Анимации при загрузке */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Анимация для кнопок при нажатии */
.btn:active {
    transform: scale(0.98);
}

/* Стили для VK ссылки */
.vk-link {
    color: #4a76a8 !important;
    font-size: 1.3rem;
}

.vk-link:hover {
    color: #5a86b8 !important;
}

/* Стили для изображений в форматах обучения */
.format-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.format-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.format-card:hover .format-img {
    transform: scale(1.05);
}

/* Главное фото в герое */
.main-photo {
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

/* Фото в цитате */
.quote-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
}

.quote-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Социальные ссылки в контактах */
.social-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Социальные иконки в футере */
.footer-social {
    margin-top: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--success-color);
    max-width: 400px;
    z-index: 9999;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    transform: translateX(0);
    animation: slideInRight 0.5s ease forwards;
}

.notification.error {
    border-left-color: #e74c3c;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.notification-icon {
    font-size: 1.8rem;
    color: var(--success-color);
    flex-shrink: 0;
}

.notification.error .notification-icon {
    color: #e74c3c;
}

.notification-text {
    flex-grow: 1;
}

.notification-text h4 {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.notification-text p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
    transition: color 0.3s;
}

.notification-close:hover {
    color: var(--text-color);
}

/* Стили для кнопки загрузки */
.btn-loader {
    display: inline-block;
    margin-left: 10px;
}

/* Анимация появления секций */
section {
    animation: fadeIn 0.8s ease-out;
}

/* Анимация для карточек при скролле */
.goal-card, .package-card, .format-card, .stat, .results-quote {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.goal-card.animate-in, 
.package-card.animate-in, 
.format-card.animate-in, 
.stat.animate-in, 
.results-quote.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для анимации */
.goal-card:nth-child(2) { transition-delay: 0.2s; }
.goal-card:nth-child(3) { transition-delay: 0.4s; }
.stat:nth-child(2) { transition-delay: 0.1s; }
.stat:nth-child(3) { transition-delay: 0.2s; }

/* Эффект параллакса для героя */
.hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Анимация для иконок в целях */
.goal-icon {
    animation: fadeInUp 0.8s ease-out;
    display: inline-block;
}

/* Ховер-эффекты для карточек */
.goal-card:hover .goal-icon {
    animation: pulse 1s ease;
}

/* Анимация для статистики */
.stat-number {
    position: relative;
    overflow: hidden;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 1s ease;
}

.stat:hover .stat-number::after {
    width: 100%;
}

/* Анимация для формы */
.contact-form {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Стили для фокуса на элементах формы */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 2px rgba(106, 25, 24, 0.3);
}

/* Адаптивные стили для уведомлений */
@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        transform: translateY(150%);
    }
    
    .notification.show {
        transform: translateY(0);
        animation: fadeInUp 0.5s ease forwards;
    }
}

/* Анимация для логотипа */
.logo-title {
    position: relative;
    overflow: hidden;
}

.logo-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    animation: slideIn 2s ease forwards;
    animation-delay: 1s;
}

@keyframes slideIn {
    to {
        width: 100%;
    }
}

/* Анимация для пунктов меню при загрузке */
.nav-list li {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.5s ease forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-list li:nth-child(1) { animation-delay: 0.1s; }
.nav-list li:nth-child(2) { animation-delay: 0.2s; }
.nav-list li:nth-child(3) { animation-delay: 0.3s; }
.nav-list li:nth-child(4) { animation-delay: 0.4s; }
.nav-list li:nth-child(5) { animation-delay: 0.5s; }
.nav-list li:nth-child(6) { animation-delay: 0.6s; }
/* materials/css/main-styles.css - дополнения для раздела отзывов */
/* Reviews Section - Компактная версия */
.reviews-section {
    padding: 80px 0;
    background-color: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.reviews-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.reviews-section .section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 8px auto 25px;
    border-radius: 2px;
}

.reviews-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 400px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* Компактный виджет отзывов */
.reviews-widget {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.reviews-widget:hover {
    box-shadow: 0 20px 45px rgba(106, 25, 24, 0.15);
    transform: translateY(-3px);
}

/* Уменьшенный iframe */
.reviews-widget iframe {
    width: 100% !important;
    border: none !important;
    display: block;
    min-height: 650px;
    height: 650px;
    background-color: transparent !important;
    animation: iframeLoad 1s ease-out 0.4s forwards;
    opacity: 0;
}

/* Декоративные элементы (меньше) */
.reviews-decoration {
    position: absolute;
    z-index: 1;
    opacity: 0.08;
    pointer-events: none;
}

.decoration-1 {
    top: 30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.decoration-2 {
    bottom: 30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--primary-light), transparent);
    border-radius: 50%;
    animation: float 7s ease-in-out infinite reverse;
}

/* Анимации */
@keyframes iframeLoad {
    0% {
        opacity: 0;
        transform: scale(0.99);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(8deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(106, 25, 24, 0.1);
    }
    50% {
        box-shadow: 0 15px 40px rgba(106, 25, 24, 0.2);
    }
}

/* Эффект подсветки */
.reviews-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(106, 25, 24, 0.03),
        transparent
    );
    z-index: 2;
    pointer-events: none;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 14px;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.1;
    }
}

/* Бейдж для виджета (меньше) */
.widget-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideInRight 0.4s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateX(40px);
}

.widget-badge i {
    font-size: 0.9rem;
}

/* Индикатор загрузки */
.reviews-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.reviews-loading.hidden {
    display: none;
    animation: fadeOut 0.4s ease forwards;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

.loading-text {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Адаптивные стили */
@media (max-width: 1200px) {
    .reviews-widget {
        max-width: 850px;
    }
}

@media (max-width: 992px) {
    .reviews-section {
        padding: 70px 0;
    }
    
    .reviews-section .section-title {
        font-size: 2rem;
        margin-bottom: 35px;
    }
    
    .reviews-widget {
        max-width: 800px;
        border-radius: 12px;
    }
    
    .reviews-widget iframe {
        min-height: 600px;
        height: 600px;
    }
    
    .decoration-1,
    .decoration-2 {
        opacity: 0.05;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 60px 0;
    }
    
    .reviews-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .reviews-widget {
        max-width: 100%;
        border-radius: 10px;
        margin: 0 10px;
    }
    
    .reviews-widget iframe {
        min-height: 550px;
        height: 550px;
    }
    
    .widget-badge {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .decoration-1,
    .decoration-2 {
        display: none;
    }
}

@media (max-width: 576px) {
    .reviews-section {
        padding: 50px 0;
    }
    
    .reviews-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .reviews-section .container {
        padding: 0 15px;
    }
    
    .reviews-widget {
        margin: 0;
        border-radius: 8px;
    }
    
    .reviews-widget iframe {
        min-height: 500px;
        height: 500px;
    }
    
    .widget-badge {
        display: none;
    }
    
    .loading-spinner {
        width: 35px;
        height: 35px;
    }
    
    .loading-text {
        font-size: 0.9rem;
    }
}

/* Анимация при скролле */
.reviews-section.animate-in .reviews-container {
    opacity: 1;
    transform: translateY(0);
}

.reviews-section.animate-in .reviews-widget {
    animation: pulseGlow 2s ease-in-out;
}

/* Эффект параллакса для фона */
.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(106, 25, 24, 0.03) 50%,
        transparent 100%
    );
    z-index: 0;
    pointer-events: none;
}

.reviews-container {
    position: relative;
    z-index: 2;
}

/* Адаптация темного режима виджета */
.reviews-widget iframe {
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.4s ease;
}

.reviews-widget:hover iframe {
    filter: brightness(0.95) contrast(1.05);
}

/* Плавное появление */
.reviews-widget {
    animation: widgetReveal 0.8s ease-out;
}

@keyframes widgetReveal {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Эффект при клике */
.reviews-widget:active {
    transform: scale(0.995);
    transition: transform 0.1s ease;
}