/* ==========================================
   RESET & VARIABLES
   ========================================== */
:root {
    --bg-color: #FDF8F2;
    --text-color: #4A3B32;
    --accent-dark: #5D4037;
    --gold: #C5A059;
    --gold-light: #E0C99A;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(93, 64, 55, 0.08);
    --shadow-hover: 0 20px 60px rgba(93, 64, 55, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.dt-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ==========================================
   HEADER
   ========================================== */
.dt-header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(253, 248, 242, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000; padding: 12px 0;
    border-bottom: 1px solid rgba(141, 110, 99, 0.08);
    transition: var(--transition);
}
.dt-header.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(93, 64, 55, 0.06);
}
.dt-header .dt-container { display: flex; justify-content: space-between; align-items: center; }

.dt-logo { display: flex; align-items: center; gap: 12px; }
.dt-logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--accent-dark); letter-spacing: 1px; }
.dt-logo-text i { color: var(--gold); font-weight: 400; font-style: italic; }

/* Анімація логотипу в меню */
.dt-logo-animation {
    position: relative; width: 55px; height: 55px;
    display: flex; align-items: center; justify-content: center;
}
.dt-logo-img {
    width: 100%; height: 100%; object-fit: contain;
    position: relative; z-index: 2;
    animation: logoBreathe 5s ease-in-out infinite;
    transition: transform 0.5s ease;
}
.dt-logo:hover .dt-logo-img { transform: scale(1.1); }
.dt-logo-ring {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: 1px solid var(--gold); border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
}
.dt-logo-ring.dt-ring-2 { animation-delay: 2s; }

@keyframes logoBreathe {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.04) rotate(2deg); }
}
@keyframes ringPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Навігація */
.dt-nav { display: flex; align-items: center; }
.dt-menu { display: flex; gap: 28px; align-items: center; }
.dt-menu > li { position: relative; }
.dt-menu > li > a {
    font-size: 0.85rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 1px; transition: var(--transition); color: var(--text-color);
    padding: 10px 0; display: block; position: relative;
}
.dt-menu > li > a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px; background: var(--gold); transition: width 0.3s ease;
}
.dt-menu > li > a:hover { color: var(--gold); }
.dt-menu > li > a:hover::after { width: 100%; }

/* Мега-меню */
.dt-has-mega:hover .dt-mega-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dt-mega-menu {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--white); width: 720px; padding: 35px;
    box-shadow: var(--shadow-hover); border-radius: 16px;
    display: flex; gap: 35px; opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 1001;
    border-top: 3px solid var(--gold);
}
.dt-mega-col { flex: 1; }
.dt-mega-col h4 {
    font-size: 1rem; margin-bottom: 15px; color: var(--accent-dark);
    border-bottom: 1px solid rgba(141,110,99,0.15); padding-bottom: 8px;
    text-transform: uppercase; letter-spacing: 1px;
}
.dt-mega-col ul li { margin-bottom: 8px; }
.dt-mega-col ul li a {
    font-size: 0.85rem; color: #6D5D55;
    transition: var(--transition); display: block; padding: 3px 0;
}
.dt-mega-col ul li a:hover { color: var(--gold); padding-left: 6px; }

.dt-header-contacts { display: flex; align-items: center; gap: 20px; }
.dt-phone { font-weight: 600; color: var(--accent-dark); font-size: 0.85rem; transition: var(--transition); }
.dt-phone:hover { color: var(--gold); }
.dt-insta { color: var(--accent-dark); transition: var(--transition); display: flex; }
.dt-insta:hover { color: var(--gold); transform: scale(1.1); }

.dt-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.dt-burger span { display: block; width: 25px; height: 2px; background: var(--accent-dark); transition: var(--transition); border-radius: 2px; }

/* ==========================================
   HERO SECTION
   ========================================== */
.dt-hero {
    height: 100vh; min-height: 750px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative;
    background: linear-gradient(135deg, #FDF8F2 0%, #F5EBE0 50%, #E8DCD0 100%);
    overflow: hidden; padding-top: 80px;
}

/* Фонові кола */
.dt-hero-bg-animation {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px; height: 900px; z-index: 0; pointer-events: none;
}
.dt-hero-circle {
    position: absolute; top: 50%; left: 50%;
    border: 1px solid var(--gold); border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
}
.dt-hero-circle { width: 700px; height: 700px; animation: heroPulse 10s ease-in-out infinite; }
.dt-circle-2 { width: 520px; height: 520px; animation-delay: 2s; opacity: 0.2; }
.dt-circle-3 { width: 350px; height: 350px; animation-delay: 4s; opacity: 0.15; }

@keyframes heroPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.25; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.1; }
}

/* Живий логотип в Hero */
.dt-hero-logo {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 380px; height: 380px;
    z-index: 1;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.dt-hero-logo-img {
    width: 100%; height: 100%; object-fit: contain;
    position: relative; z-index: 2;
    animation: heroLogoBreathe 7s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(197, 160, 89, 0.2));
    opacity: 0.9;
}
.dt-hero-logo-ring {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border: 1.5px solid var(--gold); border-radius: 50%;
    opacity: 0.4;
    animation: heroRingPulse 6s ease-in-out infinite;
}
.dt-hero-logo-ring.dt-ring-2 {
    animation-delay: 3s;
    border-width: 1px;
    opacity: 0.2;
}

