.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 20px;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-phone,
.header-email {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: color 0.3s;
    line-height: 1.3;
}

.header-phone {
    color: var(--text-title, var(--text-primary, #111));
}

.header-email {
    color: #d62828;
    font-size: 0.78rem;
    font-weight: 500;
}

.header-phone:hover {
    color: #d62828;
}

.header-email:hover {
    color: var(--text-title, #111);
    text-decoration: underline;
}

.search-toggle-btn {
    background: transparent;
    border: 2px solid var(--border-color, #e8e8e8);
    color: var(--text-title, var(--text-primary, #111));
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-toggle-btn:hover {
    border-color: #d62828;
    color: #d62828;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 13000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 20px 40px;
}

.search-modal.is-open {
    display: flex;
}

.search-modal-box {
    width: 100%;
    max-width: 640px;
    background: var(--bg-container, var(--bg-card, #fff));
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.search-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-title, var(--text-primary, #111));
    outline: none;
}

.search-input::placeholder {
    color: var(--text-light, #888);
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light, #888);
    padding: 4px 8px;
}

.search-modal-close:hover {
    color: #d62828;
}

.search-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 0;
}

.search-result-item {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color, #f0f0f0);
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.is-highlighted {
    background: rgba(214, 40, 40, 0.06);
}

.search-result-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-title, var(--text-primary, #111));
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.search-result-meta {
    font-size: 0.8rem;
    color: #d62828;
    margin-bottom: 4px;
}

.search-result-snippet {
    font-size: 0.88rem;
    color: var(--text-muted, #555);
    line-height: 1.45;
}

.search-empty {
    padding: 30px 24px;
    text-align: center;
    color: var(--text-light, #888);
    font-size: 0.95rem;
}

.search-hint {
    padding: 12px 24px 16px;
    font-size: 0.78rem;
    color: var(--text-light, #999);
    border-top: 1px solid var(--border-color, #f0f0f0);
}

.header-actions .theme-toggle-btn,
.header-actions .search-toggle-btn {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 950px) {
    .header-contacts {
        display: none;
    }

    .header-actions {
        margin-right: 10px;
        margin-left: auto;
        gap: 6px;
        flex-shrink: 0;
    }

    .search-toggle-btn {
        padding: 4px 8px;
        font-size: 0.68rem;
    }

    .search-modal {
        padding-top: 70px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .search-modal-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header-actions {
        margin-right: 6px;
        gap: 4px;
    }

    .search-toggle-btn {
        padding: 4px 6px;
        font-size: 0.62rem;
    }
}
