/* ПОИСК */

.search-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 50px;
}

.search-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.1rem;
    border: 1px solid #2b313c;
    border-radius: 14px;
    background: #1b1f27;
    color: white;
    outline: none;
}

.search-input:focus {
    border-color: #d4a64a;
}

.search-tabs {
    display: flex;
    flex: 0 0 auto;

    overflow-x: auto;
    overflow-y: hidden;

    border-bottom: 1px solid #2b313c;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.search-tabs::-webkit-scrollbar {
    display: none;
}

.search-tab {
    flex-shrink: 0;

    padding: 14px 18px;

    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;

    color: rgba(255,255,255,.75);
    font-size: .95rem;
    font-weight: 500;

    cursor: pointer;

    transition: .15s ease;
}

.search-tab:hover {
    color: white;
    background: rgba(255,255,255,.03);
}

.search-tab.active {
    color: white;
    background: rgba(212,166,74,.12);

    border-bottom-color: #d4a64a;
}

.search-tab:focus {
    outline: none;
}

.search-footer {
    flex: 0 0 auto;
}

.search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background .15s ease;
}

.search-result:hover {
    background: rgba(212,166,74,.15);
}

.search-result.selected {
    background: rgba(212,166,74,.15);
    border-left: 3px solid #d4a64a;
}

.search-title {
    display: block;
    font-weight: 600;
}

.search-results {
    display: none;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #1b1f27;
    border: 1px solid #16191F;
    border-radius: 14px;
    max-height: 320px;
    z-index: 1000;
}

.search-results.open {
    display: flex;
}

.search-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.search-message {
    padding: 14px 18px;
    text-align: center;
    color: rgba(255,255,255,.8);
    cursor: default;
}

.search-error {
    color: #e07c7c;
}

.search-result-body {
    flex: 1;
    min-width: 0;
}

.search-preview {
    width: 64px;
    height: 64px;

    flex-shrink: 0;
}

.search-result-divider {
    width: 100%;
    height: 1px;
    background: #2B313C;
    flex-shrink: 0;
}

.search-tab-divider {
    width: 1px;
    align-self: stretch;
    background: #2B313C;
    flex-shrink: 0;
}

/* Chrome, Edge, Opera */

.search-content::-webkit-scrollbar {
    width: 10px;
}

.search-content::-webkit-scrollbar-track {
    background: #111827;
}

.search-content::-webkit-scrollbar-thumb {
    background: #bf9349;
    border-radius: 999px;
    border: 2px solid #111827;
}

.search-content::-webkit-scrollbar-thumb:hover {
    background: #d5a85a;
}

/* Firefox */

.search-content {
    scrollbar-width: thin;
    scrollbar-color: #bf9349 #111827;
}

@media (max-width: 768px) {

    .search-results {
        max-height: 40vh;
    }

}

/* FOOTER */

.footer {
    margin-top: 6rem;
    padding: 3rem 2rem 1.5rem;

    background: #111;
    border-top: 1px solid rgba(179, 138, 61, 0.3);

    color: #b8b8b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer h3 {
    margin: 0 0 1rem;

    color: #f0e2b3;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.footer p {
    margin: 0;
}

.footer ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.footer li + li {
    margin-top: 0.4rem;
}

.footer a {
    color: #b38a3d;
    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.footer a:hover {
    color: #d8ae5d;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;

    border-top: 1px solid rgba(255,255,255,0.08);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    color: #8f8f8f;
    font-size: 0.875rem;
}

@media (max-width: 768px) {

    .footer {
        padding: 2.5rem 1.25rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

}