:root {
    --white: #FFFFFF;
    --main-color: #C9A97E;
    --red-color: #991E19;
    --gray: #333333;
    --gray-60: rgba(51, 51, 51, 0.6);
    --box-shadow: rgba(51, 51, 51, 0.10);
}

body {
    font-family: Raleway, sans-serif;
    font-style: normal;
    width: 100%;
    overflow-x: hidden;
}


.container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 98px;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 40px;
    z-index: 10;
}

.base-template .header.fixed,
.header.fixed {
    position: fixed;
    background: rgba(0, 0, 0, 0.50);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 40px 0;
}

.base-template .header {
    position: relative;
    background: rgba(0, 0, 0, 0.50);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 40px 0;
}

.header__logo {
    display: flex;
    max-height: 35px;
    align-items: center;
}


.header__wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-height: 35px;
    height: 35px;
}

.header .nav__items {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.nav__link {
    font-size: 15px;
    color: #D9D9D9;
    line-height: 22px;
    transition: text-decoration ease-in-out 0.3s;
}

.nav__item:hover {
    border-bottom: 1px solid var(--main-color);
    max-width: max-content;
}

.header .contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.mobile-menu {
    display: none;
    position: relative;
    max-width: 25px;
    width: 100%;
    height: 10px;
}

.mobile-menu::before,
.mobile-menu::after {
    content: "";
    position: absolute;
    display: block;
    height: 1px;
    width: 100%;
    background: var(--white);
}

.mobile-menu::before {
    top: 0;
}

.mobile-menu::after {
    bottom: 0;
}

.mobile-menu.active:before,
.mobile-menu.active:after {
    background: var(--main-color);
    height: 2px;
    transition: transform .2s linear;
}

.mobile-menu.active:before {
    transform-origin: left top;
    transform: rotate(45deg) translate3d(0px, -6px, 0);
}

.mobile-menu.active:after {
    transform-origin: left bottom;
    transform: rotate(-45deg) translate3d(0px, 6px, 0);
}

.breadcrumb {
    font-family: Raleway, sans-serif;
    font-size: 15px;
    background: white;
    color: #C9C9C9;
}

.breadcrumb > li + li::before {
    padding: 0 5px;
    color: #C9C9C9;
    content: ">";
}

.breadcrumb-item a:visited {
    color: #C9C9C9;
}

.breadcrumb-item a:hover {
    color: var(--main-color);
}

.breadcrumb > .active {
    color: var(--main-color);
}

.callback__btn {
    color: #D9D9D9;
    font-family: Inter, sans-serif;
    font-size: 15px;
    background: none;
    line-height: 18px;
}

.callback__btn:hover {
    color: var(--main-color);
}

.contacts .phone {
    display: block;
    color: #D9D9D9;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
}

.header.active {
    height: 100vh;
    background: rgba(0, 0, 0, 0.50);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn {
    display: block;
    position: relative;
    width: max-content;
    padding: 16px 42px;
    border-radius: 36px;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    background: var(--main-color);
    transition: all ease 300ms;
    text-align: center;
    z-index: 2;
    cursor: pointer;
}

.btn--primary {
    box-shadow: 0 4px 4px 0 #554123;
}

.btn--primary:hover {
    color: var(--gray);
    background: var(--white);
}

.btn--primary::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 36px;
    background: rgba(213, 169, 103, 0.30);
    transform: translateX(-50%) translateY(-50%);
    animation: back-circle 2000ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: -1;
}

.btn--secondary {
    background: #D9D9D9;
    box-shadow: 0 4px 4px 0 #626262;
}

.btn--secondary:hover {
    color: var(--gray);
    background: var(--white);
}

.btn--secondary:hover::after {
    opacity: 0;
}

.btn--primary:hover::after {
    opacity: 0;
}

.btn--secondary::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50px;
    background: rgba(217, 217, 217, 0.33);
    transform: translateX(-50%) translateY(-50%);
    animation: back-circle 2000ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: -1;
}

