:root {
    --primary-color: #e6e6df;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #58534b;
    --menu-bg: rgba(88, 83, 75, 0.95);
    --menu-bg-scrolled: rgba(88, 83, 75, 0.98);
}
html {
    scroll-behavior: auto !important;
}
body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    padding-top: 40px;
}

h2, h3 {
    font-family: 'Heuristica', serif;
    font-weight: bold;
    color: #58534b;
}

footer {
    background: var(--menu-bg);
}

/* Modern Navigation */
.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--menu-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-navbar.scrolled {
    background: var(--menu-bg-scrolled);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
}

.modern-navbar.scrolled .nav-content {
    height: 70px;
}

.logo img {
    height: 40px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.modern-navbar.scrolled .logo img {
    height: 35px;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--menu-bg-scrolled);
    backdrop-filter: blur(20px);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 2rem;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
}

.mobile-dropdown-menu.show {
    max-height: 300px;
}

.mobile-dropdown-item {
    display: block;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}

.mobile-dropdown-item:hover {
    color: var(--primary-color);
}

/* CTA Button */
.nav-cta {
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.nav-cta:hover {
    background: transparent;
    color: var(--primary-color);
}

.nav-cta_menu {
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.nav-cta_menu:hover {
    background: var(--dark-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.video-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.video-background-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заставляет видео заполнять блок, обрезая края, сохраняя пропорции */
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    max-width: 400px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

/* Sections */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* Mission Section */
.mission-section {
    background-color: var(--light-color);
}

.mission-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.signature {
    margin-top: 2rem;
    max-width: 200px;
}

/* Team Section */
.team-member {
    margin-bottom: 3rem;
}

.team-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Price Tables */
.price-table {
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: none !important;
}

.price-table .table {
    margin-bottom: 0 !important;
    border: none !important;
}

.price-table thead th {
    background-color: var(--dark-color);
    color: white;
    border: none !important;
    padding: 1rem;
}

.price-table tbody td {
    border: none !important;
    padding: 1rem;
    vertical-align: middle;
}

.price-table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.price-table tbody tr:last-child {
    border-bottom: none !important;
}

.price-table tbody tr:hover {
    background-color: rgba(217, 217, 214, 0.05);
}

.price-table tbody th {
    border: none !important;
    padding: 1rem;
    vertical-align: middle;
    font-weight: 600;
}

/* Contacts */
.contact-info {
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Social Links */
.social-links a {
    display: inline-block;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links img {
    width: 60px;
    height: 60px;
}

/* Map */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Price Tabs */
.price-tabs .nav-pills .nav-link {
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
    margin: 0 0.5rem;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    background: transparent;
}

.price-tabs .nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.price-tabs .nav-pills .nav-link:hover:not(.active) {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

/* Button Styles */
.btn-primary {
    background-color: #58534b;
    border: 0;
    color: var(--primary-color);
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #e6e6df;
    border-color: #e6e6df;
    color: #000;
}

.price-nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    font-weight: 500;
}

.price-nav-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateY(-2px);
}

/* Убираем полоску снизу для пунктов с подменю при наведении */
.dropdown .nav-link:hover::after,
.dropdown .nav-link.active::after {
    width: 0 !important;
}

.dropdown-menu .dropdown-item:hover {
    color: var(--dark-color) !important;
    background-color: var(--light-color);
}

/* Responsive */
@media (max-width: 991px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .nav-content {
        height: 70px;
    }
    
    .modern-navbar.scrolled .nav-content {
        height: 60px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .modern-navbar.scrolled .logo img {
        height: 30px;
    }
    
    .mobile-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .hero-section {
        height: 70vh;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .team-img {
        width: 150px;
        height: 150px;
    }
    
    .price-tabs .nav-pills .nav-link {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .price-tabs .nav-pills {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .price-tabs .nav-item {
        width: 100%;
        max-width: 280px;
        margin: 0 !important;
    }
    
    /* Specific margin for cosmetology tab */
    #cosmetology-tab {
        margin-top: 0.5rem !important;
    }
    
    .price-tabs .nav-cta_menu {
        width: 100%;
        text-align: center;
        margin: 0 !important;
    }
}
/* Кнопка записаться онлайн */
/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: none;
    animation: float 3s ease-in-out infinite;
    transform: translateY(0px);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating-cta .btn {
    background: var(--primary-color);
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.floating-cta .btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.floating-cta .btn i {
    font-size: 1.2rem;
}

/* Show only on mobile */
@media (max-width: 991px) {
    .floating-cta {
        display: block;
    }
}

/* Adjust for very small screens */
@media (max-width: 576px) {
    .floating-cta {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-cta .btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }
}