:root {
  --bg-dark: rgb(26, 12, 0);
  --cream: rgb(253, 255, 214);
  --cream-soft: rgb(252, 253, 212);
  --peach: rgb(252, 239, 223);
  --orange: rgb(255, 188, 106);
  --orange-bright: rgb(255, 89, 0);
  --card-dark: rgb(47, 30, 18);
  --white: rgb(255, 255, 255);
  --placeholder: rgb(180, 180, 180);
  --text-dark: rgb(54, 54, 69);
  --max-width: 1680px;
  --content-width: 1040px;
  --header-width: 1302px;
  --font-onest: 'Onest', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-onest);
  background: var(--bg-dark);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.landing {
  overflow-x: clip;
}

.landing a[href],
.landing button,
.download-overlay a[href],
.download-overlay button {
  cursor: pointer;
}

.container {
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

.container--header {
  width: min(100% - 48px, var(--header-width));
  margin-inline: auto;
}

.container--chat {
  width: min(100% - 48px, 1152px);
  margin-inline: auto;
}

/* Placeholders */

.img-placeholder {
  background: var(--placeholder);
  display: block;
  width: 100%;
}

.img-placeholder--round {
  border-radius: 50%;
}

.img-placeholder--hero {
  border-radius: 0;
}

.img-placeholder--phone {
  border-radius: 50px;
}

.img-placeholder--avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Buttons */

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 197px;
  height: 48px;
  padding: 10px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #f79037 0%, #fe5c03 100%);
  font-family: var(--font-onest);
  font-size: 19px;
  font-weight: 700;
  line-height: 23px;
  color: #FDFFD6;
  text-align: center;
  text-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-download:hover {
  opacity: 0.85;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgb(166, 166, 166);
  border-radius: 6px;
  background: var(--bg-dark);
  color: var(--white);
  font-size: 12px;
  line-height: 1.2;
  min-height: 40px;
}

.store-btn__label {
  display: block;
  font-size: 9px;
  opacity: 0.9;
}

.store-btn__name {
  display: block;
  font-size: 16px;
  /* line-height: 12px; */
  font-weight: 500;
}

.store-btn__icon {
  display: block;
  width: 20px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.store-btn__icon--play {
  width: 21px;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* линия гор на Object.png ≈ середина слоя (верх PNG прозрачный) */
  --hero-mountains-line: 48%;
}

.hero__layout {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  pointer-events: none;
}

.hero__layout a {
  pointer-events: auto;
}

.hero__header {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  flex-shrink: 0;
}

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.hero__nav a {
  white-space: nowrap;
}

.hero__nav a:hover {
  opacity: 0.8;
}

.hero__header-btn {
  justify-self: end;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-dark);
}

.hero__media-stack {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: max(100%, calc(100vh * 5034 / 2652));
  aspect-ratio: 5034 / 2652;
}

.hero__media-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  z-index: 0;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
  opacity: 0.2;
  mix-blend-mode: overlay;
}

.hero__media-front {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 3;
}

/* текст в зоне над горами, прижат к линии гор */
.hero__scene {
  position: absolute;
  inset: 0 0 var(--hero-mountains-line) 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  padding-inline: 24px;
  pointer-events: none;
  max-width: 100%;
}

.hero__logo {
  display: block;
  width: 88px;
  height: auto;
  aspect-ratio: 88 / 84;
  flex-shrink: 0;
}

.hero__logo--header {
  display: none;
}

.hero__title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  max-width: 100%;
  font-family: var(--font-onest);
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgb(253, 255, 214);
  text-align: center;
  text-shadow: 0 4px 64px rgba(0, 0, 0, 0.25);
}

.hero__title-line {
  display: block;
  line-height: 0.9;
  white-space: nowrap;
  max-width: 100%;
}

.hero__stores {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: auto;
  padding-bottom: 48px;
  flex-shrink: 0;
  pointer-events: auto;
}

/* Intro */

.intro {
  padding: 106px 0 106px;
}

.intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 64px; */
}