@keyframes back-circle {
    0% {
        width: 100%;
        height: 100%;
    }
    50% {
        width: 110%;
        height: 130%;
    }
    100% {
        width: 100%;
        height: 100%;
    }
}

@keyframes back-circle2 {
    0% {
        width: 100%;
        height: 100%;
    }
    50% {
        width: 130%;
        height: 130%;
    }
    100% {
        width: 100%;
        height: 100%;
    }
}


.intro {
    position: relative;
    height: 100vh;
    background: linear-gradient(180deg, rgba(14, 18, 19, 0.85) 0%, rgba(14, 18, 19, 0.00) 100%);
}

.intro__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.intro__img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    background-repeat: no-repeat;
    transform-origin: top center;
    animation: grow 20s ease-in-out infinite;
}

@keyframes grow {
    0% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

@keyframes blick {
    0% {
        left: -80%;
    }
    100% {
        left: 160%;
    }
}

.intro .container {
    position: relative;
    align-items: center;
    display: flex;
    height: 100%;
}

.intro__wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}

.intro__title {
    display: block;
    font-size: 40px;
    font-weight: 700;
    line-height: 45px;
    color: var(--white);
    max-width: 686px;
    margin-bottom: 16px;
}

.intro__subtitle {
    display: block;
    font-family: Raleway, sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 35px;
    color: var(--white);
}

.arrow{
    position: relative;
    bottom: 20%;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    border: 2px solid #C9A97E;
    font-size: 30px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.arrow svg{
    color: #C9A97E;
    animation: scrollDown3 2s ease infinite;
}

@keyframes scrollDown3{
    0%{
        transform: translateY(-15px);
        opacity: 0;
    }
    45%{
        transform: translateY(0px);
        opacity: 1;
    }
    65%{
        transform: translateY(-5px);
        opacity: 1;
    }
    100%{
        transform: translateY(15px);
        opacity: 0;
    }
}




.quiz {
    position: relative;
    padding-top: 76px;
}

.quiz .container {
    display: flex;
    justify-content: center;
}

.quiz__frame {
    width: 80%;
    height: 100vh;
}

.title {
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
    width: max-content;
    max-width: 41vw;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 8px;
    margin-bottom: 48px;
    overflow-wrap: break-word;
    word-break: break-word;
    color: var(--gray);
}

.base-template .title {
    margin-bottom: 24px;
}

.subtitle {
    color: var(--gray);
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
}


.catalog {
    padding: 75px 0 150px 0;
}

.catalog .swiper {
    overflow-y: visible;
}

.img__wrapper {
    position: relative;
}

.mortgage {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    color: var(--gray);
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    background: var(--white);
    padding: 5px 10px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    margin: 5px 0 0 5px;
}

.card__img {
    object-fit: cover;
    width: 100%;
}

.card__wrapper {
    display: grid;
    position: relative;
    gap: 15px;
    font-family: Inter, sans-serif;
    padding: 20px 20px 30px;
    box-shadow: 0 4px 14px 0 var(--box-shadow);
}

.price {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--main-color);
    color: var(--gray);
}

.price::before {
    content: "";
    height: 25px;
    position: absolute;
    left: 0;
    width: 5px;
    background: var(--main-color);
}

.card__title {
    position: relative;
    font-size: 15px;
    font-weight: 700;
    line-height: 19px;
    height: 38px;
}

.news__title a,
.card__title a {
    color: var(--gray);
    transition: 300ms;
}

.project__title a:hover,
.news__title a:hover,
.card__title a:hover {
    color: var(--main-color);;
}

.card__title::before {
    content: "";
    position: absolute;
    left: 0;
    display: block;
    border-left: 2px solid var(--main-color);
}

