@charset "utf-8";

html { overflow-x: clip; }
body { font-family: Manrope, sans-serif; overflow-x: clip; max-width: 100%; background-color: rgb(245, 244, 240); }

.hero-curve { position: absolute; top: 0px; right: 0px; width: 55vw; max-width: 1400px; height: 100%; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23softShadow)'%3E%3Cpath d='M1000 0H350C500 300 150 700 450 1000H1000V0Z' fill='%23EFECE5'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='softShadow' x='-100' y='-50' width='1200' height='1100' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeDropShadow dx='-20' dy='0' stdDeviation='35' flood-color='%23173B36' flood-opacity='0.03'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E"); background-size: 100% 100%; background-position: right center; background-repeat: no-repeat; z-index: 0; }

.wave-bg { background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-100,80 Q100,-20 300,80 T700,80' fill='none' stroke='%23E8E3D8' stroke-width='60' opacity='0.3'/%3E%3C/svg%3E"); background-size: cover; background-position: center center; }

input[type="checkbox"] { appearance: none; background-color: transparent; margin: 0px; font: inherit; color: currentcolor; width: 1.25em; height: 1.25em; border: 1px solid; border-radius: 0.25em; display: grid; place-content: center; cursor: pointer; transition: 0.2s ease-in-out; }

input[type="checkbox"]::before { content: ""; width: 0.7em; height: 0.7em; transform: scale(0); transition: transform 120ms ease-in-out; box-shadow: currentcolor 1em 1em inset; transform-origin: center center; clip-path: polygon(14% 44%, 0px 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }

input[type="checkbox"]:checked::before { transform: scale(1); }

.hide-scrollbar::-webkit-scrollbar { display: none; }

.hide-scrollbar { scrollbar-width: none; }

.container-fluid { width: 100%; margin-left: auto; margin-right: auto; max-width: 1280px; }

@media (min-width: 1440px) {
  .container-fluid { max-width: 1440px; }
}

/* ===== Hero: падающие карточки лидов в CRM ===== */
.lead-stage { position: relative; }
.lead-drop { position: absolute; inset: 0; pointer-events: none; }

.lead-card {
  position: absolute;
  left: 50%;
  top: -24%;
  width: 252px;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 22px 45px rgba(23, 59, 54, 0.14);
  display: flex;
  flex-direction: column;
  gap: 9px;
  opacity: 0;
  will-change: top, opacity, transform;
  z-index: 30;
}
.lead-card--fall { animation: leadFall 4.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; }

@keyframes leadFall {
  0%   { top: -24%; opacity: 0; transform: translateX(-50%) rotate(var(--rot, -4deg)) scale(0.97); }
  14%  { opacity: 1; }
  55%  { top: 22%;  opacity: 1; transform: translateX(-50%) rotate(0deg) scale(1); }
  80%  { top: 34%;  opacity: 1; box-shadow: 0 10px 22px rgba(23, 59, 54, 0.1); transform: translateX(-50%) rotate(0deg) scale(0.985); }
  93%  { top: 42%;  opacity: 0; transform: translateX(-50%) rotate(0deg) scale(0.93); }
  100% { top: 42%;  opacity: 0; }
}

.lead-card__head { display: flex; align-items: center; gap: 10px; }
.lead-card__ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.lead-card__name { font-weight: 800; font-size: 15px; color: #173B36; line-height: 1; }
.lead-card__tag { margin-left: auto; background: #E2F58B; color: #173B36; font-weight: 700; font-size: 10px; padding: 4px 8px; border-radius: 6px; line-height: 1; }
.lead-card__row { display: flex; align-items: center; gap: 8px; color: #173B36; font-weight: 700; font-size: 13px; }
.lead-card__row svg { width: 15px; height: 15px; color: #788282; flex: none; }
.lead-card__desc { font-size: 12px; color: #788282; font-weight: 500; line-height: 1.35; }

/* CRM-приёмник */
.crm-panel {
  position: absolute;
  left: 0; right: 0; top: 42%;
  margin: 0 auto;
  width: 90%;
  max-width: 340px;
  background: #fff;
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 28px 55px rgba(23, 59, 54, 0.12);
  z-index: 20;
}
.crm-panel::before {
  content: "";
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 46%; height: 5px;
  border-radius: 5px;
  background: #E2F58B;
  opacity: 0.75;
}
.crm-panel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.crm-ic { width: 38px; height: 38px; border-radius: 11px; background: #173B36; display: flex; align-items: center; justify-content: center; flex: none; }
.crm-ic svg { width: 19px; height: 19px; color: #E2F58B; }
.crm-title { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #A1A1AA; }
.crm-num { display: flex; align-items: center; gap: 10px; }
.crm-num b { font-size: 42px; font-weight: 800; color: #173B36; line-height: 1; display: inline-block; transform-origin: left center; transition: transform 0.16s ease; font-variant-numeric: tabular-nums; }
.crm-num b.bump { transform: scale(1.14); }

/* Маска телефона: реальный код + пара цифр, дальше прямоугольнички */
.num-mask { display: inline-flex; align-items: center; gap: 5px; }
.num-mask b { font-weight: 700; color: #173B36; font-size: 13px; white-space: nowrap; }
.num-mask .g { display: inline-flex; gap: 4px; }
.num-mask i { display: inline-block; width: 9px; height: 8px; border-radius: 3px; background: #C7CBCA; }
.num-mask--sm { gap: 4px; }
.num-mask--sm b { font-size: 10px; color: #9CA3AF; }
.num-mask--sm .g { gap: 3px; }
.num-mask--sm i { width: 7px; height: 6px; border-radius: 2px; }
.crm-badge { background: #E2F58B; color: #173B36; font-weight: 700; font-size: 11px; padding: 4px 8px; border-radius: 6px; line-height: 1; display: inline-block; transition: transform 0.16s ease; }
.crm-badge.bump { transform: scale(1.18); }
.crm-chart { width: 100%; height: 70px; position: relative; overflow: hidden; margin-top: 14px; }

/* ===== Карточка «Без посредников»: схема КЦ → клиент ===== */
.flow { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 16px; }
/* центрируем иконки по линии стрелок; подписи позиционируем абсолютно, чтобы не влияли на высоту */
.flow-node { position: relative; display: flex; align-items: center; justify-content: center; flex: none; }
.flow-box { width: 58px; height: 58px; background: #fff; border-radius: 16px; box-shadow: 0 10px 24px rgba(23, 59, 54, 0.08); display: flex; align-items: center; justify-content: center; }
.flow-box svg { width: 26px; height: 26px; }
.flow-box--dark { background: #173B36; }
.flow-box--dark svg { color: #E2F58B; }
.flow-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 10px; white-space: nowrap; font-size: 11px; font-weight: 800; color: #173B36; text-align: center; line-height: 1.1; }
.flow-avas { display: flex; }
.flow-avas img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #EAE7DF; margin-left: -9px; box-shadow: 0 4px 10px rgba(23, 59, 54, 0.1); }
.flow-avas img:first-child { margin-left: 0; }
.flow-arrow { width: 46px; height: 24px; flex: none; }
.flow-dash { animation: dashFlow 0.9s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -20; } }
/* схема КЦ→клиент: ужимаем на узких экранах, чтобы не подрезалась */
@media (max-width: 419px) {
  .flow { padding: 0 10px; gap: 2px; }
  .flow-box { width: 50px; height: 50px; }
  .flow-box svg { width: 22px; height: 22px; }
  .flow-arrow { width: 36px; }
  .flow-avas img { width: 27px; height: 27px; margin-left: -8px; }
  .flow-label { font-size: 10px; }
}

/* ===== Аудиоплееры в «Примеры целевых звонков» ===== */
.aud .ic-pause { display: none; }
.aud.playing .ic-play { display: none; }
.aud.playing .ic-pause { display: block; }
.aud-bar { cursor: pointer; }

/* бейдж "+ получить подарок" под кнопкой расчёта */
.gift-badge {
  position: absolute;
  bottom: -12px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #E2F58B;
  color: #173B36;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 11px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(23, 59, 54, 0.16);
  pointer-events: none;
  border: 2px solid #F5F4F0;
  transform-origin: center;
  animation: giftPulse 1.6s ease-in-out infinite;
}
.gift-badge svg { width: 14px; height: 14px; }
@keyframes giftPulse {
  0%, 100% { transform: rotate(3deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.07); }
}
@media (min-width: 1280px) {
  .gift-badge { font-size: 13px; bottom: -13px; }
}

/* периодический блик на кнопке "Начать проект" (раз в 5с) */
.shine-btn { position: relative; overflow: hidden; }
.shine-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: btnShine 5s ease-in-out infinite;
}
@keyframes btnShine {
  0% { left: -60%; }
  24% { left: 160%; }
  100% { left: 160%; }
}

/* ===== Залипающая шапка ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 1rem;
  /* непрозрачный фон по умолчанию (сливается с фоном страницы вверху),
     чтобы контент не просвечивал сквозь шапку в начале скролла */
  background-color: rgb(245, 244, 240);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
@media (min-width: 1280px) {
  .site-header { padding-top: 2.5rem; padding-bottom: 1.5rem; }
}
/* фон/тень — появляются сразу при прокрутке (без смены высоты, поэтому без мигания) */
.site-header.is-scrolled {
  background: rgba(245, 244, 240, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(23, 59, 54, 0.07);
}
/* компактная высота — с гистерезисом в JS, чтобы не дёргалось */
.site-header.is-stuck {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.site-logo__img { transition: width 0.3s ease, height 0.3s ease; }
.site-header.is-stuck .site-logo__img { width: 2.25rem; height: 2.25rem; }
@media (min-width: 1280px) {
  .site-header.is-stuck .site-logo__img { width: 2.5rem; height: 2.5rem; }
}

/* Бургер + мобильное меню */
.nav-toggle { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #173B36; border-radius: 12px; }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .ic-close { display: none; }
.site-header.menu-open .nav-toggle .ic-burger { display: none; }
.site-header.menu-open .nav-toggle .ic-close { display: block; }

.mobile-menu { display: none; flex-direction: column; gap: 0; padding: 6px 24px 20px; }
.site-header.menu-open .mobile-menu { display: flex; }
.site-header.menu-open {
  background: rgba(245, 244, 240, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(23, 59, 54, 0.08);
}
.mobile-menu a:not(.mobile-menu__cta) { padding: 13px 4px; font-size: 17px; font-weight: 600; color: #173B36; border-bottom: 1px solid rgba(23, 59, 54, 0.08); }
.mobile-menu__cta { margin-top: 16px; background: #173B36; color: #fff !important; font-weight: 700; font-size: 16px; padding: 15px; border-radius: 9999px; text-align: center; display: block; }

/* На десктопе бургер и мобильное меню всегда скрыты */
@media (min-width: 1024px) {
  .nav-toggle, .mobile-menu { display: none !important; }
}

/* карточки-кейсы не должны распирать грид (min-width:auto) и обрезаться по краю */
#cases .grid > div { min-width: 0; }

/* адаптив блоков статистики (кейсы, «почему выбирают нас») */
@media (max-width: 639px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 14px !important; }
  .stat-grid > div > div:first-child { font-size: 24px !important; }
}

/* отступ для якорей под залипающей шапкой */
#lead, #about, #conditions, #cases, #examples, #contacts { scroll-margin-top: 96px; }

/* ===== Квиз: расчёт стоимости звонка ===== */
.quiz { position: fixed; inset: 0; z-index: 100; display: none; }
.quiz.open { display: block; }
.quiz__backdrop { position: absolute; inset: 0; background: rgba(23, 59, 54, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.quiz__dialog { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.quiz__inner { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: 28px; padding: 44px 40px 32px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35); }
.quiz__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: #173B36; background: #F1F0EB; }
.quiz__close svg { width: 20px; height: 20px; }
.quiz__close:hover { background: #E5E3DB; }
.quiz__progress { height: 6px; background: #EDEBE4; border-radius: 6px; overflow: hidden; margin-bottom: 16px; max-width: 80%; }
.quiz__bar { display: block; height: 100%; width: 0; background: #173B36; border-radius: 6px; transition: width 0.35s ease; }
.quiz__steplabel { font-size: 13px; font-weight: 700; color: #A1A1AA; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; min-height: 16px; }
.quiz__title { font-size: 28px; font-weight: 800; color: #173B36; line-height: 1.15; margin-bottom: 10px; letter-spacing: -0.01em; }
.quiz__sub { font-size: 15px; color: #788282; font-weight: 500; line-height: 1.5; margin-bottom: 26px; }
.q-title { font-size: 20px; font-weight: 800; color: #173B36; margin-bottom: 18px; line-height: 1.25; }
.q-opts { display: flex; flex-direction: column; gap: 10px; }
.q-opt { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 15px 18px; border: 1.5px solid #E6E4DC; border-radius: 14px; font-weight: 600; font-size: 16px; color: #173B36; background: #fff; transition: border-color 0.15s, background-color 0.15s; cursor: pointer; }
.q-opt:hover { border-color: #173B36; }
.q-opt.sel { background: #E2F58B; border-color: #173B36; }
.q-opt__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C7CBCA; flex: none; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.q-opt.sel .q-opt__dot { border-color: #173B36; background: #173B36; }
.q-opt.sel .q-opt__dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #E2F58B; }
.q-input { width: 100%; padding: 16px 18px; border: 1.5px solid #E6E4DC; border-radius: 14px; font-size: 16px; font-weight: 500; color: #173B36; outline: none; font-family: inherit; }
.q-input::placeholder { color: #A8AEAD; }
.q-input:focus { border-color: #173B36; }

/* выбор канала связи на финальном шаге квиза */
.chan-hint { font-size: 14px; color: #788282; font-weight: 500; margin-bottom: 12px; }
.chan-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.chan-chip { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1.5px solid #E6E4DC; border-radius: 9999px; font-size: 15px; font-weight: 700; color: #173B36; background: #fff; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.chan-chip svg { width: 18px; height: 18px; flex: none; }
.chan-chip:hover { border-color: #173B36; }
.chan-chip.sel { background: #E2F58B; border-color: #173B36; }
.chan-input { margin-bottom: 2px; }
.quiz__nav { display: flex; gap: 12px; align-items: center; margin-top: 26px; }
.quiz__back { padding: 14px 24px; border-radius: 9999px; font-weight: 700; font-size: 15px; color: #173B36; background: #F1F0EB; }
.quiz__back:hover { background: #E5E3DB; }
.quiz__next { flex: 1; padding: 15px 24px; border-radius: 9999px; font-weight: 700; font-size: 16px; color: #fff; background: #173B36; transition: opacity 0.2s, transform 0.2s; }
.quiz__next:hover:not(:disabled) { transform: translateY(-1px); }
.quiz__next:disabled { opacity: 0.4; cursor: not-allowed; }
.quiz__nav a.quiz__next { display: flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; }
.quiz__gift svg { width: 20px; height: 20px; flex: none; }
.footer-docs { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; align-items: center; }
@media (max-width: 767px) { .footer-docs { flex-direction: column; } }

.q-consents { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }
.q-consent { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; color: #788282; font-weight: 500; line-height: 1.4; cursor: pointer; }
.q-consent input { margin-top: 1px; flex: none; }
.q-consent a, .q-link { color: #173B36; text-decoration: underline; }
.quiz__done { display: flex; align-items: center; justify-content: center; padding: 24px 0 14px; }
.quiz__check { width: 84px; height: 84px; border-radius: 50%; background: #E2F58B; display: flex; align-items: center; justify-content: center; color: #173B36; }
.quiz__check svg { width: 40px; height: 40px; }
@media (max-width: 640px) {
  .quiz__dialog { padding: 0; }
  .quiz__inner { max-width: none; max-height: none; min-height: 100vh; border-radius: 0; padding: 64px 22px 28px; }
}

/* успех отправки формы */
.form-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 0; }
.form-done__check { width: 64px; height: 64px; border-radius: 50%; background: #E2F58B; color: #173B36; display: flex; align-items: center; justify-content: center; }
.form-done__check svg { width: 30px; height: 30px; }
.form-done__title { font-size: 22px; font-weight: 800; }
.form-done__text { font-size: 14px; opacity: 0.85; font-weight: 500; max-width: 340px; }

/* состояния ошибок валидации */
.field-err { border: 1.5px solid #D4584A !important; }
.consent-err { color: #D4584A !important; }
.consent-err a { color: #D4584A !important; }
.form-err, .q-err { color: #D4584A; font-size: 13px; font-weight: 600; line-height: 1.4; }
.form-err { margin-top: 2px; }
.q-err { margin-top: 12px; }

/* ===== Попап документов ===== */
.docm { position: fixed; inset: 0; z-index: 110; display: none; }
.docm.open { display: block; }
.docm__backdrop { position: absolute; inset: 0; background: rgba(23, 59, 54, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.docm__dialog { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.docm__card { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: 24px; padding: 40px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35); }
.docm__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: #173B36; background: #F1F0EB; }
.docm__close svg { width: 20px; height: 20px; }
.docm__close:hover { background: #E5E3DB; }
.docm__title { font-size: 24px; font-weight: 800; color: #173B36; margin: 0 0 18px; padding-right: 44px; line-height: 1.2; }
.docm__body { color: #4A5553; font-size: 14px; line-height: 1.6; }
.docm__body h3 { font-size: 15px; font-weight: 800; color: #173B36; margin: 16px 0 6px; }
.docm__body p { margin: 0 0 10px; }
.docm__note { font-size: 12px; color: #A1715B; background: #FBF1EC; border: 1px solid #F0DDD3; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
@media (max-width: 640px) {
  .docm__dialog { padding: 0; }
  .docm__card { max-width: none; max-height: none; min-height: 100vh; border-radius: 0; padding: 60px 22px 28px; }
}
/* ===== Карусель логотипов застройщиков ===== */
.logo-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
    display: flex;
    width: max-content;
    animation: logoScroll 45s linear infinite;
    will-change: transform;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-set {
    display: flex;
    align-items: center;
    gap: 56px;
    padding-right: 56px;
    flex-shrink: 0;
}
.logo-set img {
    height: 34px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    /* монохром в цветах лендинга: тёмный + мягкая прозрачность */
    filter: brightness(0) saturate(100%);
    opacity: 0.68;
    transition: opacity .25s ease, filter .25s ease;
}
.logo-set img:hover { opacity: 1; }
@keyframes logoScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 639px) {
    .logo-set { gap: 34px; padding-right: 34px; }
    .logo-set img { height: 26px; max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
    .logo-track { animation: none; }
}

/* Цифры в статистике кейсов не переносятся на новую строку */
.stat-grid > div > div:first-child { white-space: nowrap; }
