/* Base Styles */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2d3436;
    --light-color: #f7f7f7;
    --gray-color: #636e72;
    --light-gray: #dfe6e9;
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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



.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--dark-color);
}

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

.nav {
    display: flex;
}

.nav-link {
    margin-left: 30px;
    font-weight: 500;
    position: relative;
}

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

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


/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 1;
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid white;
    z-index: 1;
    pointer-events: none;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Dance Styles Section */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.style-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.style-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.style-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.style-card:hover .style-icon {
    background-color: var(--secondary-color);
    color: white;
}

.style-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Gallery Section */
.gallery {
    background-color: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-expand, .gallery-play {
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.gallery-expand:hover, .gallery-play:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.video-item .gallery-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Reviews Section */
.reviews {
    background-color: var(--primary-color);
    color: white;
}

.reviews .section-title::after {
    background-color: white;
}

.reviews-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.review-slide {
    padding: 0 20px;
}

.review-content {
    background-color: white;
    color: var(--dark-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.review-content::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(255, 107, 107, 0.1);
    font-family: var(--font-heading);
    line-height: 1;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
}

.review-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.slider-prev, .slider-next {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 15px;
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
    color: var(--secondary-color);
}

.slider-dots {
    display: flex;
    margin: 0 15px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: white;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.info-item {
    display: flex;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 0;
}

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

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-col ul li {
    margin-bottom: 10px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-col ul li:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    transition: var(--transition);
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 400px;
    }

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        margin-top: 15px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}


/* Основные стили остаются без изменений, добавляем новые */

/* Новые стили для секции "Образование" */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.education-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.education-image {
    height: 250px;
    overflow: hidden;
}

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

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

.education-content {
    padding: 25px;
}

.education-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Стили для секции опыта */
.experience-tabs {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
    margin: 0 10px 10px;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.experience-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.experience-gallery img {
    width: 100%;
    border-radius: 8px;
    transition: var(--transition);
}

.experience-gallery img:hover {
    transform: scale(1.03);
}

.experience-list {
    columns: 2;
    column-gap: 40px;
}

.experience-list li {
    margin-bottom: 15px;
    break-inside: avoid;
    position: relative;
    padding-left: 25px;
}

.experience-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Стили для секции достижений */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.achievement-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
}

.achievement-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .experience-list {
        columns: 1;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .about-single-image {
        width: 80%; /* Уменьшаем ширину изображения на маленьких экранах */
        margin-bottom: 30px; /* Отступ снизу */
    }
}

@media (max-width: 768px) {
    .experience-gallery {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        margin: 5px 0;
        text-align: left;
    }
    .about-single-image {
        width: 90%; /* Еще уменьшаем ширину на очень маленьких экранах */
    }
}

/* Дополнения к существующим стилям */
.about-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.about-single-image {
    flex: 0 0 auto; /* Не сжимать и не растягивать */
    width: 400px; /* Примерная ширина для вертикального фото */
    max-width: 100%; /* Гарантирует, что изображение не выйдет за пределы родителя */
    height: auto; /* Автоматическая высота для сохранения пропорций */
    overflow: hidden; /* Скрывает все, что выходит за пределы блока */
    border-radius: 10px; /* Скругление углов, если нужно */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Тень для эстетики */
}
.about-single-image img {
    display: block; /* Убирает лишние пробелы под изображением */
    width: 100%; /* Изображение занимает всю ширину родительского блока */
    height: auto; /* Автоматическая высота для сохранения пропорций */
    object-fit: cover; /* Обрезает изображение, чтобы оно заполнило контейнер, сохраняя пропорции. Если нужно, чтобы фото не обрезалось, используйте 'contain' или просто 'height: auto;' */
    /* Если вы хотите, чтобы фото не обрезалось и полностью помещалось, но при этом могло быть меньше контейнера, используйте: */
    /* object-fit: contain; */
    /* Или просто уберите object-fit, если контейнер уже имеет auto-height */
}


.gallery-main {
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-thumbs img {
    height: 120px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-thumbs img:hover {
    opacity: 0.8;
}

.signature {
    margin-top: 30px;
    text-align: right;
}

.signature img {
    height: 50px;
    margin-bottom: 10px;
}

.signature p {
    font-style: italic;
    color: var(--gray-color);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn-secondary {
    background: white;
    color: var(--dark-color);
    border: 1px solid var(--light-gray);
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Horizontal Posters Slider */
.horizontal-posters-container {
    position: relative;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 60px;
}

.horizontal-posters-slider {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 30px;
}

.posters-group {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 10px 0;
}

.poster-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.poster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.poster-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid #f0f0f0;
}

.poster-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.poster-details h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    text-align: center;
}

.poster-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.poster-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.poster-meta i {
    color: var(--secondary-color);
    width: 16px;
    text-align: center;
}

.poster-role {
    margin-top: auto;
    font-style: italic;
    text-align: center;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.poster-role i {
    color: var(--primary-color);
}

.poster-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.poster-prev {
    left: 0;
}

.poster-next {
    right: 0;
}

.poster-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.poster-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.poster-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .poster-card img {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .posters-group {
        grid-template-columns: repeat(3, 1fr);
    }

    .poster-details h3 {
        font-size: 1.3rem;
    }
}

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

    .posters-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .poster-card img {
        height: 300px;
    }

    .poster-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .horizontal-posters-container {
        padding: 0 40px;
    }

    .posters-group {
        grid-template-columns: 1fr;
    }

    .poster-card img {
        height: 400px;
    }
}

/* Poster Modal */
.poster-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

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

.poster-modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    position: relative;
}

.poster-modal-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    margin-bottom: 15px;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.9);}
    to {transform: scale(1);}
}

.poster-modal-caption {
    color: white;
    text-align: center;
    font-size: 1.2rem;
    max-width: 80%;
}

.poster-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.poster-close:hover {
    color: var(--primary-color);
}

/* Poster Image Wrapper */
.poster-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.poster-overlay i {
    color: white;
    font-size: 2rem;
}

.poster-card:hover .poster-overlay {
    opacity: 1;
}

.poster-card:hover .poster-image {
    transform: scale(1.05);
}

/* Responsive for Modal */
@media (max-width: 768px) {
    .poster-modal-image {
        max-width: 95%;
    }

    .poster-modal-caption {
        font-size: 1rem;
    }

    .poster-close {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }
}

/* Poster Modal */
.poster-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.poster-modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding: 20px;
    position: relative;
}