.intro__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 64px;
}

.intro__title {
  margin: 0;
  max-width: 893px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--peach);
  text-align: center;
}

.intro__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 5vw, 60px);
  width: 100%;
  align-self: stretch;
  margin-bottom: 42px;
}

.intro__image {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 980 / 1488;
  border-radius: clamp(24px, 4vw, 50px);
  object-fit: cover;
}

.intro__image.img-placeholder,
.features__phone.img-placeholder {
  border-radius: 50px;
}

.intro__desc {
  margin: 0;
  max-width: 627px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--peach);
  text-align: center;
}

/* Chat section */

.chat-section {
  position: relative;
  padding-top: 80px;
  padding-bottom: 42px;
  overflow: hidden;
}

.chat-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 331fr) minmax(0, 709fr);
  gap: clamp(24px, 8vw, 118px);
  align-items: stretch;
}

.chat-section__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 100%;
  padding-bottom: clamp(32px, 10vw, 108px);
}

.chat-section__intro {
  display: flex;
  flex-direction: column;
}

.chat-section__label {
  margin: 0 0 19px;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--orange);
}

.chat-section__desc {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--peach);
  max-width: 320px;
}

.chat-section__items {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
}

.chat-section__square {
  width: clamp(88px, 10vw, 127px);
  height: clamp(88px, 10vw, 127px);
  border-radius: clamp(20px, 2.5vw, 28px);
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.chat-section__square-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-section__square--logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f6943b 0%, #fe5a01 100%);
}

.chat-section__square--logo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, #feffd6 0%, #ff5901 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.chat-section__square-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(56px, 7vw, 84px);
  height: clamp(54px, 6.5vw, 80px);
  object-fit: contain;
}

.chat-section__bubbles-wrap {
  position: relative;
  min-width: 0;
}

