.contact-page {
  overflow: clip;
  background: var(--paper);
}

.contact-hero {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(255, 241, 155, 0.45), transparent 28%),
    radial-gradient(circle at top right, rgba(248, 132, 63, 0.18), transparent 24%),
    var(--paper);
  padding: 92px 0 44px;
  overflow: hidden;
}

.contact-hero__content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  padding-inline: 24px;
}

.contact-hero__content h1 {
  margin: 0 0 16px;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
  font-weight: 700;
}

.contact-hero__content p {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.contact-hero__shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.contact-hero__shape--one {
  width: 180px;
  top: 52px;
  left: -52px;
}

.contact-hero__shape--two {
  width: 128px;
  top: 56px;
  right: -34px;
}

.contact-hero__shape--three {
  width: 112px;
  bottom: 18px;
  left: 7%;
}

.contact-form-section {
  background: linear-gradient(to bottom, var(--paper) 0%, #f7f4ff 100%);
  padding: 28px 0 96px;
}

.contact-form-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: start;
}

.contact-form-intro {
  position: relative;
  padding: 26px 12px 0 0;
}

.contact-form-intro::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -14px;
  width: 88px;
  height: 88px;
  background: rgba(255, 241, 155, 0.9);
  border-radius: 28px;
  z-index: 0;
  transform: rotate(-10deg);
}

.contact-form-intro h2,
.contact-form-intro p,
.contact-points {
  position: relative;
  z-index: 1;
}

.contact-form-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.05;
  max-width: 12ch;
}

.contact-form-intro p {
  margin: 0 0 24px;
  font-size: 1.06rem;
  line-height: 1.75;
  max-width: 56ch;
}

.contact-points {
  display: grid;
  gap: 14px;
}

.contact-point {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(18, 18, 18, 0.04);
}

.contact-point:nth-child(1) {
  background: rgba(255, 241, 155, 0.8);
}

.contact-point:nth-child(2) {
  background: rgba(61, 69, 170, 0.1);
}

.contact-point:nth-child(3) {
  background: rgba(248, 132, 63, 0.16);
}

.contact-point img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.contact-card {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(61, 69, 170, 0.12);
  border-radius: 30px;
  box-shadow: 0 16px 36px rgba(18, 18, 18, 0.08);
  padding: 30px;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    var(--orange) 35%,
    var(--red) 65%,
    var(--yellow) 100%
  );
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-weight: 600;
  font-size: 0.96rem;
}

.form-field label span {
  color: var(--red);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 2px solid rgba(61, 69, 170, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 170px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(18, 18, 18, 0.5);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61, 69, 170, 0.08);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 500;
}

.form-alert--success {
  background: rgba(255, 241, 155, 0.65);
  border: 1px solid rgba(61, 69, 170, 0.16);
}

.form-alert--error {
  background: rgba(218, 61, 32, 0.1);
  border: 1px solid rgba(218, 61, 32, 0.18);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .contact-form-wrap {
    grid-template-columns: 1fr;
  }

  .contact-form-intro {
    padding: 0;
  }

  .contact-form-intro::before {
    top: -6px;
    left: -8px;
    width: 72px;
    height: 72px;
  }

  .contact-form-intro h2 {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .contact-hero {
    padding: 72px 0 28px;
  }

  .contact-hero__content {
    max-width: 620px;
    padding-inline: 20px;
  }

  .contact-hero__shape--one {
    width: 120px;
    top: 34px;
    left: -26px;
    opacity: 0.72;
  }

  .contact-hero__shape--two {
    width: 100px;
    top: 34px;
    right: -20px;
    opacity: 0.72;
  }

  .contact-hero__shape--three {
    width: 72px;
    bottom: 12px;
    left: 4%;
    opacity: 0.68;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding: 64px 0 24px;
  }

  .contact-hero__content {
    max-width: 100%;
    padding-inline: 20px;
  }

  .contact-hero__content h1 {
    font-size: clamp(2.4rem, 10vw, 4rem);
    line-height: 0.96;
  }

  .contact-hero__content p {
    max-width: 32ch;
    margin-inline: auto;
  }

  .contact-hero__shape--one {
    width: 92px;
    top: 18px;
    left: -28px;
    opacity: 0.58;
  }

  .contact-hero__shape--two {
    width: 86px;
    top: 18px;
    right: -22px;
    opacity: 0.58;
  }

  .contact-hero__shape--three {
    width: 58px;
    bottom: 8px;
    left: 2%;
    opacity: 0.54;
  }

  .contact-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-height: 760px) {
  .contact-hero {
    padding-top: 64px;
    padding-bottom: 24px;
  }

  .contact-hero__shape--one {
    width: 110px;
    top: 22px;
    left: -20px;
    opacity: 0.65;
  }

  .contact-hero__shape--two {
    width: 100px;
    top: 18px;
    right: -18px;
    opacity: 0.65;
  }

  .contact-hero__shape--three {
    width: 70px;
    bottom: 8px;
    left: 6%;
    opacity: 0.6;
  }
}