.contacts {
    position: relative;
}

.contacts .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 30px;
    min-height: 550px;
    height: 87vh;
}

.contacts .hero h2 {
    font-weight: 800;
    line-height: 50px;
    font-size: 40px;
    padding: 0;
    margin-bottom: 50px;
}

.contacts .hero p {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 25px;
}
.contacts .dukBlock_inner {
    padding: 20px 20px;
    box-shadow: none;
    border-radius: 8px;
    background-color: transparent;
    transition: box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.contacts .dukBlock_inner.active {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background-color: var(--white);
}

.contacts .dukBlock_inner .collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    cursor: pointer;
}

.contacts .dukBlock_inner .body3 {
    opacity: 60%;
    display: block;
    padding-right: 10px;
}

.contacts .dukBlock_inner .collapsible-header h3 {
    font-weight: 600;
    transition: padding-bottom 0.3s ease-in-out;
}

.contacts .dukBlock_inner.active .collapsible-header h3 {
    padding-bottom: 20px;
}

.contacts .dukBlock_inner .collapsible-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.contacts .dukBlock_inner.active .collapsible-details {
    max-height: 300px; /* A high value for smoother transitions */
    opacity: 1;
}


.collapsible-header .arrow-right {
    width: 20px;
    height: 16px;
    margin-top: 10px;
    transition: transform 0.3s ease-in-out;
}

.collapsible-header:hover .arrow-right,
.collapsible-header.active .arrow-right {
    transform: rotate(90deg);
}

#contacts.container .heading .h2 {
    padding-bottom: 30px;
}

.contacts .hero .heroButton {
    display: flex;
    align-items: center;
}

.contacts .hero .line {
    background-color: var(--black);
    height: 2px;
    margin-left: -30px;
    width: 100%;
}

.footer .logoBlock {
    padding-bottom: 30px;
}

@-webkit-keyframes ButtonMove {
    0% {
        margin-top: 0;
    }
    50% {
        margin-top: 5px;
    }
    100% {
        margin-top: 0;
    }
}

@keyframes ButtonMove {
    0% {
        margin-top: 0;
    }
    50% {
        margin-top: 5px;
    }
    100% {
        margin-top: 0;
    }
}

.contacts .hero .button_container {
    position: relative;
    width: 54px;
    height: 54px;
    margin-right: 5px;
    margin-left: 20px;
}

.contacts .hero .button {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--black);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.contacts .hero .button img {
    width: 17px;
    height: 22px;
    -webkit-animation: ButtonMove infinite 1s;
    animation: ButtonMove infinite 1s;
}

.contacts .hero .button_back {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--black);
    top: 5px;
    left: 5px;
    z-index: -1;
}

.contacts .container {
    display: flex;
    flex-direction: column;
    padding: 50px 20px;
}

.contacts .container .addressBlock {
    padding-right: 20px;
}

.contacts .container .addressBlock h3 {
    font-weight: 700;
    font-size: 22px;
    line-height: 27px;
}

.contacts .container .addressBlock .details {
    margin-top: 50px;
}

.contacts .container .addressBlock .detail {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 23px;
    font-weight: 700;
}

.contacts .container .addressBlock .detail img {
    margin-right: 15px;
}

.contacts .container .addressBlock .link {
    text-decoration: none;
    color: var(--black);
    transition: all 0.3s linear;
}

.contacts .container .addressBlock .link:hover {
    opacity: 0.7;
}

.contacts .container .addressBlock .social {
    padding-top: 33px;
}

.contacts .container .addressBlock .icons {
    margin-top: 15px;
}

.contacts .container .addressBlock .icon {
    margin-right: 20px;
}

.contacts .container .contactForm {
    background: linear-gradient(
            165.02deg,
            #3f3e3e -13.02%,
            #181818 38.65%,
            #181818 100%
    );
    border-radius: 10px;
    padding: 16px;
    color: #ffffff;
}

#fields_block {
    display: block;
}

