.dth-header {
    position: relative;
    z-index: 20;
    color: #fbf8f5;
    background: #141216;
    border-bottom: 1px solid #443640;
}
.dth-inner {
    width: min(1280px, calc(100% - 72px));
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-inline: auto;
}
.dth-header a { text-decoration: none; }
.dth-header .dth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: inherit;
    font-size: 1.4rem;
    font-weight: 750;
}
.dth-brand img { display: block; object-fit: contain; }
.dth-nav, .dth-account {
    display: flex;
    align-items: center;
    gap: 12px clamp(14px, 2.5vw, 36px);
    font-size: .9rem;
    font-weight: 600;
}
.dth-account { gap: 12px; }
.dth-account span { color: #c9bec5; overflow-wrap: anywhere; }
.dth-account form { margin: 0; }
.dth-nav > a, .dth-products summary { color: #c9bec5; }
.dth-nav > a:hover, .dth-products summary:hover, .dth-products[open] summary { color: #fbf8f5; }
.dth-header .dth-cabinet {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #80727b;
    border-radius: 7px;
    color: #fbf8f5;
    background: transparent;
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.dth-products { position: relative; }
.dth-products summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    list-style: none;
    cursor: pointer;
}
.dth-products summary::-webkit-details-marker { display: none; }
.dth-products summary::after {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    content: "";
}
.dth-products[open] summary::after { transform: translateY(2px) rotate(225deg); }
.dth-menu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    width: 280px;
    max-height: min(65vh, 360px);
    overflow: auto;
    margin: 0;
    padding: 8px;
    border: 1px solid #52414c;
    border-radius: 12px;
    background: #211a21;
    box-shadow: 0 16px 36px #0006;
    list-style: none;
}
.dth-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 6px 9px;
    border-radius: 7px;
    color: #fbf8f5;
}
.dth-menu a:hover, .dth-menu a:focus-visible { background: #382930; }
.dth-menu img { flex: 0 0 28px; object-fit: contain; }
.dth-header :is(a, summary, button):focus-visible { outline: 2px solid #ff8e83; outline-offset: 3px; }

@media (max-width: 760px) {
    .dth-inner { width: calc(100% - 32px); flex-wrap: wrap; min-height: 64px; padding-block: 8px; gap: 6px 12px; }
    .dth-account { flex-basis: 100%; justify-content: flex-end; }
}
@media (max-width: 520px) {
    .dth-inner { position: relative; }
    .dth-header .dth-brand { font-size: 1rem; gap: 6px; }
    .dth-brand img { width: 30px; height: 30px; }
    .dth-nav, .dth-account { font-size: .78rem; gap: 8px; }
    .dth-header .dth-cabinet { padding: 5px 7px; }
    .dth-products { position: static; }
    .dth-menu { top: 100%; inset-inline: auto 0; width: min(280px, 100%); }
}
