.contacts-page {
  background: #f7f6f2;
  color: #153957;
}

.contacts-section {
  padding: 52px 0 64px;
}

.contacts-intro {
  max-width: 680px;
  margin-bottom: 36px;
}

.contacts-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #806a35;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contacts-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #ccb677;
}

.contacts-intro h2 {
  margin: 0 0 16px;
  color: #153957;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.contacts-intro p {
  margin: 0;
  color: #626d75;
  font-size: 17px;
  line-height: 1.7;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
}

.contacts-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.contacts-card {
  min-width: 0;
  padding: 32px;
  border: 1px solid #e6e3db;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(17, 45, 75, 0.04);
}

.contacts-card h3 {
  margin: 0;
  color: #153957;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.contacts-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.65;
}

.contacts-detail > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contacts-detail__icon {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f4f2e9;
  color: #806a35;
  font-size: 19px;
}

.contacts-detail__label {
  display: block;
  margin-bottom: 4px;
  color: #747c80;
  font-size: 13px;
  line-height: 1.5;
}

.contacts-detail address {
  font-style: normal;
}

.contacts-detail__phone {
  font-size: 20px;
  font-weight: 500;
}

.contacts-detail a:hover {
  color: #806a35;
  text-decoration: underline;
}

.contacts-sales {
  flex: 1;
  border-color: #153957;
  background: #153957;
  color: #fff;
}

.contacts-sales h3 {
  color: #fff;
}

.contacts-sales .contacts-eyebrow {
  color: #e2ce92;
}

.contacts-sales p {
  margin-top: 12px;
  color: #d2dde5;
  font-size: 15px;
  line-height: 1.7;
}

.contacts-sales__phones {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contacts-sales__phones a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid #527086;
  border-radius: 10px;
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
}

.contacts-sales__phones .fa {
  color: #e2ce92;
}

.contacts-sales__phones a:hover {
  border-color: #ccb677;
  background: #244b68;
  color: #fff;
}

.contacts-form-card__intro {
  margin: 12px 0 0;
  color: #626d75;
  font-size: 15px;
  line-height: 1.7;
}

.contacts-form {
  margin-top: 24px;
}

.contacts-form__note {
  margin: 0 0 20px;
  color: #70797f;
  font-size: 13px;
  line-height: 1.6;
}

.contacts-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.contacts-field--wide {
  grid-column: 1 / -1;
}

.contacts-field label {
  display: block;
  margin-bottom: 9px;
  color: #29465c;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.contacts-field input,
.contacts-field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #d9dedb;
  border-radius: 10px;
  background: #fcfcfa;
  color: #153957;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contacts-field textarea {
  min-height: 166px;
  resize: vertical;
}

.contacts-field input::placeholder,
.contacts-field textarea::placeholder {
  color: #828b90;
  opacity: 1;
}

.contacts-field input:focus,
.contacts-field textarea:focus {
  outline: none;
  border-color: #a48c4b;
  box-shadow: 0 0 0 3px rgba(185, 148, 50, 0.14);
  background: #fff;
}

.contacts-field [aria-invalid="true"] {
  border-color: #b8493d;
}

.contacts-field__error {
  display: block;
  margin-top: 7px;
  color: #a23229;
  font-size: 13px;
  line-height: 1.5;
}

.contacts-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 50px;
  margin-top: 24px;
  padding: 14px 24px;
  border: 1px solid #153957;
  border-radius: 10px;
  background: #153957;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contacts-submit:hover {
  background: #244b68;
}

.contacts-page a:focus-visible,
.contacts-submit:focus-visible {
  outline: 3px solid #b99432;
  outline-offset: 4px;
}

.contacts-notice {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.7;
}

.contacts-notice--success {
  border-color: #b6d5c1;
  background: #eff8f1;
  color: #24593a;
}

.contacts-notice--error {
  border-color: #e6c0b9;
  background: #fff4f1;
  color: #92392e;
}

.contacts-map {
  overflow: hidden;
  margin-top: 32px;
  padding: 0;
}

.contacts-map__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
}

.contacts-map__heading p {
  margin-top: 9px;
  color: #626d75;
  font-size: 14px;
  line-height: 1.6;
}

.contacts-map__link {
  flex-shrink: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #ccb677;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.contacts-map__link span {
  margin-left: 8px;
}

.contacts-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  background: #e9ede8;
}

@media (max-width: 1199px) {
  .contacts-card {
    padding: 26px;
  }

  .contacts-map {
    padding: 0;
  }
}

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

  .contacts-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-map__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 575px) {
  .contacts-section {
    padding: 36px 0 40px;
  }

  .contacts-intro h2 {
    font-size: 32px;
  }

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

  .contacts-details,
  .contacts-form__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts-card {
    padding: 22px;
    border-radius: 16px;
  }

  .contacts-detail {
    gap: 12px;
  }

  .contacts-detail__phone {
    font-size: 18px;
  }

  .contacts-submit {
    width: 100%;
    gap: 12px;
    padding: 14px 16px;
  }

  .contacts-map {
    padding: 0;
  }

  .contacts-map__heading {
    padding: 22px;
  }

  .contacts-map iframe {
    height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contacts-field input,
  .contacts-field textarea,
  .contacts-submit {
    transition: none;
  }
}
