body.page-template-contacts,
body.page-template-contacts-php,
body.page-template-page-templatescontacts-php,
body.eco-contacts-template {
    background: #fff;
}

.contacts-page {
    background: #fff;
    border-radius: 0;
    color: #004735;
    font-family: 'Closer Text', sans-serif;
    margin: 0 auto;
    max-width: none;
    overflow: hidden;
    padding: 172px 0 0;
}

.contacts-container {
    margin: 0 auto;
    max-width: none;
    width: var(--eco-page-shell, min(1320px, calc(100vw - 120px)));
}

.contacts-hero {
    padding-bottom: 91px;
}

.contacts-hero .contacts-container {
    position: relative;
}

.contacts-hero__content {
    max-width: 430px;
    position: relative;
    z-index: 1;
}

.contacts-hero h1 {
    color: #004735;
    font-size: 64px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.04;
    margin: 0 0 22px;
}

.contacts-hero__lead {
    color: #004735;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.22;
    margin: 0 0 20px;
}

.contacts-hero__email {
    color: #009d7b;
    display: inline-flex;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-decoration: none;
}

.contacts-hero__email:hover {
    color: #004735;
}

.contacts-hero__mark {
    color: #f2f7f7;
    display: flex;
    font-size: 262px;
    font-weight: 700;
    justify-content: flex-end;
    line-height: 0.78;
    opacity: 0.95;
    position: absolute;
    right: clamp(48px, 9vw, 128px);
    top: -24px;
    z-index: 0;
}

.contacts-hero__mark--image {
    align-items: flex-start;
}

.contacts-hero__mark img {
    display: block;
    height: auto;
    max-height: 380px;
    max-width: min(100%, 420px);
    opacity: 0.9;
    width: 100%;
}

.contacts-info-grid {
    display: grid;
    gap: 72px;
    grid-template-columns: 314px 280px minmax(280px, 1fr);
    margin-top: 81px;
    position: relative;
    z-index: 1;
}

.contacts-info h2 {
    color: #004735;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 16px;
}

.contacts-info p {
    color: #004735;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.28;
    margin: 0;
}

.contacts-info__phone {
    color: inherit;
    text-decoration: none;
}

.contacts-info__phone:hover,
.contacts-info__phone:focus-visible {
    color: #009b72;
}

.contacts-socials {
    display: flex;
    gap: 10px;
    margin-top: 32px;
}

.contacts-socials a {
    align-items: center;
    background: #004735;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
    text-decoration: none;
    transform-origin: center;
    transition: transform 0.15s ease;
    width: 46px;
}

.contacts-socials a:hover {
    transform: scale(1.087);
}

.contacts-socials svg {
    display: block;
    height: 22px;
    width: 22px;
}

.contacts-section-heading {
    border-bottom: 1px solid rgba(0, 71, 53, 0.12);
    margin-bottom: 30px;
    padding-bottom: 14px;
}

.contacts-section-heading h2,
.contacts-legal h2 {
    color: #004735;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0;
}

.contacts-reasons {
    padding-bottom: 49px;
}

.contacts-reasons-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contacts-reason-card {
    border: 1px solid #cfe2e0;
    border-radius: 14px;
    box-sizing: border-box;
    color: #004735;
    display: flex;
    flex-direction: column;
    min-height: 352px;
    padding: 31px 26px 28px;
}

.contacts-reason-card__number {
    align-items: center;
    border: 1px solid #004735;
    border-radius: 50%;
    color: #004735;
    display: inline-flex;
    font-size: 18px;
    font-weight: 500;
    height: 50px;
    justify-content: center;
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: 31px;
    width: 50px;
}

.contacts-reason-card h3 {
    color: #004735;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.16;
    margin: 0 0 16px;
    max-width: 330px;
}

.contacts-reason-card p {
    color: #004735;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.28;
    margin: 0;
}

.contacts-legal {
    padding-bottom: 60px;
}

.contacts-legal h2 {
    margin-bottom: 27px;
}

.contacts-legal p {
    color: #004735;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0;
    max-width: 1168px;
}

body.page-template-contacts .site-footer,
body.page-template-contacts-php .site-footer,
body.page-template-page-templatescontacts-php .site-footer,
body.eco-contacts-template .site-footer {
    background: #fff;
}

@media (max-width: 1180px) {
    .contacts-container {
        width: calc(100% - 40px);
    }

    .contacts-info-grid,
    .contacts-reasons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacts-hero__mark {
        right: 20px;
    }
}

@media (max-width: 900px) {
    .contacts-page,
    body.page-template-contacts .site-footer,
    body.page-template-contacts-php .site-footer,
    body.page-template-page-templatescontacts-php .site-footer,
    body.eco-contacts-template .site-footer {
        max-width: none;
    }

    .contacts-page {
        padding-top: 112px;
    }

    .contacts-hero {
        padding-bottom: 64px;
    }

    .contacts-hero h1 {
        font-size: 42px;
        line-height: 1.1;
    }

    .contacts-hero__lead,
    .contacts-hero__email {
        font-size: 20px;
    }

    .contacts-hero__mark {
        display: none;
    }

    .contacts-info-grid {
        gap: 32px;
        grid-template-columns: 1fr;
        margin-top: 62px;
    }

    .contacts-section-heading h2,
    .contacts-legal h2 {
        font-size: 32px;
    }

    .contacts-reasons {
        padding-bottom: 52px;
    }

    .contacts-reasons-grid {
        grid-template-columns: 1fr;
    }

    .contacts-reason-card {
        min-height: auto;
    }

}

@media (max-width: 480px) {
    .contacts-container {
        width: calc(100% - 32px);
    }

    .contacts-hero h1 {
        font-size: 34px;
    }

    .contacts-hero__lead,
    .contacts-hero__email {
        font-size: 18px;
    }
}
