/* ============================================================
   КомиссионерЪ — главная страница (поверх style.css)
   Первый экран с картой Москвы, полоса цифр, карточки объектов,
   появление блоков и летающий знак «%». Подключается только на index.html.
   ============================================================ */

:root {
  --ink: #15120F;
  --line: #ECE6DD;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Появление блоков (js/main.js) ---------- */
.js .fade-up.rv {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
}
.js .fade-up.rv.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   ПЕРВЫЙ ЭКРАН
   ============================================================ */
.hero {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 128px 0 132px;
  justify-content: flex-start;
  align-items: center;
  background: var(--ink);
  isolation: isolate;
}

.hero__map {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero__map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__map.is-loaded .hero__map-img { opacity: 1; }
.hero__dots {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

/* Затемнение: слева под текстом плотнее, сверху под меню и снизу к следующему блоку */
.hero__overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(21, 18, 15, .96) 0%, rgba(21, 18, 15, .84) 30%, rgba(21, 18, 15, .3) 56%, rgba(21, 18, 15, 0) 70%),
    linear-gradient(180deg, rgba(21, 18, 15, .8) 0%, rgba(21, 18, 15, 0) 20%, rgba(21, 18, 15, 0) 72%, rgba(21, 18, 15, .92) 100%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  pointer-events: none;     /* печати «Ъ» справа от текста должны нажиматься */
}
.hero__content {
  max-width: 620px;
  padding: 0;
  text-align: left;
  pointer-events: auto;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.hero__kicker::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--brand);
  flex-shrink: 0;
}

.hero .hero__title {
  font-size: clamp(40px, 6.1vw, 92px);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: .98;
  margin: 0 0 26px;
  color: #fff;
}
.hero__yer { color: var(--brand); }

.hero .hero__subtitle {
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
  max-width: 540px;
  margin: 0 0 14px;
  opacity: 1;
  text-wrap: pretty;
}
.hero__services {
  margin: 0 0 34px;
  font-size: 15px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .5);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__note {
  margin-top: 24px;
  max-width: 540px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .56);
}
.hero__phone {
  display: table;
  margin-top: 6px;
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}
.hero__phone:hover { border-color: var(--brand); }

