/* --- СТИЛИ МОДАЛЬНОГО ОКНА --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px); /* Красивое размытие фона */
}

.modal-content {
    background-color: #ffffff;
    margin: 12% auto;
    padding: 40px 30px;
    border-radius: 25px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(74, 15, 24, 0.1);
    border: 1px solid #EBE4DD;
    box-sizing: border-box;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: #211E1D;
    font-family: 'Cormorant Garamond', serif;
}

.modal-content p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}

/* Поле ввода номера */
.modal-content input {
    width: 100%;
    padding: 15px;
    font-size: 20px;
    text-align: center;
    letter-spacing: 4px;
    border: 1px solid #EBE4DD;
    background-color: #F8F5F0;
    border-radius: 15px;
    margin-bottom: 25px;
    outline: none;
    box-sizing: border-box;
    transition: 0.3s;
}

.modal-content input:focus {
    border-color: #4A0F18;
    box-shadow: 0 0 10px rgba(74, 15, 24, 0.15);
}

/* Наша красивая кнопка "Далее" */
.modal-submit-btn {
    width: 100%;
    background-color: #4A0F18;
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(74, 15, 24, 0.2);
}

.modal-submit-btn:hover {
    background-color: #330910;
    transform: translateY(-2px);
}

/* --- БАЗОВЫЕ НАСТРОЙКИ --- */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #211E1D;
    background-color: #F8F5F0; 
}

/* --- ЗАГОЛОВКИ (ПРЕМИАЛЬНЫЙ ШРИФТ) --- */
h1, h2 {
    font-family: 'Cormorant Garamond', serif;
    color: #211E1D;
}

h1 {
    font-size: 46px;
    font-weight: 300;
    margin-bottom: 20px;
}

h2 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.15;
}

/* --- КНОПКА (БОРДОВАЯ В СТИЛЕ ЛЮКС) --- */
.pink-btn {
    background-color: #4A0F18;
    color: white;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 35px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(74, 15, 24, 0.15); 
}

.pink-btn:hover {
    background-color: #330910;
    transform: translateY(-2px); 
}

/* --- ГЛАВНЫЙ ЭКРАН (FLEXBOX - СТАРАЯ ВЕРСИЯ) --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
    min-height: 80vh;
}

.hero-text {
    width: 50%;
}

.hero-text p {
    font-size: 20px;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-image {
    width: 45%;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(229, 135, 179, 0.2);
}

/* --- ВЕРХНЕЕ МЕНЮ --- */
.top-menu {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    background-color: #ffffff;
}

.top-menu a {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
}

.top-menu a:hover {
    color: #4A0F18;
}

/* --- СВЯЗКА КНОПКИ И ФИШЕК --- */
.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.features-row {
    display: flex;
    gap: 180px;
    margin-top: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    font-size: 28px;
}

.feature-text {
    font-size: 14px;
    font-weight: 600;
    color: #444444;
    line-height: 1.3;
}

/* --- ПРАЙС-ЛИСТ (GRID СЕТКА) --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 10%;
}

.price-card {
    background-color: white;
    border: 1px solid #EBE4DD;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0, 0.03);
    transition: transform 0.3s;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74, 15, 24, 0.1);
}

.price-card h3 {
    margin-top: 0;
    font-size: 20px;
    font-family: 'Cormorant Garamond', serif;
}

.price-card p {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
    min-height: 40px;
}

.price-tag {
    color: #4A0F18;
    font-weight: 700;
    font-size: 18px;
}

/* --- БЛОК "О МАСТЕРЕ" --- */
.about-block {
    padding: 80px 10%;
}

.about-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 80px;
}

.about-image {
    width: 45%;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0, 0.05);
}

.about-text {
    width: 50%;
}

.about-text h2 {
    margin-top: 0;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Розовая плашка "3 года" (Теперь бордовая) */
.experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #4A0F18;
    color: white;
    padding: 20px 30px;
    border-radius: 20px;
    margin-top: 20px;
}

.exp-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;         
}

.exp-text {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
}