@keyframes heroLogoBreathe {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
    25% { transform: scale(1.03) rotate(2deg); opacity: 1; }
    50% { transform: scale(1.06) rotate(0deg); opacity: 1; }
    75% { transform: scale(1.03) rotate(-2deg); opacity: 1; }
}
@keyframes heroRingPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
}

/* Частинки */
.dt-particles {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.dt-particles span {
    position: absolute;
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 12s linear infinite;
}
.dt-particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.dt-particles span:nth-child(2) { left: 30%; animation-delay: 3s; }
.dt-particles span:nth-child(3) { left: 50%; animation-delay: 6s; }
.dt-particles span:nth-child(4) { left: 70%; animation-delay: 2s; }
.dt-particles span:nth-child(5) { left: 90%; animation-delay: 5s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.dt-hero-content { position: relative; z-index: 3; max-width: 800px; padding: 0 20px; }
.dt-hero-content h1 {
    font-size: 4.5rem; color: var(--accent-dark);
    margin-bottom: 20px; line-height: 1.1;
    text-shadow: 0 2px 20px rgba(253, 248, 242, 0.8);
}
.dt-hero-content p { font-size: 1.2rem; margin-bottom: 40px; color: #6D5D55; }

.dt-fade-in { opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s forwards; }
.dt-fade-in-delay { opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s 0.2s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ==========================================
   BUTTONS
   ========================================== */
.dt-btn {
    display: inline-block; padding: 16px 42px; border-radius: 50px; border: none; cursor: pointer;
    font-family: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
    transition: var(--transition); background: linear-gradient(135deg, var(--gold), #B8934F);
    color: var(--white); font-size: 0.85rem;
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3);
}
.dt-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.4);
    background: linear-gradient(135deg, #B8934F, var(--gold));
}
.dt-btn-full { width: 100%; }
.dt-pulse-btn { animation: btnPulse 2.5s infinite; }
@keyframes btnPulse {
    0% { box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3), 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3), 0 0 0 18px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3), 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* ==========================================
   FEATURES
   ========================================== */
.dt-features { padding: 90px 0; background: var(--white); }
.dt-features .dt-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.dt-feature-item {
    text-align: center; padding: 40px 30px; border-radius: 20px;
    transition: var(--transition); background: var(--bg-color);
    border: 1px solid rgba(197, 160, 89, 0.1);
}
.dt-feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(197, 160, 89, 0.3);
}
.dt-icon { font-size: 3rem; margin-bottom: 20px; display: block; }
.dt-feature-item h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--accent-dark); }

/* ==========================================
   SERVICES GRID
   ========================================== */
.dt-services-preview { padding: 110px 0; background: var(--bg-color); }
.dt-section-title {
    font-size: 3.5rem; text-align: center; margin-bottom: 70px;
    color: var(--accent-dark); position: relative;
}
.dt-section-title::after {
    content: ''; position: absolute; bottom: -20px; left: 50%;
    transform: translateX(-50%); width: 60px; height: 2px;
    background: var(--gold);
}
.dt-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.dt-service-card {
    background: var(--white); border-radius: 18px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(93, 64, 55, 0.06);
    transition: var(--transition);
    display: flex; flex-direction: column;
    border: 1px solid rgba(197, 160, 89, 0.08);
}
.dt-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(197, 160, 89, 0.25);
}
.dt-service-img {
    height: 220px; background-size: cover; background-position: center;
    transition: transform 0.6s ease;
    position: relative; overflow: hidden;
}
.dt-service-card:hover .dt-service-img { transform: scale(1.08); }
.dt-service-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(93, 64, 55, 0.7) 100%);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 20px; opacity: 0; transition: var(--transition);
}
.dt-service-card:hover .dt-service-overlay { opacity: 1; }
.dt-service-overlay span {
    color: var(--white); font-weight: 500;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem;
}
.dt-service-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.dt-service-body h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--accent-dark); }
.dt-service-desc { font-size: 0.85rem; color: #7D6D65; margin-bottom: 20px; flex-grow: 1; }
.dt-service-meta {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(197, 160, 89, 0.15); padding-top: 15px;
}
.dt-service-meta span { font-size: 0.85rem; color: #999; }
.dt-service-price { font-weight: 700; color: var(--gold); font-size: 1.15rem; }

/* ==========================================
   BOOKING
   ========================================== */
.dt-booking-section {
    padding: 110px 0;
    background: linear-gradient(135deg, var(--accent-dark) 0%, #3E2A22 100%);
    color: var(--white); position: relative; overflow: hidden;
}
.dt-booking-section::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
}
.dt-booking-container { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; position: relative; z-index: 1; }
.dt-booking-info h2 { font-size: 3rem; margin-bottom: 20px; color: var(--white); }
.dt-contact-list { margin: 30px 0; }
.dt-contact-list li { margin-bottom: 18px; font-size: 1.05rem; display: flex; align-items: center; gap: 12px; }
.dt-contact-list a { color: var(--gold); transition: var(--transition); }
.dt-contact-list a:hover { color: var(--gold-light); }
.dt-insta-btn {
    display: inline-block; padding: 14px 32px;
    border: 1.5px solid var(--gold); color: var(--gold);
    border-radius: 50px; transition: var(--transition);
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1.5px;
}
.dt-insta-btn:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }

.dt-booking-form {
    background: rgba(255, 255, 255, 0.06);
    padding: 45px; border-radius: 20px;
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dt-booking-form input, .dt-booking-form select {
    width: 100%; padding: 16px 20px; margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px;
    font-family: inherit; font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95); color: var(--text-color);
    transition: var(--transition);
}
.dt-booking-form input:focus, .dt-booking-form select:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}
.dt-form-message { margin-top: 15px; text-align: center; font-size: 0.9rem; min-height: 20px; }

