:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #0f2d5c;
  --muted: #45608d;
  --border: rgba(15, 45, 92, 0.08);
  --purple: #a95cf4;
  --purple-2: #c7a6f2;
  --footer: #072758;
  --shadow: 0 20px 50px rgba(15, 45, 92, 0.12);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell { min-height: 100vh; }
.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 20px;
}

.brand img {
  width: 120px;
  height: auto;
}

.install-link {
  font-size: 16px;
  color: var(--ink);
  transition: color 240ms ease, transform 240ms ease;
}

.install-link:hover {
  color: var(--purple);
  transform: translateY(-2px);
}

.hero {
  padding: 30px 0 56px;
}

.hero-copy {
  text-align: center;
  max-width: 1120px;
  margin: 0 auto;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 3.8vw, 74px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.hero .accent {
  background: linear-gradient(90deg, var(--purple), #ba63ff 45%, #8c59ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0 auto;
  max-width: 1060px;
  font-size: clamp(20px, 1.4vw, 34px);
  line-height: 1.35;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 46px;
}

.btn {
  height: 78px;
  padding: 18px 28px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease, background 280ms ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(103, 59, 198, 0.18);
}

.btn-secondary.btn:hover {
  transform: none;
  box-shadow: none;
}

.btn-primary {
  min-width: 370px;
  color: #fff;
  background: var(--purple);;
}

.btn-secondary {
  min-width: 370px;
  border: 2px solid rgba(15, 45, 92, 0.75);
  background: rgba(255,255,255,0.65);
}

.btn-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
}

.btn-text-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.btn-text-stack strong {
  font-size: 20px;
}

.btn-text-stack small {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
}

.btn-text-stack b, .parameter {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 2px;
}

.hero-media {
  margin: 72px auto 0;
  max-width: 1180px;
}

.hero-media img {
  width: 100%;
  filter: drop-shadow(0 28px 35px rgba(15, 45, 92, 0.12));
}

.features {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  padding: 18px 0 140px;
}

.feature-list {
  display: grid;
  gap: 20px;
  align-content: start;
}

.feature-card {
  min-height: 170px;
  border: 7px solid var(--purple-2);
  border-radius: 28px;
  background: rgba(255,255,255,0.55);
  padding: 20px 18px;
  text-align: center;
  display: grid;
  place-items: center;
  color: #233d68;
  transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.92);
}

.feature-icon {
  width: 72px;
  height: 72px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 800;
}

.feature-card h3 span {
  display: inline-block;
  margin-bottom: 2px;
}

.faq h2 {
  margin: 10px 0 30px;
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.05;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-item {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 24px 22px;
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 45, 92, 0.08);
  background: rgba(255,255,255,0.85);
}

.faq-item h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 1.4vw, 31px);
  line-height: 1.12;
}

.faq-item p {
  margin: 0;
  font-size: clamp(17px, 1vw, 24px);
  line-height: 1.45;
  color: #3e5884;
}

.site-footer {
  background: var(--footer);
  color: #fff;
}

.footer-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p,
.telegram-link {
  font-size: 14px;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 240ms ease, opacity 240ms ease;
}

.telegram-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.telegram-icon {
  width: 26px;
  height: 26px;
}

.telegram-icon svg {
  width: 100%;
  height: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 120ms; }
.delay-2 { transition-delay: 240ms; }

@media (max-width: 1180px) {
  .btn,
  .btn-primary,
  .btn-secondary {
    min-width: 0;
    width: min(100%, 440px);
  }

  .features {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 780px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    padding-top: 20px;
  }

  .install-link {
    font-size: 16px;
  }

  .hero {
    padding-top: 16px;
    padding-bottom: 34px;
  }

  .hero p {
    max-width: 700px;
  }

  .hero-actions {
    gap: 16px;
    margin-top: 30px;
  }

  .btn {
    min-height: 68px;
    padding: 16px 20px;
    font-size: 18px;
    border-radius: 18px;
  }

  .btn-text-stack strong { font-size: 17px; }
  .btn-text-stack small { font-size: 14px; }
  .btn-text-stack b { font-size: 13px; }

  .hero-media {
    margin-top: 36px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 144px;
  }

  .faq-item {
    padding: 20px 18px;
  }

  .footer-inner {
    min-height: auto;
    padding: 30px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner p,
  .telegram-link {
    font-size: 18px;
  }
}

/* FAQ */
.install-page .site-header {
  padding-bottom: 10px;
}

.install-main {
  padding: 50px 0 0;
}

.install-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 120px;
}

.install-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 50px;
  align-content: start;
}

.install-nav {
  display: grid;
  gap: 14px;
}

.install-nav-link {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  transition: color 240ms ease, transform 240ms ease;
}

.install-nav-link:hover,
.install-nav-link.active {
  color: var(--purple);
}

.install-nav-link:hover {
  transform: translateX(3px);
}

.install-warning {
  min-height: auto;
  display: block;
  text-align: left;
  padding: 22px 18px;
}

.install-warning h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.15;
  color: var(--purple);
}

.install-warning p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #3e5884;
}

.install-content {
  display: grid;
  gap: 72px;
}

.install-section {
  scroll-margin-top: 36px;
}

.install-title {
  margin: 0 0 24px;
  font-size: clamp(34px, 2.9vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

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

.install-step {
  position: relative;
  padding-left: 84px;
}

.install-step::before {
  counter-increment: install-step;
  content: counter(install-step) ".";
  position: absolute;
  left: 24px;
  top: 23px;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: var(--purple);
}

.install-step h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 1.45vw, 30px);
}

.install-step p {
  font-size: clamp(17px, 1vw, 22px);
}

.faq-item a, .install-warning a {
  color: var(--purple);
}


@media (max-width: 1180px) {
  .install-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .install-sidebar {
    position: static;
  }

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

@media (max-width: 780px) {
  .install-main {
    padding-top: 8px;
  }

  .install-layout {
    gap: 26px;
    padding-bottom: 56px;
  }

  .install-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .install-nav-link {
    font-size: 18px;
  }

  .install-warning {
    padding: 18px 16px;
    border-width: 5px;
    border-radius: 22px;
  }

  .install-warning h3 {
    font-size: 18px;
  }

  .install-warning p {
    font-size: 16px;
  }

  .install-content {
    gap: 40px;
  }

  .install-title {
    margin-bottom: 18px;
  }

  .install-step {
    padding-left: 60px;
  }

  .install-step::before {
    left: 18px;
    top: 20px;
    font-size: 22px;
  }
}