body.page-template-page-contacts {
    overflow-x: hidden;
}

body.page-template-page-contacts .site-content,
body.page-template-page-contacts .ast-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.contacts-page {
    width: 100%;
    color: #202429;
    font-family: "Montserrat", sans-serif;
}

.contacts-page *,
.contacts-page *::before,
.contacts-page *::after {
    box-sizing: border-box;
}

.contacts-page__section {
    min-height: 65vh;
    padding: 84px 0 90px;
    background:
        radial-gradient(circle at 50% 0, rgba(247, 242, 238, 0.65), transparent 42%),
        #ffffff;
}

.contacts-page__container {
    width: min(100% - 40px, 1440px);
    margin-right: auto;
    margin-left: auto;
}

.contacts-page__heading {
    max-width: 820px;
    margin: 0 auto 44px;
    text-align: center;
}

.contacts-page__title {
    margin: 0 0 18px;
    color: #202429;
    font-size: 47px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.contacts-page__description {
    margin: 0;
    color: #555c63;
    font-size: 20px;
    line-height: 1.7;
}

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

.contact-card {
    display: flex;
    min-width: 0;
    min-height: 190px;
    align-items: center;
    gap: 24px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e9e6e3;
    border-radius: 12px;
    box-shadow: 0 3px 16px rgba(30, 35, 40, 0.035);
}

.contact-card__icon {
    display: flex;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    color: #bc111b;
    background: #faf3f1;
    border-radius: 50%;
}

.contact-card__icon svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-card__content {
    min-width: 0;
}

.contact-card__title {
    margin: 0 0 10px;
    color: #202429;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.contact-card__value {
    color: #555c63;
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.contact-card__link {
    display: inline-block;
    margin-top: 10px;
    color: #bc111b;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-card__link:hover,
.contact-card__link:focus {
    color: #202429;
}

.contacts-page__details {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 28px;
    margin-top: 34px;
}

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

.contacts-map,
.contacts-form {
    min-width: 0;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e9e6e3;
    border-radius: 12px;
    box-shadow: 0 3px 16px rgba(30, 35, 40, 0.035);
}

.contacts-map__title,
.contacts-form__title {
    margin: 0 0 20px;
    color: #202429;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.contacts-map__frame {
    position: relative;
    width: 100%;
    min-height: 430px;
    overflow: hidden;
    background: #f5f3f1;
    border-radius: 8px;
}

.contacts-map__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contacts-form__description {
    margin: -8px 0 22px;
    color: #555c63;
    font-size: 16px;
    line-height: 1.6;
}

.contacts-form__body input:not([type="checkbox"]):not([type="radio"]),
.contacts-form__body textarea,
.contacts-form__body select {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    color: #202429;
    background: #ffffff;
    border: 1px solid #dcd8d5;
    border-radius: 5px;
}

.contacts-form__body textarea {
    min-height: 130px;
    resize: vertical;
}

.contacts-form__body input[type="submit"],
.contacts-form__body button[type="submit"] {
    min-height: 52px;
    padding: 12px 26px;
    color: #ffffff;
    font-weight: 600;
    background: #bc111b;
    border: 1px solid #bc111b;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .contacts-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 767px) {
    .contacts-page__section {
        padding: 60px 0;
    }

    .contacts-page__container {
        width: min(100% - 30px, 1440px);
    }

    .contacts-page__heading {
        margin-bottom: 28px;
    }

    .contacts-page__title {
        font-size: 34px;
    }

    .contacts-page__description {
        font-size: 16px;
        line-height: 1.6;
    }

    .contacts-page__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-card {
        min-height: 0;
        padding: 22px;
    }

    .contact-card__icon {
        flex-basis: 66px;
        width: 66px;
        height: 66px;
    }

    .contact-card__icon svg {
        width: 38px;
        height: 38px;
    }

    .contacts-map,
    .contacts-form {
        padding: 22px;
    }

    .contacts-map__frame {
        min-height: 340px;
    }
}

@media (max-width: 420px) {
    .contacts-page__title {
        font-size: 30px;
    }

    .contact-card {
        display: block;
    }

    .contact-card__icon {
        margin-bottom: 18px;
    }

    .contacts-map__frame {
        min-height: 290px;
    }
}
