/* --- PREMIUM STYLE POPUP --- */
#rec1369097441 .t-popup {
  background: transparent !important; /* убираем затемнение */
}
#rec1369097441 .t-popup__container {
  position: fixed !important;
  left: 20px; bottom: 20px;  /* СНИЗУ-СЛЕВА, чтобы не мешал виджету справа */
  right: auto; top: auto;
  transform: none !important;
  max-width: 380px; width: 90vw;
  z-index: 9999;
}
#rec1369097441 .t-popup__content {
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
}
#rec1369097441 .t-popup__close {
  right: 10px; top: 10px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,.6);
  border-radius: 50%;
}
@media (max-width: 480px){
  #rec1369097441 .t-popup__container{
    left: 12px; bottom: 12px; width: calc(100vw - 24px);
  }
}


/* ===========================================================
   AFACIAL / VITALITE — GLOBAL LAYOUT SYSTEM (1200px WIDTH)
   — фиксированная макс. ширина сайта 1200px по центру
   — ровные поля по краям
   — предсказуемое поведение изображений и карточек
   — поддержка мобильных и планшетов
=========================================================== */

/* ===== БАЗОВАЯ СЕТКА ===== */
.t-container,
.t-container_10,
.t-container_8 {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* ===== АДАПТАЦИЯ ПОД МОБИЛКИ ===== */
@media (max-width: 980px){
  .t-container, .t-container_10, .t-container_8 {
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 640px){
  .t-container, .t-container_10, .t-container_8 {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ===== ИЗОБРАЖЕНИЯ ===== */
img, .t-img, .t-slds__img, .t-feed__post-img,
.t107__img, .t228__img, .t-card__img, .t776__img,
.t814__img, .t800__img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Подписи к картинкам */
figure, .t-img-with-caption, .t706 { margin: 0; }
figcaption, .t-img-with-caption__wrap .t-descr {
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.5;
  margin-top: 8px;
  opacity: .9;
  overflow-wrap: anywhere;
}

/* ===== КАРТОЧКИ / СПИСКИ ===== */
@media (min-width: 641px){
  .t-card__wrap, .t670__col, .t795__col, .t228__col {
    display: flex;
    flex-direction: column;
  }
  .t-card__textwrap, .t670__textwrap, .t795__content {
    margin-top: auto;
  }
}
ul, ol { padding-left: 1.2em; margin: 0.6em 0 1em; }
li { margin: 0.25em 0; overflow-wrap: anywhere; }

/* ===== ГЛОБАЛЬНАЯ ТИПОГРАФИКА ===== */
html { font-size: 100%; }
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Заголовки */
h1, .t-title_xl { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; }
h2, .t-title_lg { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.22; }
h3, .t-title_md { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.25; }
h4, .t-title_sm { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.28; }

/* Основной текст */
p, .t-descr, .t-text, li, .t-uptitle {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}

/* Мелкий текст */
.t-uptitle, .t-descr_xxs, small {
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

/* ===== ФОРМЫ И КНОПКИ ===== */
.t-btn, .t-submit, button, [type="submit"],
.t-input, .t-select, .t-textarea, input, select, textarea {
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.2;
}

/* ===== СПЕЦИАЛЬНЫЕ КЛАССЫ ===== */
/* блок в край экрана */
.x-fullwide .t-container,
.x-fullwide .t-container_10,
.x-fullwide .t-container_8 {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.x-fullwide img, .x-fullwide .t-img { width: 100vw !important; max-width: 100vw !important; }

/* узкий текстовый блок */
.x-narrow .t-container,
.x-narrow .t-container_10,
.x-narrow .t-container_8 {
  max-width: 860px !important;
}

/* картинка "в край" */
.x-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw !important;
  max-width: 100vw !important;
}
.x-bleed img, .x-bleed .t-img {
  width: 100vw !important;
  max-width: 100vw !important;
}

/* ===== МЕЛКИЕ ФИКСЫ ===== */
html, body { overflow-x: hidden; }
@media (max-width: 480px){
  .t-section__topwrapper, .t-section__bottomwrapper {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}