/* Подпись к точкам внизу первого экрана */
.hero__legend {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .62);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .9s ease .3s, transform .9s var(--ease-out) .3s;
  pointer-events: none;
}
.hero__legend.is-in { opacity: 1; transform: none; }
.hero__legend[hidden] { display: none; }
.hero__legend b { color: #fff; font-weight: 700; }
.hero__legend-item { display: inline-flex; align-items: center; gap: 9px; padding: 10px 0; }
.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.hero__dot--sale { background: #CD2323; box-shadow: 0 0 0 4px rgba(205, 35, 35, .2); }
.hero__dot--rent { background: #E9D6BE; box-shadow: 0 0 0 4px rgba(233, 214, 190, .14); }
.hero__seal-mini {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

/* Печати «Ъ» на эксклюзивах */
.hero__seals {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-seal {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: block;
  padding: 8px;
}
.hero-seal__mark {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 0 22px rgba(205, 35, 35, .7);
  transition: transform .3s var(--ease-out);
}
.hero-seal__mark::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(205, 35, 35, .9);
  animation: heroSeal 2.8s ease-out infinite;
}
.hero-seal:hover .hero-seal__mark,
.hero-seal:focus-visible .hero-seal__mark { transform: scale(1.15); }
@keyframes heroSeal {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(2.8); opacity: 0; }
}
.hero-seal__tip {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  min-width: 220px;
  padding: 12px 16px 13px;
  background: rgba(21, 18, 15, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 2px solid var(--brand);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translate(-6px, -50%);
  transition: opacity .25s ease, transform .25s var(--ease-out), visibility .25s;
  pointer-events: none;
}
.hero-seal:hover .hero-seal__tip,
.hero-seal:focus-visible .hero-seal__tip {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
.hero-seal__kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
}
.hero-seal__row { display: block; white-space: nowrap; }
.hero-seal__row + .hero-seal__row { margin-top: 4px; }
.hero-seal__row b { font-family: var(--font-heading); font-size: 16px; font-weight: 400; }
.hero-seal__row em { margin-left: 10px; font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .62); }

/* ---------- первый экран: планшет и телефон ---------- */
@media (max-width: 1023px) {
  .hero__content { max-width: 520px; }
  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(21, 18, 15, .95) 0%, rgba(21, 18, 15, .8) 45%, rgba(21, 18, 15, .25) 75%, rgba(21, 18, 15, .1) 100%),
      linear-gradient(180deg, rgba(21, 18, 15, .8) 0%, rgba(21, 18, 15, 0) 20%, rgba(21, 18, 15, 0) 72%, rgba(21, 18, 15, .92) 100%);
  }
}

@media (max-width: 767px) {
  /* телефон: сверху полоса с картой и знаком, ниже текст на тёмном */
  .hero {
    --hero-top: clamp(250px, 38svh, 330px);
    min-height: 0;
    align-items: flex-start;
    padding: var(--hero-top) 0 88px;
  }
  .hero__map {
    bottom: auto;
    height: calc(var(--hero-top) + 110px);
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent);
    mask-image: linear-gradient(180deg, #000 62%, transparent);
  }
  .hero__map-img { object-position: 76% 50%; }   /* Кремль на трети ширины, знак справа */
  .hero__overlay {
    background: linear-gradient(180deg,
      rgba(21, 18, 15, .6) 0, rgba(21, 18, 15, 0) 84px,
      rgba(21, 18, 15, 0) calc(var(--hero-top) - 70px),
      rgba(21, 18, 15, .72) calc(var(--hero-top) + 30px),
      var(--ink) calc(var(--hero-top) + 150px));
  }
  .hero__kicker { font-size: 11px; letter-spacing: .16em; gap: 10px; margin-bottom: 14px; }
  .hero__kicker::before { width: 24px; }
  .hero .hero__title { font-size: clamp(36px, 11.2vw, 56px); margin-bottom: 18px; }
  .hero .hero__subtitle { font-size: 18px; }
  .hero__services { font-size: 14px; margin-bottom: 26px; }
  .hero__actions .btn { flex: 1 1 100%; text-align: center; }
  .hero__note { font-size: 13px; }
  .hero__legend { bottom: 26px; gap: 6px 18px; font-size: 12px; }
  .hero-seal__tip { display: none; }
}

/* ============================================================
   ПОЛОСА ЦИФР
   ============================================================ */
.stats-band {
  position: relative;
  background: #fff;
  padding: 76px 0 64px;
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: 4px 28px;
  border-left: 1px solid var(--line);
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: clamp(44px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--black);
  font-variant-numeric: lining-nums;
}
.stat__num i {
  font-size: .42em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  color: var(--brand);
}
.stat__label {
  max-width: 220px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--gray-500);
}
.stats-band__geo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--black);
}
.stats-band__geo span {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
}
@media (max-width: 767px) {
  .stats-band { padding: 56px 0 48px; }
  .stats-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .stat { padding: 0 0 0 18px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat__label { font-size: 14px; margin-top: 10px; }
  .stats-band__geo { margin-top: 36px; font-size: 18px; }
}

/* ============================================================
   КАРТОЧКИ ОБЪЕКТОВ (блок «Текущие объекты»)
   ============================================================ */
.featured-objects__grid { gap: 28px; }
.obj-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}
.obj-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 24px 48px -20px rgba(26, 23, 20, .3);
}
.obj-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1E1B17 url("/assets/logo.svg") center / 52px no-repeat;
}
.obj-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.obj-card:hover .obj-card__img { transform: scale(1.045); }
.obj-card__media::after {
  content: '';
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(180deg, rgba(15, 12, 10, 0), rgba(15, 12, 10, .72));
  pointer-events: none;
}
.obj-card__deal {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 10px 5px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.obj-card__type {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 13px;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.obj-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px 20px 18px;
}
.obj-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 2px;
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--black);
}
.obj-card__price span {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
}
.obj-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-700);
  overflow-wrap: anywhere;
}
.obj-card__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.obj-card__facts span {
  padding: 3px 10px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gray-700);
  white-space: nowrap;
}
.obj-card__metro {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #F2EDE6;
  font-size: 14px;
  color: var(--gray-700);
}
.obj-card__metro span { margin-left: auto; padding-left: 8px; color: var(--gray-400); white-space: nowrap; }
.obj-card__metro-icon { width: 16px; height: 12px; flex: none; color: var(--brand); }

