@font-face {
    font-family: 'Jost';
    src: url("/assets/fonts/Jost-ExtraLight.ttf") format('truetype');
    font-weight: 200;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url("/assets/fonts/Jost-Light.ttf") format('truetype');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url("/assets/fonts/Jost-Regular.ttf") format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url("/assets/fonts/Jost-Medium.ttf") format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url("/assets/fonts/Jost-SemiBold.ttf") format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url("/assets/fonts/Jost-Bold.ttf") format('truetype');
    font-weight: 700;
    font-display: swap;
}

html {
    font-size: 16px;
}

:root {
    --white: #fff;
    --black: #0c0e0f;
    --gray: #868687;
}

body {
    margin: 0;
    font: 1rem/1.5 'Jost', sans-serif;
    font-weight: 400;
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--white);
}

body.no-scroll {
    overflow: hidden;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

p {
    margin: 0;
    padding: 0 0 10px;
}

.img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.container {
    width: 100%;
    max-width: 1472px;
    margin: 0 auto;
    padding: 0 3rem;
}

.line {
    margin: .7rem 0;
    width: 0%;
    height: 1px;
    display: block;
    background-color: var(--black);
    transition: width 1s ease;
}

/* Animate line
====================*/
.animate .line {
    width: 100%;
}

.animate .line._01 {
    transition-delay: 0s;
}

.animate .line._02 {
    transition-delay: .3s;
}

.animate .line._03 {
    transition-delay: .6s;
}

/* Header
====================*/
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
}

.header__inner {
    height: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    font-size: 1rem;
}

.header__item {
    text-align: center;
}

.header__item.tel {
    justify-self: end;
}

.header__logo {
    width: 100px;
    font-size: 1.1rem;
    color: var(--black);
    text-decoration: none;
}

.header__logo span {
    color: var(--gray);
}

.header__tel {
    color: var(--black);
    text-align: end;
    text-decoration: none;
}

/* Nav
====================*/
.nav {
    display: flex;
    gap: 2rem;
}

.nav__link {
    width: max-content;
    color: var(--black);
    text-decoration: none;
    position: relative;
}

.nav__link:before {
    content: "";
    display: block;
    width: 0%;
    height: 1px;
    background-color: var(--black);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    transition: width .3s ease;
}

.nav__link:hover.nav__link:before {
    width: 100%;
}

.nav__link--tel {
    display: none;
}

.nav__bg {
    display: none;
}

/* Burger
====================*/
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    padding: 0;
    color: transparent;
    background: none;
    border: none;
}

.burger__line {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--black);
}

/* Portfolio
====================*/
.portfolio {
    margin: 100px 0;
}

.portfolio__inner {
    display: grid;
    grid-gap: 100px;
}

.portfolio__item {
    display: grid;
    grid-template-columns: 25% 1fr;
    grid-gap: 2rem;
}

.portfolio__content {
    padding-top: 1rem;
}

.portfolio__title {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.1;
}

.portfolio__text {
    padding: 0;
    margin-bottom: 2rem;
}

.portfolio__photo {
    display: grid;
    grid-template-columns: 70% 1fr;
    grid-gap: 2rem;
}

.portfolio__right {
    display: grid;
    grid-gap: 2rem;
    align-content: space-between;
}

.portfolio__right-photo {
    display: grid;
    grid-gap: 2rem;
}

.portfolio__img .img {
    cursor: pointer;
}

.portfolio__info-text {
    display: flex;
    justify-content: space-between;
}

/* Expanded img
=====================*/
.expanded-img {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(12, 14, 15, .8);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1010;
}

.expanded-img img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
}

/* Circle
====================*/
.image-container {
    position: relative;
    overflow: hidden;
}

.circle {
    position: absolute;
    width: 55px;
    height: 55px;
    padding: .8rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.1);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.23, 0.96, 1, 1);
    will-change: transform, opacity;
}

.image-container:hover .circle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.circle__img-arrow {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Btn
====================*/
.btn {
    display: inline-block;
    padding: 0;
    font: 1rem/1 'Jost', sans-serif;
    color: var(--black);
    border: none;
    background: none;
    cursor: pointer;
}

.btn__arrow {
    width: max-content;
    padding: 1rem;
    display: flex;
    align-items: center;
    grid-gap: 1rem;
    text-decoration: none;
    background-color: rgba(12, 14, 15, .05);
}

.btn__arrow span {
    width: max-content;
    display: block;
    overflow: hidden;
}

.btn__img-arrow {
    display: block;
    width: 30px;
    height: 10px;
}

.btn__arrow:hover .btn__img-arrow {
    animation: translateX .7s ease;
}

@keyframes translateX {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(100%);
        opacity: 0;
    }
    50% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.btn--form {
    margin-top: 1rem;
    padding: 1rem;
    color: var(--white);
    background-color: var(--black);
}

.btn--form-group {
    height: 1.1rem;
    display: flex;
    flex-direction: column;
    grid-gap: 1px;
    overflow: hidden;
}

.btn--form-group span {
    transition: transform .3s ease;
}

.btn--form:hover .btn--form-group span {
    transform: translateY(-105%);
}

.btn--cookie {
    margin: 0;
}

/* Request form
====================*/
.request-form {
    padding: 3rem;
    background-color: rgba(12, 14, 15, .02);
}

.request-form--header {
    margin-bottom: 3rem;
}

.request-form--header.no-margin {
    margin: 0;
}

.request-form--title {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 8vw, 2rem);
    font-weight: 400;
    line-height: 1.1;
}

