/* Protovate brand customizations for Source 1.6.1. */

.gh-footer.pv-footer {
    margin-top: 62px;
    background: #1c3943;
    color: #f2f2f2;
}

.pv-footer a:not(.gh-button) {
    color: inherit;
}

.pv-footer .gh-footer-inner {
    display: block;
}

.pv-footer__main {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 76px);
    padding-top: 62px;
}

.pv-footer__brand {
    min-width: 0;
}

.pv-footer__logo {
    display: block;
    width: min(100%, 242px);
    height: auto;
}

.pv-footer__description {
    max-width: 360px;
    margin-top: 20px;
    color: #f2f2f2;
    font-size: 1.7rem;
    line-height: 1.36;
}

.pv-footer__payments {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pv-footer__payment {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 51px;
    border: 1px solid #295260;
    border-radius: 4px;
}

.pv-footer__payment img {
    max-width: 34px;
    max-height: 24px;
}

.pv-footer__navigation {
    display: grid;
    grid-template-columns: minmax(105px, 0.8fr) minmax(220px, 1.5fr) minmax(150px, 1fr) minmax(112px, 0.7fr);
    gap: clamp(24px, 3vw, 53px);
    padding-bottom: 40px;
}

.pv-footer__heading {
    color: #94a9b2;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.pv-footer__list {
    padding: 0;
    margin: 40px 0 0;
    list-style: none;
}

.pv-footer__list li {
    color: #f2f2f2;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.35;
}

.pv-footer__list li + li {
    margin-top: 28px;
}

.pv-footer__list a {
    transition: opacity 0.2s ease;
}

.pv-footer__list a:hover {
    opacity: 0.65;
}

.pv-footer__contacts {
    display: grid;
    grid-template-columns: repeat(2, 48px);
    gap: 8px;
    margin-top: 40px;
}

.pv-footer__contacts a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f2f2f2;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.pv-footer__contacts a:hover {
    opacity: 0.75;
}

.pv-footer__contacts img {
    width: 24px;
    height: 24px;
}

.pv-footer .gh-footer-signup {
    padding: 80px 24px;
    background: #295260;
}

.pv-footer__copyright {
    padding: 28px 0;
    border-top: 1px solid #295260;
}

.pv-footer__copyright p {
    color: #94a9b2;
    font-size: 1.3rem;
    text-align: center;
}

@media (max-width: 1199px) {
    .pv-footer__main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pv-footer__brand {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 40px;
    }

    .pv-footer__brand-copy {
        display: flex;
        align-items: flex-start;
        gap: 40px;
    }

    .pv-footer__description {
        width: 320px;
        margin-top: 0;
    }

    .pv-footer__payments {
        flex: 0 0 auto;
        margin-top: 0;
    }
}

@media (max-width: 991px) {
    .pv-footer__brand {
        flex-wrap: wrap;
    }

    .pv-footer__brand-copy {
        flex: 1 1 100%;
    }

    .pv-footer__navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 48px;
    }
}

@media (max-width: 767px) {
    .gh-footer.pv-footer {
        margin-top: 48px;
    }

    .pv-footer__main {
        padding-top: 48px;
        text-align: center;
    }

    .pv-footer__brand {
        display: block;
    }

    .pv-footer__brand-copy {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .pv-footer__description {
        width: 100%;
        max-width: 440px;
        margin-top: 0;
    }

    .pv-footer__payments {
        width: 169px;
        margin: 28px auto 0;
    }

    .pv-footer__navigation {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .pv-footer__list,
    .pv-footer__contacts {
        margin-top: 16px;
    }

    .pv-footer__list li + li {
        margin-top: 16px;
    }

    .pv-footer__contacts {
        justify-content: center;
    }

    .pv-footer .gh-footer-signup {
        padding: 56px 20px;
    }
}

/* Publication and post sidebars. */

.pv-sidebar-section {
    margin-top: 48px;
}

.pv-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gh-sidebar-post a {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 72px;
    color: inherit;
}

.gh-sidebar-post a:hover {
    opacity: 0.7;
}

.gh-sidebar-post img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 3px;
}

.gh-sidebar-post span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.pv-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pv-sidebar-tag {
    padding: 7px 12px;
    color: inherit;
    font-size: 1.3rem;
    line-height: 1.3;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    transition: border-color 0.2s ease;
}

.pv-sidebar-tag:hover {
    border-color: var(--color-dark-border);
}

.pv-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: var(--grid-gap);
    align-items: start;
}

.pv-post-layout__content {
    min-width: 0;
}

.pv-post-layout__content .gh-article {
    --container-width: 100%;
}

.pv-post-sidebar {
    padding-top: clamp(40px, 3.64vw + 25.45px, 72px);
}

.pv-post-sidebar .gh-sidebar-inner {
    position: sticky;
    top: calc(var(--grid-gap) / 2);
}

@media (max-width: 1199px) {
    .gh-container.has-sidebar .gh-sidebar {
        display: block;
        margin-top: 56px;
    }

    .gh-container.has-sidebar .gh-main::after {
        display: none;
    }

    .gh-container.has-sidebar .gh-sidebar-inner {
        position: static;
    }

    .pv-post-layout {
        display: block;
    }

    .pv-post-sidebar {
        margin-top: 64px;
        padding-top: 0;
    }

    .pv-post-sidebar .gh-sidebar-inner {
        position: static;
    }
}

@media (max-width: 767px) {
    .gh-container.has-sidebar .gh-sidebar,
    .pv-post-sidebar {
        margin-top: 48px;
    }
}
