.contacts-page {
  min-height: 100vh;
  padding: 118px 0 76px;
  background:
    radial-gradient(circle at 9% 9%, rgba(214, 168, 79, .14), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(124, 139, 111, .15), transparent 30rem),
    radial-gradient(circle at 62% 94%, rgba(214, 168, 79, .08), transparent 26rem),
    linear-gradient(180deg, #0f1110 0%, #151812 52%, #0b0d0c 100%);
}

.contacts-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.contacts-hero-text,
.contacts-hero-card,
.contact-info-card,
.contact-form-card,
.contact-step,
.contact-message {
  border: 1px solid rgba(214, 168, 79, .22);
  background:
    linear-gradient(180deg, rgba(245, 239, 228, .060), rgba(245, 239, 228, .020)),
    rgba(23, 26, 22, .94);
  box-shadow: var(--shadow);
  border-radius: 14px;
}

.contacts-hero-text {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: clamp(28px, 5vw, 52px);
}

.contacts-hero-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 16, .88), rgba(15, 17, 16, .62)),
    radial-gradient(circle at 82% 38%, rgba(214, 168, 79, .22), transparent 18rem);
  pointer-events: none;
}

.contacts-hero-text::after {
  content: "♬";
  position: absolute;
  right: clamp(20px, 5vw, 58px);
  bottom: 12px;
  color: rgba(214, 168, 79, .10);
  font-family: Georgia, serif;
  font-size: clamp(140px, 20vw, 240px);
  line-height: 1;
  transform: rotate(-10deg);
  pointer-events: none;
}

.contacts-hero-text > * {
  position: relative;
  z-index: 1;
}

.contacts-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.03em;
}

.contacts-hero-text p {
  max-width: 670px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.contacts-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-primary-action,
.contact-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.contact-primary-action {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #17110a;
}

.contact-primary-action:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: #17110a;
}

.contact-secondary-action {
  border: 1px solid rgba(245, 239, 228, .20);
  background: rgba(245, 239, 228, .045);
  color: var(--text);
}

.contact-secondary-action:hover {
  border-color: rgba(214, 168, 79, .52);
  color: var(--accent-soft);
}

.contacts-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(214, 168, 79, .12), rgba(23, 26, 22, .95)),
    rgba(23, 26, 22, .94);
}

.hero-card-label,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contacts-hero-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.02;
}

.contacts-hero-card p {
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-mini-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.hero-mini-list span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(245, 239, 228, .12);
  background: rgba(8, 10, 9, .28);
  color: var(--text);
  font-weight: 850;
  border-radius: 10px;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(310px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.contacts-info {
  display: grid;
  gap: 14px;
}

.contact-info-card {
  padding: 22px;
}

.main-contact-card {
  background:
    linear-gradient(180deg, rgba(214, 168, 79, .105), rgba(245, 239, 228, .025)),
    rgba(23, 26, 22, .96);
}

.card-number {
  display: inline-flex;
  margin-bottom: 13px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1;
}

.contact-info-card h2,
.contact-form-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 32px;
  line-height: 1.05;
}

.contact-info-card p,
.contact-form-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.direct-contacts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.direct-contacts a,
.empty-contact-note {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 9, .36);
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
}

.direct-contacts a:hover {
  border-color: rgba(214, 168, 79, .54);
  background: rgba(214, 168, 79, .08);
}

.direct-contacts small {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.direct-contacts strong {
  color: var(--accent-soft);
  font-size: 15px;
  word-break: break-word;
}

.empty-contact-note {
  color: var(--muted);
  line-height: 1.5;
}

.contact-form-card {
  position: sticky;
  top: 96px;
  padding: clamp(22px, 4vw, 38px);
}

.contact-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(8, 10, 9, .78);
  color: var(--text);
  padding: 12px 13px;
  border-radius: 10px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-form textarea {
  min-height: 145px;
  resize: vertical;
  border-radius: 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(214, 168, 79, .66);
  background: rgba(8, 10, 9, .92);
  box-shadow: 0 0 0 3px rgba(214, 168, 79, .12);
}

.contact-submit {
  min-height: 50px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #17110a;
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.field-error {
  color: #f0a37b;
  font-weight: 800;
}

.form-error {
  padding: 12px;
  border: 1px solid rgba(240, 163, 123, .35);
  background: rgba(240, 163, 123, .08);
  border-radius: 10px;
}

.contact-messages {
  margin-bottom: 18px;
}

.contact-message {
  padding: 14px 16px;
  color: #c7d8b7;
  font-weight: 850;
}

.contact-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.contact-step {
  padding: 22px;
}

.contact-step span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 24px;
}

.contact-step h3 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 25px;
}

.contact-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .contacts-hero,
  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    position: static;
  }
}

@media (max-width: 780px) {
  .contacts-page {
    padding-top: 98px;
  }

  .form-grid.two-columns,
  .contact-steps {
    grid-template-columns: 1fr;
  }

  .contacts-hero-text {
    min-height: auto;
  }

  .contacts-hero-actions {
    flex-direction: column;
  }

  .contact-primary-action,
  .contact-secondary-action {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .contacts-hero-text,
  .contacts-hero-card,
  .contact-info-card,
  .contact-form-card,
  .contact-step {
    padding: 18px;
  }

  .contacts-hero h1 {
    font-size: 40px;
  }

  .contacts-hero-text p {
    font-size: 16px;
  }
}


/* Typography tuning for contacts page */
.contacts-hero h1 {
  font-weight: 700;
  letter-spacing: -0.035em;
}

.contacts-hero-text p,
.contacts-hero-card p,
.contact-info-card p,
.contact-form-card p,
.contact-step p {
  font-weight: 500;
}

.contact-info-card h2,
.contact-form-card h2,
.contact-step h3,
.contacts-hero-card h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-form label span,
.direct-contacts small {
  font-family: var(--font-body);
  letter-spacing: .10em;
}

.direct-contacts strong {
  font-weight: 800;
}


/* Softer contact page scale */
.contacts-hero h1 {
  font-size: clamp(34px, 5.2vw, 62px) !important;
  line-height: 1.02 !important;
  text-transform: none !important;
  letter-spacing: -0.055em !important;
}

.contacts-hero-text {
  min-height: 330px;
}

.contacts-hero-text p {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.68;
}

.contacts-hero-card h2 {
  font-size: clamp(26px, 3vw, 34px) !important;
  line-height: 1.12 !important;
}

.contact-info-card h2,
.contact-form-card h2 {
  font-size: clamp(25px, 3vw, 31px) !important;
}

.contact-step h3 {
  font-size: 22px !important;
}

.card-number,
.contact-step span {
  font-size: 20px !important;
}

.contact-primary-action,
.contact-secondary-action,
.contact-submit {
  font-size: 14px !important;
  text-transform: none !important;
}

@media (max-width: 520px) {
  .contacts-hero h1 {
    font-size: 34px !important;
  }

  .contacts-hero-text p {
    font-size: 15px;
  }
}
