html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/InterLight.woff2') format('woff2');
    font-display: swap;
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/InterRegular.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/InterMedium.woff2') format('woff2');
    font-display: swap;
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/InterSemiBold.woff2') format('woff2');
    font-display: swap;
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/InterBold.woff2') format('woff2');
    font-display: swap;
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Inter', sans-serif;
}

:root {
    --color-light: #fff;
    --color-grey: #838383;
    --color-dark: #1d1d1f;

    --offset: 190px
}

.container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn-reset {
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.list-reset {
    list-style: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
}

.btn {
    font-weight: 600;
    font-size: 17px;
    line-height: 21px;
    padding: 20px 20px;
    min-width: 180px;
    color: var(--color-dark);
    background-color: var(--color-light);
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.btn--light {
    color: var(--color-dark);
    background-color: var(--color-light);
}

.btn--light:hover {
    color: var(--color-light);
    background-color: var(--color-dark);
}

.btn--dark {
    color: var(--color-light);
    background-color: var(--color-dark);
}

.btn--dark:hover {
    color: var(--color-dark);
    background-color: var(--color-light);
}

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

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

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.header__search {
    margin-right: 35px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-light);
    transition: color 0.3s ease-in-out;
}

.header__search svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    stroke: currentColor;
}

.header__search:hover {
    color: var(--color-grey);
}

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

.nav__link {
    cursor: pointer;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: var(--color-light);
    transition: color 0.3s ease-in-out;
}

.nav__link:hover {
    color: var(--color-grey);
}

.nav__link:not(:last-child) {
    margin-right: 35px;
}

.logo {
    font-weight: 500;
    font-size: 32px;
    line-height: 130%;
    color: var(--color-light);
}

.hero {
    padding-top: calc(120px + 150px);
    max-height: 100vh;
    min-height: 900px;
    background: url('../img/hero-cover.webp') center / cover no-repeat;
}

.hero__title {
    margin-bottom: 30px;
    max-width: 850px;
    font-weight: 600;
    font-size: 96px;
    line-height: 116px;
    color: var(--color-light);
}

.hero__description {
    margin-bottom: 50px;
    max-width: 468px;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--color-light);
}

.about__stats {
    padding: var(--offset) 0;
}

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

.completed__value {
    font-weight: 300;
    font-size: 64px;
    line-height: 140%;
    color: var(--color-dark);
}

.completed__description {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--color-grey);
}

.about__title {
    margin-bottom: 60px;
    font-weight: 700;
    font-size: 44px;
    line-height: 140%;
    color: var(--color-dark);
}

.about__description {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--color-dark);
}

.about__description:not(:last-child) {
    margin-bottom: 30px;
}

.about__video {
    position: relative;
    width: 100%;
    height: 630px;
    overflow: hidden;
}

.about__video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    color: var(--color-light);
    transition: color 0.3s ease-in-out;
}

.about__play svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__play circle {
    fill: currentColor;
}

.about__play:hover {
    color: var(--color-grey);
}

.offer {
    padding: var(--offset) 0;
}

.offer-item:not(:last-child) {
    margin-bottom: 120px;
}

.offer-item__col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.offer-item--reverse .offer-item__col:first-child {
    order: 2
}

.offer-item--reverse .offer-item__col:last-child {
    order: 1
}

.offer-item__title {
    font-weight: 400;
    font-size: 24px;
    line-height: 140%;
    color: var(--color-grey);
    margin-bottom: 20px;
}

.offer-item__description {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--color-dark);
    margin-bottom: 60px;
}

.quote {
    padding-bottom: var(--offset);
}

.quote__title {
    margin-bottom: 50px;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--color-grey);
}

.quote__content {
    max-width: 820px;
}

.quote__text {
    font-weight: 500;
    font-size: 36px;
    line-height: 150%;
    color: var(--color-dark);
    margin-bottom: 30px;
}

.quote__author {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--color-dark);
    font-style: normal;
}

.quote__author span {
    color: var(--color-grey);
}

.slider {
    padding-bottom: var(--offset);
}

.slider__image {
    width: 100%;
    height: 900px;
    object-fit: cover;
}

.show {
    display: block;
}

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

.slider__arrow {
    position: absolute;
    opacity: 0.5;
    transition: 0.3s ease-in-out;

    &:hover {
        opacity: 1;
    }
}

.slider__arrow--next {
    top: 50%;
    right: 10vw;
    z-index: 10;
}

.slider__arrow--prev {
    top: 50%;
    left: 10vw;
    z-index: 10;
}

#circles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 1vw;
    cursor: pointer;
}

.pagination-circle {
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-grey);
    border-radius: 50%;
    transition: 0.3s ease-in-out;
}

.active {
    background-color: var(--color-grey);
}

.services {
    padding-bottom: var(--offset);
}

.services-item {
    border-top: 1px solid rgba(29, 29, 31, 0.4);
    padding: 40px 0;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.services-item:active {
    cursor: grabbing;
}

.services-item__title {
    font-weight: 500;
    font-size: 32px;
    line-height: 130%;
    color: var(--color-dark);
}

.services-item__description {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--color-grey);
}

.dragging {
    opacity: 0.5;
}

.footer {
    padding-top: 90px;
    padding-bottom: 150px;
    background: var(--color-dark);
}

.footer__address {
    margin-bottom: 30px;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--color-grey);
}

.footer__logo {
    display: inline-block;
    margin-bottom: 48px;
}

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

.social__item:not(:last-child) {
    margin-right: 20px;
}

.social__link {
    display: block;
    width: 40px;
    height: 40px;
}

.social__link svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    fill: currentColor;
    color: var(--color-light);
    transition: color 0.3s ease-in-out;
}

.social__link svg:hover {
    color: var(--color-grey);
}

.footer__title {
    font-weight: 500;
    font-size: 32px;
    line-height: 130%;
    color: var(--color-light);
    margin-bottom: 10px;
}

.footer__form {
    width: 100%;
    position: relative;
}

.footer__input {
    border: none;
    border-bottom: 1px solid var(--color-grey);
    padding: 24px 30px 24px 0;
    width: 100%;
    background-color: transparent;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-light);
}

.footer__input::placeholder {
    color: var(--color-grey);
}

.footer__btn {
    position: absolute;
    right: 0;
    bottom: 24px;
    width: 24px;
    height: 24px;
}

.footer__btn svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--color-light);
    padding: 20px;
    border-radius: 5px;
    position: relative;
    width: 80%;
    max-width: 500px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
}


@media (max-width: 768px) {
    .header__container {
        flex-direction: column;
    }

    .header__controls {
        margin-top: 30px;
        padding-bottom: 10px;
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .hero__title {
        font-size: clamp(50px, 10vw, 70px);
        line-height: 84px;
    }

    .grid {
        grid-template-columns: auto;
        row-gap: 40px;
    }

    :root {
        --offset: 60px
    }

    .offer-item--reverse .offer-item__col:first-child {
        order: 1
    }

    .offer-item--reverse .offer-item__col:last-child {
        order: 2
    }

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

@media (max-width: 576px) {
    .hero {
        height: auto;
        min-height: auto;
        padding-top: 200px;
    }

    .hero .btn {
        margin-bottom: 20px;
    }

    .about__item:not(:last-child) {
        margin-bottom: 30px;
    }

    .about__title {
        margin-bottom: 30px;
        font-size: 30px;
        line-height: 44px;
    }

    .quote__text {
        font-size: 26px;
        line-height: 40px;
    }
}