html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}

body {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    font-family: "Roboto", sans-serif;
    color: #2B2B2B;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background-color: transparent;
    padding: 0;
    border: none;
    font-weight: inherit;
    color: inherit;
    display: inline-block;
}

input {
    font-weight: inherit;
    color: inherit;
}

input::placeholder {
    font-weight: inherit;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1740px;
    padding: 0 10px;
    margin: 0 auto;

}

.section-box {
    padding: 150px 0;
}

.section__title {
    text-transform: uppercase;
    font-weight: 300;
    font-size: 42px;
    line-height: 1.16;
    margin-bottom: 55px;
}

.header {
    height: 100vh;
    color: #F5F5F5;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("../img/header/header-bg.jpg");
    background-image: image-set(
            url('../img/header/header-bg.avif') type('image/avif'),
            url('../img/header/header-bg.webp') type('image/webp'),
            url('../img/header/header-bg.jpg') type('image/jpg')
    );
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transform-origin: center;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

/* Hero text reveal */
.hero-reveal {
    opacity: 0;
    transform: translateY(28px);
    animation: heroFadeUp .9s cubic-bezier(.2,.7,.2,1) .1s forwards;
}

.hero-reveal--delay-1 { animation-delay: .35s; }
.hero-reveal--delay-2 { animation-delay: .6s; }

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.header__top {
    padding: 64px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-weight: 300;
}

.menu {
    justify-self:start;

}

.menu__btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 24px;
    position: relative;

}

.menu__btn::after,
.menu__btn::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #F5F5F5;
}

.menu__btn::after {
    top: 0;
}

.menu__btn::before {
    bottom: 0;
}

.menu__btn span{
    line-height: 2px;
    background-color: #F5F5F5;
    width: 100%;
    height: 2px;
}


.menu__list {
    display: flex;
    gap: 40px;
    text-transform: uppercase;

}

.menu__link {
    position: relative;
    transition: color .25s ease;
}

.menu__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .35s ease;
}

.menu__link:hover::after,
.menu__link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.logo {
    justify-self:center;
}

