/* ============ Контакты (одна колонка) ============ */
.contacts {
  --contacts-accent: #2f6f4e;
  --contacts-accent-hover: #24573d;
  --contacts-bg: #faf8f4;
  --contacts-card: #ffffff;
  --contacts-border: #e7e2d9;
  --contacts-text: #33312e;
  --contacts-muted: #7a756c;

  background: var(--contacts-bg);
  padding: 40px 16px;
  font-family: inherit;
  color: var(--contacts-text);
  line-height: 1.55;
}

.contacts__container {
  max-width: 680px;
  margin: 0 auto;
}

.contacts__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  margin: 0 0 36px;
  font-weight: 700;
}

.contacts__card {
  background: var(--contacts-card);
  border: 1px solid var(--contacts-border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(40, 35, 25, 0.06);
  margin-bottom: 24px;
}

.contacts__heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.contacts__meta {
  color: var(--contacts-muted);
  font-size: 0.875rem;
  margin: 0 0 18px;
}

.contacts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.contacts__item {
  margin-bottom: 10px;
}

.contacts__item > span {
  font-weight: 600;
}

.contacts__text {
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.contacts__text--small {
  color: var(--contacts-muted);
  font-size: 0.85rem;
  margin: 14px 0 0;
}

.contacts__link {
  color: var(--contacts-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

.contacts__link:hover,
.contacts__link:focus-visible {
  color: var(--contacts-accent-hover);
  text-decoration: underline;
}

.contacts__link--small {
  display: inline-block;
  font-size: 0.85rem;
  margin-top: 4px;
}

.contacts__field {
  margin-bottom: 22px;
}

.contacts__label {
  color: var(--contacts-muted);
  font-size: 0.85rem;
  margin: 0 0 6px;
}

.contacts__phone {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--contacts-text);
  text-decoration: none;
}

.contacts__phone:hover,
.contacts__phone:focus-visible {
  color: var(--contacts-accent);
}

.contacts__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contacts__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s ease;
}

.contacts__btn--green { background: #34a853; }
.contacts__btn--green:hover,
.contacts__btn--green:focus-visible { background: #2c8c45; }

.contacts__btn--blue { background: #2aabee; }
.contacts__btn--blue:hover,
.contacts__btn--blue:focus-visible { background: #2291c8; }

/* ---- Карта ---- */
.contacts__map {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(40, 35, 25, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contacts__map:hover,
.contacts__map:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(40, 35, 25, 0.16);
}

.contacts__map-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contacts__map-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--contacts-accent-hover);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease;
}

.contacts__map:hover .contacts__map-hint {
  background: #ffffff;
}

/* ---- Форма ---- */
.contacts__form {
  display: flex;
  flex-direction: column;
}

.contacts__form-label {
  font-size: 0.85rem;
  color: var(--contacts-muted);
  margin: 0 0 5px;
}

.contacts__input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--contacts-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--contacts-text);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contacts__input:focus {
  outline: none;
  border-color: var(--contacts-accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 78, 0.12);
}

.contacts__input--area {
  resize: vertical;
  min-height: 110px;
}

.contacts__submit {
  align-self: stretch;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  background: var(--contacts-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.contacts__submit:hover,
.contacts__submit:focus-visible {
  background: var(--contacts-accent-hover);
}

.contacts__btn--purple {
  background: #5c3dd2; /* фирменный фиолетовый MAX */
}

.contacts__btn--purple:hover,
.contacts__btn--purple:focus-visible {
  background: #4a30a8;
}

/* ---- Чекбокс согласия ---- */
.contacts__agree {
  margin-bottom: 18px;
}

.contacts__agree-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.contacts__agree-checkbox {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--contacts-accent); /* чекбокс в цвет палитры */
  cursor: pointer;
}

.contacts__agree-text {
  font-size: 0.8rem;
  color: var(--contacts-muted);
  line-height: 1.45;
}


