/* Витрина рекламы в Telegram — структура как у telega.in, бренд GSO Autopilot */

.tg-page { overflow-x: hidden; }
.tg-page [hidden] { display: none !important; }
.tg-page h1,
.tg-page h2,
.tg-page p,
.tg-page .tg-ch,
.tg-copy { overflow-wrap: anywhere; word-break: break-word; }

.tg-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.05fr);
  gap: 36px;
  align-items: center;
  padding: 28px calc(6vw + var(--safe-right)) 56px calc(6vw + var(--safe-left));
}
.tg-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.tg-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(18,184,154,.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(232,194,122,.4), transparent 50%);
  filter: blur(6px);
  animation: tg-spin 18s linear infinite;
}
.tg-float {
  position: absolute;
  color: var(--teal);
  opacity: .7;
  animation: tg-float 5.4s ease-in-out infinite;
}
.tg-float-1 { top: 8%; left: 12%; animation-delay: 0s; }
.tg-float-2 { top: 18%; right: 10%; animation-delay: .8s; }
.tg-float-3 { bottom: 16%; left: 8%; animation-delay: 1.4s; }
.tg-float-4 { bottom: 10%; right: 16%; animation-delay: 2s; }

.tg-phone {
  position: relative;
  width: min(280px, 78vw);
  border-radius: 36px;
  padding: 12px 10px 16px;
  background: #11161c;
  box-shadow: 0 28px 60px rgba(7,19,26,.35);
  color: #e8eef4;
  z-index: 1;
}
.tg-phone-bar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: .7;
  padding: 4px 10px 10px;
}
.tg-phone-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px 12px;
}
.tg-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--sand));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #04241e;
  flex: none;
}
.tg-phone-head b { display: block; font-size: 13px; }
.tg-phone-head span { display: block; font-size: 11px; opacity: .65; }
.tg-post {
  margin: 0 6px;
  padding: 12px;
  border-radius: 16px 16px 16px 6px;
  background: #1b242e;
}
.tg-post-art {
  height: 118px;
  border-radius: 12px;
  margin-bottom: 10px;
  background:
    linear-gradient(135deg, rgba(18,184,154,.95), rgba(14,80,72,.95)),
    repeating-linear-gradient(135deg, transparent, transparent 12px, rgba(255,255,255,.06) 12px, rgba(255,255,255,.06) 13px);
  display: grid;
  place-items: end start;
  padding: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
}
.tg-post p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.4; }
.tg-post a { color: #6ec8ff; }
.tg-react {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
}
.tg-react i {
  font-style: normal;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 3px 8px;
}

.tg-copy {
  background: linear-gradient(160deg, rgba(11,111,98,.72) 0%, rgba(10,61,56,.66) 42%, rgba(7,19,26,.7) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  color: #fff;
  border-radius: 36px;
  padding: 36px 32px 28px;
  min-height: 480px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.18);
}
.tg-copy h1,
.tg-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 16px 0 14px;
  max-width: 16ch;
}
.tg-copy .tg-lead { margin: 0 0 22px; font-size: 1.08rem; color: rgba(255,255,255,.82); max-width: 40ch; }
.tg-toggle {
  display: inline-flex;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 4px;
}
.tg-toggle button {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.75);
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}
.tg-toggle button.is-on { background: #fff; color: var(--ink); font-weight: 700; }
.tg-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.tg-proof article {
  background: rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 12px 14px;
  font-size: .92rem;
}

.tg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.tg-feat { display: grid; gap: 8px; }
.tg-feat button {
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}
.tg-feat button.is-on {
  background: #dff6f0;
  color: var(--ink);
}
.tg-feat button.is-on b,
.tg-feat button b { display: block; }
.tg-feat button span { display: none; margin-top: 6px; font-size: .95rem; color: var(--text); }
.tg-feat button.is-on span { display: block; }

.tg-mock-wrap {
  border-radius: 32px;
  min-height: 460px;
  padding: 28px;
  background: linear-gradient(160deg, #7b5cff, #e46ad4 55%, #12b89a);
  display: grid;
  place-items: center;
  position: relative;
}
.tg-mock-wrap .tg-phone { transform: rotate(-3deg); }
.tg-glass {
  position: absolute;
  top: 28px;
  left: 28px;
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: #fff;
  z-index: 2;
}

.tg-fmt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tg-fmt article {
  background: #eef4fb;
  border-radius: 28px;
  padding: 28px 24px 8px;
}
.tg-fmt h3 { margin: 0 0 10px; font-size: 1.6rem; }
.tg-fmt .tg-phone { margin: 18px auto 0; transform: none; box-shadow: 0 16px 40px rgba(7,19,26,.2); }

.tg-goals {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}
.tg-goal-box,
.tg-dash {
  background: #fff;
  color: var(--ink);
  border-radius: 28px;
  padding: 22px;
}
.tg-goal-list { display: grid; gap: 10px; margin-top: 14px; }
.tg-goal-list button {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(7,19,26,.1);
  background: #f6f8f7;
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
}
.tg-goal-list button.is-on {
  border-color: var(--teal);
  background: #e8f8f3;
  box-shadow: 0 0 0 2px rgba(18,184,154,.2);
}
.tg-dash table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tg-dash td { padding: 8px 4px; border-bottom: 1px solid rgba(7,19,26,.08); }
.tg-dash td:last-child { text-align: right; font-weight: 700; }
.tg-bar { height: 8px; border-radius: 99px; background: #e6ece9; overflow: hidden; margin: 14px 0; }
.tg-bar i { display: block; height: 100%; width: 42%; background: var(--teal); }

.tg-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tg-ch {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(7,19,26,.06);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.tg-ch strong { font-family: var(--font-display); font-size: 1.2rem; }
.tg-ch .muted { color: var(--muted); }
.tg-ch .price { font-family: var(--font-display); font-size: 1.25rem; }
.tg-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mist);
  font-size: .78rem;
}
.tg-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tg-stat {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(7,19,26,.06);
}
.tg-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--teal);
  line-height: 1;
}

.tg-wide-cta {
  display: block;
  text-align: center;
  background: var(--teal);
  color: #04241e !important;
  border-radius: 22px;
  padding: 22px;
  font-weight: 800;
  font-size: 1.15rem;
  min-height: 48px;
}
.tg-page .btn,
.tg-toggle button,
.tg-feat button,
.tg-goal-list button {
  min-height: 44px;
  touch-action: manipulation;
}

@keyframes tg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes tg-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .tg-hero, .tg-split, .tg-fmt, .tg-goals, .tg-preview, .tg-stats { grid-template-columns: 1fr; }
  .tg-copy {
    min-height: 0;
    padding: 28px 20px 32px;
    overflow: visible;
  }
  .tg-copy h1,
  .tg-copy h2 { max-width: none; font-size: clamp(1.55rem, 7vw, 2.2rem); }
  .tg-copy .tg-lead { max-width: none; padding-bottom: 4px; }
  .tg-stage { min-height: 380px; }
  .tg-proof { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tg-preview,
  .tg-stats,
  .tg-fmt {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 10px;
    touch-action: pan-x pan-y;
  }
  .tg-preview .tg-ch,
  .tg-stats .tg-stat,
  .tg-fmt article {
    min-width: min(78vw, 320px);
    scroll-snap-align: start;
    flex: 0 0 min(78vw, 320px);
  }
  .tg-hero { padding: 12px calc(5vw + var(--safe-right)) 36px calc(5vw + var(--safe-left)); gap: 20px; }
  .tg-toggle { max-width: 100%; }
  .tg-toggle button { flex: 1 1 auto; padding: 10px 12px; }
}
