* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body, html {
    height: 100%;
    font-family: 'Commissioner', sans-serif;
  }

  body {
    line-height: 1;
  }

  .container {
    display: flex;
    height: 100vh;
  }

  .form-side {
    position: relative;
    width: 50%;
    background: url('../img/bg-left.jpg') center/cover no-repeat;
    color: white;
    padding: 40px;

  }
  .form-side-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 540px;
    margin: auto;
    height: 100%;
  }

  .logo-top {
    position: absolute;
    top: 20px;
    left: 20px;
  }

  .logo {
    text-align: center;
    margin-bottom: 40px;
    /* margin-top: auto; */
    width: 292px;
    height: 150px;
  }

  .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .headline {
    text-align: center;
    margin-bottom: 30px;
    font-size: 40px;
    font-family: 'Cormorant SC', serif;
    font-weight: 400;
    color: #FCCBA1;
  }

  .form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 540px;
  }

  .input-row {
    display: flex;
    gap: 10px;
  }

  .input-row input {
    flex: 1;
  }

  input, textarea {
    padding: 10px 20px;
    font-size: 18px;
    background: rgba(255,255,255,.8);
    border-radius: 6px;
    border: 1px solid #EEB950;
    outline: none;
    color: #5D101E;
    font-family: 'Commissioner';
  }

  textarea {
    resize: none;
    height: 140px;
  }

  button[type="submit"] {
    padding: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 400;
    border-radius: 6px;
    border: 1px solid #D2A751;
    background: #5D101E;
    letter-spacing: 2px;
    color: #FCCBA1;
  }

  button[type="submit"]:hover {
    background-color: #a22b36;
  }

  .description {
    margin-top: 20px;
    font-size: 18px;
    text-align: left;
    opacity: 0.8;
    align-self: flex-start;
    max-width: 474px;
    line-height: 140%;
    margin-top: auto;
  }

  .image-side {
    position: relative;
    width: 50%;
  }
  .swiper {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .swiper-slide::before {
    position: absolute;
    /* content: ''; */
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.89) 100%);
    z-index: 2;
  }

  .swiper-pagination {
    position: absolute;
    right: 20px;
    top: 50%!important;
    left: unset!important;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    width: unset!important;
    height: unset!important;
  }

  .swiper-pagination-bullet {
    background: white;
    border: 2px solid #F8CD5E;
    background: transparent;
    width: 18px;
    height: 18px;
  }

  .swiper-pagination-bullet-active {
    background: #F8CD5E;
  }

  .more-btn {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 6px;
    border: 2px solid #B86A10;
    background: rgba(255, 255, 255, 0.00);
    color: #FCCBA1;
    padding: 12px 88px;
    font-size: 20px;
    z-index: 10;
    cursor: pointer;
    transition: .2s ease-in-out;
    white-space: nowrap;
    display: none;
  }

  .more-btn:hover {
    background: #B86A10;
  }

  @media (max-width: 1650px) {
    .logo {
        width: 200px;
        height: 100px;
        margin-bottom: 20px;
    }
    .headline {
        font-size: 24px;
    }
    input, textarea {
        font-size: 16px;
    }
    textarea {
        height: 100px;
    }
    button[type="submit"] {
        font-size: 16px;
        padding: 12px;
    }
    .more-btn {
        font-size: 16px;
    }
  }

  @media (max-width: 1240px) {
    .container {
        height: unset;
        display: flex;
        flex-direction: column;
    }
    .form-side-wrapper {
        max-width: 375px;
    }
    .input-row {
        flex-direction: column;
        gap: 15px;
    }
    .form-side {
        width: 100%;
        padding: 40px 16px;
    }
    .description {
        margin-top: 20px;
        font-size: 14px;
        max-width: 380px;
    }
    .image-side {
        width: 100%;
        height: 70dvh;
    }
  }

  @media (max-width: 576px) {
    .logo-top {
      width: 100px;
    }
    .logo-top img {
      width: 100%;
      object-fit: contain;
    }
  }



/* Фон модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Затемненный фон */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden; /* Скрываем элемент, когда он невиден */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Переход для плавного исчезновения */
}

/* Показ модального окна */
.modal-overlay.show {
    opacity: 1;
    visibility: visible; /* Показываем элемент */
}

/* Контейнер модального окна */
.custom-modal {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 350px;
    max-width: 90%;
    transform: scale(0.7);
    transition: transform 0.3s ease; /* Переход для плавного увеличения */
}

/* Анимация для показа модального окна */
.modal-overlay.show .custom-modal {
    transform: scale(1);
}

.modal-header {
    background-color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.modal-content {
    padding: 20px;
    font-size: 16px;
    color: #333;
}

.close-btn {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #ffdddd;
}

.rngst_phone_button {
  right: unset!important;
  left: 40%!important;
}

.lang {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FCCBA1;
  top: 20px;
  right: 20px;
  z-index: 2;
  text-decoration: none;
}

.phone {
  position: absolute;
  top: 20px;
  right: 100px;
  color: #FCCBA1;
  font-size: 20px;
  text-decoration: none;
}

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

@media (max-width: 1440px) {
  .rngst_phone_button {
    left: 35%!important;
  }
}

@media (max-width: 1240px) {
  .rngst_phone_button {
    left: unset!important;
    right: 2%!important;
  }
}