/* Контакты ЗТО — читаемые стили, без повторных переопределений. */

.zto-contacts {
    --ct-purple: #5c1fa2;
    --ct-yellow: #FFCE00;
    --ct-ink: #292236;
    --ct-muted: #6c637e;
    --ct-border: #e5def1;
    line-height: 1.55;
}

.zto-contacts * {
    box-sizing: border-box;
}

.zto-contacts h1,
.zto-contacts h2,
.zto-contacts h3 {
    color: var(--ct-purple);
    font-weight: 700;
    line-height: 1.2;
}

.zto-contacts h1 {
    font-size: clamp(32px,4vw,48px);
    margin: 0 0 14px;
}

.zto-contacts h2 {
    font-size: clamp(23px,2.3vw,28px);
    margin: 0 0 16px;
}

.zto-contacts h3 {
    font-size: 19px;
    margin: 10px 0 16px;
}

.zto-contacts a {
    color: var(--ct-purple);
    text-decoration: none;
}

/*.zto-contacts a:hover {
    text-decoration: underline;
}*/

.zto-contacts a:focus-visible,
.zto-contacts button:focus-visible {
    outline: 3px solid var(--ct-purple);
    outline-offset: 4px;
}

.zto-contacts p {
    margin: 0 0 14px;
}

.zct-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #f5f2fb;
    box-shadow: 0 3px 7px #5c1fa21f;
}

.zct-hero__image {
    position: absolute;
    width: 65%;
    height: 100%;
    right: 0;
    top: 0;
    z-index: -1;
    object-fit: cover;
}

.zct-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #fcfbff 25%, rgba(255,255,255,.94) 41%, rgba(255,255,255,.05) 75%);
}

.zct-hero__inner {
    position: static;
    z-index: 1;
    /*min-height: 240px;*/
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    /*padding-top: 36px;*/
    padding-bottom: 36px;
}

.zct-hero__copy {
    position: relative;
    z-index: 1;
    max-width: 505px;
}

.zct-hero__copy p {
    margin: 0;
}

.zct-hero__note {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: clamp(220px, 19vw, 330px);
    height: 80%;
    margin: 0;
    padding: 38px 26px 8px 66px;
    border-radius: 0;
    background: transparent;
    color: var(--ct-purple);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.zct-hero__note::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--ct-purple);
    clip-path: polygon(13% 32%, 100% 0, 100% 100%, 0 100%);
}

.zct-hero__note::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ct-yellow);
    clip-path: polygon(13% 32%, 100% 0, 100% 38%, 84% 100%, 0 100%);
}

.zct-place {
    padding: 24px;
    background: linear-gradient(135deg,#fbfaff,#f3f0fa);
    border: 1px solid var(--ct-border);
    border-radius: 12px;
}

.zct-kicker {
    color: var(--ct-muted);
    font-size: 13px;
    letter-spacing: .02em;
}

.zct-address {
    margin: 20px 0 0;
}

.zct-place__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    align-items: start;
    gap: 20px;
    margin-top: 20px;
}

.zct-phone {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.zct-email {
    display: block;
    margin-top: 10px;
    overflow-wrap: anywhere;
}

.zct-hours {
    grid-column: 2;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0 0 0 18px;
    border: 0;
    border-left: 1px solid var(--ct-border);
    font-size: 13px;
}

.zct-hours strong {
    display: block;
    color: var(--ct-purple);
    margin-bottom: 5px;
}

.zct-multiline {
    white-space: pre-line;
}

.zct-section {
    margin-top: 32px;
}

.zct-map {
    border-radius: 12px;
    overflow: hidden;
    background: #f3f0fa;
    height: 100%;
    min-height: 380px;
}

.zct-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
    border: 0;
}

.zct-directions {
    padding-top: 6px;
}

.zct-direction {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 22px 0;
}

.zct-direction strong {
    color: var(--ct-purple);
}

.zct-direction p {
    font-size: 15px;
    margin-top: 5px;
    color: var(--ct-muted);
}

.zct-route {
    font-weight: 700;
    display: inline-flex;
    gap: 16px;
}

.zct-section__intro {
    color: var(--ct-muted);
    max-width: 650px;
}

.zto-contacts .zct-button {
    background: var(--ct-yellow);
    color: var(--ct-purple);
    border: 0;
    border-radius: 7px;
    font-weight: 700;
    padding: 13px 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-decoration: none;
}

.zto-contacts .zct-button:hover {
    background: #f0cd00;
    text-decoration: none;
    color: var(--ct-purple);
}

.zct-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border-radius: 12px;
    background: var(--ct-purple);
    color: #fff;
}

.zct-help h2 {
    color: #fff;
}

.zct-help p {
    margin: 0;
}