.header__phone {
    justify-self:end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__title {
    max-width: 835px;
    padding-top: 100px;
    margin-bottom: 30px;
    font-size: 85px;
    line-height: 1.17;
    font-weight: 400;
    text-transform: uppercase;
}

.header__text {
    font-size: 24px;
    max-width: 758px;
    line-height: 1.16;
    margin-bottom: 30px;
}

.header__btn {
    display: inline-block;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1.16;
    font-weight: 300;
    padding: 20px 49px;
    color: #2B2B2B;
    background-color: #F5F5F5;
    transition: background-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
    will-change: transform;
}

.header__btn:hover,
.header__btn:focus-visible {
    background-color: #2B2B2B;
    color: #F5F5F5;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

.header__phone {
    transition: opacity .25s ease;
}

.header__phone:hover {
    opacity: .75;
}





/*services section*/

.services {
    background-color: #171717;
    color: #F5F5F5;
    padding: 100px 0;
}

.services__list {
    border-top: 1px solid #F5F5F5;
}

.services__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 44px 24px 0;
    border-bottom: 1px solid #F5F5F5;
    transition: padding .35s ease, background-color .35s ease;
    cursor: default;
}

.services__item:hover {
    padding-left: 24px;
    padding-right: 20px;
    background-color: rgba(245, 245, 245, .04);
}

.services__item-title {
    transition: transform .35s ease;
}

.services__item:hover .services__item-title {
    transform: translateX(6px);
}
.services__item-title {
    font-size: 28px;
    text-transform: uppercase;
    font-weight: 300;
}


.services__item-text {
    max-width: 800px;
    width: 100%;
}

.project__slider {
    padding-bottom: 50px;
    overflow: visible;
}

.project__item {
    padding: 20px;
    border: 1px solid #d9d9d9;
    max-width: 540px;
    transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}

.project__item:hover {
    border-color: #171717;
    box-shadow: 0 18px 40px rgba(23, 23, 23, .12);
    transform: translateY(-4px);
}

.project__item-imgwrap {
    overflow: hidden;
    margin-bottom: 40px;
}

.project__item-imgwrap img {
    width: 100%;
    display: block;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.project__item:hover .project__item-imgwrap img {
    transform: scale(1.06);
}

.project__item > img {
    width: 100%;
    margin-bottom: 40px;
}

.project__item-title {
    text-transform: uppercase;
    font-weight: 300;
    font-size: 28px;
    line-height: 1.16;
    margin-bottom: 10px;
}

.project__item-desct {
    text-transform: uppercase;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.16;
    margin-bottom: 30px;
}

.project__item-text {
    margin-bottom: 30px;
}

.project__item-link {
    display: inline-block;
    text-transform: uppercase;
    border: 1px solid #171717;
    font-weight: 300;
    font-size: 18px;
    padding: 20px 100px;
    line-height: 1.1;
    transition: background-color .3s ease, color .3s ease, letter-spacing .3s ease;
}

.project__item-link:hover,
.project__item-link:focus-visible {
    background-color: #171717;
    color: #F5F5F5;
    letter-spacing: 1px;
}

.project__arrow {
    cursor: pointer;
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 56px;
    height: 56px;
    border: 1px solid #171717;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
    z-index: 2;
    transition: background-color .3s ease, transform .3s ease, opacity .3s ease;
}

.project__arrow img {
    width: 28px;
    height: auto;
    display: block;
}

.project__arrow:hover {
    background-color: #171717;
    opacity: 1;
}

.project__arrow:hover img {
    filter: invert(1);
}

.project__arrow-prev { transform: translateX(-70px); }
.project__arrow-next { transform: translateX(14px); }

.project__arrow-prev:hover { transform: translateX(-74px); }
.project__arrow-next:hover { transform: translateX(18px); }

.project__arrow-prev {
    transform: translateX(-75px);
}

.project__arrow-next {
transform: translateX(15px);
}








.steps {
    padding: 60px 0 100px;
    background-color: #171717;
    color: #F5F5F5;
    display: flex;
}

.steps__title {
    max-width: 562px;
}

.steps__list {
    max-width: 562px;
    list-style: none;
    counter-reset: my-counter;
}

.steps__item {
    counter-increment: my-counter;
    padding-left: 57px;
    position: relative;
    padding-bottom: 40px;
    transition: transform .35s ease;
}

.steps__item:hover {
    transform: translateX(8px);
}

.steps__item::before {
    transition: background-color .35s ease, color .35s ease;
}

.steps__item:hover::before {
    background-color: #F5F5F5;
    color: #171717;
}

.steps__item:last-child {
    margin-bottom: 0;
}

.steps__item:last-child::after {
    display: none;
}

.steps__item::after {
    content: "";
    position: absolute;
    width: 1px;
    background-color: #F5F5F5;
    left: 20px;
    top:48px;
    bottom: 8px;
}

.steps__item::before {
    content: counter(my-counter);
    position: absolute;
    width: 40px;
    height: 40px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #F5F5F5;
    font-family: "Montserrat", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
}

.steps__item-title {
    font-size: 24px;
    line-height: 1.16;
    font-weight: 300;
    padding-top: 6px;
    margin-bottom: 12px;
}

.steps__img img {
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
}

.catalog__title {
    max-width: 556px;
}

.catalog__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    margin-bottom: 150px;
}

.catalog__content picture {
    display: block;
    height: 100%;
}

.catalog__content-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog__form {
    width: 100%;
    max-width: 100%;
}

.catalog__form-title {
    text-transform: uppercase;
    font-size: 28px;
    line-height: 1.16;
    font-weight: 300;
    margin-bottom: 20px;
}

.catalog__fort-text {
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1.16;
    font-weight: 300;
    margin-bottom: 50px;
}

.catalog__fort-input {
    display: inline-block;
    padding: 20px;
    border: 1px solid #171717;
    text-transform: uppercase;
    font-size: 24px;
    line-height: 1.16;
    font-weight: 100;
    margin-bottom: 30px;
    width: 100%;
    color: #c9bbbb;

}

.catalog__fort-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 50px;
}