.project__properties {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.property {
    color: var(--gray-60);
    font-size: 15px;
    font-weight: 700;
    line-height: 19px;
}

.property span {
    font-weight: 400;
}

.link__btn {
    display: flex;
    color: var(--white);
    background: var(--main-color);
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    padding: 10px 20px;
    width: max-content;
    position: relative;
    justify-content: space-between;
    overflow: hidden;
    align-items: center;
    border-radius: 50px;
    box-shadow: 0 4px 14px 0 var(--box-shadow);
    transition: 0.3s;
}

.link__btn:hover {
    color: var(--main-color);
    background: var(--white);
}

.link__btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 300%;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    background-color: rgba(255, 255, 255, 0.9);
    animation: blick 3s linear infinite;
    transform: rotate(45deg) translateY(-50%);
}

.link__btn:hover::after {
    opacity: 0;
}

.catalog .btn {
    margin: 50px auto 0;
}




.about-us {
    position: relative;
    height: 1330px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
}

.about-us__background {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    object-fit: cover;
}

.sticky__container {
    height: 100%;
}

.about-us__wrapper {
    position: sticky;
    top: 0;
    padding: 72px 0 36px;
    background: linear-gradient(180deg, rgba(14, 18, 19, 0.86) 0%, rgba(14, 18, 19, 0.66) 81.59%, rgba(14, 18, 19, 0.00) 100%);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.about-us .title {
    color: var(--white);
    max-width: 46vw;
}

.about-us__info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0 64px;
}

.about-us__info .btn {
    grid-area: 2 / 1 / 2 /1;
    margin-top: -48px;
}

.about-us__article--wrapper {
    max-width: max-content;
}

.about-us__article {
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    max-width: 460px;
}

.advantages__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.advantage__card {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.advantage__card:nth-child(5) {
    grid-area: 1 span / 2 span;
}

.advantage__text {
    line-height: 18px;
}

.advantage__card .number {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    max-width: 65px;
    width: 100%;
    height: 65px;
    font-family: Inter, sans-serif;
    font-size: 30px;
    color: var(--gray);
    background: #FFF6E9;
    border-radius: 50%;
}

.advantage__card .number::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50px;
    background: rgba(255, 246, 233, 0.3);
    transform: translateX(-50%) translateY(-50%);
    animation: back-circle2 2000ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: -1;
}

.partners {
    position: relative;
    padding: 36px 0 72px;
}

.partners__wrapper {
    display: grid;
    grid-template-columns: repeat(7, auto);
    gap: 48px;
    align-items: center;
}




.services {
    padding: 150px 0;
}

.services__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service__img-wrapper {
    overflow: hidden;
}

.service__img {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    object-fit: cover;
}

.zoom {
    transition: transform ease .5s;
}

.zoom:hover {
    transform: scale(1.1);
}

.services__card .card__footer {
    position: relative;
    display: grid;
    gap: 15px;
    padding: 20px 20px 30px;
    box-shadow: 0 4px 14px 0 var(--box-shadow);
}

.services__card .subtitle {
    height: 42px;
}

.card__footer .subtitle::before {
    content: "";
    height: 25px;
    position: absolute;
    left: 0;
    width: 5px;
    background: var(--main-color);
}




.learning {
    color: var(--white);
    position: relative;
    background: linear-gradient(88deg, rgba(14, 18, 19, 0.85) 18.42%, rgba(14, 18, 19, 0.00) 100%);
}

.learning__background {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: 100%;
    object-fit: cover;
}

.learning .container {
    position: relative;
    align-items: center;
    display: flex;
}

.learning__wrapper {
    display: grid;
    grid-template-columns: max(600px);
    gap: 50px;
    padding: 72px 0;
    z-index: 2;
}
.flex-container {
    display: flex;
    flex-direction: column;
}

.left-element {
    flex: 1;
}

.right-element {
    flex: 1;
    order: 2; /* Элемент 3 будет находиться внизу */
}


.learning__wrapper .title {
    margin-bottom: 0;
    color: var(--white);
    max-width: 36vw;
}

.advantages__title {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 20px;
}

.advantages__list {
    display: grid;
    gap: 10px;
    max-width: 564px;
}