/* ============================================================
   ПОЛИРОВКА БЛОКОВ
   ============================================================ */
#audience .card {
  border-radius: 6px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
#audience .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -22px rgba(26, 23, 20, .3);
}

/* Стык «Текущие объекты» и «С кем работаем»: фоны почти одного тона, тонкая линия */
#audience { box-shadow: inset 0 1px 0 var(--line); }

/* «С кем работаем»: у каждой карточки своё действие */
.audience__sub { max-width: 600px; margin-bottom: 40px; font-size: 18px; color: var(--gray-500); }
.audience__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.audience-card {
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--brand);
}
.audience-card h3 { margin-bottom: 12px; font-family: var(--font-heading); font-size: 20px; }
.audience-card p { flex: 1; margin-bottom: 18px; font-size: 15px; line-height: 1.7; color: var(--gray-500); }
.audience-card__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  border-bottom: 1px solid rgba(205, 35, 35, .3);
  transition: border-color .25s, gap .25s;
}
.audience-card__cta::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.audience-card__cta:hover { border-color: var(--brand); gap: 12px; }

/* «Проверяем то, что другие пропускают»: номера направлений, как у глав эксклюзивов */
.safety__sub { max-width: 700px; margin-bottom: 48px; font-size: 18px; color: rgba(255, 255, 255, .6); }
.safety__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: dd;
}
.safety-card {
  counter-increment: dd;
  padding: 28px;
  background: rgba(255, 255, 255, .05);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  transition: background .4s ease, transform .4s var(--ease-out);
}
.safety-card:hover { background: rgba(255, 255, 255, .08); transform: translateY(-3px); }
.safety-card::before {
  content: counter(dd, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 34px;
  font-style: italic;
  line-height: 1;
  color: var(--brand);
}
.safety-card h3 { margin-bottom: 12px; font-family: var(--font-heading); font-size: 18px; }
.safety-card p { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .62); }
.safety__note { margin-top: 40px; text-align: center; font-size: 14px; font-style: italic; color: rgba(255, 255, 255, .42); }

/* «Наш подход»: сравнение с обычным брокером */
.approach__lead { margin-bottom: 20px; font-size: 18px; line-height: 1.8; color: var(--gray-500); }
.approach__note { margin-bottom: 44px; font-size: 16px; line-height: 1.8; font-style: italic; color: var(--gray-400); }
.approach-compare { border-top: 1px solid var(--line); }
.approach-compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 32px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
}
.approach-compare__row > div:first-child { color: var(--gray-400); }
.approach-compare__row > div:last-child {
  position: relative;
  padding-left: 22px;
  color: var(--black);
}
.approach-compare__row > div:last-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 2px;
  background: var(--brand);
}
.approach-compare__row--head > div {
  font-family: var(--font-heading);
  font-size: 20px;
}
.approach-compare__row--head > div:first-child { color: var(--gray-400); }
.approach-compare__row--head > div:last-child { color: var(--brand); padding-left: 22px; }
.approach-compare__row--head > div:last-child::before { display: none; }
@media (max-width: 767px) {
  .approach-compare__row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .approach-compare__row--head { display: none; }
  .approach-compare__row > div:first-child { font-size: 13px; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
}

/* Кейсы: три карточки в ряд */
.case-card__badge {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
}
@media (min-width: 1024px) {
  .cases__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Блок заявки: строка про бесплатность для покупателей и арендаторов */
.cta-free {
  max-width: 520px;
  margin: 0 auto 26px;
  font-size: 15px;
  color: rgba(255, 255, 255, .55);
}

/* Цифры под картой ведут в каталог на карте */
a.hero__legend-item { color: inherit; transition: color .25s; }
a.hero__legend-item:hover { color: #fff; }
a.hero__legend-item:hover b { border-bottom: 1px solid var(--brand); }

/* Разборы: ролики и Telegram-канал */
.media-sec__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
}
.media-sec__kicker::before { content: ''; width: 28px; height: 2px; background: var(--brand); }
.media-sec__sub { max-width: 620px; margin-bottom: 40px; font-size: 18px; color: var(--gray-500); }
.media-sec__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.media-sec__videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.short { min-width: 0; }
.short__play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  background: var(--dark);
  cursor: pointer;
}
.short__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.short__play::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 12, 10, 0) 55%, rgba(15, 12, 10, .55));
}
.short__play:hover img { transform: scale(1.04); }
.short__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(205, 35, 35, .92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease-out);
}
.short__icon::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 21px;
  border-left: 17px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.short__play:hover .short__icon,
