/* =========================================== */
/* === СТИЛИ ДЛЯ БЛОКА "О НАС" === */
/* =========================================== */

.siti-product-list li {
    list-style-type: none; 
}

.event-photos-grid {
    display: grid;
    /* Определяем две колонки равной ширины */
    grid-template-columns: 1fr 1fr; 
    gap: 20px; /* Промежуток между фотографиями */
}

.event-photo-item img {
    /* Чтобы изображения не искажались и заполняли контейнер */
    width: 100%;
    height: auto;
    display: block;
}

.siti-product-list ul {
    /* Это убирает отступы, которые браузер ставит для маркеров */
    padding-left: 0;
    margin-left: 0; 
}

.siti-about-section {
  background-color: #f7f9fb; /* Светлый фон */
  padding: 40px 0;
}

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

.siti-about-title {
  font-family: Onest;
  font-weight: 500;
  font-style: Medium;
  font-size: 42px;
  leading-trim: NONE;
  line-height: 105%;
  letter-spacing: -3%;
  color: rgba(0, 16, 46, 1);
  margin-bottom: 32px;
  margin-top: 0;
}

/* --- КОНТЕНТНЫЙ РЯД (ФОТО + ТЕКСТ) --- */
.siti-about-content-row {
  display: flex;
  gap: 40px; /* Расстояние между колонками */
  border-radius: 8px;
}

/* --- ЛЕВАЯ КОЛОНКА: ИЗОБРАЖЕНИЕ --- */
.siti-about-visual {
  flex-shrink: 0; /* Не сжимается */
  max-width: 584px; /* Примерно 45% от ширины блока */
  position: relative;
  overflow: hidden;
  border-radius: 8px 0 0 8px; /* Скругление только слева */
}

.siti-about-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* --- ПРАВАЯ КОЛОНКА: ТЕКСТ --- */
.siti-about-text-content {
  flex-grow: 1; /* Занимает оставшееся место */
  padding: 16px 0px 30px 0; /* Внутренние отступы */
}

.siti-text-heading {
  font-family: Onest;
  font-weight: 500;
  font-style: Medium;
  font-size: 36px;
  leading-trim: NONE;
  line-height: 110.00000000000001%;
  letter-spacing: 0%;
  color: rgba(0, 16, 46, 1);
  margin-top: 0;
  margin-bottom: 8px;
}

.siti-text-intro {
  font-family: Onest;
  font-weight: 500;
  font-style: Medium;
  font-size: 20px;
  leading-trim: NONE;
  line-height: 140%;
  letter-spacing: 0%;
  color: rgba(0, 16, 46, 1);
  margin-bottom: 16px;
  margin-top: 0px;
}

.siti-text-label {
  font-family: Onest;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  leading-trim: NONE;
  line-height: 140%;
  letter-spacing: 0%;
  color: rgba(0, 16, 46, 1);
  margin-bottom: 12px;
  margin-top: 0px;
  opacity: 0.8;
}

/* Список продукции */
.siti-product-list {
  list-style: none; /* Убираем стандартные маркеры */
  padding: 0;
  margin: 0 0 30px 0;
}

.siti-product-list li {
  position: relative;
  font-family: Onest;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  leading-trim: NONE;
  line-height: 140%;
  letter-spacing: 0%;
  color: rgba(0, 16, 46, 1);
  padding-left: 15px;
  opacity: 0.8;
}

.siti-product-list li::before {
  content: "•"; /* Стилизованный маркер-точка */
  position: absolute;
  left: 0;
  color: #0d2c60; /* Синий цвет маркера */
  font-size: 16px;
}

/* --- КНОПКА --- */
.siti-offer-button {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 60px;
  text-decoration: none;
  text-align: center;

  /* Градиент, как на скриншоте (от светлого к темному зеленому) */
  background: linear-gradient(180deg, #52cc73 28.37%, #169037 100%);
  color: rgba(255, 255, 255, 1);
  font-family: Onest;
  font-weight: 500;
  font-style: Medium;
  font-size: 17px;
  leading-trim: NONE;
  line-height: 140%;
  letter-spacing: 0%;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0px 5px 8px 0px rgba(46, 46, 65, 0.2);
  border:none;
}

.siti-offer-button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  background: #45a049;
}

/* =========================================== */
/* === СТИЛИ ДЛЯ БЛОКА "ПРЕИМУЩЕСТВА" === */
/* =========================================== */

.siti-features-section {
  background-color: white; /* Фон светлый/белый */
  padding: 60px 0;
  border-bottom: 1px solid #e0e0e0; /* Разделитель внизу, как на скриншоте */
  padding-bottom: 48px;
}

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

