:root {
  --text: #45535f;
  --muted: #5b6275;
  --link: #2f5da8;
  --line: #e6dfd3;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
}

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

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 420px;
  margin: 0 auto;
  padding: 96px 24px 28px;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 300px;
  max-width: 100%;
  height: auto;
  margin-left: 16px;
}

.tagline {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
}

.subline {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 36px;
}

.links-title {
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 16px 16px;
  border-radius: 20px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(28, 38, 64, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(28, 38, 64, 0.16);
}

.link-btn:active {
  transform: scale(0.98);
}

.link-btn--instagram {
  background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af);
}

.link-btn--telegram {
  background: #229ed9;
}

.link-btn--contact {
  width: 100%;
  border: 0;
  background: linear-gradient(90deg, #d2d79a, #b8c062);
  text-shadow: 0 1px 2px rgba(60, 66, 20, 0.35);
  font: inherit;
  cursor: pointer;
}

.link-btn__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
}

.link-btn__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.link-btn__title {
  font-size: 18px;
  font-weight: 700;
}

.link-btn__sub {
  font-size: 14px;
  opacity: 0.85;
}

.link-btn__arrow {
  flex-shrink: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
}

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.chip:hover {
  border-color: #cfc6b6;
}

.footer {
  margin-top: 32px;
}

.footer a {
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
}

.deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.deco__circle {
  position: absolute;
  border-radius: 50%;
}

.deco__circle--olive {
  top: -150px;
  right: -100px;
  width: 240px;
  height: 240px;
  background: rgba(174, 184, 67, 0.35);
}

.deco__circle--sky {
  bottom: 44px;
  left: -120px;
  width: 200px;
  height: 200px;
  background: rgba(143, 175, 203, 0.35);
}

.deco__circle--red {
  bottom: 34px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(226, 72, 60, 0.9);
}

@media (max-height: 760px) {
  .page {
    padding-top: 64px;
  }

  .deco__circle--sky {
    bottom: -60px;
    width: 160px;
    height: 160px;
  }

  .deco__circle--red {
    bottom: -30px;
    right: -50px;
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 400px) {
  .page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .link-btn {
    gap: 12px;
    padding: 14px 14px 14px 14px;
  }

  .link-btn__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .link-btn__title {
    font-size: 17px;
  }

  .link-btn__sub {
    font-size: 13px;
  }
}

.sheet {
  width: 100%;
  max-width: 420px;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: var(--text);
  box-shadow: 0 -8px 30px rgba(28, 38, 64, 0.15);
}

.sheet::backdrop {
  background: rgba(28, 38, 64, 0.45);
}

.sheet[open] {
  animation: sheet-up 0.22s ease-out;
}

@keyframes sheet-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

.sheet__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  outline: none;
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sheet__title {
  font-size: 18px;
  font-weight: 700;
}

.sheet__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f5;
  color: var(--text);
  cursor: pointer;
}

.contact-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f6f7f9;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.contact-opt:hover {
  background: #eef0f3;
}

.contact-opt__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
}

.contact-opt__icon--viber {
  background: #7360f2;
}

.contact-opt__icon--telegram {
  background: #229ed9;
}

.contact-opt__icon--call {
  background: #3bb26b;
}

.contact-opt__text {
  display: flex;
  flex-direction: column;
}

.contact-opt__hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

@media (min-width: 600px) {
  .sheet {
    margin: auto;
    border-radius: 24px;
  }
}
