/* 1. Общие базовые стили проекта */
*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#app {
  min-height: 100vh;
  font-size: 16px;
  font-weight: 400;
  font-family: "Inter", sans-serif;
  line-height: 1.3;
}

/* 2. Ограничивающие контейнеры */
.container {
  margin: 0 auto;
  max-width: 1220px;
  padding: 0 10px;
}

.container1 {
  margin: 0 auto;
  max-width: 1420px;
  padding: 0 10px;
}
.top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Растягивает блок на весь первый экран */
  display: flex;
  align-items: center; /* Центрует по вертикали */
  justify-content: center; /* Центрует по горизонтали */
  text-align: center;
  z-index: 5;
  color: #fff;
  padding: 0 20px;
}

.title {
  font-size: 46px;
  font-weight: 700;
  max-width: 800px; /* Чтобы текст красиво разбивался на строки */
  font-size: clamp(24px, 5vw, 46px);
  word-break: keep-all;
}
.container2 {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 10px;
}

/* 3. Главный Swiper-слайдер (на весь экран) */
.slider {
  position: relative;
}

.swiper-slide {
  height: 100vh;
}

.swiper-wrapper {
  background: transparent !important;
}

/* 4. Сетка категорий "Что мы делаем" (What we do) */
.what_we_do {
  margin: 0 auto 50px;
}
.what_we_do2 {
  display: grid;
  /* Автоматически создает колонки: на ПК будет 4 в ряд, на планшетах 2, на телефонах 1 */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; /* Красивый отступ между карточками со всех сторон */
  padding-top: 20px;
  padding-bottom: 30px;
}

.what_we_do_item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрует картинку и текст внутри карточки */
}

.what_we_do_img {
  width: 100%;
  max-width: 266px;
  height: 266px;
  object-fit: cover;
  display: block;
}

/* Кастомный цвет текста для каждой категории */
#img1 {
  color: #9cbaa9;
}
#img2 {
  color: #d28b9a;
}
#img3 {
  color: #99bda8;
}
#img4 {
  color: #718570;
}
#img5 {
  color: #be586f;
}
#img6 {
  color: #d88c86;
}
#img7 {
  color: #00737c;
}
#img8 {
  color: #718570;
}

/* 5. Блок малой информации (Small information) */
.small_information {
  text-align: center;
}

.small_information_2 {
  padding: 10px 10px;
  min-height: 224px;
  background-color: #f1efeb;
  text-align: center;
  margin-bottom: 30px;
}

.information_item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding-top: 20px;
  padding-bottom: 35px;
  font-family: serif;
  padding: 20px 15px 35px; /* Заменили жесткие маргины на внутренние паддинги */
  max-width: 750px;
  margin: 10px auto 0; /* Авто-выравнивание по центру экрана */
  width: 100%;
}

.information_img {
  max-width: 180px; /* Убрали огромные маргины в %, задали нормальную ширину */
  width: 100%;
  height: auto;
}

.information_text {
  font-family: "Inter", sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* 6. Секция блогов (Last blog) */
.last_blog {
  margin-top: 20px;
  margin-bottom: 100px;
}

.title_main {
  margin-bottom: 50px;
  text-align: center;
  text-transform: uppercase;
}

.blok_container {
  display: flex;
  flex-direction: row;
}

.blok_item {
  width: 49%;
  margin-bottom: 50px;
}

.blok_item a {
  display: block;
}

.blok_title {
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 20px;
}

.blok_content,
.blok_text {
  font-family: serif;
  font-weight: 200;
  font-size: 14px;
  color: #000 !important;
}

.color {
  color: #000;
}

.blok_item a.color {
  display: inline !important;
  float: none !important;
  width: auto !important;
  margin-right: 5px !important;
  white-space: normal !important;
}

.blok_item a.color:hover {
  opacity: 0.5;
}

.icon_title {
  font-size: 16px;
  font-weight: 600;
}

.site-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10; /* Поднимает контакты поверх фонового фото */
}

.header-contacts {
  position: absolute;
  top: 20px; /* Отступ от верхнего края картинки */
  right: 30px; /* Отступ от правого края картинки */
  z-index: 10;
  display: flex;
  flex-direction: column; /* Номера будут один под другим. Если нужно в одну строку — замените на row */
  gap: 10px; /* Отступ между двумя телефонами */
  align-items: flex-end;
}

.icon {
  display: flex;
  align-items: center;
  gap: 8px; /* Отступ между иконкой трубки и текстом номера */
  /* Полупрозрачный темный фон, чтобы текст легко читался на любом фото */
  text-decoration: none;
}
.iconinst {
  text-decoration: none;
  color: #fefefe;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10px;
  gap: 10px;
}

.icon img {
  width: 19px; /* Фиксированный размер для иконки трубки */
  height: 19px;
}

.icon_title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
  font-weight: normal;
}

.black {
  background-color: #b74242;
  border-radius: 50%;
  padding: 1px;
}

.left {
  position: absolute;
  top: 40px;
  left: 40px;
  font-weight: normal;
  font-size: 24px;
}
