/* ====== Основная структура ====== */
.site-header {
    padding: 0 50px;
}

#title_domain{
	font-family: 'Arial';
    font-size: 32px;
    color: #212121;
	line-height:32px;
	font-weight:700;	
}

.site-header .header-container {
    max-width: 1300px;
	margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
	height:88px;
}

/* Левая часть */
.header-left {
    padding: 0px 20px 0px 25px;
    display: flex;
    align-items: center;
    gap: 80px;
    background-color: #fff;
    border-radius: 0 0 20px 20px;
	min-width:770px;
	height: 88px;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-decoration: none;

}

#Kaf_market{	
	margin-left:5px;
}

/* ====== Навигация ====== */
.main-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.main-nav a,
.main-nav span {
	font-family: 'Rubik-SemiBold';
    font-size: 20px;
    text-decoration: none;
    color: #484848;
    transition: color 0.2s;
	line-height:24px;
	font-weight:600;
}

/* Ссылки по умолчанию (чёрные) */
.main-nav .nav-link {
    color: #484848;
}

.main-nav .nav-link:hover {
    color: #0073e6;
}

/* ====== Активные (цветные) слова ====== */
.main-nav .nav-active-customer {
    font-weight: bold;
}

.main-nav .nav-active-blogger {
    color: #ff0000; /* красный */
    font-weight: bold;
    cursor: default;
}

/* Отдельные старые классы — для совместимости */


.main-nav .city_head_color {
    color: #ff0000;
}

/* ====== Правая часть ====== */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
		height: 88px;
}

.city {
    padding: 15px;
    font-size: 14px;
    color: #555;
}

.city-link {
	font-family: 'Rubik-SemiBold';
	font-size: 20px;
    line-height:24px;
	font-weight: 600;
    color: #484848;
    cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px; 	
}

.register {
	font-family: 'Rubik-SemiBold';
	font-size: 20px;
    line-height:24px;
	padding: 0px 15px 0px 15px;
    background-color: #fff;
    border-radius: 0 0 20px 20px;
    font-weight: 600;
	height: 88px;
	
}

.a-register {
    padding: 6px 12px;
    text-decoration: none;
    color: inherit;
	
}

.register_btn{
	margin-top:35px;
}

/* Переключатель между Заказчиком/Блогером */
.toggle-switch {
    width: 37px;         /* ширина переключателя */
    height: 15px;        /* высота */
    border-radius: 12px; /* скругление */
    background-color: #ddd;
    display: inline-flex;
    align-items: center;
    padding: 2px 2px 2px 2px;
    position: relative;
    margin: 0 8px;       /* расстояние между пунктами */
	cursor:pointer;
}

/* Кружок внутри */
.toggle-switch .toggle-circle {
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;

}

/* Активный фиолет — для Заказчикам */
.toggle-switch.toggle-customer {
    background-color: #B0005B;
}
.toggle-switch.toggle-customer .toggle-circle {
    transform: translateX(0); /* кружок слева */
}

/* Активный красный — для Блогерам */
.toggle-switch.toggle-blogger {
    background-color: #ff0000;
}
.toggle-switch.toggle-blogger .toggle-circle {
    transform: translateX(21px); /* кружок справа */
}

/* Нейтральный серый */
.toggle-switch.toggle-neutral {
    background-color: #ccc;
}
.toggle-switch.toggle-neutral .toggle-circle {
    transform: translateX(0);
}


@media (max-width: 768px) {

  .site-header .header-container{display:none}


}

/* Десктоп по умолчанию */
.site-header {
	display: block;
	height: 88px;
	background: #F3F3F3;	
}

/* Мобильная по умолчанию скрыта */
.mobile-header,
.mh-menu-panel,
.mh-overlay {
    display: none;
}


