/* SANVAKS page — iamdes-style layout system */

/* ---- Горизонтальный ритм ---- */
.pg-wrap { padding-left: 148px; padding-right: 148px; box-sizing: border-box; }

/* ---- Секции ---- */
.pg-section { padding: 140px 0; }
.pg-section--alt { background: #f7f7f5; }

/* ---- Кикер (маленький подзаголовок над секцией) ---- */
.pg-kicker {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--w55); margin-bottom: 28px;
}

/* ---- Заголовок секции — большой как у iamdes ---- */
.pg-title {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.0;
  margin-bottom: 80px;
  color:var(--pg-ink);
}
.pg-title--white { color:var(--pg-ink); }

/* ---- Лид ---- */
.pg-lead { font-size: 1.1875rem; line-height: 1.75; color: var(--w5); max-width: 680px; }

/* ===== FULLSCREEN STICKY SCROLL ===== */
.scroll-stage { position: relative; }
.scroll-section {
  position: sticky;
  top: 0;
  min-height: 90vh;
  overflow: hidden;
  will-change: transform;
  z-index: 1;
}
/* Каждая следующая секция перекрывает предыдущую */
.scroll-section:nth-child(1) { z-index: 1; }
.scroll-section:nth-child(2) { z-index: 2; }
.scroll-section:nth-child(3) { z-index: 3; }
.scroll-section:nth-child(4) { z-index: 4; }
.scroll-section:nth-child(5) { z-index: 5; }
.scroll-section:nth-child(6) { z-index: 6; }
.scroll-section:nth-child(7) { z-index: 7; }
/* Обычные секции (не sticky) — для формы, футера */
.pg-section.no-sticky { position: relative; z-index: 10; }

.house-types {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 12px 0; margin-bottom: 80px;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.house-types span { white-space: nowrap; }
.ht-sep { color: #ccc; margin: 0 18px; font-weight: 300; }

.about-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid var(--line); margin-bottom: 64px;
}
.about-fact {
  padding: 48px 0 40px;
  border-right: 1px solid var(--line);
  padding-right: 40px; padding-left: 0;
}
.about-fact:not(:first-child) { padding-left: 40px; }
.about-fact:last-child { border-right: none; }
.about-fact-num {
  font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 800;
  line-height: 1; letter-spacing: -0.03em; color: var(--ink);
  margin-bottom: 12px;
}
.about-fact-num svg { width: 52px; height: 52px; stroke: var(--ink); }
.about-fact-label { font-size: 0.9375rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.about-text { max-width: 680px; }
.about-text p { font-size: 1.1875rem; line-height: 1.75; color: var(--muted); }

@media (max-width: 900px) {
  .about-facts { grid-template-columns: 1fr 1fr; }
  .about-fact:nth-child(2) { border-right: none; }
  .about-fact:nth-child(3) { border-top: 1px solid var(--line); padding-top: 40px; }
  .about-fact:nth-child(4) { border-right: none; border-top: 1px solid var(--line); padding-top: 40px; }
}
@media (max-width: 600px) {
  .about-facts { grid-template-columns: 1fr; }
  .about-fact { border-right: none !important; border-top: 1px solid var(--line); }
  .about-fact:first-child { border-top: none; }
  .house-types { font-size: 1.375rem; }
}

/* ===== ЭТАПЫ — 4 фото в ряд на весь экран ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 70vh;
  min-height: 480px;
}
.steps-cell {
  position: relative;
  overflow: hidden;
  cursor: default;
  /* Начальное состояние для анимации */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1) var(--d,0s),
              transform .8s cubic-bezier(.16,1,.3,1) var(--d,0s);
}
.steps-cell.in {
  opacity: 1;
  transform: none;
}
.steps-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-right: 1px solid var(--w12);
  pointer-events: none;
}
.steps-cell:last-child::after { border-right: none; }
.steps-photo {
  position: absolute;
  inset: 0;
  background: var(--pg-elev);
  filter: grayscale(1);
  transition: transform .7s cubic-bezier(.16,1,.3,1), filter .4s;
}
.steps-cell:hover .steps-photo {
  transform: scale(1.04);
  filter: grayscale(.4);
}
.steps-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.6) 30%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 36px 32px;
  color:var(--pg-ink);
}
.steps-num {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w55);
  margin-bottom: 12px;
  display: block;
}
.steps-title {
  font-size: clamp(1.375rem, 2.2vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color:var(--pg-ink);
  margin: 0;
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .steps-cell { height: 44vw; min-height: 220px; }
}
@media (max-width: 560px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-cell { height: 56vw; min-height: 200px; }
}

/* ===== ПОЧЕМУ МЫ ===== */
.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--w1);
}
.reason {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 32px;
  align-items: start;
  padding: 52px 0;
  border-bottom: 1px solid var(--w1);
}
.reason:nth-child(odd) { padding-right: 72px; border-right: 1px solid var(--w1); }
.reason:nth-child(even) { padding-left: 72px; }
.reason-num {
  font-size: 0.875rem; font-weight: 700; color: var(--w3);
  letter-spacing: 0.08em; padding-top: 6px;
}
.reason h3 { font-size: 1.375rem; font-weight: 600; margin-bottom: 14px; letter-spacing: -0.01em; line-height: 1.25; color:var(--pg-ink); }
.reason p { font-size: 1rem; color: var(--w5); line-height: 1.7; }

