/* ==========================================================================
   Logo image (uploaded brand emblem)
   ========================================================================== */
img.logo__mark {
  height: 44px;
  width: auto;
  border-radius: 8px;
  display: block;
}

.footer img.logo__mark { height: 46px; }

@media (max-width: 560px) {
  img.logo__mark { height: 38px; }
}

/* ==========================================================================
   Section showcase media (generated graphics)
   ========================================================================== */
.media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--white);
}

.media img { width: 100%; height: auto; display: block; }

.showcase {
  max-width: 940px;
  margin: 0 auto 40px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.showcase img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   Team carousel
   ========================================================================== */
.team-carousel { position: relative; }

.team-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.team-head-row .section-head { margin: 0; text-align: left; max-width: 640px; }

.team-nav { display: flex; gap: 12px; flex-shrink: 0; }

.team-nav button {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.team-nav button:hover { background: var(--green); color: #fff; border-color: var(--green); }
.team-nav button:disabled { opacity: 0.35; cursor: not-allowed; }
.team-nav button:disabled:hover { background: var(--white); color: var(--navy); border-color: var(--line); }

.team-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.team-track::-webkit-scrollbar { display: none; }

.member-card {
  flex: 0 0 calc((100% - 3 * 24px) / 4);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.member-card__photo {
  aspect-ratio: 4 / 5;
  background: var(--accent-light);
  overflow: hidden;
}

.member-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.member-card__body { padding: 20px 20px 24px; }

.member-card__name { font-size: 1.12rem; margin-bottom: 4px; }

.member-card__role {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.member-card__desc { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.team-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.team-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}

.team-dots button.is-active { background: var(--green); width: 26px; border-radius: 100px; }

@media (max-width: 1024px) {
  .member-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 880px) {
  .team-head-row { flex-direction: column; align-items: stretch; }
  .team-head-row .section-head { text-align: center; max-width: none; }
  .team-nav { justify-content: center; }
  .result-media-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .member-card { flex-basis: 84%; }
}

/* ==========================================================================
   Competitor-analysis enhancements
   ========================================================================== */
.progress {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.progress__step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.progress__step span { display: block; font-size: 0.8rem; font-weight: 600; color: var(--green); margin-bottom: 4px; }
.progress__arrow { color: var(--green); font-size: 1.4rem; font-weight: 700; }
@media (max-width: 720px) {
  .progress { grid-template-columns: 1fr; }
  .progress__arrow { transform: rotate(90deg); }
}

.card ul.tick { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.card ul.tick li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); }
.card ul.tick li::before { content: "—"; color: var(--green); font-weight: 700; }

.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.95rem; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--navy); color: #fff; font-weight: 700; position: sticky; top: 0; }
.cmp thead th:first-child { border-top-left-radius: var(--r-lg); }
.cmp thead th:last-child { border-top-right-radius: var(--r-lg); }
.cmp tbody td:not(:first-child), .cmp thead th:not(:first-child) { text-align: center; width: 18%; }
.cmp tbody tr:nth-child(even) { background: var(--bg-warm); }
.cmp td:first-child { color: var(--navy); font-weight: 600; }
.cmp .yes { color: var(--green); font-weight: 800; }
.cmp .no { color: #B91C1C; }
.cmp .opt { color: #B45309; font-size: 0.82rem; font-weight: 600; }
.cmp-hint { display: none; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
@media (max-width: 760px) { .cmp-hint { display: block; } }

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(11,31,51,0.08);
}
.sticky-cta .btn { flex: 1 1 auto; padding: 14px 16px; }
.sticky-cta__icon {
  flex: 0 0 auto;
  width: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--green);
}
.sticky-cta__icon:hover { border-color: var(--green); }
@media (max-width: 880px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
}

/* ==========================================================================
   Premium polish (post-audit)
   ========================================================================== */
/* Manrope подключается в <head> каждой страницы (см. <link> Google Fonts) */
:root { --font: 'Manrope', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* ==========================================================================
   Hero — цельный первый экран: оффер слева, крупный визуал справа
   ========================================================================== */
.hero {
  position: relative;
  padding: 40px 0 52px;
  overflow: hidden;
  background: var(--bg);
}
.hero-inner { position: relative; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 2; width: min(100%, 560px); }
.eyebrow.hero-badge { margin-bottom: 18px; }
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.hero-lead { max-width: 540px; margin: 0 0 20px; font-size: 1.15rem; line-height: 1.5; color: var(--ink-soft); }
.hero-note {
  position: relative;
  max-width: 540px;
  margin: 0 0 26px;
  padding-left: 34px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.hero-note::before {
  content: "✓";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-light);
  color: var(--green);
  font-size: 13px; font-weight: 800;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { min-width: 220px; }
.hero-visual {
  position: absolute;
  z-index: 1;
  right: -72px;
  top: 50%;
  transform: translateY(-50%);
  width: min(70vw, 1120px);
  pointer-events: none;
}
.hero-visual img { width: 100%; height: auto; display: block; object-fit: contain; }

@media (min-width: 992px) {
  .hero { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 36px 0 48px; }
  .hero-inner { min-height: calc(100vh - 184px); width: 100%; }
}

/* Hero trust chips (replaces plain bullets) */
.hero-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  font-size: 0.92rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.hero-chip svg { color: var(--green); flex-shrink: 0; }
@media (max-width: 479px) { .hero-chips { grid-template-columns: 1fr; } }

/* Featured tariff subtle tint + remove badge/CTA clash */
.plan--featured { background: linear-gradient(180deg, var(--accent-light) 0%, var(--white) 24%); }
.plan__tag { box-shadow: var(--shadow-sm); }

/* Slightly larger, calmer headings (premium) */
@media (min-width: 1200px) {
  h1 { font-size: 3.4rem; line-height: 1.08; }
}

/* ==========================================================================
   Header: ровно одна CTA-кнопка (фикс дубля «Проверить сделку»)
   На desktop любая кнопка внутри .nav скрыта — видна только .header__cta.
   На mobile сама .nav скрыта, а в раскрытом меню кнопка показывается.
   ========================================================================== */
.nav .btn { display: none; }

@media (max-width: 880px) {
  .nav.is-open .btn { display: inline-flex; }
}

/* ==========================================================================
   Lead modal (всплывающее окно с Яндекс Формой)
   ========================================================================== */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lead-modal.is-open { display: flex; }
.lead-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 51, 0.64);
  backdrop-filter: blur(10px);
}
.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--bg);
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 30px;
  box-shadow: 0 32px 90px rgba(11, 31, 51, 0.34);
  padding: 34px 36px 28px;
}
.lead-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(11, 31, 51, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lead-modal__close:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(11, 31, 51, 0.16); }
.lead-modal__header { max-width: 620px; margin-bottom: 22px; }
.lead-modal__header .eyebrow { margin-bottom: 14px; }
.lead-modal__header h2 { margin: 0 0 10px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.06; letter-spacing: -0.03em; color: var(--navy); }
.lead-modal__header p { margin: 0; max-width: 560px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.45; }
.lead-modal__form {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 67, 0.08);
}
.lead-modal__form iframe {
  width: 100%;
  min-height: 470px;
  height: 470px;
  border: 0;
  display: block;
  background: var(--white);
}
body.modal-open { overflow: hidden; }
@media (max-width: 767px) {
  .lead-modal { padding: 10px; align-items: flex-start; }
  .lead-modal__dialog { width: 100%; max-height: calc(100vh - 20px); padding: 24px 16px 18px; border-radius: 24px; margin-top: 10px; }
  .lead-modal__close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lead-modal__header { padding-right: 44px; margin-bottom: 18px; }
  .lead-modal__header h2 { font-size: 30px; }
  .lead-modal__header p { font-size: 1rem; }
  .lead-modal__form iframe { min-height: 560px; height: 560px; }
}

/* ==========================================================================
   Блок «Сопровождение сделки на стороне покупателя»
   ========================================================================== */
.support-visual {
  width: min(100%, 1120px);
  margin: 40px auto 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(11, 31, 51, 0.10);
}
.support-visual img {
  width: 100%;
  max-height: 640px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 22px;
}
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.support-card {
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 24px;
  padding: 30px;
  min-height: 220px;
  box-shadow: 0 14px 40px rgba(11, 31, 51, 0.06);
}
.support-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: var(--accent-light);
  color: var(--green);
}
.support-card__icon svg { width: 28px; height: 28px; }
.support-card h3 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.16; color: var(--navy); }
.support-card p { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink-soft); }

