@media (max-width: 1185px) {

    .container {
        padding: 0 28px;
    }

}

@media (min-width: 769px) {


    .staff-item:nth-child(1) {
        grid-column: 2;
        grid-row: 1;
    }

    .staff-item:nth-child(2) {
        grid-column: 3;
        grid-row: 1;
    }

    .staff-item:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }

    .staff-item:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }

    .staff-item:nth-child(5) {
        grid-column: 3;
        grid-row: 2;
    }

    .staff-item:nth-child(6) {
        grid-column: 4;
        grid-row: 2;
    }


}



@media (max-width: 1240px) {

    .d-none-xs {
        display: block;
    }

    .d-none-m {
        display: none;
    }


    .header-menu-wrap {
        flex-direction: column;
        padding: 40px 20px;
        position: absolute;
        background-color: var(--white-color);
        right: 0;
        top: 0;
        z-index: 9;
        width: 100%;
        min-width: 280px;
        max-width: 280px;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: none;
    }


    .menu-item.active .dropdown-menu {
        position: unset;
        top: 0;
        box-shadow: none;
    }

    /* .dropdown-toggle {
        top: 0;
        transform: translateY(16px);
    } */

    .burger-menu {
        display: flex;
    }

    .header-inner {
        justify-content: space-between;
        padding: 16px;
        width: 100%;
    }

    .entrance-wrap {
        margin-left: 0;
        margin-top: 20px;
    }


    .header-menu-wrap.active {
        display: flex;
        transform: translateX(0);
        gap: 16px;
    }

    .subscribe-news-form-input-wrap {
        grid-template-columns: 1fr;
    }

    .custom-footnote {
        height: 900px;
    }

    .footnote-img-wrap img:first-child {
        top: 0;
        left: 40px;
    }

    .footnote-img-wrap img {
        max-width: 324px;
    }

    .footnote-img-wrap img:last-child {
        right: -173px;
    }

    .footnote-wrap,
    .advantages-item {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mt-34 {
        margin-top: 14px;
    }

    .mt-60 {
        margin-top: 30px;
    }

    .mt-70 {
        margin-top: 35px;
    }


    .mt-46 {
        margin-top: 23px;
    }

    .mt-100 {
        margin-top: 50px;
    }

    .mt-125 {
        margin-top: 65px;
    }

    .mt-85 {
        margin-top: 42px;
    }

    .mt-90 {
        margin-top: 48px;
    }

    .mt-120 {
        margin-top: 60px;
    }

    .mt-140 {
        margin-top: 70px;
    }

    .advantages-item-title {
        width: 100%;
        padding: 50px 25px;
        min-width: 100% !important;
    }

    .custom-footnote-photo {
        padding: 70px 0;
    }


}

@media (max-width: 768px) {
    .footnote-advantages-wrap {
        flex-direction: column;
        gap: 40px;
    }


    .section-footnote-photo {
        height: 100%;
    }

    .section-footnote {
        padding: 50px 0 60px;
    }


    .subscribe-news-form-input-wrap {
        gap: 35px;
    }


    .banner-img-outside {
        position: relative;
        width: 100%;
        height: auto;
    }

    .section-banner {
        height: auto;
    }

    .custom-footnote .footnote-text {
        max-width: 100%;
    }

    .vacancies-address {
        text-align: left;
    }


    .staff-wrap {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
    }

    .gallery-grid {
        padding-bottom: 90px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        min-width: 100%;
        text-align: center;
    }

    .subscribe-news-title,
    .addition-team-title {
        text-align: center;
    }

    .section-addition-team {
        height: auto;
        padding: 70px 22px;
        text-align: center;
    }

    .btn-outline {
        padding: 15px 31px;
    }

    .footer-column:nth-child(1) {
        grid-column: 1;
        grid-row: 2;
    }

    .footer-column:nth-child(3) {
        grid-column: 1;
        grid-row: 1;
    }



    .footer-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-subscribe-news {
        padding: 90px 0 112px;
    }



    .footnote-wrap {
        gap: 60px;
    }

    .advantages-item {
        gap: 26px;
    }

    .custom-footnote-photo {
        padding: 70px 26px;
        text-align: center;
    }

    .custom-footnote-photo .footnote-photo-title .footnote-text {
        text-align: center;
    }

    .section-footnote-pt-title {
        padding-bottom: 13px;
    }

    .footnote-advantages-item {
        gap: 8px;
        padding: 0 150px;
    }

    .section-vacancies {
        padding: 70px 0 100px;
    }

    .vacancies-item {
        padding: 25px 0 0 40px;
        grid-row-gap: 25px;
    }

    .vacancies-item-title {
        padding-right: 25px;
    }

    .vacancies-more-details {
        margin-top: 0;
    }

    .close {
        color: var(--dark-purple);
        margin-left: 10px;
        font-size: 58px;
    }

    .vacancies-more-details::after,
    .vacancies-more-details::before {
        left: 140px;
    }

    .commercial-modal .modal-content {
        padding: 30px 40px;
    }


    .consent-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: normal;
    }

    .consent-table table {
        width: 100%;
    }

    .consent-table th,
    .consent-table td {
        min-width: 120px;
        white-space: normal;
        word-wrap: break-word;
        padding: 12px 8px;
        line-height: 1.4;
        vertical-align: top;
    }

    .consent-table td:nth-child(2),
    .consent-table th:nth-child(2) {
        width: 200px;
        min-height: 60px;
    }

    .consent-table tr {
        height: auto;
        min-height: 50px;
    }

    .consent-table th {
        padding: 15px 8px;
        position: sticky;
        left: 0;
        background-color: var(--dark-purple);
        color: var(--white-color);
    }

    .section-business__text {
        padding: 0 20px;
        line-height: 1.7;
    }

    .section__news__box {
        width: 90%;
        min-height: 244px;
    }

    .section-to-do__title {
        margin: 0;
        text-align: center;
    }

    .section-to-do__list-item {
        gap: 32px;
    }

    .item-text-box__text {
        margin-left: 40px;
    }

    .section-news {
        padding-top: 70px;
        padding-bottom: 60px;
    }

    .section-money__image-box {
        width: 100%;
    }

    .section-other-news__content {
        width: 90%;
    }

    .section-products__product-content {
        min-width: 320px;
    }

    .section-money-wrap {
        flex-direction: column;
        padding: 0 20px;
    }
}


