/*
 * MODUL 101 — Editorial R5
 * A single, readable presentation layer for the current production DOM.
 * It is intentionally isolated from the generated bundle and must be loaded after it.
 */

/* ==========================================================================
   01. Design tokens and global behaviour
   ========================================================================== */

:root {
  --r5-ink: #171814;
  --r5-ink-soft: #242720;
  --r5-paper: #f3efe7;
  --r5-paper-soft: #faf8f3;
  --r5-travertine: #d8cbbb;
  --r5-oak: #76533f;
  --r5-olive: #596554;
  --r5-warm-light: #d99a55;
  --r5-green: #69b93f;
  --r5-muted: #6f7069;
  --r5-line: rgba(23, 24, 20, 0.16);
  --r5-line-light: rgba(255, 255, 255, 0.18);
  --r5-shell: 1560px;
  --r5-page: clamp(20px, 5vw, 80px);
  --r5-gutter: max(var(--r5-page), calc((100vw - var(--r5-shell)) / 2));
  --r5-section-y: clamp(104px, 11vw, 176px);
  --r5-gap: clamp(16px, 1.7vw, 26px);
  --r5-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --carbon: var(--r5-ink);
  --carbon-soft: var(--r5-ink-soft);
  --paper: var(--r5-paper);
  --warm-white: var(--r5-paper-soft);
  --oak: var(--r5-oak);
  --green: var(--r5-green);
  --muted: var(--r5-muted);
  --line: var(--r5-line);
  --pad: var(--r5-gutter);
  --section: var(--r5-section-y);
  --max: var(--r5-shell);
}

html {
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
  background: var(--r5-ink);
  overscroll-behavior-y: auto;
}

body {
  background: var(--r5-paper);
  color: var(--r5-ink);
  overflow-x: clip;
}

main {
  overflow: clip;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  border-radius: 0;
}

button,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--r5-green);
  outline-offset: 4px;
}

::selection {
  color: var(--r5-ink);
  background: var(--r5-green);
}

[id] {
  scroll-margin-top: 78px;
}

/* Full-bleed section surfaces; direct children form the 1560px content shell. */
.section,
.product,
.materials,
.contact {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--r5-gutter);
}

.section,
.product,
.materials,
.contact,
.life {
  min-width: 0;
}

.section-heading {
  max-width: 960px;
}

.section-heading h2,
.product__intro h2,
.materials__copy h2,
.contact__intro h2 {
  max-width: 12ch;
  margin-top: 20px;
  letter-spacing: -0.055em;
  font-weight: 430;
  line-height: 0.98;
}

.kicker {
  color: var(--r5-olive);
  letter-spacing: 0.17em;
}

.kicker--light {
  color: rgba(255, 255, 255, 0.62);
}

/* Green is reserved for calls to action, keyboard focus and selected state. */
.button {
  min-height: 52px;
  border-radius: 0;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: none;
}

.button--green {
  color: var(--r5-ink);
  background: var(--r5-green);
}

.button--dark {
  color: var(--r5-paper-soft);
  background: var(--r5-ink);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.46);
}

.text-link {
  min-height: 48px;
}

/* ==========================================================================
   02. Header and hero
   ========================================================================== */

.site-header {
  padding-inline: var(--r5-gutter);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--r5-line);
}

.hero__content {
  width: min(900px, calc(100vw - (2 * var(--r5-gutter))));
  padding-inline: var(--r5-gutter);
  animation: r5-rise 820ms var(--r5-ease) both;
}

.hero__facts {
  right: var(--r5-gutter);
}

.visual-note {
  right: var(--r5-gutter);
}

/* ==========================================================================
   03. Package choice — asymmetric editorial triptych
   ========================================================================== */

.packages {
  padding-block: var(--r5-section-y);
  background: var(--r5-paper);
}

.packages .section-heading {
  max-width: 960px;
  padding-left: 0;
  border-left: 0;
}

.package-cards {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  align-items: start;
  gap: var(--r5-gap);
  margin-top: clamp(56px, 7vw, 104px);
  border: 0;
  background: transparent;
  animation: r5-rise 760ms 80ms var(--r5-ease) both;
}

.package-card {
  min-width: 0;
  border-top: 1px solid var(--r5-line);
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: border-color 220ms ease;
}

