/* Footer Section - SEO Optimized */

/* CSS Variables */
:root {
  --footer-color-background: #232228;
  --footer-color-text-primary: #ffffff;
  --footer-color-text-secondary: #b1b1b1;
  --footer-color-accent: #e3c37a;
  --footer-font-family-heading: 'Cormorant Garamond', serif;
  --footer-font-family-body: 'Cormorant Garamond', serif;
  --footer-font-family-ui: 'Montserrat', sans-serif;
}

/* Reset */
#footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#footer img {
  max-width: 100%;
  height: auto;
  display: block;
}

#footer a {
  text-decoration: none;
  color: inherit;
}

/* Main Footer Section */
.footer-section {
  background-color: var(--footer-color-background);
  padding: 80px 0;
  color: var(--footer-color-text-primary);
  font-family: var(--footer-font-family-body);
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1299px;
  margin: 0 auto;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Footer Map Styles */
.footer-map-column {
  width: 100%;
  height: 400px;
}

.footer-map-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.footer-map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(227, 195, 122, 0.1) 0%, rgba(227, 195, 122, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 24px;
  font-weight: bold;
  border-radius: 16px;
  border: 2px solid rgba(227, 195, 122, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.footer-map-placeholder:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(227, 195, 122, 0.2);
  transform: translateY(-2px);
}

/* Footer Content Column */
.footer-content-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-title-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-subtitle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-subtitle-line {
  width: 40px;
  height: 1px;
  background: var(--footer-color-accent);
  border: none;
}

.footer-subtitle-text {
  font-family: var(--footer-font-family-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--footer-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-main-title {
  font-family: var(--footer-font-family-heading);
  font-size: 40px;
  font-weight: 600;
  color: var(--footer-color-text-primary);
  line-height: 1.2;
}

.footer-highlight {
  color: var(--footer-color-accent);
}

/* Footer Contact Info */
.footer-contact-info-grid {
  display: grid;
  gap: 20px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-label {
  font-family: var(--footer-font-family-ui);
  font-size: 14px;
  color: var(--footer-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contact-value {
  font-family: var(--footer-font-family-body);
  font-size: 18px;
  color: var(--footer-color-text-primary);
  font-weight: 500;
}

/* Footer Form */
.footer-consultation-request {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
}

.footer-request-title {
  font-family: var(--footer-font-family-heading);
  font-size: 24px;
  color: var(--footer-color-text-primary);
  margin-bottom: 10px;
}

.footer-consultation-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
}

/* Footer Form Group - точная копия .form-group */
.footer-form-group {
  display: grid;
  grid-template-columns: 298px auto;
  gap: 8px;
  align-items: center;
}

.footer-form-group .footer-phone-input {
  background-color: var(--footer-color-text-primary);
  border: none;
  height: 44px;
  padding: 0 12px;
  font-family: var(--footer-font-family-ui);
  font-size: 14px;
  color: #333;
  width: 100%;
  max-width: 298px;
}

.footer-form-group .footer-submit-button {
  height: auto !important;
  padding: 12px !important;
  background-color: transparent !important;
  border: 1px solid var(--footer-color-accent) !important;
  color: var(--footer-color-text-primary) !important;
  font-family: var(--footer-font-family-heading) !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
  white-space: nowrap !important;
  width: fit-content !important;
  flex-shrink: 0 !important;
}

.footer-form-group .footer-submit-button:hover {
  background-color: var(--footer-color-accent);
  color: var(--footer-color-background);
}

/* Responsive */
@media (max-width: 1200px) {
  .footer-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-map-column {
    max-width: 682px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .footer-section {
    padding: 60px 0;
  }
  
  .footer-main-title {
    font-size: 32px;
  }
  
  .footer-request-form {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .footer-section {
    padding: 40px 0;
  }
  
  .footer-container {
    padding: 0 15px;
  }
  
  .footer-main-title {
    font-size: 28px;
  }
  
  .footer-map-column {
    height: 300px;
  }
}

/* Адаптивность для формы (как в оригинале) */
@media (max-width: 500px) {
  .footer-form-group {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }
  
  .footer-form-group .footer-phone-input {
    width: 100%;
    font-size: 16px;
  }
  
  .footer-form-group .footer-submit-button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }
}

/* Office Map Styles */
.office-map-container {
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.office-map-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
}

.office-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.office-map-placeholder:hover .office-map-overlay {
  opacity: 1;
}

.office-map-open-btn, .office-map-app-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.office-map-open-btn {
  background-color: #007bff;
  color: white;
}

.office-map-open-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.office-map-app-btn {
  background-color: #28a745;
  color: white;
}

.office-map-app-btn:hover {
  background-color: #1e7e34;
  transform: translateY(-2px);
}

/* Fix subtitle width and centering */
.contact-methods-header .subtitle {
  font-size: 16px;
  color: var(--color-text-medium);
  margin-bottom: 16px;
  width: 100%;
  text-align: center;
  max-width: none;
}
.map-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.map-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  animation: slideIn 0.3s ease;
}

.map-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.map-modal-header h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: #333;
}

.map-modal-close {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-modal-close:hover {
  color: #333;
}

.map-modal-body {
  padding: 30px;
}

.map-modal-info {
  margin-top: 20px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.map-modal-info p {
  margin: 8px 0;
  font-size: 16px;
  color: #555;
}

/* Map Overlay Styles */
.footer-map-placeholder {
  position: relative;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.footer-map-placeholder:hover .map-overlay {
  opacity: 1;
}

.map-open-btn, .map-app-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-display);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.map-open-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, #d4b85a 100%);
  color: var(--color-background-dark);
}

.map-open-btn:hover {
  background: linear-gradient(135deg, #d4b85a 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 195, 122, 0.4);
}

.map-app-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
  border: 2px solid var(--color-primary);
}

.map-app-btn:hover {
  background: var(--color-primary);
  color: var(--color-background-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 195, 122, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .map-modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .map-modal-header {
    padding: 15px 20px;
  }
  
  .map-modal-body {
    padding: 20px;
  }
  
  .map-overlay {
    gap: 10px;
  }
  
  .map-open-btn, .map-app-btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}