/* Shared header and shell styles for domain and subdomain homepages */

.header {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
    border-bottom: 1px solid #ece7dc;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 0 12px;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.header__brand:hover,
.header__brand:focus,
.header__brand:active {
    text-decoration: none;
    color: inherit;
}

.header__brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c62828;
    background: #fff5f2;
    border: 1px solid #ffd9d1;
    text-decoration: none;
}

.header__brand-svg {
    width: 38px;
    height: 38px;
}

.header__brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.header__brand-title {
    font-weight: 700;
    font-size: 1.45rem;
    color: #2e2e2e;
}

.header__brand-location {
    color: #7a7a7a;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header__actions {
    display: flex;
    align-items: center;
}

.header__login-button {
    background-color: #d32f2f;
    color: #fff;
    padding: 11px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.28);
    transition: background-color 0.25s;
}

.header__login-button:hover {
    background-color: #b71c1c;
}

.header__partners {
    border-top: 1px solid #f1ebdf;
    border-bottom: 1px solid #f1ebdf;
    background: #fff;
}

.header__partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.header__partners-label {
    color: #8a7d62;
    font-size: 0.9rem;
    font-weight: 700;
}

.header__partners-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.header__partners-item {
    background: #fff;
    border: 1px solid #ece6db;
    border-radius: 10px;
    padding: 8px 12px;
}

.header__partners-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header__partners-logo {
    height: 28px;
    display: block;
    width: auto;
}

.header__nav {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 20px 8px;
    border-bottom: 1px solid #efe9db;
}

.header__nav-list {
    list-style: none;
    display: flex;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.header__nav-list li {
    flex: 1 1 0;
    display: flex;
}

.header__nav-link {
    text-decoration: none;
    color: #2f2f2f;
    font-weight: 700;
    font-size: 0.98rem;
    transition: color 0.25s;
    width: 100%;
    text-align: center;
    padding: 0 8px;
}

.header__nav-link:hover,
.header__nav-link.header__nav-link--active {
    color: #d32f2f;
}

.header__partners-label--right {
    margin-left: auto;
    text-align: right;
}

@media (max-width: 960px) {
    .header__container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header__actions {
        width: 100%;
    }

    .header__login-button {
        width: 100%;
        text-align: center;
    }

    .header__partners-container {
        justify-content: space-between;
    }

    .header__nav-list {
        flex-wrap: wrap;
        gap: 8px;
    }

    .header__nav-list li {
        flex: 1 1 calc(50% - 8px);
    }
}

@media (max-width: 640px) {
    .header__brand-title {
        font-size: 1.2rem;
    }

    .header__brand-location {
        font-size: 0.82rem;
    }

    .header__partners-logo {
        height: 24px;
    }

    .header__nav,
    .header__partners-container,
    .header__container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .header__nav-list li {
        flex: 1 1 100%;
    }
}
