.items-grid {
    display: grid;
    gap: 25px;
}

.items-grid_4 {
    grid-template-columns: repeat(4, 1fr);
}

.simple-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
    padding: 40px;
    border-radius: 4px;
    background: #fff;
    color: var(--darkColor);
    text-decoration: none;
    transition: .3s ease;
}

.simple-card__title {
    font-weight: 900;
    font-size: 20px;
    max-width: 259px;
}

.simple-card__icon {
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    min-height: 22px;
    transition: .3s ease;
}

.simple-card__img {
    position: absolute;
    right: 0;
    top: 0;
    width: 22px;
    height: 100%;
}

.simple-card__img_normal {
    opacity: 1;
}

.simple-card__img_hover {
    opacity: 0;
}

.simple-card:hover {
    box-shadow: 0 50px 150px 0 rgba(11, 41, 95, 0.2);
    background: var(--activeColor);
    color: var(--lightColor);
    text-decoration: none;
}

.simple-card:hover .simple-card__img_hover {
    opacity: 1;
}

.simple-card:hover .simple-card__img_normal {
    opacity: 0;
}

.banner {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    height: 405px;
}

.banner_simple{
    background-color: var(--darkBgColor);
    background-repeat: no-repeat;
    background-size: 60% 80%;
    background-position: 100% 100%;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(270deg, rgba(11, 41, 95, 0) 0%, rgba(11, 41, 95, 0.9) 100%);
}

.banner .container {
    height: 100%;
}

.banner__content {
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 42px;
    position: relative;
    z-index: 2;
}

.page-content_simple{
    padding: 70px 0;
}

.page-content_light {
    color: #fff;
}

.page-content__top {
    background-color: var(--darkBgColor);
    padding-bottom: 90px;
}

.page-content__top_nopb {
    padding-bottom: 0;
}

.page-head__content {
    display: flex;
    gap: 25px;
    justify-content: space-between;
}

.page-head__title {
    min-width: 342px;
    font-weight: 900;
    font-size: 32px;
    min-height: 38px;
    line-height: initial;
}

.page-head__description {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
    flex-grow: 1;
}

.page-content__bottom {
    position: relative;
    margin-top: -20px;
    padding-bottom: 70px;
}

.page-content__bottom::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 20px;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0b295f 0%, rgba(11, 41, 95, 0) 100%);
}

.page-services {
    position: relative;
    z-index: 2;
}

/*reviews*/
.reviews{
    padding: 70px 0;
    background: linear-gradient(180deg, var(--darkColor) 0%, rgba(11, 41, 95, 0) 100%);
}

.reviews-slider {
    padding-top: 30px;
    height: fit-content;
}

.reviews__title{
    display: inline-block;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    margin-bottom: 60px;
}

.reviews__title::after{
    content: '';
    position: absolute;
    height: 2px;
    background: var(--activeColor);
    bottom: -20px;
    left: 0;
    width: 100%;
}

