/* DK-HEADER - шапка сайта */

:root {
    --dkh-bg: #1b1b1b;
    --dkh-text: #ffffff;
    --dkh-text-muted: #8b92a3;
    --dkh-border: #2d323d;
    --dkh-accent: #ffa500;
    --dkh-vip: #ffc107;
    --dkh-input-bg: #1d1d20;
    --dkh-radius: 5px;
}

.dk-header {
    background: var(--dkh-bg);
    padding: 12px 24px;
    border-bottom: 1px solid var(--dkh-border);
    margin-bottom:15px;
}

.dk-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1270px;
    margin: 0 auto;
    padding:10px;
}

/* ЛОГО */
.dk-header__logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}
.dk-header__logo:hover {
    color: #fff;
    text-decoration: none;
}
.dk-header__logo-img {
    height: 32px;
    width: auto;
    max-width: 180px;
}
.dk-header__logo-sub {
    font-size: 14px;
    color: #fff;
    margin-top: 2px;
    font-weight:600;
    line-height: 1.2;
}

/* МЕНЮ ДЕСКТОП */
.dk-header__menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}
.dk-header__menu-link {
    color: var(--dkh-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dk-header__menu-link:hover {
    color: var(--dkh-accent);
}
.dk-header__menu-link--premium {
    color: var(--dkh-vip);
}
.dk-header__menu-link--premium:hover {
    color: var(--dkh-vip);
    opacity: 0.85;
}
.dk-header__crown {
    width: 14px;
    height: 14px;
}

/* ПОИСК */
.dk-header__search {
    position: relative;
    flex: 1;
    max-width: 380px;
    margin-left: auto;
}
.dk-header__search-input {
    width: 100%;
    background: var(--dkh-input-bg);
    border: 1px solid var(--dkh-border);
    border-radius: var(--dkh-radius);
    color: var(--dkh-text);
    padding: 10px 42px 10px 14px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.18s;
}
.dk-header__search-input::placeholder {
    color: var(--dkh-text-muted);
}
.dk-header__search-input:focus {
    border-color: var(--dkh-accent);
}
.dk-header__search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--dkh-text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.dk-header__search-btn svg {
    width: 18px;
    height: 18px;
}

/* ГОРОД */
.dk-header__city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dkh-input-bg);
    border: 1px solid var(--dkh-border);
    color: var(--dkh-text);
    padding: 9px 14px;
    border-radius: var(--dkh-radius);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.dk-header__city:hover {
    color: var(--dkh-text);
    border-color: var(--dkh-accent);
}
.dk-header__city-icon {
    width: 16px;
    height: 16px;
    color: var(--dkh-accent);
}
.dk-header__city-arrow {
    width: 12px;
    height: 12px;
    color: var(--dkh-text-muted);
}

/* КНОПКА ДОБАВИТЬ */
.dk-header__add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dkh-accent);
    color: #000;
    padding: 8px 18px;
    border-radius: var(--dkh-radius);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.18s;
}
.dk-header__add-btn:hover {
    background: #c48003;
    color: #000;
}
.dk-header__add-btn svg {
    width: 14px;
    height: 14px;
}

/* БУРГЕР */
.dk-header__burger {
    display: none;
    background: transparent;
    border: none;
    width: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.dk-header__burger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    width: 22px;
}

/* МОБИЛЬНЫЙ ПОИСК */
.dk-header__mobile-search {
    display: none;
    padding-top: 12px;
}

