@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@400;500;600&display=swap');

body {
    font-family: 'Commissioner', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

@media (max-width: 1023px) {
    body {
        overflow: hidden;
        height: 100dvh;
    }
}

.main-content {
  display: flex;
  padding: 0 32px;
  gap: 48px;
  max-width: 1440px;
  margin: auto;
  width: 100%;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .main-content {
    flex: 1;
  }
}

.content-left {
  width: 540px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.headline {
  font-family: 'Commissioner', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 100%;
  background: linear-gradient(90deg, rgba(27, 23, 103, 1) 0%, rgba(33, 27, 141, 1) 48%, rgba(54, 46, 205, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.mobile-image {
  width: 100%;
  height: auto;
  display: none;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 1023px) {
  .form-fields {
    gap: 16px;
  }
}

.field-wrapper {
  display: flex;
  flex-direction: column;
}

.field-label {
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1em;
  letter-spacing: -0.04em;
  color: #282D32;
}

.button-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.button-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.back-button {
  flex-shrink: 0;
}

.cabinet-btn {
  background: #4B40FB;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: 'Commissioner', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.223em;
  text-transform: uppercase;
  width: 100%;
  height: 40px;
  flex-shrink: 0;
  max-width: calc(100% - 48px - 16px);
}

.cabinet-btn.cabinet-btn-full {
  max-width: 100%;
}

.cabinet-btn:hover {
  opacity: 0.9;
}

@media (max-width: 1023px) {
  .cabinet-btn {

    width: 100%;
  }
}

.content-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.main-image {
  width: 100%;
  max-width: 990px;
  height: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
}

/* Mobile styles */
@media (max-width: 1023px) {
  .mobile-image {
    display: none;
  }

  .bg-image {
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: 16px;
    justify-content: space-between;
    overflow: hidden;
  }

  .main-content {
    padding: 16px;
    margin-top: 0;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    flex: 1;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .content-left {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    height: 100%;
  }

  .text-section {
    gap: 48px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }

  .headline-mobile {
    font-size: 32px;
    text-align: center;
  }

  .button-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .button-group {
    width: 100%;
  }
}

.header {
  display: flex;
  align-items: center;
  margin: 16px;
  gap: 32px;
  padding: 0;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 1023px) {
  .header {
    justify-content: space-between;
  }
}

@media (min-width: 1280px) {
  .header {
    margin: 24px 32px;
    gap: 64px;
  }
}

@media (min-width: 1536px) {
  .header {
    margin: 32px 48px;
  }
}

.bg-image {
    background: linear-gradient(215deg, rgba(234, 235, 255, 1) 50%, rgba(255, 255, 255, 1) 100%);
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 32px;
}

@media (min-width: 1024px) {
    .bg-image {
        justify-content: space-between;
    }
}

.rounded-input .q-field__control {
    border-radius: 8px;
}

.margin-small {
    padding: 16px;
}



.btn-large {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1em;
    text-transform: uppercase;
}

.btn-middle {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1em;
    text-transform: uppercase;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
}


.menu {
    display: flex;
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 328px;
    background: linear-gradient(245.62deg, #EAEBFF 38.68%, #FFFFFF 104.52%);
    z-index: 1000;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    transition: top 0.3s ease-in-out;
    padding: 16px;
}

.menu.open {
    top: 0;
}

.menu-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding-bottom: 8px;
    padding-top: 0;
}

.menu-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    height: 55px;
}

.menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 0;
    padding-top: 8px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.link-style {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1em;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
}

.link-style:hover {
    opacity: 0.7;
}


.icon {
    color: #4B40FB;
}

.font-golos {
    font-family: 'Commissioner', sans-serif;
}

.violet-color {
    background-color: #4B40FB;
}

.grey-color {
    color: #282D32;
}

.icon-wrapper {
    position: relative;
    display: inline-block;
}

.link-mb {
    margin-bottom: 6px;
}

.icon-wrapper:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(75,64,251,0.2), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.q-input {
    font-family: 'Commissioner', sans-serif;
}

.q-field__label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #282D32;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  left: 32px;
  width: 540px;
  display: flex;
}

.footer-text {
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.1em;
  letter-spacing: -0.04em;
  color: #000000;
  position: absolute;
  left: 32px;
}

.footer-link {
  font-family: 'Commissioner', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.1em;
  letter-spacing: -0.04em;
  color: #4B40FB;
}

.footer-mobile {
  justify-content: center;
  margin: 0;
  padding: 0;
}

.footer-mobile .footer-text {
  font-size: 16px;
  position: static;
  text-align: center;
}

.footer-mobile .footer-link {
  font-size: 16px;
  position: static;
}
