@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/nunito-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/nunito-sans-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;
}

:root {
  --pink: #f9005a;
  --pink-deep: #e70052;
  --pink-soft: #fff0f5;
  --ink: #171316;
  --muted: #756b70;
  --paper: #fffdfb;
  --line: #ece4e7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #f6f1f2;
  color: var(--ink);
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
a {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(480px, 0.85fr);
  overflow: hidden;
}

.brand-scene {
  position: relative;
  min-height: 100svh;
  padding: clamp(38px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background: var(--pink) url("/assets/brand-wallpaper.png") center / cover no-repeat;
  overflow: hidden;
}

.brand-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(58, 0, 22, 0.04) 10%, rgba(48, 0, 18, 0.7) 100%),
    radial-gradient(circle at 50% 42%, transparent 25%, rgba(105, 0, 42, 0.14) 90%);
}

.brand-scene__veil {
  position: absolute;
  width: 55vw;
  aspect-ratio: 1;
  top: -34vw;
  left: -18vw;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.brand-scene__content,
.brand-scene__note {
  position: relative;
  z-index: 1;
}

.brand-scene__content {
  max-width: 680px;
}

.brand-scene h1 {
  margin: 0 0 16px;
  max-width: 700px;
  font-size: clamp(54px, 6.8vw, 104px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.brand-scene__content > p {
  margin: 0;
  max-width: 470px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}

.brand-scene__note {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.brand-scene__note span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65f4aa;
  box-shadow: 0 0 0 6px rgba(101, 244, 170, 0.16);
}

.action-side {
  min-height: 100svh;
  padding: 36px clamp(24px, 5vw, 78px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 85% 5%, rgba(249, 0, 90, 0.1), transparent 27%),
    var(--paper);
}

.deeplink-card {
  width: min(100%, 500px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: white;
  box-shadow: 0 24px 80px rgba(42, 13, 25, 0.11);
}

.brand-banner {
  height: 145px;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 23px;
  background: var(--pink);
}

.brand-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.card-body {
  padding: 30px 38px 34px;
  text-align: center;
}

.state-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.state-label__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.state-label--error {
  color: #53494e;
}

.card-body h2 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.1;
}

.lead {
  margin: 0 auto;
  max-width: 370px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.actions {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.app-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.app-button,
.secondary-button {
  width: 100%;
  min-height: 58px;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.app-button {
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid #e9dfe3;
  color: var(--ink);
  background: white;
  box-shadow: 0 7px 18px rgba(42, 13, 25, 0.07);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.app-button > span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-button:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 0, 90, 0.45);
  background: #fffafd;
  box-shadow: 0 12px 24px rgba(77, 15, 40, 0.11);
}

.app-button__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: block;
  border-radius: 11px;
  object-fit: cover;
}

.secondary-button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  color: #51474c;
  background: white;
  font-size: 14px;
  font-weight: 600;
}

.secondary-button:hover {
  transform: translateY(-1px);
  border-color: #d9ccd1;
  background: #fffafb;
}

.app-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(249, 0, 90, 0.28);
  outline-offset: 3px;
}

.copy-icon {
  width: 15px;
  height: 17px;
  position: relative;
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.copy-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 14px;
  right: -5px;
  top: -5px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  background: white;
}

.help-box {
  margin-top: 22px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 16px;
  background: #f8f5f6;
  text-align: left;
}

.help-box__number {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pink-deep);
  background: #ffe1ec;
  font-size: 13px;
  font-weight: 600;
}

.help-box strong {
  display: block;
  margin: 1px 0 4px;
  font-size: 13px;
  font-weight: 700;
}

.help-box p {
  margin: 0;
  color: #81767b;
  font-size: 12px;
  line-height: 1.45;
}

.demo-badge {
  margin: 18px auto -3px;
  color: #a09399;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

@media (max-width: 960px) {
  .site-shell {
    grid-template-columns: minmax(300px, 0.7fr) minmax(440px, 1fr);
  }

  .brand-scene {
    padding: 38px;
  }

  .brand-scene h1 {
    font-size: clamp(46px, 7vw, 74px);
  }
}

@media (max-width: 720px) {
  .site-shell {
    min-height: 100svh;
    display: block;
    background: var(--pink) url("/assets/brand-wallpaper.png") center / cover fixed;
  }

  .brand-scene {
    display: none;
  }

  .action-side {
    min-height: 100svh;
    padding: 18px 14px 14px;
    justify-content: center;
    background: linear-gradient(180deg, rgba(73, 0, 28, 0.12), rgba(66, 0, 24, 0.38));
  }

  .deeplink-card {
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 28px;
    box-shadow: 0 22px 65px rgba(55, 0, 22, 0.34);
  }

  .brand-banner {
    height: 126px;
    border-radius: 20px;
  }

  .card-body {
    padding: 28px 25px 27px;
  }

  .card-body h2 {
    font-size: 32px;
  }

}

@media (max-height: 720px) and (max-width: 720px) {
  .action-side {
    justify-content: flex-start;
  }

  .brand-banner {
    height: 105px;
  }

  .card-body {
    padding-bottom: 22px;
  }

  .lead {
    line-height: 1.4;
  }

  .actions {
    margin-top: 20px;
  }

  .help-box {
    margin-top: 18px;
  }
}

@media (max-width: 480px) {
  .app-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