.poster-modal-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.poster-modal-caption {
    color: white;
    text-align: center;
    padding: 15px 0;
}

.poster-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* Poster Card Styles */
.poster-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* Мобильная адаптация для афиш */
@media (max-width: 768px) {
    .horizontal-posters-container {
        padding: 0 30px;
    }

    .posters-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .poster-card {
        margin-bottom: 15px;
    }

    .poster-image-wrapper {
        height: 350px;
    }

    .poster-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .poster-nav {
        background-color: rgba(255, 255, 255, 0.7);
    }

    .poster-nav:hover {
        background-color: var(--primary-color);
    }
    /* Модальное окно на мобильных */
    .poster-modal-content {
        padding: 10px;
    }

    .poster-modal-image {
        max-width: 95%;
        max-height: 70vh;
    }

    .poster-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .poster-modal-caption {
        font-size: 1rem;
        max-width: 90%;
    }

    .horizontal-posters-slider {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Для плавного скролла на iOS */
}
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .poster-image-wrapper {
        height: 300px;
    }

    .poster-details h3 {
        font-size: 1.2rem;
    }

    .poster-meta span {
        font-size: 0.8rem;
    }

    .poster-role {
        font-size: 0.9rem;
    }
}

.floating-circle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.floating-circle:hover {
  transform: scale(1.1);
}

.circle-progress {
  position: relative;
  width: 100%;
  height: 100%;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.3s;
}

.arrow-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #000000;
  transition: transform 0.3s;

}

.floating-circle:hover .arrow-icon {
  transform: translate(-50%, -60%);
}

