/* Root Variables */
:root {
    --primary-white: #ffffff;
    --accent-purple: #d9c6f3;
    --accent-purple-dark: #c4ade6;
    --text-dark: #2c2c2c;
    --text-gray: #666666;
    --bg-soft: #fafafa;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--primary-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-padding {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 0;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-purple);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-purple-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--accent-purple);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--accent-purple);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.section-title .divider {
    width: 60px;
    height: 2px;
    background: var(--accent-purple);
    margin: 0 auto;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(217, 198, 243, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-purple-dark);
}

.menu-toggle {
    display: none;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        url('https://images.unsplash.com/photo-1512290923902-8a9f81dc236c?auto=format&fit=crop&q=80&w=2000') center/cover;
    padding-top: 80px;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Services */
.services {
    background-color: var(--bg-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--primary-white);
    padding: 0;
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-img {
    height: 250px;
    background-color: #eee;
    width: 100%;
    object-fit: cover;
    background-position: center;
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-info p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Prices */
.price-section {
    background-color: var(--primary-white);
}

.price-table {
    max-width: 800px;
    margin: 0 auto;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.price-name {
    font-weight: 400;
    font-size: 17px;
}

.price-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 15px;
}

.price-value {
    font-weight: 500;
    color: var(--text-dark);
}

/* About */
.about {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 600px;
    background: url('https://images.unsplash.com/photo-1594824476967-48c8b964273f?auto=format&fit=crop&q=80&w=1000') center/cover;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.experience-badge {
    display: inline-block;
    background: var(--accent-purple);
    color: white;
    padding: 10px 20px;
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 1px;
}

.about-text h2 {
    font-size: 38px;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.about-text p:last-of-type {
    margin-bottom: 30px;
}

.about-text ul {
    margin-bottom: 30px;
}

.about-text li {
    margin-bottom: 10px;
}

/* Contact */
.contact {
    background-color: var(--bg-soft);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    background: transparent;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.contact-form .btn {
    width: 100%;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 20px;
    font-size: 15px;
}

.map-container {
    height: 250px;
    width: 100%;
    margin-top: 30px;
    filter: grayscale(1);
}

.map-container iframe {
    border: 0;
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

footer .logo {
    margin-bottom: 20px;
}

.social-links {
    margin-bottom: 20px;
    font-size: 24px;
}

.instagram-link:hover {
    color: #E1306C;
}

footer p {
    font-size: 12px;
    color: #999;
    letter-spacing: 1px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 400px;
    }

    .hero-btns {
        flex-direction: column;
    }
}
/* ==========================================================================
   Новые стили для Навигации (Dropdown и Мобильное меню)
   ========================================================================== */

/* Элемент списка с выпадающим меню */
.nav-links li {
    position: relative;
}

.dropdown-toggle .arrow {
    font-size: 9px;
    margin-left: 3px;
    display: inline-block;
    transition: var(--transition);
}

/* Выпадающее меню (скрыто по умолчанию) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(217, 198, 243, 0.3);
    padding: 15px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 1100;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 25px;
    font-size: 11px !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
    color: var(--text-dark);
}

.dropdown-menu a:hover {
    background-color: var(--bg-soft);
    color: var(--accent-purple-dark) !important;
    padding-left: 30px; /* Эффект сдвига при наведении */
}

/* Показ меню при наведении (для ПК) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown:hover .dropdown-toggle .arrow {
        transform: rotate(180deg);
    }
}

/* Мобильная адаптация меню (Замена старого @media (max-width: 768px)) */
@media (max-width: 768px) {
    /* Бургер-иконка */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1200;
    }

    .menu-toggle .bar {
        height: 2px;
        width: 100%;
        background-color: var(--text-dark);
        transition: var(--transition);
    }

    /* Анимация бургера в крестик */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* Мобильная шторка меню */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background: var(--primary-white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 50px;
        gap: 25px;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1100;
    }

    .nav-links.active {
        right: 0;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav-links a {
        font-size: 16px;
    }

    /* Выпадающий список на мобилках */
    .dropdown-menu {
        position: relative;
        top: 0;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--accent-purple);
        margin-left: 10px;
        padding: 5px 0;
        display: none; /* Будет открываться через JS */
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
    }
    
    .dropdown-menu.open {
        display: block;
    }

    .dropdown-menu a {
        padding: 8px 15px;
        font-size: 14px !important;
    }
}
/* ==========================================================================
   Додаткові стилі для Головної сторінки (Оновлена версія)
   ========================================================================== */

/* Робимо картки послуг посиланнями блочного типу */
.services-grid .service-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Оновлення блоку Про клініку (під реальне фото) */
.about-image {
    background: none !important; /* Прибираємо старий фоновий малюнок із Unsplash */
    height: auto !important;
}

.about-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

/* Блок відгуків */
.reviews-section {
    background-color: var(--bg-soft);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--primary-white);
    padding: 35px;
    border: 1px solid rgba(217, 198, 243, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: #ffc107; /* Красивий золотий колір зірок */
    font-size: 16px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 14px;
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.review-author {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.review-date {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Оновлена секція контактів без форми */
.contact-container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.contact-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 25px;
    margin-top: 5px;
}

.cta-social-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
}

.cta-social-btns .btn {
    text-align: center;
    width: 100%;
}

.btn-insta {
    background-color: #E1306C !important;
    border-color: #E1306C !important;
    color: white !important;
}

.btn-insta:hover {
    background-color: #c12256 !important;
}

.btn-fb {
    border-color: #1877F2 !important;
    color: #1877F2 !important;
}

.btn-fb:hover {
    background-color: #1877F2 !important;
    color: white !important;
}

.contact-map {
    width: 100%;
}

.contact-map .map-container {
    margin-top: 0;
    height: 350px;
    filter: none; /* Карта буде кольоровою та зручною */
}

/* Адаптація під мобільні екрани */
@media (max-width: 768px) {
    .about-image img {
        height: 380px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-social-btns {
        max-width: 100%;
    }
}