.package-card:nth-child(1) {
  margin-top: clamp(64px, 7vw, 112px);
}

.package-card:nth-child(2) {
  margin-top: 0;
}

.package-card:nth-child(3) {
  margin-top: clamp(30px, 3.5vw, 58px);
}

.package-card::before {
  content: none;
}

.package-card:hover,
.package-card:focus-visible {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.package-card:focus-visible {
  border-top-color: var(--r5-green);
}

.package-card figure {
  aspect-ratio: 4 / 5;
  background: var(--r5-travertine);
}

.package-card:nth-child(2) figure {
  aspect-ratio: 5 / 4;
}

.package-card:nth-child(3) figure {
  aspect-ratio: 4 / 4.65;
}

.package-card figure::after {
  background: linear-gradient(to top, rgba(16, 17, 14, 0.7), transparent 52%);
}

.package-card figure img {
  transition: transform 700ms var(--r5-ease);
}

.package-card:hover figure img,
.package-card:focus-visible figure img {
  transform: scale(1.025);
}

.package-card figure span {
  right: 22px;
  bottom: 20px;
  left: 22px;
  font-weight: 450;
}

.package-card__copy {
  min-height: 270px;
  padding: 26px 0 0;
  border-bottom: 1px solid var(--r5-line);
}

.package-card__copy p {
  max-width: 36ch;
  color: var(--r5-muted);
}

.package-card__copy strong {
  color: var(--r5-ink);
}

.package-card__copy span {
  width: fit-content;
  transition: transform 280ms var(--r5-ease);
}

.package-card:hover .package-card__copy span,
.package-card:focus-visible .package-card__copy span {
  transform: translateX(6px);
}

/* ==========================================================================
   04. Family story — 7/5 image and copy
   ========================================================================== */

.life {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(380px, 5fr);
  min-height: clamp(700px, 61vw, 940px);
  color: var(--r5-paper-soft);
  background: var(--r5-ink);
  overflow: hidden;
}

.life > img {
  position: relative;
  inset: auto;
  grid-column: 1;
  width: 100%;
  height: 100%;
  min-height: clamp(700px, 61vw, 940px);
  object-fit: cover;
  object-position: center;
}

.life::after {
  content: none;
}

.life__copy {
  position: relative;
  z-index: 1;
  grid-column: 2;
  align-self: stretch;
  display: flex;
  width: auto;
  max-width: 680px;
  margin: 0;
  padding:
    var(--r5-section-y)
    var(--r5-gutter)
    var(--r5-section-y)
    clamp(42px, 5vw, 86px);
  flex-direction: column;
  justify-content: center;
  border: 0;
  background: var(--r5-ink);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.life__copy h2 {
  max-width: 9ch;
  font-weight: 430;
}

.life__copy > p:not(.kicker) {
  color: rgba(255, 255, 255, 0.74);
}

.life__next {
  border-top-color: var(--r5-line-light);
}

.life .visual-note {
  right: auto;
  left: var(--r5-gutter);
}

/* ==========================================================================
   05. Readiness — open 5/7 diptych
   ========================================================================== */

.readiness {
  position: relative;
  padding-block: var(--r5-section-y);
  border-block: 1px solid var(--r5-line);
  background: var(--r5-paper-soft);
  isolation: auto;
  overflow: visible;
}

.readiness::before {
  content: none;
}

.readiness > * {
  position: relative;
  z-index: auto;
}

.readiness .section-heading {
  padding-left: 0;
  border-left: 0;
}

.readiness__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(28px, 5vw, 76px);
  margin-top: clamp(54px, 7vw, 96px);
}

.readiness article,
.readiness article:hover {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  overflow: visible;
}

.readiness article::before {
  margin: 0 0 15px;
  color: var(--r5-olive);
  letter-spacing: 0.16em;
}

.readiness article:first-child::before {
  content: "01 · ПРОСТРАНСТВО ДЛЯ ВАШИХ ИДЕЙ";
}

.readiness article:last-child::before {
  content: "02 · ИНТЕРЬЕР, ГОТОВЫЙ К ЖИЗНИ";
}

.readiness article img {
  width: 100%;
  aspect-ratio: 4 / 3;
  transition: transform 700ms var(--r5-ease);
}

.readiness article:last-child img {
  aspect-ratio: 16 / 10;
}

.readiness article:hover img {
  transform: scale(1.018);
}

.readiness h3,
.readiness article p {
  padding-inline: 0;
}

.readiness h3 {
  margin-top: 26px;
}

.readiness article p {
  margin-top: 12px;
}

/* ==========================================================================
   06. Product chapters — quiet line, 7/5 intro and truthful dimensions
   ========================================================================== */

.product {
  position: relative;
  padding-top: var(--r5-section-y);
  padding-bottom: clamp(92px, 10vw, 156px);
  background: var(--r5-paper-soft);
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 72px;
}

.product--premium {
  border-top: 2px solid var(--r5-warm-light);
  background: var(--r5-travertine);
}

.product--autonomous {
  border-top: 2px solid var(--r5-warm-light);
  color: var(--r5-paper-soft);
  background: #293129;
}

.product::before {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 clamp(54px, 7vw, 96px);
  padding: 0 0 18px;
  color: var(--r5-muted);
  border: 0;
  border-bottom: 1px solid var(--r5-line);
  background: transparent;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.product--base::before {
  content: "01 / M15 · БАЗОВАЯ";
}

.product--premium::before {
  content: "02 / M15 · ПРЕМИУМ";
}

.product--autonomous::before {
  content: "03 / M15 · АВТОНОМНАЯ";
  color: rgba(255, 255, 255, 0.64);
  border-bottom-color: var(--r5-line-light);
}

.product:target::before {
  animation: none;
}

.product__back {
  position: absolute;
  z-index: 2;
  top: calc(var(--r5-section-y) - 10px);
  right: var(--r5-gutter);
  min-height: 48px;
  padding: 0;
  color: var(--r5-muted);
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
}

.product__back:hover {
  color: var(--r5-ink);
  border-color: currentColor;
  background: transparent;
}

.product--autonomous .product__back,
.product--autonomous .product__back:hover {
  color: rgba(255, 255, 255, 0.72);
}

.product__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--r5-gap);
  align-items: start;
}