.chat-section__bubbles-glow {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 662px;
  height: 518px;
  max-width: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

.chat-section__bubbles {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* gap: 16px; */
  width: 100%;
  container-type: inline-size;
}

.chat-bubble {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  align-self: flex-start;
}

.chat-bubble--right {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.chat-bubble__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}

.chat-bubble__body {
  position: relative;
  max-width: 327px;
  /* 310 / 709 */
  /* padding: 0 9px 12px; */
}

.chat-section__bubbles>.chat-bubble:nth-child(1) .chat-bubble__body {
  transform: rotate(-2.5deg);
  transform-origin: left bottom;
}

.chat-section__bubbles>.chat-bubble:nth-child(2) .chat-bubble__body {
  transform: rotate(3.58deg);
  transform-origin: right bottom;
}

.chat-section__bubbles>.chat-bubble:nth-child(3) .chat-bubble__body {
  transform: rotate(-1.47deg);
  transform-origin: left bottom;
}

.chat-section__bubbles>.chat-bubble:nth-child(4) {
  transform: translateY(-70px);
}

.chat-section__bubbles>.chat-bubble:nth-child(4) .chat-bubble__body {
  transform: rotate(3.79deg);
  transform-origin: right bottom;
}

.chat-bubble__message {
  border-radius: 20px;
  padding: 18px 26px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.chat-bubble:not(.chat-bubble--right) .chat-bubble__message {
  background: #ff5900;
  color: var(--white);
}

.chat-bubble--right .chat-bubble__message {
  background: #fcefdf;
  color: var(--bg-dark);
}

.chat-bubble__tail {
  position: absolute;
  bottom: -4px;
  width: 22px;
  height: 20px;
  display: block;
  pointer-events: none;
  -webkit-mask: url('images/chat/Tail.svg') center / contain no-repeat;
  mask: url('images/chat/Tail.svg') center / contain no-repeat;
}

.chat-bubble:not(.chat-bubble--right) .chat-bubble__tail {
  background-color: #ff5900;
}

.chat-bubble--right .chat-bubble__tail {
  background-color: #fcefdf;
}

.chat-bubble__tail--left {
  left: -10px;
}

.chat-bubble__tail--right {
  right: -10px;
  transform: scaleX(-1);
}

.chat-bubble__media {
  width: max(30.46cqw, 124.08px);
  min-width: 124.08px;
  overflow: visible;
}

.chat-bubble--right .chat-bubble__media {
  background: transparent;
}

.chat-bubble__media-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 207 / 234;
  object-fit: contain;
}

@media (max-width: 992px) {

  .intro {
    padding-bottom: 61px;
  }

  .intro__title {
    font-size: 42px;
  }

  .intro__head {
    margin-bottom: 56px;
  }


  .intro__gallery {
    margin-bottom: 36px;
  }

  .chat-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .chat-section__inner {
    grid-template-columns: minmax(0, 300fr) minmax(0, 640fr);
    gap: clamp(16px, 3vw, 40px);
  }

  .chat-section__content {
    padding-bottom: clamp(20px, 5vw, 48px);
  }

  .chat-section__desc {
    max-width: 100%;
  }

  .chat-section__square {
    width: clamp(80px, 9vw, 110px);
    height: clamp(80px, 9vw, 110px);
  }

  .chat-section__square-logo {
    width: clamp(50px, 6vw, 72px);
    height: clamp(48px, 5.5vw, 68px);
  }

  .chat-section__bubbles-glow {
    width: min(580px, 105%);
    height: auto;
    aspect-ratio: 662 / 518;
  }

  .chat-section__bubbles {
    gap: 10px;
  }

  .chat-bubble__avatar {
    width: 34px;
    height: 34px;
  }

  .chat-bubble__body {
    max-width: min(280px, 58cqw);
  }

  .chat-bubble__message {
    font-size: clamp(14px, 1.9cqw, 17px);
    padding: 12px 18px;
    border-radius: 16px;
  }

  .chat-section__bubbles>.chat-bubble:nth-child(4) {
    transform: translateY(0);
  }
}

/* Features */

.features {
  overflow: visible;
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
}

.features--pinned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 100vh;
  z-index: 20;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.features__pin-spacer {
  display: block;
  width: 100%;
  pointer-events: none;
}

.features__inner {
  display: grid;
  grid-template-columns: minmax(0, 724fr) minmax(0, 420fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 48px);
}

@media (max-width: 920px) {
  .features__inner {
    grid-template-columns: minmax(0, 724fr) minmax(0, 600fr);
  }

  .intro {
    padding-bottom: 122px;
  }

  .chat-section {
    padding-top: 144px;
  }

  .features__visual {
    transform: none;
    margin-inline: auto;
  }
}

.features__visual-wrap {
  display: contents;
}

.features__nav {
  display: none;
}

.features__visual {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 724px;
  aspect-ratio: 724 / 856;
  justify-self: center;
  overflow: visible;
}

@media (min-width: 993px) {
  .features__visual {
    transform: translateX(-110px);
  }
}

.features__visual-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features__phone,
.features__screen-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% * 361 / 724);
  height: calc(100% * 739 / 856);
}

.features__phone {
  overflow: hidden;
  z-index: 1;
}

.features__screen-stage {
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}

.features__screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.features__screen.is-active {
  opacity: 1;
}

/* та же высота, что у screen1/2; ширина выходит за рамку — выступы слева/справа */
.features__screen--wide {
  height: 100%;
  width: auto;
  max-width: none;
  aspect-ratio: 526 / 752;
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% - 12px), -50%);
  object-fit: contain;
  object-position: center;
}

.features__content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  width: 100%;
  min-width: 0;
  max-width: 420px;
  justify-self: end;
}

.features__icon {
  width: 127px;
  height: 127px;
  border-radius: 28px;
  flex-shrink: 0;
}

.features__badge {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
}

.features__badge-arrow {
  font-size: 22px;
  line-height: 1;
}

.features__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.feature-card {
  --feature-card-surface: color-mix(in srgb, var(--orange) 16%, var(--bg-dark));
  appearance: none;
  font-family: inherit;
  background: transparent;
  cursor: pointer;
  border: 3px solid var(--feature-card-surface);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 35px);
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.3s ease;
}

