.page-header {
  padding-top: 80px;
  text-align: center;
}

.page-header h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #000000;
  margin: 0;
}

.page-header .underline {
  width: 60px;
  height: 5px;
  background-color: #7a3cff;
  margin: 12px auto 40px;
  border-radius: 4px;
}

.section-title {
  font-weight: 700;
  font-size: 2.5rem;
  color: #000000;
  text-align: center;
  position: relative;
  margin-bottom: 30px;
  white-space: nowrap;
  user-select: none;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;  /* длина полоски */
  height: 5px;
  background-color: #7a3cff;
  margin: 12px auto 0;
  border-radius: 4px;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.contact-form-container {
  flex: 1 1 48%;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.contact-form-container h2 {
  font-size: 1.6rem;
  color: #5c2ca5;
  margin-bottom: 25px;
  font-weight: 600;
  white-space: nowrap;
}

.contact-form-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form-container label {
  font-weight: 600;
  color: #5c2ca5;
  margin-bottom: 6px;
  display: block;
  font-size: 1rem;
}

.contact-form-container input,
.contact-form-container textarea,
.contact-form-container select {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1.2px solid #bbb;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.contact-form-container select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%227%22%20viewBox%3D%220%200%2010%207%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%201L5%206L9%201%22%20stroke%3D%22%235c2ca5%22%20stroke-width%3D%222%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 7px;
  cursor: pointer;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus,
.contact-form-container select:focus {
  border-color: #7a3cff;
  outline: none;
  box-shadow: 0 0 5px rgba(122, 60, 255, 0.5);
}

.contact-form-container textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form-container button {
  background-color: #7a3cff;
  color: #fff;
  padding: 0 20px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 40px;
  line-height: 40px;
  align-self: flex-start;
}

.contact-form-container button:hover {
  background-color: #5f2ed9;
}

.contact-info-container {
  flex: 1 1 48%;
  background-color: #f8f6ff;
  color: #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.contact-info-container h3 {
  font-size: 1.4rem;
  color: #7a3cff;
  margin-bottom: 15px;
  white-space: nowrap;
}

.contact-map-and-hours {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
}

.contact-map-container {
  flex-grow: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 1 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

.work-hours {
  background-color: #7a3cff;
  color: #fff;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 1rem;
  height: 40px;
  line-height: 40px;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item {
  margin-bottom: 10px;
  word-break: break-word;
}

.contact-btn {
  display: inline-block;
  background-color: #7a3cff;
  color: #fff !important;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none !important;
  transition: background-color 0.3s ease;
  font-size: 0.95rem;
  word-break: break-word;
}

.contact-btn:hover {
  background-color: #5f2ed9;
}

.social-links {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
  justify-content: flex-start; /* Социальные ссылки выровнены по левому краю */
}

.social-links a {
  width: 36px;
  height: 36px;
  background-color: #7a3cff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  background-color: #5f2ed9;
  transform: scale(1.1);
}

.social-links img {
  width: 20px;
  height: 20px;
}

.footer-info {
  background: #f9f9f9;
  border-left: 4px solid #ccc;
  padding: 35px 25px 30px;
  margin-top: 40px;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #666;
  font-weight: 300;
  box-shadow: none;
}

/* Медиа */

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 20px;
  }

  .contact-form-container,
  .contact-info-container {
    flex: 1 1 100%;
    width: 100%;
  }

  .contact-map-container iframe {
    height: 200px;
  }

  .social-links {
    justify-content: flex-start; /* Социальные ссылки по левому краю */
    width: 100%;
  }

  .contact-map-and-hours {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .work-hours {
    height: auto;
    line-height: normal;
    padding: 6px 15px;
  }
}

@media (max-width: 480px) {
  .contact-form-container h2,
  .contact-info-container h3 {
    font-size: 1.3rem;
  }

  .contact-form-container button {
    font-size: 0.95rem;
  }

  .contact-btn {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .work-hours {
    font-size: 0.85rem;
  }
}