.floating-circle:hover .progress-ring-circle {
  stroke: #292929;
}
.floating-circle:hover .arrow-icon {
  color: #292929;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: #FAFAFA;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.review-avatar {
    height: 250px;
    overflow: hidden;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.review-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

.author-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.review-author {
    font-weight: 600;
    color: #8B0000;
    margin-bottom: 5px;
}

.review-position {
    font-size: 0.9rem;
    color: #666;
}

/* Video Review Section */
.video-review {
    background: #f9f9f9;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(139, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(139, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.video-wrapper.active .video-thumbnail {
    display: none;
}

.video-wrapper.active .video-iframe {
    display: block;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: #FAFAFA;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-avatar {
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.review-avatar img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.review-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Video Review Section */
.video-review {
    background: #f9f9f9;
    padding: 60px 0;
}

.video-container {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.custom-video {
    width: 100%;
    display: block;
    background: #000;
}

/* Стили для элементов управления видео */
.custom-video::-webkit-media-controls-panel {
    background: rgba(139, 0, 0, 0.7);
}

.custom-video::-webkit-media-controls-play-button,
.custom-video::-webkit-media-controls-mute-button {
    color: white;
}

/* Video Review Section */
.video-review {
    background: #f9f9f9;
    padding: 60px 0;
}

.video-review-card {
    max-width: 450px;
    margin: 0 auto;
    background: #FAFAFA;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.video-container {
    width: 100%;
    background: #000;
}

.custom-video {
    width: 100%;
    display: block;
}

.video-caption {
    padding: 25px;
    border-top: 1px solid #eee;
}

.video-caption .author-info {
    margin-bottom: 15px;
}

.video-caption .review-author {
    font-weight: 600;
    color: #8B0000;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.video-caption .review-position {
    font-size: 0.9rem;
    color: #666;
}

.video-caption .review-text {
    font-style: italic;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .video-review-card {
        border-radius: 8px;
    }

    .video-caption {
        padding: 20px;
    }
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-color);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-header {
  margin-bottom: 25px;
  text-align: center;
}

/* Табы */
.tab-buttons {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.tab-btn {
  padding: 12px 25px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  color: var(--gray-color);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 10px;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

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

.service-description {
  padding: 15px 0;
}

.service-description h4 {
  color: var(--dark-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.service-description ul {
  margin-bottom: 25px;
  padding-left: 20px;
}

.service-description li {
  margin-bottom: 10px;
  position: relative;
}

.service-description li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: -15px;
}

.service-description .btn {
  width: 100%;
  text-align: center;
  margin-top: 15px;
}

/* Адаптивность */
@media (max-width: 576px) {
  .tab-buttons {
    flex-direction: column;
    border-bottom: none;
  }

  .tab-btn {
    margin-right: 0;
    margin-bottom: 5px;
    border-bottom: none;
    border-left: 3px solid transparent;
    text-align: left;
  }

  .tab-btn.active {
    border-left-color: var(--primary-color);
    border-bottom: none;
  }

  .modal-container {
    padding: 20px;
  }
}

.modal-overlay {
  position: fixed !important;
  z-index: 9999 !important;
}

.modal-container {
  z-index: 10000 !important;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-image-wrapper {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-single-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-single-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-text {
    order: 2;
    text-align: center;
}

.quote-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.quote-text p {
    margin-bottom: 15px;
}

.signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.signature img {
    height: 50px;
    margin-bottom: 10px;
}

.signature p {
    font-style: italic;
    color: var(--gray-color);
}

/* Адаптивность */
@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

    .about-image-wrapper {
        order: 0;
        flex: 1;
    }

    .about-text {
        flex: 1;
        text-align: left;
    }

    .about-single-image {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .about-single-image {
        max-width: 300px;
    }

    .quote-text {
        font-size: 1rem;
    }

    .signature img {
        height: 40px;
    }
}


/* Стили для кнопки воспроизведения на мобильных */
.mobile-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 107, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-play-button.visible {
  opacity: 1;
}

/* Для устройств с тач-экраном */
@media (hover: none) {
  .mobile-play-button {
    opacity: 1;
  }
}

.video-background {
  position: relative;
}

.mobile-play-button {
  display: none;
}

@media (max-width: 768px) {
  .mobile-play-button {
    display: flex;
  }

  video {
    display: none;
  }
  
  video.active {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Остальные стили hero остаются без изменений */
.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
  animation: fadeInUp 1s ease 0.6s both;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 1;
}

.mobile-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 107, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  z-index: 2;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.nav {
  display: flex;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }
}

/* Мобильное меню */
.nav {
  display: flex;
}

@media (max-width: 768px) {

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
    padding-top: 80px;
  }

  .nav.active {
    right: 0;
  }

  .nav-link {
    margin: 15px 0;
    font-size: 1.2rem;
    padding: 10px 20px;
  }

  /* Запрет прокрутки при открытом меню */
  body.menu-open {
    overflow: hidden;
  }
}


@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }


  body.menu-open {
    overflow: hidden;
  }
}


/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Остальные стили hero остаются без изменений */

.nav {
  display: flex;
}

.nav-link {
  margin-left: 30px;
  font-weight: 500;
  position: relative;
}


@media (max-width: 768px) {

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav-link {
    margin: 15px 0;
    font-size: 1.2rem;
    color: var(--dark-color);
  }

  body.menu-open {
    overflow: hidden;
  }
}

body.menu-open {
    overflow: hidden;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--dark-color);
}

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

.nav {
    display: flex;
}

.nav-link {
    margin-left: 30px;
    font-weight: 500;
    position: relative;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 1;
}

.mobile-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 107, 0.8);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    z-index: 2;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-play-button.visible {
    display: flex;
    opacity: 1;
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
        padding-top: 80px;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        margin: 15px 0;
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .hero-video {
        display: none;
    }

    .hero-video.active {
        display: block;
    }

    .mobile-play-button {
        display: flex;
    }
}

@media (hover: none) {
    .mobile-play-button {
        opacity: 1;
    }
}

/* Burger Button */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100; /* выше меню */
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Анимация крестика */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }
}

body.menu-open {
    overflow: hidden;
}

/* затемняющий слой */
.hero.no-video::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* полупрозрачный серый */
    z-index: 0;
}

