/* ===== PAGE SPECIFIC CONTENT ===== */

.contact-section {
  padding: 80px 0 120px;
  background: #f5f7fb;
}

.contact-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
  text-transform: uppercase;
  line-height: 1.2;
}

.section-header p {
  color: #6b748d;
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.contact-card {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 25px 55px rgba(9, 16, 40, 0.1);
  border: 1px solid rgba(16, 40, 79, 0.06);
}

.info-group + .info-group {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 40, 79, 0.08);
}

.info-group h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0c4fa4;
}

.info-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-group li {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  color: #3a4157;
}

.info-group li span {
  color: #8b91a6;
}

.info-group a {
  color: #161b2f;
  font-weight: 600;
  transition: color 0.2s ease;
}

.info-group a:hover {
  color: #0c4fa4;
}

.work-hours div {
  display: flex;
  justify-content: space-between;
  color: #3a4157;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.info-group p {
  color: #3a4157;
  line-height: 1.6;
}

.route-hint {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(12, 79, 164, 0.05);
  border: 1px dashed rgba(12, 79, 164, 0.3);
}

.yandex-map {
  margin-top: 16px;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #0c4fa4;
}

.contact-form p {
  color: #6b748d;
  margin-bottom: 24px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.contact-form label {
  font-weight: 600;
  color: #161b2f;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid rgba(16, 40, 79, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  background: #f8f9fc;
  color: #1e293b;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form select::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
  opacity: 1;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0c4fa4;
  background: #fff;
  color: #0f172a;
}

.contact-form textarea {
  resize: vertical;
}

.policy {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: #6b748d;
  margin-bottom: 20px;
  align-items: center;
}

.submit-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  background: #0c4fa4;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(12, 79, 164, 0.35);
}

/* ===== ADAPTIVE & MOBILE ===== */

@media (max-width: 768px) {
  .contact-container {
    padding: 0 16px;
  }

  .contact-section {
    padding: 50px 0 70px;
  }

  .contact-card {
    padding: 24px;
  }
  
  .section-header h1 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-header {
      margin-bottom: 25px;
  }

  .section-header h1 {
      font-size: 1.5rem;
      margin-bottom: 8px;
  }
  
  .section-header p {
      font-size: 0.95rem;
      line-height: 1.5;
  }

  .contact-card {
      padding: 20px;
      border-radius: 16px;
  }

  .route-hint {
    font-size: 0.9rem;
    padding: 12px;
  }
  
  .contact-grid {
      gap: 24px;
  }
}