/* Ярус v3 — плотная продуктовая композиция без полноэкранных пауз. */
:root {
  --v3-paper: #fbfaf6;
  --v3-paper-2: #f0eee8;
  --v3-ink: #17181c;
  --v3-muted: #62636a;
  --v3-line: rgb(23 24 28 / 12%);
  --v3-yellow: #fbd530;
  --v3-radius: 30px;
  --v3-shadow: 0 28px 80px rgb(23 24 28 / 12%);
  --v3-nav: 72px;
}

html { scroll-padding-top: calc(var(--v3-nav) + 18px); }
body {
  overflow-x: hidden;
  background: var(--v3-paper);
  color: var(--v3-ink);
  font-family: Onest, system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: min(1320px, calc(100% - 48px)) !important;
  max-width: 1320px !important;
}

.grid { column-gap: 24px; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--v3-nav);
  background: rgb(23 24 28 / 90%);
  border-bottom: 1px solid rgb(251 250 246 / 10%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav__bar { min-height: var(--v3-nav); }
.nav__logo { gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.nav__logo img { width: 28px; height: 28px; }
.nav__links { gap: 4px; }
.nav__link { min-height: 44px; padding: 0 15px; border-radius: 999px; font-size: 15px; }
.nav__link:hover { background: rgb(251 250 246 / 8%); }
.nav__actions .btn { min-height: 44px; padding-inline: 22px; }
.nav__menu { background: rgb(23 24 28 / 97%); border-top-color: rgb(251 250 246 / 10%); }

.btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.btn--primary {
  background: var(--v3-yellow) !important;
  color: var(--v3-ink) !important;
  border-color: var(--v3-yellow) !important;
  box-shadow: 0 10px 28px rgb(251 213 48 / 18%);
}
.btn--primary:hover { filter: brightness(.96); transform: translateY(-1px); }
.btn--secondary {
  background: transparent !important;
  color: inherit !important;
  border: 1px solid currentColor !important;
  box-shadow: none !important;
}
.btn-row { gap: 12px; }

.hero--show {
  min-height: 830px !important;
  height: auto !important;
  padding: var(--v3-nav) 0 24px !important;
  background:
    radial-gradient(circle at 72% 38%, rgb(251 250 246 / 8%), transparent 32%),
    var(--v3-ink);
  isolation: isolate;
}
.hero--show::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgb(23 24 28 / 72%) 0%, transparent 26%);
}
main > section.hero--show > picture.show__pic {
  inset: 132px 18px 154px 44%;
  width: auto;
  height: auto;
  max-width: none;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}
main > section.hero--show > picture.show__pic > img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero--show > .wrap { min-height: 734px; }
.hero--show .hero-text {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 734px;
  padding-top: 68px;
}
.hero--show .hero__text {
  align-self: start;
  width: 49%;
  max-width: 640px;
  display: grid;
  gap: 24px;
}
.hero--show .hero-notice {
  max-width: 52ch;
  margin: 0;
  color: rgb(251 250 246 / 72%) !important;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}
