/* ====== Основная структура ====== */
.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;
    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;
    }

    .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;
    }
}