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

:root {
  --bg: #06111f;
  --bg-2: #0b1728;
  --card: rgba(24, 35, 52, 0.94);
  --card-border: rgba(133, 178, 211, 0.16);
  --text: #eaf3fb;
  --muted: #9cb0c2;
  --primary: #73b8b7;
  --primary-2: #6aa8a8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 540px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, #0d2240 0%, #081321 30%, #04101d 100%);
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(63, 205, 221, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 205, 221, 0.18) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 92%);
}

.bg-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.18;
}

.glow-left {
  left: -120px;
  top: 80px;
  background: #35d6cb;
}

.glow-right {
  right: -120px;
  bottom: 80px;
  background: #1278d6;
}

.page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.brand-top {
  margin-bottom: 14px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(22, 37, 57, 0.72);
  border: 1px solid rgba(118, 181, 199, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.brand-badge__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 999px;
}

.card {
  background: linear-gradient(180deg, rgba(30, 43, 62, 0.98), rgba(22, 32, 48, 0.98));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero,
.proxy-card,
.info-card {
  padding: 24px;
  margin-bottom: 18px;
}

.hero {
  text-align: center;
  padding-top: 22px;
}

.hero__logo-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(116, 184, 183, 0.2), rgba(116, 184, 183, 0.08));
  border: 1px solid rgba(116, 184, 183, 0.22);
}

.hero__logo {
  width: 64px;
  height: 64px;
  object-fit: cover;     /* ключевое */
  border-radius: 50%;    /* делает круглым */
}

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.hero__title .line {
  display: block;
  text-wrap: balance;
}

.hero__title .line-main {
  font-size: clamp(2.1rem, 7vw, 4rem);
  color: #f0f6fb;
}

.hero__title .line-accent {
  font-size: clamp(2.2rem, 7.4vw, 4.2rem);
  color: var(--primary);
}

.hero__subtitle {
  max-width: 430px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  text-wrap: balance;
}

.hero__features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feature {
  padding: 10px 14px;
  border-radius: 999px;
  color: #cde8e7;
  background: rgba(20, 31, 47, 0.72);
  border: 1px solid rgba(111, 184, 183, 0.16);
  font-size: 0.95rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #8fa6ba;
  margin-bottom: 16px;
}

.proxy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.proxy-row__logo {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%; /* делаем круг */
  background: linear-gradient(180deg, rgba(116,184,183,0.25), rgba(116,184,183,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* важно */
}

.proxy-row__logo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.proxy-row__content {
  min-width: 0;
}

.proxy-row__title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}

.proxy-row__status {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #74d8a0;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38d978;
  box-shadow: 0 0 10px rgba(56, 217, 120, 0.6);
}

.primary-btn,
.secondary-btn,
.bottom-link {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn,
.secondary-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  font-weight: 700;
  padding: 18px 20px;
  font-size: 1rem;
}

.primary-btn {
  background: linear-gradient(180deg, #74b8b7, #67a7a7);
  color: #f6fffe;
  box-shadow: 0 12px 30px rgba(110, 184, 183, 0.18);
}

.secondary-btn {
  background: rgba(21, 31, 47, 0.8);
  border: 1px solid rgba(113, 138, 164, 0.22);
  color: #eef5fb;
}

.primary-btn:hover,
.secondary-btn:hover,
.bottom-link:hover {
  transform: translateY(-1px);
}

.details-toggle {
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: #9db2c4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 2px 0;
  cursor: pointer;
  font-size: 0.98rem;
}

.toggle-icon {
  transition: transform 0.2s ease;
}

.details-toggle.is-open .toggle-icon {
  transform: rotate(180deg);
}

.details {
  overflow: hidden;
  max-height: 400px;
  opacity: 1;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
  margin-top: 14px;
}

.details.hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(12, 20, 34, 0.56);
  border: 1px solid rgba(135, 165, 193, 0.12);
}

.detail-item--full {
  grid-column: 1 / -1;
}

.detail-label {
  color: #8ea3b5;
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.detail-value {
  font-weight: 700;
  color: #eef5fb;
  word-break: break-word;
}

.detail-value--mono,
.share-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.steps b {
  color: #eef5fb;
}

.step-num {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(116, 184, 183, 0.2);
  color: #d8f8f4;
  font-size: 0.95rem;
  font-weight: 800;
}

.share-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(10, 18, 31, 0.88);
  border: 1px solid rgba(113, 138, 164, 0.18);
  color: #d9e8f4;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.copy-hint {
  margin: 12px 2px 0;
  color: #8fa6ba;
  line-height: 1.5;
}

.secondary-btn {
  margin-top: 14px;
}

.bottom-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(30, 43, 62, 0.98), rgba(22, 32, 48, 0.98));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  margin-top: 6px;
}

.bottom-link__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%; /* делаем круг */
  background: linear-gradient(180deg, rgba(116,184,183,0.25), rgba(116,184,183,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* важно */
}

.bottom-link__icon img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.bottom-link__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bottom-link__text strong {
  font-size: 1rem;
  color: #eef5fb;
}

.bottom-link__text small {
  color: var(--muted);
  font-size: 0.92rem;
}

.bottom-link__arrow {
  margin-left: auto;
  font-size: 1.3rem;
  color: #a9bfce;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 18px 0 10px;
  color: #89a0b4;
  font-size: 0.96rem;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer-dot {
  opacity: 0.6;
}

@media (max-width: 640px) {
  .page {
    width: min(calc(100% - 20px), 100%);
    padding-top: 14px;
    padding-bottom: 24px;
  }

  .hero,
  .proxy-card,
  .info-card {
    padding: 18px;
    border-radius: 22px;
    margin-bottom: 14px;
  }

  .hero__logo-wrap {
    width: 78px;
    height: 78px;
    margin-bottom: 14px;
  }

  .hero__logo {
    width: 56px;
    height: 56px;
  }

  .hero__title {
    gap: 4px;
    line-height: 0.98;
  }

  .hero__title .line-main {
    font-size: clamp(2rem, 10vw, 3.3rem);
  }

  .hero__title .line-accent {
    font-size: clamp(2.15rem, 10.6vw, 3.45rem);
  }

  .hero__subtitle {
    margin-top: 14px;
    font-size: 0.98rem;
  }

  .proxy-row__title {
    font-size: 1.32rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .detail-item--full {
    grid-column: auto;
  }

  .bottom-link {
    padding: 16px;
    border-radius: 20px;
  }

  .bottom-link__icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
}

@media (max-width: 390px) {
  .page {
    width: calc(100% - 16px);
  }

  .hero__title .line-main {
    font-size: 1.9rem;
  }

  .hero__title .line-accent {
    font-size: 2rem;
  }

  .primary-btn,
  .secondary-btn {
    padding: 16px 14px;
    font-size: 0.96rem;
  }

  .feature {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .footer {
    flex-wrap: wrap;
  }
}