.advantages__item {
    color: var(--white);
    font-size: 20px;
    line-height: 24px;
    font-weight: 400;
    padding: 10px 42px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.learning__btns {
    display: flex;
    height: max-content;
    gap: 42px;
}

.learning__btns .btn {
    width: 100%;
    max-width: 300px;
}


.learning__btns .btn--secondary {
    color: var(--gray);
}

.learning__img {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
}




.projects {
    padding: 150px 0;
}

.project__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project__card {
    position: relative;
    overflow: hidden;
}

.project__card img {
    width: 100%;
}

.project__card .card__footer {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.50);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: Inter, sans-serif;
    width: 100%;
    color: var(--white);
    font-weight: 700;
    padding: 20px 0;
}

.project__attributes {
    display: none;
    gap: 40px;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 400;
    line-height: 28px;
}

.project__attributes .link__btn {
    margin-left: 20px;
}

.project__title {
    transition: 300ms;
    text-align: center;
}

.project__title a {
    color: var(--white);
    text-align: center;
}

.project__cards .project__img {
    width: 100%;
    max-width: 100%;
}

.projects .btn {
    margin: 50px auto 0 auto;
}




.team {
    position: relative;
    background: linear-gradient(180deg, rgba(14, 18, 19, 0.72) 0%, rgba(31, 36, 37, 0.00) 100%);
}

.team__background {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: 100%;
    background-repeat: no-repeat;
    object-fit: cover;
}

.team__wrapper {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.team .container {
    height: 100%;
    padding-top: 72px;
    padding-bottom: 72px;
}

.team .title {
    color: var(--white);
    max-width: 54vw;
}

.team__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(26, 25, 25, 1);
}

.img__wrapper {
    position: relative;
}

.team__name {
    position: absolute;
    bottom: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
    width: 100%;
    color: var(--white);
    padding: 0 0 20px 20px;
    background: linear-gradient(0deg, #333 0%, rgba(51, 51, 51, 0.00) 100%);
}

.team__card .subtitle {
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 21px;
    text-align: center;
    padding: 15px 20px;
    background-color: var(--white);
}

.team .btn {
    margin: 56px auto 0 auto;
}




.reviews {
    padding: 150px 0;
}

.reviews .swiper {
    padding-bottom: 16px;
}

.reviews__card {
    position: relative;
    text-align: left;
    font-family: Inter, sans-serif;
    max-width: 400px;
}

.reviews__card .img__wrapper {
    position: relative;
}

.reviews__card .logo-img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 64px;
    margin: 20px 0 0 20px;
}

.reviews__card .client-name {
    position: absolute;
    bottom: 0;
    color: var(--white);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 25px;
    max-width: 164px;
    margin: 0 0 20px 20px;
}

.reviews__card .card__wrapper {
    text-align: left;
    color: var(--gray);
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    gap: 12px;
    background: var(--white);
    box-shadow: 0 4px 14px 0 var(--box-shadow);
}

.reviews__card .subtitle::before {
    content: "";
    height: 25px;
    position: absolute;
    left: 0;
    width: 5px;
    background: var(--main-color);
}

.reviews__text {
    height: 176px;
    overflow: hidden;
}

.rating__text {
    margin: 8px 0 5px 0;
    font-weight: 500;
}

.rating__items {
    display: flex;
    gap: 4px;
}

.reviews__card .rating svg {
    width: 19px;
    fill: #FAC917;
}



.banner {
    color: var(--white);
    margin: 72px 0;
    position: relative;
    background: linear-gradient(89.79deg, rgba(14, 18, 19, 0.85) 18.52%, rgba(14, 18, 19, 0) 99.82%);
}

.base-template .banner {
    margin: 128px 0 72px;
}

.base-template .banner__img {
    width: 42%;
}

