.contact-page {
  background: #faf9f6;
  color: #2a2168;
  font-family: "Manrope", sans-serif;
}

.contact-main {
  padding: 94px 0 46px;
  text-align: center;
}

.contact-main .container,
.contact-faq .container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #ddd7ff;
  background: #fff;
  color: #7f6cf4;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-main h1 {
  margin: 16px 0 0;
  font-size: 56px;
  line-height: 64px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #23175f;
}

.lead {
  margin: 12px auto 0;
  max-width: 820px;
  color: #6d739e;
  font-size: 18px;
  line-height: 28px;
}

.flash-group {
  margin-top: 20px;
  text-align: left;
}

.flash-item {
  border: 1px solid #c7efd3;
  background: #ecfdf3;
  color: #166534;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 20px;
}

.contact-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 22px;
  text-align: left;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: start;
}

.info-card {
  border: 1px solid #e3e6f6;
  background: #f7f6ff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 14px;
  min-height: 106px;
}

.icon-box {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}

.icon-box svg {
  width: 28px;
  height: 28px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-box.green { background: #2fc96e; }
.icon-box.brown { background: #8b5e34; }
.icon-box.red { background: #ff5353; }
.icon-box.yellow { background: #f6b900; }
.icon-box.yellow svg { stroke: #2b250a; }

.info-card h3 {
  margin: 2px 0 6px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: #23175f;
}

.info-card p {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  color: #6d739e;
}

.form-card {
  border: 1px solid #e3e6f6;
  border-radius: 16px;
  background: #fff;
  padding: 20px;
}

.form-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
  color: #23175f;
}

.form-card > p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 21px;
  color: #6d739e;
}

.contact-form {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.contact-form label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #24195f;
}

.contact-form label span {
  color: #ff5353;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e4e7f6;
  border-radius: 10px;
  background: #fdfcff;
  color: #23175f;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  padding: 11px 12px;
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #7f6cf4;
  box-shadow: 0 0 0 3px rgba(127, 108, 244, 0.14);
}

.contact-form textarea {
  min-height: 98px;
  resize: vertical;
}

.field-error {
  margin-top: -2px;
  color: #e53935;
  font-size: 12px;
  line-height: 17px;
}

.contact-form button {
  margin-top: 6px;
  width: fit-content;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f61df 0%, #7f6cf4 100%);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  transition: filter 180ms ease, transform 120ms ease;
}

.contact-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(30%);
}

.contact-form button:hover { filter: brightness(1.04); }
.contact-form button:active { transform: translateY(1px); }

.map-wrap {
  width: 100%;
  margin: 14px 0 0;
  border: 0;
  background: #e9edf5;
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 330px;
  border: 0;
  display: block;
}

.contact-faq {
  padding: 48px 0 62px;
  text-align: center;
}

.faq-pill {
  margin-bottom: 14px;
}

.contact-faq h2 {
  margin: 0;
  color: #2a2168;
  font-size: 34px;
  line-height: 42px;
  font-weight: 800;
}

.faq-lead {
  margin: 12px auto 0;
  max-width: 560px;
  color: #7f83ab;
  font-size: 14px;
  line-height: 22px;
}

.faq-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.faq-list details {
  border-radius: 8px;
  border: 1px solid #e5e8f6;
  background: #f4f3ff;
  padding: 12px 14px;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #3b3570;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #7f6cf4;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.faq-list details[open] summary span {
  background: #ff8a00;
}

.faq-list details p {
  margin: 8px 0 0;
  color: #7c80a8;
  font-size: 13px;
  line-height: 20px;
}

@media (max-width: 1024px) {
  .contact-main h1 {
    font-size: 46px;
    line-height: 52px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .contact-main {
    padding: 70px 0 22px;
  }

  .contact-main .container,
  .contact-faq .container {
    width: calc(100% - 20px);
  }

  .section-pill {
    font-size: 9px;
    line-height: 12px;
    padding: 6px 12px;
  }

  .contact-main h1 {
    margin-top: 10px;
    font-size: 40px;
    line-height: 44px;
  }

  .lead {
    margin-top: 8px;
    font-size: 12px;
    line-height: 17px;
  }

  .contact-grid {
    margin-top: 14px;
    gap: 10px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info-card {
    border-radius: 10px;
    min-height: 84px;
    padding: 10px;
    gap: 10px;
  }

  .icon-box {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-basis: 34px;
  }

  .icon-box svg {
    width: 16px;
    height: 16px;
  }

  .info-card h3 {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 16px;
  }

  .info-card p {
    font-size: 9px;
    line-height: 13px;
  }

  .form-card {
    border-radius: 10px;
    padding: 12px;
  }

  .form-card h2 {
    font-size: 14px;
    line-height: 19px;
  }

  .form-card > p {
    margin-top: 4px;
    font-size: 9px;
    line-height: 13px;
  }

  .contact-form {
    margin-top: 8px;
    gap: 6px;
  }

  .contact-form label {
    font-size: 8px;
    line-height: 11px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 9px;
    line-height: 12px;
    border-radius: 6px;
    padding: 8px 9px;
  }

  .contact-form textarea {
    min-height: 64px;
  }

  .contact-form button {
    font-size: 9px;
    line-height: 12px;
    padding: 7px 12px;
  }

  .map-wrap iframe {
    height: 250px;
  }

  .contact-faq {
    padding: 26px 0 44px;
  }

  .contact-faq h2 {
    font-size: 24px;
    line-height: 30px;
  }

  .faq-lead {
    margin-top: 6px;
    font-size: 10px;
    line-height: 14px;
  }

  .faq-list {
    margin-top: 14px;
    gap: 8px;
  }

  .faq-list details {
    padding: 8px 10px;
    border-radius: 5px;
  }

  .faq-list summary {
    font-size: 10px;
    line-height: 14px;
  }

  .faq-list summary span {
    width: 16px;
    height: 16px;
    font-size: 11px;
  }

  .faq-list details p {
    font-size: 9px;
    line-height: 13px;
  }
}