.feature-card:hover:not(.feature-card--active) {
  background: color-mix(in srgb, var(--orange) 10%, var(--bg-dark));
  border-color: color-mix(in srgb, var(--orange) 35%, var(--bg-dark));
}

.feature-card--active {
  background: var(--feature-card-surface);
  border-color: var(--feature-card-surface);
  transform: translateX(clamp(-32px, -8vw, -64px));
}

.feature-card__text {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--orange);
}

@media (max-width: 920px) {

  .features__visual-bg {
    transform: scale(1.15);
    transform-origin: center center;
  }

  .features__phone,
  .features__screen-stage {
    width: calc(100% * 361 / 724 * 1.40);
    height: calc(100% * 739 / 856 * 1.40);
  }
}

/* Offer / Interests */

.offer {
  padding: 0 0 80px;
}

.offer__card {
  position: relative;
  background: var(--card-dark);
  border-radius: clamp(32px, 6cqi, 60px);
  padding: clamp(36px, 6cqi, 64px);
  padding-right: 0;
  container-type: inline-size;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  --offer-img-width: max(calc(553.75px * (768px - 48px) / (1152px - 48px)),
      min(553.75px, calc(553.75px * (100vw - 48px) / (1152px - 48px))));
}

.offer__content,
.offer__visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.offer__content {
  flex: 0 1 57%;
  /* width: 70%; */
  /* max-width: 70cqi; */
  min-width: 0;
  padding-right: clamp(16px, 2cqi, 32px);
}

.offer__title {
  margin: 0 0 clamp(12px, 2cqi, 19px);
  font-size: clamp(22px, 4.8cqi, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--orange);
}

.offer__title-phrase {
  white-space: nowrap;
}

.offer__desc {
  margin: 0 0 clamp(20px, 3.5cqi, 32px);
  max-width: min(449px, 100%);
  font-size: clamp(13px, 1.6cqi, 15px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--peach);
}

.offer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.5cqi, 12px);
  margin-bottom: clamp(28px, 5.5cqi, 64px);
}

.offer__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  padding: clamp(8px, 1.2cqi, 10px) clamp(12px, 2cqi, 20px);
  background: rgba(255, 188, 106, 0.2);
  border-radius: 15px;
  font-size: clamp(13px, 1.6cqi, 15px);
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}

.offer__tag-icon {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.offer__visual {
  position: relative;
  flex: 1 1 30%;
  width: 30%;
  min-width: 0;
  align-self: stretch;
  min-height: calc(var(--offer-img-width) * 418 / 553.75);
  overflow: visible;
  pointer-events: none;
}

.offer__visual-img {
  position: absolute;
  right: calc(-45px * var(--offer-img-width) / 553.75px);
  top: 50%;
  z-index: 2;
  display: block;
  width: var(--offer-img-width);
  max-width: none;
  height: auto;
  aspect-ratio: 553.75 / 418;
  object-fit: contain;
  transform: translateY(-50%);
  transform-origin: center center;
}

/* Footer */

.landing-footer .store-btn__name {
  line-height: 12px;
}

.landing-footer {
  padding: 14px 0;
  background: linear-gradient(90deg, #fcefdf 0%, #fece94 100%);
  color: var(--bg-dark);
}

.container--footer {
  width: auto
}

.landing-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 32px;
  row-gap: 0;
}

.landing-footer__brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-footer__logo {
  width: 42px;
  height: 40px;
  flex-shrink: 0;
}

.landing-footer__logo-img {
  display: block;
  width: 42px;
  height: 40px;
  object-fit: contain;
}

.landing-footer__copy {
  font-size: 15px;
  font-weight: 700;
  color: var(--bg-dark);
}

.landing-footer__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 32px;
  row-gap: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--bg-dark);
}

.landing-footer__links a:hover {
  color: var(--orange-bright);
}

