/* MODUL 101 — R6 clarity and geometry pass */

html {
  scroll-behavior: smooth !important;
}

/* Pseudo-elements were still content-box and widened mobile chapters by 128px. */
*::before,
*::after {
  box-sizing: border-box;
}

/* Width rules must not leave the intrinsic HTML height behind. */
img {
  height: auto;
}

.hero__image,
.package-card figure img,
.life > img,
.gallery__main img,
.gallery__thumbs img,
.materials__grid img {
  height: 100%;
}

/* The offer must be understandable from the first viewport. */
.hero h1 {
  max-width: 14ch;
  font-size: clamp(52px, 5.3vw, 84px);
  line-height: 0.94;
}

.hero__lead {
  max-width: 690px;
  line-height: 1.45;
}

.hero__facts span:first-child {
  color: #fff;
}

.packages .section-heading {
  max-width: 1040px;
}

/* Keep descriptions flexible while every package price shares one baseline. */
.package-card__copy {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.package-card__copy strong {
  align-self: end;
}

.package-card__copy > span {
  margin-top: 0;
}

/* Long Russian words must stay inside the narrow contact column. */
.contact__intro h2 {
  max-width: 100%;
  font-size: clamp(42px, 4.6vw, 74px);
  line-height: 0.98;
}

/* All package previews use the native 3:2 composition. */
@media (min-width: 1101px) {
  .package-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

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

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

  .package-card__copy {
    min-height: 285px;
  }
}

/* Interior comparison: equal columns, no 1024px attribute-height distortion. */
.readiness__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.readiness article img,
.readiness article:last-child img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.readiness article:hover img {
  transform: none;
}

/* Product images share one predictable gallery geometry. */
.gallery__main {
  aspect-ratio: 3 / 2;
}

/* The workshop story is a clean grid instead of six unrelated crops. */
.materials__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 12px;
}

.materials__grid img,
.materials__grid img:first-child,
.materials__grid img:nth-child(n) {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (max-width: 1100px) and (min-width: 721px) {
  .package-card,
  .package-card:nth-child(n) {
    align-items: start;
  }

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

  .package-card__copy {
    min-height: 0;
  }

  .materials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .life > img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
  }

  .life .visual-note {
    top: calc((100vw * 2 / 3) - 28px);
    bottom: auto;
  }
}

@media (max-width: 720px) {
  .hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 11.2vw, 52px);
    line-height: 0.95;
  }

  .hero__lead {
    max-width: 34ch;
    font-size: 17px;
  }

  .hero__facts {
    align-items: flex-end;
  }

  .hero__facts span:last-child {
    max-width: 16ch;
    text-align: right;
  }

  .package-card figure,
  .package-card:nth-child(2) figure,
  .package-card:nth-child(3) figure,
  .gallery__main,
  .readiness article img,
  .readiness article:last-child img,
  .materials__grid img,
  .materials__grid img:first-child,
  .materials__grid img:nth-child(n) {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

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

  .package-card__copy {
    min-height: 232px;
  }

  .life .visual-note {
    top: calc((100vw * 2 / 3) - 28px);
  }
}

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

/* Keep the primary comparison heading readable instead of breaking every few words. */
.packages .section-heading h2 {
  max-width: 18ch;
  font-size: clamp(48px, 5.5vw, 84px);
}

@media (max-width: 720px) {
  .packages .section-heading h2 {
    max-width: 100%;
    font-size: clamp(40px, 11vw, 50px);
  }
}

/* R7 — distinct package chapters and geometric phone wordmark */
.product {
  padding-top: 0;
}

.product::before {
  content: none;
  display: none;
}

.product__chapter {
  --chapter-ink: #faf8f3;
  --chapter-accent: #69b93f;
  --chapter-line: rgba(255, 255, 255, 0.2);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(34px, 6vw, 110px);
  min-height: clamp(250px, 22vw, 360px);
  margin-inline: calc(var(--r5-gutter) * -1);
  margin-bottom: clamp(72px, 8vw, 118px);
  padding: clamp(92px, 9vw, 142px) var(--r5-gutter) clamp(48px, 5vw, 76px);
  overflow: hidden;
  color: var(--chapter-ink);
  border-bottom: 5px solid var(--chapter-accent);
  background:
    linear-gradient(112deg, #10120f 0%, #20251e 58%, #121410 100%);
}

.product__chapter::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(64vw, 980px);
  aspect-ratio: 1;
  right: -18vw;
  top: -38vw;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--chapter-accent) 32%, transparent) 0%, transparent 68%);
}