.banner__bg {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.banner__wrapper {
    position: relative;
    padding: 80px 0;
    z-index: 2;
}

.banner .title {
    max-width: 748px;
    border: 0;
    text-align: left;
    color: var(--white);
}

.banner .title span {
    text-transform: uppercase;
}

.banner__form {
    font-family: Inter, sans-serif;
    display: grid;
    gap: 50px;
    max-width: 625px;
}

.form__items {
    display: grid;
    gap: 20px;
}

.form__items input {
    color: var(--gray);
}

.form__input {
    width: 100%;
    padding: 25px 30px;
    border-radius: 5px;
    border: 1px solid #CCC;
    background: #FAFAFA;
    font-family: Inter, sans-serif;
}

.form__input:focus {
    border: 1px solid var(--gray);
}

.form__input.rferr {
    border: 1px solid #d9534f;
}

.form__checkbox {
    display: flex;
    align-items: center;
}

.form__checkbox .custom-checkbox {
    margin-right: 10px;
}


.form__checkbox input {
    -webkit-appearance: none;
    position: absolute;
}

.custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    border: 1px solid var(--main-color);
    border-radius: 2px;
    transition: 0.3s;
    cursor: pointer;
}

.custom-checkbox:hover {
    background: #C9A97E99;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    display: none;
}

.form__checkbox input:checked ~ .custom-checkbox .checkmark {
    display: block;
}

.form__checkbox input:checked ~ .custom-checkbox {
    background: var(--main-color);
}

.checkbox__text {
    font-size: 12px;
    line-height: 16px;
}

.checkbox__text a {
    color: var(--white);
    text-decoration-line: underline;
    transition: color ease-in-out 0.3s;
}

.checkbox__text a:hover {
    color: var(--main-color);
}


.form__btns {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.form__btns .btn {
    max-width: 300px;
    width: 100%;
    margin-left: 8px;
}

.social__btns {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social__text {
    color: #FFF;
    font-size: 20px;
    line-height: 24px;
    font-weight: 400;
    width: 148px;
}

.social__icons {
    display: flex;
    gap: 10px;
}

.banner__img {
    position: absolute;
    right: -6%;
    bottom: 0;
    z-index: 1;
    width: 46%;
}





.news {
    padding: 150px 0;
}

.news__img {
    object-fit: cover;
    max-width: 100%;
    position: relative;
}


.news-date {
    display: block;
    color: #767676;
    font-size: 12px;
    line-height: 16px;
}

.news__article {
    display: grid;
    gap: 10px;
}

.base-template .news__card .card__wrapper {
    height: 245px;
}

.news__title {
    color: var(--gray);
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    border-bottom: 1px solid #9A9A9A;
    padding-bottom: 10px;
}

.news .news__card:first-child .news__article p {
    max-height: 126px;
}

.news__article p {
    color: var(--gray);
    font-size: 13px;
    line-height: 17px;
    overflow: hidden; /* Обрезаем все, что не помещается в область */
    text-overflow: ellipsis;
    max-height: 54px;
}

.news__card .card__wrapper .link__btn {
   margin: auto 0 0;
}

.news .btn {
    margin: 50px auto 0;
}

.aside-news .element {
    display: grid;
    grid-template-columns: 120px 1fr;
}

.aside-news .element-content {
    padding: 12px 16px;
    box-shadow: 0 4px 14px 0 var(--box-shadow);
}

.aside-news .news__title {
    margin-top: 12px;
    border: 0;
}


.contacts {
    position: relative;
}

.contacts__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 42px 100px;
    background: var(--main-color);
    color: var(--white);
    z-index: 2;
}


.contact__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: Inter, sans-serif;
    font-size: 15px;
    line-height: 18px;
}

.contact__item .call .callback__btn {
    color: var(--white);
    margin-bottom: 4px;
    font-weight: 700;
    text-decoration: underline;
}

.contact__item .call .callback__btn:hover {
    color: #F7F7F7;
    text-decoration: none;
}

.contact__item .call .phone {
    color: var(--white);
    font-weight: 400;
}

.address {
    font-family: Inter, sans-serif;
    font-size: 15px;
    line-height: 18px;
    font-style: normal;
}


.contacts .map__wrapper {
    height: 420px;
    position: relative;
    z-index: 1;
    margin-top: -74px;
    background: #D9D9D9;
}

.contacts-template .contacts__wrapper {
    background: var(--white);
    flex-direction: column;
    align-items: normal;
    color: var(--gray);
    padding: 0;
    gap: 24px;
}