.landing-footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.landing-footer__support {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 16px;
  min-height: 40px;
  border: 1px solid rgb(166, 166, 166);
  border-radius: 6px;
  background: var(--bg-dark);
  text-align: center;
}

.landing-footer__support-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--white);
  opacity: 0.9;
}

.landing-footer__support-email {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);

  line-height: 10px;
}

.landing-footer__support-email:hover {
  color: var(--orange);
}

/* Responsive */

@media (max-width: 1100px) {

  .hero__scene {
    gap: 32px;
    padding-inline: 20px;
  }

  .hero__logo {
    width: 72px;
  }

  .hero__title {
    font-size: 72px;
  }
}

@media (max-width: 768px) {
  .hero__nav {
    display: none;
  }

  .container {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .container--wide {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .container--header {
    width: min(calc(100% - 32px), var(--header-width));
  }

  .container--chat {
    width: min(calc(100% - 32px), 1152px);
  }

  .container--footer {
    width: min(calc(100% - 32px), 100%);
    margin-inline: auto;
  }

  .hero__scene {
    padding-inline: 16px;
  }

  .intro {
    padding: 72px 0 0 0;
    margin-bottom: 50px;
  }

  .features {
    min-height: auto;
    align-items: flex-start;
    padding: 48px 0 64px;
  }

  .features {
    overflow-x: clip;
    padding-bottom: 0px;
  }

  .features .container--chat {
    width: min(calc(100% - 32px), 1152px);
    max-width: none;
  }

  .features__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 24px;
  }

  .features__visual-wrap {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 12px;
  }

  .features__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    z-index: 5;
    appearance: none;
    font: inherit;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 10px;
    border: none;
    border-radius: 50%;
    background: rgb(54, 34, 13);
    color: rgb(255, 188, 106);
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
  }

  .features__nav:hover {
    opacity: 0.85;
  }

  .features__nav--prev {
    left: 0;
    right: auto;
  }

  .features__nav--next {
    right: 0;
    left: auto;
  }

  .features__nav--prev .features__nav-icon {
    transform: scaleX(-1);
  }

  .features__nav-icon {
    display: block;
    width: 11px;
    height: 19px;
    flex-shrink: 0;
  }

  .features__visual {
    position: relative;
    left: auto;
    width: 420px;
    min-width: 420px;
    max-width: 420px;
    flex-shrink: 0;
    margin-inline: auto;
    transform: none;
    overflow: visible;
  }

  .features__phone,
  .features__screen-stage {
    width: calc(100% * 361 / 724 * 1.28);
    height: calc(100% * 739 / 856 * 1.28);
  }

  .features__visual-bg {
    transform: scale(1.22);
    transform-origin: center center;
  }

  .features__content {
    max-width: none;
    width: 100%;
    align-self: stretch;
    align-items: stretch;
    overflow: visible;
    gap: 24px;
    margin-top: 16px;
  }

  .features__cards {
    flex-direction: row;
    align-items: stretch;
    align-self: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

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

  .feature-card {
    flex: 0 0 calc((100% - 24px) / 2.2);
    width: calc((100% - 24px) / 2.2);
    min-width: calc((100% - 24px) / 2.2);
    scroll-snap-align: start;
  }

  .features__content>.btn-download {
    align-self: center;
  }

  .feature-card--active {
    transform: none;
  }

  .chat-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .chat-section__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .chat-section__content {
    display: contents;
    padding-bottom: 0;
  }

  .chat-section__intro {
    order: 1;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .chat-section__desc {
    margin-inline: auto;
  }

  .chat-section__bubbles-wrap {
    order: 2;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  .chat-section__items {
    order: 3;
    justify-content: center;
    width: 100%;
  }

  .chat-section__square {
    width: 110px;
    height: 110px;
    min-width: 110px;
    flex-shrink: 0;
    border-radius: 24px;
  }

  .chat-section__square-logo {
    width: 72px;
    height: 68px;
  }

  .offer .container--chat {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .offer {
    padding-bottom: 0;
  }

  .offer__card {
    flex-direction: column-reverse;
    align-items: stretch;
    border-radius: 0;
    padding-block: clamp(32px, 6cqi, 48px);
    padding-inline: 16px;
    padding-top: 10px;
    --offer-img-width: min(450px, calc(100vw + 68px));
  }

  .offer__content {
    /* display: contents; */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 0;
    margin-top: -28px;
  }

  .offer__visual {
    order: 1;
    flex: none;
    width: calc(100% + 32px);
    margin-inline: -16px;
    min-height: auto;
    margin-top: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .offer__title {
    order: 2;
    text-align: center;
  }

  .offer__desc {
    order: 3;
    text-align: center;
    margin-inline: auto;
  }

  .offer__tags {
    order: 4;
    justify-content: center;
    margin-bottom: 56px;
  }

  .offer__card .btn-download {
    order: 5;
    align-self: center;
  }

  .offer__visual-img {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-inline: auto;
    width: var(--offer-img-width);
    max-width: none;
    flex-shrink: 0;
  }

  .landing-footer__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    text-align: center;
    row-gap: 0;
    column-gap: 0;
  }

  .landing-footer__brand,
  .landing-footer__links {
    margin-bottom: 12px;
  }

  .landing-footer__brand {
    justify-content: center;
  }

  .landing-footer__links {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .landing-footer__links a:not(:last-child) {
    margin-bottom: 12px;
  }

  .landing-footer__actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero__title {
    font-size: 48px;
  }

  /* .hero__scene {
    gap: 24px;
    padding-inline: 16px;
  }

  .hero__logo {
    width: 56px;
  }



  .hero__title-line {
    white-space: normal;
    text-wrap: balance;
  }

  .hero__header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 24px;
  }

  .hero__nav {
    gap: 24px;
    font-size: 16px;
  }

  .hero__header-btn {
    justify-self: start;
  }

  .hero__stores {
    padding-bottom: 32px;
  }

  .hero__stores {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__stores .store-btn {
    justify-content: center;
  } */

  .offer__card {
    padding: 32px 16px;
    border-radius: 0;
    padding-bottom: 72px;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 683px;
    height: 683px;
  }

  .hero__layout {
    min-height: 0;
    height: 100%;
  }

  .hero__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
  }

  .hero__logo--header {
    display: block;
    width: 56px;
  }

  .hero__logo--scene {
    display: none;
  }

  .hero__scene {
    gap: 24px;
    padding-inline: 16px;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__title-line {
    white-space: normal;
    text-wrap: balance;
  }

  .hero__media-stack {
    width: max(100%, calc(683px * 5034 / 2652));
  }

  .hero__stores {
    padding-bottom: 32px;
  }

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

  .features__nav--prev {
    left: -12px;
  }

  .features__nav--next {
    right: -12px;
  }

  .feature-card {
    flex: 0 0 calc((100% - 12px) / 1.2);
    width: calc((100% - 12px) / 1.2);
    min-width: calc((100% - 12px) / 1.2);
  }
}

@media (max-width: 450px) {
  .hero__title-line--split .hero__title-word {
    display: block;
  }
}

/* Download overlay */

body.download-overlay-open {
  overflow: hidden;
}

.download-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.download-overlay[hidden] {
  display: none;
}

.download-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 12, 0, 0.82);
  backdrop-filter: blur(6px);
}

.download-overlay__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: min(100%, 420px);
  padding: 40px 32px 32px;
  border-radius: 28px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 188, 106, 0.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.download-overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.download-overlay__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.download-overlay__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--orange);
  text-align: center;
}

.download-overlay__items {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.download-overlay__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 480px) {
  .download-overlay__dialog {
    padding: 36px 20px 24px;
    gap: 24px;
  }

  .download-overlay__items {
    gap: 16px;
  }

  .download-overlay__items .chat-section__square {
    width: 108px;
    height: 108px;
    border-radius: 24px;
  }

  .download-overlay__items .chat-section__square-logo {
    width: 72px;
    height: 68px;
  }
}