.reviews__content{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.reviews__buttons{
    display: flex;
    column-gap: 13px;
}

.swiper-button-prev{
    transform: rotate(180deg);
}

.reviews__link-btn{
    display: inline-block;
    margin-bottom: 60px;
}

.review-card {
    max-width: 708px;
    height: 540px;
    padding: 40px;
    border-radius: 4px;
    background: #fff;
}

.review-card.swiper-slide-active::after {
    content: '';
    position: absolute;
    left: 40px;
    top: -20px;
    width: 71px;
    height: 53px;
    background-image: url('../assets/images/reviews/quote.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

.review-card__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card__logo {
    margin-bottom: 30px;
}

.review-card__text{
    font-weight: 500;
    font-size: 14px;
    line-height: 143%;
    color: var(--darkColor);
    flex-grow: 1;

    & p:not(:last-child) {
        padding-bottom: 20px;
    }
}
.review-card__footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.review-card__name{
    font-weight: 900;
    font-size: 14px;
}
.review-card__job-title{
    font-weight: 500;
    font-size: 14px;
}


@media(max-width: 1400px) {
    .items-grid_4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:999px) {
    .page-head__content {
        flex-direction: column;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:600px) {
    .page-head__content {
        flex-direction: column;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .simple-card {
        padding: 16px;
        height: auto;
        flex-direction: row;
    }

    .simple-card__title {
        font-size: 14px;
        max-width: none;
    }

    .simple-card__icon {
        width: 22px;
    }

    .banner {
        height: 190px;
    }

    .banner__content {
        padding-bottom: 0;
    }

    .page-head {
        padding-top: 20px;
    }

    .page-head__title {
        font-size: 16px;
        min-height: auto;
    }

    .page-head__description {
        font-size: 11px;
    }

    .page-head__content {
        gap: 20px;
    }

    .page-content__top {
        padding-bottom: 120px;
    }

    .page-content__bottom {
        margin-top: -100px;
        padding-bottom: 20px;
    }

    .reviews {
        padding: 0;
    }

    .reviews__link-btn {
        margin: 0;
    }

    .reviews__content {
        padding-bottom: 17px;
    }

    .reviews-slider {
        padding: 20px var(--containerPadding) 0;
    }

    .review-card.swiper-slide-active::after {
        width: 38px;
        height: 45px;
        left: 18px;
    }

    .reviews .scale-slider-button {
        margin: 0;
    }

    .reviews__buttons {
        gap: 8px;
    }

    .review-card {
        padding: 20px;
        height: 448px;
    }

    .review-card__logo {
        height: 30px;
        margin-bottom: 14px;
    }

    .review-card__logo img {
        height: 100%;
    }

    .review-card__text {
        font-size: 11px;
        line-height: normal;
    }

    .review-card__text p:last-child {
        width: 250px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .review-card__name, .review-card__job-title {
        font-size: 11px;
    }

    .review-card__footer {
        gap: 20px;
    }

    .review-card__link {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/*subservices*/
.page-subservices{
    padding-top: 20px;
}
.page-content_white .page-content__top{
    background: var(--lightBgColor);
}
.page-content_white .page-content__bottom:after{
    content: none;
}

.page-content__bottom .page-article p {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 50px;

    &:has(+ ol),
    &:has(+ ul) {
        margin-bottom: 20px;
    }

    & + ol,
    & + ul {
        margin-bottom: 50px;
        padding-bottom: 0;
    }
}

.page-content__bottom .page-article ul:not(.pagination__list) {
	padding: 0 0 40px 0;
    margin: 0;
    list-style-type: none;
    font-size: 16px;
    font-weight: 500;

	& li {
		position: relative;
		margin-bottom: 20px;
		padding-left: 36px;
		list-style: none;

		&::before {
			content: '—';
			position: absolute;
			left: 0;
			top: 0;
			font-weight: 500;
			font-size: 16px;
			line-height: 1;
		}

        & > ul {
            padding-top: 20px;
            margin: 0;
        }
	}
}

.page-content__bottom .page-article ol {
	padding: 0;
    list-style-type: none;
    font-size: 16px;
    font-weight: 500;
    counter-reset: item;

	& li {
		position: relative;
		margin-bottom: 20px;
		padding-left: 36px;
		counter-increment: item;

        /* Для элементов с 1 по 9 */
        &:nth-child(-1n+9)::before {
            content: "0" counter(item);
        }

        /* Для элементов с 10 и далее */
        &:not(:nth-child(-1n+9))::before {
            content: counter(item) !important;
        }

		&::before {
			position: absolute;
			left: 0;
			top: 2px;
			font-weight: 500;
			font-size: 14px;
			text-align: right;
			color: rgba(11, 41, 95, 0.5);
		}
	}

    & ul {
        padding-top: 20px;
        padding-bottom: 0;
        margin-top: 0;

        & li {
            position: relative;
            margin-bottom: 20px;
            padding-left: 36px;
            list-style: none;

            &::before {
                content: '—';
                position: absolute;
                left: 0;
                top: 0;
                font-weight: 500;
                font-size: 16px;
                line-height: 1;
            }
        }
    }
}

.page-content__bottom .page-article ul, 
.page-content__bottom .page-article ol  {
    margin: 40px 0;
    list-style-type: none;
}

.page-content__bottom .page-article ul:last-child {
    margin-bottom: 0;
}

/* .page-content__bottom li {
    position: relative;
    margin-bottom: 20px;
    padding-left: 36px;
} */

/* .page-content__bottom ul:not(.pagination__list) li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
} */

.page-content__bottom li:last-child {
    margin-bottom: 0;
}

/* .page-content__bottom ol {
    counter-reset: item;
} */

/* .page-content__bottom ol li {
    counter-increment: item;
} */

/* .page-content__bottom ol li:nth-child(-1n+9)::before {
    content: "0" counter(item);
} */

/* Для элементов с 10 и далее */
/* .page-content__bottom ol li:nth-child(1n+10)::before {
    content: counter(item);
}

.page-content__bottom ol li::before {
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: 500;
    font-size: 14px;
    text-align: right;
    color: rgba(11, 41, 95, 0.5);
} */

@media(max-width: 600px) {
    .page-content__bottom ul, .page-content__bottom ol {
        margin: 20px 0;
    }

    .page-content__bottom li {
        font-size: 11px;
        margin-bottom: 10px;
        padding-left: 21px;
    }

    .page-content__bottom ul li::before {
        font-size: 11px;
    }

    .page-content__bottom ol li::before {
        font-size: 11px;
        top: 0;
    }
}

/*why-me*/
.why-me-wrapper{
    padding: 70px 0 80px 0;
}
.why-me-wrapper__info{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.why-me__item{
    border: 1px solid rgba(19, 157, 214, 0.2);
    padding: 70px;
    max-width: 586px;
    height: auto;
}
.why-me__item_small{
    width: 385px;
}
.why-me__item_medium{
    width: 545px;
}
.why-me__title{
    font-weight: 900;
    font-size: 32px;
    line-height: normal;
    margin-bottom: 40px;
}
.why-me__desc{
    margin-bottom: 40px;
}
.why-me-wrapper__buttons{
    display: flex;
    column-gap: 13px;
}
.why-me-wrapper__buttons svg{
    color: var(--darkBgColor);
}
@media(max-width: 999px) {
    .why-me .swiper-wrapper{
        padding-left: var(--containerPadding);
    }
}
@media(max-width: 600px) {
    .why-me__item{
        padding: 20px;
        width: 220px;
    }
    .why-me__item_small{
        width: 149px;
    }
    .why-me__item_medium{
        width: 200px;
    }
    .why-me__title{
        font-size: 14px;
    }
    .why-me-wrapper{
        padding-bottom: 20px;
    }
}

/*expert*/
.expert{
    position: relative;
    z-index: 100;
    padding: 42px 180px 35px 40px;
    border-radius: 4px;
    border: 1px solid #139DD6;
    height: 100%;
    overflow: hidden;
}
.expert__photo{
    position: absolute;
    right: 0px;
    bottom: -1px;
}
.expert__contacts{
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 36px;
}
.expert__contacts a{
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--activeColor);
    text-decoration: none;
}
.expert__name{
    margin-bottom: 18px;
    font-weight: 900;
    font-size: 20px;
    line-height: normal;
}
.expert__description{
    margin-bottom: 20px;
}

.subservice__contacts{
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 36px;
    max-width: 230px;
}

.subservice__icon {
    display: none;
}

.subservice__contacts a{
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--activeColor);
    text-decoration: none;
}


@media(max-width: 1540px) {
    .expert__contacts a{
        font-weight: 800;
    }
    .expert__contacts{
        margin-bottom: 27px;
    }
    .expert__description{
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media(max-width: 1365px) {
    .expert{
        padding: 30px 130px 25px 29px;
    }
    .expert__name{
        font-size: 18px;
    }
    .expert__photo{
        max-height: 100%;
        right: -80px;
    }
    .expert__description{
        -webkit-line-clamp: 4;
        padding-right: 30px;
    }
    .expert__contacts{
        margin-bottom: 18px;
        gap: 10px;
    }
}
@media(max-width: 600px) {
    .expert__name{
        font-size: 14px;
    }

    .expert__description{
        font-size: 11px;
    }

    .expert {
        padding: 20px 110px 20px 20px;
    }

    .expert__photo {
        height: 249px;
        right: -33px;
    }

    .expert__photo img {
        height: 100%;
    }

    .subservice__contacts svg {
        display: block;
    }

    .subservice__text {
        display: none;
    }

    .subservice__icon {
        display: block;
    }

    .subservice__contacts {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    .subservice__contacts a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .page-content_white .page-content__bottom {
        margin-top: 0;
    }
}



/*pagination*/
.show-more {
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    color: var(--activeColor);
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--activeColor);
    margin: 45px auto 0;
}
.show-more__icon {
    display: flex;
    align-items: center;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    margin-top: 0px;
}
.pagination-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.pagination__link {
    color: inherit;
    text-decoration: none;
}
.pagination__page {
    font-weight: 500;
    font-size: 14px;
    color: var(--activeColor);
}
.pagination__page.current {
    color: var(--darkColor);
}
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}
.pagination-button {
    color: var(--darkColor);
}
.pagination-button_prev {
    transform: rotate(180deg);
}
.disabled {
    opacity: .2;
}
@media(max-width: 600px) {
    .pagination {
        gap: 10px;
    }
    .show-more {
        margin: 0;
        font-size: 12px;
    }
    .pagination-list {
        gap: 10px;
    }
    .pagination__page {
        font-size: 12px;
    }
    .pagination-controls {
        gap: 8px;
    }
}

.card {
    transition: .3s;
}

.card:hover{
    border: 1px solid var(--activeColor);
}

/*page licences*/
.licenses{
    display: grid;
    grid-gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}
.license{
    height: 464px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(19, 157, 214, 0.2);
    border-radius: 4px;
    transition: .3s;
}
.license__title{
    font-weight: 900;
    font-size: 19px;
    margin-bottom: 40px;
}
.licence__description{
    font-weight: 500;
    font-size: 13px;
    line-height: 143%;
}
@media(max-width: 1200px) {
    .licenses{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 900px) {
    .licenses{
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 10px;
    }
    .license{
        padding: 20px;
        height: auto;
        gap: 20px;
    }
    .license__title{
        font-weight: 900;
        font-size: 14px;
        margin-bottom: 20px;
    }
}



/*ABOUT*/
.page-content-about .page-content__bottom{
    padding-bottom: 0;
    margin-top: 0;
}

.page-content-about .personal-header__buttons {
    margin-top: 30px;
}

.page-head-about .page-head__content_border {
    padding-top: 0;
    margin-bottom: 90px;
}

.column-item {
    padding: 0 40px;
}

.column-item__title {
    font-weight: 900;
    font-size: 32px;
    line-height: initial;
    color: var(--darkColor);
}

.column-item__desk {
    margin: 40px 0;
    font-weight: 500;
    font-size: 16px;
    color: var(--darkColor);
}

.column-item__desk:last-child {
    margin-bottom: 0;
}

.column-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 22px;
}

.column-block__col {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.column-item_image {
    padding: 0;
    position: relative;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.column-item__image {
    max-width: 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 4px;
    object-fit: cover;
}

.column-item_image::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    border-radius: 4px;
    background: linear-gradient(270deg, rgba(11, 41, 95, 0) 0%, rgba(11, 41, 95, 0.9) 100%);
}

.column-item__info {
    position: absolute;
    z-index: 2;
    left: 45px;
    bottom: 50px;
}

.column-item__title_light {
    color: var(--lightColor);
}

.column-item__count {
    margin-top: 52px;
    color: var(--lightColor);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    font-size: 16px;
}

.stack-icon {
    height: 16px;
}

.column-item__link {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
}

@media(max-width: 1199px) {
    .column-block {
        grid-template-columns: 1fr;
    }

    .column-item_image {
        height: 500px;
    }
}

@media(max-width: 600px) {
    .column-item {
        padding: 0;
    }

    .column-item__title {
        font-size: 14px;
    }

    .column-item__desk {
        margin: 20px 0;
        font-size: 11px;
    }

    .column-block__col {
        gap: 42px;
    }

    .column-item__info {
        left: 24px;
        bottom: 25px;
    }

    .column-item__count {
        margin-top: 20px;
        font-size: 11px;
    }

    .column-item_image {
        height: auto;
        aspect-ratio: 259/289;
    }

    .column-block {
        gap: 30px;
    }

    .column-block .link-btn {
        font-size: 11px;
    }

    .page-head-about .page-head__content_border {
        padding-bottom: 30px;
        margin-bottom: 0;
    }
}

/*СТАТЬЯ*/



/* map */
.map-section {
    padding-bottom: 70px;
}

.map-item {
    width: 100%;
    max-width: 100%;
    height: 492px;
    position: relative;
}

.map-item > img, .map-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*Позиционируется согласно апи выбранной карты*/
.map-point {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
}

.map-point img {
    width: 100%;
    height: 100%;
}

@media(max-width: 600px) {
    .map-section {
        padding-bottom: 0;
    }

    .map-item {
        height: 304px;
    }
}

table {
    background: var(--lightColor);
    border-collapse: collapse;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 40px;

    &:last-child {
        margin-bottom: 0;
    }

    & tr:first-child td {
        padding-top: 40px;
    }

    & td {
        padding-bottom: 30px;
        vertical-align: baseline;
    }

    & td:first-child {
        font-weight: 500;
        font-size: 14px;
        line-height: 1.43;
        padding-left: 40px;
    }

    & td:last-child {
        font-weight: 500;
        font-size: 16px;
        padding-right: 40px;
    }

    & th {
        font-weight: 900;
        font-size: 16px;
        line-height: 1.25;
        padding-top: 40px;
        padding-left: 40px;
        padding-right: 40px;
        text-align: left;
    }

    & th:not(:first-child) {
        padding-right: 40px;
    }

    & a {
        color: var(--activeColor);
        text-decoration: none;
    }
}