/* Основные стили и переменные */
:root {
    --primary-color: #000000;
    --accent-color: #FFD700;
    --neon-color: #00f2ff;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Лоадер */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.logo-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-animation span {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    animation: glow 2s ease-in-out infinite alternate;
}

/* Навигация */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--neon-color);
    text-shadow: 0 0 10px var(--neon-color);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    position: relative;
    transition: color 0.3s ease;
}

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

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

/* Герой секция */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

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

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

.hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 0 0 10px var(--neon-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
}

/* Кнопки */
.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    border-radius: 4px;
    box-shadow: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--accent-color);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    color: var(--primary-color);
}

.cta-button:hover::before {
    transform: scaleX(1);
}

.cta-button:active {
    transform: scale(0.98);
}

/* Секции */
section {
    padding: 5rem 2rem;
    position: relative;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

/* О нас */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

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

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border-color: var(--accent-color);
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.service-card .price {
    font-size: 1.2rem;
    color: var(--neon-color);
    font-weight: 600;
    margin-top: 1rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

/* Стили для иконок услуг */
.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--neon-color));
    border-radius: 50%;
    opacity: 0.1;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--accent-color);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.service-card:hover .service-icon::before {
    transform: scale(1.4);
    opacity: 0.2;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
    fill: var(--neon-color);
}

/* Портфолио */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

.portfolio-title {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

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

.portfolio-item:hover .portfolio-title {
    transform: translateY(0);
}

/* Отзывы */
.reviews-slider {
    max-width: 800px;
    margin: 0 auto;
}

.review-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 1rem;
}

.review-stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select {
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
}

.submit-button {
    padding: 1rem;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.map-container {
    height: 300px;
    background: var(--glass-bg);
    border-radius: 15px;
}

.whatsapp-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.05);
}

/* Футер */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social {
    margin: 2rem 0;
}

.social-link {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

/* Анимации */
@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--neon-color);
    }
    to {
        text-shadow: 0 0 20px var(--neon-color),
                     0 0 30px var(--neon-color),
                     0 0 40px var(--neon-color);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-burger {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3rem;
        padding: 0 0.5rem;
        margin-top: 2rem;
    }

    .hero .cta-button {
        margin-top: 2rem;
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-content {
        padding: 0 1rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Эффект глитча для заголовка */
.glitch {
    position: relative;
    animation: glitch 1s linear infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    text-shadow: 1px 0 var(--neon-color);
    top: 0;
    color: var(--text-color);
    background: var(--primary-color);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-color);
    animation: noise-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--neon-color);
    animation: noise-anim 3s infinite linear alternate-reverse;
}

@keyframes noise-anim {
    0% {
        clip: rect(44px, 450px, 56px, 0);
    }
    5% {
        clip: rect(12px, 450px, 59px, 0);
    }
    10% {
        clip: rect(48px, 450px, 29px, 0);
    }
    15% {
        clip: rect(42px, 450px, 73px, 0);
    }
    20% {
        clip: rect(63px, 450px, 27px, 0);
    }
    25% {
        clip: rect(34px, 450px, 55px, 0);
    }
    30% {
        clip: rect(86px, 450px, 73px, 0);
    }
    35% {
        clip: rect(20px, 450px, 20px, 0);
    }
    40% {
        clip: rect(26px, 450px, 60px, 0);
    }
    45% {
        clip: rect(25px, 450px, 50px, 0);
    }
    50% {
        clip: rect(57px, 450px, 98px, 0);
    }
    55% {
        clip: rect(5px, 450px, 85px, 0);
    }
    60% {
        clip: rect(82px, 450px, 64px, 0);
    }
    65% {
        clip: rect(54px, 450px, 27px, 0);
    }
    70% {
        clip: rect(28px, 450px, 45px, 0);
    }
    75% {
        clip: rect(75px, 450px, 75px, 0);
    }
    80% {
        clip: rect(65px, 450px, 82px, 0);
    }
    85% {
        clip: rect(39px, 450px, 96px, 0);
    }
    90% {
        clip: rect(17px, 450px, 85px, 0);
    }
    95% {
        clip: rect(26px, 450px, 50px, 0);
    }
    100% {
        clip: rect(82px, 450px, 64px, 0);
    }
}

/* Мобильное меню */
.nav-burger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 100;
}

.nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.nav-burger span:nth-child(1) {
    top: 0;
}

.nav-burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav-burger span:nth-child(3) {
    bottom: 0;
}

/* Анимация бургер-меню */
.nav-burger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
}

