/* =============================
   1. НАСТРОЙКИ И ЦВЕТА
   ============================= */
:root {
    --bg-color: #121212;         /* Темный фон */
    --card-bg: #1e1e1e;          /* Фон карточек */
    --text-color: #e0e0e0;       /* Текст */
    --accent-color: #d4af37;     /* ЗОЛОТОЙ */
    --accent-hover: #b59021;     /* Темное золото */
    --font-main: 'Montserrat', sans-serif;
    --font-header: 'Oswald', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* =============================
   2. КНОПКИ
   ============================= */
.btn { display: inline-block; padding: 12px 30px; font-family: var(--font-header); text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; font-weight: bold; cursor: pointer; }
.btn-primary { background-color: var(--accent-color); color: #000; }
.btn-primary:hover { background-color: var(--accent-hover); }
.btn-outline { border: 2px solid var(--accent-color); color: var(--accent-color); margin-left: 15px; }
.btn-outline:hover { background-color: var(--accent-color); color: #000; }

/* =============================
   3. HEADER (ШАПКА)
   ============================= */
.header { 
    background-color: rgba(18, 18, 18, 0.98); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    padding: 15px 0; 
    border-bottom: 1px solid #333; 
}

.header-container { 
    display: flex; 
    align-items: center; 
}

/* Логотип */
.logo-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-shrink: 0; 
    margin-right: 60px; 
}
.logo-img { height: 55px; width: auto; object-fit: contain; }
.logo-text { 
    font-family: var(--font-header); 
    font-size: 22px; 
    font-weight: 700; 
    color: #fff; 
    line-height: 1; 
    text-transform: uppercase; 
    white-space: nowrap; 
}
.logo-text span { color: var(--accent-color); }
.logo-wrapper:hover .logo-text span { text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }

/* Меню */
.nav-list { 
    display: flex; 
    gap: 25px; 
}
.nav-link { 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    white-space: nowrap; 
    font-weight: 400; 
}
.nav-link:hover { color: var(--accent-color); }

/* Контакты справа */
.header-contacts { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    margin-left: auto; 
    padding-left: 60px; 
    flex-shrink: 0; 
}
.phone-btn { 
    font-weight: 600; 
    color: var(--accent-color); 
    white-space: nowrap; 
    font-size: 15px;
}
.tg-btn { 
    font-weight: 600; 
    color: var(--accent-color); 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    white-space: nowrap; 
    font-size: 15px;
}
.tg-btn:hover { color: #fff; }

.burger-menu { display: none; cursor: pointer; color: #fff; font-size: 24px; }

/* =============================
   4. HERO (ГЛАВНЫЙ ЭКРАН)
   ============================= */
.hero { 
    height: 75vh; 
    min-height: 500px;
    background: url('hero-bg.jpg') center/cover no-repeat; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    margin-top: 60px; 
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-family: var(--font-header); font-size: 60px; line-height: 1.2; margin-bottom: 20px; text-transform: uppercase; }
.hero p { font-size: 18px; margin-bottom: 10px; color: #ccc; }
.hero-subtitle { color: var(--accent-color) !important; font-weight: bold; margin-bottom: 30px !important;}

/* =============================
   5. ОБЩИЕ СЕКЦИИ
   ============================= */
.section { padding: 80px 0; }
.section-title { font-family: var(--font-header); font-size: 36px; margin-bottom: 40px; text-transform: uppercase; position: relative; }
.center { text-align: center; }

/* О МАСТЕРЕ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-features li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.about-features i { color: var(--accent-color); }
.about-img { display: flex; justify-content: center; align-items: center; }
.master-photo { width: 100%; max-width: 450px; border-radius: 12px; border: 2px solid var(--accent-color); box-shadow: 0 0 25px rgba(212, 175, 55, 0.15); transition: 0.3s; }
.master-photo:hover { transform: scale(1.02); box-shadow: 0 0 35px rgba(212, 175, 55, 0.3); }

/* =============================
   6. ПОРТФОЛИО И ИНТЕРЬЕР
   ============================= */
.tabs { text-align: center; margin-bottom: 30px; }
.tab-btn { background: transparent; border: 1px solid #444; color: #fff; padding: 10px 20px; margin: 0 5px; cursor: pointer; font-family: var(--font-header); text-transform: uppercase; transition: 0.3s; }
.tab-btn.active, .tab-btn:hover { background: var(--accent-color); border-color: var(--accent-color); color: #000; }

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
}

.gallery-img-box { 
    position: relative; 
    overflow: hidden; 
    height: 350px; 
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}
.gallery-img-box:hover { box-shadow: 0 0 30px rgba(212, 175, 55, 0.4); border-color: var(--accent-hover); }
.gallery-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-img-box:hover img { transform: scale(1.1); }
.overlay { position: absolute; bottom: -100%; left: 0; width: 100%; background: rgba(212, 175, 55, 0.9); color: #000; padding: 15px; transition: 0.3s; }
.gallery-img-box:hover .overlay { bottom: 0; }
.center-btn { text-align: center; margin-top: 40px; }

/* =============================
   7. УСЛУГИ
   ============================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--card-bg); padding: 30px; text-align: center; border-radius: 8px; border: 1px solid #333; transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.service-icon { font-size: 40px; color: var(--accent-color); margin-bottom: 20px; }
.service-card h3 { font-family: var(--font-header); margin-bottom: 15px; }
.price { display: block; margin-top: 15px; font-size: 20px; font-weight: bold; color: var(--accent-color); }

/* =============================
   8. ПОДАРОЧНЫЕ СЕРТИФИКАТЫ
   ============================= */
.gift-container {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid #333;
}
.gift-card-visual { flex: 1; display: flex; justify-content: center; }
.gift-card-inner {
    width: 350px; height: 220px; background: #000; border: 3px solid var(--accent-color); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; box-shadow: 0 0 25px rgba(212, 175, 55, 0.2); position: relative;
}
.gift-card-inner::after { content: ''; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 5px; pointer-events: none; }
.gift-card-inner h3 { font-family: var(--font-header); color: var(--accent-color); font-size: 28px; letter-spacing: 2px; margin: 0; }
.gift-brand { font-size: 12px; color: #777; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 15px; }
.gift-line { width: 50px; height: 2px; background: var(--accent-color); margin: 0 auto 15px; }
.gift-value { color: #fff; font-size: 14px; }
.gift-text { flex: 1; }
.gift-text .section-title { text-align: left; margin-bottom: 20px; }
.gift-text p { margin-bottom: 20px; color: #ccc; }
.gift-benefits { margin-bottom: 30px; }
.gift-benefits li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.gift-benefits i { color: var(--accent-color); }

/* =============================
   9. ПАМЯТКА ПО УХОДУ (CARE)
   ============================= */
.care-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
}
.care-item { 
    background: var(--card-bg); 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid #333; 
    position: relative; 
    overflow: hidden; 
    transition: 0.3s; 
}
.care-item:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent-color); 
}
.care-step { 
    position: absolute; 
    top: 10px;      
    right: 20px;    
    font-family: var(--font-header); 
    font-size: 60px; 
    line-height: 1;
    color: rgba(255, 255, 255, 0.05); 
    font-weight: bold; 
}
.care-icon { 
    font-size: 40px; 
    color: var(--accent-color); 
    margin-bottom: 20px; 
}
.care-item h3 { 
    font-family: var(--font-header); 
    margin-bottom: 15px; 
    font-size: 20px; 
}
.care-item p { 
    font-size: 14px; 
    color: #aaa; 
}
.care-item strong { 
    color: #fff; 
}

/* =============================
   10. FAQ
   ============================= */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #333; margin-bottom: 10px; }
.faq-question { padding: 15px; background: var(--card-bg); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 15px; background: #252525; }

/* =============================
   11. КОНТАКТЫ
   ============================= */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 50px; }
.contact-card { background: var(--card-bg); padding: 40px 20px; text-align: center; border-radius: 8px; border: 1px solid #333; transition: 0.3s; display: flex; flex-direction: column; align-items: center; }
.contact-card:hover { transform: translateY(-5px); border-color: var(--accent-color); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1); }
.contact-icon { font-size: 36px; color: var(--accent-color); margin-bottom: 20px; }
.contact-card h3 { font-family: var(--font-header); font-size: 20px; margin-bottom: 10px; color: #fff; text-transform: uppercase; }
.contact-card p { color: #aaa; margin-bottom: 15px; font-size: 14px; }
.contact-link { font-size: 18px; font-weight: bold; color: #fff; border-bottom: 1px solid var(--accent-color); padding-bottom: 2px; }
.contact-link:hover { color: var(--accent-color); }
.contact-highlight { font-size: 18px; font-weight: bold; color: var(--accent-color); }
.contact-note { font-size: 12px; color: #777; }

/* Карта */
.map-full-width { 
    width: 100%; height: 450px; border-radius: 8px; overflow: hidden; 
    border: 1px solid #333; background: #222; position: relative; transition: 0.3s; 
}
.map-full-width:hover { border-color: var(--accent-color); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1); }

/* FOOTER */
.footer { background: #000; padding: 20px 0; text-align: center; font-size: 14px; color: #777; }

/* =============================
   12. ПЛАВАЮЩАЯ КНОПКА (TELEGRAM)
   ============================= */
.floating-btn {
    position: fixed;            
    bottom: 30px;               
    right: 30px;                
    width: 60px;                
    height: 60px;               
    background-color: var(--accent-color); 
    color: #000;                
    border-radius: 50%;         
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;            
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); 
    z-index: 9999;              
    transition: all 0.3s ease;  
    animation: pulse-gold 2s infinite;
}

.floating-btn:hover {
    transform: scale(1.1);      
    background-color: #fff;     
    color: var(--accent-color); 
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* =============================
   13. АДАПТИВНОСТЬ
   ============================= */
@media (max-width: 1200px) {
    .nav-list { gap: 15px; }
    .nav-link { font-size: 12px; }
    .logo-wrapper { margin-right: 20px; }
    .header-contacts { gap: 20px; padding-left: 20px; }
}

@media (max-width: 1024px) {
    .burger-menu { display: block; order: 3; }
    .nav { position: absolute; top: 70px; left: 0; width: 100%; background: #000; text-align: center; padding: 20px 0; display: none; }
    .nav.active { display: block; }
    .nav-list { flex-direction: column; gap: 15px; }
    .header-contacts { margin-left: auto; margin-right: 20px; padding-left: 0; }
}

@media (max-width: 768px) {
    .header-contacts { display: none; } 
    .logo-text { font-size: 18px; }
    .logo-img { height: 45px; }
    .hero h1 { font-size: 36px; }
    .about-grid { grid-template-columns: 1fr; }
    .map-full-width { height: 300px; }
    
    .floating-btn { width: 50px; height: 50px; font-size: 24px; bottom: 20px; right: 20px; }
    
    .gift-container { flex-direction: column; padding: 30px; text-align: center; }
    .gift-text .section-title { text-align: center; }
    .gift-benefits li { justify-content: center; }
    .gift-card-inner { width: 100%; max-width: 320px; }
}

/* =============================
   14. АНИМАЦИИ (SCROLL REVEAL)
   ============================= */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =============================
   15. LIGHTBOX (УВЕЛИЧЕНИЕ ФОТО)
   ============================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001; 
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all; 
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    
    /* ЗОЛОТАЯ РАМКА */
    border: 2px solid var(--accent-color);
    
    /* Закругленные углы */
    border-radius: 12px;

    /* ЗОЛОТОЕ СВЕЧЕНИЕ */
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6),
                0 0 60px rgba(212, 175, 55, 0.3);
    
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* =============================
   16. АКЦИЯ (ЗОЛОТАЯ КНОПКА С ТОЛСТОЙ ВОЛНОЙ)
   ============================= */
.promo-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    
    /* Форма и размер */
    min-width: 140px;
    height: 65px;
    padding: 0 20px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Золотой градиент */
    background: radial-gradient(ellipse at center, #ffd700 0%, #b8860b 100%);
    
    /* Обрамление */
    border: 2px solid #fffacd; /* Светлое золото */
    border-radius: 12px; /* Чуть мягче углы */
    
    /* Глубокая тень */
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 
                0 0 20px rgba(255, 215, 0, 0.4); 
    
    cursor: pointer;
    z-index: 9998;
    
    /* Анимация покачивания (Sway) - работает всегда */
    transform-origin: center bottom;
    animation: sway 3.5s ease-in-out infinite;
    
    /* Важно для волны: */
    position: fixed; 
}

/* Эффект ТОЛСТОЙ ВОЛНЫ при наведении */
.promo-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    z-index: -1;
    /* Начальное состояние */
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8);
    opacity: 0; 
}

.promo-btn:hover::after {
    animation: telegram-pulse 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

/* Текст BONUS */
.promo-code {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 24px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    margin: 0;
}

/* Наведение на саму кнопку */
.promo-btn:hover {
    transform: scale(1.05); /* Немного увеличиваем */
    border-color: #fff;
    /* Убираем паузу качания, пусть качается и пульсирует одновременно, это живее */
}

/* АНИМАЦИИ */
@keyframes telegram-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8);
        opacity: 1;
    }
    100% {
        /* Делаем "толстую" волну, увеличивая радиус spread до 25px */
        box-shadow: 0 0 0 25px rgba(212, 175, 55, 0); 
        opacity: 0;
    }
}

@keyframes sway {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(5deg); }
    20% { transform: rotate(-5deg); }
    30% { transform: rotate(3deg); }
    40% { transform: rotate(-3deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* МОДАЛЬНОЕ ОКНО */
.promo-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10005;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
    padding: 15px;
}
.promo-overlay.active { opacity: 1; visibility: visible; }

.promo-card {
    background: #1e1e1e;
    border: 2px solid var(--accent-color);
    width: 100%; max-width: 400px;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    position: relative;
    transform: scale(0.8); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
}
.promo-overlay.active .promo-card { transform: scale(1); }

.promo-close {
    position: absolute; top: 10px; right: 15px;
    font-size: 30px; color: #555; cursor: pointer;
}
.promo-close:hover { color: var(--accent-color); }

.promo-header { margin-bottom: 20px; }
.promo-header i { font-size: 40px; color: var(--accent-color); margin-bottom: 10px; }
.promo-header h3 { font-family: var(--font-header); color: #fff; text-transform: uppercase; letter-spacing: 1px; }

.coupon-box {
    background: #000; border: 1px dashed var(--accent-color);
    padding: 15px; margin: 20px 0; border-radius: 8px;
}
.coupon-label { display: block; font-size: 12px; color: #777; margin-bottom: 5px; text-transform: uppercase; }
.coupon-code { font-family: var(--font-header); font-size: 32px; color: #fff; letter-spacing: 2px; }
.coupon-note { font-size: 14px; color: #aaa; margin-bottom: 25px; line-height: 1.5; }

@media (max-width: 768px) {
    .promo-btn { bottom: 20px; left: 20px; height: 55px; min-width: 120px; padding: 0 15px; }
    .promo-code { font-size: 20px; }
}