@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;700&family=Montserrat:wght@300;500;700&display=swap');

:root {
    --primary: #ff66b2;
    --dark: #1a1a1a;
    --light: #ffffff;
    --off-white: rgba(255, 253, 245, 0.95);
    --gold: #d4af37;
    --gradient: linear-gradient(135deg, #9d50bb, #ff66b2);
    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--body-font);
}

html {
  background: #090d00;
}

/* BACKGROUND */

#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -999; /* Более низкий z-index */
  pointer-events: none; /* Чтобы не мешало взаимодействию */
}

#bg canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
body {
    color: var(--dark);
    padding-top: 90px;
    position: relative; /* Важно для z-index контекста */
    background: transparent !important; /* Уберите фон у body */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
}

header.scrolled {
    background: linear-gradient(135deg, #1a2a6c, #3a7bd5, #1a2a6c);
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo img {
    height: 60px;
    width: auto;
    transition: all 0.4s ease;
}

header.scrolled .logo img {
    height: 50px;
}

/* Navigation */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    position: relative;
    transition: all 0.4s ease;
    padding-bottom: 5px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-right: auto;
    margin-left: 10px;
}

.social-icons a {
    color: var(--light);
    font-size: 1.7rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

header.scrolled .social-icons a {
    color: white;
}

/* Booking Button */
.booking-btn-container {
    margin-left: auto;
    z-index: 1001;
}

.btn-book {
    background: var(--gradient);
    color: white;
    padding: 15px 35px;
    border-radius: 35px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    white-space: nowrap;
}

.btn-book:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/Шапка Сайт.png') center/cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: -90px;
}

.hero-content {
    text-align: center;
    color: var(--off-white);
    padding: 0 20px;
    position: absolute;
    bottom: 40%;
    left: 0;
    right: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: 0.5em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: rgba(255, 253, 245, 0.9);
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 6rem;
    margin: 1rem 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: 0.5em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: rgba(255, 253, 245, 0.9);
}

.hero-text .heart-emoji {
    opacity: 0;
    transform: scale(0);
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-text:hover .heart-emoji {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}

.hero-content > * {
    position: relative;
    z-index: 2;
}

/* Footer Container */
#footer-container {
    min-height: 400px;

    margin-top: 0;
}

/* Desktop Social Icons */
.desktop-social-icons {
    display: flex;
    gap: 12px;
    margin-right: auto;
    margin-left: 10px;
}

.desktop-social-icons a {
    color: var(--light);
    font-size: 1.7rem;
    transition: all 0.3s ease;
}

.desktop-social-icons a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

header.scrolled .desktop-social-icons a {
    color: white;
}
/* Обновлённая секция о студии с каруселью */
.about-studio {
    padding: 80px 0;
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.about-studio .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.about-text {
    color: white;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 400;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s ease;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.feature p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.about-philosophy {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-philosophy h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.about-philosophy h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: white;
}

.about-philosophy p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Карусель в секции "О нас" */
.about-carousel {
    position: relative;
}

.studio-carousel {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 500px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    height: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.studio-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.studio-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.studio-image-container:hover img {
    transform: scale(1.05);
}

.studio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.studio-image-container:hover .studio-caption {
    transform: translateY(0);
}

.studio-caption h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.studio-caption p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Кнопки карусели */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000; /* Увеличьте z-index */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    color: #333;
    pointer-events: auto; /* Убедитесь, что события мыши работают */
}



.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #9d61cf;
}

.carousel-btn i {
    font-size: 1.1rem;
    color: #333;
}

.prev-btn {
    left: 25px;
}

.next-btn {
    right: 25px;
}

/* Точки навигации */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Особенности интерьера под каруселью */
.studio-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.studio-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.studio-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.studio-feature i {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 8px;
}

.studio-feature span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}



/* Анимация градиента */
@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content {
    animation: fadeInUp 0.8s ease forwards;
}

.feature {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.feature:nth-child(1) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.3s; }
.feature:nth-child(3) { animation-delay: 0.4s; }
.feature:nth-child(4) { animation-delay: 0.5s; }

/* Секция мастеров */
.masters-section {
    padding: 100px 0;

    position: relative;
}

.masters-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.masters-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}

.category-title i {
    color: #9d61cf;
    font-size: 1.5rem;
}

/* Карточка мастера */
.master-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
    transition: transform 0.3s ease;
}

.master-card:hover {
    transform: translateY(-5px);
}