.nav-burger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 99;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.5rem;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links a:nth-child(5) { transition-delay: 0.5s; }

    .nav-links a::after {
        bottom: -8px;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-color), var(--neon-color));
    }

    /* Добавляем эффект свечения для активного пункта меню */
    .nav-links a:hover {
        color: var(--accent-color);
        text-shadow: 0 0 10px var(--accent-color);
    }

    /* Добавляем эффект волны при клике */
    .nav-links a:active {
        transform: scale(0.95);
    }
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

/* Стили для полей ввода формы */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.modal-content input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.modal-content input:focus::placeholder {
    color: var(--accent-color);
    transform: translateX(10px);
}

/* Эффект свечения для активного поля */
.modal-content input:focus,
.modal-content select:focus {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Стилизация select */
.modal-content select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFD700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

/* Анимация для label (если добавим) */
.modal-content label {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    pointer-events: none;
}

.modal-content input:focus + label,
.modal-content input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.8rem;
    color: var(--accent-color);
    background: var(--glass-bg);
    padding: 0 0.5rem;
}

/* Эффект волны при клике */
.modal-content input,
.modal-content select {
    position: relative;
}

.modal-content input:active,
.modal-content select:active {
    transform: scale(0.98);
}

/* Стили для кнопки отправки в модальном окне */
.modal-content .submit-button {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--accent-color), var(--neon-color));
    border: none;
    border-radius: 12px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-content .submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.modal-content .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.modal-content .submit-button:hover::before {
    left: 100%;
}

.modal-content .submit-button:active {
    transform: translateY(1px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .modal-content input,
    .modal-content select {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .modal-content .submit-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Фиксация масштаба сайта */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Предотвращение масштабирования при открытии модального окна */
.modal.active {
    display: flex;
    opacity: 1;
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Предотвращение масштабирования при открытии мобильного меню */
.nav-links.active {
    right: 0;
    position: fixed;
    width: 80%;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Фиксация контента при открытом модальном окне */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Фиксация контента при открытом мобильном меню */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Карусель портфолио */
.portfolio-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    touch-action: pan-y;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Адаптивность карусели */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 300px;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Модальное окно портфолио */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: transparent;
    padding: 0;
    border: none;
}

.portfolio-modal .modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portfolio-modal .modal-close:hover {
    transform: rotate(90deg);
}

.portfolio-modal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.modal-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .portfolio-title {
        font-size: 1rem;
    }
}

.submit-button.success {
    background-color: #4CAF50;
    animation: pulse 0.5s ease;
}

.submit-button.error {
    background-color: #f44336;
    animation: shake 0.5s ease;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
/* Основные стили и переменные */
:root {
    --primary-color: #000000;
    --accent-color: #FFD700;
    --neon-color: #00f2ff;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Лоадер */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.logo-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-animation span {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    animation: glow 2s ease-in-out infinite alternate;
}

/* Навигация */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--neon-color);
    text-shadow: 0 0 10px var(--neon-color);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    position: relative;
    transition: color 0.3s ease;
}

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

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

/* Герой секция */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

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

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

.hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 0 0 10px var(--neon-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
}

/* Кнопки */
.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    border-radius: 4px;
    box-shadow: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--accent-color);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    color: var(--primary-color);
}

.cta-button:hover::before {
    transform: scaleX(1);
}

.cta-button:active {
    transform: scale(0.98);
}

/* Секции */
section {
    padding: 5rem 2rem;
    position: relative;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

/* О нас */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

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

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border-color: var(--accent-color);
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.service-card .price {
    font-size: 1.2rem;
    color: var(--neon-color);
    font-weight: 600;
    margin-top: 1rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

/* Стили для иконок услуг */
.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--neon-color));
    border-radius: 50%;
    opacity: 0.1;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--accent-color);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.service-card:hover .service-icon::before {
    transform: scale(1.4);
    opacity: 0.2;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
    fill: var(--neon-color);
}

/* Портфолио */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

.portfolio-title {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

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

.portfolio-item:hover .portfolio-title {
    transform: translateY(0);
}

/* Отзывы */
.reviews-slider {
    max-width: 800px;
    margin: 0 auto;
}

.review-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 1rem;
}

.review-stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select {
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
}

.submit-button {
    padding: 1rem;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.map-container {
    height: 300px;
    background: var(--glass-bg);
    border-radius: 15px;
}

.whatsapp-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.05);
}

/* Футер */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social {
    margin: 2rem 0;
}