.request-form--title br {
    display: none;
}

.request-form--text {
    font-size: 1rem;
}

/* Form
====================*/
.form {
    display: grid;
    grid-gap: 1rem;
}

.form__policy {
    font-size: clamp(13px, 2.5vw, 16px);
    font-weight: 300;
    text-align: center;
}

.form__policy-link {
    color: var(--black);
}

/* Input
====================*/
.input {
    display: block;
    width: 100%;
    padding: 1rem;
    font: 1.2rem/1 'Jost', sans-serif;
    color: var(--black);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(12, 14, 15, 1);
    border-radius: 0;
    appearance: none;
    box-shadow: none;
}

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

/* File Upload
====================*/
.file-upload {
    display: flex;
    width: 100%;
    min-height: 190px;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .5rem;
    border: 1px dashed #999;
    cursor: pointer;
    text-align: center;
    transition: border-color .3s ease;
}

.file-upload:hover {
    border-color: var(--black);
}

.file-upload:focus-within {
    outline: 2px solid var(--black);
    outline-offset: 3px;
}

.file-upload__input {
    width: 1px;
    height: 1px;
    opacity: 0;
    position: absolute;
}

.file-upload__plus {
    font-size: 3rem;
    font-weight: 200;
    line-height: 1;
    color: var(--black);
}

.file-upload__title {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.file-upload__text {
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--gray);
}

.file-upload__name {
    margin-top: .5rem;
    font-size: .9rem;
    color: var(--gray);
    overflow-wrap: anywhere;
}

.file-upload__name:not([hidden]) {
    display: block;
    color: #16803c;
    font-weight: 500;
}

.file-upload--selected {
    border-color: #16803c;
    background-color: #27df691a;
}

/* Footer
====================*/
.footer {
    margin: 100px 0 0;
    background-color: rgba(12, 14, 15, .02);
}

.footer__inner {
    padding: 100px 0;
    display: grid;
    grid-template-columns: 40% 1fr;
}

.footer__logo-name {
    margin-bottom: 2rem;
    display: inline-block;
    color: var(--black);
    text-decoration: none;
}

.footer__logo-name span {
    color: var(--gray);
}

.footer__contact:not(:last-child) {
    padding-bottom: 1rem;
}

.footer__contact-tel {
    color: var(--black);
    text-decoration: none;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 4rem;
}

.footer__title {
    margin-bottom: 2rem;
    color: var(--gray);
}

.footer__link {
    display: inline-block;
    color: var(--black);
    text-decoration: none;
    overflow: hidden;
}

.footer__link-group {
    width: max-content;
    height: 1.1rem;
    display: flex;
    flex-direction: column;
    grid-gap: 3px;
    line-height: 1;
    transition: transform .3s ease;
}

.footer__link:hover .footer__link-group {
    transform: translateY(-105%);
}

/* Widget
====================*/
.widget {
    display: none;
    width: 100%;
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 3;
    transform: translateY(100px);
    transition: transform .5s ease-in-out;
}

.widget--show {
    transform: translateY(0);
}

.widget__inner {
    display: flex;
    margin: 1rem;
    grid-gap: 1rem;
}

.widget__call,
.widget__calculate {
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    gap: .25rem;
    flex: 1;
    min-width: 0;
    border-radius: .7em;
    padding: .7rem;
    color: var(--white);
    text-decoration: none;
    background-color: var(--black);
}

.widget__title {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--white);
}

.widget__phone,
.widget__text {
    font-size: .8rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, .6);
    white-space: nowrap;
}

.widget__text {
    font-size: .86rem;
    line-height: 1;
}

/* Modals
=====================*/
.modal {
    display: none;
    width: 100%;
    height: 100%;
    padding: 3rem;
    background-color: rgba(12, 14, 15, .8);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal__dialog {
    width: 100%;
    max-width: 750px;
    margin: auto;
    position: relative;
    background-color: var(--white);
    opacity: 0;
    transform: translateY(80px);
    transition: all .3s ease;
}

.modal__close {
    width: 30px;
    height: 30px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    transition: transform .3s ease-in-out;
}

.modal__close:hover {
    transform: rotate(45deg);
}

.modal__close:before,
.modal__close:after {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--black);
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 1;
    transform: translateY(-50%) rotate(45deg);
}

