/* Общие сбросы и шрифты */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
  background-color: #f5f7fa;
  color: #1e2a3a;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  flex: 1 0 auto;
  background: #f5f7fa;
  padding: 0 0 1px;
}

/* ===============================================================
   ХЕДЕР (как в примере sales-integra.ru, без nav)
   =============================================================== */
#head_bar {
  background: #2c3e50;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 30px;
}

#head_bar > svg {
  display: block;
  height: 38px;
  width: auto;
}

#head_phone {
  font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
  font-size: 1.2rem;
  color: #ffffff;
}

#head_phone a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.15s;
}

#head_phone a:hover {
  color: #f39c12;
}

#mobile_menu_dots {
  display: none;
  width: 48px;
  height: 47px;
  cursor: pointer;
  background: url('data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2028%206%22%20enable-background%3D%22new%200%200%2028%206%22%20xml%3Aspace%3D%22preserve%22%3E%20%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23f39c12%22%20d%3D%22M3%2C0c1.657%2C0%2C3%2C1.343%2C3%2C3c0%2C1.657-1.343%2C3-3%2C3C1.343%2C6%2C0%2C4.656%2C0%2C3%20C0%2C1.343%2C1.343%2C0%2C3%2C0z%20M25%2C0c1.657%2C0%2C3%2C1.343%2C3%2C3c0%2C1.657-1.343%2C3-3%2C3c-1.657%2C0-3-1.343-3-3C22%2C1.343%2C23.343%2C0%2C25%2C0z%20M14%2C0%20c1.657%2C0%2C3%2C1.343%2C3%2C3c0%2C1.657-1.343%2C3-3%2C3c-1.657%2C0-3-1.343-3-3C11%2C1.343%2C12.343%2C0%2C14%2C0z%22%2F%3E%20%3C%2Fsvg%3E') center center no-repeat;
  background-size: 28px 6px;
}

/* ----- ЗАГОЛОВОК ПОД ХЕДЕРОМ (по центру) ----- */
.page-title {
  max-width: 1240px;
  margin: 30px auto 20px;
  padding: 0 20px;
  text-align: center;
}

.page-title h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #2c3e50;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-title h1 span {
  color: #f39c12;
}

/* ----- ГЕРОЙ-КАРТИНКА ----- */
.hero-image {
  max-width: 1240px;
  margin: 0 auto 30px;
  padding: 0 20px;
  border-radius: 24px;
  overflow: hidden;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  display: block;
  border-radius: 24px;
}

/* ----- ГАЛЕРЕЯ 6 КАРТИНОК СО СЛАЙДЕРОМ ----- */
.gallery-section {
  max-width: 1240px;
  margin: 0 auto 40px;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.gallery-wrapper {
  display: flex;
  gap: 30px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.gallery-item {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 0;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e9edf4;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(243, 156, 18, 0.10);
  border-color: #f39c12;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #eef2f7;
}

.gallery-item .caption {
  padding: 16px 20px 20px;
  font-weight: 500;
  color: #2c3e50;
  background: #ffffff;
  border-top: 1px solid #ecf0f1;
  font-size: 0.95rem;
  text-align: center;
}

/* Кнопки слайдера */
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #e9edf4;
  background: #ffffff;
  color: #2c3e50;
  font-size: 1.4rem;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  border-color: #f39c12;
  background: #f39c12;
  color: #ffffff;
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #e9edf4;
  background: #ffffff;
  color: #2c3e50;
}

/* ----- МОДАЛЬНОЕ ОКНО ДЛЯ КАРТИНОК ----- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  display: block;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 2.4rem;
  font-weight: 300;
  color: #2c3e50;
  background: rgba(255,255,255,0.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  border: none;
  line-height: 1;
}

.modal-close:hover {
  background: #f39c12;
  color: #ffffff;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}

/* ----- ТЕКСТОВЫЙ БЛОК ----- */
.text-block {
  max-width: 1240px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.text-block .inner {
  background: #ffffff;
  padding: 48px 56px;
  border-radius: 24px;
  border-left: 8px solid #f39c12;
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

.text-block h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 24px;
}

.text-block h2 span {
  color: #f39c12;
}

.text-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #34495e;
  margin-bottom: 20px;
}

.text-block ul {
  list-style: none;
  margin: 24px 0 12px;
}

.text-block ul li {
  padding: 10px 0 10px 32px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23f39c12" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') left center no-repeat;
  background-size: 22px;
  border-bottom: 1px solid #ecf0f1;
  color: #2c3e50;
  font-weight: 500;
}

.text-block ul li:last-child {
  border-bottom: none;
}

/* ===============================================================
   ФУТЕР (полностью как в примере sales-integra.ru)
   =============================================================== */
#footer {
  background: #2c3e50;
  color: #bdc3c7;
  padding: 40px 20px 24px;
  margin-top: 20px;
  position: relative;
}

#footer .block_content {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

#footer h2 {
  font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: left;
  padding: 0 0 29px 0;
  margin-bottom: 34px;
  position: relative;
  letter-spacing: 2px;
}

#footer h2::after {
  content: '';
  width: 102px;
  height: 4px;
  background: #f39c12;
  position: absolute;
  left: 0;
  bottom: 0;
}

#footer p {
  font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #bdc3c7;
  padding: 8px 0;
  margin: 0;
}

