/* contacts.css - Исправленная версия с адаптацией мобильного меню */

/* Hero Section */
.contacts-hero {
  position: relative;
  padding: 120px 0 80px;
  color: white;
  overflow: hidden;
}

.contacts-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  z-index: -1;
}

.contacts-hero .hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.contacts-hero .hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contacts-hero .hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.contacts-hero .hero-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
}

/* Contacts Info Grid */
.contacts-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin: 40px 0 32px 0;
}

.contacts-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 220px;
  max-width: 270px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(30, 41, 59, 0.07);
  padding: 18px 22px;
}

.contacts-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff7ed;
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contacts-info-icon.orange {
  background: #fff7ed;
  color: #f97316;
}

.contacts-info-label {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.contacts-info-value a {
  color: #2563eb;
  text-decoration: none;
}

.contacts-info-value {
  color: #334155;
  font-size: 1rem;
}

/* Main Contacts Grid */
.contacts-main-grid {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.contacts-form-block,
.contacts-map-block {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(30, 41, 59, 0.07);
  padding: 32px 28px;
  flex: 1 1 340px;
  min-width: 320px;
  max-width: 480px;
}

.contacts-form-block h2,
.contacts-map-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 18px;
}

/* Contact Form Styles */
.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #222;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 1rem;
  background: #f8fafc;
  color: #222;
  transition: border 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #f97316;
  outline: none;
}

.btn.btn-primary {
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  width: 100%;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn.btn-primary:hover {
  background: #ea580c;
}

.form-success {
  color: #10b981;
  margin-top: 14px;
  font-weight: 600;
  text-align: center;
}

/* Map Styles */
.contacts-map {
  position: relative;
  min-height: 260px;
}

.contacts-map-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #64748b;
  font-size: 1.1rem;
  z-index: 2;
  pointer-events: none;
  text-align: center;
}

.contacts-map iframe {
  width: 100%;
  min-width: 0;
  display: block;
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

.contacts-extra {
  color: #334155;
  font-size: 1rem;
  margin-top: 12px;
}


/* Responsive Styles */
@media (max-width: 900px) {
  .contacts-main-grid {
    flex-direction: column;
    gap: 24px;
  }

  .contacts-form-block,
  .contacts-map-block {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .contacts-hero {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .contacts-hero {
    padding: 60px 0 40px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .contacts-info-item {
    min-width: 100%;
  }
}