:root {
  --color-midnight: #102542;
  --color-ocean: #2c4251;
  --color-gold: #f18701;
  --color-lilac: #9792e3;
  --color-ivory: #f6f7eb;
  --color-white: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.72);
  --font-sans: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --shadow-soft: 0 20px 60px rgba(16, 37, 66, 0.18);
  --shadow-header: 0 10px 40px rgba(10, 20, 35, 0.25);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ivory);
  background: radial-gradient(circle at top left, rgba(151, 146, 227, 0.35), transparent 45%),
    linear-gradient(140deg, rgba(16, 37, 66, 0.95), rgba(44, 66, 81, 0.92) 55%, rgba(16, 37, 66, 0.85));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-gold);
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.background__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  transform: translate3d(0, 0, 0);
}

.background__shape--one {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: var(--color-lilac);
}

.background__shape--two {
  width: 360px;
  height: 360px;
  bottom: -140px;
  left: -100px;
  background: rgba(241, 135, 1, 0.7);
}

.background__shape--three {
  width: 280px;
  height: 280px;
  top: 30%;
  left: 45%;
  background: rgba(16, 37, 66, 0.75);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 5vw, 48px) 16px;
  backdrop-filter: blur(18px);
  background: rgba(16, 37, 66, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-header);
}

.brand img {
  display: block;
  width: auto;
  height: 44px;
}

.language-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.language-button {
  border: 0;
  background: transparent;
  color: var(--color-ivory);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-button:hover,
.language-button:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.language-button.is-active {
  background: var(--color-gold);
  color: var(--color-midnight);
  box-shadow: 0 6px 14px rgba(241, 135, 1, 0.35);
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
  width: min(1100px, 92vw);
  margin: 100px auto 56px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero__lead {
  margin: 0;
  max-width: 560px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--color-muted);
}

.hero__highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.hero__highlights li {
  position: relative;
  padding-left: 36px;
  font-weight: 500;
}

.hero__highlights li::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-lilac));
  box-shadow: 0 8px 18px rgba(151, 146, 227, 0.35);
}

.hero__highlights li::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 7px;
  width: 8px;
  height: 12px;
  border: 2px solid var(--color-midnight);
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
}

.form-card {
  background: var(--color-white);
  color: var(--color-midnight);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(151, 146, 227, 0.15), rgba(241, 135, 1, 0.18));
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.form-card > * {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.card-header h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.card-header p {
  margin: 0;
  color: rgba(16, 37, 66, 0.7);
  font-size: 1rem;
}

form {
  display: grid;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(16, 37, 66, 0.85);
}

.form-field input[type='text'],
.form-field input[type='email'] {
  border: 1px solid rgba(16, 37, 66, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(246, 247, 235, 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field input[type='file'] {
  border: 1px dashed rgba(16, 37, 66, 0.25);
  border-radius: 14px;
  padding: 18px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: rgba(16, 37, 66, 0.75);
  cursor: pointer;
  background: rgba(246, 247, 235, 0.6);
  transition: border-color 160ms ease, background 160ms ease;
}

.form-field input[type='text']:focus,
.form-field input[type='email']:focus,
.form-field input[type='file']:focus {
  outline: none;
  border-color: rgba(151, 146, 227, 0.8);
  box-shadow: 0 0 0 4px rgba(151, 146, 227, 0.25);
  background: var(--color-white);
}

.form-field input[type='file']::file-selector-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-right: 16px;
  background: linear-gradient(135deg, var(--color-gold), #ffb84c);
  color: var(--color-midnight);
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.form-field input[type='file']::file-selector-button:hover {
  transform: translateY(-1px);
}

.field-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(16, 37, 66, 0.6);
}

.form-field--error input {
  border-color: rgba(223, 68, 68, 0.8);
  box-shadow: 0 0 0 4px rgba(223, 68, 68, 0.14);
}

.form-message {
  display: none;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-success {
  background: rgba(72, 188, 134, 0.15);
  color: #176b4d;
  border: 1px solid rgba(72, 188, 134, 0.4);
}

.form-message.is-error {
  background: rgba(223, 68, 68, 0.14);
  color: #8d1f1f;
  border: 1px solid rgba(223, 68, 68, 0.4);
}

.form-message.is-info {
  background: rgba(151, 146, 227, 0.14);
  color: #3c348c;
  border: 1px solid rgba(151, 146, 227, 0.4);
}

.submit-button {
  border: 0;
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-midnight);
  background: linear-gradient(135deg, var(--color-gold), #ffb84c);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 160ms ease, filter 160ms ease;
  box-shadow: 0 18px 30px rgba(241, 135, 1, 0.3);
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(241, 135, 1, 0.32);
  outline: none;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.privacy-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: rgba(16, 37, 66, 0.6);
  text-align: center;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(960px, 90vw);
  margin: auto auto 32px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(241, 135, 1, 0.6);
}

.site-footer a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
  .page {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 88px;
  }

  .hero {
    align-items: flex-start;
  }

  .form-card {
    margin-bottom: 16px;
  }
}

@media (max-width: 680px) {
  .site-header {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }

  .brand img {
    height: 40px;
  }

  .page {
    width: min(520px, 92vw);
    margin-top: 72px;
  }

  .hero__title {
    font-size: clamp(2.1rem, 10vw, 2.4rem);
  }

  .language-toggle {
    align-self: flex-end;
  }
}

@media (max-width: 520px) {
  .language-toggle {
    align-self: stretch;
    justify-content: space-between;
  }

  .language-button {
    flex: 1 1 0;
    text-align: center;
  }

  .site-header {
    padding-inline: 20px;
  }

  .form-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
