/* Public Contact page — matches site navy/card system */

.contact-page {
  background: #f5f7fa;
  color: var(--navy, #0f1b2d);
}

.contact-hero {
  padding: 56px 20px 36px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(15, 27, 45, 0.06), transparent 55%),
    #fff;
  border-bottom: 1px solid #e6ebf2;
}

.contact-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-hero__badge {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy, #0f1b2d);
  background: #eef2f7;
  border: 1px solid #dfe6ef;
}

.contact-hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-hero__lead,
.contact-hero__sub {
  margin: 0 auto;
  max-width: 640px;
  color: #5b6b7f;
  font-size: 15px;
  line-height: 1.55;
}

.contact-hero__sub {
  margin-top: 10px;
  font-size: 14px;
}

.contact-options {
  padding: 28px 20px 8px;
}

.contact-options__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 14px;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.03);
}

.contact-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--navy, #0f1b2d);
}

.contact-card__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0f1b2d;
  background: linear-gradient(135deg, #f8e7b0 0%, #e8c56a 100%);
  border: 1px solid rgba(184, 146, 48, 0.35);
}

.contact-card__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 750;
}

.contact-card__text {
  margin: 0 0 14px;
  color: #5b6b7f;
  font-size: 13.5px;
  line-height: 1.5;
  flex: 1;
}

.contact-card__icon--telegram {
  background: #eaf6ff;
  color: #1a7bb8;
}

.contact-card__handle {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  word-break: break-word;
  color: var(--navy, #0f1b2d);
}

.contact-card__email {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  word-break: break-word;
}

.contact-card__email a {
  color: var(--navy, #0f1b2d);
  text-decoration: none;
}

.contact-card__email a:hover {
  text-decoration: underline;
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.contact-btn:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.contact-btn--primary {
  background: var(--navy, #0f1b2d);
  color: #fff;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-btn--primary:hover {
  background: var(--navy-deep, #0a1422);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 27, 45, 0.14);
}

.contact-btn--ghost {
  background: #fff;
  color: var(--navy, #0f1b2d);
  border-color: #d7dee8;
}

.contact-btn--ghost:hover {
  background: #f8fafc;
}

.contact-btn--submit {
  width: 100%;
  margin-top: 4px;
}

.contact-form-section {
  padding: 20px 20px 28px;
}

.contact-form-section__inner {
  max-width: 720px;
  margin: 0 auto;
}

.contact-form-section__head {
  text-align: center;
  margin-bottom: 16px;
}

.contact-form-section__head h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
}

.contact-form-section__head p {
  margin: 0;
  color: #5b6b7f;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form-card {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 14px;
  padding: 20px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form__field {
  margin-bottom: 12px;
}

.contact-form__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
}

.contact-form__input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #dde4ee;
  border-radius: 10px;
  background: #fff;
  color: var(--navy, #0f1b2d);
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.contact-form__input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(15, 27, 45, 0.06);
}

.contact-form__textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__error {
  margin: 6px 0 0;
  color: #b91c1c;
  font-size: 12.5px;
}

.contact-form__error--form {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
}

.contact-form__honeypot-wrap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-success {
  text-align: center;
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 14px;
  padding: 36px 24px;
}

.contact-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f5ee;
  color: #166534;
}

.contact-success__title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 800;
}

.contact-success__text {
  margin: 0 0 18px;
  color: #5b6b7f;
  font-size: 14px;
  line-height: 1.5;
}

.contact-links {
  padding: 8px 20px 48px;
}

.contact-links__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-links__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 750;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}

.contact-links__list a {
  color: var(--navy, #0f1b2d);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
}

.contact-links__list a:hover {
  text-decoration: underline;
}

html[data-theme="dark"] .contact-page {
  background: #0b1220;
  color: #e8eef7;
}

html[data-theme="dark"] .contact-hero {
  background: #111827;
  border-bottom-color: #1f2a3a;
}

html[data-theme="dark"] .contact-hero__badge {
  background: #1a2433;
  border-color: #2a3748;
  color: #e8eef7;
}

html[data-theme="dark"] .contact-hero__lead,
html[data-theme="dark"] .contact-hero__sub,
html[data-theme="dark"] .contact-card__text,
html[data-theme="dark"] .contact-form-section__head p,
html[data-theme="dark"] .contact-success__text {
  color: #9aa8ba;
}

html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .contact-form-card,
html[data-theme="dark"] .contact-success {
  background: #111827;
  border-color: #243041;
}

html[data-theme="dark"] .contact-card__icon {
  background: #1a2433;
  color: #e8eef7;
}

html[data-theme="dark"] .contact-form__input {
  background: #0f1724;
  border-color: #2a3748;
  color: #e8eef7;
}

html[data-theme="dark"] .contact-btn--ghost {
  background: #111827;
  color: #e8eef7;
  border-color: #2a3748;
}

html[data-theme="dark"] .contact-card__email a,
html[data-theme="dark"] .contact-links__list a {
  color: #e8eef7;
}

@media (max-width: 820px) {
  .contact-options__inner {
    grid-template-columns: 1fr;
  }

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

  .contact-card__actions .contact-btn,
  .contact-card > .contact-btn {
    width: 100%;
  }
}
