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

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

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

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

/* ЛОГО */
.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: 36px;
    height: 36px;
    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: 7px 14px;
    background: var(--dkh-input-bg);
    border: 1px solid var(--dkh-border);
    border-radius: 999px;
    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: 12px;
    height: 12px;
}
.dk-header__chip--filter {
    background: var(--dkh-accent);
    border-color: var(--dkh-accent);
    color: #fff;
}
.dk-header__chip--vip {
    background: var(--dkh-vip);
    border-color: var(--dkh-vip);
    color: #1a1d24;
    font-weight: 700;
}


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

/* Планшеты — скрываем часть пунктов меню */
@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 14px;
    }
    .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;
    }
}