/* ===== Alegreya Sans (Regular / Bold / Italic) ===== */
@font-face {
  font-family: "Alegreya Sans";
  src: url("/wp-content/themes/escort/fonts/AlegreyaSans-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("/wp-content/themes/escort/fonts/AlegreyaSans-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("/wp-content/themes/escort/fonts/AlegreyaSans-Italic.woff2")
    format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ===== Базовые стили ===== */
body {
  background: #011627; /* фон */
  font-family: "Alegreya Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  position: relative;
  color: #ffffff; /* основной текст */
}

h2,
h3,
h4 {
  font-weight: bold;
  color: #e71d36; /* заголовки */
}

p {
  line-height: 26px;
  color: #ffffff;
}

/* ===== Отступы секций ===== */
#service,
#divider,
#about,
#team,
#newsletter,
#pricing,
#portfolio,
#client,
#contact {
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
}

/* ===== Навигация ===== */
.navbar-default {
  background: #011627;
  border: none;
  box-shadow: none;
  margin: 0 !important;
  padding: 0;
}
.navbar-default .navbar-brand {
  padding-top: 4px;
  padding-bottom: 60px;
}
.navbar-default .navbar-nav li a {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: bold;
  line-height: 35px;
  color: #ffffff;
}
.navbar-default .navbar-nav li a:hover {
  color: #e71d36;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #e71d36;
  background-color: transparent;
}
.navbar-default .navbar-toggle {
  border: none;
  padding-top: 16px;
}
.navbar-default .navbar-toggle .icon-bar {
  background: #e71d36;
  border-color: transparent;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: transparent;
}

/* Убираем фокус-рамку в навигации при клике мышью */
.navbar .nav > li > a:focus:not(:focus-visible),
.navbar .navbar-toggle:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}
/* Firefox-специфика */
.navbar .nav > li > a:-moz-focusring,
.navbar .navbar-toggle:-moz-focusring {
  outline: none !important;
}
/* Внутренний бордер у кнопки в FF */
.navbar .navbar-toggle::-moz-focus-inner {
  border: 0;
}

/* Линия под хедером */
.site-header {
  border-bottom: 1px solid #e71d36;
}

/* ===== Home ===== */
#home {
  padding-top: 25px;
}

/* ===== Team ===== */
#team {
  border-top: 1px solid #e71d36;
  text-align: center;
}

#team img {
  width: 100%;
  display: inline-block;
  padding: 0;
  transition: all 0.4s ease-in;
}
#team h3 {
  color: #e71d36;
}
#team h4 {
  font-size: 14px;
  padding-top: 20px;
  line-height: 0px;
  color: #ffffff;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid #e71d36;
  padding-top: 40px;
  margin-top: 70px;
  padding-bottom: 20px;
  color: #ffffff;
}
footer p {
  line-height: 12px;
  color: #ffffff;
}
footer .social-icon {
  top: 0px;
}

/* ===== Разное ===== */
.too-icon {
  padding: 10px;
}

/* ===== Социальные иконки ===== */
.social-icon {
  position: relative;
  padding: 0;
  margin: 0;
  top: 20px;
}
.social-icon li {
  display: inline-block;
  list-style: none;
}
.social-icon li a {
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border: 1px solid #e71d36; /* рамка */
  border-radius: 4px;
}
.social-icon li a:hover {
  background: #e71d36;
  color: #ffffff;
}

/* ===== Карточки моделей ===== */

/* Одинаковая высота карточек */
#team .team-member {
  position: relative; /* для абсолютных бейджей */
  display: flex;
  flex-direction: column;
  /* height: 100%; */
  border-radius: 4px;
  overflow: hidden;
  background: #011627;
  border: 1px solid #e71d36;
}

/* Ссылка тянется по высоте */
#team .team-member > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* Единая витрина под фото */
#team .team-member img.img-responsive {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* Футер карточки */
#team .team-member .model_footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  min-height: 52px;
  background: rgba(231, 29, 54, 0.1); /* прозрачный акцент */
}
#team .team-member .name {
  flex: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}
#team .team-member .price {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #ffffff;
}

/* ===== Бейджи VIP / Verified поверх фото ===== */
/* Поддержка PNG (.vip/.verified) и inline SVG */
#team .team-member .vip,
#team .team-member .verified,
#team .team-member svg {
  position: absolute;
  top: 8px;
  z-index: 3;
  pointer-events: none;
}

/* Единые размеры:
   - для PNG оставим width:48px
   - для SVG задаём фиксированный box и размер иконки */
#team .team-member .vip,
#team .team-member .verified {
  width: 48px;
  height: auto;
}

#team .team-member svg {
  width: 42px;
  height: 42px;
}

#team .team-member .badges-row {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 6px; /* промежуток между иконками */
  z-index: 5;
  pointer-events: none; /* чтобы не перекрывать клики по карточке */
}

/* Иконки внутри ряда — РОВНО 40×40, без абсолютов */
#team .team-member .badges-row svg {
  width: 40px;
  height: 40px;
  position: static !important; /* важно: отменяем абсолют из общих правил */
  display: block;
  flex: 0 0 40px;
}

/* Позиции по углам */
#team .team-member .vip {
  left: 8px;
} /* PNG VIP слева */
#team .team-member .verified {
  right: 8px;
} /* PNG Verified справа */
#team .team-member svg:not(.verified) {
  left: 8px;
} /* inline SVG VIP (без класса) слева */
#team .team-member svg.verified {
  right: 8px;
} /* inline SVG Verified (с классом) справа */

/* ===== Медиа ===== */
@media only screen and (max-width: 1199px) {
  .flexslider h1 {
    font-size: 30px;
  }
  .flexslider h2 {
    font-size: 24px;
  }
}

@media only screen and (max-width: 768px) {
  .navbar-default .navbar-brand {
    margin-left: 20px;
  }
  .navbar-default .navbar-nav {
    margin: 0;
  }
  .navbar-default .navbar-collapse {
    padding-left: 20px;
    padding-right: 20px;
  }
  .flexslider h1 {
    font-size: 26px;
  }
  .flexslider h2 {
    font-size: 18px;
  }
  .templatemo-slider-btn {
    margin-top: 10px;
    width: 180px;
    height: 40px;
    padding-top: 8px;
  }
}

@media only screen and (max-width: 640px) {
  .flexslider h1 {
    font-size: 20px;
  }
  .flexslider h2 {
    font-size: 14px;
  }
  .templatemo-slider-btn {
    width: auto;
    height: auto;
    padding: 10px 20px;
    margin-top: 10px;
  }
}

@media only screen and (max-width: 360px) {
  #team .col-md-4 {
    padding-top: 40px;
  }
}

/* === Floating contacts (WhatsApp / Telegram) === */
.contact-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.contact-fab .fab-toggle {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #be0000;
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.contact-fab .fab-toggle:hover {
  background: #be0000c0;
  color: white;
}
.contact-fab.is-open .fab-toggle {
  transform: rotate(45deg);
}

/* Кнопки контактов */
.contact-fab .fab-item {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #be0000; /* красный круг */
  color: white; /* цвет иконки */
  opacity: 0;
  pointer-events: none;
  transform: translateY(0) scale(0.9);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.contact-fab .fab-item svg {
  width: 34px; /* единый размер */
  height: 34px; /* единый размер */
  fill: currentColor;
}

.contact-fab .fab-item--tg {
  bottom: 64px;
}
.contact-fab .fab-item--wa {
  bottom: 128px; /* чуть больше, т.к. увеличили размер кнопки */
}

.contact-fab.is-open .fab-item {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-8px) scale(1);
}