/* CTA-плашка после карточек сопровождения */
.support-cta {
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 95, 74, 0.10), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(15, 95, 74, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.support-cta h3 { margin: 0 0 8px; font-size: 1.55rem; line-height: 1.2; color: var(--navy); }
.support-cta p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.45; }
.support-cta .btn { flex-shrink: 0; }

/* Плашка «безопасно работать» — центральный вывод блока */
.safe-work-note {
  margin: 32px auto 44px;
  padding: 30px 36px;
  max-width: 1040px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 95, 74, 0.10), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(15, 95, 74, 0.18);
  box-shadow: 0 16px 44px rgba(11, 31, 51, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.safe-work-note__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--accent-light);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.safe-work-note__icon svg { width: 28px; height: 28px; }
.safe-work-note__content { max-width: 820px; }
.safe-work-note h3 { margin: 0 0 12px; font-size: 1.4rem; line-height: 1.28; color: var(--navy); }
.safe-work-note p { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 767px) {
  .safe-work-note { margin: 28px auto 32px; padding: 24px 20px; border-radius: 22px; }
  .safe-work-note__icon { width: 48px; height: 48px; margin-bottom: 16px; }
  .safe-work-note h3 { font-size: 1.25rem; line-height: 1.25; }
  .safe-work-note p { font-size: 0.95rem; line-height: 1.5; }
}

