/* Главная, блок «Отзывы» (#otzyvy): карусель карточек в стиле Telegram. Листание — assets/reviews.js */
.reviews {
  --rv-navy: var(--navy, #1A2A6B);
  --rv-cream: var(--paper, #F8F6EF);
  --rv-ink: #22252e;
  --rv-muted: #8a91a0;
  --rv-tg: #3a7bd5;
  --rv-chat: #e8edf2;
  --rv-gap: 16px;
  background: var(--rv-cream);
  padding: 96px 0 88px;
  overflow: hidden;
}
.reviews__head { text-align: center; padding: 0 20px; margin-bottom: 56px; }
.reviews__title {
  font-family: var(--f-display, Georgia, serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  color: var(--rv-navy);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.reviews__subtitle {
  font-family: var(--f-display, Georgia, serif);
  font-size: clamp(19px, 2.2vw, 28px);
  color: var(--rv-navy);
  margin: 0;
}

.reviews__stage { position: relative; max-width: 1480px; margin: 0 auto; padding: 0 76px; }
.reviews__track {
  display: flex;
  gap: var(--rv-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 4px 28px;
  margin: -8px -4px -28px;
  align-items: stretch;
  outline: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { box-shadow: 0 0 0 2px var(--rv-navy); border-radius: 24px; }

.reviews__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(26, 42, 107, .35);
  background: rgba(248, 246, 239, .92);
  color: var(--rv-navy);
  display: grid; place-items: center;
  cursor: pointer; transition: background .2s, opacity .2s, border-color .2s;
  z-index: 2; padding: 0;
}
.reviews__arrow:hover { background: #fff; border-color: var(--rv-navy); }
.reviews__arrow:focus-visible { outline: 2px solid var(--rv-navy); outline-offset: 3px; }
.reviews__arrow[disabled] { opacity: .3; cursor: default; }
.reviews__arrow--prev { left: 12px; }
.reviews__arrow--next { right: 12px; }
.reviews__arrow svg { width: 20px; height: 20px; }

.reviews__dots { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.reviews__dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(26, 42, 107, .22); cursor: pointer; transition: background .2s, transform .2s;
}
.reviews__dot[aria-current="true"] { background: var(--rv-navy); transform: scale(1.25); }
.reviews__dot:focus-visible { outline: 2px solid var(--rv-navy); outline-offset: 3px; }

/* Карточка-телефон. Размеры внутри — в em, шрифт зависит от ширины карточки (container query) */
.tg-card {
  flex: 0 0 calc((100% - 5 * var(--rv-gap)) / 6);
  scroll-snap-align: start;
  container-type: inline-size;
  border-radius: 20px;
  background: var(--rv-chat);
  border: 1px solid rgba(26, 42, 107, .07);
  box-shadow: 0 14px 32px -18px rgba(26, 42, 107, .35);
  overflow: hidden;
  font-family: var(--f-body, system-ui, sans-serif);
}
.tg-card__in {
  height: 100%;
  display: flex; flex-direction: column;
  font-size: clamp(9.5px, 6.1cqi, 13px);
}
.tg-card__bar {
  display: flex; align-items: center; gap: .7em;
  padding: .85em .9em;
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid rgba(26, 42, 107, .06);
}
.tg-card__bar svg { width: auto; height: 1.15em; flex: none; }
.tg-card__back { color: #6f7c96; }
.tg-card__ava {
  flex: none; width: 2.5em; height: 2.5em; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #8aa6e3, #5a7cc8);
  color: #fff; font-size: .9em; font-weight: 600; letter-spacing: .02em;
}
.tg-card__who { min-width: 0; flex: 1; line-height: 1.25; }
.tg-card__name { display: block; font-size: 1em; font-weight: 600; color: var(--rv-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-card__status { display: block; font-size: .78em; color: var(--rv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-card__status--online { color: var(--rv-tg); }
.tg-card__icons { display: flex; align-items: center; gap: .5em; color: #6f7c96; flex: none; }

.tg-card__chat {
  flex: 1; display: flex; flex-direction: column; gap: .45em;
  padding: .9em .75em .7em;
}
.tg-msg {
  align-self: flex-start; max-width: 100%; margin: 0;
  background: #fff;
  border-radius: 1.1em 1.1em 1.1em .4em;
  padding: .65em .8em .5em;
  font-size: 1em; line-height: 1.42; color: var(--rv-ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.tg-msg__time {
  float: right; font-size: .76em; line-height: 1; color: #a0a8b6;
  margin: .75em 0 -.2em .7em; white-space: nowrap;
}
.tg-msg--photo { padding: .2em; position: relative; }
.tg-msg--photo img { display: block; width: 100%; height: auto; border-radius: .9em; }
.tg-msg--photo .tg-msg__time {
  float: none; position: absolute; right: .9em; bottom: .9em; margin: 0;
  background: rgba(20, 22, 30, .5); color: #fff; padding: .35em .55em; border-radius: .8em;
}

.tg-card__input {
  display: flex; align-items: center; gap: .55em;
  margin: .3em .7em .8em; padding: .45em .45em .45em .8em;
  background: #fff; border-radius: 1.5em;
  color: #a7aebb; font-size: .92em;
}
.tg-card__input svg { width: 1.2em; height: 1.2em; flex: none; }
.tg-card__ph { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-card__send {
  width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--rv-tg); color: #fff;
  display: grid; place-items: center; flex: none;
}
.tg-card__send svg { width: 1em; height: 1em; }

@media (max-width: 1280px) {
  .tg-card { flex-basis: calc((100% - 4 * var(--rv-gap)) / 5); }
}
@media (max-width: 1080px) {
  .tg-card { flex-basis: calc((100% - 3 * var(--rv-gap)) / 4); }
}
@media (max-width: 860px) {
  .tg-card { flex-basis: calc((100% - 2 * var(--rv-gap)) / 3); }
}
@media (max-width: 640px) {
  .reviews { padding: 56px 0 48px; --rv-gap: 10px; }
  .reviews__head { margin-bottom: 28px; }
  .reviews__stage { padding: 0 12px; }
  .reviews__track { scroll-padding-left: 12px; padding-left: 12px; padding-right: 12px; margin-left: -12px; margin-right: -12px; }
  .tg-card { flex-basis: calc((100% - var(--rv-gap)) / 2); border-radius: 16px; }
  .reviews__arrow { display: none; }
  .reviews__dots { margin-top: 24px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews__track { scroll-behavior: auto; }
}
