/* ==========================================================================
Office Popup — isolated styles for #popup-office
Fully independent, no reliance on other popup styles
Uses `office-` prefix and `--office-` variables
=========================================================================== */

#popup-office {
  display: none;
}

#popup-office.active {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
}

/* Фон затемнения */
#popup-office .office__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Основной контейнер */
#popup-office .office__frame {
  position: relative;
  max-width: 1080px;
  width: 96%;
  margin: 40px auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: #2a2a2a;
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Кнопка "Позвоните нам" */
.office__callwrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.office-callbtn {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  background: #ff0000;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 12px 80px;
  font-size: 28px;
  font-weight: 600;
  cursor: pointer;
}

.office-callbtn:hover {
  background: #cc0000;
}

.office-callbtn__icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* Заголовок */
.office__section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin: 6px 0 14px 0;
}

/* Описание */
.office__description {
  text-align: center;
  color: #ccc;
  font-size: 18px;
  margin-bottom: 16px;
}

/* Сетка карточек — одинаковая ширина */
.office-card {
  flex: 1 1 30%; /* Одинаковая ширина для всех карточек */
}

/* Сетка карточек — горизонтальное расположение в одну строку */
.office__grid {
  display: flex;
  flex-direction: row; /* Горизонтальное расположение */
  flex-wrap: nowrap; /* Запрет переноса строк */
  justify-content: space-between; /* Равномерное распределение */
  gap: 16px; /* Расстояние между блоками */
  margin-bottom: 24px; /* Отступ снизу */
}

/* Карточка */
.office-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: #242424;
  overflow: hidden;
  min-height: 180px;
  box-sizing: border-box;
  background-size: cover; /* Растягивание изображения по всему блоку */
  background-repeat: no-repeat; /* Убираем повторение */
  background-position: center;
  background-blend-mode: darken; /* Затемнение изображения */
  background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон для затемнения */
}

/* Контент карточек — вертикальное расположение */
.office-card__body {
  display: flex;
  flex-direction: column; /* Вертикальное расположение контента */
  align-items: center; /* Центрирование по горизонтали */
  justify-content: center; /* Центрирование по вертикали */
  gap: 12px; /* Расстояние между элементами */
  padding: 16px;
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  text-align: center; /* Выравнивание текста по центру */
}

/* Заголовок карточки */
.office-card__title {
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  margin: 4px 0 0 0;
  line-height: 38px;
  color: #fff;
  margin-bottom: 16px; /* Единый отступ снизу */
  min-height: 60px; /* Фиксированная высота для всех подзаголовков */
  display: flex;
  align-items: center; /* Выравнивание текста по вертикали */
  justify-content: center; /* Выравнивание текста по горизонтали */
}

/* Выравнивание списка */
.office-card__list {
  list-style: none;
  margin: 0;
  padding: 30px 0 0 0;
  font-size: 19px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 38px;
  font-weight: 400;
  text-align: left; /* Выравнивание текста по левому краю */
  margin-top: 0; /* Убираем верхний отступ */
  padding-left: 0; /* Убираем внутренний отступ */
  position: relative;
  top: -16px; /* Смещение вверх для выравнивания */
}

/* Мета */
.office-card__meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Цена */
.office-card__price {
  display: inline-block;
  position: relative;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  padding-bottom: 6px;
  line-height: 1.1;
}

/* Заметка */
.office-card__note {
  font-size: 14px;
  color: #ffffff;
  opacity: 0.9;
  margin: 0;
  margin-bottom: 30px;
  text-align: center;
}

/* Кнопки */
.office-card__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Кнопки */
.office-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #fff;
  color: #ff0000;
  cursor: pointer;
  font-size: 18px;
  width: 100%;
  font-weight: 500;
}

.office-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.office-btn--accent {
  background: #ff0000;
  border: none;
  color: #fff;
}

.office-btn--accent:hover {
  background: #cc0000;
  color: #fff;
}

/* Преимущества */
.office__benefits {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: #ffffff;
  border: 2px solid #ff0000;
  border-radius: 12px;
  padding: 16px 20px;
  gap: 10px;
  color: #000;
}

.office-benefit {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: center;
}

.office-benefit__img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.office-benefit__text {
  font-size: 20px !important;
  color: #000 !important;
  font-weight: 600 !important;
  line-height: 1.3;
}

/* Кнопка закрытия */
.office__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  z-index: 3;
}

/* Исправление размера галочек */
.office-card__icon {
  width: 16px; /* Уменьшение ширины */
  height: 16px; /* Уменьшение высоты */
  object-fit: contain; /* Сохранение пропорций */
  margin-right: 8px; /* Отступ справа */
}