/* Inter с Google Fonts, файлы лежат в каталоге лендинга.
   Запасной Arial подогнан по ширине буквы n и по строке, чтобы смена шрифта не сдвигала текст. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 106.23%;
  ascent-override: 91.2%;
  descent-override: 22.71%;
  line-gap-override: 0%;
}

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

html {
  background: var(--surface-base-zero-1);
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: Inter, "Inter Fallback", sans-serif;
  color: var(--font-base-peak);
  background: var(--surface-base-zero-1);
}

.page {
  padding-inline: 24px;
  padding-bottom: 40px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 24px 0 14px;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-base-zero-1);
  color: var(--accent);
  font-family: inherit;
  font-size: var(--body-16-size);
  font-weight: 400;
  line-height: var(--body-16-line);
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.menu-button:focus {
  outline: none;
}

.menu-button:hover,
.store-button:hover {
  cursor: pointer;
}

.menu-button:hover {
  background: var(--surface-base-low-1);
}

.menu-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 170px;
  padding: 6px 16px;
  color: inherit;
}

.app-logo__icon {
  display: block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-base-violet-low-1);
}

.app-logo__image {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: cover;
}

.app-logo__name {
  font-size: var(--body-16-size);
  font-weight: 700;
  line-height: var(--body-16-line);
  letter-spacing: 0;
  white-space: nowrap;
}

@media (min-width: 786px) {
  .page {
    padding-inline: 80px;
    padding-bottom: 60px;
  }
}

.menu-button.header__link {
  display: none;
}

@media (max-width: 1279px) {
  .header.is-open {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .header.is-open .app-logo { order: 1; }

  .header.is-open .header__toggle {
    order: 2;
    margin-left: auto;
  }

  .header.is-open .menu-button.header__link {
    display: flex;
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

@media (min-width: 1280px) {
  .header {
    justify-content: center;
    gap: 60px;
    min-height: 110px;
    padding: 40px 0 20px;
  }

  .menu-button.header__link {
    display: inline-flex;
  }

  .menu-button.header__toggle {
    display: none;
  }
}

@media (min-width: 1280px) {
  .page {
    padding-bottom: 80px;
  }
}

@media (min-width: 1920px) {
  .page {
    padding-inline: 0;
  }
}

.hero,
.end {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 60px auto 0;
  gap: 24px;
}

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 892 / 480;
  container-type: inline-size;
}

.hero-image__plate,
.hero-image__screen,
.hero-image__frame,
.hero-image__fade {
  position: absolute;
  pointer-events: none;
}

.hero-image__plate {
  z-index: 0;
  inset: 29.17% 0 0;
  border-radius: calc(32 / 892 * 100cqi);
  background: var(--surface-brand-blue-primary);
}

.hero-image__screen {
  z-index: 1;
  inset: 2.5% 30.94% 0;
}

.hero-image__frame {
  z-index: 2;
  inset: 0 29.37% 0 29.26%;
}

.hero-image__screen img,
.hero-image__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.hero-image__fade {
  z-index: 3;
  display: none;
  inset: 52.08% 26.57% 0 27.02%;
  background: linear-gradient(
    to bottom,
    var(--surface-transparent-base-zero-2),
    var(--surface-base-zero-1)
  );
}

.hero-image--clean .hero-image__plate {
  display: none;
}

.hero-image--clean .hero-image__fade {
  display: block;
}

.title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  color: var(--font-base-peak);
  text-align: center;
}

.title-block h1,
.end .title-block h2,
.title-block p {
  width: 100%;
  margin: 0;
  overflow-wrap: break-word;
}

.title-block h1,
.end .title-block h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 37px;
  letter-spacing: 0;
}

.title-block p {
  font-size: var(--body-16-size);
  font-weight: 400;
  line-height: var(--body-16-line);
  letter-spacing: 0;
}

.store-links {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.store-button {
  display: block;
  line-height: 0;
  border-radius: 6.424px;
}

.store-button img {
  display: block;
  width: 129px;
  height: 40px;
}

.store-button:hover {
  opacity: 0.6;
}

.store-button:focus {
  outline: none;
}

.store-button:focus-visible {
  outline: 2px solid var(--font-brand-blue-medium-1);
  outline-offset: 2px;
}

@media (min-width: 786px) {
  .hero,
  .end {
    margin-top: 80px;
  }
}

@media (min-width: 1280px) {
  .hero,
  .end {
    gap: 40px;
    margin-top: 120px;
  }

  .hero-image {
    width: 892px;
  }

  .title-block h1,
  .end .title-block h2 {
    font-size: 68px;
    line-height: 70px;
  }
}

.why,
.advantages {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 0;
}

.why .title-block h2,
.advantages .title-block h2 {
  width: 100%;
  margin: 0;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
}

.why .title-block h2 {
  font-size: 24px;
}

.advantages .title-block h2 {
  font-size: 28px;
}

.promo {
  display: flex;
  flex-direction: column;
}

.promo-cards {
  position: relative;
  height: 480px;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  background: var(--surface-brand-blue-primary);
}

.promo-cards__shot,
.promo-cards__bezel {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
}

.promo-cards--right .promo-cards__shot {
  width: 340px;
  height: 468px;
  right: -79px;
  top: 102px;
  z-index: 1;
}

.promo-cards--right .promo-cards__bezel {
  width: 369px;
  height: 480px;
  right: -90px;
  top: 90px;
  z-index: 2;
}

.promo-cards--bottom .promo-cards__shot {
  width: 340px;
  height: 468px;
  left: calc(50% + 1px);
  top: -72px;
  transform: translateX(-50%);
  z-index: 1;
}

.promo-cards--bottom .promo-cards__bezel {
  width: 369px;
  height: 480px;
  left: calc(50% - 0.5px);
  top: -70px;
  transform: translateX(-50%);
  z-index: 2;
}

.promo-cards__spin {
  position: absolute;
  left: calc(50% - 0.67px);
  bottom: -122px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 481px;
  height: 559px;
  transform: translateX(-50%);
}

.promo-cards__phone {
  position: relative;
  flex: none;
  width: 369px;
  height: 480px;
  transform: rotate(15deg);
}

.promo-cards--twins .promo-cards__spin--messages,
.promo-cards--twins .promo-cards__spin--chats {
  right: auto;
  transform: translateX(-50%);
}

.promo-cards--twins .promo-cards__spin--messages {
  left: calc(50% + 110.24px);
  top: -246px;
  bottom: auto;
  z-index: 1;
}

.promo-cards--twins .promo-cards__spin--chats {
  left: calc(50% - 31.67px);
  top: auto;
  bottom: -245px;
  z-index: 2;
}

.promo-cards--twins .promo-cards__spin--chats .promo-cards__phone {
  transform: rotate(-15deg);
}

.promo-cards__phone .promo-cards__shot {
  width: 340px;
  height: 468px;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  z-index: 1;
}

.promo-cards__phone .promo-cards__bezel {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.pill,
.bubble {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.8px solid rgba(243, 243, 243, 0.25);
  border-radius: 100px;
  background: rgba(238, 238, 238, 0.1);
  backdrop-filter: blur(145px);
  -webkit-backdrop-filter: blur(145px);
  color: #fff;
}

.pill {
  gap: 8px;
  padding: 12px 16px;
  white-space: nowrap;
}

.pill__emoji {
  font-size: 30px;
  line-height: 1;
}

.pill__count {
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
}

.pill--party {
  right: 333px;
  top: 30px;
  transform: rotate(15deg);
}

.pill--ok {
  right: 155px;
  top: 48px;
  transform: rotate(15deg);
}

.pill--hundred {
  right: 274px;
  top: 126px;
  transform: rotate(-15deg);
}

.pill--fire {
  right: 351px;
  top: 238px;
  transform: rotate(-6.65deg);
}

.pill--up {
  right: 187px;
  top: 270px;
  transform: rotate(7.73deg);
}

.bubble {
  transform: translateX(-50%);
}

.bubble--wave {
  left: calc(50% - 165px);
  top: 59px;
  width: 100px;
  height: 100px;
  font-size: 60px;
}

.bubble--camera {
  left: calc(50% - 16px);
  top: 31px;
  width: 68px;
  height: 68px;
  font-size: 30px;
}

.bubble--speaker {
  left: calc(50% - 180px);
  top: 240px;
  width: 68px;
  height: 60px;
  font-size: 30px;
}

.bubble--eyes {
  left: calc(50% + 182px);
  bottom: 29px;
  width: 68px;
  height: 68px;
  font-size: 30px;
}

.promo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: 0 0 32px 32px;
  background: var(--surface-base-low-1);
  color: var(--font-base-peak);
  text-align: center;
}

.promo-text__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.promo-text h3,
.promo-text p {
  margin: 0;
}

.promo-text h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
}

.promo-line {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.promo-text--lines h3 {
  font-size: 18px;
}

.promo-text p {
  font-size: var(--body-16-size);
  font-weight: 400;
  line-height: var(--body-16-line);
}

.feature-label {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 30px;
  background: var(--surface-base-zero-2);
}

.feature-label img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
}

.counter {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 40px;
  background: var(--surface-negative-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.feature-label--chats .counter {
  left: calc(50% + 18px);
  top: calc(50% - 18px);
  transform: translate(-50%, -50%);
}

.feature-label--calls .counter {
  top: 14px;
  right: 14px;
}

@media (min-width: 786px) {
  .why,
  .advantages,
  .footer {
    margin-top: 80px;
  }

  .promo-text {
    padding: 60px;
  }

  .promo-text.promo-text--lines {
    padding: 24px;
  }
}

@media (min-width: 1280px) {
  .why .title-block h2,
  .advantages .title-block h2 {
    font-size: 38px;
  }

  .why,
  .advantages,
  .footer {
    margin-top: 120px;
  }

  .promo {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
  }

  .why .promo {
    gap: 14px;
  }

  .promo--text-lead .promo-text {
    order: -1;
  }

  .promo-cards,
  .promo-text {
    flex: none;
    width: calc((100% - 24px) / 2);
    min-width: 0;
    height: 480px;
    border-radius: 32px;
  }

  .why .promo-cards,
  .why .promo-text {
    width: calc((100% - 14px) / 2);
  }

  .promo-text {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
  }

  .promo-text.promo-text--lines {
    align-items: stretch;
    justify-content: center;
    padding: 60px;
    text-align: left;
  }

  .feature-label {
    display: block;
  }

  .promo-text__copy {
    flex: 1 1 auto;
    justify-content: flex-end;
  }
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: 60px auto 0;
  text-align: center;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.footer__name,
.footer__meta {
  margin: 0;
}

.footer__name {
  font-size: var(--body-16-size);
  font-weight: 400;
  line-height: var(--body-16-line);
  color: var(--font-base-peak);
}

.footer__meta {
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: var(--font-base-medium-3);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.footer[data-terms="off"] .footer__terms {
  display: none;
}

.legal {
  display: block;
  width: min(720px, 100%);
  margin: 24px auto 0;
  color: var(--font-base-peak);
  text-align: start;
}

.legal h2,
.legal h3,
.legal p,
.legal ul,
.legal ol {
  margin: 0;
  overflow-wrap: break-word;
}

.legal h2 {
  margin-bottom: 8px;
  font-size: 38px;
  font-weight: 700;
  line-height: 37px;
}

.legal__date {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: var(--font-base-medium-3);
}

.legal h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
}

.legal p,
.legal li {
  font-size: var(--body-16-size);
  font-weight: 400;
  line-height: var(--body-16-line);
}

.legal p + p,
.legal ul,
.legal ol {
  margin-top: 12px;
}

.legal ul,
.legal ol {
  padding-left: 20px;
}

.promo-cards__phone,
.promo-cards--right .promo-cards__shot,
.promo-cards--right .promo-cards__bezel,
.promo-cards--bottom .promo-cards__shot,
.promo-cards--bottom .promo-cards__bezel,
.pill,
.bubble {
  animation-duration: 4.2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-play-state: paused;
}

.promo.is-inview .promo-cards__phone,
.promo.is-inview .promo-cards__shot,
.promo.is-inview .promo-cards__bezel,
.promo.is-inview .pill,
.promo.is-inview .bubble {
  animation-play-state: running;
}

.promo-cards__phone {
  animation-name: float-phone-15;
}

.promo-cards__spin--chats .promo-cards__phone {
  animation-name: float-phone-neg15;
}

.promo-cards--right .promo-cards__shot,
.promo-cards--right .promo-cards__bezel {
  animation-name: float-y;
}

.promo-cards--bottom .promo-cards__shot,
.promo-cards--bottom .promo-cards__bezel {
  animation-name: float-center;
}

.pill--party,
.pill--ok {
  animation-name: float-rot-15;
}

.pill--hundred {
  animation-name: float-rot-neg15;
}

.pill--fire {
  animation-name: float-rot-neg6;
}

.pill--up {
  animation-name: float-rot-7;
}

.bubble {
  animation-name: float-bubble;
}

.promo-cards__spin--chats .promo-cards__phone,
.pill--hundred,
.bubble--speaker {
  animation-delay: -1.4s;
}

.pill--ok,
.bubble--camera {
  animation-delay: -0.7s;
}

.pill--fire,
.bubble--eyes {
  animation-delay: -2.1s;
}

.pill--up {
  animation-delay: -2.8s;
}

@keyframes float-y {
  from { transform: translateY(0); }
  to { transform: translateY(28px); }
}

@keyframes float-phone-15 {
  from { transform: translateY(0) rotate(15deg); }
  to { transform: translateY(28px) rotate(15deg); }
}

@keyframes float-phone-neg15 {
  from { transform: translateY(0) rotate(-15deg); }
  to { transform: translateY(-28px) rotate(-15deg); }
}

@keyframes float-center {
  from { transform: translate(-50%, 0); }
  to { transform: translate(-50%, 28px); }
}

@keyframes float-rot-15 {
  from { transform: translateY(0) rotate(15deg); }
  to { transform: translateY(-22px) rotate(15deg); }
}

@keyframes float-rot-neg15 {
  from { transform: translateY(0) rotate(-15deg); }
  to { transform: translateY(22px) rotate(-15deg); }
}

@keyframes float-rot-neg6 {
  from { transform: translateY(0) rotate(-6.65deg); }
  to { transform: translateY(-20px) rotate(-6.65deg); }
}

@keyframes float-rot-7 {
  from { transform: translateY(0) rotate(7.73deg); }
  to { transform: translateY(18px) rotate(7.73deg); }
}

@keyframes float-bubble {
  from { transform: translate(-50%, 0); }
  to { transform: translate(-50%, -24px); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-cards__phone,
  .promo-cards__shot,
  .promo-cards__bezel,
  .pill,
  .bubble {
    animation: none;
  }
}

@media (min-width: 786px) {
  .footer {
    margin-top: 80px;
  }
}

@media (min-width: 1280px) {
  .footer {
    margin-top: 120px;
  }
}