/* ===== Мобильный режим ===== */
@media (max-width: 992px) {
    
    .city {
        padding: 15px 0px 15px 0px;
    }

    .mh-link.active {
        text-decoration: underline;
    }

    main {
        margin-top: 50px;
    }

    .site-header {
        display: none;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 2px 45px 2px 16px;
        border-bottom: 1px solid #eee;
        position: fixed;
        width: 100%;
        background: #fff;
        z-index: 1000;
        box-sizing: border-box;
    }

    .mh-left {
        flex: 0 0 auto;
        min-width: auto;
        max-width: none;
        position: relative;
        z-index: 2;
    }

    .mh-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        text-decoration: none;
    }

    .mh-circle {
        width: 28px;
        min-width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 28px;
    }

    .mh-name-text {
        font-family: 'Rubik-Bold';
        display: inline-block;
        white-space: nowrap;
        font-size: 20px;
        line-height: 20px;
        font-weight: 800;
        color: #212121;
        flex: 0 0 auto;
        max-width: none;
        overflow: visible;
		padding-right:7px;
    }

    .mh-right {
        min-width: 0;
        flex: 1 1 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        overflow: hidden;
    }

    .mh-city {
        display: block;
        min-width: 0;
        flex: 1 1 auto;
        max-width: 100%;
        padding-right: 8px;
        position: relative;
        bottom: 3px;
        overflow: hidden;
    }

    .mh-city .city-link {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mh-menu-wrap {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }

    .mh-menu,
    .mh-menu-close {
        width: 30px;
        height: 30px;
        margin-right: 0 !important;
        display: block;
        cursor: pointer;
    }

    .mh-menu-close {
        display: none;
    }

    .mh-menu-panel {
        display: block;
        position: fixed;
        top: 75px;
        left: 50%;
        width: 83%;
        background: #fff;
        padding: 30px 20px;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 1100;
        transform: translateX(-220%);
        transition: transform 0.3s ease;
		text-align:left;
    }

    .mh-menu-panel.active {
        transform: translateX(-50%);
    }

    .mh-link {
        display: block;
        text-decoration: none;
        color: #000;
        font-size: 22px;
        font-weight: bold;
        padding: 10px 10px;
    }

    .mh-link.gray {
        color: #888;
    }

    .mh-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .mh-overlay.active {
        display: block;
    }
}

.site-header {
    height: 72px;
    padding: 0 40px;
    background: #fff;
    border-bottom: 1px solid rgba(176,0,91,0.12);
    box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}

.site-header .header-container {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 34px;
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    min-width: 300px;
    color: #202020;
    text-decoration: none;
}

.site-header .logo-circle {
    display: none;
}

#title_domain {
    font-family: 'Arial';
    font-size: 25px;
    line-height: 25px;
    font-weight: 900;
    letter-spacing: -0.08em;
    text-transform: uppercase;
    color: #202020;
}

.role-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 0 0 auto;
    height: 46px;
    padding: 4px;
    background: #f8f8f8;
    border: 1px solid rgba(176,0,91,0.08);
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.role-switch-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-family: 'Rubik-SemiBold';
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    transition: all 0.2s ease;
}

.role-switch-link.active {
    color: #fff;
    background: #B0005B;
    box-shadow: 0 6px 14px rgba(176,0,91,0.26);
}

.role-switch .toggle-switch {
    display: none;
}

.site-header .main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    flex: 1 1 auto;
    min-width: 0;
}

.site-header .main-nav a,
.site-header .main-nav span {
    font-family: 'Rubik-SemiBold';
    font-size: 16px;
    line-height: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    color: #202638;
}

.site-header .main-nav .nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    transition: color 0.2s ease;
}

.site-header .main-nav .nav-item.active,
.site-header .main-nav .nav-item:hover {
    color: #B0005B;
}

.site-header .main-nav .nav-item.active:after,
.site-header .main-nav .nav-item:hover:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #B0005B;
}

.nav-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 8px;
    border-radius: 999px;
    background: #B0005B;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.site-header .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    height: 72px;
    gap: 0;
}

.site-header .city-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(176,0,91,0.22);
    border-radius: 999px;
    font-family: 'Rubik-SemiBold';
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    color: #202638;
    text-decoration: none;
    background: #fff;
    box-sizing: border-box;
}

.site-header .city-link:before {
    content: none;
}

.site-header .register {
    height: auto;
    padding: 0;
    background: transparent;
}

@media (max-width: 1180px) {
    .site-header {
        padding: 0 24px;
    }

    .site-header .header-container {
        gap: 22px;
    }

    .site-header .logo {
        min-width: 250px;
    }

    #title_domain {
        font-size: 22px;
        line-height: 22px;
    }

    .site-header .main-nav {
        gap: 22px;
    }

    .site-header .main-nav a,
    .site-header .main-nav span {
        font-size: 14px;
        line-height: 18px;
    }

    .role-switch-link {
        min-width: 72px;
        padding: 0 14px;
    }
}

