:root {
    --site-navy: #10294a;
    --site-gold: #c9a24d;
    --site-container: 1240px;
}

.site-container {
    width: min(calc(100% - 80px), var(--site-container));
    margin: 0 auto;
}

.header {
    z-index: 20;
    width: 100%;
    background: #fff !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.header-inner {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo-text {
    display: inline-flex !important;
    width: max-content !important;
    align-items: baseline !important;
    flex: 0 0 auto;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 7px;
    color: inherit;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap !important;
}

.logo-text span {
    display: inline !important;
    color: var(--site-navy) !important;
    font-family: Manrope, sans-serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.8px;
    white-space: nowrap;
}

.logo-text strong {
    display: inline !important;
    color: var(--site-gold) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -.5px;
    white-space: nowrap;
}

.header .nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
}

.header .nav a {
    position: relative;
    padding: 8px 0;
    color: var(--site-navy) !important;
    font-size: 13px;
    text-decoration: none;
    transition: color .3s ease;
}

.header .nav a:hover,
.header .header-contact a:hover {
    color: var(--site-gold) !important;
}

.header-contact {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.header-contact > span {
    color: #777;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-phones {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-phones a {
    display: flex;
    flex-direction: column;
    color: var(--site-navy) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.header-phones small {
    margin-bottom: 3px;
    color: var(--site-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer {
    width: 100%;
    min-height: 0 !important;
    padding: 24px 0 !important;
    color: #555;
    background: #fff !important;
    border-top: 1px solid #e5e5e5 !important;
}

.footer-inner {
    display: flex;
    min-height: 0 !important;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer p {
    max-width: 360px;
    margin: 0;
    color: #555 !important;
    font-size: 10px;
    line-height: 1.5;
}

.footer-legal-links {
    display: grid;
    max-width: 330px;
    min-width: 0;
    gap: 7px;
    color: #555;
    font-size: 11px;
    line-height: 1.45;
}

.footer-legal-links a {
    color: inherit;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal-links a:hover {
    color: var(--site-gold);
}

@media (max-width: 1000px) {
    .header .nav,
    .header .header-contact {
        display: none;
    }
}

@media (max-width: 767px) {
    .site-container {
        width: min(calc(100% - 32px), var(--site-container));
    }

    .header-inner {
        min-height: 76px !important;
    }

    .logo-text {
        gap: 5px;
    }

    .logo-text span {
        font-size: 17px;
        letter-spacing: -.5px;
    }

    .logo-text strong {
        font-size: 20px;
        letter-spacing: -.3px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}