.zct-help .zct-button {
    flex-shrink: 0;
}

.zct-crumbs {
    position: relative;
    z-index: 3;
    padding-top: 14px;
}

.zct-crumbs .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

.zct-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.zct-breadcrumb li + li::before {
    content: "›";
    margin-right: 10px;
    color: var(--ct-muted);
}

.zct-hero__note p {
    margin: 0;
}

.zct-hero__note strong {
    display: block;
    margin-bottom: 3px;
    font-size: 20px;
    font-weight: 800;
}

.zct-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    color: var(--ct-purple);
}

.zct-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.zct-icon--solid {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ct-purple);
    color: #fff;
}

.zct-icon--solid svg {
    width: 26px;
    height: 26px;
}

.zct-icon--yellow {
    background: var(--ct-yellow);
    border-radius: 50%;
}

.zct-icon--yellow svg {
    width: 18px;
    height: 18px;
}

.zct-icon--soft {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3effb;
    box-shadow: inset 0 0 0 1px var(--ct-border);
}

.zct-icon--soft svg {
    width: 27px;
    height: 27px;
}

.zct-place__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    align-items: start;
    gap: 20px;
}

.zct-place__details {
    min-width: 0;
}

.zct-place__heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zct-place__heading h2 {
    margin: 0 0 0px;
    font-size: 24px;
}

.zct-place__photo {
    display: block;
    width: 100%;
    height: 174px;
    object-fit: cover;
    border-radius: 8px;
}

.zct-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.zct-detail > p {
    margin: 0;
}

.zct-place__contacts {
    display: grid;
    grid-column: 1;
    gap: 13px;
    min-width: 0;
}

.zct-place__contacts .zct-email {
    margin: 0;
}

.zct-hours .zct-icon {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
}

.zct-hours .zct-icon svg {
    width: 20px;
    height: 20px;
}

/* Две карточки рядом: чуть меньше фото, заголовок и иконка. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .zct-place__main,
    .zct-place__bottom {
        grid-template-columns: minmax(0, 1fr) 38%;
        gap: 16px;
    }

    .zct-place__heading {
        gap: 10px;
    }

    .zct-place__heading h2 {
        font-size: 20px;
    }

    .zct-place__heading .zct-icon--solid {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .zct-place__photo {
        height: 160px;
    }
}

@media (max-width:767.98px) {
    .zct-hero__note {
        position: absolute;
        right: 0;
        bottom: 0;

        width: 250px;
        max-width: none;
        height: 160px;
        min-height: 0;

        margin: 0;
        padding: 48px 36px 16px 40px;

        font-size: 16px;
        line-height: 1.2;
    }

    .zct-hero__inner {
        min-height: 360px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding-top: 24px;
        padding-bottom: 180px;
    }

    .zct-hero__image {
        width: 100%;
        opacity: .2;
    }

    .zct-hero:after {
        background: linear-gradient(90deg,#ffffffee,#ffffff77);
    }

    .zct-place {
        padding: 20px;
    }

    .zct-map,
    .zct-map iframe {
        min-height: 340px;
    }

.zct-help {
        padding: 24px;
        align-items: flex-start;
        flex-direction: column;
    }

    .zct-help .zct-button {
        width: 100%;
    }

    .zct-section {
        margin-top: 26px;
    }

    .zct-hero__note::before {
        inset: 0;
    }

    .zct-place__photo {
        height: 160px;
    }

    .zct-place__main,
    .zct-place__bottom {
        gap: 14px;
    }

    .zct-place__heading {
        align-items: flex-start;
        gap: 10px;
    }

    .zct-place__heading h2 {
        font-size: 21px;
    }
}

@media (max-width: 479.98px) {
    .zct-place__main,
    .zct-place__bottom {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .zct-place__contacts,
    .zct-hours {
        grid-column: 1;
    }

    .zct-place__photo {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .zct-place__bottom {
        margin-top: 18px;
    }
}

/* Наша команда: карточки отделов */
.zct-team__intro {
    max-width: 900px;
    color: var(--ct-muted);
}

.zct-team__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
    align-items: stretch;
}

.zct-department {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ct-border);
    border-radius: 10px;
    background: #fff;
}

.zct-department__media {
    position: relative;
    height: 150px;
    margin: 8px 8px 0;
    overflow: hidden;
    border-radius: 7px;
    background: linear-gradient(135deg, #f6f3fb, #eae1f5);
}

.zct-department__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zct-department__icon {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--ct-purple);
}

.zct-department__symbol {
    display: block;
    width: 30px;
    height: 30px;
}

.zct-department__body {
    padding: 18px;
}