@media (max-width: 992px) {
    main {
        margin-top: 64px;
    }

    .site-header {
        display: none;
    }

    .mobile-header {
        min-height: 64px;
        padding: 10px 58px 10px 16px;
        border-bottom: 1px solid rgba(176,0,91,0.12);
        background: #fff;
        box-shadow: 0 2px 14px rgba(0,0,0,0.05);
    }

    .mh-logo {
        min-height: 42px;
        padding: 0;
        gap: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .mh-circle {
        display: none;
    }

    .mh-name-text {
        font-family: 'Arial';
        font-size: 19px;
        line-height: 19px;
        font-weight: 900;
        letter-spacing: -0.08em;
        text-transform: uppercase;
        color: #202020;
        padding-right: 0;
    }

    .mh-right {
        gap: 8px;
    }

    .mh-city {
        flex: 0 1 auto;
        bottom: 0;
        padding-right: 0;
    }

    .mh-city .city-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        max-width: 135px;
        padding: 0 12px;
        border: 1px solid rgba(176,0,91,0.22);
        border-radius: 999px;
        font-size: 13px;
        line-height: 16px;
        font-weight: 700;
        text-decoration: none;
        color: #202638;
        background: #fff;
        box-shadow: none;
    }

    .mh-city .city-link:before {
        content: none;
    }

    .mh-menu-wrap {
        right: 16px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid rgba(176,0,91,0.14);
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mh-menu,
    .mh-menu-close {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .mh-menu-panel {
        top: 78px;
        width: calc(100% - 32px);
        max-width: 420px;
        padding: 18px;
        border-radius: 24px;
        box-shadow: 0 18px 45px rgba(0,0,0,0.22);
    }

    .mh-role-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 4px;
        margin-bottom: 12px;
        border-radius: 999px;
        background: #f8f8f8;
        border: 1px solid rgba(176,0,91,0.08);
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
    }

    .mh-role-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        border-radius: 999px;
        font-family: 'Rubik-SemiBold';
        font-size: 13px;
        line-height: 16px;
        font-weight: 800;
        text-decoration: none;
        color: #222;
    }

    .mh-role-link.active {
        color: #fff;
        background: #B0005B;
        box-shadow: 0 6px 14px rgba(176,0,91,0.26);
    }

    .mh-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 12px;
        border-radius: 16px;
        font-family: 'Rubik-SemiBold';
        font-size: 16px;
        line-height: 20px;
        font-weight: 800;
        text-transform: uppercase;
        color: #202638;
        text-decoration: none;
    }

    .mh-link.active {
        text-decoration: none;
        background: rgba(176,0,91,0.08);
        color: #B0005B;
    }

    .mh-link:hover {
        background: rgba(176,0,91,0.08);
    }

    .mh-new-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 18px;
        padding: 0 8px;
        border-radius: 999px;
        background: #B0005B;
        color: #fff;
        font-size: 11px;
        line-height: 11px;
        font-weight: 800;
    }
}

@media (max-width: 420px) {
    .mobile-header {
        padding-left: 10px;
        padding-right: 54px;
    }

    .mh-name-text {
        font-size: 16px;
        line-height: 16px;
    }

    .mh-city .city-link {
        max-width: 112px;
        padding: 0 10px;
    }

    .mh-menu-wrap {
        right: 10px;
    }
}


body {
    padding-top: 72px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    padding: 0 24px;
    background: #f8f6f7;
    border-bottom: 1px solid #eadde3;
    box-shadow: 0 2px 12px rgba(34, 24, 30, 0.04);
}

.site-header .header-container {
    max-width: 1330px;
    height: 72px;
    gap: 44px;
}

.site-header .logo {
    min-width: 290px;
    color: #1f1f24;
}

#title_domain {
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.075em;
    color: #1f1f24;
}

.logo-domain-dot {
    color: #a01555;
}

.role-switch {
    height: 42px;
    padding: 4px;
    background: #f4f3f4;
    border: 1px solid #ebe6e9;
    box-shadow: inset 0 1px 4px rgba(36, 24, 30, 0.09);
}

.role-switch-link {
    min-width: 80px;
    height: 34px;
    padding: 0 18px;
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
    color: #202432;
}

.role-switch-link.active {
    background: #a01555;
    box-shadow: 0 5px 13px rgba(160, 21, 85, 0.28);
}

.site-header .main-nav {
    gap: 36px;
}

