html,
body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.product-breadcrumbs {
    font-size: 14px !important;
}

/* Shared site header. The desktop proportions mirror the former WordPress header. */
.site-header {
    min-height: 88px;
    display: block;
    padding: 0;
    border-bottom: 1px solid #e7ebf0;
    background: #ffffff;
}

.site-header__inner {
    width: min(1300px, calc(100% - 48px));
    min-height: 88px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    align-items: center;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    text-decoration: none;
}

.site-brand img {
    width: 190px;
    height: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-width: 0;
}

.site-nav a {
    color: #111318;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease;
}

.site-nav a:hover {
    color: #0864d9;
}

.site-header__contact {
    position: relative;
    width: 160px;
    min-height: 50px;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 38px;
    border-radius: 4px;
    background: #0864d9;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(8, 100, 217, .12);
    transition: background .16s ease, transform .16s ease;
}

.site-header__contact:hover {
    background: #075abd;
    transform: translateY(-1px);
}

.site-header__contact span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.site-header__contact-arrow {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer {
    border-top: 1px solid #e7ebf0;
    background: #ffffff;
}

.site-footer__main {
    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    padding: 34px 0;
}

.site-footer__brand-block,
.site-footer__navigation,
.site-footer__contacts {
    min-width: 0;
}

.site-footer__logo {
    display: inline-flex;
    text-decoration: none;
}

.site-footer__logo img {
    width: 190px;
    max-width: 100%;
    height: auto;
    display: block;
}

.site-footer__brand-block p {
    margin: 12px 0 0;
    color: #59616d;
    font-size: 14px;
    line-height: 1.5;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #101318;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.site-footer__navigation {
    text-align: center;
}

.site-footer__navigation nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.site-footer__navigation a,
.site-footer__contacts a {
    color: #59616d;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

.site-footer__navigation a:hover,
.site-footer__contacts a:hover {
    color: #075dce;
}

.site-footer__contacts {
    text-align: right;
}

.site-footer__bottom {
    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid #e7ebf0;
    text-align: center;
}

.site-footer__bottom p {
    margin: 0;
    color: #7a828e;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .site-header__inner {
        grid-template-columns: 150px minmax(0, 1fr) 150px;
        gap: 16px;
    }

    .site-nav {
        gap: 18px;
    }

    .site-header__contact {
        width: 145px;
        padding: 0 34px;
    }

    .site-header__contact-arrow {
        right: 16px;
    }
}

@media (max-width: 860px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
        gap: 14px 20px;
        padding: 16px 0;
    }

    .site-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .site-header__contact {
        grid-column: 2;
        grid-row: 1;
        width: 145px;
        min-height: 44px;
        padding: 0 34px;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px 20px;
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 0;
        display: block;
        padding: 0;
    }

    .site-header__inner {
        width: calc(100% - 40px);
    }

    .site-nav {
        align-items: center;
        flex-direction: row;
    }

    .site-footer__main {
        width: calc(100% - 40px);
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0;
    }

    .site-footer__navigation,
    .site-footer__contacts {
        text-align: left;
    }

    .site-footer__navigation nav {
        align-items: flex-start;
    }

    .site-footer__bottom {
        width: calc(100% - 40px);
    }
}

@media (max-width: 520px) {
    .site-header__inner {
        grid-template-columns: 1fr;
    }

    .site-brand,
    .site-header__contact,
    .site-nav {
        grid-column: 1;
    }

    .site-brand {
        grid-row: 1;
    }

    .site-header__contact {
        grid-row: 2;
        width: 100%;
        justify-self: stretch;
    }

    .site-nav {
        grid-row: 3;
    }
}