/* ===== ЭТАПЫ ===== */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.tl-item {
  padding: 40px 40px 48px 0;
  border-right: 1px solid var(--line);
}
.tl-item:last-child { border-right: none; padding-right: 0; }
.tl-item:not(:first-child) { padding-left: 40px; padding-right: 40px; }
.tl-item:last-child { padding-left: 40px; }
.tl-num {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 28px;
}
.tl-item h3 { font-size: 1.3125rem; font-weight: 600; margin-bottom: 14px; line-height: 1.25; letter-spacing: -0.01em; }
.tl-item p { font-size: 0.9375rem; color: var(--muted); line-height: 1.7; }

/* ===== CTA тёмная секция ===== */
.pg-cta-section { background: var(--band-bg); }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.faq-item:first-child { border-top: 1px solid rgba(0,0,0,0.1); }
.faq-item summary {
  padding: 36px 52px 36px 0;
  font-size: 1.25rem; font-weight: 500;
  cursor: pointer; position: relative; list-style: none; color: var(--ink);
  transition: color .15s; line-height: 1.35;
}
.faq-item summary:hover { color: #888; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.75rem; font-weight: 300; color: #aaa; transition: transform .2s, content .2s;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body { padding: 0 0 36px; font-size: 1.0625rem; color: var(--muted); line-height: 1.8; max-width: 760px; }

/* ===== Форма ===== */
.app-form-fields { display: flex; flex-direction: column; gap: 14px; }
.app-form-fields input {
  padding: 22px 24px; border: 1px solid #ddd; border-radius: 0;
  background:var(--btn-bg); font-size: 1.0625rem; color: var(--ink); width: 100%; box-sizing: border-box;
  transition: border-color .15s;
}
.app-form-fields input:focus { outline: none; border-color: var(--ink); }
.app-form-fields input::placeholder { color: #aaa; }

/* ===== Footer ===== */
.footer { background: var(--band-bg); padding: 96px 0 64px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 56px; }
.footer-brand .logo { font-size: 1.375rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; color: var(--band-muted); }
.footer-col b { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--w55); margin-bottom: 6px; display: block; }
.footer-col a { color: var(--band-muted); transition: color .15s; }
.footer-col a:hover { color:var(--pg-ink); }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .pg-wrap { padding-left: 56px; padding-right: 56px; }
  .pg-title { margin-bottom: 60px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .tl-item:nth-child(2) { border-right: none; padding-right: 0; }
  .tl-item:nth-child(3) { border-right: 1px solid var(--line); padding-left: 0; }
  .tl-item:nth-child(3), .tl-item:nth-child(4) { padding-top: 40px; border-top: 1px solid var(--line); margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .pg-wrap { padding-left: 28px; padding-right: 28px; }
  .pg-section { padding: 80px 0; }
  .reasons { grid-template-columns: 1fr; }
  .reason:nth-child(odd) { padding-right: 0; border-right: none; }
  .reason:nth-child(even) { padding-left: 0; }
  .timeline { grid-template-columns: 1fr; }
  .tl-item { border-right: none !important; padding-left: 0 !important; padding-right: 0 !important; border-top: 1px solid var(--line); }
  .tl-item:first-child { border-top: none; }
}
@media (max-width: 680px) {
  .pg-wrap { padding-left: 20px; padding-right: 20px; }
  .pg-section { padding: 60px 0; }
  .pg-title { margin-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  #zayavka .pg-wrap { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* ── Футер — адаптив для всех страниц ── */
@media (max-width: 1200px) {
  footer .pg-wrap { gap: 72px !important; }
  footer .pg-wrap > div:last-child { gap: 56px !important; }
  footer .pg-wrap > div:last-child > div { font-size: 1.25rem !important; }
  footer .pg-wrap > div > p { font-size: 1.25rem !important; }
}
@media (max-width: 900px) {
  footer .pg-wrap { gap: 48px !important; }
  footer .logo { font-size: 2rem !important; }
  footer .pg-wrap > div:last-child { gap: 40px !important; }
  footer .pg-wrap > div:last-child > div { font-size: 1.125rem !important; }
  footer .pg-wrap > div > p { font-size: 1.125rem !important; }
}
@media (max-width: 680px) {
  footer { padding: 56px 0 36px !important; }
  footer .pg-wrap { flex-direction: column !important; gap: 36px !important; }
  footer .logo { font-size: 1.875rem !important; }
  footer .pg-wrap > div:last-child { flex-direction: column !important; gap: 28px !important; }
  footer .pg-wrap > div:last-child > div { font-size: 1.0625rem !important; }
  footer .pg-wrap > div > p { font-size: 1rem !important; }
}
@media (max-width: 420px) {
  footer .pg-wrap > div:last-child > div { font-size: 0.9375rem !important; }
}