.product__intro .kicker {
  grid-column: 1 / 8;
  grid-row: 1;
}

.product__intro h2 {
  grid-column: 1 / 8;
  grid-row: 2;
}

.product__intro > p:not(.kicker):not(.product__technical) {
  grid-column: 8 / 13;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 650px;
  margin: 0;
  color: var(--r5-muted);
}

.product__price {
  grid-column: 8 / 13;
  grid-row: 3;
  margin-top: 32px;
}

.product__technical {
  grid-column: 8 / 13;
  grid-row: 4;
  margin-top: 13px;
  color: var(--r5-muted);
}

.product__actions {
  grid-column: 8 / 13;
  grid-row: 5;
  margin-top: 28px;
}

.product__intro::after {
  content: "6000 × 2500 × 2900 мм  ·  Чистый объём ≈ 5700 × 2200 × 2400 мм  ·  Санузел 1500 × 1500 мм  ·  Одна входная дверь / одна дверь санузла";
  grid-column: 1 / -1;
  grid-row: 6;
  margin-top: clamp(52px, 7vw, 92px);
  padding-block: 17px;
  color: var(--r5-muted);
  border-block: 1px solid var(--r5-line);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 690;
  line-height: 1.55;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product--autonomous .kicker,
.product--autonomous .product__intro > p:not(.kicker):not(.product__technical),
.product--autonomous .product__technical,
.product--autonomous .product__intro::after {
  color: rgba(255, 255, 255, 0.64);
}

.product--autonomous .product__intro::after {
  border-color: var(--r5-line-light);
}

.product--autonomous .button--dark {
  color: var(--r5-ink);
  background: var(--r5-paper-soft);
}

.product--autonomous .text-link {
  color: var(--r5-paper-soft);
}

.gallery {
  margin-top: clamp(54px, 7vw, 104px);
}

.gallery__main {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background: var(--r5-travertine);
}

.gallery__main figcaption {
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background: rgba(17, 18, 15, 0.7);
}

.gallery__thumbs {
  gap: 8px;
  margin-top: 8px;
}

.gallery__thumbs button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 0;
}

.gallery__thumbs button::after {
  border: 0;
}