@media (max-width: 991px) { .support-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .support-grid { grid-template-columns: 1fr; }
  .support-visual { padding: 10px; border-radius: 20px; }
  .support-visual img { border-radius: 16px; }
  .support-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .support-cta .btn { width: 100%; }
}

/* Светло-зелёная плашка-вывод под карточками результата */
.result-keynote {
  margin: 28px 0 0;
  padding: 16px 22px;
  background: var(--accent-light);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--green-dark);
  font-weight: 600;
}

/* Юридические страницы */
.legal-card {
  background: var(--accent-light);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 0 0 28px;
}
.legal-card p { margin: 0 0 6px; color: var(--ink); }
.legal-card p:last-child { margin: 0; }
.legal-updated { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 24px; }

/* Якоря меню не должны прятаться под sticky-header */
#check-apartment,
#check-seller,
#support,
#pricing,
#team,
#faq,
#lead-form,
#contact-form { scroll-margin-top: 120px; }
@media (max-width: 767px) {
  #check-apartment,
  #check-seller,
  #support,
  #pricing,
  #team,
  #faq,
  #lead-form,
  #contact-form { scroll-margin-top: 96px; }
}

/* ==========================================================================
   Hero — адаптив (tablet / mobile): картинка в обычный поток после CTA
   ========================================================================== */
@media (max-width: 991px) {
  .hero { min-height: auto; padding: 40px 0 56px; display: block; }
  .hero-inner { min-height: auto; flex-direction: column; align-items: stretch; gap: 28px; }
  .hero-content { width: 100%; }
  .hero-visual { position: relative; right: auto; top: auto; transform: none; width: 100%; margin-top: 4px; }
  .hero-visual img { width: 100%; height: auto; }
}
@media (max-width: 767px) {
  .hero h1 { font-size: 34px; line-height: 1.08; }
  .hero-lead { font-size: 1rem; line-height: 1.55; }
  .hero-note { font-size: 0.95rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .hero-actions .btn { width: 100%; min-width: 0; }
}

/* ==========================================================================
   Тарифы — цена и подпись строго разными элементами (без склеек)
   ========================================================================== */
.plan__price { display: flex; flex-direction: column; gap: 6px; margin: 16px 0 6px; }
.plan__price-main { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.plan__price-note { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }

/* Тарифы без цены — мягкая формулировка вместо суммы */
.plan__price--soft {
  display: block;
  background: var(--accent-light);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  margin: 16px 0 6px;
}

/* Блок «Почему с нами выгодно» — сетка карточек и компактное изображение */
.profit-section { padding: 88px 0; }
.profit-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991px) { .profit-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .profit-cards { grid-template-columns: 1fr; } }

.profit-comparison {
  width: min(100%, 1040px);
  margin: 40px auto 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(11, 31, 51, 0.10);
}
.profit-comparison img {
  width: 100%;
  max-height: 600px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 22px;
}
@media (max-width: 767px) {
  .profit-section { padding: 64px 0; }
  .profit-comparison { width: 100%; margin-top: 28px; padding: 10px; border-radius: 20px; }
  .profit-comparison img { max-height: none; width: 100%; border-radius: 16px; }
}

/* ==========================================================================
   Парный split-блок «текст + крупное изображение» (риски/документы с лупой)
   ========================================================================== */
@media (min-width: 881px) {
  .result-grid.split-img {
    grid-template-columns: minmax(0, 1fr) minmax(480px, 560px);
    align-items: stretch;
  }
  .result-grid.split-img .media { display: flex; }
  .result-grid.split-img .media img { width: 100%; height: 100%; object-fit: cover; }
}


/* ==========================================================================
   Mobile hardening — строго в ширину экрана, без горизонтального скролла
   (overflow-x: clip сохраняет работу sticky-header, в отличие от hidden)
   ========================================================================== */
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

/* Hero-визуал из desktop (absolute) на планшете/мобиле — строго в потоке */
@media (max-width: 991px) {
  .hero-visual {
    position: static !important;
    transform: none !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Модальный iframe не шире своего контейнера */
.lead-modal__form, .lead-modal__form iframe { max-width: 100%; }
.lead-modal__form iframe { width: 100% !important; }

/* Sticky CTA строго по ширине экрана */
.sticky-cta { max-width: 100%; box-sizing: border-box; }

@media (max-width: 767px) {
  /* Визуалы, сетки и карточки не выходят за экран (таблицу .cmp не трогаем —
     она скроллится внутри .cmp-wrap) */
  [class*="visual"],
  [class*="grid"],
  [class*="card"] { max-width: 100%; min-width: 0; }
  .container { padding-left: 20px; padding-right: 20px; }
  .team-track { margin: 0; }
}
@media (max-width: 390px) {
  .container { padding-left: 16px; padding-right: 16px; }
}
