/* style.css - Оптимизированная версия с анимациями и доработками */

/* ---------- Сброс стилей и базовые настройки ---------- */
/* Настройка шрифтов для всех устройств */
/* Прямое подключение шрифтов для всех устройств */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fef7fa 0%, #f8f1fe 100%);
    color: #331a3f;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #a3245d;
    transition: color 0.3s ease;
}

a:hover {
    color: #7b1fa2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Контейнер ---------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- Шрифты заголовков ---------- */
/* h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: #4a0e2e;
    font-weight: 700;
} */

.logo h1,
.footer-logo h1 {
    font-family: 'Cinzel Decorative', cursive;
    color: #a3245d;
    font-size: 1.8rem;
    margin: 0;
}

.logo a,
.footer-logo a {
    color: inherit;
    text-decoration: none;
}

/* Стили для .domain-hint */
.logo .domain-hint,
.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #a3245d;
    font-weight: 500;
    margin-top: 0px;
    letter-spacing: 0.5px;
    display: block;
    transition: color 0.3s ease;
}

h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Cinzel Decorative', cursive;
    color: #a3245d;
}

/* Декоративная линия под заголовком секции */
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #a3245d, #d869a5);
    border-radius: 2px;
}

/* ---------- Верхняя панель ---------- */
.top-bar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1010;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .contact-info a,
.top-bar .location-info {
    color: #4a0e2e;
    margin-right: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.top-bar .contact-info i,
.top-bar .location-info i {
    color: #a3245d;
    font-size: 1.1em;
    margin-right: 8px;
}

.top-bar .social-links a {
    color: #a3245d;
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 1.4rem;
    margin-left: 18px;
    display: inline-flex;
    align-items: center;
}

.top-bar .social-links a:hover {
    color: #7b1fa2;
    transform: scale(1.1);
}

/* ---------- Навигация ---------- */
#header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

nav {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 35px;
}

.nav-menu li a {
    font-size: 1rem;
    font-weight: 400;
    color: #4a0e2e;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #a3245d;
    transition: width 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #a3245d;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* Исправлена стилизация кнопки "Записаться" в навигации */
.nav-menu li a.cta {
    background: linear-gradient(45deg, #a3245d, #c24ba1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(163, 36, 93, 0.3);
    transition: all 0.3s ease;
}

.nav-menu li a.cta:hover {
    background: linear-gradient(45deg, #7b1fa2, #a3245d);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(123, 31, 162, 0.4);
    color: #fff;
}

.nav-menu li a.cta::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #a3245d;
}

/* ---------- Геро-секция с анимациями ---------- */
.hero {
    text-align: center;
    padding: 100px 20px;
    position: relative;
    color: #fff;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Видео фон */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 10, 30, 0.6);
    z-index: 0;
    overflow: hidden;
}

.hero-overlay video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* Анимация приветствия с рукой (исправлено) */
.greeting-animation {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpGreeting 1s ease-out forwards;
}

@keyframes fadeInUpGreeting {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wave {
    display: inline-block;
    font-size: 3rem;
    margin-bottom: 20px;
    animation: waveHand 2.5s ease-in-out 1s, fadeOut 1s ease-out 5s forwards;
    transform-origin: 70% 70%;
}

@keyframes waveHand {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(20deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(20deg);
    }

    40% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.greeting-animation h2 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    font-family: 'Cinzel Decorative', cursive;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.greeting-animation p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #ffffff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

/* Анимированный текст с дымом (исправлены тайминги) */
.animated-text-container {
    position: relative;
    min-height: 200px;
    margin-bottom: 50px;
}

.animated-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(-30px);
    text-align: left;
    padding: 15px 25px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.animated-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.animated-text .emoji {
    display: inline-block;
    font-size: 1.6rem;
    margin-right: 10px;
    vertical-align: middle;
    transform: translateY(-2px);
}

/* Анимация текста с эффектом дыма (исправлены тайминги) */
@keyframes fadeInWithSmoke {
    0% {
        opacity: 0;
        transform: translateX(-50px);
        filter: blur(10px);
    }

    30% {
        opacity: 0.7;
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes fadeOutWithSmoke {
    0% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }

    70% {
        opacity: 0.3;
        filter: blur(5px);
    }

    100% {
        opacity: 0;
        transform: translateX(50px);
        filter: blur(10px);
    }
}

.animated-text.active {
    animation: fadeInWithSmoke 1s forwards, fadeOutWithSmoke 1s forwards 4s;
    z-index: 2;
}

/* Кнопка призыва к действию */
.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpCta 1s ease-out 1s forwards;
}

@keyframes fadeInUpCta {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta {
    background: linear-gradient(45deg, #a3245d, #c24ba1);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(163, 36, 93, 0.4);
    display: inline-block;
}

.cta:hover {
    background: linear-gradient(45deg, #7b1fa2, #a3245d);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.5);
    transform: translateY(-3px);
    color: #fff;
}

.cta:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    color: #888;
}

/* ---------- Основные секции ---------- */
section {
    padding: 80px 0;
    position: relative;
}

section.section-alt {
    background-color: rgba(255, 255, 255, 0.5);
}

/* ---------- Специальное предложение (улучшено) ---------- */
#special-offer {
    background: linear-gradient(135deg, #fdf2f7 0%, #f8eafa 100%);
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
}

.special-offer-content {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(163, 36, 93, 0.1);
    border: 1px solid #f0e6fa;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseIcon {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 5px 15px rgba(163, 36, 93, 0.3);
    }

    50% {
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 8px 25px rgba(163, 36, 93, 0.4);
    }

    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 5px 15px rgba(163, 36, 93, 0.3);
    }
}

.offer-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #a3245d, #c24ba1);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(163, 36, 93, 0.3);
    z-index: 2;
    animation: pulseIcon 2s ease-in-out infinite;
}

.offer-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 2rem;
    color: #a3245d;
    margin-top: 30px;
    margin-bottom: 15px;
}

.offer-description {
    font-size: 1.1rem;
    color: #4a0e2e;
    margin-bottom: 15px;
    line-height: 1.6;
}

.offer-description strong {
    font-weight: 600;
    color: #7b1fa2;
}

.offer-validity {
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Исправленный стиль для строки предложения */
.offer-validity strong {
    display: inline-block;
    font-weight: 500;
    color: #fff;
    background-color: #a3245d;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
    line-height: 1.5;
    transition: transform 0.2s ease;
    text-align: center;
}

.offer-validity strong:hover {
    transform: scale(1.03);
}

.offer-validity strong span#current-month-genitive {
    font-weight: 700;
}

.offer-cta {
    margin-top: 10px;
    font-size: 1.05rem;
}

.offer-cta i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.offer-cta:hover i {
    transform: translateX(5px);
}

/* ---------- О нас и видеоплеер ---------- */
/* --- О мастере (Улучшенный дизайн) --- */
#about .container {
    max-width: 950px;
}

#about .about-content {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    padding: 40px 0;
}

#about .about-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid #fff;
    box-shadow: 0 10px 35px rgba(163, 36, 93, 0.25);
    flex-shrink: 0;
    z-index: 2;
    margin-top: 30px;
    margin-left: -20px;
    position: relative;
}

