* {
  box-sizing: border-box;
}

:root {
  --landing-ink: #111827;
  --landing-muted: #536174;
  --landing-border: #d8e0e8;
  --landing-surface: #ffffff;
  --landing-soft: #eef5fb;
  --landing-blue: #0077cc;
  --landing-blue-dark: #005d9f;
  --landing-gold: #ffd700;
  --landing-night: #0d1b2a;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.telegram-ads-page {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: #f5f7fa;
  color: var(--landing-ink);
  font-family: var(--font-family, "Inter", "Segoe UI", Arial, sans-serif);
  font-size: 16px;
  line-height: 1.6;
}

.landing-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--landing-night);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.landing-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(17, 24, 39, 0.09);
  background: rgba(255, 255, 255, 0.96);
}

.landing-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 14px;
  border-radius: 7px;
  background: #050505;
  color: var(--landing-gold);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.landing-nav a,
.header-login,
.landing-footer a,
.login-note a {
  color: var(--landing-ink);
  font-weight: 600;
  text-decoration: none;
}

.landing-nav a[aria-current="page"] {
  color: var(--landing-blue);
}

.header-login {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--landing-border);
  border-radius: 10px;
}

.landing-section {
  padding: 88px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  background:
    radial-gradient(circle at 86% 12%, rgba(0, 119, 204, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #edf6fc 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 70px solid rgba(255, 215, 0, 0.16);
  border-radius: 50%;
}

.hero__grid,
.example-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--landing-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
.telegram-ads-page h2,
.telegram-ads-page h3 {
  color: var(--landing-ink);
  font-family: inherit;
  line-height: 1.12;
  text-align: left;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 5.5vw, 70px);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero__subtitle {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--landing-muted);
  font-size: clamp(18px, 2vw, 21px);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.landing-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.landing-button--primary {
  background: var(--landing-blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 119, 204, 0.2);
}

.landing-button--secondary {
  border-color: var(--landing-border);
  background: #fff;
  color: var(--landing-ink);
}

.landing-button--dark {
  background: var(--landing-night);
  color: #fff;
}

.landing-button:hover {
  transform: translateY(-1px);
}

a:focus-visible,
.landing-button:focus-visible {
  outline: 3px solid var(--landing-gold);
  outline-offset: 3px;
}

.login-note {
  margin: 18px 0 0;
  color: var(--landing-muted);
  font-size: 14px;
}

.login-note a {
  color: var(--landing-blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__signal {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 420px;
  margin-left: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 80px rgba(13, 27, 42, 0.12);
  backdrop-filter: blur(12px);
}

.signal-card {
  padding: 20px;
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  background: var(--landing-surface);
}

.signal-card--accent {
  border-color: var(--landing-night);
  background: var(--landing-night);
  color: #fff;
}

.signal-card__label {
  display: block;
  margin-bottom: 5px;
  color: var(--landing-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-card--accent .signal-card__label {
  color: var(--landing-gold);
}

.signal-line {
  width: 2px;
  height: 20px;
  margin-left: 30px;
  background: var(--landing-blue);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 42px;
}

.telegram-ads-page h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.telegram-ads-page h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

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

.audience-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 42px;
  border: 1px solid var(--landing-border);
  border-radius: 22px;
  background: var(--landing-surface);
  box-shadow: 0 18px 50px rgba(13, 27, 42, 0.07);
  overflow: hidden;
}

.audience-card--publisher {
  border-color: #b9d4e8;
  background: var(--landing-soft);
}

.audience-card__number {
  position: absolute;
  top: 22px;
  right: 28px;
  color: rgba(0, 119, 204, 0.14);
  font-size: 52px;
  font-weight: 850;
}

.audience-card > p {
  margin: 18px 0 22px;
  color: var(--landing-muted);
}

.benefit-list {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  position: relative;
  padding-left: 28px;
}

.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--landing-blue);
  font-weight: 900;
}

.audience-card .landing-button {
  align-self: flex-start;
  margin-top: auto;
}

.process-section {
  border-top: 1px solid var(--landing-border);
  background: #fff;
}

.process-path {
  padding: 32px;
  border-left: 4px solid var(--landing-blue);
  border-radius: 0 18px 18px 0;
  background: #f7f9fb;
}

.step-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.step-list span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--landing-night);
  color: var(--landing-gold);
  font-weight: 800;
}

.example-section {
  background: linear-gradient(180deg, #f5f7fa, #e9f2f8);
}

.example-copy p:last-child {
  max-width: 570px;
  color: var(--landing-muted);
  font-size: 18px;
}

.telegram-frame {
  max-width: 420px;
  margin-left: auto;
  padding: 16px;
  border: 1px solid #c6d5e0;
  border-radius: 24px;
  background: #dceaf3;
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.16);
}

.telegram-frame__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #1f3342;
}

.telegram-frame__top div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.telegram-frame__top span:not(.telegram-frame__avatar) {
  color: #697d8b;
  font-size: 12px;
}

.telegram-frame__avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--landing-blue);
  color: #fff;
  font-weight: 800;
}

.telegram-message {
  padding: 18px;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  color: #17212b;
}

.telegram-message__label {
  margin-bottom: 14px;
  color: #596b78;
  line-height: 1.35;
}

.telegram-message p {
  margin: 8px 0 16px;
  line-height: 1.45;
}

.telegram-message a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #e5e9ec;
  color: #168acd;
  font-weight: 750;
  text-decoration: none;
}

.trust-section {
  background: var(--landing-night);
  color: #dce7ef;
}

.section-heading--light h2,
.trust-grid h3 {
  color: #fff;
}

.section-heading--light .eyebrow {
  color: var(--landing-gold);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-grid article {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.trust-grid article > span {
  color: var(--landing-gold);
  font-size: 13px;
  font-weight: 800;
}

.trust-grid h3 {
  margin-top: 18px;
  font-size: 20px;
}

.trust-grid p {
  margin-bottom: 0;
  color: #b7c7d3;
}

.final-cta {
  background: #fff;
}

.final-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 42px;
  border: 1px solid var(--landing-border);
  border-radius: 22px;
  background: var(--landing-soft);
}

.final-cta .cta-group {
  flex: 0 0 auto;
  margin-top: 0;
}

.landing-footer {
  padding: 28px 0;
  border-top: 1px solid var(--landing-border);
  background: #fff;
}

.landing-footer__inner,
.landing-footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-footer__inner {
  justify-content: space-between;
}

.landing-footer a {
  color: var(--landing-muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .landing-header__inner {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 0;
  }

  .landing-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-login {
    margin-left: auto;
  }

  .hero__grid,
  .example-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__signal,
  .telegram-frame {
    width: 100%;
    max-width: 560px;
    margin: 0;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .landing-shell {
    width: min(100% - 24px, 1160px);
  }

  .landing-section {
    padding: 64px 0;
  }

  .hero {
    padding: 66px 0 72px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 48px);
  }

  .landing-nav {
    font-size: 14px;
  }

  .audience-grid,
  .process-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .audience-card,
  .process-path,
  .final-cta__inner {
    padding: 26px;
  }

  .cta-group,
  .landing-button {
    width: 100%;
  }

  .hero__signal {
    padding: 14px;
    border-radius: 18px;
  }

  .landing-footer__inner,
  .landing-footer nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-footer nav {
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .brand__mark {
    padding-inline: 10px;
    font-size: 17px;
  }

  .header-login {
    min-height: 42px;
    padding-inline: 13px;
  }

  .landing-nav {
    gap: 10px;
    font-size: 13px;
  }

  .audience-card,
  .process-path,
  .final-cta__inner {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