.hero--show h1 {
  max-width: 10.8ch;
  margin: 0;
  color: var(--v3-paper);
  font-size: clamp(56px, 4.6vw, 68px);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero--show .hero__lead {
  max-width: 62ch;
  margin: 0;
  color: rgb(251 250 246 / 82%);
  font-size: 18px;
  line-height: 1.55;
}
.hero--show .btn--secondary { color: var(--v3-paper) !important; border-color: rgb(251 250 246 / 42%) !important; }
.hero--show .show__spots { display: none; }
.hero--show .fit-strip {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}
.hero--show .fit {
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid rgb(251 250 246 / 16%);
  border-radius: 20px;
  background: rgb(23 24 28 / 62%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.hero--show .fit:hover { transform: translateY(-2px); background: rgb(23 24 28 / 82%); border-color: rgb(251 250 246 / 28%); }
.hero--show .fit b { color: var(--v3-paper); font-size: 16px; }
.hero--show .fit span { color: rgb(251 250 246 / 68%); font-size: 14px; line-height: 1.4; }

main > section:not(.hero) {
  min-height: 0 !important;
  height: auto !important;
  padding: 104px 0 !important;
}
main > section:not(.hero) + section:not(.tiles) { border-top: 1px solid var(--v3-line); }

main h2,
.closing h2 {
  margin: 0;
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
main h3 { letter-spacing: -.025em; }
.t-lead,
.section-head > p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--v3-muted); }
.section-head { margin-bottom: 42px; }
.section-head--mid { max-width: 900px; margin: 0 auto 48px; }
.frame,
.card,
.ui { border-radius: var(--v3-radius); }

/* Демо звонка */
#call { background: var(--v3-paper-2); }
#call .call-grid {
  display: grid !important;
  grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr) !important;
  grid-template-areas: "head phone" "chain phone" "end phone";
  gap: 30px 48px;
  align-items: start;
}
#call .call-grid > * { grid-column: auto !important; grid-row: auto !important; }
#call .call-head { grid-area: head; display: grid; gap: 22px; }
#call .call-head h2 { max-width: 11ch; }
#call .call-phone { grid-area: phone; position: sticky; top: calc(var(--v3-nav) + 22px); }
#call .call-frame {
  min-height: 580px;
  display: grid;
  place-items: center;
  padding: 38px;
  background: var(--v3-ink);
  border: 0;
  box-shadow: var(--v3-shadow);
}
#call .device { --dv-h: 520px; width: min(100%, 300px); }
#call .chain { grid-area: chain; display: grid; gap: 12px; padding: 0; }
#call .st {
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--v3-line);
  border-radius: 22px;
  background: var(--v3-paper);
}
#call .st-body { display: grid; gap: 9px; }
#call .st h3 { font-size: 20px; }
#call .st-text { color: var(--v3-muted); }
#call .st-live { margin-top: 8px; }
#call .demo-end { grid-area: end; display: flex; align-items: center; justify-content: space-between; gap: 18px; }

/* Bento — четыре разных доказательства */
main > section.tiles { padding: 16px !important; background: var(--v3-ink); border: 0; }
main > section.tiles > .tiles__grid {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
.tiles .tile {
  min-height: 530px;
  padding: 42px 42px 0;
  border-radius: var(--v3-radius);
  text-align: left;
  align-items: stretch;
}
.tiles .tile:nth-child(1),
.tiles .tile:nth-child(4) { grid-column: span 7; }
.tiles .tile:nth-child(2),
.tiles .tile:nth-child(3) { grid-column: span 5; }
.tiles .tile__text { justify-items: start; max-width: 520px; gap: 12px; }
.tiles .tile__title { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.05; }
.tiles .tile__lead { max-width: 48ch; font-size: 17px; line-height: 1.5; }
.tiles .tile__pic { height: 58%; min-height: 280px; margin-top: auto; }
.tiles .tile__pic img { object-fit: cover; object-position: center; }
.tiles .tile__pic--photo img { object-position: center 36%; }
.tiles .tile__link { margin-top: 2px; font-weight: 600; }

/* Программа */
#desk { background: var(--v3-ink); color: var(--v3-paper); }
#desk .desk-head { align-items: end; margin-bottom: 44px; }
#desk .desk-intro { display: grid; gap: 22px; }
#desk .t-lead { color: rgb(251 250 246 / 70%); }
#desk .desk-xlsx { color: rgb(251 250 246 / 82%); }
#desk .desk-frame {
  min-height: 0;
  padding: 12px;
  border: 1px solid rgb(251 250 246 / 14%);
  background: #222329;
  box-shadow: 0 34px 100px rgb(0 0 0 / 30%);
}
#desk .desk-shot { position: static; width: 100%; height: auto; border-radius: 20px; }

/* Телефон мастера */
#master .master-grid { align-items: stretch; }
#master .master-text { display: grid; align-content: start; gap: 24px; }
#master .master-text h2 { max-width: 10ch; }
#master .pp-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: var(--v3-radius);
  background: var(--v3-paper-2);
}
#master .pp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#master .outcomes { margin-top: 20px; }
#master .master-photo { min-height: 620px; border: 0; box-shadow: var(--v3-shadow); }