.siti-features-list {
  display: flex;
  justify-content: space-between; /* Распределяем элементы равномерно */
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.siti-feature-item {
  flex: 1 1 20%; /* Позволяет разместить 5 блоков, каждый занимает 20% */
  padding: 0 15px; /* Внутренние горизонтальные отступы */
  box-sizing: border-box;
}

/* На скриншоте явно 4 блока, поэтому для 4-х блоков лучше использовать 25% */
.siti-features-list:has(.siti-feature-item:nth-last-child(4):first-child)
  .siti-feature-item {
  flex: 1 1 25%;
}
/* Скрываем 5-й блок, если он не нужен, и выравниваем 4 блока */
.siti-feature-placeholder {
  display: none;
}

/* --- СТИЛИ КОМПОНЕНТОВ --- */

.siti-feature-icon {
  width: 50px; /* Размер иконки */
  height: 50px;
  margin: 0 auto 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.siti-feature-title {
  font-family: Onest;
  font-weight: 500;
  font-style: Medium;
  font-size: 20px;
  leading-trim: NONE;
  line-height: 130%;
  letter-spacing: 0%;
  text-align: center;
  color: rgba(0, 16, 46, 1);
  margin-bottom: 10px;
}

.siti-feature-text {
  font-family: Onest;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 140%;
  letter-spacing: 0%;
  text-align: center;
  opacity: 0.6;
  color: rgba(0, 16, 46, 1);
}

/* =========================================== */
/* === СТИЛИ ДЛЯ БЛОКА "ИСТОРИЯ КОМПАНИИ" === */
/* =========================================== */

.siti-history-section {
  background-color: #f7f9fb; /* Светлый фон */
  padding: 80px 0;
}

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

.siti-history-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Выравнивание по верхнему краю */
  gap: 40px;
}

/* --- ЛЕВАЯ КОЛОНКА: ТЕКСТ --- */
.siti-history-text-content {
  flex: 1 1 50%; /* Занимает примерно половину ширины */
  padding-right: 20px;
}

.siti-history-title {
  font-family: Onest;
  font-weight: 500;
  font-style: Medium;
  font-size: 32px;
  leading-trim: NONE;
  line-height: 105%;
  letter-spacing: -3%;
  color: rgba(0, 16, 46, 1);
  margin-bottom: 20px;
  margin-top: 24px;
}

.siti-history-text {
  font-family: Onest;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  leading-trim: NONE;
  line-height: 140%;
  letter-spacing: 0%;
  color: rgba(0, 16, 46, 1);
  margin-bottom: 40px;
}

/* --- КНОПКА --- */
.siti-history-button {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 30px;
  text-decoration: none;
  text-align: center;

  /* Градиент, как на скриншоте (синий) */
  background: linear-gradient(180deg, #5898f6 28.37%, #295da9 100%);
  font-family: Onest;
  font-weight: 500;
  font-style: Medium;
  font-size: 17px;
  leading-trim: NONE;
  line-height: 140%;
  letter-spacing: 0%;
  color: rgba(255, 255, 255, 1);
  border: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0px 5px 8px 0px rgba(46, 46, 65, 0.2);
}

.siti-history-button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* --- ПРАВАЯ КОЛОНКА: ИЗОБРАЖЕНИЕ --- */
.siti-history-visual {
  flex-shrink: 0;
  max-width: 584px;
  overflow: hidden;
  position: relative;
}

.siti-history-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* Скругление углов, как на скриншоте */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* =========================================== */
/* === СТИЛИ ДЛЯ БЛОКА "КОРПОРАТИВЫ КОМПАНИИ" === */
/* =========================================== */

.siti-corporate-events-section {
  background-color: #f7f9fb; /* Светлый фон */
  padding: 20px 0;
}

.siti-corporate-events-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.siti-corporate-events-title {
  font-family: Onest;
  font-weight: 500;
  font-style: Medium;
  font-size: 36px;
  leading-trim: NONE;
  line-height: 105%;
  letter-spacing: -3%;
  color: rgba(0, 16, 46, 1);
  margin-bottom: 32px;
}

/* --- СЕТКА КАРТОЧЕК --- */
.siti-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- КАРТОЧКА СОБЫТИЯ --- */
.siti-event-card {
  display: block;
  background-color: white; /* Фон для карточки, если изображение не полностью покрывает */
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: white; /* Текст белого цвета, так как он поверх темного фона */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  position: relative; /* !!! Важно для позиционирования текста поверх изображения */
}

.siti-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.siti-event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 288px;
}

/* --- ИЗМЕНЕНИЯ ЗДЕСЬ: ТЕКСТ ПОВЕРХ ФОТО --- */
.siti-event-info {
  position: absolute; /* !!! Позиционируем абсолютно */
  bottom: 0; /* !!! Внизу карточки */
  left: 0;
  width: 100%;
  padding: 10px 15px; /* Отступы для текста */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0)
  ); /* Градиент от темноты к прозрачности */
  color: white; /* Цвет текста */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Небольшая тень для читаемости */
}