.gallery__thumbs button.is-active {
  border-color: var(--r5-green);
}

.gallery__thumbs button.is-active::after {
  border-width: 0;
}

.gallery__thumbs img {
  transition:
    opacity 180ms ease,
    transform 600ms var(--r5-ease);
}

.gallery__thumbs button:hover img {
  transform: scale(1.02);
}

.product--premium .gallery::after {
  content: "01 · Любимая чашка на кухне   /   02 · Вещи в своём шкафу   /   03 · Тёплый вечер у окна";
  display: block;
  margin-top: 24px;
  padding-top: 18px;
  color: var(--r5-oak);
  border-top: 1px solid rgba(118, 83, 63, 0.34);
  font-size: clamp(11px, 0.92vw, 14px);
  font-weight: 690;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product--autonomous .gallery::after {
  content: "Инженерия остаётся на крыше: солнечные панели, водяной нагреватель и защищённый сервисный узел — без наземных рам и оборудования на фасаде.";
  display: block;
  max-width: 920px;
  margin: 24px 0 0 auto;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.64);
  border-top: 1px solid var(--r5-line-light);
  font-size: clamp(13px, 1.1vw, 17px);
}

.section-transition {
  position: relative;
  max-width: 780px;
  margin-top: clamp(62px, 8vw, 112px);
  padding: 25px 0 0;
  color: var(--r5-muted);
  border-top: 1px solid var(--r5-line);
}

.section-transition::before {
  content: none;
}

.product--autonomous .section-transition {
  color: rgba(255, 255, 255, 0.64);
  border-color: var(--r5-line-light);
}

/* ==========================================================================
   07. Materials — sticky story and six-image editorial sequence
   ========================================================================== */

.materials {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  column-gap: clamp(48px, 8vw, 132px);
  align-items: start;
  padding-block: var(--r5-section-y);
  color: var(--r5-paper-soft);
  background: var(--r5-ink);
}

.materials__copy {
  position: sticky;
  top: 104px;
  grid-column: 1;
  max-width: 500px;
}

.materials__copy h2 {
  max-width: 9ch;
}

.materials__copy > p:last-child {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.64);
}

.materials__grid {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, clamp(260px, 29vw, 480px));
  gap: 10px;
  margin-top: 0;
}

.materials__grid img,
.materials__grid img:first-child,
.materials__grid img:nth-child(n) {
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-row: auto;
  aspect-ratio: auto;
  object-fit: cover;
  filter: saturate(0.92);
  transform: none;
  transition:
    filter 350ms ease,
    transform 700ms var(--r5-ease);
}

.materials__grid img:nth-child(1) {
  grid-column: 1 / 9;
  grid-row: 1;
}

.materials__grid img:nth-child(2) {
  grid-column: 9 / 13;
  grid-row: 1;
}

.materials__grid img:nth-child(3) {
  grid-column: 1 / 6;
  grid-row: 2;
}

.materials__grid img:nth-child(4) {
  grid-column: 6 / 13;
  grid-row: 2;
}

.materials__grid img:nth-child(5) {
  grid-column: 1 / 8;
  grid-row: 3;
}

.materials__grid img:nth-child(6) {
  grid-column: 8 / 13;
  grid-row: 3;
}

.materials__grid img:hover {
  filter: saturate(1);
  transform: scale(1.012);
}

.materials .section-transition {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.64);
  border-color: var(--r5-line-light);
}

/* ==========================================================================
   08. FAQ — 4/7 calm information grid
   ========================================================================== */

.faq {
  display: grid;
  grid-template-columns: minmax(240px, 4fr) minmax(0, 7fr);
  gap: clamp(52px, 9vw, 150px);
  padding-block: var(--r5-section-y);
  background: var(--r5-paper);
}

.faq .section-heading {
  position: sticky;
  top: 104px;
  align-self: start;
}

.faq__list {
  border-top-color: var(--r5-line);
}

.faq details {
  border-bottom-color: var(--r5-line);
}

.faq summary {
  min-height: 90px;
}

.faq summary span {
  color: var(--r5-olive);
}

.faq details p {
  color: var(--r5-muted);
}

/* ==========================================================================
   09. Contact — calm direct conversation, no decorative green rail
   ========================================================================== */

.contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: clamp(54px, 8vw, 132px);
  padding-block: var(--r5-section-y);
  color: var(--r5-paper-soft);
  border: 0;
  background: var(--r5-ink-soft);
  isolation: auto;
  overflow: visible;
}

.contact::before,
.contact::after {
  content: none;
}

.contact > * {
  position: relative;
  z-index: auto;
}

.contact__intro {
  align-self: start;
  max-width: 790px;
}

.contact__intro h2 {
  max-width: 10ch;
}

.contact__intro > p:not(.kicker) {
  max-width: 53ch;
  color: rgba(255, 255, 255, 0.66);
}

.contact__promises {
  display: grid;
  gap: 0;
  max-width: 620px;
  margin-top: 34px;
}

.contact__promises span {
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.76);
  border: 0;
  border-top: 1px solid var(--r5-line-light);
  background: transparent;
}

.contact__phone {
  color: var(--r5-paper-soft);
  transition: opacity 180ms ease;
}

.contact__phone:hover {
  color: var(--r5-paper-soft);
  opacity: 0.68;
}

.contact__channels a {
  color: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.36);
}

.contact__channels a:hover {
  color: var(--r5-paper-soft);
  border-color: currentColor;
}

.lead-form {
  align-self: start;
  gap: 22px;
  padding: clamp(28px, 4vw, 54px);
  color: var(--r5-ink);
  border: 1px solid var(--r5-line);
  border-top: 1px solid var(--r5-warm-light);
  border-radius: 0;
  background: var(--r5-paper-soft);
  box-shadow: none;
}

.lead-form::before {
  color: var(--r5-olive);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  min-height: 52px;
  border-radius: 0;
  background: transparent;
}

.lead-form textarea {
  min-height: 120px;
  padding-block: 12px;
  resize: vertical;
}

.lead-form .button {
  min-height: 54px;
}

.button--max {
  color: var(--r5-ink);
  border: 1px solid var(--r5-line);
  background: transparent;
}

.button--max:hover {
  color: var(--r5-ink);
  border-color: var(--r5-ink);
  background: transparent;
}

/* ==========================================================================
   10. Footer — generous wordmark and warm family sign-off
   ========================================================================== */

.site-footer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 76px);
  min-height: 0;
  padding:
    clamp(76px, 9vw, 136px)
    var(--r5-gutter)
    clamp(48px, 6vw, 86px);
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid var(--r5-line-light);
  background: #0f100d;
}

.site-footer > div:first-child {
  grid-column: 1 / -1;
}

.footer-wordmark {
  display: block;
  width: min(74vw, 1180px);
  max-width: 100%;
}

.site-footer > div:first-child p {
  max-width: 680px;
  margin-top: clamp(24px, 3vw, 44px);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 420;
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-transform: none;
}

.site-footer nav {
  grid-column: 1 / 6;
  flex-flow: row wrap;
  align-items: center;
  gap: 14px 30px;
  padding-top: 28px;
  border-top: 1px solid var(--r5-line-light);
}

.site-footer__meta {
  grid-column: 6 / -1;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
  align-items: center;
  justify-self: stretch;
  gap: 14px 24px;
  padding-top: 28px;
  color: rgba(255, 255, 255, 0.44);
  border-top: 1px solid var(--r5-line-light);
  text-align: right;
}

/* ==========================================================================
   11. Safe motion — visible by default, subtle and bounded
   ========================================================================== */