.contacts-template .contacts__wrapper .phone {
    color: var(--gray);
}

.contacts-template .contact__item {
    justify-content: start;
}

.footer {
    position: relative;
    color: var(--white);
    background: linear-gradient(0deg, rgba(14, 18, 19, 0.86), rgba(14, 18, 19, 0.86));
}

.footer__bg {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.footer__wrapper {
    position: relative;
    -webkit-backdrop-filter: blur(2.5px);
    backdrop-filter: blur(2.5px);
}

.top__footer {
    display: grid;
    padding-top: 72px;
    grid-template-columns: max(358px) auto;
    justify-content: space-between;
    gap: 32px;
}

.footer__info .company > .logo {
    max-width: 148px;
    width: 100%;
    margin-bottom: 12px;
}

.footer__info .company > span {
    display: block;
    font-size: 15px;
    line-height: 18px;
    max-width: 358px;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 48px;
}

.nav__title {
    position: relative;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}

.nav__title a{
    color: var(--white);
}

.thanks .header {
    background: rgba(0, 0, 0, 0.50);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding-bottom: 24px;
}

.thanks-page {
    position: relative;
    height: 100vh;
    color: rgba(51, 51, 51, 1);
}

.thanks-bg {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: 100%;
    background-repeat: no-repeat;
    object-fit: cover;
    object-position: bottom center;
}

.thanks-page__wrapper {
    position: relative;
    margin: 0 auto;
    padding-top: 180px;
    max-width: 518px;
    text-align: center;
    font-family: Raleway, sans-serif;
    color: rgba(51, 51, 51, 1);
}

.thanks-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 49px;
}

.thanks-subtitle {
    font-size: 30px;
    font-weight: 400;
    line-height: 30px;
    margin: 20px 0;
}

.thanks-desc {
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
}

.thanks-page__wrapper .link__btn {
    margin: 50px auto 0;
}
.footer__nav .nav__items {
    display: flex;
    flex-direction:  column;
    max-width: max-content;
    gap: 4px;
    margin-top: 12px;
}

.footer__contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px 0;
}

.footer__contact .contact__item {
    justify-content: normal;
}

.footer__contact .phone {
    color: var(--white);
}

.socials__btns {
    display: flex;
    gap: 10px;
}

.copyright__info {
    display: flex;
    justify-content: space-between;
    padding-bottom: 24px;
}

.copyright__info a {
    color: var(--white);
    transition: color ease 0.3s;
}

.copyright__info a:hover {
    color: var(--main-color);
}

.copyright > a {
    text-decoration: underline;
    text-underline-offset: 2px;
}


@media screen and (max-width: 1368px) {
    .container {
        padding: 0 48px;
    }

    .news {
        padding: 72px 0;
    }
}


@media screen and (min-width: 1171px) {
    .projects .project__card:first-child .card__footer {
        padding: 30px 42px;
    }

    .projects .project__card:first-child .project__title {
        font-size: 32px;
        line-height: 1;
    }

    .projects .project__card:first-child {
        grid-area: 1 / 1 / 2 / 4;
    }

    .projects .project__card:first-child .project__attributes {
        display: flex;
    }

    .projects .project__card:first-child .divider {
        background: var(--main-color);
        height: 1px;
        margin: 20px 0;
        box-sizing: border-box;
    }

    .news .news__cards {
        font-family: Inter, sans-serif;
        width: 100%;
        height: 678px;
        display: flex;
        flex-flow: column wrap;
        justify-content: flex-end;
        gap: 20px;
    }

    .news .news__card:first-child {
        width: calc(50% - 10px);
        height: calc(100% - 0px);
    }

    .news .news__card:nth-child(2) {
        display: flex;
        flex-direction: row;
        width: calc(50% - 10px);
        height: calc(33.3% - 10px);
    }

    .news .news__card:nth-child(3),
    .news .news__card:nth-child(4) {
        width: calc(25% - 14px);
        height: calc(66.6% - 10px);
    }

    .news .news__card:nth-child(4) {
        margin-left: calc(-25% + -5px);
    }

    .news .news__img {
        width: 100%;
        height: 100%;
        max-height: 222px;
        object-fit: cover;
    }

    .news .news__card:first-child .news__img {
        width: 100%;
        max-height: 402px;
    }

    .news .news__card:nth-child(2) .news__img {
        max-width: 295px;
    }

    .news .news__card .card__wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        height: 100%;
        max-height: 245px;
        margin: auto 0 0;
        padding: 15px 20px 20px;
    }

    .news .news__card:first-child .card__wrapper {
        max-height: 275px;
    }
}

