:root {
  /* --color-main: #066b6e;
  --color-main-hover: #7bbeb3;
  --color-main-active: #014751;
  --color-main-light: #0fa985; */

  --color-red: #df203a;
  --color-red-hover: #e85d53;
  --color-red-active: #b42e25;

  --color-gold: #c9a85f;
  --color-gold-hover: #a68438;
  --color-gold-active: #8a6e2f;

  --color-salmon: #e88c7f;
  --color-salmon-hover: #f0a192;
  --color-salmon-active: #d76b5e;

  --color-blue: #1a2a49;
  --color-blue-dark: #09162f;

  --color-orange: #c06746;
  --color-orange-dark: #a34522;

  --color-black: #000;
  --color-gray: #b2b2b2;
  --color-gray-light: #f7f4ed;

  --color-text: #000;
  --color-subtext: rgba(0, 0, 0, 0.6);
  --color-notes: rgba(0, 0, 0, 0.3);

  /* transition */
  --transition: all 0.3s ease;

  /* breakpoints */
  --desktop: 1240px;
  --tablet: 768px;
  --mobile: 320px;
}

html {
  overflow-x: hidden;
}

body {
  background-color: #fff;
  color: var(--color-black);
  margin: 0;
  padding: 0;
  height: 100vh;
  min-height: 640px;
  min-width: 360px;
  font-family: "Arial", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings:
    "pnum" on,
    "lnum" on;
}

.btn {
  display: inline-flex;
  gap: 6px;
  font-size: 14px;
  text-align: center;
  border-radius: 6px;
  padding: 8px 15px;
  letter-spacing: 1%;
  transition: var(--transition);
}

.btn--primary {
  color: #fff;
  background-color: var(--color-blue);
}

@media (hover: hover) {
  .btn--primary:hover {
    background-color: var(--color-blue-dark);
  }
}

.btn--primary:active {
  background-color: var(--color-blue-dark);
}

.btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.taplink {
  position: relative;
  height: 100%;
  text-align: center;
  overflow: hidden;
}

.taplink__container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
  padding: 48px 16px;
  max-width: 480px;
}

.taplink__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
}

/* Dynamic panel switching */
.taplink__dynamic {
  width: 100%;
}

.taplink__panel {
  display: none;
}

.taplink__panel--active {
  display: block;
  animation: panelIn 0.35s ease both;
}

.taplink__panel--leaving {
  animation: panelOut 0.25s ease both;
  pointer-events: none;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* .taplink__logo {
} */

.taplink__cards {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.taplink__card {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  padding: 12px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition);
  overflow-x: hidden;
}

.taplink__card--text {
  background-color: var(--color-blue);
}

.taplink__card--video {
  background-color: var(--color-orange);
}

@media (hover: hover) {
  .taplink__card:hover {
    opacity: 0.8;
  }
}

.taplink__card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: auto;
}

.taplink__card-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.taplink__card-icon {
  flex-shrink: 0;
  width: 41px;
  height: 41px;
  margin-right: -14px;
}

.taplink__card-bonus {
  margin-right: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 1.3;
  margin-top: 16px;
  padding-top: 4px;
}

.taplink__card-bonus strong {
  font-size: 12px;
  font-weight: 600;
}

/* Review view */
.taplink__review {
  text-align: left;
  width: 100%;
}

.taplink__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
  color: var(--color-text);
}

.taplink__messengers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.taplink__messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  border-radius: 4px;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
  transition: var(--transition);
}

.taplink__messenger-btn_max {
  border: 1px solid #334e73;
  color: #334e73;
}

.taplink__messenger-btn_telegram {
  border: 1px solid #c06746;
  color: #c06746;
}

@media (hover: hover) {
  .taplink__messenger-btn:hover {
    text-decoration: underline;
  }
}

.taplink__messenger-btn img {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

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

.taplink__links-item {
  cursor: pointer;
  padding: 8px;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: 1%;
  border-radius: 0;
  border: 1px solid var(--color-blue);
  transition: var(--transition);
}

@media (hover: hover) {
  .taplink__links-item:hover {
    color: var(--color-blue);
  }
}

.taplink__phone {
}

.taplink__phone-label {
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 8px;
}

.taplink__phone-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-blue);
}

.taplink__phone-link img {
  width: 24px;
  height: 24px;
}

.taplink__site {
}

.taplink__site-label {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 2%;
  margin-bottom: 12px;
}

.taplink__site-description {
  font-size: 16px;
  margin-bottom: 8px;
}

.taplink__site-link {
  font-weight: 400;
  font-size: 16px;
  color: var(--color-blue);
}

.taplink__markets {
  display: flex;
  gap: 16px;
}

.taplink__markets-item {
  width: 60px;
  height: 60px;
}

.taplink__markets-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.taplink__bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.taplink__bg img:nth-child(1) {
  position: absolute;
  width: 415px;
  height: 415px;
  top: -206.51px;
  right: -182px;
  transform: rotate(-52.76deg);
  opacity: 0.3;
  filter: blur(1px);
}

.taplink__bg img:nth-child(2) {
  position: absolute;
  width: 288px;
  height: 288px;
  bottom: -40px;
  left: -130px;
  transform: rotate(-47.47deg);
  opacity: 0.6;
  filter: blur(2px);
}

.taplink__bg img:nth-child(3) {
  position: absolute;
  width: 1032px;
  height: 1032px;
  bottom: -590px;
  right: -655px;
  transform: rotate(-28.95deg);
  opacity: 0.3;
  filter: blur(2px);
}

.taplink__bg img:nth-child(4) {
  position: absolute;
  top: 8px;
  left: 16px;
  width: 44px;
  height: 44px;
}

.taplink__bg img:nth-child(5) {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 44px;
  height: 44px;
  transform: translate(0, 50%);
}

.taplink__bg img:nth-child(6) {
  position: absolute;
  bottom: 100px;
  right: 8px;
  width: 44px;
  height: 44px;
  transform: translate(0, 50%);
}
