@font-face {
    font-display: swap;
    font-family: 'TildaSans';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/tilda-sans/TildaSans-Light.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'TildaSans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/tilda-sans/TildaSans-Regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'TildaSans';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/tilda-sans/TildaSans-Medium.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'TildaSans';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/tilda-sans/TildaSans-Semibold.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'TildaSans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/tilda-sans/TildaSans-Bold.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'TildaSans';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/tilda-sans/TildaSans-ExtraBold.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'TildaSans';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/tilda-sans/TildaSans-Black.woff2') format('woff2');
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'TildaSans', Arial, sans-serif;
}

a {
    text-decoration: none;
    cursor: pointer;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/*--------------- header ---------------*/

.header {
    position: absolute;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.50);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0);
    transition: background-color 0.3s linear;
    z-index: 1000;
}

.header-wrapper {
    height: 80px;
    padding: 0 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.header-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.header-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 16px;
}

.header-phone {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.menu-link-item {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.menu-social {
    padding-left: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    list-style: none;
}

.menu-social-link {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    color: #000;
    font-size: 18px;
}

@media (max-width: 1199px) {

    .header {
        position: relative;
        top: auto;
        background-color: #000;
    }

    .header-wrapper {
        height: auto;
        min-height: 80px;
        padding: 15px 30px;
    }
}


@media (max-width: 767px) {

    .header {
        position: relative;
        top: auto;
        width: 100%;
        background-color: #000;
    }

    .header-wrapper {
        height: auto;
        padding: 20px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .header-menu {
        width: 100%;
        margin: 0;
        padding: 0;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .header-link {
        padding: 0;
    }

    .menu-link-item {
        font-size: 15px;
        line-height: 1.3;
        text-decoration: none;
    }

    .header-link {
        margin-top: 12px;

        flex-direction: column;
        align-items: center;
    }

    .header-phone {
        font-size: 16px;
    }

    .menu-social {
        margin: 12px 0 0;
        padding: 0;

        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .menu-social-link {
        width: 30px;
        height: 30px;
    }
}


/*--------------- hero ---------------*/

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero.main {
    background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../img/photo-1579389083078-.jpg.webp');
}

.hero.archival_services {
    background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../img/archival_services.webp');
}

.hero.work_permits {
    background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../img/work_permits.webp');
}

.hero.consultations {
    background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../img/consultations.webp');
}

.hero.foreign_visas {
    background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../img/foreign_visas.webp');
}

.hero.library {
    background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../img/photo-1495446815901-.jpg.webp');
}

.hero.news {
    background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../img/photo-1504711434969-.jpg');
}

.hero.our_command {
    background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../img/photo-1506869640319-.jpg.webp');
}

.hero.seminars {
    background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../img/seminars.webp');
}

.hero.visas_to_kazakhstan {
    background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../img/visas_to_kazakhstan.webp');
}

.hero-wrapper {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    margin: 0;
    font-size: 52px;
    line-height: 1;
    color: #ffffff;
    font-weight: 800;
}

.hero-subtitle {
    margin-top: 20px;
    font-size: 38px;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 700;
}

.services-hero-brand {
    padding-top: 30px;
    padding-bottom: 60px;
    font-size: 26px;
    text-transform: uppercase;
    font-weight: 600;
    color: #ffdd2d;
}

.services-hero-title {
    padding: 24px 0 38px;
    color: #fff;
    font-size: 72px;
    font-weight: 600;
    line-height: 1.17;
    letter-spacing: .5px;
}

.services-hero-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 0 0 30px;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.5;
}

.arrow-cover {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-svg {
    display: block;
    width: 38px;
    height: auto;
    fill: #ffffff;
    cursor: pointer;
    transition: all .2s ease-in-out;
    animation: t-arrow-bottom 1.7s ease infinite;
}

@keyframes t-arrow-bottom {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (max-width: 1199px) {
    .hero {
        height: 600px;
        padding: 0 30px;
    }

    .hero-wrapper {
        width: 100%;
        max-width: 960px;
    }

    .hero-title {
        font-size: 46px;
    }

    .hero-subtitle {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .hero {
        height: 520px;
        padding: 0 20px;
        background-attachment: scroll;
        background-position: center center;
    }

    .hero-wrapper {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.1;
        margin: 0;
    }

    .hero-subtitle {
        margin-top: 15px;
        font-size: 23px;
        line-height: 1.35;
    }

    .arrow-cover {
        margin-top: 50px;
    }

    .arrow-svg {
        width: 30px;
        height: auto;
    }
}

@media (max-width: 1199px) {

    .hero {
        height: 600px;
        padding: 0 30px;
    }

    .hero-wrapper {
        width: 100%;
        max-width: 960px;
        text-align: center;
    }

    .services-hero-brand {
        padding-top: 20px;
        padding-bottom: 40px;
        font-size: 23px;
    }

    .services-hero-title {
        padding: 20px 0 30px;
        font-size: 58px;
        line-height: 1.15;
    }

    .services-hero-subtitle {
        max-width: 600px;
        padding-bottom: 25px;
        font-size: 21px;
        line-height: 1.5;
    }

    .arrow-cover {
        bottom: 80px;
    }

    .arrow-svg {
        width: 34px;
    }
}

@media (max-width: 767px) {

    .hero {
        height: 520px;
        padding: 0 20px;

        background-attachment: scroll;
        background-position: center center;
    }

    .hero-wrapper {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .services-hero-brand {
        padding-top: 0;
        padding-bottom: 25px;
        font-size: 19px;
        line-height: 1.3;
    }

    .services-hero-title {
        padding: 15px 0 25px;
        font-size: 42px;
        line-height: 1.15;
        letter-spacing: 0;
    }

    .services-hero-subtitle {
        max-width: 360px;
        padding: 0;

        font-size: 17px;
        line-height: 1.5;
    }

    .arrow-cover {
        bottom: 55px;
    }

    .arrow-svg {
        width: 30px;
    }
}

/*--------------- about ---------------*/

.about {
    padding: 30px 0;
}

.about-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.about-block {
    display: flex;
    flex-direction: column;
    flex-basis: 50%;
}

.about-image {
    flex: 1;
    min-height: 500px;
    background-image: url('../img/123.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-title {
    text-align: center;
    font-size: 52px;
    font-weight: 600;
    color: #052555;
}

.about-subtitle {
    max-width: 400px;
    line-height: 1.55;
    margin: 28px auto 0 auto;
    text-align: center;
    font-size: 18px;
    font-weight: 300;
    color: #666;
}

.divider {
    position: relative;
    display: block;
    margin: 30px auto;
    max-width: 50px;
    width: 100%;
    height: 3px;
    background-color: #259da8;
}

.about-description {
    margin-top: 28px;
    margin-left: auto;
    margin-right: auto;
}


.about-description > p {
    text-align: center;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 300;
    color: #01142f;
}

.about-description > p + p {
    margin-top: 30px;
}

.about-button-row {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 20px 60px;
    border: 0 none;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: #000000;
    transition-duration: 0.2s;
    transition-property: background-color, color, border-color, box-shadow, opacity, transform, gap;
    transition-timing-function: ease-in-out;
    cursor: pointer;
    user-select: none;
}

@media (max-width: 1199px) {

    .about {
        padding: 30px 20px;
    }

    .about-wrapper {
        max-width: 960px;
        gap: 30px;
    }

    .about-image {
        min-height: 450px;
    }

    .about-title {
        font-size: 44px;
    }

    .about-subtitle {
        max-width: 360px;
        font-size: 17px;
        margin-top: 20px;
    }

    .about-description {
        margin-top: 20px;
    }

    .about-description > p {
        font-size: 19px;
        line-height: 1.4;
    }

    .a-btn {
        padding: 18px 45px;
    }
}

@media (max-width: 767px) {

    .about {
        padding: 25px 20px;
    }

    .about-wrapper {
        display: flex;
        flex-direction: column;
        gap: 35px;
        width: 100%;
    }

    .about-block {
        flex-basis: auto;
        width: 100%;
    }

    .about-image {
        width: 100%;
        min-height: 300px;
        aspect-ratio: 4 / 3;

        background-position: center;
    }

    .about-title {
        font-size: 32px;
        line-height: 1.2;
    }


    .about-subtitle {
        max-width: 100%;
        margin-top: 18px;

        font-size: 17px;
        line-height: 1.5;
    }

    .divider {
        margin: 25px auto;
        width: 50px;
        height: 3px;
    }

    .about-description {
        margin-top: 20px;
    }

    .about-description > p {
        font-size: 17px;
        line-height: 1.55;
        text-align: left;
    }

    .about-description > p + p {
        margin-top: 20px;
    }

    .about-button-row {
        margin-top: 25px;
    }

    .a-btn {
        width: 100%;
        margin-top: 15px;
        padding: 17px 25px;

        font-size: 14px;
    }

}

/*--------------- advantages ---------------*/

.advantages {
    padding: 100px 0;
    background-color: #fff;
}

.advantages-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.advantages-title {
    text-align: center;
    font-size: 38px;
    font-weight: 600;
    color: #052555;
    margin-bottom: 40px;
}

.advantages-subtitle {
    text-align: center;
    max-width: 560px;
    font-weight: 300;
    color: #01142f;
    font-size: 24px;
    line-height: 1.5;
    margin: 0 auto 105px auto; 
}

.advantages-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
}

.advantages-card {
    max-width: 360px;
    padding: 0 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.advantages-card:first-child {
    border-right: 1px solid #d1d1d1;
}

.advantages-card:last-child {
    border-left: 1px solid #d1d1d1;
}

.advantages-card-img {
    width: 100px;
    height: 100px;
    max-width: 100%;
    margin-bottom: 30px;
    border-radius: 50%;
    background-color: #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.advantages-card-title {
    text-align: center;
    padding-bottom: 20px;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 600;
    color: #052555;
}

.advantages-card-text {
    font-weight: 300;
    color: #01142f;
    text-align: center;
    font-size: 18px;
    line-height: 1.55;
}

@media (max-width: 1199px) {

    .advantages {
        padding: 75px 20px;
    }

    .advantages-container {
        max-width: 960px;
    }

    .advantages-title {
        font-size: 34px;
        margin-bottom: 30px;
    }

    .advantages-subtitle {
        max-width: 600px;
        font-size: 21px;
        margin-bottom: 75px;
    }

    .advantages-card {
        max-width: 320px;
        padding: 0 20px;
    }

    .advantages-card-img {
        width: 90px;
        height: 90px;
        margin-bottom: 25px;
        font-size: 44px;
    }

    .advantages-card-title {
        font-size: 22px;
        padding-bottom: 15px;
    }

    .advantages-card-text {
        font-size: 17px;
    }

}

@media (max-width: 767px) {

    .advantages {
        padding: 55px 20px;
    }

    .advantages-container {
        width: 100%;
    }

    .advantages-title {
        font-size: 30px;
        line-height: 1.25;
        margin-bottom: 20px;
    }

    .advantages-subtitle {
        max-width: 100%;
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 50px;
    }

    .advantages-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .advantages-card {
        max-width: 400px;
        width: 100%;
        padding: 0 10px 40px;
    }

    .advantages-card:not(:last-child) {
        margin-bottom: 40px;
        border-bottom: 1px solid #d1d1d1;
    }

    .advantages-card:first-child,
    .advantages-card:last-child {
        border-right: 0;
        border-left: 0;
    }

    .advantages-card-img {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
        font-size: 38px;
    }

    .advantages-card-title {
        padding-bottom: 12px;
        font-size: 21px;
        line-height: 1.3;
    }

    .advantages-card-text {
        font-size: 16px;
        line-height: 1.5;
    }

    .advantages-card-text br {
        display: none;
    }

}

/*--------------- services ---------------*/

.services {
    padding-top: 45px;
    padding-bottom: 45px;
    background-color: #f2f2f2;
}

.services-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 45px;
    padding-bottom: 45px;
}

.services-title {
    font-size: 38px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
    color: #052555;
}

.services-subtitle {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-size: 22px;
    font-weight: 300;
    color: #01142f;
    margin-bottom: 90px;
    text-align: center;
}

.services-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 35px;
    column-gap: 35px;
    list-style: none;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.services-card {
    max-width: 360px;
    width: 100%;
}

.services-card-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.services-card-img {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.services-card-img > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.services-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 40%);
}

.services-card-title {
    position: absolute;
    left: 30px;
    bottom: 25px;
    z-index: 1;
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
}

.services-card-text {
    margin-top: 35px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 300;
    color: #01142f;
}

.services-card-link:hover .services-card-img > img {
    transform: scale(1.05);
}

@media (max-width: 767px) {

    .services {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .services-wrapper {
        width: 100%;
        padding: 25px 20px;
    }

    .services-title {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 20px;
    }

    .services-subtitle {
        max-width: 100%;
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 45px;
    }

    .services-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .services-card {
        max-width: none;
        width: 100%;
    }

    .services-card-img {
        width: 100%;
        height: 220px;
    }

    .services-card-title {
        left: 20px;
        right: 20px;
        bottom: 20px;

        font-size: 20px;
        line-height: 1.25;
    }

    .services-card-text {
        margin-top: 20px;

        font-size: 16px;
        line-height: 1.5;
    }

}

@media (min-width: 768px) and (max-width: 1199px) {

    .services-wrapper {
        padding-left: 30px;
        padding-right: 30px;
    }

    .services-content {
        justify-content: center;
    }

    .services-card {
        max-width: calc(50% - 18px);
    }

}

/*--------------- clients ---------------*/

.clients {
    background-color: #f2f2f2;
    padding: 150px 0;
}

.clients-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.clients-title {
    font-size: 42px;
    line-height: 1.23;
    font-weight: 600;
    color: #052555;
    margin-bottom: 40px;
    text-align: center;
}

.clients-subtitle {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;
    text-align: center;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 300;
    color: #01142f;
}

.clients-slider {
    position: relative;
    margin-top: 55px;
}

.clients-slider-controls {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.clients-content {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.clients-content::-webkit-scrollbar {
    display: none;
}

.clients-card {
    flex: 0 0 calc((100% - 120px) / 5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 20px;
    background-color: #ffffff;
    scroll-snap-align: start;
}

.clients-card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100px;
    object-fit: contain;
}

.clients-slider-button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgb(232, 232, 232);
    color: #fff;
    font-size: 16px;
    color: #222;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.2s ease;
}

.clients-slider-button:hover,
.clients-slider-button:focus-visible {
    background-color: #031a3d;
    color: #ffffff;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .clients-card {
        flex-basis: calc((100% - 60px) / 3);
    }
}

@media (max-width: 767px) {
    .clients-slider {
        margin-top: 35px;
    }

    .clients-card {
        flex-basis: 100%;
    }
}


/*--------------- contacts ---------------*/

.contacts {
    background-color: #efefef;
    padding: 150px 0;
}

.contacts-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contacts-title {
    margin-bottom: 45px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: #052555;
    text-align: center;
}

.contacts-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

    text-align: center;
    font-weight: 600;
    font-size: 32px;
}

.contacts-main a {
    color: #052555;
    text-decoration: none;
}

.contacts-main a:hover {
    text-decoration: underline;
}

.contacts-address {
    margin-top: 45px;
    text-align: center;
    font-style: normal;
    font-size: 18px;
    font-weight: 300;
    color: #01142f;
}

.contacts-address-secondary {
    margin-top: 16px;
}

.contacts-social {
    margin-top: 40px;
}

.contacts-social > ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 7px;
}

.contacts-social-item {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    font-size: 18px;
}

@media (max-width: 1199px) {

    .contacts {
        padding: 110px 20px;
    }

    .contacts-wrapper {
        max-width: 960px;
    }

    .contacts-title {
        margin-bottom: 35px;
        font-size: 14px;
    }

    .contacts-main {
        font-size: 30px;
    }

    .contacts-address {
        margin-top: 35px;
        font-size: 17px;
        line-height: 1.5;
    }

    .contacts-social {
        margin-top: 35px;
    }

}

@media (max-width: 767px) {

    .contacts {
        padding: 70px 20px;
    }

    .contacts-wrapper {
        width: 100%;
    }

    .contacts-title {
        max-width: 320px;
        margin-bottom: 25px;

        font-size: 14px;
        line-height: 1.5;
    }

    .contacts-main {
        font-size: 25px;
        line-height: 1.5;
        word-break: break-word;
    }

    .contacts-address {
        max-width: 340px;
        margin-top: 25px;

        font-size: 16px;
        line-height: 1.55;
    }

    .contacts-address br {
        display: none;
    }

    .contacts-social {
        margin-top: 30px;
    }

    .contacts-social > ul {
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    .contacts-social-item {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

}

/*--------------- profiles ---------------*/

.profiles {
    padding-top: 135px;
    padding-bottom: 165px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profiles-wrapper {
    width: 100%;
    max-width: 1200px;
}

.profiles-title {
    margin-bottom: 90px;
    text-align: center;
    font-size: 42px;
    line-height: 1.23;
    font-weight: 600;
    color: #052555;
}

.profiles-content {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 120px;
}


.profiles-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 30px;
}

.profiles-card:nth-child(even) {
    flex-direction: row-reverse;
}

.profiles-card-img,
.profiles-card-content {
    flex: 1 1 0;
    min-width: 0;
}

.profiles-card-img {
    aspect-ratio: 4 / 3;
    height: auto;
    overflow: hidden;
}

.profiles-card-img > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profiles-card-title {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 1.23;
    font-weight: 600;
    color: #052555;
}

.profiles-card-text {
    font-size: 18px;
    line-height: 1.55;
    font-weight: 300;
    color: #01142f;
}

.profiles-card-text p {
    margin: 0;
}

.profiles-card-text p + p {
    margin-top: 20px;
}

@media (max-width: 1199px) {
    .profiles {
        padding: 90px 30px 110px;
    }

    .profiles-wrapper {
        width: 100%;
        max-width: 960px;
    }

    .profiles-title {
        margin-bottom: 70px;
        font-size: 36px;
    }

    .profiles-content {
        gap: 90px;
    }

    .profiles-card {
        gap: 25px;
    }

    .profiles-card-img {
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }

    .profiles-card-title {
        margin-bottom: 20px;
        font-size: 22px;
    }

    .profiles-card-text {
        font-size: 17px;
        line-height: 1.55;
    }
}

@media (max-width: 767px) {
    .profiles {
        padding: 60px 20px 70px;
    }

    .profiles-wrapper {
        width: 100%;
    }

    .profiles-title {
        margin-bottom: 45px;
        font-size: 30px;
        line-height: 1.25;
    }

    .profiles-content {
        gap: 60px;
    }

    .profiles-card,
    .profiles-card:nth-child(even) {
        flex-direction: column;
        width: 100%;
        gap: 25px;
    }

    .profiles-card-img,
    .profiles-card-content {
        flex: 0 0 auto;
        width: 100%;
    }

    .profiles-card-img {
        aspect-ratio: 4 / 3;
    }

    .profiles-card-title {
        margin-bottom: 18px;
        font-size: 21px;
        line-height: 1.3;
    }

    .profiles-card-text {
        font-size: 16px;
        line-height: 1.55;
    }

    .profiles-card-text p + p {
        margin-top: 18px;
    }
}

/*--------------- footer ---------------*/

.footer {
    background-color: #111;
}

.footer-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 50px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.footer-menu > ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-link {
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.footer-year {
    color: #7d7d7d;
    font-size: 14px;
}


@media (max-width: 1199px) {

    .footer-wrapper {
        padding: 45px 20px;
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-menu > ul {
        gap: 12px;
    }

}

@media (max-width: 767px) {

    .footer-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        width: 100%;
        padding: 40px 20px;
        gap: 30px;
    }

    .footer-logo {
        text-align: center;
        font-size: 20px;
    }

    .footer-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-menu > ul {
        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 15px;

        margin: 0;
        padding: 0;
    }

    .footer-link {
        font-size: 13px;
        line-height: 1.4;
    }

    .footer-year {
        margin-top: 25px;
        text-align: center;
        font-size: 13px;
    }

}
