@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-var-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0f1b2b;
  --muted: #56657a;
  --line: #e6ebf1;
  --soft: #f4f7fa;
  --blue: #229ed9;
  --blue-2: #2aabee;
  --blue-deep: #1b7fc4;
  --navy: #0e1621;
  --navy-ink: #9fb0c0;
  --green: #31b545;
  --grad: linear-gradient(135deg, var(--blue-2), var(--blue-deep));
  --radius: 20px;
  --shadow-card: 0 1px 2px rgba(15, 27, 43, 0.04), 0 8px 24px -12px rgba(15, 27, 43, 0.1);
  --shadow-btn: 0 8px 20px -8px rgba(34, 158, 217, 0.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-deep);
  text-decoration: none;
}

section[id] {
  scroll-margin-top: 80px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 30px;
  border-radius: 999px;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 26px -8px rgba(34, 158, 217, 0.65);
}

.btn svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.btn--small {
  font-size: 0.9rem;
  padding: 9px 18px;
  box-shadow: none;
}

.btn--small svg {
  width: 17px;
  height: 17px;
}

.btn--inverse {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 10px 28px -10px rgba(8, 36, 56, 0.5);
}

.btn--inverse:hover {
  filter: none;
  box-shadow: 0 14px 32px -10px rgba(8, 36, 56, 0.6);
}

/* ============ Header ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo img {
  height: 28px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang a,
.lang span {
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--muted);
}

.lang span {
  background: var(--soft);
  color: var(--ink);
}

/* ============ Hero ============ */
.hero {
  padding: 130px 0 30px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -260px;
  right: -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.13), transparent 65%);
  pointer-events: none;
}

.hero-bird {
  display: none;
  position: absolute;
  top: -60px;
  right: -70px;
  height: 115%;
  width: auto;
  opacity: 0.06;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 33rem;
  margin-bottom: 32px;
}

.cta-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 919px) {
  .hero-inner > div:first-child {
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-note {
    text-wrap: balance;
  }
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 26px;
}

.hero-phones .phone--back {
  display: none;
}

/* ============ Phone mockup ============ */
.phone {
  width: min(300px, 78vw);
  background: #10151c;
  border-radius: 46px;
  padding: 11px;
  box-shadow:
    0 34px 64px -24px rgba(13, 35, 54, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  flex: none;
}

.phone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
}

.phone-screen::before {
  content: '';
  display: block;
  height: 38px;
}

.phone-screen::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  border-radius: 12px;
  background: #10151c;
}

.phone--dark .phone-screen {
  background: #17212b;
}

.section--dark .phone {
  box-shadow:
    0 34px 64px -24px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* ============ Sections ============ */
.section {
  padding: 84px 0;
}

.section--soft {
  background: var(--soft);
}

.section-title {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 52px;
}

.section-title + .grid,
.section-title + .steps {
  margin-top: 52px;
}

/* ============ Cards / grids ============ */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(42, 171, 238, 0.1);
  color: var(--blue-deep);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

/* ============ Steps ============ */
.steps {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

.step-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 0.92;
  margin-bottom: 22px;
  background: var(--soft);
  box-shadow: var(--shadow-card);
}

.step-visual--shot::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 56px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
  pointer-events: none;
}

.step-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Telegram chat mock (step 1 visual) */
.chat {
  height: 100%;
  background: linear-gradient(160deg, #d9eefc, #cfe6f5 60%, #d6ecf3);
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  margin: 0 -16px 8px;
  padding: 12px 16px;
  box-shadow: 0 1px 1px rgba(15, 27, 43, 0.06);
}

.chat-head img {
  height: 30px;
  width: auto;
}

.chat-head-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}

.chat-head-status {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
}

.chat-msg {
  max-width: 82%;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(15, 27, 43, 0.08);
}

.chat-msg--user {
  align-self: flex-end;
  background: #effdde;
  border-bottom-right-radius: 5px;
}

.chat-msg--bot {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 5px;
  width: 82%;
}

.chat-bot-name {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-deep);
  margin-bottom: 2px;
}

.chat-msg--bot p {
  color: var(--ink);
}

.chat-btn {
  display: block;
  margin-top: 10px;
  text-align: center;
  background: rgba(42, 171, 238, 0.12);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 9px 0;
}

/* ============ Why Telegram (dark) ============ */
.section--dark {
  background: var(--navy);
  color: #fff;
}

.section--dark .section-title {
  color: #fff;
  text-align: left;
}

.dark-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.dark-points {
  display: grid;
  gap: 30px;
  margin-top: 44px;
}

.dark-point {
  display: flex;
  gap: 18px;
}

.dark-point-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(42, 171, 238, 0.16);
  color: var(--blue-2);
}

.dark-point-icon svg {
  width: 24px;
  height: 24px;
}

.dark-point h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.dark-point p {
  color: var(--navy-ink);
  font-size: 0.97rem;
}

.dark-phone {
  display: flex;
  justify-content: center;
}

/* ============ Pricing ============ */
.pricing-card {
  max-width: 430px;
  margin: 52px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 40px 36px;
  box-shadow: 0 24px 60px -30px rgba(15, 27, 43, 0.25);
  text-align: center;
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-plan {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.pricing-price {
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-price span {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 14px 0 26px;
}

.pricing-list {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid;
  gap: 12px;
}

.pricing-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.97rem;
}

.pricing-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--green);
  margin-top: 3px;
}

.pricing-card .btn {
  width: 100%;
}

/* ============ FAQ ============ */
.faq {
  max-width: 720px;
  margin: 52px auto 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue-deep);
  transition: transform 0.2s ease;
  flex: none;
  line-height: 1;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--muted);
  padding-top: 12px;
  font-size: 0.97rem;
}

/* ============ Final CTA ============ */
.final {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.final-bird {
  position: absolute;
  right: -30px;
  bottom: -110px;
  height: 135%;
  width: auto;
  opacity: 0.12;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.final .container {
  position: relative;
}

.final h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 16px;
}

.final p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin: 0 auto 36px;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

/* ============ Legal pages ============ */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 130px 20px 80px;
}

.legal h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 32px 0 10px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 22px;
  margin: 10px 0;
}

/* ============ Responsive ============ */
@media (min-width: 640px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 920px) {
  .hero {
    padding: 150px 0 60px;
  }

  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero-bird {
    display: block;
  }

  .hero-phones {
    justify-content: flex-end;
    padding-right: 140px;
  }

  .hero-phones .phone--front {
    position: relative;
    z-index: 2;
  }

  .hero-phones .phone--back {
    display: block;
    position: absolute;
    right: -16px;
    top: 56px;
    transform: scale(0.88);
    transform-origin: top right;
    opacity: 0.92;
    z-index: 1;
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .dark-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .section {
    padding: 110px 0;
  }
}

@media (max-width: 480px) {
  .header .btn span {
    display: none;
  }

  .header .btn {
    padding: 9px 12px;
  }
}

@media (max-width: 640px) {
  .final-bird {
    height: 95%;
    right: -80px;
    bottom: -50px;
    opacity: 0.1;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
