:root {
    /* Цвета */
    --main-text-color: #111;
    --main-text-color-hover: #fff;
}

@font-face {
    font-family: Montserrat;
    src: url("../fonts/Montserrat-Regular.woff2") format("woff2"),
    url("../fonts/Montserrat-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"),
    url("../fonts/Montserrat-SemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url("../fonts/Montserrat-Light.woff2") format("woff2"),
    url("../fonts/Montserrat-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url("../fonts/Montserrat-ExtraLight.woff2") format("woff2"),
    url("../fonts/Montserrat-ExtraLight.woff") format("woff");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    line-height: 120%;
    letter-spacing: 0.01em;
    color: var(--main-text-color);
}

a.navigation__link {
    display: inline-block; /* Сохраняет строчное поведение, но позволяет задавать ширину */
    position: relative;
    color: #111;
    text-decoration: none;
}

a.navigation__link::before {
    content: "";          /* Без контента псевдоэлемент не появится */
    position: absolute;   /* Уходим из потока, опираемся на родителя (a) */
    display: block;       /* Чтобы width работал */
    width: 100%;
    height: 1px;
    bottom: 0;            /* Прижимаем к нижнему краю ссылки */
    left: 0;
    background-color: #000;
    transform: scaleX(0); /* Прячем линию, сжимая по горизонтали */
    transition: transform 0.3s ease; /* Плавность */
}

a.navigation__link:hover::before {
    transform: scaleX(1); /* Показываем линию на всю ширину */
}

.main-header {
    position: fixed;
    padding: 0 80px;
    width: 100%;
    top: 0;
    left: 0;
    background: #fff;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.main-header.hide {
    transform: translateY(-100%);
}

.main-header.scrolled {
    box-shadow: 0 2px 20px rgb(0, 0, 0, 0.1);
}

.main-header.scrolled .header {
    height: 70px;
}

.container {
    margin: 0 auto;
    padding: 0 80px;
    max-width: 1920px;
}

.header {
    display: flex;
    justify-content: end;
    align-items: center;
    height: 122px;
    gap: 120px;
    box-sizing: border-box;
    overflow: hidden;
}

.navigation {
    display: flex;
    gap: 80px;
}

.navigation a {
    color: var(--main-text-color);
    text-decoration: none;
}

.navigation li {
    list-style: none;
}

.buttom-link {
    padding: 12px 14px;
    color: #fff;
    background-color: var(--main-text-color);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    max-width: 100%;          /* на всякий случай */
    box-sizing: border-box;
    white-space: nowrap;
}

.buttom-link:hover {
    color: #111;
    background-color: var(--main-text-color-hover);
    outline: 1px solid #111;
}

.buttom-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.25) 50%,
            transparent 100%
    );
    transform: translateX(-100%);
    animation: shine 3.5s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    25% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 5px;
    padding-top: 50px;
    margin-top: 122px;
    height: 336px;
}

.banner__head {
    display: none;
}

.banner__box {
    display: flex;
}

.banner__box-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 50px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    background: #fff;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.banner__logo {
    max-width: 684px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.head__logo,
.head__logo-mobile {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-right: auto;
    width: 130px;
}

.projects__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    margin-bottom: 140px;
}

.banner__text {
    display: flex;
    align-items: start;
    justify-content: start;
    width: 100%;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 52px;
    line-height: 130%;
    letter-spacing: 0.01em;
}

.banner__text-item {
    max-width: 856px;
}

.project {
    max-width: 100%;
}

.projects__box.small-box h2 {
    align-items: start;
}

.item-bottom {
    display: flex;
    align-items: end;
}


.projects__small_size,
.projects__big_size {
    min-width: 400px;
}

.projects__big_size.item-right {
    display: flex;
    justify-content: end;
}


