:root {
    --primary: #f39c12;
    --primary-dark: #e67e22;
    --dark: #2c3e50;
    --text: #4a4a4a;
    --light-bg: #f8f9fa;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: #fff;
    padding-top: 80px;
}

/* Навигация */
.navbar-custom {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    width: 100%;
}
.navbar-custom .navbar-brand img {
    height: 45px;
}
.navbar-custom .nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 10px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}
.navbar-custom .nav-link:hover {
    color: var(--primary) !important;
}
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.navbar-custom .nav-link:hover::after {
    width: 100%;
}
.navbar-custom .btn-order {
    background: var(--primary);
    color: #fff !important;
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}
.navbar-custom .btn-order:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: #fff !important;
}
.navbar-custom .btn-order::after {
    display: none;
}
@media (max-width: 991.98px) {
    .navbar-custom .nav-link {
        margin: 5px 0;
    }
    .navbar-custom .btn-order {
        display: inline-block;
        width: auto;
        margin-top: 10px;
    }
}

/* Герой-блок */
.hero {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    padding: 80px 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
}
.hero .btn-hero {
    background: #fff;
    color: var(--primary);
    border-radius: 50px;
    padding: 12px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}
.hero .btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero::after {
        display: none;
    }
}

/* Карточки услуг */
.service-card {
    background: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.service-card .icon {
    font-size: 3rem;
    color: var(--primary);
    margin: 0 auto 15px auto;
    display: block;
}
.service-card h5 {
    font-weight: 700;
    color: var(--dark);
}
.service-card .price {
    color: var(--primary);
    font-weight: 600;
    margin-top: 10px;
}

/* Карточки салонов */
.salon-card {
    background: #fff;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    height: 100%;
}
.salon-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.salon-card .card-img-top {
    height: 200px;
    object-fit: cover;
}
.salon-card .card-body {
    padding: 20px;
}
.salon-card .card-title {
    font-weight: 700;
    color: var(--dark);
}
.salon-card .card-text {
    color: var(--text);
    font-size: 0.95rem;
}
.salon-card .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
}
.salon-card .btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

/* Секция преимуществ */
.features {
    background: var(--light-bg);
    padding: 60px 0;
    border-radius: 30px;
    margin: 50px 0;
}
.feature-item {
    text-align: center;
    padding: 20px;
}
.feature-item .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.feature-item h5 {
    font-weight: 700;
    color: var(--dark);
}

/* Футер */
.footer-custom {
    background: var(--dark);
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 50px;
}
.footer-custom h5 {
    font-weight: 700;
    color: #fff;
}
.footer-custom a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-custom a:hover {
    color: var(--primary);
}
.footer-custom .social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.3rem;
    color: #fff;
    transition: color 0.3s, transform 0.2s;
}
.footer-custom .social-icons a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Форма заказа */
.order-form .form-control, .order-form .form-select {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.order-form .form-control:focus, .order-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(243, 156, 18, 0.25);
}
.order-form .btn-order-submit {
    background: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    transition: background 0.3s, transform 0.2s;
}
.order-form .btn-order-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Детальная страница салона */
.salon-detail .info-block {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--radius);
}
.salon-detail .gallery img {
    border-radius: 10px;
    transition: transform 0.3s;
    cursor: pointer;
}
.salon-detail .gallery img:hover {
    transform: scale(1.03);
}
.salon-detail .map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Адаптация для мобильных */
@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .salon-card .card-img-top {
        height: 150px;
    }
    .features .feature-item {
        padding: 10px;
    }
    .order-form .btn-order-submit {
        width: 100%;
    }
    .footer-custom .social-icons a {
        margin-right: 10px;
        font-size: 1.1rem;
    }
}

/* Убираем стандартную стрелку Bootstrap */
.navbar-custom .nav-link.dropdown-toggle::after {
    display: none !important;
}

/* Стиль для нашей иконки-стрелки */
.catalog-arrow {
    font-size: 0.7rem;
    color: #f39c12;
    transition: transform 0.2s ease;
}

/* Поворот иконки при открытом меню */
.navbar-custom .nav-link.dropdown-toggle[aria-expanded="true"] .catalog-arrow {
    transform: rotate(180deg);
}

/* ===== Мегаменю (компактное) ===== */
.mega-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 100vw;
    max-width: 100vw;
    padding: 30px 0;
    margin: 0;
    border: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    background: #ffffff;
    display: none;
    z-index: 1060;
}

.mega-menu .dropdown-menu.show {
    display: block;
}

.mega-menu-content .container {
    max-width: 1200px;
    padding: 0 15px;
}

.mega-menu-category {
    margin-bottom: 16px;
}

.mega-menu-title {
    display: block;
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid #f39c12;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.2s;
}

.mega-menu-title:hover {
    color: #e67e22;
}

.mega-menu-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-submenu li {
    margin: 1px 0;
}

.mega-menu-submenu li a {
    display: block;
    padding: 4px 0 4px 8px;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.15s;
    border-radius: 4px;
}

.mega-menu-submenu li a:hover {
    background: #f8f9fa;
    color: #f39c12;
    padding-left: 16px;
}

.mega-menu-submenu li a i {
    width: 18px;
    color: #f39c12;
}

/* Ссылка "Все услуги..." */
.mega-menu-all {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f39c12;
    text-decoration: none;
}

.mega-menu-all:hover {
    color: #e67e22;
    text-decoration: underline;
}

/* Мобильная адаптация */
@media (max-width: 991.98px) {
    .navbar-custom {
        position: relative;
    }
    body {
        padding-top: 0;
    }
    .mega-menu .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        box-shadow: none;
        padding: 15px 0;
        background: transparent;
        left: auto !important;
        right: auto !important;
        border-radius: 0;
        z-index: auto;
    }
    .mega-menu .dropdown-menu .container {
        padding: 0;
    }
    .mega-menu-category {
        margin-bottom: 20px;
    }
    .mega-menu-submenu li a {
        padding: 8px 0;
        font-size: 0.95rem;
    }
    .navbar-custom .nav-link.dropdown-toggle::after {
        font-size: 0.8rem;
    }
}