/* чтобы контент был поверх */
.hero.no-video .hero-content {
    position: relative;
    z-index: 1;
}


/* По умолчанию скрыт */
.burger { display: none; }

/* Показать бургер только на мобильных/планшетах */
@media (max-width: 768px) {
  .burger { display: flex; }
}

/* На десктопе гарантированно скрыть и вернуть обычную навигацию */
@media (min-width: 769px) {
  .burger { display: none !important; }
  .nav { 
    position: static; 
    right: 0; 
    width: auto; 
    height: auto; 
    background: transparent; 
    box-shadow: none; 
    flex-direction: row; 
    align-items: center; 
    justify-content: flex-end;
  }
  .nav.active { right: 0; } /* на всякий случай */
  body.menu-open { overflow: auto; }
}

.hero.no-video::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* затемнение */
    z-index: 0;
}

.hero.no-video .hero-content {
    position: relative;
    z-index: 1;
}

.hero.no-video::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

.hero.no-video .hero-content {
  position: relative;
  z-index: 1;
}

.hero video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
}

/* Добавить в конец файла styles.css */

/* Ensure video is visible on desktop */
.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Hide video and show poster on mobile */
.hero.no-video .hero-video {
  display: none;
}

/* Play button for mobile */
.mobile-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 107, 0.8);
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  z-index: 2;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.hero.no-video .mobile-play-button {
  display: flex;
}

@media (hover: none) {
  .mobile-play-button {
    opacity: 1;
  }
}

@media (min-width: 769px) {
  .mobile-play-button {
    display: none !important;
  }
}

/* Mobile video styles */
.hero.no-video .video-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero-poster.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero.no-video .overlay {
    background-color: rgba(0, 0, 0, 0.01);
}

.mobile-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 107, 0.8);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-play-button:hover {
    background: rgba(255, 107, 107, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Hide video on mobile when paused */
@media (max-width: 768px) {
    .hero.no-video video {
        opacity: 0;
        visibility: hidden;
    }
    
    .mobile-play-button {
        display: flex;
    }
}

/* Ensure video plays correctly on desktop */
@media (min-width: 769px) {
    .mobile-play-button {
        display: none !important;
    }
    
    .hero.no-video .video-background::before {
        display: none;
    }
}   

/* Video Review Card Mobile Styles */
@media (max-width: 768px) {
    .video-review-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .video-review-card video {
        width: 100%;
        height: auto;
        max-height: 400px;
        border-radius: 8px 8px 0 0;
    }
    
    .video-caption {
        padding: 20px;
        background: white;
        border-radius: 0 0 8px 8px;
    }
    
    /* Убедимся, что видео правильно отображается */
    .review-content video {
        display: block;
        width: 100%;
        height: auto;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .video-review-card {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .video-review-card video {
        max-height: 300px;
    }
    
    .video-caption {
        padding: 15px;
    }
    
    .review-author {
        font-size: 1rem;
    }
    
    .review-position {
        font-size: 0.8rem;
    }
}

/* Убедимся, что видео всегда корректно отображается */
.video-review-card video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

/* Стили для состояний загрузки видео */
.video-review-card video::-webkit-media-controls-panel {
    background: rgba(139, 0, 0, 0.7);
}

.video-review-card video::-webkit-media-controls-play-button,
.video-review-card video::-webkit-media-controls-mute-button {
    color: white;
}