#about .about-text-content {
    background-color: #fff;
    padding: 40px 40px 40px 80px;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    flex-grow: 1;
    margin-left: -60px;
    border: 1px solid #f8eafa;
}

#about .about-text-content::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #fdf2f7, #f8eafa);
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1;
    filter: blur(15px);
    pointer-events: none;
}

/* Общий стиль для параграфов в блоке */
#about .about-text-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem; /* Теперь этот размер будет у ВСЕХ параграфов */
    text-align: left;
    margin-bottom: 20px; /* Стандартный отступ */
    color: #4a0e2e; /* Стандартный цвет */
    line-height: 1.8;
    font-weight: 400; /* Стандартная жирность (если не переопределена базовыми стилями) */
}

/* --- Правило для p:first-of-type УДАЛЕНО --- */
/*
#about .about-text-content p:first-of-type {
    font-size: 1.15rem;
    font-weight: 500;
    color: #331a3f;
    margin-bottom: 25px;
}
*/

/* Стиль для упоминания бренда */
.brand-mention {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    color: #a3245d;
    white-space: nowrap;
}

/* Кнопка для знакомства с мастером */
.meet-master-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    padding: 12px 30px;
    background: linear-gradient(45deg, #a3245d, #c24ba1);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(163, 36, 93, 0.3);
}

.meet-master-btn:hover {
    background: linear-gradient(45deg, #7b1fa2, #a3245d);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.4);
}

.meet-master-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.meet-master-btn:hover i {
    transform: translateX(5px);
}

/* --- Адаптация секции "О мастере" --- */

@media (max-width: 992px) {
    #about .about-photo {
        width: 260px;
        height: 260px;
        margin-left: -15px;
        margin-top: 20px;
    }

    #about .about-text-content {
        padding: 35px 35px 35px 60px;
        margin-left: -50px;
    }

    #about .about-text-content::before {
        width: 150px;
        height: 150px;
        top: -30px;
        right: -40px;
    }
}

@media (max-width: 768px) {
    #about .about-content {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
    }

    #about .about-photo {
        width: 220px;
        height: 220px;
        margin: 0 auto 56px auto; /* сверху 0px, снизу 56px — увеличили снизу! */
        z-index: 1;
        border-width: 6px;
    }

    #about .about-text-content {
        padding: 60px 25px 30px 25px;
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 0;
        border-radius: 15px;
    }

    #about .about-text-content::before {
        top: auto;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 120px;
        opacity: 0.4;
    }

    #about .meet-master-btn {
        margin: 20px auto 0 auto;
    }
}


@media (max-width: 480px) {
     #about .about-photo {
        width: 180px;
        height: 180px;
        border-width: 5px;
     }
     #about .about-text-content {
        padding: 50px 20px 25px 20px;
        margin-top: -30px;
     }
      #about .about-text-content p {
        font-size: 0.95rem; /* Еще немного уменьшаем на самых маленьких экранах */
    }
     /* Правило :first-of-type удалено
     #about .about-text-content p:first-of-type {
        font-size: 1.05rem;
     }
     */
     #about .about-text-content::before {
         width: 100px;
         height: 100px;
         bottom: -20px;
     }
}