/* ==========================================
   FOOTER
   ========================================== */
.dt-footer { background: #2C1E16; color: #A89F9B; padding: 70px 0 25px; }
.dt-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 45px; }
.dt-footer h4 { color: var(--white); font-size: 1.25rem; margin-bottom: 20px; }
.dt-footer p { margin-bottom: 10px; font-size: 0.9rem; }
.dt-footer a { transition: var(--transition); }
.dt-footer a:hover { color: var(--gold); }
.dt-footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 25px; font-size: 0.8rem; }

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.dt-animate-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.dt-animate-scroll.visible { opacity: 1; transform: translateY(0); }

/* ==========================================
   MOBILE ADAPTATION
   ========================================== */
@media (max-width: 992px) {
    .dt-hero-content h1 { font-size: 3rem; }
    .dt-hero-bg-animation { width: 600px; height: 600px; }
    .dt-hero-circle { width: 450px; height: 450px; }
    .dt-circle-2 { width: 350px; height: 350px; }
    .dt-circle-3 { width: 250px; height: 250px; }
    .dt-hero-logo { width: 280px; height: 280px; }

    .dt-booking-container { grid-template-columns: 1fr; gap: 40px; }
    .dt-booking-form { padding: 30px; }

    /* МОБІЛЬНЕ МЕНЮ (АКОРДЕОН) */
    .dt-nav {
        position: fixed; top: 0; right: -100%;
        width: 85%; max-width: 380px; height: 100vh;
        background: var(--bg-color);
        flex-direction: column; justify-content: flex-start;
        padding: 90px 25px 40px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        z-index: 999; overflow-y: auto;
    }
    .dt-nav.active { right: 0; }
    .dt-menu { flex-direction: column; gap: 0; width: 100%; }
    .dt-menu > li { width: 100%; border-bottom: 1px solid rgba(141, 110, 99, 0.15); }
    .dt-menu > li > a {
        padding: 16px 0; font-size: 0.95rem;
        display: flex; justify-content: space-between; align-items: center;
    }
    .dt-has-mega > a::after {
        content: '▾'; font-size: 0.8rem; transition: transform 0.3s ease; margin-left: 8px;
    }
    .dt-has-mega.open > a::after { transform: rotate(180deg); }
    .dt-mega-menu {
        position: static; transform: none; width: 100%;
        opacity: 1; visibility: visible; box-shadow: none;
        padding: 0; display: none; flex-direction: column; gap: 0;
        border-top: none; background: transparent; margin-bottom: 10px;
    }
    .dt-has-mega.open .dt-mega-menu { display: flex; }
    .dt-mega-col {
        padding: 10px 0 5px 15px;
        border-left: 2px solid var(--gold); margin-bottom: 10px;
    }
    .dt-mega-col h4 { font-size: 0.8rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
    .dt-mega-col ul li a { font-size: 0.85rem; padding: 6px 0; display: block; }

    .dt-header-contacts .dt-phone, .dt-header-contacts .dt-insta { display: none; }
    .dt-burger { display: flex; z-index: 1001; }
    .dt-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .dt-burger.active span:nth-child(2) { opacity: 0; }
    .dt-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .dt-services-grid { grid-template-columns: 1fr; }
    .dt-section-title { font-size: 2.4rem; margin-bottom: 50px; }
    .dt-features { padding: 60px 0; }
}

@media (max-width: 480px) {
    .dt-hero-content h1 { font-size: 2.2rem; }
    .dt-hero-content p { font-size: 1rem; }
    .dt-logo-text { font-size: 1.3rem; }
    .dt-hero-logo { width: 220px; height: 220px; }
    .dt-hero-circle { width: 320px; height: 320px; }
    .dt-circle-2 { width: 250px; height: 250px; }
    .dt-circle-3 { width: 180px; height: 180px; }
    .dt-section-title { font-size: 2rem; }
    .dt-booking-info h2 { font-size: 2.2rem; }
}