/**
 * Страница «Контакты».
 */

/* ==========================================================================
   Общая страница
   ========================================================================== */

.contacts-page {
    color: var(--color-content);
    background-color: #b5cbe6;
    font-family: var(--font-content);
}

.page-template-page-contacts .site-branding {
    transform: translateX(-220px);
}


/*
 * Корректировка логотипа страницы «Контакты»
 * на мониторах и ноутбуках средней ширины.
 */
@media (max-width: 1599px) and (min-width: 1101px) {

    .page-template-page-contacts {
        --logo-size: 66px;
    }

    .page-template-page-contacts .site-branding {
        transform: translate(-7px, -6px);
    }

}


/*
 * Страница «Контакты»
 * Планшеты и небольшие ноутбуки (1024 px)
 */
@media (max-width: 1100px) and (min-width: 783px) {

    .page-template-page-contacts {
        --logo-size: 46px;
    }

    .page-template-page-contacts .site-branding {
        transform: translate(28px, -1px);
    }

}


/* ==========================================================================
   Верхняя фотография
   ========================================================================== */

.contacts-hero {
    width: 100%;
    background-color: #b5cbe6;
}

.contacts-hero__media {
    width: 100%;
    overflow: hidden;
}

.contacts-hero__image {
    display: block;
    width: 100%;
    height: auto;
}


/* ==========================================================================
   Заголовок страницы
   ========================================================================== */

.contacts-hero__heading {
    padding: 48px 0 20px;
    text-align: center;
}