@media screen and (max-width: 1170px) {
    .title {
        font-size: 36px;
        line-height: 40px;
        max-width: 56vw;
    }

    .subtitle {
        font-size: 18px;
        font-weight: 700;
        line-height: 21px;
    }

    .quiz__frame {
        width: 100%;
    }

    .catalog__cards,
    .team__cards {
        display: flex;
        gap: 0;
    }

    .about-us .title {
        max-width: 50vw;
    }

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

    .services__cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .project__cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .learning__wrapper .title,
    .team .title {
        color: var(--white);
        max-width: 67vw;
    }

    .base-template .banner {
        margin: 72px 0 72px;
    }


    .banner__img {
        display: none;
    }

    .news .news__cards {
        font-family: Inter, sans-serif;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contacts__wrapper {
        padding: 40px;
        gap: 40px;
    }

    .top__footer {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 36px;
    }
}

@media screen and (max-width: 991px) {
    .container {
        padding: 0 32px;
    }

    .header__wrapper {
        align-items: center;
    }

    .base-template .header,
    .header.fixed {
        padding: 24px 0;
    }

    .header .nav__menu {
        display: none;
    }

    .header__items {
        display: flex;
        min-width: 300px;
        align-items: center;
        justify-content: end;
        gap: 32px;
    }

    .mobile-menu {
        display: block;
    }

    .header.active .nav__menu {
        display: flex;
    }

    .header.active .nav__menu .nav__items {
        flex-direction: column;
        position: absolute;
        margin: 120px auto 0;
    }

    .quiz {
        padding-top: 0;
    }

    .quiz__frame {
        height: 1440px;
    }

    .services,
    .projects,
    .reviews {
        padding: 72px 0;
    }

    .learning__img,
    .banner__img {
        display: none;
    }

    .footer__nav .nav__title {
        font-size: 15px;
        line-height: 18px;
    }
}

@media screen and (max-width: 860px) {
    .catalog {
        padding: 60px 0;
    }

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

    .advantage__card {
        padding: 12px 16px;
    }

    .advantage__card .number {
        max-width: 42px;
        height: 42px;
        font-size: 21px;
    }

    .services {
        padding: 60px 0;
    }

    .learning__wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        margin: 0 auto;
    }

    .contacts__wrapper {
        padding: 40px 24px;
        gap: 20px;
    }

    .contact__icon {
        max-width: 32px;
    }
}

