@font-face {
    font-family: 'Switzer';
    src: url('/fonts/Switzer-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Switzer';
    src: url('/fonts/Switzer-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Switzer';
    src: url('/fonts/Switzer-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Switzer';
    src: url('/fonts/Switzer-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Switzer';
    src: url('/fonts/Switzer-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

:root {
    --text-color: #393939;
    --header-color: #000000;
    --main-blue-color: #419CD3;
    --secondary-blue-color: #F7F9FC;
    --burgerBackgroundColor: #ECEFF4;
    --white-color: #FFFFFF;
    --dark-blue-color: #1C438F;
    --border-color: #DEDEDE;
    --placeholder-color: #ADADAD;
    --borderRadius: 1em;
    --fontFamily: 'Switzer';
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


a {
    color: var(--text-color);
    text-decoration: none;
}

.active-link {
    color: var(--placeholder-color);
}

h1 {
    font-size: 4.5rem;
    margin: 0;
    color: var(--header-color);

    @media screen and (min-width: 876px) {
        font-size: 3.5rem;
    }

    @media screen and (max-width: 853px) {
        font-size: 1.8rem;
    }
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--header-color);
}

h3 {
    font-size: 2rem;
    margin: 30px 0 20px 0;
    font-weight: 600;
    color: var(--text-color);

    @media screen and (min-width: 876px) {
        font-size: 1.9rem;
    }

    @media screen and (max-width: 875px) {
        font-size: 1.2rem;
    }
}

.button-main {
    background-color: var(--main-blue-color);
    width: fit-content;
    padding: 10px 25px;
    margin: 45px 0 0 0;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;

    a {
        font-weight: 500;
        color: var(--white-color);
    }

    &:hover {
        background-color: var(--dark-blue-color);
    }
}

html {
    font-size: 20px;
}

body {
    font-family: var(--fontFamily);
    font-size: 1rem;
    font-style: normal;
    color: var(--text-color);
    margin: 0;
    height: 100%;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    color: var(--placeholder-color);
    margin: 0;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
}

input::placeholder {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: var(--placeholder-color);
    font-weight: inherit;
    opacity: 1;
}

input:-webkit-autofill {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: var(--placeholder-color);
    -webkit-text-fill-color: var(--placeholder-color);
    transition: background-color 5000s ease-in-out 0s;
}

.wrapper {
    margin-right: auto;
    margin-left: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.main {
    min-height: 100%;
    padding-bottom: 190px;
}

.main-container {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    max-width: 1780px;
    padding: 0 15px;

    @media screen and (max-width: 1865px) {
        padding: 0 40px;
    }
}

.header-block {
    position: sticky;
    top: 0px;
    height: 156px;
    margin: 0 0 85px 0;
    background-color: var(--white-color);
}

.header-block.shadow {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.header-logo {
    img {
        @media screen and (max-width: 875px) {
            width: 218px;
        }
    }
}

.header {
    display: flex;
    width: 100%;
    padding: 48px 0;
    justify-content: space-between;

    .header-nav {
        display: flex;
        max-width: 1222px;
        align-items: center;

        .header-nav-item {
            margin-left: 200px;

            @media screen and (max-width: 1675px) {
                margin-left: 100px;
            }

            @media screen and (max-width: 1400px) {
                margin-left: 60px;
            }

            &:first-child {
                margin-left: 0px;
            }

            transition: color 0.3s ease,
            text-decoration 0.3s ease;

            &:hover {
                color: var(--main-blue-color);
                text-decoration: underline;
            }
        }

        @media screen and (max-width: 1250px) {
            display: none;
        }
    }
}

/* burger  */

.header-burger {
    display: none;

    @media screen and (max-width: 1250px) {
        display: flex;
        align-items: center;
    }
}

.burger {
    font-size: 1rem;
    cursor: pointer;
    padding: 1em 0;
    position: relative;
}

.burger>div {
    width: 2.5em;
    height: 0.4em;
    background: var(--header-color);
    border-radius: var(--borderRadius);
    position: relative;
    transition: background 0.4s;
}

.burger>div::before,
.burger>div::after {
    content: "";
    width: 2.5em;
    height: 0.4em;
    background: var(--header-color);
    position: absolute;
    border-radius: var(--borderRadius);
    transition: transform 0.4s, top 0.4s;
}

.burger>div::before {
    top: -0.7em;
}

.burger>div::after {
    top: 0.7em;
}

.burger.toggled>div {
    background: transparent;
}

.burger.toggled>div::before {
    transform: rotate(45deg);
    top: 0px;
}

.burger.toggled>div::after {
    transform: rotate(-45deg);
    top: 0px;
}

.off-screen-menu {
    background-color: var(--burgerBackgroundColor);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 140px 19px 20px;
    position: fixed;
    top: 0;
    right: 0;

    .off-screen-menu-item {
        margin: 1rem 0;
        transition: color 0.3s ease, text-decoration 0.3s ease;

        &:hover {
            color: var(--main-blue-color);
            text-decoration: underline;
        }
    }

    @media screen and (max-width: 1250px) {
        padding: 140px 40px 20px;
    }
}

.display-none {
    display: none;
}

.title-main {
    margin: 0 0 60px 300px;

    @media screen and (max-width: 1865px) {
        margin: 0 0 60px 0px;
    }
}

.main-content-container {
    width: 100%;
    margin: 0 0 60px 580px;

    @media screen and (max-width: 1865px) {
        margin: 0 0 60px 0px;
    }
}

.main-content-container-about-main-page {
    display: flex;

    .main-content-container-about-main-page-left {
        max-width: 690px;
        padding: 1rem 0 0 0;

        @media (min-width: 375px) and (max-width: 1340px) {
            padding: 0;
        }
    }

    @media (min-width: 375px) and (max-width: 1340px) {
        flex-direction: column-reverse;
    }

    .main-content-container-about-main-page-pict.about-picture {
        width: auto;
        margin: 0 115px 0 0;

        @media (min-width: 375px) and (max-width: 1340px) {
            margin: 0;
        }
    }

    .main-content-container-about-main-page-pict {
        max-width: 469px;
        height: auto;
        overflow: hidden;

        img {
            width: 100%;
            object-fit: contain;
        }
    }
}


.target-groups {
    background-color: var(--secondary-blue-color);
    margin: 60px 0 0 0;
    width: 100%;
}

.target-groups-content {
    width: 100%;
    margin: 30px 0 0 0;

    .target-groups-blocks {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin: 0 0 115px 0;
    }
}

.target-groups-item {
    max-width: 375px;
    padding: 25px;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    margin: 0.5rem;

    .target-groups-item-img {
        max-width: 350px;

        img {
            display: block;
            width: 100%;
        }

        @media (min-width: 480px) and (max-width: 1340px) {
            margin-right: 25px;
        }
    }


    .target-groups-item-description-link {
        color: var(--dark-blue-color);
        transition: color 0.3s ease, text-decoration 0.3s ease;

        &:hover {
            color: var(--main-blue-color);
            text-decoration: underline;
        }
    }

    @media (min-width: 840px) and (max-width: 1340px) {
        display: flex;
        max-width: 100%;
        flex-basis: 100%;
        margin: 0.5rem 0;

        &:nth-child(2) {
            margin: 0.5rem 0;
        }
    }

    @media screen and (max-width: 517px) and (max-width: 841px) {
        margin: 0.5rem 0;
    }
}

.form-block {
    margin: 85px 0 0 0;
}

.form-block form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.form-column {
    flex: 1;
    min-width: 300px;
}

.block-with-form {
    margin: 60px 0 0 0;
}

.alignment-form {
    flex-direction: column;
}

.text-field {
    margin-bottom: 2.5rem;
}

.text-field:nth-child(3),
.text-field:nth-child(6) {
    margin-bottom: 0.5rem;

    @media (min-width: 480px) and (max-width: 1340px) {
        margin-bottom: 1.25rem;
    }
}

.text-field__label {
    display: block;
    margin-bottom: 0.25rem;
}

.text-field__input {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-weight: inherit;
    color: var(--text-color);
    background-color: var(--white-color);
    border: 2px solid var(--text-color);
    border-top: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.text-field__input:focus {
    border: 2px solid var(--main-blue-color);
    border-top: none;
    outline: none;
}

.checkbox-button-block {
    width: 100%;
}

.rules {
    a {
        text-decoration: underline;
        transition: color 0.3s ease;

        &:hover {
            color: var(--main-blue-color);
        }
    }
}

.form-note {
    p {
        font-size: 0.7rem;
    }
}

button {
    font-family: var(--fontFamily);
    font-size: 1rem;
    font-weight: 500;
    color: var(--white-color);
    background-color: var(--main-blue-color);
    width: fit-content;
    padding: 10px 25px;
    margin: 45px 0 0 0;
    border-radius: 0.5rem;
    border: none;
    transition: background-color 0.3s ease;

    &:hover {
        background-color: var(--dark-blue-color);
    }
}

footer {
    flex: 0 0 auto;
    background-color: var(--text-color);
    color: var(--white-color);

    .footer-content {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin: 45px 0;

        .footer-left-content {
            display: flex;

            @media (max-width: 875px) {
                flex-direction: column;
            }
        }

        @media screen and (max-width: 875px) {
            flex-direction: column;
        }

        .nordic-pharma {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            margin: 0 345px 0 0;

            .nordic-pharma-text {
                font-size: 0.8rem;
                font-weight: normal;
                margin: 0 0 20px 0;

                span {
                    color: var(--placeholder-color);
                }
            }

            .nordic-pharma-logo {
                display: flex;
            }

            @media screen and (max-width: 875px) {
                margin: 0 0 1rem 0;
            }
        }

        .footer-rules {
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            @media screen and (max-width: 875px) {
                margin-bottom: 1rem;
            }
        }

        .footer-socials {
            display: flex;
            flex-direction: row;
            align-items: center;

            a {
                margin: 0 0 0 65px;

                @media screen and (max-width: 875px) {
                    margin: 0;
                }
            }

            @media screen and (max-width: 875px) {
                flex-direction: column;
                align-items: flex-start;
            }
        }
    }

    .footer-socials {
        a {
            font-size: 0.8rem;
            font-weight: 500;
            text-decoration: underline;
        }
    }

    a {
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--white-color);
        transition: color 0.3s ease, text-decoration 0.3s ease;

        &:hover {
            color: var(--main-blue-color);
            text-decoration: underline;
        }
    }
}

.title-no-margin {
    margin: 0 0 60px 0;
}

.main-content-container-no-margin {
    margin: 0 0 60px 0px;
}

.main-content-container-about-main-reverse {
    flex-direction: row-reverse;
    justify-content: left;

    @media (min-width: 375px) and (max-width: 1340px) {
        flex-direction: column-reverse;
    }
}

.article-img {
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.categories-people-container {
    margin: 115px 115px 0 115px;

    @media (min-width: 375px) and (max-width: 1340px) {
        margin: 0;
    }

}

.categories-people-item {
    display: flex;
    margin-bottom: 115px;

    .categories-people-item-img {
        max-width: 350px;
        margin: 0 3rem 0 0;

        img {
            object-fit: cover;

            @media (min-width: 375px) and (max-width: 1340px) {
                width: 100%;
            }
        }

        @media (min-width: 375px) and (max-width: 1340px) {
            margin: 0;
            width: 100%;
        }
    }

    @media (min-width: 375px) and (max-width: 1340px) {
        flex-flow: column;
        margin-bottom: 50px;
    }
}

.categories-people-item-img.img-margin-reverse {
    margin: 0 0 0 3rem;

    @media (min-width: 375px) and (max-width: 1340px) {
        margin: 0;
    }

}

.row-reverse {
    flex-flow: row-reverse;

    @media (min-width: 375px) and (max-width: 1340px) {
        flex-flow: column;
    }
}

/* .stress-tittle,
.stress-subtittle,
.stress-paragraph {
    text-align: center;

} */

/* .stress-subtittle,
.stress-tittle {
    margin: 1rem auto;
}

.stress-paragraph {
    margin: 0.5rem auto;
} */

.test-container {
    width: 685px;
    margin: 75px auto 50px auto;

    @media (min-width: 375px) and (max-width: 1340px) {
        width: 100%;
    }
}

.custom-checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-checkbox+label {
    display: inline-flex;
    align-items: center;
    user-select: none;
}

.custom-checkbox+label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}

.checkbox-item {
    display: flex;
    flex-direction: row-reverse;
    width: fit-content;
    margin-right: 115px;

    @media (min-width: 375px) and (max-width: 1340px) {
        margin: 1rem 0;
    }
}

.custom-checkbox:not(:disabled):not(:checked)+label:hover::before {
    border-color: #b3d7ff;
}

.custom-checkbox:not(:disabled):active+label::before {
    background-color: #b3d7ff;
    border-color: #b3d7ff;
}

.custom-checkbox:focus+label::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-checkbox:focus:not(:checked)+label::before {
    border-color: #80bdff;
}

.custom-checkbox:checked+label::before {
    border-color: #0b76ef;
    background-color: #0b76ef;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.custom-checkbox:disabled+label::before {
    background-color: #e9ecef;
}

.checkbox-collection {
    display: flex;
    margin: 45px 0 0 0;

    @media (min-width: 375px) and (max-width: 1340px) {
        flex-flow: column;
    }
}

.wrapper.wrapper-test-page {
    background-color: var(--secondary-blue-color);
}

.main-content-container-about-main-page.partners-contacts {
    justify-content: center;
}

.contact-section {
    background-color: var(--main-blue-color);
    padding: 155px 0;

    @media (min-width: 375px) and (max-width: 1340px) {
        padding: 50px 0;

    }

    h1,
    p,
    a {
        color: var(--white-color);
    }

}

.contact-tittle {
    display: flex;
    align-items: center;
    margin-right: 130px;

    @media (min-width: 375px) and (max-width: 1340px) {
        margin-bottom: 1rem;
    }
}

.main-content-container-about-main-page-left.contact-info {
    display: flex;
    flex-direction: row;

    @media (min-width: 375px) and (max-width: 1340px) {
        flex-direction: column;
    }

    p {
        padding-right: 2rem;
    }
}

.phones {
    display: flex;
    flex-flow: column;
    width: 100%;
}

.main-container.contact-align {
    align-items: center;
}

.adress {
    margin: 0;
    width: 100%;

    @media (min-width: 375px) and (max-width: 1340px) {
        margin-bottom: 1rem;
    }
}

.main-error {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 281px 0;
    padding: 0 2rem;

    @media (min-width: 375px) and (max-width: 1340px) {
        margin: 0 0 60px 0;
    }

    .error-block {
        max-width: 560px;
    }
}

.error-block>.button-main {
    margin: 45px auto 0 auto;
}