/* #region reset css */
* {
    padding: 0;
    margin: 0;
    border: 0;
}

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

html,body {
    line-height: 1;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

nav,footer,header,aside,picture {
    display: block;
}

input, button, textarea {
    font-family: inherit;
}

img, video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

button {
    background-color: transparent;
    cursor: pointer;
    color: inherit;
}

button[disabled] {
    cursor: default;
}
/* #endregion reset css */

/* #region base */
:root {
    --height-header: 64px;

    --z-index-header: 100;
    --z-index-socials-widget: 110;
    --z-index-nav-block: 150;
    --z-index-gallery: 200;
    --z-index-dialog: 250;
}

html {
    background-color: #FFFFFF;
    overscroll-behavior-y: none; /* убирает эффект отскока при скроллинге */
    scroll-behavior: smooth;
}

body {
    color: #001727;
    font-family: "Inter", sans-serif;
    /* -webkit-font-smoothing: antialiased; */
}

body.overflow-hidden,
html.overflow-hidden {
	overflow: hidden;
    touch-action: none;
}

.container {
    min-width: 320px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 19px;
}

section h2 {
    color: #2C2F3D;
    font-family: "AKONY";
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0;
}

@media (min-width: 375px) {
    section h2 {
        font-size: 25px;
        line-height: 120%;
        letter-spacing: 0;
    }
}

@media (min-width: 393px) {
    section h2 {
        font-size: 26px;
    }
}

@media (min-width: 1024px) {
    section h2 {
        font-size: 42px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 60px;
    }
}

@media (min-width: 1400px) {
    .container {
        padding: 0;
    }
}
/* #endregion base */

/* #region utilities */
.sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.position-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

@keyframes lds-ring {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
/* #endregion utilities */

/* #region elements */
.btn {
    padding: 0 16px;
    width: 100%;
    height: 46px;
    font-weight: 600;
    font-size: 14px;
    line-height: 90%;
    letter-spacing: 1.4px;
    position: relative;
}

a.btn {
    align-items: center;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.btn__loading,
.btn__success {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: none;
}

.btn__loading img,
.btn__success img {
	width: 100%;
}

.btn__loading {
	width: 32px;
	height: 32px;
}

.btn--loading .btn__loading {
	display: block;
}

.btn__loading img {
	animation: lds-ring 1.2s linear infinite;
}

.btn__success {
	width: 30px;
	height: 30px;
}

.btn--success .btn__success {
	display: block;
}

.btn--success span,
.btn--loading span {
	opacity: 0;
}

.btn--white {
    background-color: #FFFFFF;
    color: #2C2F3D;
}

.btn--blue {
    background-color: #6C92DB;
    color: #FFFFFF;
}

.btn--black-border {
    background-color: transparent;
    border: 1px solid #2C2F3D;
    color: #2C2F3D;
}

.btn--white-border {
    background-color: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
}

@media (min-width: 375px) {
    .btn {
        height: 56px;
        font-size: 18px;
        line-height: 90%;
        letter-spacing: 1.8px;
    }
}

.nav-item {
    border: 1px solid #2C2F3D;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    flex: 0 1 64px;
    position: relative;
}

.nav-item--prev {
    transform: rotate(180deg);
}

.nav-item img {
    width: 11.4px;
}

@media (min-width: 375px) {
    .nav-item {
        width: 78px;
        height: 78px;
        flex: 0 1 78px;
    }

    .nav-item img {
        width: 14px;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.form-field label {
    font-weight: 300;
    font-size: 14px;
    line-height: 110%;
    letter-spacing: 1.4px;
}

.form-field--light label {
    color: #FFFFFF;
}

.form-field--dark label {
    color: #2C2F3D;
}

.form-field__input {
    border-width: 1px;
    border-style: solid;
    background-color: transparent;
    font-size: 14px;
    height: 44px;
    padding: 0 12px;
    width: 100%;
}

.form-field--light .form-field__input {
    border-color: #B3BFC8;
    color: #ffffff;
}

.form-field--dark .form-field__input {
    border-color: #2C2F3D;
    color: #2C2F3D;
}

.form-field__input--error {
    border-color: red !important;
}

.form-file-field {
    display: none;
}

@media (min-width: 375px) {
    .form-field label {
        font-weight: 300;
        font-size: 16px;
        line-height: 110%;
        letter-spacing: 1.6px;
    }

    .form-field__input {
        height: 60px;
        font-size: 16px;
    }
}

.form-policy {
    font-size: 10px;
    line-height: 100%;
    letter-spacing: 1px;
    text-align: center;
}

@media (min-width: 375px) {
    .form-policy {
        font-size: 12px;
    }
}
/* #endregion elements */

/* #region .header */
.header {
    color: #ffffff;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    padding: 24px 0 12px;
}

.header--active.header {
    background-color: #212121;
}

@supports (backdrop-filter: blur(4px)) {
    .header--active.header {
        background-color: rgba(33, 33, 33, 0.8);
        backdrop-filter: blur(4px);
    }
}

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

.header-logo {
    width: 114px;
    display: block;
    flex: 0 1 114px;
}

.header-mobile-phone {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 1 26px;
}

.header-phone {
    color: inherit;
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 1.6px;
    text-decoration: none;
    display: none;
}

@media (min-width: 375px) {
    .header-logo {
        width: 140px;
        flex: 0 1 140px;
    }

    .header-mobile-phone {
        width: 32px;
        height: 32px;
        flex: 0 1 32px;
    }
}

@media (min-width: 768px) {
    .header {
        padding: 32px 0 16px;
    }

    .header-logo {
        width: 150px;
        flex: 0 1 150px;
    }

    .header-mobile-phone {
        display: none;
    }

    .header-phone {
        display: block;
    }
}
/* #endregion .header */

/* #region .footer */
.footer {
    background-color: #151415;
    color: #ffffff;
    padding: 60px 0;
}

.footer__body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-phone {
    color: inherit;
    font-weight: 300;
    font-size: 16px;
    line-height: 90%;
    letter-spacing: 0;
    text-decoration: none;
}

.footer-phone:hover {
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-socials__item {
    border: 0.42px solid #FFFFFF;
    border-radius: 50%;
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 1 24px;
}

.footer-socials__item img {
    width: 12.5px;
}

.footer-line {
    background-color: #ffffff;
    opacity: 0.1;
    margin: 32px 0;
    width: 100%;
    height: 1px;
}

.footer-logo {
    display: block;
    max-width: 163px;
}

@media (min-width: 375px) {
    .footer-phone {
        font-size: 18px;
        line-height: 90%;
    }

    .footer-line {
        margin: 40px 0;
    }

    .footer-logo {
        max-width: 200px;
    }
}

@media (min-width: 768px) {
    .footer__body {
        gap: 24px;
    }

    .footer__contacts {
        align-items: center;
        position: relative;
        display: flex;
        justify-content: center;
        gap: 110px;
        padding-top: 32px;
    }

    .footer-phone {
        order: 1;
    }

    .footer-socials {
        order: 3;
        margin: 0;
    }

    .footer-line {
        margin: 0;
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
    }

    .footer-logo {
        order: 2;
        max-width: 180px;
    }
}

@media (min-width: 1024px) {
    .footer-phone {
        font-size: 16px;
    }

    .footer-logo {
        max-width: 160px;
    }
}
/* #endregion .footer */

/* #region .dialog */
.dialog {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 150;
    padding: 0 16px;
}

.dialog--open {
    display: flex;
}

.dialog,
.dialog__backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.dialog__backdrop {
    background-color: rgba(0, 0, 0, .6);
    backdrop-filter: blur(12px);
}

.dialog__content {
    position: relative;
    z-index: 2;
    overflow: auto;
    padding: 32px 0 24px;
}

.dialog__close {
    border-radius: 50%;
    position: absolute;
    top: 0px;
    right: 0px;
    width: 24px;
    height: 24px;
    outline: none;
    z-index: 20;
}

.dialog__close svg {
    cursor: pointer;
    width: 10px;
    height: 10px;
}

@media (min-width: 1024px) {
    .dialog__content {
        padding: 0;
    }

    .dialog__close {
        top: 19px;
        right: 19px;
    }
}
/* #endregion .dialog */

/* #region .dialog-callback */
.dialog-callback {
    background-color: #FFFFFF;
    width: 290px;
    position: relative;
    overflow: hidden;
}

.dialog-callback__content {
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dialog-callback__head {
    color: #2C2F3D;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 16px;
}

.dialog-callback__head h2,
.dialog-callback__head h3 {
    font-family: "AKONY";
    font-weight: 700;
    line-height: 120%;
    letter-spacing: 0;
}

.dialog--consultation .dialog-callback__head h2 {
    font-size: 14px;
}

.dialog--project .dialog-callback__head h2,
.dialog--personal-offer .dialog-callback__head h2,
.dialog--dp-file .dialog-callback__head h2 {
    font-size: 20px;
}

.dialog--project .dialog-callback__head h3,
.dialog--personal-offer .dialog-callback__head h3 {
    font-size: 14px;
}

.dialog-callback__head p {
    font-size: 14px;
    line-height: 120%;
    letter-spacing: 1.4px;
}

.dialog-callback__form .form-field + .form-field {
    margin-top: 6px;
}

.dialog-callback__form .form__submit {
    margin-top: 22px;
}

.dialog-callback__form .form-policy {
    margin-top: 16px;
}

.dialog-callback__picture {
    display: none;
    position: relative;
}

.dialog-callback__picture picture {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.dialog-callback__picture picture img {
    height: 100%;
    object-fit: cover;
}

.dialog-callback__file label {
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialog-callback__file label span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

@media (min-width: 375px) {
    .dialog-callback {
        width: 361px;
    }

    .dialog--consultation .dialog-callback__head h2 {
        font-size: 18px;
    }

    .dialog--project .dialog-callback__head h2,
    .dialog--personal-offer .dialog-callback__head h2 {
        font-size: 28px;
    }

    .dialog--dp-file .dialog-callback__head h2 {
        font-size: 30px;
    }

    .dialog--project .dialog-callback__head h3,
    .dialog--personal-offer .dialog-callback__head h3 {
        font-size: 18px;
    }

    .dialog-callback__head p {
        font-size: 16px;
        line-height: 120%;
        letter-spacing: 1.6px;
    }
}

@media (min-width: 1024px) {
    .dialog-callback {
        width: 820px;
        display: flex;
    }

    .dialog-callback__content {
        flex: 0 1 460px;
        max-width: 460px;
        padding: 40px;
    }

    .dialog--consultation .dialog-callback__head h2 {
        font-size: 22px;
    }

    .dialog--project .dialog-callback__head h2,
    .dialog--personal-offer .dialog-callback__head h2 {
        font-size: 33px;
    }

    .dialog--project .dialog-callback__head h3,
    .dialog--personal-offer .dialog-callback__head h3 {
        font-size: 21px;
    }

    .dialog-callback__head p {
        font-size: 15px;
        letter-spacing: 1.5px;
    }
    
    .dialog-callback__picture {
        display: block;
        flex: 1;
    }

    .dialog-callback__head {
        text-align: left;
    }

    .dialog--dp-file .dialog-callback__head {
        text-align: center;
    }
}

@media (min-width: 1200px) {
    .dialog-callback {
        width: 880px;
    }
}

@media (min-width: 1600px) {
    .dialog-callback {
        width: 1095px;
    }

    .dialog-callback__content {
        flex: 0 1 572px;
        max-width: 572px;
    }

    .dialog-callback__head {
        gap: 24px;
    }

    .dialog--consultation .dialog-callback__head h2 {
        font-size: 28px;
    }

    .dialog--project .dialog-callback__head h2,
    .dialog--personal-offer .dialog-callback__head h2 {
        font-size: 40px;
    }

    .dialog--project .dialog-callback__head h3,
    .dialog--personal-offer .dialog-callback__head h3 {
        font-size: 28px;
    }

    .dialog-callback__head p {
        font-size: 18px;
        letter-spacing: 1.8px;
    }
}
/* #endregion .dialog-callback */