.short__play:focus-visible .short__icon { transform: scale(1.1); }
.short__time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.short__title { margin: 16px 0 6px; font-family: var(--font-heading); font-size: 19px; line-height: 1.25; }
.short__desc { margin-bottom: 12px; font-size: 14px; line-height: 1.55; color: var(--gray-500); }
.short__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.short__links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  border-bottom: 1px solid rgba(205, 35, 35, .3);
}
.short__links a:hover { border-color: var(--brand); }

.tg-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tg-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.tg-card__head b { display: block; font-family: var(--font-heading); font-size: 20px; }
.tg-card__head span { font-size: 13px; color: var(--gray-500); }
.tg-card__logo {
  width: 48px;
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2AABEE;
  color: #fff;
}
.tg-card__logo svg { width: 26px; height: 26px; margin-left: -2px; }
.tg-card__desc { margin-bottom: 18px; font-size: 15px; line-height: 1.6; color: var(--gray-700); }
.tg-card__posts { margin-bottom: 22px; border-top: 1px solid var(--line); }
.tg-card__posts li { border-bottom: 1px solid var(--line); }
.tg-card__posts a {
  display: block;
  padding: 13px 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--black);
  transition: color .2s;
}
.tg-card__posts a:hover { color: var(--brand); }
.tg-card__posts time {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.tg-card__btn { display: block; width: 100%; text-align: center; }

@media (max-width: 1023px) {
  .media-sec__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  /* ролики листаются вбок, карточка канала ниже */
  .media-sec__videos {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 64%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -24px;
    padding: 0 24px 8px;
    scrollbar-width: none;
  }
  .media-sec__videos::-webkit-scrollbar { display: none; }
  .short { scroll-snap-align: start; }
  .tg-card { padding: 22px; }
}

/* Плеер поверх страницы */
.player {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 8, 7, .88);
  opacity: 0;
  transition: opacity .25s ease;
}
.player.is-open { opacity: 1; }
.player__box {
  position: relative;
  height: min(86vh, 760px);
  height: min(86svh, 760px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.player__box video,
.player__box iframe { display: block; width: 100%; height: 100%; border: 0; }
.player__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 0;
}
.player__close::before,
.player__close::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 21px;
  width: 18px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.player__close::after { transform: rotate(-45deg); }
.player__close:hover { background: rgba(255, 255, 255, .22); }
.player__note {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  text-align: center;
}
.player__note a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .4); }
body.player-open { overflow: hidden; }

/* Телефон: закреплённая панель «Позвонить / Telegram» после первого экрана */
.home-cta-bar { display: none; }
@media (max-width: 767px) {
  .home-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 18px rgba(0, 0, 0, .12);
    border-top: 1px solid var(--gray-200);
    transform: translateY(110%);
    transition: transform .35s var(--ease-out);
  }
  .home-cta-bar .btn { flex: 1; padding: 13px 8px; font-size: 15px; text-align: center; }
  body.cta-bar-on .home-cta-bar { transform: none; }
  body.cta-bar-on .cookie-banner { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: 96px; }
}

/* ============================================================
   ЛЕТАЮЩИЙ ЗНАК «%» (js/percent.js)
   ============================================================ */
.pct {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 6;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
  /* водяной знак: светлый и полупрозрачный, текст под ним читается */
  opacity: .24;
  transition: opacity .8s ease;
}
.pct[data-theme="light"] { opacity: .4; }
.pct[data-theme="red"] { opacity: .26; }
.pct.pct--out { opacity: 0; }
img.pct { object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  .js .fade-up.rv { opacity: 1; transform: none; transition: none; }
  .hero-seal__mark::before { animation: none; }
  .obj-card, .obj-card__img, #audience .card { transition: none; }
}