.product__chapter::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.2;
  background:
    linear-gradient(90deg, transparent 0 49.9%, var(--chapter-line) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 0 69.8%, var(--chapter-line) 70%, transparent 70.2%);
  background-size: clamp(120px, 13vw, 220px) 100%, 100% clamp(88px, 8vw, 132px);
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
}

.product--premium .product__chapter {
  --chapter-accent: #f2c17e;
  --chapter-line: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(118deg, #49352b 0%, #76503a 48%, #b57f50 100%);
}

.product--autonomous .product__chapter {
  --chapter-accent: #7dcf55;
  --chapter-line: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(118deg, #111914 0%, #243327 52%, #354b39 100%);
}

.product__chapter-number {
  position: relative;
  z-index: 1;
  display: block;
  align-self: end;
  color: transparent;
  font-size: clamp(118px, 14vw, 226px);
  font-weight: 360;
  font-variant-numeric: tabular-nums;
  line-height: 0.68;
  letter-spacing: -0.11em;
  -webkit-text-stroke: clamp(1px, 0.1vw, 2px) var(--chapter-accent);
  text-shadow: 0 0 46px color-mix(in srgb, var(--chapter-accent) 18%, transparent);
}

.product__chapter-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 2px 0 4px clamp(24px, 3vw, 48px);
  border-left: 1px solid var(--chapter-line);
}

.product__chapter-copy > span {
  display: block;
  margin-bottom: clamp(12px, 1.6vw, 22px);
  color: var(--chapter-accent);
  font-size: 10px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.product__chapter-copy strong {
  display: block;
  max-width: 11ch;
  color: var(--chapter-ink);
  font-size: clamp(54px, 7vw, 116px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.product__chapter-copy em {
  display: block;
  max-width: 46ch;
  margin-top: clamp(20px, 2.5vw, 34px);
  color: color-mix(in srgb, var(--chapter-ink) 72%, transparent);
  font-size: clamp(14px, 1.15vw, 18px);
  font-style: normal;
  line-height: 1.45;
  letter-spacing: 0.015em;
}

.product__back,
.product--autonomous .product__back,
.product--autonomous .product__back:hover {
  top: clamp(24px, 3vw, 42px);
  right: var(--r5-gutter);
  min-height: 42px;
  color: rgba(255, 255, 255, 0.74);
  border-color: rgba(255, 255, 255, 0.42);
}

.product__back:hover,
.product--autonomous .product__back:hover {
  color: #fff;
  border-color: var(--chapter-accent, #69b93f);
  background: transparent;
}

.product:target .product__chapter-number {
  animation: r7-chapter-focus 900ms var(--r5-ease) both;
}

@keyframes r7-chapter-focus {
  from {
    opacity: 0.25;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The number is drawn from the same geometric stroke system as the MODUL 101 mark. */
.contact__phone {
  width: min(100%, 680px);
  margin-top: 48px;
  line-height: 0;
}

.contact__phone img,
.mobile-menu__phone img,
.site-footer__meta > a[href^="tel:"] img {
  width: 100%;
  height: auto;
}

.mobile-menu__phone {
  display: block;
  width: min(76vw, 330px);
  line-height: 0;
}

.site-footer__meta > a[href^="tel:"] {
  display: block;
  width: min(100%, 240px);
  margin-left: auto;
  line-height: 0;
}

@media (max-width: 720px) {
  .product__chapter {
    display: flex;
    align-items: flex-end;
    min-height: 320px;
    margin-bottom: 70px;
    padding: 104px var(--r5-gutter) 42px;
  }

  .product__chapter-number {
    position: absolute;
    right: 12px;
    bottom: 4px;
    opacity: 0.56;
    font-size: clamp(150px, 48vw, 200px);
    line-height: 0.72;
  }

  .product__chapter-copy {
    width: 100%;
    max-width: 330px;
    padding-left: 20px;
    border-left-width: 3px;
    border-left-color: var(--chapter-accent);
  }

  .product__chapter-copy > span {
    margin-bottom: 14px;
    font-size: 9px;
  }

  .product__chapter-copy strong {
    font-size: clamp(52px, 15vw, 70px);
    line-height: 0.86;
  }

  .product__chapter-copy em {
    max-width: 26ch;
    margin-top: 18px;
    font-size: 14px;
  }

  .product__back,
  .product--autonomous .product__back,
  .product--autonomous .product__back:hover {
    top: 20px;
    right: var(--r5-gutter);
  }

  .contact__phone {
    width: min(100%, 520px);
  }

  .site-footer__meta > a[href^="tel:"] {
    width: min(72vw, 260px);
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product:target .product__chapter-number {
    animation: none;
  }
}


/* R8 — compact lead form, MAX brand gradient and motion system */
.life__copy h2 {
  max-width: 11ch;
  font-size: clamp(50px, 4.7vw, 72px);
}

@media (max-width: 720px) {
  .life__copy h2 {
    max-width: 100%;
    font-size: 44px;
  }

  .product--autonomous .product__chapter-copy strong {
    font-size: clamp(44px, 12.4vw, 56px);
    letter-spacing: -0.075em;
  }
}

/* Compact, structured form: same fields, clearer hierarchy. */
.lead-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: clamp(26px, 3vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(23, 24, 20, 0.14);
  border-top: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(71, 26, 255, 0.07), transparent 34%),
    linear-gradient(145deg, #fff 0%, #f7f4ed 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.lead-form::before {
  content: none;
  display: none;
}

.lead-form::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #69b93f 0 34%, #00bfff 34% 50%, #471aff 68%, #9500ff 100%);
}

.lead-form > label:first-of-type,
.lead-form > .lead-form__row,
.lead-form > .lead-form__note {
  grid-column: 1 / -1;
}

.lead-form label {
  gap: 7px;
}

.lead-form input,
.lead-form select {
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid rgba(23, 24, 20, 0.16);
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: #69b93f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(105, 185, 63, 0.12);
}

.lead-form__row {
  gap: 15px;
}

.lead-form .button {
  width: 100%;
  min-height: 50px;
  padding-inline: 14px;
  font-size: 10px;
}

.button--max,
.lead-form .button--max {
  color: #fff;
  border: 0;
  background: linear-gradient(115deg, #00bfff 0%, #471aff 36%, #6e1aff 66%, #9500ff 100%);
  background-size: 170% 170%;
  box-shadow: 0 12px 26px rgba(71, 26, 255, 0.2);
  transition:
    transform 180ms ease,
    background-position 360ms ease,
    box-shadow 220ms ease;
}

.button--max:hover,
.lead-form .button--max:hover {
  color: #fff;
  background: linear-gradient(115deg, #00bfff 0%, #471aff 36%, #6e1aff 66%, #9500ff 100%);
  background-size: 170% 170%;
  background-position: 100% 50%;
  box-shadow: 0 16px 34px rgba(71, 26, 255, 0.3);
}

.lead-form__note {
  max-width: 58ch;
  padding-top: 2px;
  line-height: 1.45;
}

@media (max-width: 680px) {
  .lead-form {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 25px 20px 24px;
  }

  .lead-form > label,
  .lead-form > .lead-form__row,
  .lead-form > .button,
  .lead-form > .lead-form__note {
    grid-column: 1;
  }

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

/* Scroll narrative: progressive enhancement, no library and no hidden content without JS. */
.scroll-progress {
  position: fixed;
  z-index: 220;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #69b93f, #d99a55, #69b93f);
  box-shadow: 0 0 14px rgba(105, 185, 63, 0.42);
  will-change: transform;
}

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity 700ms var(--r5-ease),
    transform 800ms var(--r5-ease),
    clip-path 900ms var(--r5-ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
  animation: none !important;
}

.reveal-item.reveal-left {
  transform: translate3d(0, 26px, 0);
  clip-path: inset(0 8% 0 0);
}

.reveal-item.reveal-right {
  transform: translate3d(0, 26px, 0);
  clip-path: inset(0 0 0 8%);
}

.reveal-item.reveal-image {
  transform: translate3d(0, 18px, 0);
  clip-path: inset(0 0 10% 0);
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: none;
  clip-path: inset(0);
  will-change: auto;
}

.package-card.reveal-item.is-revealed:hover,
.readiness article.reveal-item.is-revealed:hover {
  transform: translateY(-5px);
}

.materials__grid img.reveal-item.is-revealed:hover {
  transform: scale(0.992);
}

.faq details.reveal-item.is-revealed summary span {
  transition: transform 220ms var(--r5-ease);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
  }

  .reveal-item,
  .reveal-item.reveal-left,
  .reveal-item.reveal-right,
  .reveal-item.reveal-image {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}


/* Base chapter surface continues the green identity without tinting content heavily. */
.product--base {
  background:
    radial-gradient(circle at 92% 5%, rgba(105, 185, 63, 0.13), transparent 28%),
    linear-gradient(180deg, #f8faf5 0%, #edf3e8 100%);
}


/* Autonomous chapter: mountain slate, river graphite and sunset copper. */
.product--autonomous {
  color: #f7f4ed;
  background:
    radial-gradient(circle at 82% 4%, rgba(216, 165, 95, 0.12), transparent 26%),
    linear-gradient(180deg, #2c3940 0%, #1b252a 100%);
}

.product--autonomous .product__chapter {
  --chapter-accent: #d8a55f;
  --chapter-line: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(118deg, #13191d 0%, #26343b 54%, #435760 100%);
}

.product--autonomous .gallery__main {
  background: #253138;
}

.product--autonomous .gallery__thumbs button.is-active {
  border-color: #d8a55f;
}



/* R13 contact card, phone system and chapter refinement */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(calc(-100% - 24px));
  padding: 12px 16px;
  color: #fff;
  background: #111310;
  border: 2px solid #69b93f;
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: none;
}

#main-content:focus {
  outline: none;
}

.brand-phone {
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(8px, 1vw, 16px);
  width: max-content;
  max-width: 100%;
  color: #faf8f3;
  font-variant-numeric: tabular-nums;
  font-weight: 520;
  line-height: 0.86;
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.brand-phone__group {
  display: inline-flex;
  align-items: center;
}

.brand-phone__separator {
  align-self: stretch;
  flex: 0 0 clamp(2px, 0.22vw, 4px);
  min-height: 0.86em;
  background: #69b93f;
  border-radius: 99px;
  box-shadow: 0 0 14px rgba(105, 185, 63, 0.4);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand-phone:hover .brand-phone__separator {
  transform: scaleY(1.08);
  box-shadow: 0 0 20px rgba(105, 185, 63, 0.68);
}

.brand-phone--contact {
  margin-top: 48px;
  font-size: clamp(34px, 4.25vw, 68px);
}

.brand-phone--menu {
  margin-top: 30px;
  font-size: clamp(22px, 5.7vw, 34px);
}

.brand-phone--footer {
  margin-left: auto;
  font-size: clamp(16px, 1.55vw, 24px);
}

.contact__phone,
.mobile-menu__phone,
.site-footer__meta > a[href^="tel:"] {
  width: max-content;
  line-height: 0.86;
}

.lead-form {
  --form-pad: clamp(26px, 3vw, 42px);
  border: 1px solid rgba(25, 31, 37, 0.16);
  border-top: 0;
  border-radius: 30px 8px 30px 8px;
  padding: var(--form-pad);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 158, 217, 0.13), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(105, 185, 63, 0.09), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f3f5f2 100%);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.lead-form::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  width: 220px;
  height: 220px;
  right: -120px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.2), transparent 68%);
  animation: r13-contact-breathe 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.lead-form::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
  background: none;
  pointer-events: none;
}

.lead-form > * {
  position: relative;
  z-index: 1;
}

.lead-form__telegram-rail {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  grid-column: 1 / -1;
  min-height: 78px;
  margin: calc(var(--form-pad) * -1) calc(var(--form-pad) * -1) 12px;
  padding: 15px var(--form-pad);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(118deg, #168ac5 0%, #229ed9 48%, #31aeea 100%);
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.24);
}

.lead-form__telegram-rail::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40%;
  bottom: -40%;
  width: 26%;
  left: -34%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: r13-telegram-sheen 5.2s ease-in-out infinite;
}

.lead-form__telegram-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  font-size: 23px;
  line-height: 1;
  transform: rotate(-8deg);
}

.lead-form__telegram-copy {
  display: grid;
  gap: 2px;
}

.lead-form__telegram-copy strong {
  letter-spacing: 0.04em;
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.lead-form__telegram-copy small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.lead-form__telegram-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead-form__telegram-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7bd64f;
  box-shadow: 0 0 0 4px rgba(123, 214, 79, 0.17);
  animation: r13-status-pulse 2.4s ease-in-out infinite;
}

.lead-form label {
  color: #4d554f;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select {
  border-color: rgba(23, 29, 33, 0.14);
  border-radius: 12px 4px 12px 4px;
  background: rgba(255, 255, 255, 0.9);
}

.lead-form input:hover,
.lead-form select:hover {
  border-color: rgba(34, 158, 217, 0.42);
}

.lead-form .button {
  position: relative;
  overflow: hidden;
  border-radius: 12px 4px 12px 4px;
}

.lead-form .button--green {
  background: linear-gradient(120deg, #5aa932, #75c84a);
  box-shadow: 0 12px 26px rgba(105, 185, 63, 0.2);
}

.button--telegram,
.lead-form .button--telegram {
  grid-column: 1 / -1;
  color: #fff;
  border: 0;
  background: linear-gradient(118deg, #168ac5, #229ed9 54%, #31aeea);
  box-shadow: 0 14px 30px rgba(34, 158, 217, 0.25);
  transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.button--telegram::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 24%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transition: left 520ms ease;
}

.button--telegram:hover {
  color: #fff;
  filter: saturate(1.08);
  box-shadow: 0 18px 38px rgba(34, 158, 217, 0.36);
}

.button--telegram:hover::before {
  left: 116%;
}

.lead-form__error {
  display: block;
  margin: 2px 0 0;
  color: #a53f2f;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.lead-form__error[hidden] {
  display: none;
}

.lead-form input[aria-invalid="true"],
.lead-form input[aria-invalid="true"]:focus {
  border-color: #a53f2f;
  background: #fff7f5;
  box-shadow: 0 0 0 3px rgba(165, 63, 47, 0.14);
}

.product__chapter {
  grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 88px);
  min-height: clamp(280px, 22vw, 360px);
  padding-top: clamp(72px, 7vw, 110px);
  padding-bottom: clamp(54px, 5vw, 78px);
  border-bottom-width: 3px;
}

.product__chapter-number {
  min-width: 0;
  padding: 0.08em 0.12em 0.08em 0.04em;
  color: transparent;
  font-size: clamp(110px, 12vw, 192px);
  font-weight: 350;
  line-height: 0.94;
  letter-spacing: -0.06em;
  overflow: visible;
}

.product__chapter-copy {
  padding-top: clamp(16px, 2vw, 28px);
  padding-bottom: clamp(12px, 1.5vw, 22px);
}

.product__chapter-copy strong {
  line-height: 0.94;
}

.section-transition {
  --transition-accent: #69b93f;
  display: grid;
  grid-template-columns: minmax(30px, 1fr) minmax(0, 46ch) minmax(30px, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  max-width: 980px;
  margin-inline: auto;
  padding-left: 0;
  text-align: center;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.55;
}

.section-transition::before,
.section-transition::after {
  content: "";
  position: static;
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--transition-accent));
}

.section-transition::after {
  transform: scaleX(-1);
}

.product--premium .section-transition {
  --transition-accent: #d99a55;
}

.product--autonomous .section-transition {
  --transition-accent: #d8a55f;
}

@keyframes r13-telegram-sheen {
  0%, 62% { left: -34%; }
  84%, 100% { left: 112%; }
}

@keyframes r13-contact-breathe {
  from { transform: translate3d(0, 0, 0) scale(0.94); opacity: 0.55; }
  to { transform: translate3d(-18px, -12px, 0) scale(1.08); opacity: 1; }
}

@keyframes r13-status-pulse {
  0%, 100% { transform: scale(0.86); opacity: 0.72; }
  50% { transform: scale(1); opacity: 1; }
}

@media (max-width: 720px) {
  .brand-phone--contact {
    margin-top: 38px;
    font-size: clamp(27px, 8.2vw, 40px);
  }

  .brand-phone--footer {
    margin-left: 0;
    font-size: clamp(15px, 5vw, 21px);
  }

  .brand-phone {
    gap: clamp(6px, 2.4vw, 11px);
  }

  .lead-form {
    --form-pad: 20px;
    border-radius: 24px 6px 24px 6px;
  }

  .lead-form__telegram-rail {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 84px;
  }

  .lead-form__telegram-status {
    display: none;
  }

  .lead-form__telegram-copy small {
    font-size: 10px;
  }

  .product__chapter {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
    min-height: 0;
    padding: 86px var(--r5-gutter) 42px;
  }

  .product__chapter-number {
    position: relative;
    right: auto;
    bottom: auto;
    width: max-content;
    padding: 0.08em 0.14em 0.08em 0.04em;
    opacity: 0.72;
    font-size: clamp(88px, 28vw, 118px);
    line-height: 0.94;
  }

  .product__chapter-copy {
    width: 100%;
    max-width: none;
    padding: 20px 0 0;
    border-top: 1px solid var(--chapter-line);
    border-left: 0;
  }

  .product__chapter-copy strong,
  .product--autonomous .product__chapter-copy strong {
    font-size: clamp(46px, 13vw, 62px);
    line-height: 0.96;
  }

  .section-transition {
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    gap: 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-form::before,
  .lead-form__telegram-rail::after,
  .lead-form__telegram-status::before {
    animation: none;
  }

  .brand-phone__separator,
  .button--telegram,
  .button--telegram::before {
    transition: none;
  }
}


/* R13.1 validation and footer phone hotfix */
.site-footer__meta > a.brand-phone--footer {
  display: inline-flex;
}


/* R13.2 tablet lead-form flow */
.lead-form .button {
  white-space: nowrap;
}

@media (min-width: 681px) and (max-width: 1180px) {
  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-form > label,
  .lead-form > .lead-form__row,
  .lead-form > .button,
  .lead-form > .lead-form__note {
    grid-column: 1 / -1;
  }

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


/* R13.3 wide lead-form balance */
@media (min-width: 1181px) {
  .lead-form {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}


/* R13.4 wide lead-form field balance */
@media (min-width: 1181px) {
  .lead-form__row {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }
}

/* Required consent for the M15 lead form */
.lead-form__consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 2px 0 3px;
}

.lead-form label.lead-form__consent {
  color: #626963;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.48;
  letter-spacing: 0;
  text-transform: none;
}

.lead-form__consent input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #69b93f;
}

.lead-form__consent a {
  color: #355f25;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* MODUL 101 unified logo system */
.brandmark__reverse,
.brandmark__primary {
  width: 100%;
}

.brandmark__mark {
  display: none;
}

@media (max-width: 680px) {
  .brandmark {
    width: 54px;
    height: 44px;
  }

  .brandmark__reverse,
  .brandmark__primary {
    display: none;
  }

  .brandmark__mark {
    display: block;
    width: 54px;
  }

  .brandmark__mark--reverse {
    opacity: 1;
  }

  .brandmark__mark--primary {
    opacity: 0;
  }

  .site-header.is-scrolled .brandmark__mark--reverse {
    opacity: 0;
  }

  .site-header.is-scrolled .brandmark__mark--primary {
    opacity: 1;
  }

  .site-header.is-open .brandmark__mark--reverse {
    opacity: 1;
  }

  .site-header.is-open .brandmark__mark--primary {
    opacity: 0;
  }
}

/* Reference lockup proportions: 2026-09-04_00-56-46.png */
.brandmark {
  width: clamp(148px, 10.8vw, 164px);
  height: 48px;
}

.brandmark img { max-height: 45px; }

@media (max-width: 680px) {
  .brandmark { width: 43px; height: 44px; }
  .brandmark__mark { width: 43px; max-height: 42px; }
}

/* Keep narrow contact layouts inside the viewport. */
@media (max-width: 980px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact > * { min-width: 0; }
}