.modal__close:after {
    transform: rotate(-45deg);
}

/* Checkbox
=====================*/
.checkbox {
    font-size: clamp(14px, 3vw, 1rem);
    padding: 1rem;
    display: flex;
    gap: 10px;
    accent-color: var(--black);
    cursor: pointer;
    background: rgba(12, 14, 15, .08);
}

.checkbox__input {
    width: 25px;
    height: 25px;
    margin: 3px 0;
    cursor: pointer;
}

/* Cookie
=====================*/
.cookie {
    padding: 3rem;
    display: none;
    align-items: center;
    gap: 3rem;
    background: #e7e7e8;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1001;
}

.cookie--show {
    display: flex;
}

.policy__link {
    color: var(--black);
}

/* Media
=====================*/
@media (max-width: 1200px) {
    /* Portfolio */
    .portfolio__item {
        height: auto;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    /* Header
    =====================*/
    .header__tel {
        display: none;
    }

    .header__inner {
        position: relative;
    }

    /* Nav
    =====================*/
    .nav {
        display: flex;
        width: 100%;
        height: auto;
        min-height: calc(100vh - 140px);
        flex-direction: column;
        justify-content: center;
        grid-gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 2;
        opacity: 0;
        pointer-events: none;
    }

    .nav.show {
        opacity: 1;
        pointer-events: all;
    }

    .nav__link {
        width: 100%;
        font-size: 1.25rem;
        overflow: hidden;
    }

    .nav__link:before {
        display: none;
    }

    .nav__link span {
        display: block;
        transform: translateY(100%);
        transition: transform .5s ease;
    }

    .nav.show .nav__link span {
        transform: translateY(0);
        transition-delay: .7s;
    }

    .nav__link--tel {
        display: block;
    }


    .nav__bg {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        position: absolute;
        top: 100%;
        left: -2rem;
        right: -2rem;
        z-index: 1;
        overflow: hidden;
        pointer-events: none;
    }

    .nav__line {
        display: block;
        width: 100%;
        height: 100vh;
        background-color: #f8f8f8;
        transform: translateY(-100%);
        transition: transform .5s ease-in-out;
    }

    .nav__bg.show .nav__line {
        transform: translateY(0);
    }

    .nav__bg.show .nav__line._01 {
        transition-delay: .3s;
    }

    .nav__bg.show .nav__line._02 {
        transition-delay: 0s;
    }

    .nav__bg.show .nav__line._03 {
        transition-delay: .2s;
    }

    .nav__bg.show .nav__line._04 {
        transition-delay: .5s;
    }

    /* Burger
    =====================*/
    .burger {
        display: flex;
        position: relative;
    }

    .burger__line {
        margin-left: auto;
        transition: all .3s ease-in-out;
    }

    .burger.active .burger__line:nth-child(2) {
        width: 0%;
    }

    .burger.active .burger__line:nth-child(1) {
        transform-origin: right;
        transform: rotate(-39deg);
        transition-delay: .2s;
    }

    .burger.active .burger__line:nth-child(3) {
        transform-origin: right;
        transform: rotate(39deg);
        transition-delay: .2s;
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        grid-gap: 4rem;
    }
}

@media (max-width: 850px) {
    /* Portfolio */
    .portfolio__photo {
        grid-template-columns: 1fr;
    }

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

    .portfolio__right-photo {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio__info {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
}

@media (max-width: 600px) {
    /* Container */
    .container {
        padding: 0 2rem;
    }

    /* Circle */
    .circle {
        display: none;
    }

    /* Request form */
    .request-form {
        padding: 2rem;
    }

    /* Footer */
    .footer__content {
        grid-template-columns: 1fr;
    }

    /* Cookie */
    .cookie {
        flex-direction: column;
        align-items: normal;
    }
}

@media (max-width: 500px) {
    /* Portfolio */
    .portfolio__right {
        grid-template-columns: auto;
    }

    /* Request-form */
    .request-form--title br {
        display: block;
    }

    /* Widget */
    .widget {
        display: block;
    }

    /* Modal */
    .modal {
        padding: 0;
    }

    /* Cookie */
    .cookie {
        padding: 2rem;
    }
}

@media (max-width: 430px) {
    /* Container */
    .container.no-padding {
        padding: 0;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 1.5rem;
    }

    .request-form {
        padding: 1.5rem;
    }

    .widget__call,
    .widget__calculate {
        padding: .5rem;
        gap: .20rem;
    }
}

@media (max-width: 393px) {
    .widget__inner {
        margin: 0 .5rem 1rem;
        grid-gap: .5rem;
    }
}