@media (max-width: 480px) {
    .staff-wrap {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 20px auto 0;
    }

    .staff-img {
        width: 150px;
        height: 150px;
    }

    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .vacancies-item-btn {
        grid-column: 1 / span 2;
    }

    .vacancies-item {
        padding: 30px 0 0;
    }

    .vacancies-more-details::after,
    .vacancies-more-details::before {
        left: 116px;
    }

    .salary,
    .vacancies-item-title,
    .vacancies-more-details {
        padding-left: 16px;
    }

    .footer-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        grid-row-gap: 35px;
        padding: 35px;
    }

    .footer-item.fw-bold {
        font-weight: 700;
        line-height: 27px;
    }

    .footer-column:last-child {
        align-items: center;
        grid-column: 1 / span 2;
        position: relative;
    }

    .footer-img {
        /* position: absolute;
        right: 25px;
        top: 60px;
        width: 30%; */
        position: absolute;
        right: -11px;
        top: -28px;
        width: 23%;
    }

    .footer-text,
    .footer-link {
        font-size: 13px;
        font-weight: 400;
    }

    .search-input {
        width: 100%;
    }

    .search-wrapper {
        justify-content: flex-start;
        width: 100%;
    }

    .btn {
        padding: 10px;
    }

    .footnote-img-wrap img:first-child {
        left: 0;
    }

    .footnote-img-wrap img:last-child {
        top: 190px;
        max-width: 200px !important;
        height: 200px;
        object-fit: cover;
    }

    .detailed-title {
        font-size: 30px;
    }

    .detailed-li-item {
        text-align: left;
        margin-bottom: 18px;
    }


    .custom-footnote-photo .subtitle,
    .custom-footnote-photo .footnote-photo-title .title {
        line-height: 30px;
    }

    .custom-footnote-photo {
        padding: 70px 0;
    }

    .subtitle.bold-text {
        margin: 25px 0;
    }

    .footnote-advantages-item {
        padding: 0;
    }

    .staff-title,
    .section-footnote-pt-title {
        line-height: 33px;
    }

    .section-team-development {
        clip-path: polygon(50% 6%, 100% 0, 100% 100%, 0 100%, 0 0);
        padding: 140px 0 162px;
        padding: 140px 0 105px;
    }

    .section-team-development::before {
        height: 10%;
        clip-path: polygon(50% 6%, 100% 0, 100% 100%, 0 100%, 0 0);
    }

    .team-development-img-wrap {
        position: absolute;
        bottom: -57px;
        right: 2px;
        height: 184.5px;
        width: 385px;
    }

    .gallery-wrap {
        padding-bottom: 50px;
    }

    .vacancies-item {
        grid-template-rows: auto auto auto auto auto;
    }

    .vacancies-item-btn {
        grid-row: 5;
    }

    .vacancies-more-details {
        grid-row: 4;
    }

    .vacancies-item-title {
        grid-row: 3;
        font-size: 20px;
    }

    .vacancies-address {
        padding: 0 16px;
        grid-row: 2;
        grid-column: 1 / span 2;
    }

    .team-promo {
        line-height: 30px;
    }

    .footer-column:nth-child(1) {
        grid-row: 1;
        grid-column: 1 / span 2;
    }

    .footer-column:nth-child(3) {
        grid-column: 2;
    }

    .footer-column:nth-child(3) {
        grid-row: 2;
    }



    .comments-form-modal-label,
    .form-modal-title {
        text-align: left;
        /* display: flex; */
        display: block;
        width: fit-content;
        min-width: 52px;
        font-size: 16px;
    }

    .mb-hyphens {
        hyphens: auto;
    }

    .br-mb-none {
        display: none;
    }

    .br-mb-block {
        display: block;
    }

    .d-none-480 {
        display: none;
    }

    .d-block-480 {
        display: block;
    }

    .column-480 {
        display: flex;
        flex-direction: column;
    }

    .section-guarantee__elem,
    .section-guarantee__box {
        gap: 24px;
    }

    .section-work:has(.section-proff__box) {
        clip-path: polygon(50% 0%, 100% 3%, 100% 100%, 0px 100%, 0% 3%);
    }

    .section-proff__box {
        padding-top: 100px;
    }

    .section-proff__content-sub {
        margin-top: 43px;
        margin-bottom: 43px;
    }

    .section-certificate__container {
        padding: 160px 20px 150px 20px;
    }

    .section-catalog__box {
        clip-path: polygon(100% 0, 100% 92%, 48% 100%, 0 92%, 0 0);
    }
}