/* Основные стили для страницы контактов */
.contacts-main {
  padding-top: 120px;
  min-height: 100vh;
}

/* === Site-wide visual consistency with the main page === */
.contacts-hero,
.contact-form-section {
  background: linear-gradient(120deg, rgba(242, 140, 61, 0.12), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(242, 140, 61, 0.15);
  border-radius: 32px;
}

.contact-card,
.faq-item {
  border: 1px solid rgba(242, 140, 61, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(42, 24, 18, 0.08);
}

.submit-btn {
  background: #f28c3d !important;
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(242, 140, 61, 0.35);
}

.submit-btn {
  background: #f28c3d;
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(242, 140, 61, 0.35);
}

.submit-btn:hover {
  background: #cc6c20;
}

/* Активная ссылка в навигации */
/* Hero секция */
.contacts-hero {
  background: linear-gradient(135deg, rgba(252, 239, 230, 0.9), rgba(255, 248, 240, 0.9)),
              url('background.png') center/cover;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 4rem;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: #8b5e3c;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #b9825a;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* Контейнер для контента */
.contacts-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Секция контактной информации */
.contact-info {
  margin-bottom: 5rem;
}

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

.contact-card {
  background: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(139, 94, 60, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(139, 94, 60, 0.2);
}

.contact-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.contact-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #8b5e3c;
  margin-bottom: 1rem;
}

.contact-card p {
  color: #6d4c35;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.contact-card a {
  color: #d4a574;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #b9825a;
}

.contact-description {
  font-size: 0.9rem;
  color: #b9825a !important;
  font-style: italic;
  margin-top: 1rem;
}

/* Секция формы обратной связи */
.contact-form-section {
  background: rgba(255, 255, 255, 0.6);
  padding: 4rem 3rem;
  border-radius: 25px;
  margin-bottom: 5rem;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #8b5e3c;
  margin-bottom: 1rem;
}

.form-header p {
  font-size: 1.1rem;
  color: #6d4c35;
  line-height: 1.6;
}

/* Стили формы */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #8b5e3c;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 2px solid rgba(139, 94, 60, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d4a574;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.95rem;
  color: #6d4c35;
}

.checkbox-text {
  display: inline-block;
  line-height: 1.4;
  white-space: normal;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #d4a574;
  border-radius: 4px;
  margin-right: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: #d4a574;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.privacy-link {
  color: #d4a574;
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

.submit-btn {
  background: linear-gradient(135deg, #d4a574, #b9825a);
  color: white;
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 94, 60, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Статусы формы */
.form-status {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-status.success {
  background: rgba(76, 175, 80, 0.12);
  color: #256029;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.form-status.error {
  background: rgba(244, 67, 54, 0.12);
  color: #7a1f1a;
  border: 1px solid rgba(244, 67, 54, 0.25);
}

/* Секция карты */
.map-section {
  margin-bottom: 5rem;
  text-align: center;
}

.map-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #8b5e3c;
  margin-bottom: 2rem;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(139, 94, 60, 0.2);
}

.map-container #map {
  height: 400px; /* высота карты на десктопе */
}

.map-placeholder {
  height: 400px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(185, 130, 90, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-content {
  text-align: center;
}

.map-icon {
  margin-bottom: 1rem;
}

.map-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #8b5e3c;
  margin-bottom: 0.5rem;
}

.map-content p {
  color: #6d4c35;
  margin-bottom: 0.5rem;
}

.map-note {
  font-style: italic;
  color: #b9825a !important;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Секция FAQ */
.faq-section {
  margin-bottom: 3rem;
}

.faq-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #8b5e3c;
  text-align: center;
  margin-bottom: 3rem;
}

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

.faq-item {
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(139, 94, 60, 0.1);
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.faq-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #8b5e3c;
  margin-bottom: 1rem;
}

.faq-item p {
  color: #6d4c35;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #8b5e3c, #6d4c35);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #d4a574;
}

.footer-logo {
  height: 80px;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #d4a574;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .contacts-container {
    padding: 0 1rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-section {
    padding: 2rem 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* Fix consent line wrapping on mobile */
  .checkbox-group { align-items: flex-start; }
  .checkbox-label { align-items: flex-start; gap: 8px; }
  .checkmark { margin-top: 2px; }
  .checkbox-text { max-width: 100%; }
  
  .map-placeholder {
    height: 300px;
  }
  .map-container #map {
    height: 300px; /* адаптивная высота карты на мобилках */
  }
}

@media (max-width: 480px) {
  .contacts-hero {
    height: 40vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .form-header h2,
  .map-section h2,
  .faq-section h2 {
    font-size: 2rem;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-form-section {
    padding: 2rem 1rem;
  }

  /* Tighter layout on very small screens for consent */
  .checkbox-label { gap: 10px; }
  .checkbox-text { font-size: 0.95rem; }
}

/* iPhone 8/SE – 375x667: tighter vertical rhythm and smaller paddings */
@media (max-width: 380px) and (max-height: 740px) {
  .contacts-main { padding-top: 130px; }
  .contacts-hero { height: 36vh; margin-bottom: 2.2rem; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-subtitle { font-size: 1rem; max-width: 90%; }

  .contacts-container { padding: 0 14px; }
  .contact-grid { gap: 1.2rem; }
  .contact-card { padding: 1.4rem 1.1rem; border-radius: 16px; }
  .contact-card h3 { font-size: 1.2rem; }
  .contact-card p { font-size: 0.95rem; }

  .contact-form-section { padding: 1.5rem 1rem; border-radius: 18px; margin-bottom: 2.5rem; }
  .form-header { margin-bottom: 1.6rem; }
  .form-header h2 { font-size: 1.6rem; }
  .form-header p { font-size: 0.98rem; }
  .form-row { grid-template-columns: 1fr; gap: 0.9rem; }
  .form-group input, .form-group select, .form-group textarea { padding: 0.8rem; font-size: 0.98rem; }
  .submit-btn { padding: 0.9rem 1.2rem; font-size: 1rem; }

  .map-section { margin-bottom: 2.5rem; }
  .map-placeholder, .map-container #map { height: 260px; }

  .faq-section h2 { font-size: 1.8rem; margin-bottom: 1.8rem; }
  .faq-grid { gap: 1rem; }
}

/* === Final consistency overrides === */
.contacts-hero,
.contact-form-section {
  background: linear-gradient(120deg, rgba(242, 140, 61, 0.12), rgba(255, 255, 255, 0.28)) !important;
  border: 1px solid rgba(242, 140, 61, 0.15);
  border-radius: 32px;
}

.contact-card,
.faq-item {
  border: 1px solid rgba(242, 140, 61, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(42, 24, 18, 0.08);
}