/* --- СЕКЦИЯ ГАРАНТИЙ (ЗЕРКАЛЬНАЯ) --- */
.guarantees-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-top: 60px;
}

/* Левый столбик со списком */
.guarantees-list {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 30px; 
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.g-icon {
    font-size: 28px;
    background-color: #F0ECE6;
    padding: 15px;
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

.guarantee-item h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-family: 'Cormorant Garamond', serif;
}

.guarantee-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Правый блок с картинкой */
.guarantees-image {
    width: 45%;
}

.guarantees-image img {
    width: 100%;
    max-height: 450px;     
    object-fit: cover;     
    border-radius: 20px;
}

/* --- ФИНАЛЬНЫЙ БАННЕР --- */
.cta-banner {
    padding: 60px 10%;
    background-color: transparent !important; 
}

.cta-content {
    background-color: #FFFFFF; 
    border: 1px solid #EBE4DD; 
    border-radius: 25px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.cta-text h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
}

.cta-text p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* --- СЕКЦИЯ ПОРТФОЛИО --- */
.portfolio-section {
    padding: 80px 10%;
    background-color: transparent !important; 
}

.portfolio-header {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.portfolio-header p {
    color: #777;
    font-size: 15px;
}

/* Сетка фотографий (по 3 в ряд) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.portfolio-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

/* Эффект при наведении на фото */
.portfolio-item img:hover {
    transform: scale(1.02);
}

/* Кнопка соцсети внизу */
.portfolio-footer {
    text-align: center;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background-color: #FFFFFF;
    border: 1px solid #EBE4DD;
    color: #211E1D;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.instagram-btn:hover {
    background-color: #F0ECE6;
    transform: translateY(-2px);
}

/* --- СЕКЦИЯ КОНТАКТОВ --- */
.contacts-section {
    padding: 80px 10%;
    background-color: #F0ECE6; 
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.contact-card {
    background-color: white;
    border: 1px solid #EBE4DD;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 15, 24, 0.08);
}

.contact-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 15px;
}

.contact-card h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-family: 'Cormorant Garamond', serif;
}

.contact-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Кнопки действий внутри карточек */
.contact-link {
    display: inline-block;
    text-decoration: none;
    background-color: #F0ECE6;
    color: #4A0F18;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

.contact-link:hover {
    background-color: #4A0F18;
    color: white;
}

.contact-sub {
    font-size: 13px;
    color: #999;
}

/* --- СТИЛИ ДЛЯ КАРТЫ --- */
.map-container {
    margin-top: 50px;       
    border-radius: 20px;    
    overflow: hidden;       
    box-shadow: 0 10px 30px rgba(74, 15, 24, 0.1); 
    border: 1px solid #EBE4DD;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;          
    border: none;
}

/* Кнопка закрытия модального окна (крестик) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #aaa;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: #333;
 }
      
/* --- АККУРАТНЫЙ АДАПТИВ ДЛЯ МОБИЛЬНЫХ --- */
@media screen and (max-width: 768px) {
    .hero-section {
        flex-direction: column !important;
        text-align: center !important;
        padding: 40px 15px !important;
        display: flex !important;
        align-items: center !important;
    }

    .hero-text {
        width: 100% !important;
        text-align: center !important;
    }

    .hero-image {
        width: 100% !important;
        max-width: 300px !important;
        margin: 20px auto 0 auto !important;
    }

    .hero-section .pink-btn {
        margin: 15px auto !important;
        display: inline-block !important;
    }

    .about-section {
        flex-direction: column !important;
        text-align: center !important;
        padding: 40px 15px !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* --- ТОЧЕЧНЫЙ АДАПТИВ ПРАЙСА ДЛЯ ТЕЛЕФОНОВ --- */
@media screen and (max-width: 768px) {
    .price-section, 
    .prices-container,
    .price-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 20px 10px !important;
        box-sizing: border-box !important;
    }

    .price-card, 
    .price-item {
        width: 90% !important;
        max-width: 340px !important;
        margin: 0 auto 15px auto !important;
        box-sizing: border-box !important;
    }
}

/* Фиксируем фоны намертво на заднем плане */
.scroll-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -999; 
    pointer-events: none;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out; 
}

.bg-layer.active {
    opacity: 1;
}

/* --- АВТОНОМНЫЙ ПРЕЛОАДЕР --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #FAFAFA;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOutPreloader 0.8s ease 1.5s forwards;
}

.preloader-box {
    text-align: center;
}

.nail-animation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.nail-before {
    animation: pulseNails 1.5s infinite alternate;
}

.nail-after {
    animation: pulseNails 1.5s infinite alternate 0.75s;
}

.nail-path-line {
    width: 60px;
    height: 3px;
    background: #eee;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.nail-path-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #4A0F18;
    animation: moveTrack 1.5s infinite linear;
}

.preloader-text {
    font-size: 13px;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: inherit;
}

@keyframes fadeOutPreloader {
    0% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; display: none; }
}

@keyframes moveTrack {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulseNails {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

.close-privacy:hover {
    color: #333;
}

/* --- СТИЛИ СЕКЦИИ КАЛЕНДАРЯ И ОКОШЕК --- */
.calendar-section {
    padding: 80px 10%;
    background-color: transparent !important; 
}

.calendar-header {
    text-align: center;
    margin-bottom: 40px;
}

.calendar-header p {
    color: #777;
    font-size: 15px;
    margin-top: -30px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.slot-card {
    background-color: #FFFFFF;
    border: 1px solid #EBE4DD;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(74, 15, 24, 0.1);
}

.slot-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.slot-badge.morning {
    background-color: #FFF3CD;
    color: #856404;
}

.slot-badge.evening {
    background-color: #D1ECF1;
    color: #0c5460;
}

.slot-date {
    font-weight: 700;
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.slot-time {
    font-size: 22px;
    font-weight: 700;
    color: #4A0F18;
    margin-bottom: 10px;
}

.slot-service {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    min-height: 35px;
}

.slot-card .book-slot-btn {
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
    border-radius: 15px;
    cursor: pointer;
}

/* Картинки и карточки тоже не должны вылезать за границы */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === ГЛОБАЛЬНОЕ СПАСЕНИЕ МОБИЛЬНОЙ ВЕРСИИ === */
@media screen and (max-width: 768px) {
    .features-row {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
        margin-top: 30px !important;
    }
    
    .hero-bottom {
        align-items: center !important;
        width: 100% !important;
    }

    .about-top, .guarantees-section {
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    .about-text, .about-image, .guarantees-list, .guarantees-image {
        width: 100% !important;
        text-align: center !important;
    }
    
    .g-icon {
        margin: 0 auto !important;
    }
    
    .guarantee-item {
        flex-direction: column !important;
        text-align: center !important;
    }

    .portfolio-grid, .contacts-grid {
        grid-template-columns: 1fr !important;
    }

    .cta-content {
        flex-direction: column !important;
        padding: 30px 20px !important;
        text-align: center !important;
        gap: 20px !important;
    }
}

/* --- ПРЕМИАЛЬНЫЙ СТИЛЬ (ТИХАЯ РОСКОШЬ) --- */
body {
    background-color: #F8F5F0 !important; 
    color: #211E1D !important;
}

/* Перекрашиваем все основные розовые кнопки в благородный бордовый */
.pink-btn, .modal-submit-btn, #addSlotBtn, #addMassSlotsBtn, #addClientBtn, #saveVipBtn, #saveBlacklistBtn, .slot-card .book-slot-btn {
    background-color: #4A0F18 !important; 
    color: #FFFFFF !important;
    box-shadow: 0 10px 25px rgba(74, 15, 24, 0.15) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

.pink-btn:hover, .modal-submit-btn:hover {
    background-color: #330910 !important;
}

/* Рамочки и акценты меняем на утонченные бежево-серые */
.price-card, .contact-card, .modal-content, .slot-card, .cta-content {
    background-color: #FFFFFF !important;
    border: 1px solid #EBE4DD !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    border-radius: 20px !important;
}