/* Путь заявки */
#ticket { min-height: 0 !important; background: var(--v3-paper-2); }
#ticket .steps-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px;
  position: static !important;
  min-height: 0 !important;
}
#ticket .step-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--v3-line);
  border-radius: 26px;
  background: var(--v3-paper);
  box-shadow: 0 12px 34px rgb(23 24 28 / 6%);
}
#ticket .step-card__shot { height: 240px; margin: 0; border-radius: 18px; overflow: hidden; background: #e6e4de; }
#ticket .step-card__shot img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
#ticket .step-card__shot--wide img { object-fit: cover; object-position: left top; }
#ticket .step-card__n {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--v3-ink);
  color: var(--v3-paper);
  font-weight: 650;
}
#ticket .step-card h3 { font-size: 21px; line-height: 1.15; }
#ticket .step-card p { color: var(--v3-muted); font-size: 15px; line-height: 1.5; }

/* Жильцы и режимы */
#resident .resident-grid,
#modes .modes-grid { align-items: stretch; }
#resident .resident-text,
#modes .modes-text { display: grid; align-content: center; gap: 24px; }
#resident .resident-frame { min-height: 620px; border: 0; background: var(--v3-ink); }
#modes { background: var(--v3-paper-2); }
#modes .modes-photo { min-height: 600px; border: 0; box-shadow: var(--v3-shadow); }
.rows > li { border-bottom-color: var(--v3-line); }
.rows__name { font-weight: 650; }

/* Подключение */
#connect .section-head { max-width: 1050px; }
#connect .section-head h2 { max-width: 16ch; }
#connect .connect-art {
  height: 390px;
  margin: 0 0 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--v3-radius);
  background: var(--v3-ink);
}
#connect .connect-art img { width: min(100%, 1080px); height: 100%; object-fit: contain; }
#connect .connect-grid { gap: 24px; }
#connect .card {
  padding: 30px;
  border: 1px solid var(--v3-line);
  background: var(--v3-paper-2);
  box-shadow: none;
}
#connect .card h3 { font-size: 28px; }
#connect .card > p { color: var(--v3-muted); font-size: 17px; line-height: 1.55; }
#connect .panel { min-height: 260px; border-radius: 20px; overflow: hidden; }

/* FAQ */
#faq { background: var(--v3-paper-2); }
#faq .faq-head { position: sticky; top: calc(var(--v3-nav) + 28px); align-self: start; display: grid; gap: 22px; }
#faq .faq__item { padding: 24px 0; border-bottom: 1px solid var(--v3-line); }
#faq .faq__item:first-child { padding-top: 0; }
#faq .faq__item h3 { font-size: 22px; }
#faq .faq__item p { margin-top: 8px; color: var(--v3-muted); font-size: 17px; line-height: 1.55; }

/* Цена */
#price { background: var(--v3-ink); color: var(--v3-paper); }
#price .price-grid { align-items: start; }
#price .price-list { display: grid; gap: 22px; }
#price .price-free {
  margin: 0;
  padding: 22px 24px;
  border: 0;
  border-radius: 22px;
  background: var(--v3-paper);
  color: var(--v3-ink);
}
#price .rows > li { border-bottom-color: rgb(251 250 246 / 16%); }
#price .rows__name,
#price .rows__value { color: var(--v3-paper) !important; }
#price .rows li p,
#price .price-note,
#price .price-guilt,
#price .price-new { color: rgb(251 250 246 / 70%); }
#price .price-guilt { border-top-color: rgb(251 250 246 / 18%); }
#price .price-side { display: grid; gap: 18px; }
#price .calc,
#price .leave {
  padding: 30px;
  border-radius: var(--v3-radius);
  background: var(--v3-paper);
  color: var(--v3-ink);
}
#price .calc__label { font-size: 18px; font-weight: 600; }
#price .calc__out { font-size: clamp(34px, 3vw, 48px); letter-spacing: -.04em; }
#price .leave h3 { font-size: 28px; }
#price .leave li { border-bottom-color: var(--v3-line); }

