/* Контейнер контактов */
.contacts-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 0 auto;
  width: 100%;
  max-width: 1920px;
  box-sizing: border-box;
  padding: 30px 20px;
  text-align: left;
}

.contacts-header {
  transition: background-color 0.3s, border-color 0.3s;
  background: linear-gradient(to right, rgba(20,40,60,0.9), rgba(20,30,50,0.9));
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  text-align: left;
}

.contacts-body {
  transition: background-color 0.3s, border-color 0.3s;
  background: linear-gradient(to right, rgba(20,40,60,0.9), rgba(20,30,50,0.9));
  padding: 30px 20px;
  margin: 0 0 20px 0;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  text-align: left;
  border: 2px dashed #fff;
}


/* Заголовки */
.contacts-header h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #00f2fe;
}

.contacts-header  h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #fff;
}

.contacts-header h3 {
  font-size: 1.1em;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin-bottom: 24px;
  text-align: center;
  font-weight: 600;
}

/* Текст и списки */
.contacts-header p,
.contacts-header ul li {
  font-size: 1rem;
  line-height: 1.7;
}

.contacts-body  a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.contacts-body  h2 {
  font-size: 1.8rem;
  margin: 25px;
  color: #fff;
}

.contacts-body h3 {
  font-size: 1.2em;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin-bottom: 24px;
  text-align: center;
  font-weight: 600;
}

.contacts-body p,
.contacts-body ul li {
  font-size: 1rem;
  line-height: 1.9;
  margin: .6rem;
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  flex-wrap: nowrap; /* важно — запрещаем перенос */
}

.contact-block {
  width: 47%; /* фиксируем ширину */
  border: 1px solid #ccc;
  padding: 20px;
  margin: 20px;
  border-radius: 12px;
  transition: box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  box-sizing: border-box;
  float: left;
}

.contact-block:hover {
  transform: scale(1.03); /* увеличение при наведении */
  background: linear-gradient(135deg, #2196F3, #00f2fe); /* инвертируем цвета градиента при наведении */
}