.social-link {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

/* Анимации */
@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--neon-color);
    }
    to {
        text-shadow: 0 0 20px var(--neon-color),
                     0 0 30px var(--neon-color),
                     0 0 40px var(--neon-color);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-burger {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3rem;
        padding: 0 0.5rem;
        margin-top: 2rem;
    }

    .hero .cta-button {
        margin-top: 2rem;
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-content {
        padding: 0 1rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Эффект глитча для заголовка */
.glitch {
    position: relative;
    animation: glitch 1s linear infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    text-shadow: 1px 0 var(--neon-color);
    top: 0;
    color: var(--text-color);
    background: var(--primary-color);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-color);
    animation: noise-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--neon-color);
    animation: noise-anim 3s infinite linear alternate-reverse;
}

@keyframes noise-anim {
    0% {
        clip: rect(44px, 450px, 56px, 0);
    }
    5% {
        clip: rect(12px, 450px, 59px, 0);
    }
    10% {
        clip: rect(48px, 450px, 29px, 0);
    }
    15% {
        clip: rect(42px, 450px, 73px, 0);
    }
    20% {
        clip: rect(63px, 450px, 27px, 0);
    }
    25% {
        clip: rect(34px, 450px, 55px, 0);
    }
    30% {
        clip: rect(86px, 450px, 73px, 0);
    }
    35% {
        clip: rect(20px, 450px, 20px, 0);
    }
    40% {
        clip: rect(26px, 450px, 60px, 0);
    }
    45% {
        clip: rect(25px, 450px, 50px, 0);
    }
    50% {
        clip: rect(57px, 450px, 98px, 0);
    }
    55% {
        clip: rect(5px, 450px, 85px, 0);
    }
    60% {
        clip: rect(82px, 450px, 64px, 0);
    }
    65% {
        clip: rect(54px, 450px, 27px, 0);
    }
    70% {
        clip: rect(28px, 450px, 45px, 0);
    }
    75% {
        clip: rect(75px, 450px, 75px, 0);
    }
    80% {
        clip: rect(65px, 450px, 82px, 0);
    }
    85% {
        clip: rect(39px, 450px, 96px, 0);
    }
    90% {
        clip: rect(17px, 450px, 85px, 0);
    }
    95% {
        clip: rect(26px, 450px, 50px, 0);
    }
    100% {
        clip: rect(82px, 450px, 64px, 0);
    }
}

/* Мобильное меню */
.nav-burger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 100;
}

.nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.nav-burger span:nth-child(1) {
    top: 0;
}

.nav-burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav-burger span:nth-child(3) {
    bottom: 0;
}

/* Анимация бургер-меню */
.nav-burger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
}

.nav-burger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 99;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.5rem;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links a:nth-child(5) { transition-delay: 0.5s; }

    .nav-links a::after {
        bottom: -8px;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-color), var(--neon-color));
    }

    /* Добавляем эффект свечения для активного пункта меню */
    .nav-links a:hover {
        color: var(--accent-color);
        text-shadow: 0 0 10px var(--accent-color);
    }

    /* Добавляем эффект волны при клике */
    .nav-links a:active {
        transform: scale(0.95);
    }
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

/* Стили для полей ввода формы */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.modal-content input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.modal-content input:focus::placeholder {
    color: var(--accent-color);
    transform: translateX(10px);
}

/* Эффект свечения для активного поля */
.modal-content input:focus,
.modal-content select:focus {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Стилизация select */
.modal-content select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFD700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

/* Анимация для label (если добавим) */
.modal-content label {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    pointer-events: none;
}

.modal-content input:focus + label,
.modal-content input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.8rem;
    color: var(--accent-color);
    background: var(--glass-bg);
    padding: 0 0.5rem;
}

/* Эффект волны при клике */
.modal-content input,
.modal-content select {
    position: relative;
}

.modal-content input:active,
.modal-content select:active {
    transform: scale(0.98);
}

/* Стили для кнопки отправки в модальном окне */
.modal-content .submit-button {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--accent-color), var(--neon-color));
    border: none;
    border-radius: 12px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-content .submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.modal-content .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.modal-content .submit-button:hover::before {
    left: 100%;
}

.modal-content .submit-button:active {
    transform: translateY(1px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .modal-content input,
    .modal-content select {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .modal-content .submit-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Фиксация масштаба сайта */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Предотвращение масштабирования при открытии модального окна */
.modal.active {
    display: flex;
    opacity: 1;
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Предотвращение масштабирования при открытии мобильного меню */
.nav-links.active {
    right: 0;
    position: fixed;
    width: 80%;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Фиксация контента при открытом модальном окне */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Фиксация контента при открытом мобильном меню */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Карусель портфолио */
.portfolio-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    touch-action: pan-y;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Адаптивность карусели */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 300px;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Модальное окно портфолио */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: transparent;
    padding: 0;
    border: none;
}

.portfolio-modal .modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portfolio-modal .modal-close:hover {
    transform: rotate(90deg);
}

.portfolio-modal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.modal-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .portfolio-title {
        font-size: 1rem;
    }
} 