.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
}

.back-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 60px;
}

.contact-page-content {
  max-width: 640px;
  width: 100%;
}

.cp-main {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 0;
}

.cp-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.cp-main h1 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cp-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cp-telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #2AABEE;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(42, 171, 238, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.cp-telegram-btn:hover {
  background: #229ED9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(42, 171, 238, 0.35);
}

.cp-telegram-btn .cp-arrow {
  transition: transform 0.25s ease;
}

.cp-telegram-btn:hover .cp-arrow {
  transform: translateX(4px);
}

.cp-no-telegram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cp-no-telegram:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.cp-no-telegram svg {
  transition: transform 0.3s ease;
}

.cp-install.visible ~ .cp-main .cp-no-telegram svg,
.cp-no-telegram.rotated svg {
  transform: rotate(180deg);
}

.cp-install {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.cp-why {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding: 28px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cp-why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
}

.cp-why h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.cp-why p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.cp-why ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-why li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.cp-why li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}

.cp-why-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0;
}

.cp-tabs {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.cp-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.cp-tab:hover {
  border-color: var(--border-hover);
}

.cp-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.cp-instructions {
  margin-top: 20px;
  padding: 28px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cp-instructions h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.cp-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cp-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cp-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.cp-step strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cp-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.cp-bottom-cta {
  text-align: center;
  margin-top: 28px;
}


@media (max-width: 399px) {
  .back-btn {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
    justify-content: center;
  }

  .contact-page {
    padding: 56px 10px 32px;
  }

  .cp-main {
    padding: 28px 14px;
  }

  .cp-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .cp-icon svg {
    width: 28px;
    height: 28px;
  }

  .cp-main h1 {
    font-size: 20px;
  }

  .cp-desc {
    font-size: 13px;
  }

  .cp-telegram-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  .cp-no-telegram {
    font-size: 12px;
    padding: 8px 16px;
  }

  .cp-why {
    flex-direction: column;
    padding: 18px 14px;
    gap: 12px;
  }

  .cp-why h3 {
    font-size: 15px;
  }

  .cp-why p,
  .cp-why li {
    font-size: 13px;
  }

  .cp-tab {
    padding: 12px 12px;
    font-size: 13px;
    gap: 6px;
  }

  .cp-instructions {
    padding: 18px 14px;
  }

  .cp-instructions h3 {
    font-size: 16px;
  }

  .cp-step strong {
    font-size: 14px;
  }

  .cp-step p {
    font-size: 13px;
  }

  .cp-step-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .cp-bottom-cta .cp-telegram-btn {
    width: 100%;
  }
}

@media (max-width: 599px) and (min-width: 400px) {
  .back-btn {
    top: 12px;
    left: 12px;
    padding: 8px 16px;
    font-size: 13px;
  }

  .contact-page {
    padding: 64px 14px 40px;
  }

  .cp-main {
    padding: 36px 18px;
  }

  .cp-main h1 {
    font-size: 22px;
  }

  .cp-telegram-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
  }

  .cp-why {
    flex-direction: column;
    padding: 22px 18px;
  }

  .cp-why-icon {
    width: 40px;
    height: 40px;
  }

  .cp-instructions {
    padding: 22px 18px;
  }

  .cp-bottom-cta .cp-telegram-btn {
    width: 100%;
  }
}
