* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

/* Исправление проблем с масштабированием */
html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero {
  position: relative;
  height: 100vh;
  color: white;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.45) contrast(1.2); /* 👈 Контраст и экспозиция */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent; /* прозрачный, так как яркость регулируется через filter */
  z-index: 1;
}

/* Верхняя панель */
header {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 2;
}

.top-left-icons {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
}

.top-left-icons img,
.top-right-icon img {
  width: 21px;
  height: 21px;
  filter: invert(1); 
  transition: transform 0.2s ease, filter 0.2s ease;
}

.top-left-icons img:hover,
.top-right-icon img:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
  cursor: pointer;
}

.main-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 40px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: 400;
}

.top-right-icon {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.content {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.address {
  display: flex;
  align-items: center;
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 400;
}

.address img {
  width: 17px;
  height: 17px;
  margin-right: 10px;
  filter: invert(1); /* 👈 белая иконка */
}

.content h1 {
  font-size: 58px;
  line-height: 1.2;
  font-weight: 400; /* 👈 Regular */
}

.info-section {
  background-color: #ffffff;
  padding: 100px 60px; /* больше отступов */
  font-family: 'Poppins', sans-serif;
}

.info-container {
  display: flex;
  gap: 80px; /* больше пространства между колонками */
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1400px; /* шире контейнер */
  margin: 0 auto;
  flex-wrap: wrap;
}

.info-left {
  flex: 1;
  min-width: 400px;
}

.info-left h2 {
  font-size: 28px; /* больше заголовок */
  margin-bottom: 30px;
  font-weight: 600;
}

.info-left p {
  font-size: 18px; /* крупнее основной текст */
  line-height: 1.7;
  color: #333;
  margin-bottom: 50px;
  font-weight: 400;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 80px; /* больше промежутков */
}

.stat-item h3 {
  font-size: 48px; /* крупнее цифры */
  margin-bottom: 8px;
  border-bottom: 2px solid #000;
  display: inline-block;
  font-weight: 400;
}

.stat-item p {
  font-size: 16px;
  color: #333;
  margin: 0;
}

.info-right {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 400px;
}

.info-right video {
  width: 100%;
  max-width: 580px;
  border-radius: 36px;
  object-fit: cover;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.info-right video.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-section {
padding: 100px 40px;
background-color: #ffffff;
font-family: 'Poppins', sans-serif;
}

.service-container {
display: flex;
flex-wrap: wrap;
gap: 80px;
max-width: 1400px;
margin: 0 auto;
}

.service-left {
flex: 1;
min-width: 400px;
position: relative;
}

.service-left img {
width: 100%;
border-radius: 30px;
object-fit: cover;
max-width: 600px;
}

.expert-box {
display: flex;
align-items: center;
gap: 20px;
background-color: #ffffff;
padding: 16px 24px;
border-radius: 20px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
position: absolute;
bottom: 20px;
left: 20px;
}

.avatar-group img {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
border: 2px solid #fff;
margin-left: -10px;
}

.avatar-group img:first-child {
margin-left: 0;
}

.expert-text p {
font-size: 14px;
margin: 0;
font-weight: 500;
}

.expert-text a {
font-size: 13px;
text-decoration: underline;
color: #0077cc;
}

.service-right {
flex: 1;
min-width: 400px;
display: flex;
flex-direction: column;
gap: 30px;
}

.service-item {
background: none;
}

.service-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 6px;
}

.service-header .icon {
font-size: 20px;
font-weight: bold;
color: #000;
}

.service-item h3 {
font-size: 18px;
margin: 0;
font-weight: 600;
}

.service-item p {
font-size: 14px;
color: #333;
line-height: 1.6;
}

/* Секция aktualnosci - обновленные стили */
.aktualnosci-section {
  position: relative;
  padding: 140px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

/* Карточка */
.aktualnosci-card {
  position: relative;
  width: 535px;
  height: 627px;
  border-radius: 36px;
  z-index: 2;
  opacity: 0;
  transform: translateY(50px) rotate(5deg);
  animation: cardAppear 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.5s;
}

/* Анимация появления карточки */
@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(50px) rotate(5deg);
  }
  60% {
    transform: translateY(-10px) rotate(-2deg);
  }
  80% {
    transform: translateY(5px) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* Скошенный синий блок с анимацией */
.aktualnosci-skewed {
  position: absolute;
  width: 535px;
  height: 627px;
  top: -50px;
  left: -20px;
  background: linear-gradient(135deg, #0d4269 0%, #1a6ba3 100%);
  border-radius: 48px;
  transform: rotate(12deg);
  z-index: 0;
  opacity: 0;
  animation: skewedAppear 1s ease-out forwards;
  animation-delay: 0.8s;
  box-shadow: 0 20px 40px rgba(13, 66, 105, 0.3);
}

@keyframes skewedAppear {
  0% {
    opacity: 0;
    transform: rotate(25deg) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: rotate(12deg) scale(1);
  }
}

/* Содержимое карточки с анимацией */
.aktualnosci-content {
  position: relative;
  background: linear-gradient(to top, rgba(224, 234, 241, 0.9) 0%, rgba(248, 249, 250, 0.95) 100%);
  border-radius: 36px;
  padding: 30px;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(0.95);
  animation: contentAppear 0.8s ease-out forwards;
  animation-delay: 1.2s;
  transition: all 0.3s ease;
}

@keyframes contentAppear {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Анимация при наведении на карточку */
.aktualnosci-card:hover .aktualnosci-content {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.2);
}

.aktualnosci-card:hover .aktualnosci-skewed {
  transform: rotate(10deg) translateY(-5px);
}

/* Изображение с анимацией */
.aktualnosci-image {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: imageAppear 0.8s ease-out forwards;
  animation-delay: 1.5s;
  transition: transform 0.3s ease;
}

@keyframes imageAppear {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.aktualnosci-card:hover .aktualnosci-image {
  transform: scale(1.05);
}

/* Футер с анимацией */
.aktualnosci-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: footerAppear 0.8s ease-out forwards;
  animation-delay: 1.8s;
}

@keyframes footerAppear {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.aktualnosci-footer h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1c1c1c;
  margin: 0;
}

.aktualnosci-button {
  font-size: 14px;
  padding: 10px 24px;
  border: 2px solid #1c1c1c;
  border-radius: 25px;
  background: transparent;
  text-decoration: none;
  color: #1c1c1c;
  transition: all 0.3s ease;
  font-weight: 500;
}

.aktualnosci-button:hover {
  background-color: #1c1c1c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.science-section {
      background: #fff;
      padding: 100px 40px;
      font-family: 'Poppins', sans-serif;
      text-align: center;
    }

    .science-container {
      max-width: 1600px;
      margin: 0 auto;
    }

    .science-section h2 {
      font-size: 60px;
      font-weight: 400;
      margin-bottom: 30px;
      text-align: left;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 1s ease, transform 1s ease;
    }

    .science-subtitle {
      font-size: 18px;
      color: #000;
      max-width: 1600px;
      margin: 0 auto 60px;
      line-height: 1.6;
      text-align: right;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
    }

    .timeline {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      border-top: 2px solid #ccc;
      padding-top: 60px;
      gap: 20px;
      flex-wrap: wrap;
    }

    .timeline-item {
      position: relative;
      width: 18%;
      min-width: 160px;
      text-align: left;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .timeline-item .dot {
      width: 13px;
      height: 13px;
      background-color: #0d4269;
      border-radius: 50%;
      position: absolute;
      top: -68px;
      left: 50%;
      transform: translateX(-50%);
      box-shadow: 0 0 0 4px #e6ecf0;
      transition: all 0.5s ease;
    }

    .timeline-item p {
      font-size: 14px;
      color: #444;
      margin-top: 16px;
      line-height: 1.5;
      transition: color 0.3s ease;
    }

    /* Анимации при появлении в viewport */
    .science-section.visible h2 {
      opacity: 1;
      transform: translateY(0);
    }

    .science-section.visible .science-subtitle {
      opacity: 1;
      transform: translateY(0);
    }

    .science-section.visible .timeline-item {
      opacity: 1;
      transform: translateY(0);
    }

    /* Анимация для точек на временной линии */
    @keyframes pulse {
      0% { transform: translateX(-50%) scale(1); }
      50% { transform: translateX(-50%) scale(1.2); }
      100% { transform: translateX(-50%) scale(1); }
    }

    .science-section.visible .timeline-item .dot {
      animation: pulse 2s infinite;
    }

    /* Задержки для последовательного появления элементов */
    .science-section.visible .timeline-item:nth-child(1) { transition-delay: 0.5s; }
    .science-section.visible .timeline-item:nth-child(2) { transition-delay: 0.7s; }
    .science-section.visible .timeline-item:nth-child(3) { transition-delay: 0.9s; }
    .science-section.visible .timeline-item:nth-child(4) { transition-delay: 1.1s; }
    .science-section.visible .timeline-item:nth-child(5) { transition-delay: 1.3s; }

    /* Эффекты при наведении */
    .timeline-item:hover .dot {
      background-color: #1a6ba3;
      box-shadow: 0 0 0 6px rgba(26, 107, 163, 0.3);
      animation: none;
    }

    .timeline-item:hover p {
      color: #000;
    }


/* Содержимое */

.custom-frame {
  width: 100%;
  padding: 80px 0; /* Убираем боковой padding — он будет в контейнере */
  background-color: #ffffff; /* или #1a1a1a в dark-theme */
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Контейнер с адаптивным padding и max-width */
.custom-frame-container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 150px; /* Адаптивные отступы */
  width: 100%;
  box-sizing: border-box;
}

.custom-main-title {
  font-size: 88px;
  font-weight: 400;
  margin-bottom: -70px;
  color: #000;
  text-align: right;
}

.custom-subtitle {
  font-size: 30px;
  margin-bottom: 100px;
  color: #000;
  text-align: left;
}

.cards-wrapper {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.custom-card {
  position: relative;
  width: 500px;
  height: 500px;
  background-color: #f1f1f1;
  border-radius: 40px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-text {
  font-size: 18px;
  text-align: left;
  color: #000;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
}

.card-number-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden; /* Добавляем обрезку содержимого */
  height: 90px; /* Фиксированная высота для обрезки */
}

.number-bg {
  position: absolute;
  bottom: 0;
  left: -10px;
  width: 100px;
  height: 30px; /* Высота перекрывающего блока */
  background-color: #f1f1f1; /* Цвет карточки */
  z-index: 1;
  border-radius: 8px 8px 0 0; /* Скругляем только верхние углы */
}

.card-number {
  font-size: 180px;
  font-weight: 400;
  z-index: 2;
  position: relative;
  color: #000;
  line-height: 0.8; /* Уменьшаем межстрочный интервал */
  margin-bottom: -20px; /* Сдвигаем вверх */
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #e7ddff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vector {
  width: 24px;
  height: 24px;
  transform: rotate(45deg); 
  filter: invert(20%) sepia(55%) saturate(400%) hue-rotate(180deg);
}

/* ===== Анимации для секции custom-frame ===== */

/* Скрываем карточки до появления */
.custom-card {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Когда секция попадает в область видимости */
.custom-frame.visible .custom-card {
  opacity: 1;
  transform: translateY(0);
}

/* Анимация для чисел — "вылетают" снизу карточки */
.card-number {
  transform: translateY(120%);
  opacity: 0;
  transition: transform 1s ease-out, opacity 1s ease-out;
}

/* Когда карточка появилась, цифра поднимается */
.custom-frame.visible .card-number {
  transform: translateY(0);
  opacity: 1;
}

/* Эффект при наведении на карточку */
.custom-card:hover {
  transform: translateY(-15px);
  transition: transform 0.4s ease;
}

/* Чтобы при наведении цифры не смещались */
.custom-card:hover .card-number {
  transform: none;
}

.aktualnosci-background-text {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 56px;
  color: #c9d3dc;
  opacity: 0.3;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  animation: runningText 30s linear infinite;
  width: 400%;
}

@keyframes runningText {
  0% {
    transform: translateY(-50%) translateX(0);
  }
  100% {
    transform: translateY(-50%) translateX(-50%);
  }
}

.photo-frame-section {
  padding: 100px 40px;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
}

.photo-frame-container {
  max-width: 2000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.main-photo-frame {
  position: relative;
  width: 1600px;
  height: 400px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-bottom-left {
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: 300px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.frame-bottom-left p {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  color: #333;
}

.frame-top-right {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 80px;
  height: 80px;
  background-color: rgba(13, 66, 105, 0.9);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 28px;
  font-weight: 600;
}

.team-section {
  padding: 160px 40px;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.team-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.team-main-title {
  font-size: 55px;
  font-weight: 400;
  color: #000;
  margin-bottom: 60px;
  text-align: left;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.team-card {
  position: relative;
  height: 450px;
  perspective: 1000px;
}

.card-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
  transform: scale(0.95);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  filter: brightness(0.9);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-content {
  position: relative;
  background-color: #F2F2F2;
  border-radius: 20px;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-card:hover .card-content {
  transform: translateY(150px) rotate(-4deg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  background-color: rgba(242, 242, 242, 0.4);
}

.team-card:hover .card-photo {
  transform: scale(1);
  opacity: 1;
}

.team-card:hover .card-photo img {
  transform: scale(1.1);
}

.team-card-title {
  font-size: 22px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 15px;
  text-align: left;
}

.team-card-text {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 20px;
}

.team-card-text-new {
  font-size: 16px;
  color: #666;
  text-align: left;
  margin-top: auto;
  margin-bottom: 0;
}

.contact-section {
  padding: 100px 40px;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
}

.contact-container {
  max-width: 1400px;  /* 👈 тот же контейнер, как в других блоках */
  margin: 0 auto;
}

.contact-title {
  font-size: 55px;   /* 👈 такой же, как .team-main-title / .history-title */
  font-weight: 400;
  color: #000;
  margin-bottom: 60px;
  text-align: left;
}

.contact-form {
  display: flex;
  gap: 40px;   /* разделяем левую и правую часть */
  align-items: flex-start;
}

.form-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: 25px;
  background-color: #f0f0f0;
  font-size: 15px;
}

textarea {
  width: 100%;
  min-height: 220px;
  border: none;
  border-radius: 25px;
  background-color: #f0f0f0;
  padding: 18px 20px;
  font-size: 15px;
  resize: none;
}

.form-right {
  width: 200px;
  display: flex;
  justify-content: flex-end;
}

.send-button {
  width: 200px;
  height: 280px;
  background-color: #2f5672;
  border: none;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.send-button img {
  width: 60px;
  filter: invert(1);
}

.send-button:hover {
  background-color: #1d3c55;
}

.contact-map-section {
  padding: 100px 40px;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
}

.contact-map-container {
  max-width: 1400px;
  margin: 0 auto;
}

.contact-map-title {
  font-size: 55px;
  font-weight: 400;
  color: #000;
  margin-bottom: 60px;
  text-align: left;
}

.contact-map-content {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-map-left {
  flex: 1;
  min-width: 400px;
}

.contact-map-left h3 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 600;
}

.contact-map-left p {
  font-size: 18px;
  line-height: 1.7;
  margin: 10px 0;
  color: #333;
}

.contact-map-left a {
  color: #444;
  text-decoration: underline;
}

.contact-map-right {
  flex: 1;
  min-width: 400px;
}

.contact-map-right iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.site-footer {
  background-color: #fff;
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  font-size: 16px;
  color: #000;
  line-height: 1.6;
}

/* Стили только для чата */
    .chat-widget {
      position: fixed;
      bottom: 30px;
      right: 30px;
      z-index: 9999;
      font-family: 'Poppins', sans-serif;
    }

    .chat-icon {
      width: 70px;
      height: 70px;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      transition: all 0.3s ease;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .chat-icon:hover {
      transform: scale(1.1);
      background: rgba(255, 255, 255, 0.15);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    }

    .chat-icon img {
      width: 32px;
      height: 32px;
      filter: invert(-1);
    }
	
	/* Добавьте этот стиль в ваш CSS */
	.chat-icon img.inverted {
	  filter: invert(1) !important;
	  transition: all 0.2s;
	}

    .notification-dot {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 14px;
      height: 14px;
      background: #ff4757;
      border-radius: 50%;
      border: 2px solid rgba(13, 66, 105, 0.8);
    }

    /* Окно чата в стиле стекла */
    .chat-window {
      position: absolute;
      bottom: 90px;
      right: 0;
      width: 380px;
      height: 500px;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      border-radius: 20px;
      display: flex;
      flex-direction: column;
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px) scale(0.95);
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.15);
      overflow: hidden;
    }

    .chat-window.open {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }

    /* Заголовок чата с эффектом стекла */
    .chat-header {
      background: rgba(13, 66, 105, 0.7);
      color: #fff;
      padding: 18px 22px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .chat-header span {
      font-weight: 600;
      font-size: 17px;
      letter-spacing: 0.5px;
    }

    .chat-actions {
      display: flex;
      gap: 12px;
    }

    .chat-actions button {
      background: rgba(255, 255, 255, 0.15);
      border: none;
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      backdrop-filter: blur(5px);
    }

    .chat-actions button:hover {
      background: rgba(255, 255, 255, 0.25);
      transform: scale(1.1);
    }

    /* Тело чата */
    .chat-body {
      flex: 1;
      padding: 20px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 15px;
      background: transparent;
    }

    /* Сообщения */
    .msg {
      display: flex;
      gap: 12px;
      max-width: 85%;
      animation: msgAppear 0.3s ease;
    }

    @keyframes msgAppear {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .msg.bot {
      align-self: flex-start;
    }

    .msg.user {
      align-self: flex-end;
      flex-direction: row-reverse;
    }

    .msg-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(13, 66, 105, 0.8);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 16px;
      flex-shrink: 0;
      backdrop-filter: blur(5px);
    }

    .user .msg-avatar {
      background: rgba(74, 124, 165, 0.8);
    }

    .msg-content {
      background: rgba(255, 255, 255, 0.7);
      padding: 14px 18px;
      border-radius: 20px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.4);
      backdrop-filter: blur(5px);
    }

    .bot .msg-content {
      border-top-left-radius: 6px;
    }

    .user .msg-content {
      background: rgba(13, 66, 105, 0.12);
      border-top-right-radius: 6px;
    }

    .msg-sender {
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 5px;
      color: #0d4269;
    }

    .user .msg-sender {
      text-align: right;
      color: #4a7ca5;
    }

    .msg-text {
      font-size: 15px;
      line-height: 1.5;
      color: #333;
    }

    .msg-time {
      font-size: 11px;
      color: #777;
      margin-top: 6px;
      text-align: right;
    }

    .bot .msg-time {
      text-align: left;
    }

    /* Индикатор набора сообщения */
    .typing-indicator {
      display: none;
      padding: 12px 18px;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.5);
      margin: 0 15px;
      border-radius: 20px;
      width: fit-content;
      backdrop-filter: blur(5px);
    }

    .typing-indicator.active {
      display: flex;
    }

    .typing-indicator span {
      width: 9px;
      height: 9px;
      background: rgba(13, 66, 105, 0.6);
      border-radius: 50%;
      animation: typing 1.4s infinite ease-in-out;
    }

    .typing-indicator span:nth-child(1) { animation-delay: 0s; }
    .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
    .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

    @keyframes typing {
      0%, 60%, 100% { transform: translateY(0); }
      30% { transform: translateY(-6px); }
    }

    /* Футер чата */
    .chat-footer {
      display: flex;
      padding: 18px;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      gap: 12px;
    }

    .chat-footer input {
      flex: 1;
      border: none;
      padding: 14px 18px;
      border-radius: 25px;
      background: rgba(255, 255, 255, 0.8);
      font-size: 15px;
      outline: none;
      border: 1px solid rgba(13, 66, 105, 0.1);
      backdrop-filter: blur(5px);
    }

    .chat-footer input:focus {
      border-color: rgba(13, 66, 105, 0.3);
      box-shadow: 0 0 0 2px rgba(13, 66, 105, 0.1);
    }

    .chat-footer input::placeholder {
      color: #666;
    }

    .chat-footer button {
      width: 50px;
      height: 50px;
      border: none;
      border-radius: 50%;
      background: rgba(13, 66, 105, 0.8);
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      backdrop-filter: blur(5px);
    }

    .chat-footer button:hover {
      background: rgba(13, 66, 105, 0.9);
      transform: scale(1.05);
      box-shadow: 0 5px 15px rgba(13, 66, 105, 0.3);
    }

    .chat-footer button svg {
      width: 22px;
      height: 22px;
    }

.units-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 120px;
}

.unit-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 220px;
  display: flex;
  align-items: stretch;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.unit-content {
  background: rgba(0,0,0,0.55);
  padding: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.unit-content h3 {
  font-size: 26px;
  margin-bottom: 20px;
  font-weight: 600;
}

.unit-content p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.unit-contacts p {
  font-size: 15px;
  margin: 2px 0;
  color: #e6e6e6;
}

.survey-section {
  padding: 150px 40px;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
}

.survey-container {
  max-width: 1200px;
  margin: 0 auto;
}

.survey-title {
  font-size: 35px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #000;
}

.survey-intro {
  font-size: 18px;
  color: #333;
  margin-bottom: 50px;
  line-height: 1.6;
}

.survey-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.survey-question label {
  font-size: 20px;
  font-weight: 500;
  display: block;
  margin-bottom: 15px;
}

.scale-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.scale-wrapper span {
  font-size: 15px;
  color: #333;
}

.scale-wrapper label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

.scale-wrapper input {
  display: none;
}

.scale-wrapper input + span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.scale-wrapper input:checked + span {
  background-color: #0d4269;
  color: #fff;
  border-color: #0d4269;
}

.survey-submit {
  background-color: #0d4269;
  color: #fff;
  padding: 16px 40px;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.3s ease;
}

.survey-submit:hover {
  background-color: #09304c;
}

/* Индикатор удовлетворенности */
.satisfaction-indicator {
  text-align: center;
}

.satisfaction-indicator label {
  display: block;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #000;
}

.faces {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.face-option {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.face-option input {
  display: none;
}

.face-option span {
  display: inline-block;
  width: 48px;
  height: 48px;
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: popIn 0.6s ease forwards;
}

.face-option span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.face-option:hover span {
  transform: scale(1.2);
  opacity: 1;
}

.face-option input:checked + span {
  transform: scale(1.3);
  opacity: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Анимация появления */
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}


/* ====== Плавные анимации анкеты ====== */

/* каждый вопрос */
.survey-question {
  opacity: 0;
  transform: translateY(20px);
  animation: questionFade 0.8s ease forwards;
}

.survey-question:nth-child(1)  { animation-delay: 0.2s; }
.survey-question:nth-child(2)  { animation-delay: 0.4s; }
.survey-question:nth-child(3)  { animation-delay: 0.6s; }
.survey-question:nth-child(4)  { animation-delay: 0.8s; }
.survey-question:nth-child(5)  { animation-delay: 1.0s; }
.survey-question:nth-child(6)  { animation-delay: 1.2s; }
.survey-question:nth-child(7)  { animation-delay: 1.4s; }
.survey-question:nth-child(8)  { animation-delay: 1.6s; }
.survey-question:nth-child(9)  { animation-delay: 1.8s; }
.survey-question:nth-child(10) { animation-delay: 2.0s; }
.survey-question:nth-child(11) { animation-delay: 2.2s; }
.survey-question:nth-child(12) { animation-delay: 2.4s; }
.survey-question:nth-child(13) { animation-delay: 2.6s; }

@keyframes questionFade {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* поля ввода в вопросах */
.survey-input, 
.scale-wrapper label span {
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.scale-wrapper label:hover span {
  transform: scale(1.15);
  opacity: 0.9;
}

/* кнопка отправки */
.survey-submit {
  opacity: 0;
  transform: translateY(20px);
  animation: questionFade 0.8s ease forwards;
  animation-delay: 3s;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.survey-submit:hover {
  transform: scale(1.05);
}

/* ====== Стили для современного select ====== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 25px;
  background-color: #f0f0f0;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-select:focus {
  outline: none;
  background-color: #e6e6e6;
  box-shadow: 0 0 0 3px rgba(13, 66, 105, 0.3);
}

.custom-arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #333;
  transition: transform 0.3s ease;
}

.custom-select:focus + .custom-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* ====== Стили для анкеты ====== */
.ankieta-section {
  padding: 120px 40px;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
}

.ankieta-container {
  max-width: 1000px;
  margin: 0 auto;
}

.ankieta-title {
  font-size: 35px;
  font-weight: 300;
  margin-bottom: 20px;
  color: #000;
}

.ankieta-intro {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 50px;
  color: #333;
}

.ankieta-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ankieta-question p {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #000;
}

.ankieta-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  position: relative;
}

.ankieta-option input {
  display: none;
}

.ankieta-option input[type="radio"] + span::before,
.ankieta-option input[type="checkbox"] + span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #999;
  border-radius: 50%; 
  background: #fff;
  transition: all 0.3s ease;
  margin-right: 8px;
}

.ankieta-option input[type="checkbox"] + span::before {
  border-radius: 4px;
}

.ankieta-option input:checked + span::before {
  background-color: #0d4269;
  border-color: #0d4269;
  box-shadow: 0 0 0 3px rgba(13, 66, 105, 0.2);
}

.ankieta-input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #eee;
  border-radius: 12px;
  background-color: #f9f9f9;
  font-size: 15px;
  color: #333;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.ankieta-input:focus {
  outline: none;
  border-color: #0d4269;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(13, 66, 105, 0.2);
}

.ankieta-submit {
  background-color: #0d4269;
  color: #fff;
  padding: 16px 50px;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.ankieta-submit:hover {
  background-color: #09304c;
  transform: scale(1.05);
}

/* Стили для выпадающего меню с эффектом стекла */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 270px;
  border-radius: 16px;
  overflow: hidden;
  flex-direction: column;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown:hover .dropdown-content {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 12px 24px;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dropdown-content a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.dropdown-content a:hover::before {
  left: 100%;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 32px;
}

/* Анимация появления пунктов меню */
.dropdown-content a {
  opacity: 0;
  transform: translateX(-10px);
  animation: menuItemAppear 0.4s ease forwards;
}

/* Исправление анимации для всех пунктов dropdown */
.dropdown-content a:nth-child(1) { animation-delay: 0.1s; }
.dropdown-content a:nth-child(2) { animation-delay: 0.2s; }
.dropdown-content a:nth-child(3) { animation-delay: 0.3s; }
.dropdown-content a:nth-child(4) { animation-delay: 0.4s; }
.dropdown-content a:nth-child(5) { animation-delay: 0.5s; }

.mobile-dropdown-content a {
  opacity: 0;
  transform: translateX(-10px);
  animation: menuItemAppear 0.4s ease forwards;
}

.mobile-dropdown-content a:nth-child(1) { animation-delay: 0.1s; }
.mobile-dropdown-content a:nth-child(2) { animation-delay: 0.2s; }
.mobile-dropdown-content a:nth-child(3) { animation-delay: 0.3s; }
.mobile-dropdown-content a:nth-child(4) { animation-delay: 0.4s; }

@keyframes menuItemAppear {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Улучшение основного меню */
.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: 400;
  position: relative;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  opacity: 0.8;
}

.dropbtn {
  cursor: pointer;
  position: relative;
}


.extra-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
}

.extra-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.extra-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.extra-icon img {
  width: 28px;
  height: 28px;
  filter: invert(0);
}

/* Добавьте этот стиль в ваш CSS */
.extra-icon img.inverted {
  filter: invert(1) !important;
  transition: all 0.2s;
}

/* Стили для расположения изображений по бокам текста */
.contact-map-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.parking-image-left,
.parking-image-right {
  display: flex;
  align-items: flex-start;
}

.parking-image-left img,
.parking-image-right img {
  object-fit: cover;
  height: auto;
}


/* Стили для быстрых вопросов - ФИНАЛЬНАЯ ВЕРСИЯ */
.quick-questions-container {
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(13, 66, 105, 0.1);
  border-bottom: 1px solid rgba(13, 66, 105, 0.05);
  backdrop-filter: blur(10px);
  max-height: 110px;
  overflow: hidden;
}

.quick-questions-title {
  font-size: 12px;
  color: #0d4269;
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
  opacity: 0.9;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 100%;
}

.quick-question-btn {
  background: linear-gradient(135deg, #0d4269, #1a6ba3) !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  font-size: 11px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  color: white !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 6px rgba(13, 66, 105, 0.25) !important;
  white-space: nowrap !important;
  flex: 1 !important;
  min-width: 110px !important;
  max-width: 140px !important;
  text-align: center !important;
}

.quick-question-btn:hover {
  background: linear-gradient(135deg, #09304c, #0d4269) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(13, 66, 105, 0.35) !important;
}

.quick-question-btn:active {
  transform: translateY(0) !important;
}

/* Кнопка переключения быстрых вопросов */
.quick-questions-toggle {
  background: rgba(13, 66, 105, 0.1) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 10px !important;
  flex-shrink: 0 !important;
}

.quick-questions-toggle:hover {
  background: rgba(13, 66, 105, 0.2) !important;
  transform: scale(1.05) !important;
}

/* Контейнер для поля ввода и кнопки */
.chat-footer {
  display: flex;
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  gap: 10px;
  align-items: center; /* Выравнивание по центру по вертикали */
}

.chat-footer input {
  flex: 1;
  border: none;
  padding: 14px 18px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  outline: none;
  border: 1px solid rgba(13, 66, 105, 0.1);
  backdrop-filter: blur(5px);
  height: 40px; /* Фиксированная высота для выравнивания */
}

.chat-footer button#sendMsg {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(13, 66, 105, 0.8);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(5px);
  flex-shrink: 0;
}

.msg-text a {
  color: #0d4269;
  text-decoration: underline;
  font-weight: 500;
}

.msg-text a:hover {
  color: #0a3352;
  text-decoration: none;
}

/* Анимации */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 110px;
  }
}

.quick-questions-container {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 110px;
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
}

.quick-questions-container.hiding {
  animation: slideUp 0.2s ease-out forwards;
  overflow: hidden;
}

/* Убираем горизонтальный скролл */
.chat-window {
  overflow: hidden;
}

.chat-body {
  overflow-x: hidden;
}

/* Стили для поиска */
.search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.search-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  padding: 5px 0;
  width: 0;
  opacity: 0;
  transition: all 0.3s ease;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-input.active {
  width: 200px;
  opacity: 1;
}

.search-icon {
  transition: transform 0.3s ease;
}

.search-icon:hover {
  transform: scale(1.1);
}


/* Стили для построения маршрута */
.map-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Обновленные стили для построения маршрута */
.route-controls {
  position: absolute;
  top: 15px;
  right: 15px; /* Изменено с left на right */
  z-index: 1000;
}

.route-btn {
  background: rgba(13, 66, 105, 0.9);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.route-btn:hover {
  background: rgba(13, 66, 105, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.route-inputs {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 20px;
  margin-top: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
  animation: slideDown 0.3s ease;
  position: absolute;
  right: 0; /* Выравнивание по правому краю */
  top: 100%;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.route-inputs input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.route-inputs input:focus {
  border-color: #0d4269;
}

.route-inputs button {
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#calculateRoute {
  background: #0d4269;
  color: white;
}

#calculateRoute:hover {
  background: #09304c;
}

#useMyLocation {
  background: #f0f0f0;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

#useMyLocation:hover {
  background: #e0e0e0;
}

#closeRoute {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}

#closeRoute:hover {
  background: #f8f8f8;
}


.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0d4269;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Индикатор загрузки */
.route-loading {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 1001;
  text-align: center;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0d4269;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Стили для панели результатов поиска */
.search-results-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 70vh;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: searchPanelAppear 0.3s ease;
}

@keyframes searchPanelAppear {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #0d4269;
  color: white;
  font-weight: 600;
}

.search-results-header button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.search-results-header button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.search-results-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.search-result-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.3s ease;
  border-radius: 8px;
  margin: 5px 0;
}

.search-result-item:hover {
  background: #f5f9ff;
}

.result-preview {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #333;
}

.result-context {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.search-highlight-preview {
  background: #ffeb3b;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: bold;
}

.search-highlight {
  background: #ffeb3b;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: bold;
  animation: highlightPulse 2s ease;
}

@keyframes highlightPulse {
  0% { background: #ffeb3b; }
  50% { background: #ffd700; }
  100% { background: #ffeb3b; }
}

/* Затемнение фона */
.search-results-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

/* ============================
   COOKIES NOTIFICATION
============================ */

.cookies-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    width: 90%;
    max-width: 400px;

    background: #f8f9fa;
    color: #333;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);

    z-index: 10000;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.5;

    opacity: 0;
    transition: all 0.5s ease;
}

.cookies-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cookies-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookies-content p {
    margin: 0;
}

/* Buttons */
.cookies-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookies-accept,
.cookies-reject {
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Accept */
.cookies-accept {
    background: #0d4269;
    color: #fff;
}

.cookies-accept:hover {
    background: #09304c;
    transform: translateY(-1px);
}

/* Reject */
.cookies-reject {
    background: #e0e0e0;
    color: #333;
}

.cookies-reject:hover {
    background: #d0d0d0;
    transform: translateY(-1px);
}

/* Link */
.cookies-learn-more {
    color: #0d4269;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
}

.cookies-learn-more:hover {
    color: #09304c;
    text-decoration: underline;
}

/* Стили для видео в service-section */
.service-left video {
  width: 100%;
  border-radius: 30px;
  object-fit: cover;
  max-width: 600px;
  height: auto;
}

/* Анимация появления видео */
.service-left video {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.service-left video.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-bottom-images {
  position: absolute;
  bottom: 30px;
  left: 40px;
  display: flex;
  gap: 25px;
  align-items: center;
  z-index: 2;
}

.logo-item {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

/* Логотип больницы */
.hero-bottom-images .logo-item:nth-child(1) img {
  height: 30px;
  width: auto;
  opacity: 0.95;
}

/* Логотип BIP */
.hero-bottom-images .logo-item:nth-child(2) img {
  height: 25px;
  width: auto;
  opacity: 0.85;
  filter: invert(0.1);
}

/* Логотип EU */
.hero-bottom-images .logo-item:nth-child(3) img {
  height: 42px;
  width: auto;
  opacity: 0.9;
  border-radius: 6px;
}

/* Ховер-эффекты для контейнеров */
.hero-bottom-images .logo-item:nth-child(1):hover {
  transform: scale(1.05);
}

.hero-bottom-images .logo-item:nth-child(1):hover img {
  opacity: 1;
  filter: brightness(1.2);
}

.hero-bottom-images .logo-item:nth-child(2):hover {
  transform: scale(1.08);
}

.hero-bottom-images .logo-item:nth-child(2):hover img {
  opacity: 1;
  filter: invert(0);
}

.hero-bottom-images .logo-item:nth-child(3):hover {
  transform: scale(1.03);
}

.hero-bottom-images .logo-item:nth-child(3):hover img {
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* ===== DARK THEME STYLES ===== */
body.dark-theme {
  background-color: #0a0a0a;
  color: #e0e0e0;
}

body.dark-theme .info-section {
  background-color: #1a1a1a;
}

body.dark-theme .info-left h2,
body.dark-theme .info-left p,
body.dark-theme .stat-item p {
  color: #e0e0e0;
}

body.dark-theme .stat-item h3 {
  border-bottom-color: #e0e0e0;
  color: #ffffff;
}

body.dark-theme .service-section {
  background-color: #1a1a1a;
}

body.dark-theme .service-item h3,
body.dark-theme .service-item p {
  color: #e0e0e0;
}

body.dark-theme .service-header .icon {
  color: #ffffff;
}

body.dark-theme .expert-box {
  background-color: #2a2a2a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.dark-theme .expert-text p {
  color: #e0e0e0;
}

body.dark-theme .expert-text a {
  color: #4a9eff;
}

body.dark-theme .science-section {
  background-color: #1a1a1a;
}

body.dark-theme .science-section h2,
body.dark-theme .science-subtitle,
body.dark-theme .timeline-item p {
  color: #e0e0e0;
}

body.dark-theme .science-subtitle strong {
  color: #ffffff;
}

body.dark-theme .timeline {
  border-top-color: #444;
}

body.dark-theme .timeline-item .dot {
  background-color: #fa7d00;
  box-shadow: 0 0 0 4px #2a2a2a;
}

body.dark-theme .timeline-item:hover .dot {
  background-color: #ff954a;
  box-shadow: 0 0 0 6px rgba(255, 176, 120, 1);
}

body.dark-theme .custom-frame {
  background-color: #1a1a1a;
}

body.dark-theme .custom-main-title,
body.dark-theme .custom-subtitle {
  color: #e0e0e0;
}

body.dark-theme .custom-card {
  background-color: #2a2a2a;
}

body.dark-theme .card-text {
  color: #e0e0e0;
}

body.dark-theme .number-bg {
  background-color: #2a2a2a;
}

body.dark-theme .card-number {
  color: #ffffff;
}

body.dark-theme .icon {
  background-color: #3a3a3a;
}

body.dark-theme .team-section {
  background-color: #1a1a1a;
}

body.dark-theme .team-main-title {
  color: #e0e0e0;
}

body.dark-theme .card-content {
  background-color: #2a2a2a;
}

body.dark-theme .team-card-title {
  color: #ffffff;
}

body.dark-theme .team-card-text,
body.dark-theme .team-card-text-new {
  color: #b0b0b0;
}

body.dark-theme .contact-section {
  background-color: #1a1a1a;
}

body.dark-theme .contact-title {
  color: #e0e0e0;
}

body.dark-theme .form-row input,
body.dark-theme textarea {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #444;
}

body.dark-theme .form-row input::placeholder,
body.dark-theme textarea::placeholder {
  color: #888;
}

body.dark-theme .contact-map-section {
  background-color: #1a1a1a;
}

body.dark-theme .contact-map-title {
  color: #e0e0e0;
}

body.dark-theme .contact-map-left h3 {
  color: #ffffff;
}

body.dark-theme .contact-map-left p {
  color: #b0b0b0;
}

body.dark-theme .contact-map-left a {
  color: #4a9eff;
}

body.dark-theme .site-footer {
  background-color: #1a1a1a;
  border-top-color: #333;
}

body.dark-theme .footer-container {
  color: #b0b0b0;
}

body.dark-theme .aktualnosci-section {
  background-color: #1a1a1a;
}

body.dark-theme .aktualnosci-content {
  background: linear-gradient(to top, rgba(40, 40, 40, 0.9) 0%, rgba(50, 50, 50, 0.95) 100%);
}

body.dark-theme .aktualnosci-skewed {
  background: linear-gradient(135deg, #8a3704 0%, #b84700 100%);
  box-shadow: 0 20px 40px rgba(240, 151, 17, 0.2);
}

body.dark-theme .aktualnosci-footer h3 {
  color: #ffffff;
}

body.dark-theme .aktualnosci-button {
  border-color: #e0e0e0;
  color: #e0e0e0;
}

body.dark-theme .aktualnosci-button:hover {
  background-color: #e0e0e0;
  color: #1a1a1a;
}

/* Chat widget in dark theme */
body.dark-theme .chat-window {
  background: rgba(40, 40, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .chat-header {
  background: rgba(13, 66, 105, 0.9);
}

body.dark-theme .msg-content {
  background: rgba(60, 60, 60, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .user .msg-content {
  background: rgba(13, 66, 105, 0.3);
}

body.dark-theme .msg-text {
  color: #e0e0e0;
}

body.dark-theme .chat-footer {
  background: rgba(40, 40, 40, 0.8);
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .chat-footer input {
  background: rgba(60, 60, 60, 0.9);
  color: #e0e0e0;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .chat-footer input::placeholder {
  color: #888;
}

/* Quick questions in dark theme */
body.dark-theme .quick-questions-container {
  background: rgba(40, 40, 40, 0.98);
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .quick-questions-title {
  color: #4a9eff;
}

/* Search in dark theme */
body.dark-theme .search-input {
  color: #e0e0e0;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

body.dark-theme .search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Dropdown in dark theme */
body.dark-theme .dropdown-content {
  background: rgba(40, 40, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Photo frame section in dark theme */
body.dark-theme .photo-frame-section {
  background-color: #1a1a1a;
}

body.dark-theme .frame-bottom-left {
  background-color: rgba(40, 40, 40, 0.9);
}

body.dark-theme .frame-bottom-left p {
  color: #e0e0e0;
}

/* Survey section in dark theme */
body.dark-theme .survey-section {
  background-color: #1a1a1a;
}

body.dark-theme .survey-title,
body.dark-theme .survey-intro,
body.dark-theme .survey-question label,
body.dark-theme .satisfaction-indicator label {
  color: #e0e0e0;
}

body.dark-theme .scale-wrapper span {
  color: #b0b0b0;
}

/* Ankieta section in dark theme */
body.dark-theme .ankieta-section {
  background-color: #1a1a1a;
}

body.dark-theme .ankieta-title,
body.dark-theme .ankieta-intro,
body.dark-theme .ankieta-question p,
body.dark-theme .ankieta-option {
  color: #e0e0e0;
}

body.dark-theme .ankieta-input {
  background-color: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-theme .ankieta-input::placeholder {
  color: #888;
}

/* Units section in dark theme */
body.dark-theme .unit-content {
  background: rgba(0, 0, 0, 0.7);
}

/* Cookies notification in dark theme */
body.dark-theme .cookies-notification {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Remove the old inverted theme styles */
body.inverted-theme {
  filter: none !important;
}

body.inverted-theme img,
body.inverted-theme video {
  filter: none !important;
}

body.inverted-theme .chat-window,
body.inverted-theme .dropdown-content,
body.inverted-theme .extra-icon,
body.inverted-theme .chat-icon {
  filter: none !important;
}

body.dark-theme .send-button{
	background-color: #bf550a;
}

body.dark-theme .send-button:hover {
  background-color: #c4611b;
}
/* Theme toggle icon styles */
#icon1 {
    transition: transform 0.3s ease, filter 0.3s ease;
}

body.dark-theme #icon1 {
    filter: invert(0.8) brightness(1.5);
}

#icon1:hover {
    transform: scale(1.15);
}

/* Стили для видео в aktualnosci-section */
.aktualnosci-video {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out 0.9s, transform 0.3s ease;
}

.aktualnosci-card.visible .aktualnosci-video {
  opacity: 1;
  transform: translateY(0);
}

.aktualnosci-card:hover .aktualnosci-video {
  transform: scale(1.05);
}

.server-results {
    max-width: 800px;
    max-height: 600px;
}

.server-result {
    cursor: pointer;
    transition: background-color 0.2s;
}

.server-result:hover {
    background-color: #f8f9fa;
}

.result-meta {
    margin-bottom: 5px;
}

.result-url {
    font-size: 12px;
    color: #0d4269;
    font-weight: bold;
}

.result-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.result-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.search-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 15px;
    border-top: 1px solid #eee;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.page-btn:hover {
    background: #f8f9fa;
}

.page-btn.active {
    background: #0d4269;
    color: white;
    border-color: #0d4269;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.search-loading {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d4269;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Временное скрытие expert-box */
.expert-box {
  display: none !important;
}

/* Альтернативно, если нужно оставить место для будущего использования */
.service-left {
  position: relative;
}

/* Если хотите полностью убрать отступ */
.service-left .expert-box {
  display: none;
}

.announcement {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: min(90%, 900px);

  /* ==== стеклянный эффект ==== */
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);

  border-radius: 28px;
  padding: 32px;
  z-index: 9999;

  opacity: 0;
  animation: announcementFadeIn 0.55s ease forwards;
  font-family: 'Poppins', sans-serif;
}

.announcement h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 600;
}

.announcement p {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
}

/* кнопка закрытия */
.announcement-close {
  position: absolute;
  top: 12px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  width: 32px;
  height: 32px;

  font-size: 20px;
  cursor: pointer;
  color: #0d4269;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

/* плавное появление */
@keyframes announcementFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