.projects__small_size {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.rojects__small_size-left {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.projects__small_size.item-bottom {
    display: flex;
    justify-content: end;
}

.commot-items {
    height: 638px;
}

.projects__box_img {
    max-width: 864px;
}

.projects__box_img-small {
    max-width: 648px;
}

.projects__box_img img,
.projects__box_img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects__description {
    display: flex;
    gap: 24px;
    font-size: 18px;
    font-weight: 400;
}

.services__title {
    margin-bottom: 40px;
    font-size: 48px;
}


.accordion-content {
    font-size: 28px;
}

.team__content {
    font-size: 48px;
    font-weight: 600;
    line-height: 110%;
    will-change: transform;
    align-self: start;     /* ← главное исправление */

}


.team__box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    align-items: start;          /* ← ключевое изменение */
}

.team__item {
    display: flex;
}

.team__item:not(:last-child) {
    margin-bottom: 100px;
}

.team__description {
    margin-left: 20px;
}

.team__profession {
    font-size: 24px;
}

.team__name {
    margin-top: 5px;
    font-size: 48px;
    font-weight: 600;
    line-height: 110%;
}

.article__box {
    font-weight: 600;
    font-size: 48px;
    line-height: 110%;
    letter-spacing: 1%;
}

.section {
    margin-bottom: 120px;
}

.contacts__box {
    display: grid;
    align-items: start;
    grid-template-columns: 1fr 1fr;
}

.contacts__title {
    margin-bottom: 40px;
    font-size: 48px;
}

.contacts__text {
    display: flex;
    align-items: start;
    justify-content: space-between;
    font-size: 24px;
}

.contacts__text address {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contacts__link {
    font-style: normal;
    color:#111;
    text-decoration: none;
}


.contacts__form {
    display: flex;
    align-items: start;
    margin-left: auto;
}

.team__photo {
    width: 448px;
}

.contacts {
    overflow: hidden;
}

a.cases__title-link {
    color: var(--main-text-color);
    text-decoration: none;
    transition: opacity 0.3s ease; /* smooth animation */
    opacity: 1;
}

a.cases__title-link:hover {
    opacity: 0.6;
}

.cases__img {
    transition: filter 0.3s ease;
    filter: grayscale(0%);
}

.cases__img:hover {
    filter: grayscale(100%);
}


.work__box {
    margin-top: 66px;
}

.work_date__box,
.work_text_link__box,
.work_text_photo__box {
    display: grid;
    grid-template-columns: 2fr 2fr; /* две равные колонки */
    align-items: start;           /* вертикальное прижатие к верху */
    justify-items: start;         /* горизонтальное прижатие к левому краю */
    gap: 5px;
    margin-bottom: 60px;
}

.work_date__header {
    margin: 0;
    font-size: 90px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 0.7;
}

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

.work_date__text,
.work_date__year,
.work_text_link__header {
    font-size: 48px;
    font-weight: 600;
    line-height: 130%;
    margin-bottom: 32px;
}

.work_date__year {
    margin-bottom: 0;
}

.work_text_link__header {
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1;
}

.work_photo__img {
    margin-bottom: 140px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work_text_link__description,
.work_text_photo__description {
    margin-top: -5px;
    font-size: 36px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.work_text_link__article {
    margin-bottom: 20px;
}

.work_text_link__link {
    font-size: 24px;
    color: var(--main-text-color);
    text-decoration: underline #cfcfcf 1px;
    text-underline-offset: 10px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}


@media (max-width: 1700px) {
    .banner {
        height: 274px;
    }

    .projects__row {
        margin-bottom: 80px;
    }

    .banner__text {
        font-size: 39px;
    }

    .banner__text-item {
        max-width: 651px;
    }

    .banner__logo {
        max-width: 551px;
    }

    .projects__box_img {
        max-width: 664px;
    }

    .projects__box_img-small {
        max-width: 558px;
    }

    .section {
        margin-bottom: 100px;
    }

    .services {
        margin-bottom: 100px;
    }

    .services__title {
        font-size: 36px;
    }

    .team__content,
    .article__box {
        font-size: 36px;
    }

    .team__name {
        font-size: 28px;
    }

    .team__profession {
        font-size: 18px;
    }

    .commot-items {
        height: 538px;
    }

    .contacts__title {
        font-size: 36px;
    }

}


@media (max-width: 1440px) {
    .container,
    .main-header {
        padding: 0 40px;
    }

    .banner {
        height: 274px;
    }

    .banner__text-item {
        max-width: 584px;
    }

    .banner__text {
        font-size: 34px;
    }

    .projects__box_img {
        max-width: 584px;
    }

    .projects__box_img-small {
        max-width: 510px;
    }

    .article__box,
    .services__title,
    .team__content {
        font-size: 28px;
    }

    .team__item {
        flex-direction: column;
    }

    .team__item:not(:last-child) {
        margin-bottom: 60px;
    }

    .team__description {
        margin: 20px 0;
    }

    .team__profession {
        font-size: 20px;
    }

    .contacts__title {
        font-size: 28px;
    }

    .contacts__text {
        font-size: 20px;
    }

    .commot-items {
        height: auto;
    }


    .work_date__header {
        font-size: 80px;
    }

    .work_date__text,
    .work_text_link__header {
        font-size: 36px;
        margin-bottom: 22px;
    }

    .work_date__year {
        font-size: 36px;
        margin-bottom: 0;
    }

    .work_photo__img {
        margin-bottom: 125px;
    }

    .work_text_photo__description {
        margin-bottom: 2px;
        font-size: 28px;
    }

    .work_text_link__article {
        margin-bottom: 20px;
        font-size: 28px;
    }

    .work_text_link__description {
        margin-bottom: 8px;
        font-size: 28px;
    }


}

@media (max-width: 1279px) {
    body {
        font-size: 16px;
    }

    .container,
    .main-header {
        padding: 0 30px;
    }

    .header {
        gap: 55px;
    }

    .banner__logo {
        max-width: 391px;
    }

    .banner__text-item {
        max-width: 456px;
    }

    .banner__text {
        font-size: 28px;
    }

    .projects__row {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .projects__big_size,
    .projects__small_size {
        width: 100%;
    }

    .projects__box_img,
    .projects__box_img-small {
        height: 340px;
        width: 100%;
    }

    .projects__big_size {
        width: 100%;
    }

    .projects__small_size.item-bottom {
        justify-content: start;
    }

    .projects__description {
        font-size: 16px;
    }

    .section {
        margin-bottom: 80px;
    }

    .services {
        margin-bottom: 80px;
    }

    .services__title,
    .team__content {
        font-size: 24px;
    }

    .team__content {
        margin-bottom: 32px;
    }

    .team__item {
        flex-direction: row;
    }

    .team__photo {
        width: 320px;
    }

    .team__description {
        margin-left: 24px;
    }

    .article__box {
        font-size: 28px;
        line-height: 130%;
    }

    .contacts__text {
        font-size: 16px;
    }


    .work__box {
        margin-top: 46px;
    }

    .work_date__header {
        font-size: 60px;
    }

    .work_date__text,
    .work_text_link__header {
        font-size: 28px;
        margin-bottom: 22px;
    }

    .work_date__year {
        font-size: 28px;
        margin-bottom: 0;
    }

    .work_photo__img {
        margin-bottom: 100px;
    }

    .work_text_link__article,
    .work_text_photo__description,
    .work_text_link__description {
        font-size: 24px;
    }

}

@media (max-width: 999px) {
    .navigation,
    .buttom-link.nav,
    .banner__template-row {
        display: none;
    }

    .banner__box-mobile {
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        justify-content: space-between;
        height: 78px;
        padding-left: 30px;
        padding-right: 30px;
        width: 100%;
        background: #fff;
        z-index: 1000;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(0);
        box-sizing: border-box;
    }

    .banner__box-mobile.hide {
        transform: translateY(-100%);
    }

    .banner__box-mobile.scrolled {
        box-shadow: 0 2px 20px rgb(0, 0, 0, 0.1);
    }

    .banner__box-mobile.scrolled .header {
        height: 70px;
    }

    .banner__box.descopt-view,
    .head__logo {
        display: none;
    }

    .header {
        height: auto;
    }

    .banner__box {
        justify-content: space-between;
        align-items: center;
    }

    .banner {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 49px;
        height: auto;
        margin-top: 50px;
    }

    .banner__logo {
        width: 169px;
    }

    .banner__logo svg {
        height: auto;
    }

    .banner__text {
        justify-content: start;
    }

    .section, .services {
        margin-bottom: 60px;
    }

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

    .projects__box_img,
    .projects__box_img-small,
    .projects__box.small-box {
        max-width: 100%;
    }

    .projects__box_img, .projects__box_img-small {
        height: auto;
    }

    .projects__description {
        margin-top: 16px;
        font-size: 18px;
    }

    .services__title {
        margin-bottom: 24px;
    }

    .team__content {
        font-size: 26px;
        will-change: auto;
        transform: none !important;  /* убираем любые смещения на мобильных */
    }

    .team__item {
        flex-direction: column;
    }

    .team__photo {
        width: 100%;
    }

    .team__description {
        margin-left: 0;
        margin-bottom: 0;
    }

    .contacts__text {
        flex-direction: column;
        align-items: start;
    }

    .contacts__text address {
        gap: 24px;
        margin-bottom: 24px;
    }

    .contacts.section {
        margin-bottom: 40px;
    }

    .projects__big_size,
    .projects__small_size {
        min-width: auto;
    }


    .work__box {
        margin-top: 80px;
    }

    .work_date__header {
        font-size: 46px;
    }

    .work_date__box,
    .work_text_link__box,
    .work_text_photo__box {
        margin-bottom: 40px;
    }

    .work_date__text,
    .work_text_link__header {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .work_date__year {
        font-size: 24px;
    }

    .work_photo__img {
        margin-bottom: 80px;
    }

    .work_text_link__article,
    .work_text_photo__description,
    .work_text_link__description {
        font-size: 20px;
    }

    .work_text_link__link {
        font-size: 20px;
    }

}

@media (max-width: 727px) {
    .container,
    .main-header {
        padding: 0 15px;
    }

    .banner__logo {
        width: 135px;
    }

    .banner__text-item {
        max-width: 100%;
    }

    .banner__text {
        font-size: 22px;
    }

    .banner__box-mobile {
        height: 64px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .projects__description {
        flex-direction: column;
        gap: 3px;
        margin-top: 12px;
        margin-bottom: 0;
        font-size: 14px;
    }

    .projects__row {
        margin-bottom: 60px;
        gap: 32px;
    }

    .services__title,
    .article__box,
    .contacts__title {
        font-size: 20px;
    }

    .team__content {
        font-size: 20px;
    }

    .team__box {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }

    .team__profession {
        font-size: 18px;
    }

    .team__name {
        font-size: 20px;
    }

    .team__item:not(:last-child) {
        margin-bottom: 32px;
    }

    .contacts__text {
        flex-direction: column-reverse;
        gap: 32px;
        margin-bottom: 0;
        font-size: 16px;
    }

    .contacts__box {
        display: flex;
        align-items: start;
        flex-direction: column;
    }

    .contacts__form {
        margin-top: 15px;
        margin-left: 0;
    }

    .contacts__text address {
        gap: 32px;
    }

    .contacts__title {
        margin-bottom: 24px;
    }

    .work__box {
        margin-top: 30px;
    }

    .work_date__header {
        margin-bottom: 16px;
        font-size: 46px;
    }

    .work_date__box,
    .work_text_link__box,
    .work_text_photo__box {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

}

@media (max-width: 420px) {
    .team__box {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .work__box {
        margin-top: 5px;
    }

    .work_date__header {
        margin-bottom: 16px;
        font-size: 32px;
    }

    .work_date__text,
    .work_text_link__header {
        font-size: 20px;
    }

    .work_date__box,
    .work_text_link__box,
    .work_text_photo__box {
        grid-template-columns: 1fr;
        margin-bottom: 24px;
    }

    .work_photo__img {
        margin-bottom: 40px;
    }

    .work_text_link__article,
    .work_text_photo__description,
    .work_text_link__description,
    .work_text_link__link,
    .work_text_photo__description {
        font-size: 18px;
    }



}



/* Основной контейнер */
.accordion {
    max-width: 100%;
    margin: 0 auto;
}

/* Элемент аккордеона */
.accordion__item {
    border-bottom: 1px solid #CFCFCF;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item_top {
    border-top: 1px solid #CFCFCF;
}

/* Заголовок */
.accordion__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 32px 0;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.accordion__header h3 {
    margin: 0;
    font-size: 36px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.accordion__buttom {
    display: flex;
}


/* Иконка */
.accordion__icon {
    font-size: 58px;
    font-weight: 100;
    color: #111;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Контент (анимированный) */
.accordion__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordio__content p {
    padding: 24px 0;
    margin: 0;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.6;
}

.accordion__list {
    margin: 20px 0 40px 40px;
    padding: 0;
    font-size: 24px;
    list-style: none;
}

.accordion__list li {
    margin-bottom: 24px;
}



/* Анимация для плавного появления текста */
.accordion__item.active .accordion__content p {
    animation: fade-slide-up 0.3s ease 0.1s both;
}

/* Стили для активного элемента */
.accordion__item.active .accordion__icon {
    transform: rotate(45deg);
}

.accordion__item.active .accordion__content {
    max-height: 500px; /* Запасное значение, но JS управляет точной высотой */
}



@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media (max-width: 1700px) {
    .accordion__header h3 {
        font-size: 28px;
    }

    .accordion__list {
        margin-top: 10px;
        font-size: 24px;
    }
}

@media (max-width: 1440px) {
    .accordion__header {
        padding: 24px 0;
    }

    .accordion__header h3 {
        font-size: 24px;
    }

    .accordion__list {
        margin-top: 10px;
        font-size: 20px;
    }
}

@media (max-width: 1279px) {
    .accordion__header h3 {
        font-size: 20px;
    }

    .accordion__list {
        margin-top: 10px;
        font-size: 16px;
    }

}

@media (max-width: 999px) {
    .accordion__header {
        grid-template-columns: 3fr 1fr;
        padding: 20px 0;
    }

    .accordion__header h3 {
        font-size: 18px;
    }

    .accordion__list {
        margin: 0;
        font-size: 14px;
    }

    .accordion__list li {
        margin-bottom: 15px;
    }

    .accordion__content-left {
        display: none;
    }

    .accordion__buttom {
        justify-content: end;
    }

    .accordion__icon {
        font-size: 42px;
    }

}



.header__mobile {
    display: none;
    margin-top: 20px;
}

.burger {
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 100;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger span {
    display: block;
    width: 30px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 10px;
}

.burger span:nth-child(3) {
    top: 20px;
}

/* Анимация для открытого состояния */
.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* ===== Меню ===== */
.menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    place-items: center;
    background: #fff;
    box-shadow: 2px 0 10px rgb(0, 0, 0, 0.1);
    padding-top: 80px;
    transition: left 0.3s ease;
    z-index: 99;
    overflow-y: auto;
}

.menu a:not(:last-child) {
    margin-bottom: 48px;
}

.menu.active {
    left: 0;
}

.menu a {
    display: block;
    text-decoration: none;
    color: #111;
    font-size: 24px;
    transition: background 0.2s;
}

a.mobile-btn {
    color: #fff;
    font-size: 16px;
}


@media (hover: hover) {
    .menu a:hover {
        background: #f0f0f0;
    }
}

.menu a:active {
    background: #e0e0e0;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 98;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 999px) {
    .header__mobile {
        display: flex;
    }
}

/* form */
.form__box {
    margin-top: 20px;
}

.form__title {
    font-weight: 600;
    font-style: normal;
    font-size: 52px;
}

.form__body {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 32px;
}

.form__sub-title {
    margin: 0;
    padding-left: 8px;
    font-weight: 400;
}

.form__items {
    width: 100%;
    margin-top: 40px;
}

.form__items label {
    display: none;
}

.form__items input,
.form__items textarea {
    border: none;
    border-bottom: 1px solid #CFCFCF;
    width: 100%;
}

.form__items input {
    padding-left: 10px;
    height: 40px;
}

.form__items input::placeholder,
.form__items textarea::placeholder {
    font-size: 18px;
    color: #111;
}

.form__items input:focus,
.form__items input:active,
.form__items input:focus-visible,
.form__items input:hover {
    outline: none;
    border-bottom: 1px solid #111;

}

.form__items textarea {
    padding-top: 10px;
    padding-left: 10px;
    height: 30px;
}

.form__items textarea::placeholder {
    font-size: 18px;
    color: #111;
}

.form__items textarea:focus,
.form__items textarea:active,
.form__items textarea:focus-visible,
.form__items textarea:hover {
    outline: none;
    border-bottom: 1px solid #111;
}

.form__groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 32px;
}

.form__button {
    padding: 20px 10px;
    width: 100%;
    border: 2px solid #CFCFCF;
    font-size: 18px;
    font-weight: 400;
    color: #909090;
    background-color: #fff;
}

.form__button:hover {
    color: #fff;
    background-color: var(--main-text-color);
    border: 2px solid var(--main-text-color);
    cursor: pointer;
}

@media (max-width: 1440px) {
    .form__title {
        font-size: 40px;
    }

    .form__sub-title {
        font-size: 28px;
    }
}

@media (max-width: 1279px) {
    .form__title {
        font-size: 34px;
    }

    .form__sub-title {
        font-size: 24px;
    }

    .form__groups {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
    }

    .form__button {
        margin-top: 8px;
    }
}

@media (max-width: 999px) {
    .form__title {
        font-size: 28px;
    }

    .form__sub-title {
        font-size: 20px;
    }

    .form__items input::placeholder,
    .form__items textarea::placeholder {
        font-size: 16px;
    }
}

@media (max-width: 727px) {
    .form__body {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 40px
    }

    .form__button {
        margin-top: 40px;
    }
}

.banner.form-page {
    height: auto;
}

.form-group {
    position: relative;
}

.form-group.has-error input {
    border-bottom: 1px solid #FF4A4A;
}

.help-block {
    position: absolute;
    padding-left: 10px;
    font-size: 14px;
    color: #FF4A4A;
}

.form__alert {
    margin-top: 40px;
    font-size: 18px;
}

.alert__box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert__text {
    margin-left: 10px;
}

/* error page */

.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 80px 80px;
}

.error-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Креативный 404 блок */
.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Левая часть с анимацией */
.error-visual {
    position: relative;
    text-align: center;
}

.error-number {
    font-size: 220px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #000;
    position: relative;
    z-index: 1;
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* Анимация мерцания (черный цвет) */
.error-number.flicker {
    animation: flickerAnim 0.15s infinite alternate;
}

@keyframes flickerAnim {
    0% {
        opacity: 1;
        text-shadow: 0 0 0 rgba(0,0,0,0);
    }
    100% {
        opacity: 0.7;
        text-shadow: 0 0 3px rgba(0,0,0,0.3);
    }
}

/* Плавающие круги */
.error-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.error-circles span {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    animation: float 6s ease-in-out infinite;
}

.error-circles span:nth-child(1) {
    width: 120px;
    height: 120px;
    top: -40px;
    right: -20px;
    animation-delay: 0s;
}

.error-circles span:nth-child(2) {
    width: 80px;
    height: 80px;
    bottom: -30px;
    left: -10px;
    animation-delay: 1.5s;
    animation-duration: 8s;
}

.error-circles span:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    right: -30px;
    animation-delay: 0.8s;
    animation-duration: 7s;
}

.error-circles span:nth-child(4) {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: -15px;
    animation-delay: 2s;
    animation-duration: 9s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Правая часть — текст */
.error-info {
    text-align: left;
}

.error-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 110%;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.error-message {
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
    color: #555;
    margin-bottom: 40px;
    max-width: 400px;
}

/* Кнопка как в вашем стиле */
.error-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: var(--main-text-color);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.error-button:hover {
    background: #fff;
    color: var(--main-text-color);
    border-color: var(--main-text-color);
}

/* Поиск */
.error-search {
    margin-top: 48px;
}

.error-search-title {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-wrapper {
    display: flex;
    max-width: 360px;
    border-bottom: 1px solid #CFCFCF;
    transition: border-color 0.3s ease;
}

.search-wrapper:focus-within {
    border-bottom-color: var(--main-text-color);
}

.search-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    background: transparent;
    outline: none;
}

.search-wrapper input::placeholder {
    color: #bbb;
    font-weight: 300;
}

.search-wrapper button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 0 12px 12px;
    display: flex;
    align-items: center;
    color: #111;
    transition: color 0.3s ease;
}

.search-wrapper button:hover {
    color: #555;
}

/* Предложения */
.error-suggestions {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.suggestion-link {
    font-size: 14px;
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.suggestion-link:hover {
    color: var(--main-text-color);
    border-bottom-color: var(--main-text-color);
}

/* Адаптив — исправлен разъезжающийся 404 */
@media (max-width: 999px) {
    .error-page {
        padding: 100px 30px 60px;
    }

    .error-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .error-visual {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .error-number {
        font-size: 160px;
        white-space: nowrap;
        display: inline-block;
        width: auto;
    }

    .error-title {
        font-size: 32px;
        text-align: center;
    }

    .error-message {
        font-size: 16px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .error-info {
        text-align: center;
    }

    .search-wrapper {
        margin: 0 auto;
    }

    .error-suggestions {
        justify-content: center;
    }

    .error-button {
        margin: 0 auto;
    }
}

@media (max-width: 727px) {
    .error-page {
        padding: 80px 15px 40px;
    }

    .error-visual {
        width: 100%;
        overflow: visible;
    }

    .error-number {
        font-size: 100px;
        white-space: normal;
        word-break: keep-all;
        display: block;
        text-align: center;
    }

    .error-circles span {
        display: none;
    }

    .error-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .error-number.flicker-mobile {
        animation: flickerAnimMobile 0.2s infinite alternate;
    }

    @keyframes flickerAnimMobile {
        0% { opacity: 1; text-shadow: 0 0 0 rgba(0,0,0,0); }
        100% { opacity: 0.6; text-shadow: 0 0 2px rgba(0,0,0,0.2); }
    }
}

@media (max-width: 480px) {
    .error-number {
        font-size: 80px;
    }
}


/* контент */

.content__column-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    margin-top: 100px;
}

.content__wrapper p {
    margin: 0 0 10px 0;
}

.content__wrapper {
    margin-bottom: 40px;
}


.content__right {
    display: flex;
    justify-content: center;
    align-items: start;
}


/* cases */

.cases__item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2px;
    margin-top: 63px;
}

.cases__img {
    max-width: 880px;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.cases__text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 32px;
}

.cases__title {
    margin: -8px 0 35px 0;
    font-size: 90px;
    font-weight: 600;
    line-height: 90%;
    letter-spacing: -0.03em;
}

.work__item:not(:last-child) {
    padding-bottom: 62px;
    border-bottom: 1px solid #CFCFCF;
}

.work__item.last__item {
    border: none;
}


.cases__description {
    margin: 0;
    font-size: 24px;
    line-height: 130%;
}

.cases__category {
    font-size: 18px;
    letter-spacing: 0.01rem;
}



@media (max-width: 1440px) {

    .cases__img {
        max-width: 664px;
        height: 400px;
    }

    .cases__item {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        margin-top: 54px;
    }

    .cases__text {
        margin-left: 20px;
    }

    .cases__title {
        margin-bottom: 20px;
        font-size: 80px;
    }

    .work__item:not(:last-child) {
        padding-bottom: 50px;
    }
}

@media (max-width: 1280px) {
    .cases__img {
        max-width: 584px;
        height: 350px;
    }

    .cases__title {
        margin-top: -6px;
        margin-bottom: 22px;
        font-size: 60px;
    }

    .cases__text {
        margin-left: 10px;
    }
}

@media (max-width: 1000px) {
    .cases__item {
        grid-template-columns: 1fr;
        margin-top: 15px;
    }

    .work__item:not(:first-child) {
        margin-top: 51px;
    }

    .cases__img {
        max-width: 940px;
        height: 500px;
    }

    .cases__title {
        margin-top: 27px;
        margin-bottom: 24px;
        font-size: 46px;
    }

    .cases__text {
        margin-left: 0;
    }

    .cases__description {
        font-size: 20px;
    }

    .cases__text {
        flex-direction: row;
    }

    .cases__category {
        margin-top: 32px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .cases__item {
        margin-top: 35px;
    }

    .cases__img {
        max-width: 728px;
        height: 390px;
    }

    .cases__title {
        margin-bottom: 29px;
        font-size: 6vw;
    }
}

@media (max-width: 550px) {
    .cases__item {
        margin-top: 27px;
    }

    .cases__text {
        flex-direction: column;
    }

    .cases__title {
        margin-top: 20px;
        margin-bottom: 11px;
        font-size: 32px;
    }

    .cases__img {
        height: 200px;
    }

    .cases__category {
        margin-top: 24px;
        font-size: 14px;
    }

    .work__item:not(:last-child) {
        margin-top: 30px;
        padding-bottom: 28px;
    }
}

/* ===== Пагинация ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 20px;
    padding: 0;
    list-style: none;
}

.pagination .page-item {
    display: inline-block;
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: var(--main-text-color, #111);
    background-color: #fff;
    border: 1px solid #CFCFCF;
    border-radius: 0;      /* квадратные углы, как в дизайне */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Активная страница */
.pagination .active .page-link {
    background-color: var(--main-text-color, #111);
    color: #fff;
    border-color: var(--main-text-color, #111);
    pointer-events: none;
}

/* Отключённые кнопки (Назад / Вперёд на первой/последней странице) */
.pagination .disabled .page-link {
    color: #aaa;
    background-color: #f9f9f9;
    border-color: #e0e0e0;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ховер для ссылок (не для активной и не для disabled) */
.pagination .page-link:not(.disabled a):hover,
.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f5f5f5;
    border-color: #111;
    color: #111;
}

/* Убираем обводку при фокусе (оставляем лёгкую тень для доступности) */
.pagination .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Стили для кнопок "Назад" и "Вперёд" — наследуются от .page-link */
.pagination .prev .page-link,
.pagination .next .page-link {
    min-width: 80px; /* чуть шире для текста */
}

/* Адаптивность */
@media (max-width: 999px) {
    .pagination {
        gap: 6px;
        margin: 30px 0 15px;
    }
    .pagination .page-link {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 16px;
    }
    .pagination .prev .page-link,
    .pagination .next .page-link {
        min-width: 70px;
    }
}

@media (max-width: 727px) {
    .pagination {
        gap: 5px;
        margin: 20px 0 10px;
    }
    .pagination .page-link {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 14px;
    }
    .pagination .prev .page-link,
    .pagination .next .page-link {
        min-width: 60px;
        font-size: 13px;
    }
}

/* На совсем маленьких экранах (до 480px) можно уменьшить ещё */
@media (max-width: 480px) {
    .pagination {
        gap: 4px;
    }
    .pagination .page-link {
        min-width: 30px;
        height: 30px;
        padding: 0 6px;
        font-size: 12px;
    }
    .pagination .prev .page-link,
    .pagination .next .page-link {
        min-width: 50px;
        font-size: 12px;
    }
}











