/* ================= RESET ================= */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* ================= HEADER ================= */
#masthead {
    position: fixed !important;
    top: 20px;

    left: 0;
    right: 0;
    margin: auto;

    width: calc(100% - 40px);
    max-width: 1200px;

    z-index: 9999;

    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.06);

    box-shadow: 0 10px 30px rgba(0,0,0,0.06);

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* контейнер */
#masthead .ast-container {
    display: flex;
    align-items: center;
}

/* ================= LOGO ================= */
.site-branding {
    margin-right: 30px;
}

/* ================= MENU ================= */
.main-header-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

/* обычные пункты */
.main-header-menu a {
    color: #00003e !important;
    font-weight: 500;
    position: relative;
}

/* underline эффект */
.main-header-menu a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: #00003e;
    transition: 0.3s;
}

.main-header-menu a:hover::after {
    width: 100%;
}

/* ================= КНОПКИ СПРАВА ================= */
/* сдвигаем последние 2 пункта вправо */
.main-header-menu > .menu-item:nth-last-child(2) {
    margin-left: auto;
}

/* стиль кнопок */
.main-header-menu .menu-item:nth-last-child(2) a,
.main-header-menu .menu-item:last-child a {
    background: #ff004f;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    margin-left: 10px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* hover */
.main-header-menu .menu-item:nth-last-child(2) a:hover,
.main-header-menu .menu-item:last-child a:hover {
    transform: scale(1.05);
    background: #ff1a6b;
}

/* ================= СОЦСЕТИ ВПРАВО ================= */
.ast-above-header-wrap {
    position: fixed;
    top: 25px;
    right: 40px;
    left: auto !important;
    z-index: 10000;
}

/* ================= APPLE EFFECT ================= */
#masthead.scrolled {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

/* скрытие при скролле */
#masthead.hide {
    transform: translateY(-120%);
}

/* ================= FIX ASTRA ================= */
.ast-header-wrap,
.main-header-bar-wrap {
    position: static !important;
}

/* ================= BODY ================= */
body {
    padding-top: 140px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    #masthead {
        top: 10px;
        width: calc(100% - 20px);
    }

    body {
        padding-top: 110px;
    }

    .ast-above-header-wrap {
        right: 15px;
        top: 15px;
    }
}


/* === Header ===*/ 

/* ===== RESET ===== */
.fix-header *,
.fix-menu * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== HEADER ===== */
.fix-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: 92%;
    max-width: 1200px;

    display: flex !important;
    align-items: center;
    justify-content: space-between;

    background: #f3f3f7;
    padding: 10px 25px;
    border-radius: 22px;

    height: 70px;
    z-index: 9999;
}

/* LOGO */
.fix-logo img {
    height: 34px;
}

/* ===== MENU ===== */
.fix-menu {
    flex: 1;

    display: flex !important;
    align-items: center;
    justify-content: center;

    gap: 25px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* FIX ELEMENTOR */
.fix-menu > div,
.fix-menu > a {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
}

/* LINKS */
.fix-menu a,
.fix-link {
    font-weight: 600;
    color: #000;
    text-decoration: none;

    display: inline-flex;
    align-items: center;

    font-size: 15px;
}

/* PRODUCTS */
.fix-item {
    position: relative;
    display: inline-flex !important;
    align-items: center;
}

/* ARROW */
.arrow {
    font-size: 11px;
    margin-left: 5px;
}

/* ===== DROPDOWN (SOFTSWISS STYLE) ===== */
.fix-dropdown {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);

    display: flex;
    gap: 20px;

    background: #f3f3f7;
    padding: 20px;
    border-radius: 18px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.2);

    opacity: 0;
    visibility: hidden;

    transition: all 0.25s ease;

    min-width: 850px;
    z-index: 9999;
}

/* OPEN STATE (через JS) */
.fix-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* CARDS */
.card {
    flex: 1;
    background: #e9e9ee;
    padding: 18px;
    border-radius: 14px;

    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}

.card:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* CARD TEXT */
.card b {
    display: block;
    margin-bottom: 8px;
}

.card p {
    font-size: 13px;
    color: #555;
}

/* ===== CONTACT ===== */
.fix-contact {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    background: #ff1744;
    color: #fff;

    padding: 10px 20px;
    border-radius: 20px;

    height: 44px;
    cursor: pointer;
}

/* CONTACT DROPDOWN */
.fix-contact-box {
    position: absolute;
    top: 65px;
    right: 0;

    background: #fff;
    padding: 20px;
    border-radius: 16px;

    width: 230px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.2);

    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

.fix-contact:hover .fix-contact-box {
    opacity: 1;
    visibility: visible;
}

/* BUTTONS */
.btn-main {
    display: block;
    background: #ff1744;
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 8px;
    text-decoration: none;
}

.btn-outline {
    display: block;
    border: 1px solid black;
    color: black;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
}

/* ===== MOBILE ===== */
.header-mobile {
    display: none;
}

.mobile-menu {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .fix-header {
        display: none !important;
    }

    .header-mobile {
        display: flex;
    }
}

/* FIX: убираем влияние лишнего текста */
.fix-dropdown {
    align-items: stretch;
}


.fix-dropdown a {
    display: block;
}

/* ===== NUCLEAR FIX (FINAL) ===== */

/* ломаем column от Elementor */
.fix-menu,
.fix-menu > * {
    flex-direction: row !important;
}

/* каждый пункт — строго в линию */
.fix-menu > * {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
}

/* ссылки */
.fix-menu a {
    display: inline-flex !important;
    white-space: nowrap !important;
}

/* Products */
.fix-item {
    display: inline-flex !important;
}

/* УБИВАЕМ ВСЕ column внутри */
.fix-menu div {
    display: inline-flex !important;
    flex-direction: row !important;
}

/* защита от переносов */
.fix-menu {
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

/* ===== FINAL SPACING FIX ===== */

.fix-menu a {
    margin: 0 18px !important;
}