.contact-page {
  padding: 0 0 96px;
}

.contact-container {
  max-width: 1120px;
}

.contact-hero {
  padding: 66px 0 44px;
  text-align: center;
}

.contact-hero h1 {
  margin: 0;
  font-family: "Merriweather", serif;
  font-size: 40px;
  line-height: 1.15;
  color: var(--color-text);
}

.title-rule,
.section-rule {
  width: 76px;
  height: 1px;
  background: var(--color-accent);
}

.title-rule {
  margin: 16px auto 18px;
}

.section-rule {
  margin: 12px 0 18px;
}

.contact-hero p {
  max-width: 620px;
  margin: 0 auto;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-muted);
}

.contact-section {
  padding: 6px 0 0;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 42px;
}

.contact-method,
.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.contact-method {
  min-height: 106px;
  border-radius: 10px;
  padding: 22px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 16px;
}

.contact-method__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  display: grid;
  place-items: center;
}

.contact-method__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-accent-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-method h2 {
  margin: 0 0 6px;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.contact-method a,
.contact-method strong {
  display: block;
  margin-bottom: 3px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent-dark);
}

.contact-method p {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.7fr);
  gap: 24px;
}

.contact-card {
  border-radius: 10px;
  padding: 30px;
}

.contact-card h2 {
  margin: 0;
  font-family: "Merriweather", serif;
  font-size: 24px;
  line-height: 1.25;
  color: var(--color-text);
}

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

.contact-field {
  min-width: 0;
}

.contact-field--full,
.contact-form__status,
.contact-form__button {
  grid-column: 1 / -1;
}

.contact-field label {
  display: block;
  margin-bottom: 8px;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  color: var(--color-text);
}

.contact-field label span {
  color: #b76b58;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid #e8dcca;
  border-radius: 7px;
  background: #fff;
  color: var(--color-text);
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-field input {
  height: 42px;
  padding: 0 12px;
}

.contact-field textarea {
  min-height: 112px;
  padding: 14px 12px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 103, 0.16);
}

.contact-field textarea::placeholder {
  color: var(--color-muted-strong);
}

.contact-form__status {
  min-height: 18px;
  margin-top: -4px;
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  color: var(--color-muted);
}

.contact-form__status.is-error {
  color: #9a4a42;
}

.contact-form__status.is-success {
  color: #4f8c53;
}

.contact-form__button {
  width: max-content;
  min-width: 132px;
  height: 38px;
}

.contact-emergency {
  min-height: 468px;
}

.contact-emergency p {
  margin: 0 0 24px;
  max-width: 360px;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-muted);
}

.emergency-callout {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  background: var(--color-accent-soft);
  padding: 20px;
  color: var(--color-text);
}

.emergency-callout span {
  font-family: "Raleway", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.emergency-callout strong {
  font-family: "Merriweather", serif;
  font-size: 24px;
  line-height: 1.1;
}

.emergency-callout small {
  font-family: "Raleway", sans-serif;
  font-size: 11px;
  color: var(--color-muted);
}

@media (max-width: 1060px) {
  .contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-emergency {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .contact-page {
    padding-bottom: 64px;
  }

  .contact-hero {
    padding: 48px 0 32px;
  }

  .contact-hero h1 {
    font-size: 32px;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }

  .contact-method {
    min-height: 92px;
    padding: 18px;
  }

  .contact-card {
    padding: 22px;
  }

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

  .contact-form__button {
    width: 100%;
  }
}