/* Заявка */
#start .start-grid { align-items: start; }
#start .start-text { display: grid; gap: 22px; }
#start .pilot-art {
  height: 300px;
  margin: 4px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--v3-radius);
  background: var(--v3-ink);
}
#start .pilot-art img { width: 100%; height: 100%; object-fit: contain; }
#start .next-steps { counter-reset: v3-step; display: grid; gap: 12px; }
#start .next-steps li {
  counter-increment: v3-step;
  position: relative;
  padding: 16px 16px 16px 54px;
  border: 1px solid var(--v3-line);
  border-radius: 18px;
  background: var(--v3-paper-2);
}
#start .next-steps li::before {
  content: counter(v3-step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--v3-ink);
  color: var(--v3-paper);
  font-size: 13px;
  font-weight: 650;
}
#start .promise { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
#start .promise li { padding: 12px 0; }
#start .form-box {
  padding: 34px;
  border: 1px solid var(--v3-line);
  background: var(--v3-paper-2);
  box-shadow: var(--v3-shadow);
}
#start .form { gap: 18px; }
#start .field input {
  min-height: 54px;
  padding-inline: 16px;
  border-radius: 14px;
  background: var(--v3-paper);
}
#start .form .btn--primary { width: 100%; min-height: 58px; }

/* Подвал */
.closing {
  min-height: 0 !important;
  padding: 88px 0 36px !important;
  background: var(--v3-ink);
}
.closing__cta { padding-bottom: 70px; }
.closing__cta .section-head { max-width: 780px; }
.closing__cta p { color: rgb(251 250 246 / 68%); }
.closing__links { padding-top: 42px; border-top-color: rgb(251 250 246 / 14%); }
.footer__legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgb(251 250 246 / 12%); }

/* Спокойное появление при прокрутке */
.v3-ready .v3-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .62s cubic-bezier(.2,.7,.2,1), transform .62s cubic-bezier(.2,.7,.2,1);
}
.v3-ready .v3-reveal.is-visible { opacity: 1; transform: none; }
.v3-ready .v3-reveal[data-v3-delay="1"] { transition-delay: 70ms; }
.v3-ready .v3-reveal[data-v3-delay="2"] { transition-delay: 140ms; }
.v3-ready .v3-reveal[data-v3-delay="3"] { transition-delay: 210ms; }

@media (max-width: 1100px) {
  .wrap { width: min(100% - 40px, 960px) !important; }
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .hero--show h1 { font-size: clamp(54px, 7vw, 68px); }
  #call .call-grid { grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr) !important; gap: 28px; }
  #ticket .steps-row { grid-template-columns: 1fr 1fr !important; }
  #master .pp-demo { grid-template-columns: 1fr; }
  #master .pp { justify-self: center; }
}