.contacts .container .contactForm .fields {
    opacity: 0;
    -webkit-animation: 1s transit forwards;
    animation: 1s transit forwards;
}

.contacts .container .contactForm .field,
.contacts .container .contactForm .field__error {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.contacts .container .contactForm .field label {
    font-style: normal;
    font-size: 14px;
    line-height: 23px;
    margin-bottom: 5px;
}

.contacts .container .contactForm .field input,
.contacts .container .contactForm .field textarea {
    height: 40px;
    border-radius: 5px;
    padding: 0 15px;
    border: none;
    background-color: #ffffff;
    font-size: 16px;
    font-family: var(--source-sans-pro);

    &:focus {
        outline: none;
    }
}

.contacts .container .contactForm .field textarea {
    height: auto;
    padding: 15px;
}

.contacts .container .contactForm .field__error label {
    color: red;
}

.contacts .container .contactForm .field__error input,
.contacts .container .contactForm .field__error textarea {
    border: 1px solid red;
}

.contacts .container .contactForm .button_alert {
    display: flex;
    flex-direction: column-reverse;
    padding-bottom: 20px;

}

.contacts .container .contactForm .alertAnimation {
    display: none;
    opacity: 0;
    -webkit-animation: 1s transit forwards;
    animation: 1s transit forwards;
}

#sending_message {
    display: none;
    gap: 10px;
    align-items: center;
}

#success_message_block {
    display: none;
}

.contacts .contactForm .message {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    opacity: 0;
    -webkit-animation: 1s transit forwards;
    animation: 1s transit forwards;
}

.contacts .contactForm .message h4 {
    margin: 30px 0 15px 0;
    font-weight: 700;
    font-size: 22px;
    line-height: 23px;
}

.bottomBlock {
    display: flex;
    flex-direction: column;
}


.dukBlock {
    order: 2
}

.contactForm {
    order: 1
}

.contacts .contactForm .message p {
    font-size: 16px;
    line-height: 22px;
    font-family: var(--open-sans);
    max-width: 350px;
    margin: auto;
    margin-bottom: 60px;
}

#succsess_message_button {
    margin: auto;
}

#contacts.container .detail .icon {
    width: auto;
    height: 62px;
    object-fit: contain;
    padding-bottom: 18px;
}

#contacts.container .detail .body1 {
    padding-bottom: 7px;
}

#contacts.container .detail .body3 {
    padding-bottom: 12px;
    color: var(--grey2);
    font-weight: 400;
}

#contacts.container .detail .btn1 {
    padding-bottom: 16px;
    color: var(--grey3);
    display: block;
}

#contacts.container .detail a {
    padding-bottom: 16px;
    color: var(--grey3);
    text-decoration: none;
    font-weight: 600;
    display: block;
}

#contacts.container .contactForm .h3 {
    padding-bottom: 20px;
}

#contacts.container .heading {
    padding-bottom: 50px;
}

.dukBlock {
    padding-top: 50px;
}

.topBlock .details > .detail {
    display: flex;
    gap: 20px;
    padding-bottom: 15px;
}

.contacts .container .contactForm .field:last-of-type {
    margin-bottom: 0;
}

#contacts.container .heading .h2 {
    font-size: 30px;
    line-height: 43px;
    color: var(--grey3);
}
#contacts.container .heading .body2 {
   color: var(--grey3);
}

#contacts.container .topBlock .details > .detail:last-of-type {
    padding-bottom: 40px;
    border-bottom: 1px solid #CCCCCC;
}

#contacts.container .dukBlock .h3 {
    padding-bottom: 32px;
}

