/* =============================================================
   Инфо-страницы: о компании (фото, команда, юр-карточка), отзывы,
   контакты (офисы с фото), филиалы (карта + маршрутные карточки),
   юридические документы (prose).
   ============================================================= */

/* --- «Работаем легально» --- */
.disclosure {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 880px;
  margin-inline: auto; /* узкая карточка по центру, как текстовые блоки */
}
.disclosure h3 { margin-bottom: var(--s-2); }
.disclosure p { font-size: var(--fs-sm); color: var(--t2); margin-bottom: var(--s-2); }
.card-icon--lg {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  margin-bottom: 0;
}
.card-icon--lg svg { width: 28px; height: 28px; }

/* --- фото истории --- */
.history-photos {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  margin-top: var(--s-8);
}
.history-photos__item {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--bd);
  background: var(--s1);
}
.history-photos__item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: saturate(.88);
  transition: transform .5s var(--ease-out);
}
.history-photos__item:hover img { transform: scale(1.04); }
.history-photos__item figcaption {
  font-size: var(--fs-caption);
  color: var(--t3);
  padding: 12px 16px;
}
@media (max-width: 800px) {
  .history-photos { grid-template-columns: 1fr; }
}

/* --- команда --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}
.team-card__ava {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ac-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ac);
  box-shadow: 0 0 0 5px rgba(201, 122, 16, .05);
}
.team-card__name { font-size: 15.5px; font-weight: 700; color: var(--t1); margin: 0; }
.team-card__role { font-size: 12.5px; color: var(--t2); margin: 0; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* --- отзывы (полная страница) --- */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .reviews__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .reviews__grid { grid-template-columns: 1fr; } }

/* --- офисы с фото (контакты) --- */
.offices__grid--contacts { margin-top: var(--s-8); }
.office-card--photo { padding: 0; }
.office-card__img {
  display: block;
  height: 190px;
  position: relative;
  overflow: hidden;
}
.office-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88);
}
.office-card__img-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(11,11,14,.78);
  color: #FFC46B;
  padding: 6px 12px;
  border-radius: 9px;
}
.office-card__inner { padding: 24px; }

/* --- карты --- */
.map {
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--s2);
  margin-top: var(--s-6);
}
.map iframe { display: block; }
.map__placeholder {
  padding: var(--s-16);
  text-align: center;
  color: var(--t3);
  margin: 0;
}
.map-figure__caption {
  font-size: var(--fs-caption);
  color: var(--t3);
  margin-top: var(--s-3);
}

/* филиал: карта + маршрутные карточки */
.map-block {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 14px;
  margin-top: var(--s-6);
  align-items: stretch;
}
.map-block .map { margin-top: 0; min-height: 380px; }
.map-block__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.route-card {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 18px 20px;
}
.route-card__k {
  font-size: 11.5px;
  color: var(--ac);
  font-weight: 600;
  margin: 0 0 6px;
}
.route-card__v {
  font-size: var(--fs-sm);
  color: var(--t1);
  line-height: 1.55;
  margin: 0;
}
.map-block__route { width: 100%; }
@media (max-width: 900px) {
  .map-block { grid-template-columns: 1fr; }
}

/* --- юридические документы (prose) --- */
.prose { max-width: 840px; }
.prose h1 { font-size: var(--fs-3xl); margin-bottom: var(--s-2); }
.prose p { color: var(--t2); line-height: 1.75; }
.prose__section { margin-top: var(--s-8); }
.prose__section h2 {
  font-size: 1.25rem;
  letter-spacing: -.02em;
  margin-bottom: var(--s-3);
}

.doc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--bd);
}
.doc-head__pdf { flex-shrink: 0; }

@media print {
  .site-header, .site-footer, .lead-modal, .cookie-bar, .doc-head__pdf, .scroll-progress { display: none !important; }
  .prose { max-width: none; }
}

/* ---------------- «Позиция на рынке» (о нас): центральная панель ---------------- */
.market-panel {
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(34px, 5vw, 56px) clamp(22px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* мягкое янтарное свечение сверху — панель читается как акцентная */
.market-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 75%;
  background: radial-gradient(50% 60% at 50% 0%, var(--ac-dim), transparent 70%);
  pointer-events: none;
}
/* контент поверх свечения; .spot-glow не трогаем — он обязан остаться
   position:absolute, иначе встаёт в поток пустым блоком */
.market-panel > :not(.spot-glow) { position: relative; }
.market-panel h2 {
  font-size: var(--fs-3xl);
  margin: var(--s-3) 0 var(--s-5);
}
.market-panel__p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--t2);
  line-height: 1.75;
}
.market-panel__p--last { margin-top: var(--s-8); }

/* шкала сегментов: эконом — мы — премиум */
.market-scale {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 520px;
  margin: var(--s-8) auto 0;
}
.market-scale__track {
  position: absolute;
  top: 6px;
  left: 32px;
  right: 32px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--bd2), var(--ac) 50%, var(--bd2));
}
.market-scale__stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 33%;
}
.market-scale__stop i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--s1);
  border: 2px solid var(--bd2);
}
.market-scale__stop span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t3);
}
.market-scale__stop--us i {
  background: var(--ac);
  border-color: var(--ac);
  box-shadow: 0 0 0 5px var(--ac-dim), 0 6px 18px rgba(201, 122, 16, .35);
}
.market-scale__stop--us span { color: var(--t1); font-size: 13.5px; }
.market-scale__stop--us em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ac);
  margin-top: -6px;
}
@media (max-width: 480px) {
  .market-scale { max-width: 100%; }
  .market-scale__track { left: 22px; right: 22px; }
}