.master-info {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

.master-photo {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
}

.master-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.master-photo:hover img {
    transform: scale(1.05);
}

.master-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.master-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.master-name {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.master-experience {
    color: #9d61cf;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.master-specialization {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.specialization-tag {
    background: rgba(157, 97, 207, 0.1);
    color: #9d61cf;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.master-description {
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    font-size: 1rem;
}

.master-quote {
    background: linear-gradient(135deg, rgba(157, 97, 207, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #9d61cf;
    font-style: italic;
    color: #666;
}

.master-quote i {
    color: #9d61cf;
    margin-right: 10px;
}

/* Портфолио мастера */
.master-portfolio {
    padding: 40px;
    background: white;
    border-top: 1px solid #eee;
}

.portfolio-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Контакты */
.booking-cta {
    text-align: center;
    margin-top: 50px;
}

/* Секция контактов с картой */
.contacts-section {
    padding: 80px 0;
    position: relative;
}

.contacts-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacts-map-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Блок с информацией */
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-block {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(157, 97, 207, 0.1);
}

.contact-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(157, 97, 207, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-icon i {
    font-size: 24px;
    color: black;
}

.contact-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.contact-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.contact-link {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.contact-link:hover {
    color: #9d61cf;
}

.contact-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #777;
    font-size: 14px;
}

.contact-meta i {
    color: #9d61cf;
}

/* Кнопки действий */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-book {
    background: linear-gradient(135deg, #9d61cf 0%, #764ba2 100%);
    color: white;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(157, 97, 207, 0.3);
}

.btn-direction {
    background: white;
    color: #333;
    border: 2px solid #9d61cf;
}

.btn-direction:hover {
    background: #9d61cf;
    color: white;
    transform: translateY(-2px);
}

/* Стили для карты */
.contacts-map {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.1) contrast(1.1) brightness(1.05);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, 
        transparent 0%,
        transparent 85%,
        rgba(255, 255, 255, 0.3) 100%
    );
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(157, 97, 207, 0.4);
    animation: pulse 2s infinite;
}

.map-marker i {
    font-size: 24px;
    color: #9d61cf;
}

.btn-book-large {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #9d61cf 0%, #764ba2 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(157, 97, 207, 0.3);
}

.btn-book-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(157, 97, 207, 0.4);
}

.btn-book-large i {
    font-size: 1.3rem;
}

/* Стили для кнопки отзывов */
.master-reviews {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(157, 97, 207, 0.1);
}

.btn-reviews {
    background: linear-gradient(135deg, rgba(157, 97, 207, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: #9d61cf;
    border: 2px solid #9d61cf;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-reviews:hover {
    background: linear-gradient(135deg, #9d61cf 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 97, 207, 0.3);
}

.btn-reviews i {
    font-size: 0.9rem;
}

/* Модальное окно отзывов */
.reviews-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.reviews-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reviews-modal-content h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-modal-content h3 i {
    color: #ffd700;
}

.close-reviews-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-reviews-modal:hover {
    color: #333;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #9d61cf;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-author i {
    font-size: 1.5rem;
    color: #9d61cf;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-rating i {
    color: #ffd700;
    font-size: 0.9rem;
}

.rating-text {
    font-weight: 600;
    color: #333;
    margin-left: 5px;
}

.review-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.review-text {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}



/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.master-card {
    animation: fadeInUp 0.6s ease forwards;
}

.master-card:nth-child(2) {
    animation-delay: 0.2s;
}

.master-card:nth-child(3) {
    animation-delay: 0.4s;
}

.master-card:nth-child(4) {
    animation-delay: 0.6s;
}


/* Mobile Social Icons */
.mobile-social-icons {
    display: none;
}


/* Анимации для плавного появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-block {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.contact-block:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-block:nth-child(2) {
    animation-delay: 0.2s;
}

.contacts-map {
    animation: fadeInUp 0.5s ease 0.3s forwards;
    opacity: 0;
}

/* ================ Секция "О студии" (about-studio) ================ */
@media (max-width: 1024px) {
    .about-studio {
        padding: 60px 0;
    }
    
    .about-content {
        gap: 40px;
        margin-top: 30px;
    }
    
    .studio-carousel {
        height: 400px;
    }
    
    .intro-text {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .about-features {
        gap: 20px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .feature i {
        font-size: 2rem;
    }
    
    .feature h3 {
        font-size: 1.1rem;
    }
    
    .studio-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }
    
    .studio-feature i {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .studio-carousel {
        height: 350px;
        border-radius: 20px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
    
    .carousel-dots {
        bottom: 10px;
    }
    
    .intro-text {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .about-philosophy {
        padding: 20px;
    }
    
    .about-philosophy h3 {
        font-size: 1.3rem;
    }
    
    .studio-features {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .about-studio {
        padding: 50px 0;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .studio-carousel {
        height: 300px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .studio-caption {
        padding: 15px;
    }
    
    .studio-caption h4 {
        font-size: 1rem;
    }
    
    .intro-text {
        font-size: 1rem;
        padding: 15px;
    }
    
    .feature {
        padding: 15px;
    }
    
    .feature i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .studio-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
    
    .studio-feature {
        padding: 12px 8px;
    }
    
    .studio-feature i {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .studio-feature span {
        font-size: 0.75rem;
    }
}

@media (max-width: 375px) {
    .studio-carousel {
        height: 250px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
    }
    
    .studio-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ================ Секция "Мастера" (masters-section) ================ */
@media (max-width: 1024px) {
    .masters-section {
        padding: 80px 0;
    }
    
    .master-info {
        grid-template-columns: 250px 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    .master-photo {
        height: 250px;
    }
    
    .master-name {
        font-size: 1.8rem;
    }
    
    .portfolio-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .portfolio-item {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .masters-section {
        padding: 60px 0;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .category-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }
    
    .master-card {
        margin-bottom: 40px;
    }
    
    .master-info {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .master-photo {
        height: 300px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .master-details {
        text-align: center;
    }
    
    .master-name {
        font-size: 1.6rem;
    }
    
    .master-specialization {
        justify-content: center;
    }
    
    .master-portfolio {
        padding: 25px;
    }
    
    .portfolio-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .portfolio-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .portfolio-item {
        height: 150px;
    }
    
    .btn-book-large {
        padding: 18px 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .masters-section {
        padding: 50px 0;
    }
    
    .category-title {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .master-info {
        padding: 20px;
    }
    
    .master-photo {
        height: 250px;
    }
    
    .master-badge {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .master-name {
        font-size: 1.4rem;
    }
    
    .master-experience {
        font-size: 1rem;
    }
    
    .master-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .master-quote {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .master-portfolio {
        padding: 20px;
    }
    
    .portfolio-title {
        font-size: 1.2rem;
    }
    
    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .portfolio-item {
        height: 200px;
    }
    
    .booking-cta {
        margin-top: 30px;
    }
    
    .btn-book-large {
        padding: 16px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .master-photo {
        height: 200px;
    }
    
    .master-name {
        font-size: 1.3rem;
    }
    
    .specialization-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .portfolio-item {
        height: 180px;
    }
    
    .btn-book-large {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
}

/* ================ Контакты (contacts-section) и карта ================ */
@media (max-width: 768px) {
    .contacts-section {
        padding: 50px 0;
    }
    
    .contacts-map-wrapper {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    .contacts-info {
        order: 1;
        width: 100%;
    }
    
    .contacts-map {
        order: 2;
        width: 100%;
        height: 400px;
    }
    
    .contact-block {
        padding: 25px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 22px;
    }
    
    .contact-title {
        font-size: 20px;
    }
    
    .contact-text {
        font-size: 15px;
    }
    
    .contact-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .contacts-section {
        padding: 40px 0;
    }
    
    .contacts-map-wrapper {
        gap: 30px;
    }
    
    .contacts-map {
        height: 350px;
        border-radius: 15px;
    }
    
    .contact-block {
        padding: 20px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 15px;
    }
    
    .contact-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .contact-text {
        font-size: 14px;
    }
    
    .contact-meta {
        font-size: 13px;
    }
    
    .contact-actions {
        gap: 12px;
    }
    
    .contact-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .map-marker {
        width: 40px;
        height: 40px;
    }
    
    .map-marker i {
        font-size: 20px;
    }
}

@media (max-width: 375px) {
    .contacts-map {
        height: 300px;
    }
    
    .contact-block {
        padding: 18px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 20px;
    }
    
    .contact-title {
        font-size: 17px;
    }
    
    .contact-text {
        font-size: 13.5px;
    }
    
    .contact-meta {
        font-size: 12px;
    }
    
    .contact-btn {
        padding: 11px 16px;
        font-size: 13.5px;
    }
}

/* ================ Модальное окно отзывов ================ */
@media (max-width: 768px) {
    .reviews-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 25px;
        max-height: 85vh;
    }
    
    .reviews-modal-content h3 {
        font-size: 1.3rem;
    }
    
    .review-item {
        padding: 15px;
    }
    
    .author-name {
        font-size: 0.95rem;
    }
    
    .review-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .reviews-modal-content {
        padding: 20px;
        border-radius: 15px;
    }
    
    .reviews-modal-content h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .close-reviews-modal {
        top: 15px;
        right: 15px;
        font-size: 24px;
    }
    
    .reviews-container {
        gap: 15px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-author i {
        font-size: 1.3rem;
    }
    
    .review-rating {
        align-self: flex-start;
    }
}

/* ================ Глобальные улучшения для мобильных ================ */
@media (max-width: 768px) {
    /* Улучшаем отступы для touch-устройств */
    .btn-book,
    .cta-button,
    .subscribe-btn,
    .contact-btn,
    .btn-book-large,
    .btn-reviews {
        min-height: 44px; /* Минимальная высота для удобного тапа */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Увеличиваем зону клика для ссылок в навигации */
    .nav-links a {
        padding: 15px 0;
    }
    
    /* Улучшаем отображение иконок */
    .social-icons a,
    .mobile-social-icons a,
    .desktop-social-icons a {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Улучшаем читаемость текста */
    p, li, .contact-text, .review-text, .master-description {
        line-height: 1.6;
    }
}