/* Общие стили */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', 'Open Sans', sans-serif;
  scroll-behavior: smooth;
  background-color: #ffffff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 4px 0;
  background-color: transparent;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 50px;
  height: 65px;
  object-fit: cover;
}

.logo-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
}

.logo-subtitle {
  font-weight: 500;
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0.6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 57px;
}

.nav-item {
  color: #d6d6d6;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-item:hover {
  color: #f34c43;
}

.nav-item.active {
  color: #ffffff;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
}

.nav-item.phone {
  font-weight: 600;
  color: #d6d6d6;
}

.search {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}



/* Главный блок с изображением и формой */
.main {
  position: relative;
  margin-top: 0;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Фиксирует (опционально) */
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.contact-form-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
}

.contact-form-wrapper {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.section-title {
  font-weight: 600;
  font-size: 28px;
  color: #000;
  margin-bottom: 30px;
  text-align: center;
}

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

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus {
  outline: none;
  border-color: #f34c43;
  background-color: #fff;
}

.form-group input::placeholder {
  color: #666;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: #f34c43;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #e04138;
}

/* Хлебные крошки */
.breadcrumbs {
  padding: 90px 20px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 400;
}

.breadcrumbs span {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 5px;
}

/* Блок с контактами */
.contacts-section {
  padding: 80px 0 60px;
  background-color: #ffffff;
}

.contacts-content {
  display: flex;
  justify-content: center;
  gap: 80px;
  text-align: center;
}

.contacts-section .contact-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px 20px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.3s ease;
}

.contacts-section .contact-item:hover {
  transform: none;
  box-shadow: none;
}

.contact-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.contact-link {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #f34c43;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: #e63946;
  transform: translateY(-1px);
}

/* Блок с адресом и картой */
.address-map-section {
  margin-bottom: 0;
  padding: 0 0 80px;
  background-color: #ffffff;
}

.address-content {
  text-align: right;
  margin-top: 30px;
  padding-right: 20px;
}

.address-text {
  font-weight: 500;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#yandex-map {
  width: 100%;
  height: 400px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Стили для Яндекс карты через конструктор */
.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
  border-radius: 8px;
}

.map-fallback {
  min-height: 300px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 18%, rgba(243, 76, 67, 0.24), transparent 32%),
    linear-gradient(135deg, #17212a, #0d141a);
}

.map-fallback svg {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  fill: none;
  stroke: #f34c43;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-fallback h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.map-fallback p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.5;
}

.map-fallback a {
  min-height: 48px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.map-fallback a:hover {
  color: #fff;
  border-color: #f34c43;
  background: rgba(243, 76, 67, 0.16);
}

/* На странице контактов телефон и почта уже показаны отдельным блоком выше. */
.contact-page .footer .footer-contacts {
  display: none;
}

.contact-page .footer {
  padding-top: 42px;
}

/* Старые стили футера удалены - используются стили из footer.css */

/* Адаптивность */
@media (max-width: 1024px) {
  .contact-form-wrapper {
    padding: 30px;
  }

  .contacts-content {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 0;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-image {
    min-height: 500px;
    background-attachment: scroll;
  }

  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .contacts-content {
    flex-direction: column;
    gap: 30px;
  }

  .address-content {
    text-align: center;
    padding-right: 0;
  }

  #yandex-map {
    height: 350px;
  }

  .map-fallback {
    min-height: 340px;
    padding: 32px 24px;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 25px 20px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  #yandex-map {
    height: 300px;
  }

  /* Старые стили футера удалены */
}

/* Дополнительные стили для футера на странице контактов больше не требуются —
   используется общий footer.css */