@media (max-width: 820px) {
  :root { --v3-nav: 64px; }
  .wrap { width: calc(100% - 36px) !important; }
  .nav__actions { display: none; }
  .hero--show { min-height: 1000px !important; }
  .hero--show::after { background: linear-gradient(0deg, rgb(23 24 28 / 86%) 0%, transparent 26%); }
  main > section.hero--show > picture.show__pic {
    inset: 555px 18px auto;
    width: auto;
    height: 205px;
  }
  main > section.hero--show > picture.show__pic > img { object-fit: contain; object-position: center; }
  .hero--show > .wrap,
  .hero--show .hero-text { min-height: 912px; }
  .hero--show .hero-text { padding-top: 42px; }
  .hero--show .hero__text { width: 100%; max-width: 600px; gap: 18px; }
  .hero--show .fit-strip { grid-template-columns: 1fr; gap: 8px; margin-top: 26px; }
  .hero--show .fit-strip { max-height: none !important; }
  .hero--show .fit { min-height: 60px; padding: 12px 16px; }
  .hero--show .fit span { display: none; }
  .hero--show .fit:nth-child(3) { display: grid !important; }
  main > section:not(.hero) { padding: 78px 0 !important; }
  main h2, .closing h2 { font-size: clamp(38px, 7.5vw, 50px); }
  #call .call-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas: "head" "phone" "chain" "end";
  }
  #call .call-head h2 { max-width: 15ch; }
  #call .call-phone { position: static; }
  #call .call-frame { min-height: 560px; }
  main > section.tiles > .tiles__grid { grid-template-columns: 1fr !important; }
  .tiles .tile { grid-column: 1 !important; min-height: 500px; }
  #desk .desk-head,
  #master .master-grid,
  #resident .resident-grid,
  #modes .modes-grid,
  #connect .connect-grid,
  #faq .faq-grid,
  #price .price-grid,
  #start .start-grid { grid-template-columns: 1fr !important; row-gap: 34px; }
  #desk .desk-head > *,
  #master .master-grid > *,
  #resident .resident-grid > *,
  #modes .modes-grid > *,
  #connect .connect-grid > *,
  #faq .faq-grid > *,
  #price .price-grid > *,
  #start .start-grid > * { grid-column: 1 !important; }
  #master .master-photo,
  #modes .modes-photo { min-height: 520px; }
  #resident .resident-frame { min-height: 560px; }
  #connect .connect-art { height: 320px; }
  #faq .faq-head { position: static; }
  #start .pilot-art { height: 280px; }
  .closing__links .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; }
  .closing__links .grid > * { grid-column: auto !important; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px) !important; }
  .nav__logo { font-size: 18px; }
  .hero--show { min-height: 950px !important; padding-bottom: 16px !important; }
  .hero--show > .wrap,
  .hero--show .hero-text { min-height: 870px; }
  .hero--show .hero-text { padding-top: 34px; }
  main > section.hero--show > picture.show__pic { inset: 600px 10px auto; width: auto; height: 155px; }
  .hero--show .hero-notice { font-size: 14px; }
  .hero--show h1 { max-width: 11ch; font-size: clamp(42px, 12.4vw, 52px); line-height: .98; }
  .hero--show .hero__lead { font-size: 16px; line-height: 1.5; }
  .hero--show .btn-row { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero--show .btn { width: 100%; }
  .hero--show .fit-strip { margin-top: 18px; }
  .hero--show .fit { min-height: 50px; }
  main > section:not(.hero) { padding: 66px 0 !important; }
  main h2, .closing h2 { font-size: 38px; }
  .t-lead, .section-head > p { font-size: 17px; }
  #call .call-frame { min-height: 500px; padding: 18px 10px; border-radius: 26px; }
  #call .device { --dv-h: 470px; width: 274px; border-width: 7px; border-radius: 40px; }
  #call .chain { gap: 10px; }
  #call .st { padding: 18px; }
  #call .demo-end { align-items: stretch; flex-direction: column; }
  #call .demo-end .btn { width: 100%; }
  main > section.tiles { padding: 8px !important; }
  main > section.tiles > .tiles__grid { gap: 8px !important; }
  .tiles .tile { min-height: 460px; padding: 30px 24px 0; border-radius: 24px; }
  .tiles .tile__title { font-size: 31px; }
  .tiles .tile__pic { min-height: 240px; }
  #desk .desk-head { margin-bottom: 28px; }
  #desk .desk-frame { padding: 7px; overflow: hidden; }
  #desk .desk-shot { width: 820px; max-width: none; transform: translateX(-120px); }
  #master .pp-demo { padding: 20px; }
  #master .pp-actions { display: grid; grid-template-columns: 1fr 1fr; }
  #master .pp-actions .btn { padding-inline: 14px; }
  #master .master-photo,
  #modes .modes-photo { min-height: 390px; }
  #ticket .steps-row { grid-template-columns: 1fr !important; }
  #ticket .step-card__shot { height: 280px; }
  #resident .resident-frame { min-height: 520px; }
  #connect .connect-art { height: 230px; border-radius: 24px; }
  #connect .connect-art img { width: 100%; transform: scale(1.2); }
  #connect .card { padding: 24px; }
  #connect .panel { min-height: 220px; }
  #price .calc,
  #price .leave { padding: 24px; }
  #start .pilot-art { height: 220px; border-radius: 24px; }
  #start .pilot-art img { width: 100%; transform: scale(1.18); }
  #start .promise { grid-template-columns: 1fr; }
  #start .form-box { padding: 22px; }
  .closing { padding: 64px 0 104px !important; }
  .closing__cta { padding-bottom: 52px; }
  .closing__links .grid { grid-template-columns: 1fr 1fr; }
  .footer__legal { display: grid; gap: 12px; }
  .actionbar {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    background: rgb(23 24 28 / 92%);
    border-top: 1px solid rgb(251 250 246 / 12%);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .actionbar .btn { width: 100%; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .v3-ready .v3-reveal { opacity: 1 !important; transform: none !important; }
}