.contacts-hero__title {
    margin: 0;
    color: #2f5d96;
    font-family: var(--font-content);
    font-size: clamp(34px, 2.4vw, 42px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}


/* ==========================================================================
   Основное содержимое
   ========================================================================== */

.contacts-content {
    padding: 0 0 40px;
}

.contacts-content__inner {
    width: 100%;
    max-width: 1300px;
    margin-inline: auto;
}


/* ==========================================================================
   Заголовки и пояснения разделов
   ========================================================================== */

.contacts-section-title {
    margin: 0;
    color: #2f5d96;
    font-family: var(--font-content);
    font-size: clamp(26px, 1.8vw, 32px);
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}

.contacts-section-text {
    max-width: 900px;
    margin: 10px auto 0;
    color: var(--color-content);
    font-family: var(--font-content);
    font-size: clamp(18px, 1.2vw, 21px);
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

/* ==========================================================================
   Официальные ресурсы ансамбля
   ========================================================================== */

.contacts-official__links {
    display: grid;
    width: min(100%, 1100px);
    margin: 30px auto 0;
    padding: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
}

.contacts-official__item {
    min-width: 0;
}

.contacts-official__link {
    display: flex;
    height: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 12px 16px;
    color: #2f5d96;
    background-color: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(47, 93, 150, 0.18);
    text-decoration: none;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.contacts-official__link:hover,
.contacts-official__link:focus-visible {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(47, 93, 150, 0.4);
    box-shadow: 0 8px 20px rgba(36, 79, 125, 0.14);
    transform: translateY(-3px);
}

.contacts-official__link:focus-visible {
    outline: 2px solid #2f5d96;
    outline-offset: 4px;
}

.contacts-official__icon-wrapper {
    display: flex;
    width: 92px;
    height: 88px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.contacts-official__icon {
    display: block;
    width: auto;
    max-width: 82px;
    height: auto;
    max-height: 82px;
    object-fit: contain;
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.contacts-official__link:hover
.contacts-official__icon,

.contacts-official__link:focus-visible
.contacts-official__icon {
    opacity: 0.94;
    transform: scale(1.06);
}

.contacts-official__title {
    display: block;
    color: #2f5d96;
    font-family: var(--font-content);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
}



/* ==========================================================================
   Разделитель
   ========================================================================== */

.contacts-divider {
    width: 100%;
    height: 1px;
    margin-top: 40px;
	margin-bottom: 30px;
    background-color: rgba(67, 103, 151, 0.35);
}


/* ==========================================================================
   Форма связи с администратором
   ========================================================================== */

.contacts-form__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


.contacts-form {
    width: min(100%, 900px);
    margin: 30px auto 0;
}

.contacts-form__notice {
    margin: 0 0 24px;
    padding: 14px 18px;
    border: 1px solid;
    border-radius: 4px;
    font-family: var(--font-content);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
}

.contacts-form__notice--success {
    color: #285f3b;
    background-color: rgba(225, 245, 230, 0.65);
    border-color: rgba(40, 95, 59, 0.35);
}

.contacts-form__notice--error {
    color: #8a3030;
    background-color: rgba(250, 228, 228, 0.65);
    border-color: rgba(138, 48, 48, 0.35);
}

.contacts-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.contacts-form__field {
    margin-bottom: 20px;
}

.contacts-form__label {
    display: block;
    margin-bottom: 7px;
    color: #2f5d96;
    font-family: var(--font-content);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.contacts-form__input,
.contacts-form__textarea {
    display: block;
    width: 100%;
    color: var(--color-content);
    background-color: rgba(255, 255, 255, 0.32);
    border: 1px solid rgba(47, 93, 150, 0.35);
    border-radius: 4px;
    font-family: var(--font-content);
    font-size: 18px;
    line-height: 1.4;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.contacts-form__input {
    height: 48px;
    padding: 0 14px;
}

.contacts-form__textarea {
    min-height: 190px;
    padding: 12px 14px;
    resize: vertical;
}

.contacts-form__input:focus,
.contacts-form__textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.42);
    border-color: #2f5d96;
    box-shadow: 0 0 0 3px rgba(47, 93, 150, 0.12);
}

.contacts-form__actions {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.contacts-form__submit {
    min-width: 220px;
    min-height: 48px;
    padding: 11px 24px;
    color: #ffffff;
    background-color: #2f5d96;
    border: 1px solid #2f5d96;
    border-radius: 4px;
    font-family: var(--font-content);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.contacts-form__submit:hover,
.contacts-form__submit:focus-visible {
    background-color: #244f7d;
    border-color: #244f7d;
    box-shadow: 0 8px 18px rgba(36, 79, 125, 0.18);
    transform: translateY(-2px);
}

.contacts-form__submit:focus-visible {
    outline: 3px solid rgba(47, 93, 150, 0.3);
    outline-offset: 3px;
}

.contacts-form__note {
    max-width: 720px;
    margin: 14px auto 0;
    color: #4d6993;
    font-family: var(--font-content);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
}

/* ==========================================================================
   Модальное окно успешной отправки
   ========================================================================== */

.contacts-success-modal {
    position: fixed;
    z-index: 5000;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.contacts-success-modal__backdrop {
    position: absolute;
    inset: 0;

    background-color: rgba(14, 31, 52, 0.68);
    backdrop-filter: blur(2px);
}

.contacts-success-modal__dialog {
    position: relative;
    z-index: 1;
	transform: translateY(-40px);
    display: flex;
    width: min(100%, 480px);
    padding: 40px 38px 34px;

    flex-direction: column;
    align-items: center;

    color: var(--color-content);
    background-color: #d5e3f2;
    border: 1px solid rgba(47, 93, 150, 0.28);
    border-radius: 10px;

    box-shadow:
        0 24px 70px rgba(14, 31, 52, 0.34);

    text-align: center;
}

.contacts-success-modal__logo {
    display: block;
    width: 86px;
    height: 86px;
    margin: 0 0 20px;
    object-fit: contain;
}

.contacts-success-modal__title {
    margin: 0;
    color: #2f5d96;
    font-family: var(--font-content);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}

.contacts-success-modal__text {
    max-width: 380px;
    margin: 14px auto 0;
    color: var(--color-content);
    font-family: var(--font-content);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.contacts-success-modal__button {
    min-width: 150px;
    min-height: 46px;
    margin-top: 26px;
    padding: 10px 24px;

    color: #ffffff;
    background-color: #2f5d96;
    border: 1px solid #2f5d96;
    border-radius: 4px;

    font-family: var(--font-content);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.contacts-success-modal__button:hover,
.contacts-success-modal__button:focus-visible {
    background-color: #244f7d;
    border-color: #244f7d;
    box-shadow: 0 7px 18px rgba(36, 79, 125, 0.22);
    transform: translateY(-2px);
}

.contacts-success-modal__button:focus-visible {
    outline: 3px solid rgba(47, 93, 150, 0.3);
    outline-offset: 3px;
}


/*
 * Кнопка-крестик.
 */
.contacts-success-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 38px;
    height: 38px;
    padding: 0;

    color: #436797;
    background: transparent;
    border: 0;

    cursor: pointer;
}

.contacts-success-modal__close::before,
.contacts-success-modal__close::after {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 20px;
    height: 2px;

    background-color: currentColor;
    border-radius: 2px;

    content: "";
}

.contacts-success-modal__close::before {
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}

.contacts-success-modal__close::after {
    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}

.contacts-success-modal__close:hover,
.contacts-success-modal__close:focus-visible {
    color: #244f7d;
}

.contacts-success-modal__close:focus-visible {
    outline: 2px solid #2f5d96;
    outline-offset: 2px;
    border-radius: 50%;
}

.contacts-success-modal[hidden] {
    display: none;
}


/*
 * При открытом модальном окне
 * блокируем прокрутку страницы.
 */
body.contacts-modal-is-open {
    overflow: hidden;
}


/* ==========================================================================
   Адаптивность
   ========================================================================== */

@media (max-width: 1100px) {

    .contacts-official__links {
        width: min(100%, 900px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

}


@media (max-width: 782px) {

    .contacts-hero__heading {
        padding: 34px 0 18px;
    }

    .contacts-hero__title {
        font-size: 30px;
    }

    .contacts-section-title {
        font-size: 27px;
    }

    .contacts-section-text {
        font-size: 18px;
    }

    .contacts-official__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .contacts-divider {
        margin: 40px 0;
    }
	
	
	.contacts-form {
    width: min(100%, 680px);
}

.contacts-form__row {
    grid-template-columns: 1fr;
    gap: 0;
}

.contacts-form__label {
    font-size: 17px;
}

.contacts-form__input,
.contacts-form__textarea {
    font-size: 17px;
}

.contacts-form__submit {
    font-size: 17px;
}

}


@media (max-width: 479px) {

    .contacts-hero__heading {
        padding: 26px 0 15px;
    }

    .contacts-hero__title {
        font-size: 26px;
    }

    .contacts-section-title {
        font-size: 20px;
    }

    .contacts-section-text {
        font-size: 16px;
        line-height: 1.3;
		
    }
	
	

    .contacts-official__links {
        grid-template-columns: 1fr;
        gap: 12px;
		margin-top: 20px;
    }

    .contacts-official__link {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .contacts-official__icon-wrapper {
        width: 64px;
        height: 56px;
        margin: 0 14px 0 0;
        flex: 0 0 auto;
    }

    .contacts-official__icon {
        max-width: 54px;
        max-height: 54px;
    }

    .contacts-official__title {
        font-size: 18px;
        text-align: left;
    }

    .contacts-divider {
        margin-top: 30px;
		margin-bottom: 20px;
    }

    .contacts-content {
		padding-bottom: 30px;
	}

.contacts-form {
    margin-top: 24px;
}

.contacts-form__field {
    margin-bottom: 16px;
}

.contacts-form__input {
    height: 46px;
}

.contacts-form__textarea {
    min-height: 170px;
}

.contacts-form__submit {
    width: 100%;
    min-width: 0;
}

.contacts-form__note {
    margin-top: 12px;
    font-size: 14px;
}


.contacts-success-modal {
    padding: 16px;
}

.contacts-success-modal__dialog {
    padding: 34px 22px 28px;
}

.contacts-success-modal__logo {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
}

.contacts-success-modal__title {
    font-size: 24px;
}

.contacts-success-modal__text {
    font-size: 17px;
}

.contacts-success-modal__button {
    width: 100%;
    margin-top: 22px;
}

}



/*
|--------------------------------------------------------------------------
| Страница «Контакты»
| Планшеты (768×1024)
|--------------------------------------------------------------------------
*/
@media (max-width: 782px) {

    .page-template-page-contacts {
        --logo-size: 58px;
    }

    .page-template-page-contacts .site-branding {
        transform: translate(5px, 0);
    }

}


@media (max-width: 479px) {

    .page-template-page-contacts {
        --logo-size: 52px;
    }

    .page-template-page-contacts .site-branding {
        transform: translate(2px, 2px);
    }

}


@media (max-width: 320px) {

    .page-template-page-contacts {
        --logo-size: 46px;
    }

    .page-template-page-contacts .site-branding {
        transform: translate(-2px, 2px);
    }

}