#footer p a {
  color: #bdc3c7;
  text-decoration: none;
  transition: 0.15s;
  font-weight: 400;
}

#footer p a:hover {
  color: #f39c12;
}

/* Иконки в футере */
#footer p.with_icon {
  padding-left: 54px;
  position: relative;
}

#footer p.with_icon::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#footer p.icon_phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

#footer p.icon_tgram::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69.01-.03.01-.14-.1-.2-.11-.06-.27-.04-.38-.02-.16.03-2.7 1.72-3.05 1.94-.28.18-.55.17-.91.06-.4-.13-1.04-.36-1.72-.64-.75-.32-1.33-.48-1.28-.69.03-.19.27-.38.74-.58 2.62-1.14 4.37-1.89 5.25-2.25 2.5-1.02 3.02-1.2 3.36-1.2.07 0 .19.02.28.08.06.05.09.12.1.2-.01.02-.02.09-.05.19z'/%3E%3C/svg%3E");
}

#footer p.icon_mail::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

#footer p.icon_skype::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.6 12.86c-.24.36-.58.64-1.01.83-.4.18-.86.27-1.36.27-1.04 0-1.85-.43-2.4-.83-.32-.23-.62-.5-.84-.82l-.17.2c-.31.38-.72.72-1.27.97-.5.23-1.04.34-1.6.34-.96 0-1.76-.35-2.35-1.02-.59-.66-.88-1.51-.88-2.46 0-.84.25-1.59.73-2.21.47-.6 1.13-.99 1.91-1.12-.08-.21-.13-.45-.13-.72 0-.59.18-1.14.54-1.62.36-.48.84-.84 1.44-1.08.59-.24 1.23-.36 1.91-.36.8 0 1.53.16 2.18.48.65.31 1.16.74 1.54 1.28.37.53.57 1.13.6 1.8.12.09.26.16.42.21.73.22 1.34.6 1.8 1.13.46.52.7 1.18.7 1.99 0 .7-.22 1.35-.64 1.93zm-5.56-4.44c-.36-.39-.88-.58-1.54-.58-.72 0-1.27.22-1.63.66-.37.44-.55 1.06-.55 1.86 0 .96.22 1.62.66 2.04.44.42 1.02.64 1.75.64.82 0 1.43-.27 1.81-.8.37-.53.56-1.2.56-2.02-.02-.88-.23-1.49-.69-1.88zm3.35 4.07c.31-.49.47-1.09.47-1.78 0-.84-.25-1.5-.73-1.97-.48-.47-1.16-.7-2.02-.7-.64 0-1.2.17-1.67.52.36.31.66.68.86 1.12.19.44.28.91.28 1.41 0 .73-.17 1.38-.5 1.94.51.44 1.18.66 1.99.66.66 0 1.24-.18 1.75-.53z'/%3E%3C/svg%3E");
}

/* Карта в футере (справа от текста) */
#footer_map {
  position: absolute;
  right: 0;
  top: 40px;
  width: 55%;
  height: 100%;
  min-height: 350px;
  background: #1a2632;
  border-radius: 12px;
  overflow: hidden;
}

/* Информация в футере */
#footer_info {
  padding-top: 30px;
  border-top: 1px solid #3d566e;
  margin-top: 30px;
}

#footer_info p {
  font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85rem;
  color: #95a5a6;
  padding: 4px 0;
}

#footer_info a {
  color: #95a5a6;
  text-decoration: none;
  transition: 0.15s;
}

#footer_info a:hover {
  color: #f39c12;
}

/* Адаптив */
@media (max-width: 1024px) {
  .gallery-item {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .gallery-item {
    flex: 0 0 calc(100% - 0px);
  }
  #head_bar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  #head_phone {
    font-size: 1rem;
    order: 2;
  }
  #mobile_menu_dots {
    display: block;
    order: 3;
  }
  #head_bar > svg {
    height: 30px;
    order: 1;
  }
  .page-title h1 {
    font-size: 2rem;
  }
  .text-block .inner {
    padding: 32px 20px;
  }
  .modal-content {
    max-width: 98%;
    padding: 10px;
  }
  .modal-close {
    top: 4px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  .hero-image {
    border-radius: 16px;
    padding: 0 10px;
  }
  .hero-image img {
    border-radius: 16px;
  }
  .gallery-section {
    border-radius: 16px;
    padding: 0 10px;
  }
  .text-block {
    padding: 0 10px;
  }
  .text-block .inner {
    border-radius: 16px;
  }
  #footer h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  #footer h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  #footer p {
    font-size: 0.9rem;
    text-align: center;
  }
  #footer p.with_icon {
    padding-left: 40px;
    text-align: left;
  }
  #footer p.with_icon::before {
    left: 8px;
  }
  #footer_map {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    min-height: 250px;
    margin-top: 20px;
  }
  #footer .block_content {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-title h1 {
    font-size: 1.6rem;
  }
  #head_bar {
    padding: 10px 12px;
  }
  #head_phone {
    font-size: 0.85rem;
  }
  #head_bar > svg {
    height: 24px;
  }
  #footer p.with_icon {
    padding-left: 32px;
  }
  #footer p.with_icon::before {
    width: 20px;
    height: 20px;
    left: 4px;
  }
  #footer_map {
    min-height: 200px;
  }
}