/* МОБИЛЬНЫЕ ТАБЫ */
.dk-header__chips {
    display: none;
    gap: 8px;
    padding-top: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.dk-header__chips::-webkit-scrollbar { display: none; }

.dk-header__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    background: var(--dkh-input-bg);
    border: 1px solid var(--dkh-border);
    border-radius: 7px;
    color: var(--dkh-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.dk-header__chip:hover {
    color: var(--dkh-text);
    border-color: var(--dkh-accent);
}
.dk-header__chip svg {
    width: 17px;
    height: 17px;
}
.dk-header__chip--filter {
    background: var(--dkh-accent);
    border-color: var(--dkh-accent);
    color: #000;
}
.dk-header__chip--vip {
    background: var(--dkh-vip);
    border-color: var(--dkh-vip);
    color: #1a1d24;
    font-weight: 700;
}
.dk-ico--gold {
    color:#ffa500;
}

/* === АДАПТИВ === */

/* Планшеты — скрываем часть пунктов меню */
@media (max-width: 1300px) {
    .dk-header__menu { gap: 14px; }
    .dk-header__menu-link { font-size: 13px; }
    .dk-header__inner { gap: 16px; }
}

@media (max-width: 1100px) {
    .dk-header__menu { display: none; }
}

/* Мобилка */
@media (max-width: 767px) {
    .dk-header {
    padding: 10px 0px 10px 10px;
    }
    .dk-header__inner {
        gap: 10px;
        flex-wrap: wrap;
    }
    .dk-header__logo-img {
        height: 26px;
    }
    .dk-header__logo-sub {
        font-size: 10px;
    }
    .dk-header__search,
    .dk-header__city,
    .dk-header__add-btn,
    .dk-header__menu {
        display: none;
    }
    .dk-header__burger {
        display: flex;
        margin-left: auto;
    }
    .dk-header__mobile-search { display: block; flex: 1 1 100%; }
    .dk-header__mobile-search .dk-header__search { display: block; max-width: none; margin-left: 0; }
    .dk-header__chips { display: flex; flex: 1 1 100%; }
}




/* === КНОПКА ПОЛЬЗОВАТЕЛЯ === */
.dk-header__user {
    background: var(--dkh-input-bg);
    border: 1px solid var(--dkh-border);
    color: var(--dkh-text);
    width: 42px;
    height: 42px;
    border-radius: var(--dkh-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s;
    padding: 0;
}
.dk-header__user:hover {
    border-color: var(--dkh-accent);
    color: var(--dkh-accent);
}
.dk-header__user svg {
    width: 20px;
    height: 20px;
}

/* Мобилка - скрываем кнопку пользователя (есть бургер) */
@media (max-width: 767px) {
    .dk-header__user {
        display: none;
    }
}

.cont-n {
    max-width:100%;
}

.cont-n-f {
    max-width:100%;
    padding-right:130px;
    padding-left:130px;
}

@media (max-width:768px){
    .cont-n-f {
    max-width:100%;
    padding-right:0px;
    padding-left:0px;
}
}

/* === МОБИЛЬНЫЕ ИКОНКИ СПРАВА === */
.dk-header__mobile-actions {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.dk-header__micon {
    background: none;
    border: none;
    color: var(--dkh-text);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.dk-header__micon svg { width: 20px; height: 20px; }
.dk-header__micon.is-active {
    border-color: var(--dkh-accent);
    color: var(--dkh-accent);
}

/* Выпадающий список районов */
.dk-header__location-wrap { position: relative; }
.dk-header__zones {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    width: 220px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--dkh-bg);
    border: 1px solid var(--dkh-border);
    border-radius: 12px;
    padding: 8px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dk-header__zones.is-open { display: block; }
.dk-header__zones-title {
    font-size: 12px;
    color: var(--dkh-text-muted);
    text-transform: uppercase;
    padding: 6px 10px;
}
.dk-header__zone-link {
    display: block;
    padding: 9px 10px;
    color: var(--dkh-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
}
.dk-header__zone-link:hover {
    background: var(--dkh-input-bg);
    color: var(--dkh-accent);
}

/* Мобильный поиск скрыт по умолчанию, открывается по лупе */
@media (max-width: 767px) {
    .dk-header__mobile-search { display: none; }
    .dk-header__mobile-search.is-open { display: block; }
    .dk-header__mobile-actions { display: flex; }
    .dk-header__burger { display: flex !important; margin-left: 0; }
}


.swiper-button-next.dk-banner-next, .swiper-button-prev.dk-banner-prev {
    background:none!important;
    border:none!important;
}





/* Локация на десктопе */
.dk-header__dlocation {
    position: relative;
    flex-shrink: 0;
}
.dk-header__dlocation .dk-header__city {
    cursor: pointer;
}
.dk-header__city.is-active {
    border-color: var(--dkh-accent);
    color: var(--dkh-accent);
}
.dk-header__dlocation .dk-header__zones {
    left: 0;
    right: auto;
    top: 48px;
}

/* На мобилке десктопную локацию прячем */
@media (max-width: 767px) {
    .dk-header__dlocation { display: none; }
}