
@charset "UTF-8";
@import url(http://fonts.googleapis.com/css?family=Montserrat);

/* 1. Сброс базовых отступов и плавный скролл */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Шапка и навигация (Десктопная версия) */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.nav a {
  font-family: 'Montserrat';
  text-transform: uppercase;
  border: none;
    text-decoration: none;
    text-align: center;
    color: #fafafa;
    font-weight: 500;
    transition: color 0.6s;

}

.nav a:hover {
    color: #e74c3c;
}

/* Иконка гамбургера (скрыта на больших экранах) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 3. Баннер */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.8)), url('https://ded67.strana.de/i/cccp.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #c0392b;
}


.hero2 {
    background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.8)), url('img/jpg/bg2.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}


.hero3 {
    background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.8)), url('img/jpg/bg3.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}


.hero7 {
    background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.8)), url('img/jpg/bg7.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero7 h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero7 p {
    font-size: 18px;
    margin-bottom: 30px;
}




.btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #c0392b;
}

/* 4. Карточки услуг */
.services {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 60px auto;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 5. Адаптивная Галерея картинок (CSS Grid) */
.gallery-section {
    margin-bottom: 60px;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 картинки в ряд на ПК */
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3/2; /* Сохраняет пропорции картинок */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(131, 76, 160, 0.9);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-overlay a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(231, 176, 60, 1.4);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.4s;
}



.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* 6. Форма обратной связи */
.contact-section {
    background-color: #fff;
    padding: 60px 0;
}

.contact-container {
    max-width: 600px; /* Ограничиваем ширину формы, чтобы она не растягивалась во весь экран */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.btn-submit { width: 100%; }

.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 25px 0;
}

/* ======================================================= */
/* 7. Адаптивность для ПЛАНШЕТОВ (До 960px)                */
/* ======================================================= */
@media (max-width: 960px) {
    .hero h1 { font-size: 32px; }
    
    .services { flex-wrap: wrap; }
    .card {
        flex: calc(50% - 10px);
        min-width: 45%;
    }
    
    /* Галерея становится 2х2 вместо 4 в ряд */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ======================================================= */
/* 8. Адаптивность для ТЕЛЕФОНОВ (До 768px — Мобильное меню)*/
/* ======================================================= */
@media (max-width: 768px) {
    /* Включаем иконку гамбургера */
    .menu-toggle { display: flex; }

    /* Превращаем навигацию в выезжающее боковое меню */
    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* Меню скрыто справа за экраном */
        width: 70%; /* Занимает 70% ширины экрана смартфона */
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s ease; /* Плавный выезд */
        z-index: 1050;
    }

    /* Класс активируется через JavaScript при клике */
    .nav.active {
        right: 0; /* Меню выезжает на экран */
    }

    .nav a {
        margin: 0;
        font-size: 20px;
    }

    /* Анимация превращения гамбургера в крестик (X) */
    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Блоки услуг встают в одну колонку */
    .services { flex-direction: column; }
    .card { flex: 1 1 100%; }

    /* Галерея перестраивается в одну колонку */
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ======================================================= */
/* 9. СТИЛИ ДЛЯ ПОП-АП ОКНА                                */
/* ======================================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); /* Размытие заднего плана */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Класс, который мы будем добавлять через JS */
.popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Эффект "подрагивания" при появлении */
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-content h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.popup-content p {
    color: #7f8c8d;
    font-size: 15px;
    margin-bottom: 25px;
}

.popup-btn {
    width: 100%;
    padding: 12px;
}

/* Стили и анимация SVG галочки */
.popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.popup-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #2ecc71; /* Зеленый цвет */
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.popup-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: #2ecc71;
    fill: none;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

/* ======================================================= */
/* 10. ПЕРЕМЕННЫЕ И СТИЛИ ДЛЯ ТЕМНОЙ ТЕМЫ                   */
/* ======================================================= */

/* Кнопка переключателя темы */
.theme-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-left: auto; /* Прижимает кнопку вправо на мобильных */
    margin-right: 20px;
    z-index: 1100;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* По умолчанию (светлая тема) иконка солнца скрыта */
.theme-icon-light { display: none; }

/* СТИЛИ ДЛЯ ТЕМНОЙ ТЕМЫ (активируются классом .dark-theme на body) */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-theme .header {
    background-color: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-theme .logo { color: #fff; }
body.dark-theme .nav a { color: #bbb; }
body.dark-theme .nav a:hover { color: #e74c3c; }

body.dark-theme .card {
    background: #1e1e1e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
body.dark-theme .card h3 { color: #fff; }

body.dark-theme .gallery-section h2 { color: #fff; }

body.dark-theme .contact-section { background-color: #121212; }
body.dark-theme .contact-form input, 
body.dark-theme .contact-form textarea {
    background-color: #1e1e1e;
    border-color: #333;
    color: #fff;
}

body.dark-theme .popup-content {
    background-color: #1e1e1e;
    color: #fff;
}

/* Изменение отображения иконок при темной теме */
body.dark-theme .theme-icon-dark { display: none; }
body.dark-theme .theme-icon-light { display: inline-block; }

/* Стили мобильного меню для темной темы */
@media (max-width: 768px) {
    body.dark-theme .nav {
        background-color: #1e1e1e;
    }
    body.dark-theme .menu-toggle span {
        background-color: #fff;
    }
}


/* ======================================================= */
/* 11. КНОПКА НАВЕРХ / ВНИЗ                                 */
/* ======================================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: background-color 0.3s, transform 0.3s;
}

.scroll-top-btn:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

/* Плавный разворот стрелки */
.scroll-top-btn .arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Класс для разворота стрелки вверх */
.scroll-top-btn.up .arrow-icon {
    transform: rotate(180deg); /* Поворачиваем стрелку на 180 градусов */
}

/* Адаптация кнопки под темную тему */
body.dark-theme .scroll-top-btn {
    background-color: #34495e;
}
body.dark-theme .scroll-top-btn:hover {
    background-color: #2c3e50;
}

/* На маленьких мобильных экранах немного уменьшаем кнопку, чтобы она не мешала */
@media (max-width: 480px) {
    .scroll-top-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

<!--
/* ======================================================= */
/* 12. ВСПЛЫВАЮЩИЙ МУЗЫКАЛЬНЫЙ ПЛЕЕР                       */
/* ======================================================= */
.audio-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 5px 15px 5px 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1999;
    transition: all 0.3s ease;
}

/* Кнопка воспроизведения */
.player-toggle {
    width: 40px;
    height: 40px;
    background-color: #2ecc71; /* Зеленая кнопка */
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s;
}

/* Эффект пульсации, когда музыка играет */
.audio-player.playing .player-toggle {
    background-color: #e74c3c; /* Красная кнопка для паузы */
    animation: pulse 2s infinite;
}

.player-status {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

/* Анимация пульсации */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Адаптация плеера под темную тему */
body.dark-theme .audio-player {
    background-color: #1e1e1e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
body.dark-theme .player-status {
    color: #fff;
}

/* На мобильных устройствах делаем плеер чуть компактнее */
@media (max-width: 480px) {
    .audio-player {
        bottom: 15px;
        left: 15px;
        padding: 4px 10px 4px 4px;
    }
    .player-toggle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .player-status {
        font-size: 11px;
    }
}



/* ======================================================= */
/* 12. ВСПЛЫВАЮЩИЙ МУЗЫКАЛЬНЫЙ ПЛЕЕР С ГРОМКОСТЬЮ    2      */
/* ======================================================= */
.audio-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1999;
    max-width: 52px; /* Изначально плеер скрыт и видна только кнопка */
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Когда музыка включена, плеер плавно раскрывается во всю ширину */
.audio-player.playing {
    max-width: 220px;
    padding-right: 15px;
}

.player-toggle {
    width: 40px;
    height: 40px;
    background-color: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Кнопка не сжимается */
    transition: background-color 0.3s, transform 0.3s;
}

.audio-player.playing .player-toggle {
    background-color: #e74c3c;
    animation: pulse 2s infinite;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-status {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

/* Кастомизация ползунка громкости */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 5px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

/* Ползунок (кругляшок) для Chrome/Safari/Edge/мобильных браузеров */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e74c3c;
    transition: transform 0.1s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* Анимация пульсации */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Поддержка темной темы */
body.dark-theme .audio-player {
    background-color: #1e1e1e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
body.dark-theme .player-status { color: #fff; }
body.dark-theme .volume-slider { background: #444; }
body.dark-theme .volume-slider::-webkit-slider-thumb { background: #34495e; }

/* Мобильная адаптация */
@media (max-width: 480px) {
    .audio-player {
        bottom: 15px;
        left: 15px;
    }
    .audio-player.playing {
        max-width: 180px; /* На смартфонах делаем чуть уже, чтобы не перекрывать экран */
    }
    .volume-slider {
        width: 80px;
    }
}

-->


/* ======================================================= */
/* 12. ВСПЛЫВАЮЩИЙ МУЗЫКАЛЬНЫЙ ПЛЕЕР С НАЗВАНИЕМ ТРЕКА       */
/* ======================================================= */
.audio-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1999;
    max-width: 56px; /* В скрытом состоянии видна только кнопка */
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* При воспроизведении плеер открывается шире, чтобы поместилось название */
.audio-player.playing {
    max-width: 280px;
    padding-right: 15px;
}

.player-toggle {
    width: 40px;
    height: 40px;
    background-color: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: background-color 0.3s, transform 0.3s;
}

.audio-player.playing .player-toggle {
    background-color: #e74c3c;
    animation: pulse 2s infinite;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 200px; /* Фиксированная ширина информационного блока */
    overflow: hidden;
}

/* Контейнер-маска для бегущей строки */
.track-title-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

/* Бегущая строка с названием трека */
.track-title {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    color: #2c3e50;
    padding-left: 100%; /* Начинаем движение за пределами видимости */
    animation: marquee 10s linear infinite;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.player-status {
    font-size: 11px;
    color: #7f8c8d;
    white-space: nowrap;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e74c3c;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Поддержка темной темы */
body.dark-theme .audio-player { background-color: #1e1e1e; }
body.dark-theme .track-title { color: #fff; }
body.dark-theme .player-status { color: #bbb; }
body.dark-theme .volume-slider { background: #444; }
body.dark-theme .volume-slider::-webkit-slider-thumb { background: #34495e; }

/* Мобильная адаптация под экраны смартфонов */
@media (max-width: 480px) {
    .audio-player {
        bottom: 15px;
        left: 15px;
    }
    .audio-player.playing {
        max-width: 210px; /* Сужаем на мобильных, чтобы не занимать экран */
    }
    .player-info {
        width: 130px;
    }
}




			