.site-header .main-nav a,
.site-header .main-nav span {
    font-size: 15px;
    line-height: 18px;
    font-weight: 800;
    letter-spacing: 0.025em;
    color: #202432;
}

.site-header .main-nav .nav-item {
    min-height: 48px;
}

.site-header .main-nav .nav-item:hover {
    color: #202432;
}

.site-header .main-nav .nav-item:hover:after {
    content: none;
}

.site-header .main-nav .nav-item.active {
    color: #a01555;
}

.site-header .main-nav .nav-item.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 3px;
    background: #a01555;
}

.nav-new-badge {
    height: 20px;
    padding: 0 10px;
    background: #a01555;
    font-size: 11px !important;
    line-height: 12px !important;
}

.site-header .header-right {
    height: 72px;
}

.site-header .city-link {
    min-width: 96px;
    height: 46px;
    padding: 0 22px;
    border-color: rgba(160, 21, 85, 0.24);
    font-size: 15px;
    line-height: 18px;
    color: #202432;
    background: #f8f6f7;
}

@media (max-width: 1180px) {
    .site-header .header-container {
        gap: 26px;
    }

    .site-header .logo {
        min-width: 245px;
    }

    .site-header .main-nav {
        gap: 24px;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 64px;
    }

    main {
        margin-top: 0;
    }

    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #f8f6f7;
    }

    .mh-name-text {
        color: #1f1f24;
    }

    .mh-role-link.active,
    .mh-new-badge {
        background: #a01555;
    }

    .mh-link.active {
        color: #a01555;
        background: rgba(160, 21, 85, 0.08);
    }
}

/* ===== Header fix 4 ===== */
.site-header {
    background: #f4f3f4;
}

.site-header .header-container {
    max-width: 1288px;
    display: grid;
    grid-template-columns: auto minmax(36px, 1fr) auto minmax(36px, 1fr) auto minmax(36px, 1fr) auto;
    align-items: center;
    justify-content: normal;
    gap: 0;
}

.site-header .logo {
    grid-column: 1;
    min-width: 0;
    width: 235px;
}

.role-switch {
    grid-column: 3;
    height: 38px;
    padding: 3px;
}

.site-header .main-nav {
    grid-column: 5;
    gap: 34px;
    height: 56px;
    align-items: center;
}

.site-header .header-right {
    grid-column: 7;
    justify-content: flex-end;
}

.site-header .main-nav a,
.site-header .main-nav span {
    font-family: 'Rubik-SemiBold';
    font-size: 14px;
    line-height: 17px;
    font-weight: 600;
    letter-spacing: 0.035em;
    color: #252b3a;
}

.site-header .main-nav .nav-item {
    min-height: 56px;
    padding-top: 2px;
}

.site-header .main-nav .nav-item:hover {
    color: #a01555;
}

.site-header .main-nav .nav-item.active:after {
    bottom: 7px;
    height: 2px;
}

.role-switch-link {
    height: 32px;
    min-width: 74px;
    padding: 0 16px;
    font-size: 14px;
    line-height: 16px;
}

.nav-new-badge {
    height: 19px;
    padding: 0 9px;
    font-size: 10px !important;
    line-height: 11px !important;
    letter-spacing: 0.02em;
}

.site-header .city-link:hover {
    color: #a01555;
    border-color: rgba(160, 21, 85, 0.42);
}

@media (max-width: 1180px) {
    .site-header .header-container {
        grid-template-columns: auto minmax(22px, 1fr) auto minmax(22px, 1fr) auto minmax(22px, 1fr) auto;
    }

    .site-header .logo {
        width: 220px;
    }

    .site-header .main-nav {
        gap: 24px;
    }
}

/* ===== Header fix 5 ===== */
.site-header {
    --header-accent: #B0005B;
}

.logo-domain-dot {
    color: var(--header-accent);
}

.role-switch {
    height: 34px;
    padding: 3px;
    border-color: #ebe5e8;
    background: #f5f3f4;
}

.role-switch-link {
    height: 28px;
    min-width: 70px;
    padding: 0 15px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    color: #252b36;
}

.role-switch-link.active {
    background: var(--header-accent);
    box-shadow: 0 4px 10px rgba(176, 0, 91, 0.26);
    font-weight: 600;
}

.site-header .main-nav {
    height: 58px;
    align-items: stretch;
    gap: 34px;
}