/* Видеоплеер */
.video-player-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.video-player-container.active {
    display: block;
}

.video-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.video-player-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.video-player-container.active .video-player-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(45deg, #a3245d, #c24ba1);
    color: #fff;
}

.video-player-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
}

.close-video-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-video-btn:hover {
    transform: scale(1.1);
}

.video-player-body {
    padding: 0;
    background-color: #000;
}

#masterVideo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
}

/* Стили управления видеоплеера */
#masterVideo::-webkit-media-controls-panel {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

#masterVideo::-webkit-media-controls-play-button,
#masterVideo::-webkit-media-controls-volume-slider-container,
#masterVideo::-webkit-media-controls-mute-button,
#masterVideo::-webkit-media-controls-timeline,
#masterVideo::-webkit-media-controls-current-time-display,
#masterVideo::-webkit-media-controls-time-remaining-display,
#masterVideo::-webkit-media-controls-fullscreen-button {
    opacity: 0.85;
}

/* ---------- Услуги с модальными окнами ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    border-top: 4px solid #d869a5;
    position: relative;
}

.service-icon {
    font-size: 2.5rem;
    color: #a3245d;
    margin-bottom: 20px;
    line-height: 1;
    display: inline-block;
    padding: 15px;
    background-color: #fdf2f7;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.service-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #4a0e2e;
}

.service-item p {
    font-size: 0.95rem;
    color: #555;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border-top-color: #a3245d;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Кнопка информации об услуге */
.service-info-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, #a3245d, #c24ba1);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(163, 36, 93, 0.3);
}

.service-info-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(163, 36, 93, 0.4);
}

/* Модальное окно для услуг */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.service-modal.active {
    display: block;
}

.service-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.service-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.service-modal.active .service-modal-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(45deg, #a3245d, #c24ba1);
    color: #fff;
}

.service-modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal-btn:hover {
    transform: scale(1.1);
}

.service-modal-body {
    padding: 30px;
}

.service-modal-body p {
    font-size: 1.05rem;
    color: #4a0e2e;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-modal-body ul {
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 10px;
}

.service-modal-body ul li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.service-modal-body ul li::before {
    content: '✓';
    color: #a3245d;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-modal-recommendation {
    font-size: 1.1rem;
    font-weight: 600;
    color: #7b1fa2;
    background-color: #f8eafa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.service-modal-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.service-modal-cta {
    display: inline-block;
    padding: 12px 30px;
}

/* ---------- Портфолио с автослайдером ---------- */
.portfolio-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 1px solid #d869a5;
    color: #a3245d;
    padding: 10px 25px;
    margin: 0 8px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #a3245d;
    color: #fff;
    border-color: #a3245d;
}

/* Swiper портфолио */
.portfolio-swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.portfolio-grid.swiper-wrapper {
    display: flex;
    padding: 5px 0;
    position: relative;
}

.swiper-slide {
    flex-shrink: 0;
    width: auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: visible;
}

.swiper-slide .portfolio-item {
    width: 100%;
    height: 300px;
    max-width: 350px;
    margin: 0 auto;
    transform: none !important;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.swiper-slide .portfolio-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.swiper-slide .portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.swiper-slide .portfolio-item:hover img {
    transform: scale(1.05);
}

.swiper-slide .portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 14, 46, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-size: 1.5rem;
    border-radius: 10px;
}

.swiper-slide .portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
}

/* Пагинация */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    background-color: #d869a5;
    opacity: 0.6;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #a3245d;
    opacity: 1;
}

/* Кнопки навигации */
.swiper-button-prev,
.swiper-button-next {
    color: #a3245d;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    margin-top: -20px !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #7b1fa2;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px !important;
    font-weight: 900;
}

.portfolio-loading {
    text-align: center;
    width: 100%;
    color: #777;
    padding: 20px;
}

/* Лайтбокс для портфолио */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.93);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 85%;
    max-width: 800px;
    animation-name: zoom;
    animation-duration: 0.5s;
}

@keyframes zoom {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-caption {
    margin: 15px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 0.95rem;
    min-height: 40px;
}

/* ---------- Отзывы в стиле Instagram ---------- */
.reviews-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.reviews-slider {
    width: 100%;
    padding-bottom: 60px;
}

.instagram-review {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.instagram-review:hover {
    transform: translateY(-6px);
}

.instagram-review-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.instagram-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #d869a5;
}

.instagram-review-info {
    flex-grow: 1;
}

.instagram-review-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: #4a0e2e;
    display: block;
    line-height: 1.4;
}

.instagram-review-date {
    font-size: 0.75rem;
    color: #999;
    display: block;
}

.instagram-icon {
    color: #d869a5;
    font-size: 1.2rem;
}

.instagram-review-content {
    padding: 15px;
}

.instagram-review-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.instagram-review-rating {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.instagram-review-rating i {
    color: #ffbf00;
    font-size: 0.8rem;
    margin-right: 2px;
}

.instagram-review-rating span {
    font-size: 0.85rem;
    color: #777;
    margin-left: 5px;
}

/* Анимация reviews appear/disappear */
@keyframes reviewsAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.instagram-review {
    opacity: 0;
    animation: reviewsAppear 0.6s forwards;
}

.reviews-slider .swiper-pagination {
    bottom: 0 !important;
}

/* ---------- Карта местоположения ---------- */
.map-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    margin-bottom: 40px;
    border: 1px solid #f0e6fa;
}