@keyframes r5-rise {
  from {
    opacity: 0.9;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Neutralise the older scroll-timeline animations in the generated layer. */
@supports (animation-timeline: view()) {
  .product__intro,
  .gallery,
  .readiness article,
  .materials__grid img,
  .contact__intro,
  .lead-form {
    animation: none;
  }
}

/* ==========================================================================
   12. Responsive flow
   ========================================================================== */

@media (max-width: 1100px) {
  .package-cards {
    grid-template-columns: 1fr;
    gap: clamp(34px, 6vw, 64px);
  }

  .package-card,
  .package-card:nth-child(n) {
    display: grid;
    grid-template-columns: minmax(240px, 5fr) minmax(0, 7fr);
    margin-top: 0;
    border-top: 1px solid var(--r5-line);
  }

  .package-card figure,
  .package-card:nth-child(2) figure,
  .package-card:nth-child(3) figure {
    height: 100%;
    min-height: 360px;
    aspect-ratio: 4 / 3;
  }

  .package-card__copy {
    min-height: 360px;
    padding: clamp(26px, 5vw, 54px);
    border-bottom: 1px solid var(--r5-line);
  }

  .materials {
    grid-template-columns: 1fr;
  }

  .materials__copy {
    position: static;
    grid-column: 1;
    max-width: 760px;
  }

  .materials__grid {
    grid-column: 1;
    margin-top: clamp(54px, 8vw, 92px);
  }

  .materials .section-transition {
    grid-column: 1;
  }
}

@media (max-width: 980px) {
  .life {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .life > img {
    grid-column: 1;
    min-height: min(72vw, 680px);
  }

  .life__copy {
    grid-column: 1;
    max-width: none;
    padding: clamp(70px, 10vw, 110px) var(--r5-gutter);
  }

  .life .visual-note {
    top: min(72vw, 650px);
    bottom: auto;
  }

  .readiness__grid,
  .faq,
  .contact {
    grid-template-columns: 1fr;
  }

  .readiness__grid {
    gap: clamp(54px, 8vw, 82px);
  }

  .faq .section-heading {
    position: static;
  }

  .contact {
    gap: clamp(54px, 8vw, 88px);
  }

  .product__intro {
    grid-template-columns: 1fr;
  }

  .product__intro .kicker,
  .product__intro h2,
  .product__intro > p:not(.kicker):not(.product__technical),
  .product__price,
  .product__technical,
  .product__actions,
  .product__intro::after {
    grid-column: 1;
    grid-row: auto;
  }

  .product__intro > p:not(.kicker):not(.product__technical) {
    max-width: 720px;
    margin-top: 30px;
  }

  .product__intro::after {
    margin-top: 48px;
  }

  .site-footer nav {
    grid-column: 1 / 6;
  }

  .site-footer__meta {
    grid-column: 6 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --r5-page: 20px;
    --r5-section-y: 88px;
  }

  body {
    overflow-x: hidden;
  }

  .section-heading h2,
  .product__intro h2,
  .materials__copy h2,
  .contact__intro h2 {
    max-width: 100%;
  }

  .hero__content {
    width: 100%;
  }

  .hero__facts {
    right: var(--r5-gutter);
    left: var(--r5-gutter);
  }

  .package-card,
  .package-card:nth-child(n) {
    display: flex;
    margin: 0;
  }

  .package-card figure,
  .package-card:nth-child(2) figure,
  .package-card:nth-child(3) figure {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .package-card__copy {
    min-height: 250px;
    padding: 25px 0 0;
  }

  .life > img {
    min-height: 460px;
  }

  .life .visual-note {
    top: 432px;
  }

  .readiness article img,
  .readiness article:last-child img {
    aspect-ratio: 4 / 3;
  }

  .product {
    padding-top: var(--r5-section-y);
  }

  .product::before {
    margin-bottom: 72px;
    padding-right: 128px;
  }

  .product__back {
    top: calc(var(--r5-section-y) - 18px);
    right: var(--r5-gutter);
    left: auto;
    min-height: 42px;
  }

  .product__actions {
    display: grid;
    align-items: stretch;
  }

  .product__intro::after {
    letter-spacing: 0.055em;
  }

  .gallery__main {
    aspect-ratio: 4 / 3;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .product--premium .gallery::after {
    line-height: 1.9;
  }

  .materials__grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 8px;
  }

  .materials__grid img,
  .materials__grid img:first-child,
  .materials__grid img:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .faq summary {
    min-height: 78px;
  }

  .faq details p {
    margin-right: 24px;
  }

  .lead-form__row {
    grid-template-columns: 1fr;
  }

  .lead-form input,
  .lead-form select,
  .lead-form textarea,
  .button,
  .text-link,
  .contact__channels a {
    min-height: 48px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer > div:first-child,
  .site-footer nav,
  .site-footer__meta {
    grid-column: 1;
  }

  .footer-wordmark {
    width: 100%;
  }

  .site-footer nav,
  .site-footer__meta {
    justify-content: flex-start;
    justify-self: stretch;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