.zto-contacts .zct-department__title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.zto-contacts .zct-department__description {
    min-height: 66px;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ct-border);
    color: var(--ct-muted);
    font-size: 14px;
    line-height: 1.5;
}

.zct-department__members {
    display: grid;
    gap: 14px;
}

.zct-member {
    min-width: 0;
}

.zct-member + .zct-member {
    padding-top: 14px;
    border-top: 1px solid var(--ct-border);
}

.zto-contacts .zct-member__name {
    margin: 0 0 8px;
    color: var(--ct-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.zct-member__line {
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.5;
}

.zct-member__contact {
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.zct-member__contact--email {
    display: block;
    margin-top: 3px;
}

.zct-member__extension {
    font-size: 13px;
}

.zct-team__management {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.zct-management {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 10px;
    background: #f5f2fb;
}

.zct-management__icon {
    display: flex;
    flex: 0 0 38px;
    color: var(--ct-purple);
}

.zct-management__symbol {
    display: block;
    width: 38px;
    height: 38px;
}

.zct-management__body {
    min-width: 0;
}

.zto-contacts .zct-management__role {
    margin: 0 0 3px;
    color: var(--ct-muted);
    font-size: 14px;
}

.zto-contacts .zct-management__name {
    margin: 0;
    color: var(--ct-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 1199.98px) {
    .zct-team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zct-department__media {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .zct-team__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .zct-department__media {
        height: 170px;
    }

    .zto-contacts .zct-department__description {
        min-height: 0;
    }

    .zct-management {
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
    }
}

/* Форма «Напишите нам»: пояснение, поля и отправка */
.zct-form {
    padding: 28px;
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    background: linear-gradient(120deg, #f8f6fd, #f3f0fb);
}

.zct-form__layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 2fr);
    gap: 28px;
    align-items: start;
}

.zct-form__intro {
    display: flex;
    gap: 14px;
    padding-top: 10px;
    min-width: 0;
}

.zct-form__icon {
    display: block;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: var(--ct-purple);
}

.zto-contacts .zct-form__title {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-size: 28px;
    line-height: 1.2;
}

.zto-contacts .zct-form__description {
    margin: 0;
    color: var(--ct-muted);
    font-size: 16px;
    line-height: 1.6;
}

.zct-form__wrapper,
.zct-form__field {
    min-width: 0;
}

.zto-contacts #contact_form.zct-form__form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.zct-form__messages:empty {
    display: none;
}

.zct-form__fields {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
}

.zct-form__field--message,
.zct-form__required {
    grid-column: 1 / -1;
}

.zct-form__label {
    display: block;
    margin: 0 0 6px;
    color: var(--ct-purple);
    font-size: 14px;
    line-height: 1.4;
}

.zct-form .zct-form__input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--ct-border);
    border-radius: 6px;
    background: #fff;
    color: var(--ct-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
}

.zct-form .zct-form__input::placeholder {
    color: #8a809b;
    opacity: 1;
}

.zct-form .zct-form__input:focus {
    border-color: var(--ct-purple);
    outline: none;
    box-shadow: 0 0 0 3px #5c1fa215;
}

.zct-form .zct-form__input--message {
    min-height: 88px;
    resize: vertical;
}

.zct-form .zct-form__input.is-invalid {
    border-color: #dc3545;
}

.zct-form__required {
    color: var(--ct-muted);
    font-size: 13px;
    line-height: 1.4;
}

/* Под полями: согласие на всю ширину, затем кнопка справа. */
.zct-form__bottom {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 18px;
}

.zct-form .zct-form__consent {
    display: flex;
    flex: 0 1 auto;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.zct-form__checkbox {
    position: static;
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    opacity: 1;
    appearance: auto;
    accent-color: var(--ct-purple);
    cursor: pointer;
}

.zct-form__checkbox:focus-visible {
    outline: 2px solid var(--ct-purple);
    outline-offset: 3px;
}

.zct-form .zct-form__consent-body {
    flex: 1 1 0;
    min-width: 0;
}

.zct-form .zct-form__consent-label {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    color: var(--ct-muted);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.zto-contacts .zct-form__consent-link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.zct-form__consent-error {
    margin-top: 5px;
    color: #dc3545;
    font-size: 14px;
    line-height: 1.4;
}

.zct-form__consent-error:empty {
    display: none;
}

.zto-contacts .zct-form__button {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 180px;
    min-height: 48px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 600;
}

.zct-form__arrow {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

@media (max-width: 1199.98px) {
    .zct-form__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .zct-form__intro {
        padding-top: 0;
    }
}

@media (max-width: 767.98px) {
    .zto-contacts .zct-form__button {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .zct-form {
        padding: 20px 16px;
    }

    .zct-form__fields {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    .zto-contacts .zct-form__title {
        font-size: 26px;
    }
}