.map-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #4a0e2e;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.map-address {
    text-align: center;
    color: #555;
    font-size: 1rem;
    margin-bottom: 25px;
}

.map-address i {
    margin-right: 8px;
    color: #a3245d;
}

.map-widget {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.map-widget iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 400px;
    border: none;
}

/* ---------- Цены и специальные предложения ---------- */
#prices {
    background: linear-gradient(135deg, #fef7fa 0%, #f8f1fe 100%);
}

.prices-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #4a0e2e;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.prices-note {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 40px;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.price-card {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid #f0e6fa;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 4px solid #d869a5;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(163, 36, 93, 0.1);
}

.price-card-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a3245d;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-card-category i {
    margin-right: 6px;
}

.price-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #4a0e2e;
    margin-bottom: 12px;
    flex-grow: 0;
    min-height: 60px;
}

.price-card-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    min-height: 40px;
}

.price-card-pricing {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.price-card-pricing .regular-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a0e2e;
}

.price-card-pricing .original-price {
    font-size: 1rem;
    color: #888;
    text-decoration: line-through;
    margin-right: 10px;
    font-weight: 400;
}

.savings-badge {
    display: inline-block;
    background-color: #e8f5e9;
    color: #388e3c;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Стили для комплексных карточек */
.price-card.complex {
    border-top-color: #7b1fa2;
    background-color: #fdf7ff;
}

.price-card.complex .price-card-category {
    color: #7b1fa2;
}

.price-card.complex .savings-badge {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* Чекбокс для новых клиентов */
.first-time-discount {
    background-color: #f8eafa;
    border: 1px dashed #d8bde5;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    text-align: center;
}

.first-time-discount label.first-time-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #7b1fa2;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.first-time-discount input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #c298b0;
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    position: relative;
    top: -1px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.first-time-discount input[type="checkbox"]:checked {
    background-color: #a3245d;
    border-color: #a3245d;
}

.first-time-discount input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.first-time-discount label i {
    margin-right: 8px;
    color: #ffbf00;
    font-size: 1.2em;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(45deg, #a3245d, #c24ba1);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 15px;
    margin-left: 10px;
    transition: background 0.3s ease;
}

.first-time-discount input[type="checkbox"]:checked~.discount-badge {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

/* Кнопка записи в карточке цен */
.price-card-cta {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

.price-card-cta:hover {
    transform: translateY(-2px);
}

/* ---------- Контакты / Форма записи ---------- */
#contact {
    background: url('img/contact-bg.jpg') center/cover no-repeat fixed;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(253, 242, 247, 0.92);
    z-index: 0;
}

#contact .container {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.05rem;
    color: #4a0e2e;
}

.booking-form {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 30px 40px 40px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    overflow: hidden;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group>*:last-child {
    margin-bottom: 0;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a0e2e;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 2px;
}

/* Стили полей ввода */
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form textarea,
.booking-form select {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    background-color: #fff;
    color: #331a3f;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
    color: #aaa;
    opacity: 1;
}

.booking-form input[type="text"]:focus,
.booking-form input[type="email"]:focus,
.booking-form input[type="tel"]:focus,
.booking-form textarea:focus,
.booking-form select:focus {
    outline: none;
    border-color: #a3245d;
    box-shadow: 0 0 0 3px rgba(163, 36, 93, 0.15);
}

.booking-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

.form-submit-btn {
    margin-top: 15px;
}

#form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

#form-status.success {
    color: #2ecc71;
}

#form-status.error {
    color: #e74c3c;
}

/* Пошаговая форма */
.progress-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.progress-step {
    text-align: center;
    position: relative;
    z-index: 2;
    color: #aaa;
    font-size: 0.9rem;
    width: 33%;
    font-weight: 500;
    transition: color 0.4s ease;
}

.progress-step span {
    display: block;
    width: 35px;
    height: 35px;
    line-height: 33px;
    border: 2px solid #eee;
    border-radius: 50%;
    margin: 0 auto 8px auto;
    background-color: #fff;
    font-weight: bold;
    transition: all 0.4s ease;
}

.progress-step.active {
    color: #a3245d;
    font-weight: 600;
}

.progress-step.active span {
    background-color: #a3245d;
    border-color: #a3245d;
    color: #fff;
}

.progress-step.completed span {
    background-color: #7b1fa2;
    border-color: #7b1fa2;
    color: #fff;
}

.progress-step.completed {
    color: #7b1fa2;
}

/* Линия прогресса */
.progress-line-container {
    position: absolute;
    top: 18px;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: #eee;
    z-index: 0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-line {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #7b1fa2, #a3245d, #d869a5);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Шаги формы */
.form-step {
    display: none;
    /* скрыто по умолчанию */
}

.form-step.active {
    display: block;
    /* показано, когда активно */
}

.step-title {
    font-family: 'Playfair Display', serif;
    color: #4a0e2e;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.step-hint {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    margin-top: 15px;
}

.step-error {
    color: #e74c3c;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 15px;
    min-height: 1.2em;
    font-weight: 500;
}

/* Выбор услуги (Шаг 1) */
.service-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.service-selection label {
    display: flex;
    align-items: center;
    background-color: #fdf2f7;
    padding: 15px; /* Убираем padding-right */
    border-radius: 8px;
    border: 1px solid #f0e6fa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #4a0e2e;
    margin-bottom: 0;
    position: relative; /* Оставляем для :hover */
    /* padding-right: 80px; */ /* УДАЛЕНО */
    justify-content: flex-start;
}

.service-selection .price-details {
    display: flex;
    flex-direction: column; /* Цены одна под другой */
    align-items: flex-end; /* Выравнивание по правому краю */
    flex-shrink: 0; /* Не сжиматься */
    margin-left: auto; /* Прижимает блок цен к правому краю label */
    text-align: right;
}

.service-selection .service-name {
    flex-grow: 1; /* Занимает доступное пространство */
    margin-left: 8px; /* Отступ от иконки */
    margin-right: 15px; /* Отступ до цен */
    text-align: left;
}

.service-selection label:hover {
    background-color: #f8eafa;
    border-color: #d8bde5;
    transform: scale(1.02);
}

.service-selection input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #c298b0;
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    position: relative;
    top: -1px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.service-selection input[type="checkbox"]:checked {
    background-color: #a3245d;
    border-color: #a3245d;
}

.service-selection input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-selection label i {
    margin-right: 8px;
    color: #a3245d;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.service-selection label input[type="checkbox"]:checked+i {
    color: #7b1fa2;
}

/* Отображение цены в выборе услуги */
.service-selection .service-price {
    font-weight: 600;
    color: #a3245d;
    font-size: 0.95rem;
    /* position: absolute; */ /* УДАЛЕНО */
    /* right: 15px; */ /* УДАЛЕНО */
    /* top: 50%; */ /* УДАЛЕНО */
    /* transform: translateY(-50%); */ /* УДАЛЕНО */
    /* background-color: rgba(255, 255, 255, 0.7); */ /* УДАЛЕНО */
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
    line-height: 1.3;
    position: static; /* Возвращаем в поток */
    display: block;
    /* z-index: 1; */ /* УДАЛЕНО */
}

.service-selection .complex-original {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
    font-size: 0.8rem;
    /* right: 90px; */ /* УДАЛЕНО */
    padding: 0;
    white-space: nowrap;
    line-height: 1.2;
    position: static; /* Возвращаем в поток */
    display: block;
    order: -1; /* Помещаем НАД основной ценой */
    margin-bottom: 2px;
    /* z-index: 1; */ /* УДАЛЕНО */
    /* top: 50%; */ /* УДАЛЕНО */
    /* transform: translateY(-50%); */ /* УДАЛЕНО */
}
#contact .service-selection .complex-original {
    display: none !important;
}

.service-selection label:not([data-original-price]) .complex-original {
    display: none;
}
.service-selection label[data-original-price] .complex-original {
    display: block;
}

/* Стиль для цены при применении скидки (остается без изменений) */
.service-selection label.discount-applied .service-price:not(.complex-original) {
    color: #27ae60;
    font-weight: 700;
}

.service-selection label.discount-applied .service-price:not(.complex-original)::before {
    content: "✨ ";
}

.service-selection label .complex-original {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
    font-size: 0.8rem;
    right: 90px;
    background-color: transparent;
    padding: 0;
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
.header-social {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 30px;
}
.header-social a {
    color: #a3245d;
    font-size: 1.4rem;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}
.header-social a:hover {
    color: #7b1fa2;
    transform: scale(1.15);
}
.header-social .fa-phone-alt {
    color: #27ae60;
    margin-right: 6px;
    font-size: 1.1em;
}
.header-social .header-phone {
    font-size: 1.05rem;
    font-weight: 600;
    color: #4a0e2e;
    background: #fdf2f7;
    border-radius: 20px;
    padding: 6px 14px 6px 10px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    transition: background 0.3s, color 0.3s;
    text-decoration: none;
}
.header-social .header-phone:hover {
    background: #a3245d;
    color: #fff;
}
.header-social .header-phone:hover .fa-phone-alt {
    color: #fff;
}
.header-social .header-phone span {
    margin-left: 3px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .header-social {
        margin-left: 10px;
        gap: 14px;
    }
    .header-social .header-phone {
        font-size: 0.98rem;
        padding: 5px 10px 5px 8px;
    }
}

/* --- Адаптация для мобильных --- */
@media (max-width: 768px) {
    .header-social {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-left: 0;
        margin-bottom: 0;
        display: flex;
    }
    .header-social .social-icons-row {
        display: flex;
        justify-content: center;
        gap: 22px;
        width: 100%;
        margin-bottom: 12px;
    }
    .header-social .social-icons-row a {
        font-size: 2.2rem;
        margin: 0;
    }
    .header-social .header-phone {
        font-size: 1.1rem;
        margin-top: 0;
        margin-left: 0;
        padding: 10px 18px 10px 12px;
        background: #fdf2f7;
        color: #4a0e2e;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(163,36,93,0.08);
        display: flex;
        align-items: center;
    }
    .header-social .fa-phone-alt {
        font-size: 1.3em;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .header-social .social-icons-row a {
        font-size: 2.4rem;
    }
    .header-social .header-phone {
        font-size: 1rem;
        padding: 9px 12px 9px 10px;
    }
}

/* Стиль для цены при применении скидки (остается без изменений) */
.service-selection label.discount-applied .service-price:not(.complex-original) {
    color: #27ae60;
    font-weight: 700;
}

.service-selection label.discount-applied .service-price:not(.complex-original)::before {
    content: "✨ ";
}
.service-selection label[data-original-price] .complex-original {
    display: inline-block;
}

/* Стиль для цены при применении скидки */
.service-selection label.discount-applied .service-price {
    color: #27ae60;
    font-weight: 700;
}

.service-selection label.discount-applied .service-price::before {
    content: "✨ ";
}

/* Выбор даты и времени (Шаг 2) */
.flatpickr-wrapper {
    position: relative;
    width: 100%;
}
.flatpickr-wrapper input.flatpickr-input {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#date-time-picker {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
    z-index: -1;
    pointer-events: none;
}

body.ios-device #date-time-picker {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: auto;
}

.flatpickr-trigger-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #555;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}


.flatpickr-trigger-btn:hover {
    border-color: #bbb;
}

.flatpickr-trigger-btn:focus,
.flatpickr-wrapper:focus-within .flatpickr-trigger-btn {
    outline: none;
    border-color: #a3245d;
    box-shadow: 0 0 0 3px rgba(163, 36, 93, 0.15);
}

.flatpickr-trigger-btn i.fa-calendar-alt {
    margin-right: 10px;
    color: #a3245d;
    font-size: 1.1em;
}

#flatpickr-display-value {
    flex-grow: 1;
}

.flatpickr-trigger-btn.has-value #flatpickr-display-value {
    color: #331a3f;
    font-weight: 500;
}

/* Стилизация календаря Flatpickr */
.flatpickr-calendar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(163, 36, 93, 0.18);
    border: 1px solid #e3c7e0;
    font-family: 'Poppins', sans-serif;
    z-index: 1005;
    min-width: 320px;
    padding-bottom: 10px;
    font-size: 1.08rem;
    min-width: 320px;
    max-width: 95vw;
    overflow: visible !important;
}
.flatpickr-day {
    border-radius: 7px;
    transition: background 0.2s, color 0.2s;
}
.flatpickr-weekdays {
    font-weight: 600;
    color: #a3245d;
}
.flatpickr-months {
    background: linear-gradient(90deg, #fdf2f7 0%, #f8eafa 100%);
    border-radius: 12px 12px 0 0;
}
.flatpickr-days {
    padding-bottom: 10px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: linear-gradient(45deg, #a3245d, #c24ba1);
    border-color: #a3245d;
    color: #fff;
}

.flatpickr-day:hover {
    background: #fdf2f7;
    border-color: #f0e6fa;
}

.flatpickr-day.today {
    border-color: #a3245d;
    color: #a3245d;
}
/* Кнопка "Готово" (confirmDate plugin) */
.flatpickr-confirm {
    background: linear-gradient(45deg, #a3245d, #c24ba1);
    color: #fff !important;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 28px 10px 18px;
    margin: 12px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(163, 36, 93, 0.10);
    transition: background 0.3s, color 0.3s, transform 0.2s;
    cursor: pointer;
    position: relative;
}

.flatpickr-confirm .fa-check {
    display: none !important;
}

.flatpickr-confirm:hover {
    background: linear-gradient(45deg, #7b1fa2, #a3245d);
    color: #fff !important;
    transform: translateY(-2px) scale(1.002);
}
.flatpickr-day.today:hover {
    background: #f8eafa;
    border-color: #d8bde5;
    color: #7b1fa2;
}

.flatpickr-day.selected.today {
    background: #7b1fa2;
    border-color: #7b1fa2;
    color: #fff;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
    background: #fdf2f7;
}

/* Кнопки навигации формы */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    align-items: center;
}

.form-navigation .next-btn,
.form-navigation .form-submit-btn {
    min-width: 120px;
    text-align: center;
}

.form-navigation .prev-btn {
    background: none;
    border: 1px solid #ccc;
    color: #777;
    padding: 13px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.form-navigation .prev-btn:hover {
    background-color: #eee;
    border-color: #bbb;
    color: #555;
}

.form-navigation .prev-btn i,
.form-navigation .next-btn i {
    margin-left: 5px;
    margin-right: 5px;
    transition: transform 0.2s ease-in-out;
}

.form-navigation .prev-btn i {
    margin-right: 8px;
    margin-left: -3px;
}

.form-navigation .next-btn i {
    margin-left: 8px;
    margin-right: -3px;
}

.form-navigation button:not(:disabled):hover i {
    transform: scale(1.1);
}

/* Состояния отключенных кнопок */
.form-navigation button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.form-navigation .cta:disabled {
    background: #bd91ab;
    box-shadow: none;
    color: #f0e6fa;
    transform: none;
}

.form-navigation .prev-btn:disabled {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #bbb;
}

/* Подвал сайта */
footer {
    background: #4a0e2e;
    color: #f0e6fa;
    text-align: center;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-logo h1 {
    color: #fdf2f7;
    font-size: 1.6rem;
}

.footer-links a {
    color: #f0e6fa;
    margin: 0 10px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-social a {
    color: #f0e6fa;
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
    transform: scale(1.1);
}

.copyright {
    font-size: 0.85rem;
    color: #c7bacc;
    border-top: 1px solid #6a2e4d;
    padding-top: 20px;
    margin-top: 20px;
}

/* Анимация появления элементов */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация тряски формы при ошибке */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.form-shake {
    animation: shake 0.5s ease-in-out;
}

.input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.consent.input-error label {
    color: #e74c3c;
}

.consent.input-error input[type="checkbox"] {
    border-color: #e74c3c;
}

/* Мобильная адаптация */
@media (max-width: 992px) {
    h2.section-title {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-photo {
        margin-bottom: 30px;
        width: 200px;
        height: 200px;
    }

    #about p {
        text-align: center;
    }

    .offer-title {
        font-size: 1.8rem;
    }

    .offer-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
    }

    h1,
    h2,
    h3,
    h4 {
        font-family: 'Playfair Display', serif;
        color: #4a0e2e;
    }

    .logo h1,
    .footer-logo h1 {
        font-family: 'Cinzel Decorative', cursive;
        font-size: 2.3rem;
    }

    .logo .domain-hint,
    .footer-logo span {
        font-size: 1.25rem;
        margin-top: 2px;
    }

    h2.section-title {
        font-size: 2rem;
        margin-bottom: 40px;
        padding-bottom: 10px;
    }

    h2.section-title::after {
        width: 60px;
        height: 2px;
    }

    /* Верхняя панель */
    .top-bar {
        font-size: 0.8rem;
        padding: 8px 0;
    }

    .top-bar-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .top-bar .contact-info a {
        font-size: 0.9rem;
        margin-right: 10px;
    }

    .top-bar .location-info {
        display: none;
    }

    .top-bar .social-links a {
        font-size: 1.3rem;
        margin-left: 12px;
    }

    /* Мобильное меню */
    .nav-menu {
        display: none;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        padding: 15px 0;
        z-index: 999;
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.4s ease-out;
        opacity: 0;
    }

    .nav-menu.active {
        display: flex;
        max-height: calc(100vh - 100px);
        padding: 15px 0;
        opacity: 1;
    }

    body.no-scroll {
        overflow: hidden;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 20px;
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        color: #4a0e2e;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    .nav-menu li a::after {
        display: none;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu li a:hover,
    .nav-menu li a:focus {
        background-color: #fdf2f7;
        color: #a3245d;
        outline: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Геро-секция */
    .hero {
        padding: 80px 15px;
        min-height: 60vh;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    /* Секции */
    section {
        padding: 60px 0;
    }

    #special-offer {
        padding: 50px 0;
    }

    .special-offer-content {
        padding: 40px 20px 30px 20px;
    }

    .offer-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        top: -25px;
    }

    .offer-title {
        font-size: 1.6rem;
        margin-top: 25px;
    }

    .offer-description {
        font-size: 1rem;
    }

    .offer-validity {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .offer-validity strong {
        padding: 2px 6px;
    }

    /* Сетки */
    .services-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-item,
    .review-item {
        padding: 30px 20px;
    }

    .service-item {
        border-top-width: 3px;
    }

    .service-icon {
        font-size: 2.2rem;
        padding: 12px;
        margin-bottom: 15px;
    }

    .service-item h3 {
        font-size: 1.3rem;
    }

    .review-item {
        padding: 25px;
    }

    .review-item p {
        font-size: 0.9rem;
        padding-left: 20px;
    }

    .review-item p::before {
        font-size: 1rem;
    }

    .review-author h4 {
        font-size: 1rem;
    }

    /* Портфолио */
    .portfolio-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
        margin: 0;
    }

    /* Высота Swiper на мобильных */
    .swiper-slide .portfolio-item {
        height: 280px;
    }

    /* Форма на мобильных */
    .booking-form {
        padding: 25px 20px;
    }

    .progress-line-container {
        top: 15px;
        left: 5%;
        width: 90%;
    }

    .progress-bar {
        margin-bottom: 30px;
    }

    .progress-step {
        font-size: 0.75rem;
        padding: 0 5px;
        flex-shrink: 1;
    }

    .progress-step span {
        width: 30px;
        height: 30px;
        line-height: 27px;
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .service-selection {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    

    /* #contact .service-selection .service-name {
        margin-right: 25px; /* Было 15px, увеличиваем отступ справа */
        /* Можно добавить немного гибкости, если текст очень длинный */
        /* flex-basis: 60%; /* Ограничить базовую ширину текста */
    } */
    
    /* #contact .service-selection label {
        padding-left: 10px;  /* Уменьшаем отступ слева */
        /* padding-right: 10px; Уменьшаем отступ справа */
    /* } */ */


    /* Стили мобильных инпутов */
    .booking-form input[type="text"],
    .booking-form input[type="email"],
    .booking-form input[type="tel"],
    .booking-form textarea,
    .booking-form select,
    .flatpickr-trigger-btn {
        padding: 14px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .form-navigation {
        flex-direction: column-reverse;
        gap: 15px;
        align-items: stretch;
    }

    .form-navigation .next-btn,
    .form-navigation .prev-btn,
    .form-navigation .form-submit-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Калдендарь на мобильных */
    .flatpickr-calendar.open {
        max-width: 95vw;
    }

    /* Подвал */
    footer {
        padding: 30px 0 15px 0;
        margin-top: 40px;
    }

    .footer-content {
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-logo h1 {
        font-size: 1.5rem;
    }

    .footer-links {
        font-size: 0.9rem;
    }

    .footer-links a {
        margin: 0 8px;
    }

    .footer-social {
        gap: 20px;
    }

    .footer-social a {
        font-size: 1.2rem;
    }

    .copyright {
        font-size: 0.8rem;
        padding-top: 15px;
        margin-top: 15px;
    }

    /* Лайтбокс */
    .lightbox-content {
        width: 95%;
        max-width: 90vw;
    }
}

@media (max-width: 576px) {

    /* Swiper на маленьких мобильных */
    .swiper-slide .portfolio-item {
        height: 250px;
    }

    /* Скрыть кнопки Swiper на очень маленьких экранах */
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

@media (max-width: 480px) {

    /* Дополнительные настройки для очень маленьких экранов */
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .top-bar .contact-info a {
        font-size: 0.85rem;
        margin-right: 10px;
    }

    .top-bar .social-links a {
        font-size: 1.2rem;
        margin-left: 10px;
    }

    .logo h1,
    .footer-logo h1 {
        font-size: 2rem;
    }

    .logo .domain-hint,
    .footer-logo span {
        font-size: 1.1rem;
        letter-spacing: 0.3px;
        margin-top: 0;
    }

    .hero {
        padding: 60px 10px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    h2.section-title {
        font-size: 1.8rem;
    }

    .booking-form {
        padding: 20px 15px;
    }

    .progress-step {
        font-size: 0.7rem;
    }

    .progress-step span {
        width: 28px;
        height: 28px;
        line-height: 25px;
        font-size: 0.85rem;
    }

    .progress-line-container {
        top: 14px;
    }

    .step-title {
        font-size: 1.3rem;
    }

    /* Улучшения для модальных окон на мобильных устройствах */
    @media (max-width: 768px) {
        .service-modal-content {
            width: 95%;
            max-height: 90vh;
            overflow-y: auto;
            padding-bottom: 80px;
            /* Добавляем отступ снизу для скролла */
        }
        #contact .service-selection label.discount-applied .service-price:not(.complex-original) {
            padding-right: 12px;
          }
        #contact .service-selection label {
            display: flex;
            align-items: center;
            /* gap: 10px;  // можно оставить, если нужен небольшой отступ */
          }

          #contact .service-selection .service-name {
            flex: 1 1 0;
            min-width: 0;
          }
          #contact .service-selection .price-details,
          #contact .service-selection .service-price {
            margin-left: auto;
            /* Можно добавить min-width, если цена слишком сжимается */
            min-width: 60px;
            text-align: right;
          }

        .service-modal-header {
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .close-modal-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #a3245d;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            z-index: 1010;
            padding: 0;
            font-size: 1.4rem;
        }

        .close-modal-btn:hover {
            transform: scale(1.1);
            background: #7b1fa2;
        }

        /* Добавляем второй вариант закрытия - свайп вниз */
        .service-modal-overlay:after {
            content: "Свайпните вниз для закрытия";
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
            pointer-events: none;
        }
    }


 

    /* Стили инпутов на очень маленьких экранах */
    .booking-form input[type="text"],
    .booking-form input[type="email"],
    .booking-form input[type="tel"],
    .booking-form textarea,
    .booking-form select,
    .flatpickr-trigger-btn {
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .consent label {
        font-size: 0.85rem;
    }

    .form-navigation button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .footer-links a {
        margin: 0;
    }

    .footer-links span {
        display: none;
    }

    .map-widget iframe {
        height: 300px;
    }}

/* --- В самом конце файла --- */
h1, h2, h3, h4, h1.site-title, .logo h1, .footer-logo h1, h2.section-title, .offer-title {
    font-family: 'Playfair Display', serif !important;
    font-style: italic !important;
    font-weight: 700;
    letter-spacing: 0.5px;}

   /* Всплывающее уведомление об успешной записи */
   .success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.success-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.success-popup-content {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    animation: popupAppear 0.5s 0.2s forwards;
}

    @keyframes popupAppear {
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .success-icon {
        font-size: 40px;
        margin-bottom: 15px;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.1);
        }

        100% {
            transform: scale(1);
        }
    }

    .success-popup h3 {
        color: #a3245d;
        margin-bottom: 15px;
        font-size: 1.5rem;
    }

    .success-popup p {
        color: #555;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .success-emoji {
        font-size: 24px;
        margin: 20px 0;
    }

    .close-popup-btn {
        background: #a3245d;
        color: white;
        border: none;
        padding: 10px 25px;
        border-radius: 30px;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .close-popup-btn:hover {
        background: #7b1fa2;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(123, 31, 162, 0.3);
    }

    