#contacts.container .bottomBlock {
    padding-top: 50px;
}
.contacts .container .contactForm .alertAnimation {
    padding-bottom: 20px;
}
@-webkit-keyframes transit {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes transit {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (min-width: 1448px) {
    .contacts .container .contactForm {
        max-width: 474px !important;
        width: 100%;
    }

    .dukBlock_inner {
        width: 100%;
    }
}

@media screen and (min-width: 1180px) {
    .dukBlock_inner {
        width: 100%;

    }

    .contacts .contactForm .alerts {
        margin-bottom: 20px;
    }

    .contacts  .contactForm .alertAnimation {
        margin-bottom: 0;
    }
    #contacts.container .detail .body1 {
        padding-bottom: 8px;
    }

    #contacts.container .detail .body3 {
        padding-bottom: 16px;
    }

    .contacts  .bottomBlock {
        gap: 50px;
    }

    .contacts  .contactForm {
        max-width: 466px !important;
        width: 100%;
    }

    .contacts .dukBlock_inner .body3 {
        padding-right: 10px;
    }

    .contacts .contactForm .button_alert {
        padding-bottom: 0;
    }

    #contacts.container .heading {
        padding-bottom: 20px;
    }

    #contacts.container .dukBlock {
        width: 100%;
        padding-top: 0;
    }

    #contacts.container .topBlock .details > .detail {
        display: block;
        gap: 30px;
        padding-bottom: 0px;
    }

    #contacts.container .topBlock .details > .detail:last-of-type {
        padding-bottom: 0px;
        border-bottom: 0;
    }

    .contacts .dukBlock_inner:last-of-type {
        margin-bottom: 0;
    }

    .contacts .container .bottomBlock {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .dukBlock {
        order: 1
    }

    .contactForm {
        order: 2
    }

    .dukBlock_inner {
        margin-bottom: 10px;
    }

    #contacts.container {
        padding: 100px 50px 107px;
    }

    .contacts .topBlock .details {
        padding-right: 90px;
    }
}

@media screen and (min-width: 750px) {

    .contacts .container .contactForm .alertAnimation {
        padding-bottom: 0;
    }
    #contacts.container .bottomBlock {
        padding-top: 0;
    }

    #contacts.container .heading .h2 {
        font-size: 45px;
        line-height: 54px;
    }

    .contacts .container .contactForm {
        padding: 30px;
    }

    #contacts.container .topBlock .details > .detail:last-of-type {
        padding-bottom: 0;
        border-bottom: none;
    }

    .contacts .hero {
        margin: auto;
        padding: 0 50px;
        max-width: calc(var(--global_container_width) + 100px);
    }

    .contacts .hero h2 {
        margin-bottom: 100px;
        font-size: 70px;
        line-height: 70px;
        max-width: 600px;
    }

    .contacts .hero p {
        margin-bottom: 90px;
        font-size: 22px;
        line-height: 27px;
        max-width: 600px;
    }

    .contacts .hero .heroButton {
        width: 200%;
        transform: translateX(-50%);
    }

    .contacts .hero .heroButton .button_container {
        width: 71px;
        height: 71px;
    }

    .contacts .hero .heroButton .button_container .button {
        width: 71px;
        height: 71px;
    }

    .contacts .hero .heroButton .button_container .button img {
        width: 22px;
        height: 29px;
    }

    .contacts .hero .heroButton .button_container .button_back {
        width: 71px;
        height: 71px;
    }

    .contacts .container {
        flex-direction: row;
        justify-content: space-between;
        margin: auto;
        gap: 80px;
        padding: 180px 50px;
        max-width: calc(var(--global_container_width) + 100px);
    }

    #contacts.container {
        flex-direction: column;

    }

    .contacts .container .topBlock {
        padding: 0px 0 50px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-bottom: 1px solid var(--grey4);
    }

    .contacts .topBlock .details {
        justify-content: space-between;
        display: flex;
        gap: 30px;

    }
    .contacts .container {
        padding: 180px 50px 100px
    }

    .contacts .container .addressBlock h3 {
        font-size: 45px;
        line-height: 55px;
    }

    .contacts .container .addressBlock .icon img {
        height: 28px;
        width: auto;
    }

    .contacts .container .contactForm {
        border-radius: 10px;

    }

    .contacts .container .contactForm .button_alert {
        flex-direction: row;
        align-items: center;
    }

    .contacts .container .contactForm .alerts {
        margin-bottom: 0;
        margin-left: 20px;
    }
}