.catalog__fort-checkbox {
    width: 17px;
    height: 17px;
    accent-color: #171717;
    margin: 0;
}

.catalog__fort-btn {
    padding: 20px 54px;
    background-color: #171717;
    color: #F5F5F5;
    font-size: 18px;
    line-height: 1.16;
    text-transform: uppercase;
    font-weight: 300;
    border: 1px solid #171717;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.catalog__fort-btn:hover,
.catalog__fort-btn:focus-visible {
    background-color: transparent;
    color: #171717;
    transform: translateY(-2px);
}

.catalog__fort-input {
    transition: border-color .3s ease, color .3s ease;
}

.catalog__fort-input:focus {
    outline: none;
    border-color: #171717;
    color: #171717;
}



.gallery {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.gallery img {
    width: 100%;
    display: block;
    transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease;
    cursor: zoom-in;
}

.gallery img:hover {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.gallery a,
.gallery > div {
    overflow: hidden;
    display: block;
}

.request {
    padding-top: 150px;
}

.request__inner {
    background-image: url(../img/request/request-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 185px 0;
}

.request__inner-form {
    background-color: rgba(23, 23, 23, .85);
    padding: 75px 115px;
    max-width:  1040px;
    margin: 0 auto;
}

.request__title {
    color: #F5F5F5;
    font-size: 52px;
    width: 810px;
    max-width: 100%;
}

.request__form{
    display: flex;
}

.request__form-input {
    display: inline-block;
    padding: 20px;
    border: none;
    background-color: #d9d9d9;
    font-size: 18px;
    line-height: 1.16;
    font-weight: 100;
    width: 100%;
    color: #c9bbbb;
    transition: background-color .3s ease, color .3s ease;
}

.request__form-input:focus {
    outline: none;
    background-color: #F5F5F5;
    color: #2B2B2B;
}

.request__form-btn {
    background-color: #F5F5F5;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.16;
    padding: 20px 50px;
    width: 300px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color .3s ease, color .3s ease, letter-spacing .3s ease;
}

.request__form-btn:hover,
.request__form-btn:focus-visible {
    background-color: #2B2B2B;
    color: #F5F5F5;
    letter-spacing: 1px;
}

.footer {
    background-color: #171717;
    padding: 100px 0;
    color:#F5F5F5;

}

.footer__inner {
    display: flex;
    align-items: end;
    gap: 100px;
    margin-bottom: 10px;
    padding-right: 175px;
}

.footer__logo {
    margin-right: auto;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-transform: uppercase;
    font-weight: 300;
}

.footer__social {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 15px;

}

.footer__social-link {
    display: flex;
    gap: 10px;
    line-height: 1.16;
    transition: opacity .25s ease, transform .25s ease;
}

.footer__social-link:hover {
    opacity: .7;
    transform: translateY(-2px);
}

.footer__nav-link {
    position: relative;
    transition: opacity .25s ease;
}

.footer__nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .35s ease;
}

.footer__nav-link:hover::after,
.footer__nav-link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.footer__contacts-link {
    transition: opacity .25s ease;
}

.footer__contacts-link:hover {
    opacity: .7;
}

.footer__logo {
    transition: opacity .25s ease;
}

.footer__logo:hover {
    opacity: .8;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.16;
}

.footer__contacts-link {
    display: flex;
    gap: 10px;

}

.footer__contacts-location {
    align-self: start;
}

.footer__contacts-time {
    padding-left: 25px;
}

.footer__copy {
    display: grid;
    gap: 20px;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.16;
}

@media (max-width: 1500px) {
    .footer__inner {
        gap: 50px;
        padding-right: 0;
    }
}

@media (max-width: 1300px) {

    .menu__btn {
        display: flex;
    }
    .menu__btn.active {
        z-index: 1;
    }
    .menu__list {
        position: absolute;
        inset: 0;
        background-color: #171717;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform .3s ease-in-out;
    }
    .menu__list.active {
        transform: translateY(0);
    }

    .services__item {
        display: block;
        padding-right: 0;
    }
    .steps {
        display: block;
    }
    .steps__list {
        padding-bottom:40px;
    }
    .catalog__content {
        display: block;
    }
    .catalog__content-img {
        width: 100%;
        margin-bottom: 40px;
    }
}

@media (max-width: 1090px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer__inner {
        flex-wrap: wrap;
        gap: 30px 135px
    }
}

@media (max-width: 820px) {
    .footer__inner {
        gap: 30px 0;
        padding-right: 0;
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 740px) {
    .header__top {
        padding: 40px 0;
    }
    .header__title {
        padding-top: 75px;
        font-size: 64px;
    }
    .section-box {
        padding: 50px 0;
    }
    .section__title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .services {
        padding: 50px 0;
    }
    .services__item {
        padding: 10px 0;
    }
    .services__item-title {
        font-size: 20px;
    }
    .project__item {
        padding: 10px;
    }
    .project__item img{
        margin-bottom: 20px;
    }
    .project__item-desct {
        margin-bottom: 10px;
        font-size: 16px;
    }
    .project__item-title {
        font-size: 24px;
    }
    .project__item-text {
        margin-bottom: 15px;
    }
    .project__item-link {
        padding: 16px 100px;
        font-size: 16px;
    }
    .steps {
        padding: 50px 0;
    }
    .catalog__content {
        grid-template-columns: 1fr;
    }
    .catalog__content-img {
        height: 280px;
    }
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .request {
        padding-top: 50px;
    }
    .request__title {
        font-size: 28px;
    }
    .request__inner {
        padding: 85px 0;
    }
    .request__form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .request__form-btn {
        width: 100%;
    }
    .request__inner-form {
        padding: 50px 10px;
    }
    .footer {
        padding: 50px 0;
    }
}


@media (max-width: 540px) {
    .header__phone img{
        width: 24px;
    }
    .header__phone span{
        display: none;
    }

    .header__title {
        padding-top: 50px;
        font-size: 44px;
    }
    .header__text {
        font-size: 22px;
    }
    .header__btn {
        font-size: 16px;
        padding: 16px 49px;
    }
    .steps__item::after {
        left: 10px;
        top: 28px;
        bottom: 8px;
    }
    .steps__item::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .steps__item {
        padding-left: 37px;
        padding-bottom: 20px;
    }
    .steps__item-title {
        font-size: 22px;
        padding-top: 0;
        padding-bottom: 5px;
        margin-top: -1px;
    }
    .catalog__content-img {
        width: 100%;
        margin-bottom: 20px;
    }
    .catalog__form-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    .catalog__fort-text {
        font-size: 15px;
        margin-bottom: 15px;
    }
    .catalog__fort-input {
        padding: 10px;
        font-size: 16px;
        margin-right: 20px;
    }
    .catalog__fort-label {
        margin-bottom: 20px;
    }
    .catalog__fort-btn {
        padding: 15px 54px;
        font-size: 16px;
    }
    .gallery {
        grid-template-columns: 1fr;
    }
    .footer__social {
        flex-direction: row;
    }
    .footer__social-link span {
        display: none;
    }
}

/* ---- Scroll reveal (only if JS loaded; class added by main.js) ---- */
.js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-reveal {
        opacity: 1;
        transform: none;
    }

    .header::before {
        animation: none;
    }
}