.siti-event-date {
  font-family: Onest;
  font-weight: 400;
  font-style: Regular;
  font-size: 22px;
  leading-trim: NONE;
  line-height: 110.00000000000001%;
  letter-spacing: 0%;
  vertical-align: bottom;
  color: rgba(255, 255, 255, 1);
  margin: 0; /* Убираем стандартные отступы у параграфа */
}

/* --- АДАПТИВНОСТЬ (без изменений) --- */
@media (max-width: 992px) {
  .siti-events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .siti-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .siti-events-grid {
    grid-template-columns: 1fr;
  }
  
  .siti-features-list:has(.siti-feature-item:nth-last-child(4):first-child) .siti-feature-item {
            flex: 0 0 100%;
}
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
  .siti-history-row {
    flex-direction: column; /* В одну колонку на планшетах */
    gap: 30px;
  }

  .siti-history-text-content {
    padding-right: 0;
  }

  .siti-history-visual {
    order: -1; /* Переносим изображение наверх, если нужно */
    min-height: 250px;
  }
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
  .siti-features-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 20px;
  }

  .siti-feature-item {
    flex: 0 0 45%; /* 2 элемента в ряд на планшетах */
    max-width: 45%;
  }
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
  .siti-about-content-row {
    flex-direction: column; /* В одну колонку на планшетах */
    gap: 0;
  }

  .siti-about-visual {
    width: 100%;
    height: 250px; /* Фиксированная высота для мобильных */
    border-radius: 8px 8px 0 0;
  }

  .siti-about-text-content {
    padding: 30px 20px; /* Отступы со всех сторон */
  }

  .siti-logo-overlay {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .siti-feature-item {
    flex: 0 0 100%; /* 1 элемент в ряд на мобильных */
    max-width: 100%;
  }
  .siti-about-title {
    font-family: Onest;
    font-weight: 500;
    font-style: Medium;
    font-size: 28px;
    leading-trim: NONE;
    line-height: 105%;
    letter-spacing: -3%;
  }
  .siti-text-heading {
    font-family: Onest;
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 110.00000000000001%;
    letter-spacing: 0%;
    margin-bottom: 12px;
  }
  .siti-text-intro {
    font-family: Onest;
    font-weight: 500;
    font-style: Medium;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 110.00000000000001%;
    letter-spacing: 0%;
  }
  .siti-text-label {
    font-family: Onest;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
  }
  .siti-product-list li {
    font-family: Onest;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
  }
  .siti-offer-button {
    font-family: Onest;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: 0%;
    padding: 18px 30px;
  }
  .siti-feature-icon {
    margin: 0;
  }
  .siti-feature-title {
    text-align: start;
  }
  .siti-feature-text {
    text-align: start;
  }
  .siti-history-button {
    padding: 18px 30px;
  }
  .siti-history-section {
    padding-bottom: 0;
  }
}

.siti-events-show-more-wrapper {
  display: none; /* Скрываем кнопку по умолчанию */
  justify-content: center;
  margin-top: 30px;
}

.siti-events-show-more-btn {
  background-color: transparent;
  border: none;
  color: rgba(12, 67, 148, 1);
  font-family: Onest;
  font-weight: 500;
  font-style: Medium;
  font-size: 14px;
  leading-trim: NONE;
  line-height: 130%;
  letter-spacing: 0%;

  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.siti-events-show-more-btn img {
  width: 10px;
  height: 5px;
  transition: transform 0.3s;
}

.siti-events-show-more-btn.expanded img {
  transform: rotate(180deg);
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
  .siti-corporate-events-section .siti-event-card:nth-child(n + 4) {
    display: none; /* Скрываем все карточки, начиная с 5-й */
  }

  .siti-corporate-events-section .siti-events-grid.expanded .siti-event-card {
    display: block; /* Показываем все карточки, когда у родителя есть класс .expanded */
  }
  .siti-events-show-more-wrapper {
    display: flex;
  }
}