@media screen and (max-width: 767px) {

    .title {
        margin: 0 auto 48px;
        text-align: center;
    }

    .about-us__wrapper {
        position: relative;
    }

    .about-us__info {
        gap: 32px;
        grid-template-columns: 1fr;
    }

    .about-us__info .btn {
        grid-area: 3 / 1 / 3 /1;
        margin: 0 auto;
    }

    .advantages__cards {
        display: grid;
    }

    .services__cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages__item {
        padding: 10px 20px;
        font-size: 16px;
        line-height: 20px;
    }

    .reviews {
        padding-bottom: 48px;
    }

    .banner .title {
        max-width: 400px;
        border: 0;
        text-align: left;
        margin: 0 0 48px;
    }

    .contacts__wrapper .callback__btn,
    .contacts__wrapper .phone,
    .contacts__wrapper .address,
    .contacts__wrapper .schedule {
        font-size: 12px;
        line-height: 15px;
    }

    .social__text {
        font-size: 16px;
        line-height: 19px;
        width: 100%;
    }

    .footer__nav {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer__nav .nav__items {
        display: none;
    }

    .footer__nav .nav__menu.active .nav__item {
        display: block;
    }

    .footer__nav .nav__menu .nav__title::before {
        transform: rotate(90deg);
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        bottom: 0;
        height: 2px;
        width: 14px;
        right: 19px;
        margin: 0;
        background: #fff;
        cursor: pointer;
    }

    .footer__nav .nav__menu.active .nav__title::before {
        transform: rotate(0deg);
        margin: 0;
    }

    .footer__nav .nav__menu .nav__title::after {
        transform: rotate(0deg);
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        top: 50%;
        height: 2px;
        width: 14px;
        right: 19px;
        margin: 0;
        background: #fff;
        cursor: pointer;
    }

    .footer__nav .nav__menu .nav__title {
        padding: 10px 0;
    }

    .footer__nav .nav__menu:not(:first-child) .nav__title {
        border-top: 1px solid rgba(154, 154, 154, 1);
    }



    .copyright__info {
        flex-direction: column;
        gap: 10px;
    }

    .copyright__info > * {
        display: flex;
        justify-content: center;
    }
}

@media (min-width: 640px) and (max-width: 991px) {
    .header.active .nav__menu .nav__items {
        left: 42%;
    }
}

@media screen and (max-width: 639px) {
    .header__items {
        min-width: 224px;
    }

    .header__items .callback__btn {
        display: none;
    }

    .header.active .nav__menu {
        display: flex;
    }

    .about-us__info .btn {
        margin-top: 0;
    }

    .advantages__cards {
        display: flex;
    }

    .form__btns {
        flex-direction: column;
        gap: 30px;
    }

    .social__btns {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .social__icons {
        display: flex;
        gap: 10px;
    }

    .news .news__cards {
        grid-template-columns:1fr;
    }
}

@media screen and (max-width: 575px) {
    .container {
        padding: 0 24px;
    }

    .base-template .header,
    .header.fixed {
        padding: 12px 0;
    }

    .logo-img {
        width: 76%;
    }

    .intro__title {
        font-size: 28px;
        line-height: 32px;
        margin-bottom: 20px;
    }

    .intro__subtitle {
        font-size: 18px;
        line-height: 21px;
    }

    .title {
        font-size: 24px;
        line-height: 26px;
        max-width: 78vw;
    }

    .about-us {
        height: 100%;
    }

    .about-us__info {
        gap: 32px;
    }

    .advantage__card {
        padding: 8px 16px;
    }

    .advantage__card .number {
        font-size: 16px;
    }

   .partners {
       display: none;
   }

   .learning__wrapper {
       padding: 36px 0;
       gap: 32px;
   }

    .advantages__item {
        padding: 10px 20px;
        font-size: 12px;
        line-height: 16px;
    }

    .learning__btns {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .learning__btns .btn {
        margin: 0 auto;
    }

    .project__cards {
        grid-template-columns: 1fr;
    }

    .reviews {

    }

    .news__cards {
        grid-template-columns: 1fr;
    }

    .contacts__wrapper {
        text-align: left;
        flex-direction: column;
        padding: 30px 45px;
    }
}

@media screen and (max-width: 536px) {
    .services__cards {
        grid-template-columns: 1fr;
    }
    
        .thanks-title {
        font-size: 25px;
        font-weight: 700;
        line-height: 28px;
    }

    .thanks-subtitle {
        font-size: 15px;
        font-weight: 400;
        line-height: 18px;
        margin: 20px 0;
    }

    .thanks-desc {
        font-size: 12px;
        font-weight: 400;
        line-height: 14px;
    }
}


@media screen and (max-width: 390px) {

    .header .container {
        padding: 0 16px;
    }

    .header__items .phone {
        font-size: 12px;
    }

    .intro__title {
        font-size: 24px;
        line-height: 28px;
    }

    .intro__subtitle {
        font-size: 16px;
        line-height: 20px;
    }

   .intro__wrapper .btn {
       width: auto;
   }

}

.content ul li {
    list-style: circle;
}


