:root {
    --color-dark: #181E2E;
    --color-accent: #ED1D25;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

html {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    font-family: "Montserrat", "Arial", sans-serif;
    color: var(--color-dark);
}

body {
    width: 100%;
    height: 100%;

    background-color: #fff;
}

.wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: calc(100 * var(--vh, 1vh));}

a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

@font-face {
    font-style: normal;
    font-weight: 400;
    font-family: "Montserrat";

    font-display: swap;
    src:
        url("/fonts/Montserrat-Regular.woff2") format("woff2");
}

@font-face {
    font-style: normal;
    font-weight: 500;
    font-family: "Montserrat";

    font-display: swap;
    src:
        url("../fonts/Montserrat-Medium.woff2") format("woff2");
}

@font-face {
    font-style: normal;
    font-weight: 600;
    font-family: "Montserrat";

    font-display: swap;
    src:
        url("../fonts/Montserrat-SemiBold.woff2") format("woff2");
}

@font-face {
    font-style: normal;
    font-weight: 700;
    font-family: "Montserrat";

    font-display: swap;
    src:
        url("../fonts/Montserrat-Bold.woff2") format("woff2");
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 60px;
}

@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--color-dark);
    font-family: inherit;
    background-color: transparent;
    color: var(--color-dark);
    font-size: 16px;
    line-height: 110%;
    text-align: center;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
    color:  var(--color-accent);
    border-color: var(--color-accent);
}

.logo {
    width: 280px;
    height: 95px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


@media(max-width : 767px) {
    .logo {
        width: 200px;
        height: 70px;
    }
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 5;
}

.hero {
    position: relative;
    min-height: 100vh;
    color: #181e2e;
    padding: 140px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__wrap {
    display: grid;
    gap: 30px;
}

.hero__item {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 30px;
    opacity: 0;
    animation: appear3D 1s forwards;
    transform: translateY(60px) rotateX(30deg) scale(0.9);
}

.hero__item:nth-child(1) { animation-delay: 0.2s; }
.hero__item:nth-child(2) { animation-delay: 0.6s; }
.hero__item:nth-child(3) { animation-delay: 1s; }
.hero__item:nth-child(4) { animation-delay: 1.4s; }

@keyframes appear3D {
  from {
    opacity: 0;
    transform: translateY(60px) rotateX(30deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

.hero__title {
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    margin-bottom: 24px;
}

.hero__text {
    font-size: 16px;
    line-height: 140%;
    opacity: 0;
    animation: opacity 0.5s ease forwards;
}

@keyframes opacity {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero__item:nth-child(1) .hero__text { animation-delay: 0.9s; }
.hero__item:nth-child(2) .hero__text { animation-delay: 1.3s; }
.hero__item:nth-child(3) .hero__text { animation-delay: 1.7s; }

.hero__text p {
    margin: 0 0 10px;
}

.hero__text p:last-child {
    margin: 0;
}

.hero__item .btn {
    margin: 15px 0 0 auto;
    width: 200px;
    opacity: 0;
    animation: opacity 0.5s ease forwards 1s;
}

@media(max-width: 767px) {
    .hero {
        padding: 100px 0 40px; 
    }

    .hero__item {
        padding: 20px;
    }

    .hero__title {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 20px;
    }

    .hero__text {
        font-size: 14px;
    }
}

.paralax {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  width: 120%;
  height:120%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.bg-layer:nth-child(2) {
    opacity: 0.62;
}

.link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    flex-shrink: 0;
}

.link svg {
    width: 30px;
    height: 30px;
}

.link:hover {
    opacity: 0.8;
}

.op-60 {
    opacity: 0.6;
}


.address {
    display:flex;
    align-items: center;
    font-weight: 700;
}

.contact {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
}

.contact__text {
    min-height: 30px;
}

.contact__qr {
    border-radius: 8px;
    border: 2px solid var(--color-accent);
    padding: 3px;
    overflow: hidden;
}

@media(max-width: 767px) {
    .contact {
        flex-direction: column;
        align-items: start;
    }
    
    .contact__qr {
        order: -1;
    }
}


.custom-input,
.custom-textarea {
    position: relative;
    flex: 1;

    display: flex;
    width: 100%;

    font-size: 16px;
    line-height: 18px;
    color: var(--color-dark);
}

.custom-input label,
.custom-textarea label {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.custom-input input,
.custom-textarea textarea {
    width: 100%;
    margin-left: auto;
    padding: 20px;
    font: inherit;
    color: inherit;
    outline: none;
    background-color: transparent;
    transition: border 0.3s ease;
    border: 1px solid var(--color-dark);
    border-radius: 8px;
}

.custom-input input::-webkit-input-placeholder,
.custom-textarea textarea::-webkit-input-placeholder {
    opacity: 0.6;
    color: var(--color-dark);
}

.custom-input input:hover,
.custom-textarea textarea:hover,
.custom-input input:focus,
.custom-textarea textarea:focus {
    border-color: var(--color-accent);
}

.custom-textarea textarea {
    height: 203px;
}

.form {
    display: grid;
    gap: 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 30px;
    opacity: 0;
    animation: appear3D 1s forwards;
    transform: translateY(60px) rotateX(30deg) scale(0.9);
    max-width: 575px;
    margin: 0 auto;
}

.form__title {
    text-align: center;
    font-size: 24px;
    line-height: 120%;
    font-weight: 600;
}

.form__subtitle {
    text-align: center;
    font-size: 20px;
    line-height: 120%;
    margin: 0;
}

.form__btn {
    padding: 20px;
}

@media(max-width: 767px) {
    .form {
        padding: 20px 10px;
    }
    
    .form__title {
        font-size: 20px;
    }
    
    .form__subtitle {
        font-size: 16px;
    }
}


.file-input label {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    width: 100%;
    font: inherit;
    color: inherit;
    font-size: 16px;
    line-height: 140%;
    transition: opacity 0.3s ease;
}

.file-input svg {
    width: 20px;
    height: 20px;
}

.file-input input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(100%);
    clip-path: inset(100%);
}

.file-input label:hover,
.file-input label:focus {
    opacity: 0.8;
}

.file-input ul {
    list-style-type: square;
}

.file-input li {
    display: flex;
    align-items: center;
}

.file-input__remove {
    width: 14px;
    height: 14px;
    background-color: transparent;
    border: none;
    color: inherit;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    transition: opacity 0.3s ease;
}

.file-input__remove:hover {
    opacity: 0.7;
}

.file-input__error {
    font-size: 14px;
    color: var(--color-accent);
}
