/* Агрессивный Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6;
    color: #333 !important;
    background: #f5f5f5 !important;
}

/* Скрываем дубликаты в хедере */
.logo-light {
    display: none !important;
}

/* Компактный Header */
.main-header {
    background: #fff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
    position: sticky !important;
    top: 0;
    z-index: 1000;
    padding: 0 !important;
}

.main-header__layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px !important;
}

.main-header__inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    height: 70px !important;
    min-height: 70px !important;
}

/* Логотип */
.main-header__logo {
    flex-shrink: 0;
}

.main-header__logo img {
    height: 50px !important;
    width: auto !important;
    max-width: 120px !important;
}

/* Навигация */
.main-header__nav {
    flex: 1;
    display: flex !important;
    justify-content: center;
    margin: 0 20px !important;
}

.navbar-nav {
    display: flex !important;
    list-style: none !important;
    gap: 5px !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-nav > li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-nav > li > a {
    display: block !important;
    padding: 10px 12px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s;
    white-space: nowrap;
}

.navbar-nav > li > a:hover {
    color: #c8a882 !important;
    background: #f9f9f9;
}

/* Submenu */
.sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0;
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    min-width: 220px !important;
    list-style: none !important;
    display: none !important;
    z-index: 1001;
    padding: 8px 0 !important;
    margin: 0 !important;
}

.menu-item-has-children:hover > .sub-menu {
    display: block !important;
}

.sub-menu li {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sub-menu a {
    display: block !important;
    padding: 10px 20px !important;
    color: #555 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: all 0.3s;
}

.sub-menu a:hover {
    background: #f5f5f5 !important;
    color: #c8a882 !important;
    padding-left: 25px !important;
}

/* Nested submenu */
.sub-menu .sub-menu {
    top: 0 !important;
    left: 100% !important;
    margin-left: -1px !important;
}

/* Header виджеты */
.main-header--widgets {
    display: flex !important;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header__search-icon svg,
.ms_theme_mode svg {
    width: 22px !important;
    height: 22px !important;
}

/* Content Area */
#loaded {
    display: none !important;
}

.elementor-section {
    padding: 60px 0 !important;
    position: relative;
}

.elementor-section:first-of-type {
    padding-top: 0 !important;
}

.elementor-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
}

.elementor-widget-wrap {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #222 !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

h1 {
    font-size: 2.5rem !important;
    margin-top: 0 !important;
}
h2 {
    font-size: 2rem !important;
    margin-top: 40px !important;
}
h3 {
    font-size: 1.5rem !important;
    margin-top: 30px !important;
    color: #c8a882 !important;
}
h4 { font-size: 1.25rem !important; }

p {
    margin-bottom: 15px !important;
    line-height: 1.8 !important;
    color: #555 !important;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

a {
    color: #c8a882 !important;
    transition: color 0.3s;
}

a:hover {
    color: #a88f6f !important;
}

img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    display: block;
}

/* Buttons */
button, .btn, input[type="submit"], a.elementor-button {
    background: #c8a882 !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    display: inline-block !important;
}

button:hover, .btn:hover, input[type="submit"]:hover, a.elementor-button:hover {
    background: #a88f6f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Forms */
input, textarea, select {
    width: 100%;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    margin-bottom: 15px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #c8a882 !important;
    box-shadow: 0 0 0 3px rgba(200,168,130,0.1);
}

/* Cards and Sections */
.elementor-widget-container {
    padding: 20px;
}

/* Lists in content */
.elementor-section ul li::marker {
    color: #c8a882;
}

/* Специфичные элементы для салона красоты */
.elementor-section[data-element_type="section"] {
    background: #fff;
    margin-bottom: 0 !important;
}

.elementor-section:nth-child(even) {
    background: #fafafa !important;
}

/* Footer */
footer {
    background: #2a2a2a !important;
    color: #ccc !important;
    padding: 50px 30px !important;
    margin-top: 80px !important;
}

footer a {
    color: #c8a882 !important;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: #fff !important;
}

/* Mobile */
@media (max-width: 992px) {
    .navbar-nav {
        gap: 3px !important;
    }

    .navbar-nav > li > a {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.5rem !important; }
}

@media (max-width: 768px) {
    .main-header__inner {
        height: 60px !important;
    }

    .main-header__logo img {
        height: 40px !important;
    }

    .main-header__nav {
        display: none !important;
    }

    .elementor-section {
        padding: 40px 0 !important;
    }

    .elementor-widget-wrap {
        padding: 25px !important;
    }

    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.2rem !important; }
}

/* Убираем битые иконки и лишнее */
svg:not(.sun-and-moon) {
    max-width: 24px;
    max-height: 24px;
}