.site-header .main-nav a,
.site-header .main-nav span {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 17px;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: #202636;
}

.site-header .main-nav .nav-item {
    min-height: 58px;
    align-items: flex-start;
    padding-top: 15px;
    box-sizing: border-box;
}

.site-header .main-nav .nav-item:hover {
    color: var(--header-accent);
}

.site-header .main-nav .nav-item.active {
    color: var(--header-accent);
}

.site-header .main-nav .nav-item.active:after {
    bottom: 9px;
    height: 2px;
    background: var(--header-accent);
}

.nav-new-badge {
    height: 18px;
    min-width: 36px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--header-accent);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 10px !important;
    line-height: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em;
    transform: translateY(-1px);
}

.site-header .city-link {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 17px;
    font-weight: 600;
    color: #202636;
    border-color: rgba(176, 0, 91, 0.18);
}

.site-header .city-link:hover {
    color: var(--header-accent);
    border-color: var(--header-accent);
    background: #f8f6f7;
}

@media (max-width: 992px) {
    .mh-role-link.active,
    .mh-new-badge {
        background: var(--header-accent, #B0005B);
    }

    .mh-link.active {
        color: var(--header-accent, #B0005B);
        background: rgba(176, 0, 91, 0.08);
    }
}

/* ===== Header fix 6 ===== */
.site-header {
    --header-accent: #9b124f;
    height: 68px;
    background: #f4f3f4;
    border-bottom-color: #eadde3;
}

body {
    padding-top: 68px;
}

.site-header .header-container {
    height: 68px;
}

.logo-domain-dot,
.site-header .main-nav .nav-item.active,
.site-header .main-nav .nav-item:hover,
.site-header .city-link:hover {
    color: var(--header-accent);
}

.role-switch-link.active,
.nav-new-badge {
    background: var(--header-accent);
}

.role-switch-link.active {
    box-shadow: 0 4px 10px rgba(155, 18, 79, 0.28);
}

.role-switch {
    height: 32px;
    padding: 3px;
}

.role-switch-link {
    height: 26px;
    min-width: 68px;
    padding: 0 14px;
    font-size: 13px;
    line-height: 15px;
    font-weight: 500;
}

.role-switch-link.active {
    font-weight: 600;
}

.site-header .main-nav {
    height: 54px;
}

.site-header .main-nav a,
.site-header .main-nav span {
    font-size: 14px;
    line-height: 17px;
    font-weight: 500;
    letter-spacing: 0.022em;
}

.site-header .main-nav .nav-item {
    min-height: 54px;
    padding-top: 13px;
}

.site-header .main-nav .nav-item.active:after {
    bottom: 14px;
    height: 2px;
    background: var(--header-accent);
}

.nav-new-badge {
    height: 17px;
    min-width: 0;
    padding: 0 7px;
    font-size: 9px !important;
    line-height: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    transform: translateY(-1px);
}

.site-header .city-link {
    height: 42px;
    padding: 0 22px;
    font-size: 14px;
    line-height: 42px;
    font-weight: 500;
    color: #202636;
}

.site-header .city-link:hover {
    border-color: var(--header-accent);
    background: #f8f6f7;
}

@media (max-width: 992px) {
    body {
        padding-top: 64px;
    }

    .site-header {
        height: auto;
    }

    .mh-role-link.active,
    .mh-new-badge {
        background: var(--header-accent, #9b124f);
    }

    .mh-link.active {
        color: var(--header-accent, #9b124f);
        background: rgba(155, 18, 79, 0.08);
    }
}

/* ===== Header fix 7 ===== */
.site-header {
    background: #F8F7F5;
}

.role-switch {
    height: 36px;
    padding: 3px;
}

.role-switch-link {
    height: 30px;
    min-width: 70px;
    padding: 0 15px;
    font-size: 14px;
    line-height: 16px;
    font-weight: 600;
}

.role-switch-link.active {
    font-weight: 700;
}

.site-header .main-nav a,
.site-header .main-nav span {
    letter-spacing: 0.025em;
}


/* ===== Header fix 8 ===== */
@media (max-width: 992px) {
    .mobile-header {
        height: 56px;
        padding: 0 16px;
        border-bottom: 1px solid #ece4e8;
        background: #F8F7F5;
    }

    .mh-right {
        flex: 0 0 auto;
        overflow: visible;
    }

    .mh-city {
        display: none;
    }

    .mh-menu-wrap {
        right: 16px;
        width: 26px;
        height: 26px;
    }

    .mh-menu,
    .mh-menu-close {
        width: 26px;
        height: 26px;
    }

    .mh-menu-panel {
        position: fixed;
        top: 56px;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        padding: 48px 24px 36px;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.28s ease;
        overflow-y: auto;
        text-align: left;
    }

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

    .mh-overlay,
    .mh-overlay.active {
        display: none;
    }

    body:has(.mh-menu-panel.active) {
        overflow: hidden;
    }

    .mh-role-switch {
        width: fit-content;
        margin: 0 auto 28px;
        height: 40px;
        padding: 3px;
        border-radius: 999px;
        background: #f4f2f3;
        border: 1px solid #ebe5e8;
        box-shadow: 0 4px 12px rgba(24, 29, 42, 0.12);
        display: flex;
        align-items: center;
    }

    .mh-role-link {
        min-width: 86px;
        height: 34px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        font-size: 14px;
        line-height: 16px;
        font-weight: 600;
        color: #071326;
        text-decoration: none;
    }

    .mh-role-link.active {
        color: #fff;
        font-weight: 700;
        box-shadow: 0 5px 12px rgba(155, 18, 79, 0.28);
    }

    .mh-nav {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mh-link {
        display: block;
        padding: 0;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        font-size: 20px;
        line-height: 24px;
        font-weight: 700;
        letter-spacing: 0.025em;
        text-transform: uppercase;
        color: #071326;
        text-decoration: none;
    }

    .mh-link.active,
    .mh-link:hover {
        color: var(--header-accent, #9b124f);
        background: none;
        text-decoration: none;
    }
}

/* ===== Header fix 9 ===== */
@media (max-width: 992px) {
    .mh-menu-wrap {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .mh-menu,
    .mh-menu-close {
        display: block;
    }

    .mh-role-switch {
        box-shadow: inset 0 2px 6px rgba(24, 29, 42, 0.12);
        border-color: #ebe5e8;
    }

    .mh-link {
        font-weight: 600;
    }
}

/* ===== Header fix 10 ===== */
@media (max-width: 992px) {
    .mh-menu {
        display: block !important;
    }

    .mh-menu-close {
        display: none !important;
    }

    body:has(.mh-menu-panel.active) .mh-menu {
        display: none !important;
    }

    body:has(.mh-menu-panel.active) .mh-menu-close {
        display: block !important;
    }
}

/* ===== Header fix 11 ===== */
@media (max-width: 992px) {
    .mobile-header {
        box-shadow: 0 3px 12px rgba(24, 29, 42, 0.075);
    }

    .mh-name-text {
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
        font-size: 22px;
        line-height: 22px;
        font-weight: 900;
        letter-spacing: -0.065em;
        text-transform: uppercase;
        color: #1f1f24;
        padding-right: 0;
    }

    .mh-menu-panel {
        display: none;
        top: 56px;
        background: #F8F7F5;
        transform: none;
        transition: none;
    }

    .mh-menu-panel.active {
        display: block;
        transform: none;
    }

    .mh-role-switch {
        width: 200px;
        height: 50px;
        padding: 4px;
        box-sizing: border-box;
        margin: 0 auto 28px;
        background: #f4f2f3;
        box-shadow: inset 0 2px 7px rgba(24, 29, 42, 0.14);
    }

    .mh-role-link {
        flex: 1 1 50%;
        min-width: 0;
        height: 42px;
        padding: 0;
        box-sizing: border-box;
        font-size: 15px;
        line-height: 18px;
        font-weight: 650;
    }

    .mh-role-link.active {
        font-weight: 750;
    }

    .mh-link {
        font-size: 20px;
        line-height: 24px;
        font-weight: 550;
        letter-spacing: 0.025em;
    }
}

@media (max-width: 420px) {
    .mh-name-text {
        font-size: 21px;
        line-height: 21px;
        letter-spacing: -0.065em;
    }
}

/* ===== Header fix 12 ===== */
@media (max-width: 992px) {
    .mobile-header {
        box-shadow: none;
        border-bottom: 1px solid #ded5da;
    }

    .mh-name-text .logo-domain-dot {
        color: var(--header-accent, #9b124f) !important;
    }

    .mh-role-switch {
        width: fit-content;
        height: 40px;
        padding: 3px;
        margin: 0 auto 28px;
        background: #f4f2f3;
        border: 1px solid #ebe5e8;
        box-shadow: inset 0 2px 6px rgba(24, 29, 42, 0.12);
    }

    .mh-role-link {
        flex: 0 0 auto;
        min-width: 86px;
        height: 34px;
        padding: 0 16px;
        font-size: 14px;
        line-height: 16px;
        font-weight: 600;
        color: #101827;
    }

    .mh-role-link.active {
        font-weight: 700;
    }

    .mh-link {
        color: #101827;
    }
}


.site-header,
.mobile-header,
.mh-menu-panel {
    --header-accent: #B0005B;
    --header-accent-rgb: 176, 0, 91;
}

.logo-domain-dot,
.site-header .main-nav .nav-item.active,
.site-header .main-nav .nav-item:hover,
.site-header .city-link:hover,
.mh-link.active,
.mh-link:hover {
    color: var(--header-accent);
}

.role-switch-link.active,
.nav-new-badge,
.mh-role-link.active,
.mh-new-badge {
    background: var(--header-accent);
}

.role-switch-link.active {
    box-shadow: 0 4px 10px rgba(var(--header-accent-rgb), 0.26);
}

.site-header .main-nav .nav-item.active:after {
    background: var(--header-accent);
}

.site-header .city-link {
    border-color: rgba(var(--header-accent-rgb), 0.18);
}

.site-header .city-link:hover {
    border-color: var(--header-accent);
}

@media (max-width: 992px) {
    .mobile-header {
        border-bottom-color: rgba(var(--header-accent-rgb), 0.16);
    }

    .mh-role-link.active {
        box-shadow: 0 5px 12px rgba(var(--header-accent-rgb), 0.28);
    }

    .mh-link.active {
        background: rgba(var(--header-accent-rgb), 0.08);
    }
}

.site-header .main-nav {
    gap: 0;
    white-space: nowrap;
}

.site-header .main-nav .nav-item {
    display: flex;
    align-items: center;
    height: 48px;
    min-height: 48px;
    padding: 0;
    box-sizing: border-box;
    font-family: Montserrat, sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-transform: none;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-font-smoothing: antialiased;
}

.site-header .main-nav .nav-item + .nav-item {
    margin-left: 32px;
}

.site-header .main-nav .nav-item.active:after {
    bottom: 0;
}

@media (max-width: 1180px) {
    .site-header .main-nav .nav-item + .nav-item {
        margin-left: 20px;
    }
}

@media (min-width: 993px) {
    body {
        padding-top: 76px;
    }

    .site-header {
        height: 76px;
        padding: 0 24px;
        box-sizing: border-box;
        background: #f8f7f5;
        border-bottom: 1px solid rgba(var(--header-accent-rgb), 0.08);
        box-shadow: 0 2px 4px -2px rgba(var(--header-accent-rgb), 0.10);
    }

    .site-header .header-container {
        width: 100%;
        max-width: 1280px;
        height: 76px;
        display: grid;
        grid-template-columns: max-content minmax(24px, 1fr) max-content minmax(24px, 1fr) max-content minmax(24px, 1fr) max-content;
        align-items: center;
        gap: 0;
    }

    .site-header .logo {
        grid-column: 1;
        width: max-content;
        min-width: 0;
        white-space: nowrap;
    }

    #title_domain {
        color: #1a1a1a;
    }

    .role-switch {
        grid-column: 3;
        width: auto;
        height: 44px;
        padding: 4px;
        box-sizing: border-box;
        border: 1px solid #e8e8e8;
        background: #f1f1f1;
        box-shadow: inset 0 1px 3px rgba(31, 41, 55, 0.08);
    }

    .role-switch-link {
        flex: 1 1 0%;
        min-width: 0;
        height: 35.5px;
        padding: 8px 18px;
        box-sizing: border-box;
        font-family: Montserrat, sans-serif;
        font-size: 13px;
        line-height: 19.5px;
        font-weight: 600;
        letter-spacing: normal;
        color: #1a1a1a;
    }

    .role-switch-link.active {
        font-weight: 700;
        box-shadow: 0 5px 12px rgba(var(--header-accent-rgb), 0.3);
    }

    .site-header .main-nav {
        grid-column: 5;
        width: max-content;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        transform: translateY(2px);
    }

    .site-header .main-nav a,
    .site-header .main-nav span,
    .site-header .main-nav .nav-item {
        font-family: Montserrat, sans-serif;
        font-feature-settings: normal;
        font-variation-settings: normal;
        font-size: 14px;
        line-height: 20px;
        font-weight: 600;
        letter-spacing: 0.35px;
        text-transform: uppercase;
        color: #1f2937;
        -webkit-font-smoothing: antialiased;
    }

    .site-header .main-nav .nav-item {
        height: 48px;
        min-height: 48px;
        padding: 0 0 11px;
        align-items: center;
    }

    .site-header .main-nav .nav-item + .nav-item {
        margin-left: 32px;
    }

    .site-header .main-nav .nav-item.active:after,
    .site-header .main-nav .nav-item:hover:after {
        bottom: 14px;
        height: 2px;
    }

    .nav-new-badge {
        height: 18px;
        padding: 0 7px;
        font-size: 10px !important;
        line-height: 10px !important;
        letter-spacing: 0 !important;
        transform: none;
        background: var(--header-accent);
        animation: header-new-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    .site-header .header-right {
        grid-column: 7;
        width: max-content;
        height: 76px;
    }

    .site-header .header-right > .city-link {
        display: inline-flex;
    }

    .header-auth-link {
        width: 188px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        border: 1px solid rgba(var(--header-accent-rgb), 0.2);
        border-radius: 999px;
        background: transparent;
        font-family: Montserrat, sans-serif;
        font-size: 14px;
        line-height: 20px;
        font-weight: 600;
        color: #1a1a1a;
        text-decoration: none;
        white-space: nowrap;
        transition: border-color 0.15s ease, color 0.15s ease;
    }

    .header-auth-link:hover {
        border-color: var(--header-accent);
        color: var(--header-accent);
    }
}

@keyframes header-new-pulse {
    50% {
        opacity: 0.5;
    }
}

@media (min-width: 993px) and (max-width: 1327px) {
    .site-header .header-container {
        grid-template-columns: max-content minmax(18px, 1fr) max-content minmax(18px, 1fr) max-content minmax(18px, 1fr) max-content;
    }

    .role-switch {
        width: 190px;
    }

    .site-header .main-nav {
        width: max-content;
    }

    .site-header .main-nav .nav-item + .nav-item {
        margin-left: 18px;
    }

    .site-header .header-right {
        width: max-content;
    }

    .header-auth-link {
        width: 170px;
    }
}

@media (max-width: 992px) {
    .header-auth-link {
        display: none;
    }

    .mh-menu-wrap,
    .mh-menu,
    .mh-menu-close {
        width: 20px;
        height: 20px;
    }

    .mh-role-switch {
        width: 211px;
        height: 46px;
        padding: 4px;
        box-sizing: border-box;
        background: #f1f1f1;
        border: 1px solid #e8e8e8;
        box-shadow: inset 0 1px 3px rgba(31, 41, 55, 0.08);
    }

    .mh-role-link {
        flex: 1 1 0%;
        min-width: auto;
        height: 35.5px;
        padding: 8px 20px;
        box-sizing: border-box;
        font-family: Montserrat, sans-serif;
        font-size: 13px;
        line-height: 19.5px;
        font-weight: 600;
        letter-spacing: normal;
        color: #1a1a1a;
    }

    .mh-role-link.active {
        color: #fff;
        font-weight: 700;
    }

    .mh-nav {
        gap: 0;
    }

    .mh-nav > :first-child {
        margin-top: 0;
    }

    .mh-link,
    .mh-auth-link {
        display: block;
        width: 100%;
        height: 28px;
        margin-top: 16px;
        padding: 0;
        box-sizing: border-box;
        font-family: Montserrat, sans-serif;
        font-size: 18px;
        line-height: 28px;
        font-weight: 600;
        letter-spacing: normal;
        color: #1f2937;
        text-decoration: none;
        text-transform: none;
        transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mh-link.active,
    .mh-link:hover {
        color: var(--header-accent);
        background: transparent;
    }

    .mh-link {
        text-transform: uppercase;
    }

    .mh-menu-divider {
        width: 100%;
        height: 1px;
        margin-top: 16px;
        background: #e5e7eb;
    }
}

@media (min-width: 993px) {
    .site-header .city-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 20px;
    }
}

@media (max-width: 992px) {
    .mh-city .city-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 16px;
    }
}
