:root {
  --bg-body: #050816;
  --bg-elevated: rgba(10, 18, 40, 0.96);
  --bg-elevated-soft: rgba(15, 23, 55, 0.9);
  --accent: #5f7bff;
  --accent-soft: rgba(95, 123, 255, 0.15);
  --accent-strong: #9f7bff;
  --accent-gradient: linear-gradient(135deg, #5f7bff, #9f7bff, #2dd4bf);
  --border-subtle: rgba(148, 163, 184, 0.25);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --danger: #fb7185;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 60px rgba(15, 23, 55, 0.7);
  --shadow-subtle: 0 18px 40px rgba(15, 23, 55, 0.55);
  --shadow-button: 0 14px 35px rgba(37, 99, 235, 0.5);
  --container-width: 1120px;
  --nav-height: 72px;
}

*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 0 -20%, #1f2937, transparent 55%), radial-gradient(circle at 100% 120%, #111827, transparent 55%), var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

button {
  font-family: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0.9), rgba(5, 8, 22, 0.88), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 11px;
  background: conic-gradient(from 180deg, #5f7bff, #9f7bff, #2dd4bf, #5f7bff);
  box-shadow: 0 0 25px rgba(95, 123, 255, 0.75);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 10%, rgba(248, 250, 252, 0.85), transparent 52%), radial-gradient(circle at 80% 90%, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
}

.logo-text {
  color: #e5e7eb;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-gradient);
  transition: width 0.2s ease-out;
}

.nav a:hover {
  color: var(--text-main);
}

.nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at 0 0, rgba(95, 123, 255, 0.4), transparent 55%), rgba(15, 23, 42, 0.96);
  cursor: pointer;
}

.burger span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-image: var(--accent-gradient);
  color: #f9fafb;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.7);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-ghost:hover {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(148, 163, 184, 0.8);
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Hero */

.hero {
  position: relative;
  padding: 48px 0 72px;
  overflow: hidden;
  scroll-margin-top: 96px;
}

.hero-bg-orbits {
  position: absolute;
  inset: -120px 0 0;
  pointer-events: none;
  opacity: 0.9;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  mix-blend-mode: screen;
}

.orbit-1 {
  width: 620px;
  height: 620px;
  top: 5%;
  right: -260px;
  background: radial-gradient(circle at 30% 0, rgba(95, 123, 255, 0.4), transparent 60%);
  animation: floatOrbit 22s linear infinite;
}

.orbit-2 {
  width: 420px;
  height: 420px;
  top: 35%;
  right: 10%;
  background: radial-gradient(circle at 80% 100%, rgba(45, 212, 191, 0.45), transparent 60%);
  animation: floatOrbitReverse 28s linear infinite;
}

.orbit-3 {
  width: 520px;
  height: 520px;
  top: -10%;
  right: 30%;
  background: radial-gradient(circle at 40% 50%, rgba(79, 70, 229, 0.38), transparent 65%);
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.4), transparent 50%), rgba(15, 23, 42, 0.9);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

.hero-subtitle {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-benefits {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-benefits li {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 12px;
  color: var(--text-muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-soft);
}

.hero-meta span::before {
  content: "•";
  margin-right: 6px;
  color: rgba(148, 163, 184, 0.9);
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.tour-card {
  position: relative;
  width: min(380px, 100%);
  border-radius: 26px;
  padding: 14px 14px 16px;
  background: radial-gradient(circle at 0 0, rgba(95, 123, 255, 0.4), transparent 60%), radial-gradient(circle at 100% 100%, rgba(45, 212, 191, 0.4), transparent 60%), rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.tour-screen {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-image: radial-gradient(circle at 10% 0%, rgba(248, 250, 252, 0.9), transparent 50%), radial-gradient(circle at 80% 100%, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1)), linear-gradient(130deg, #020617, #111827);
}

.tour-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.35), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(45, 212, 191, 0.35), transparent 55%),
    linear-gradient(150deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.8));
  mix-blend-mode: soft-light;
}

.tour-ui {
  position: absolute;
  left: 0;
  right: 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.tour-ui-top {
  top: 0;
}

.tour-ui-center {
  inset: 0 0 auto;
  top: 50%;
  transform: translateY(-50%);
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  flex-direction: column;
}

.tour-ui-bottom {
  bottom: 0;
  justify-content: flex-end;
  gap: 8px;
}

.tour-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  opacity: 0.65;
}

.tour-label {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.tour-action {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.9);
  background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.8), transparent 55%), rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  font-weight: 500;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.7);
}

.chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.56);
  color: var(--text-muted);
}

.tour-caption {
  margin: 12px 4px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-soft);
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(248, 250, 252, 0.45) 25%, transparent 55%);
  transform: translateX(-140%);
  animation: shimmerMove 3.6s ease-in-out infinite;
  mix-blend-mode: screen;
}

/* Sections */

.section {
  padding: 64px 0;
  scroll-margin-top: 96px;
}

.section-alt {
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), transparent 50%), rgba(2, 6, 23, 0.95);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section-header {
  text-align: left;
  max-width: 640px;
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-header p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

.card {
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 18px;
  box-shadow: var(--shadow-subtle);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(95, 123, 255, 0.7), transparent 60%), rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(129, 140, 248, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.7);
}

.step-body h3 {
  margin: 2px 0 6px;
  font-size: 16px;
}

.step-body p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Cases */

.cases-grid .card {
  position: relative;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #c7d2fe;
  font-size: 11px;
  margin-bottom: 10px;
}

.case-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.case-card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.link-like {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #bfdbfe;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.link-like::after {
  content: "↗";
  font-size: 11px;
  opacity: 0.8;
}

.cases-footnote {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-soft);
}

.demo-tours {
  margin-top: 28px;
}

.demo-tours h3 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

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

.demo-tour-card {
  padding: 14px 14px 14px;
}

.tour-iframe-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
  box-shadow: var(--shadow-subtle);
  aspect-ratio: 16 / 9;
}

.tour-iframe-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-caption {
  margin: 10px 2px 2px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Pricing */

.pricing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
  position: relative;
  background: radial-gradient(circle at 0 0, rgba(79, 70, 229, 0.3), transparent 55%), var(--bg-elevated-soft);
  display: flex;
  flex-direction: column;
  padding-top: 28px;
}

.pricing-card-featured {
  background: radial-gradient(circle at 0 0, rgba(79, 70, 229, 0.6), transparent 60%), radial-gradient(circle at 85% 100%, rgba(45, 212, 191, 0.5), transparent 60%), var(--bg-elevated-soft);
  border-color: rgba(129, 140, 248, 0.85);
  box-shadow: 0 26px 65px rgba(30, 64, 175, 0.85);
}

.pricing-card h3 {
  margin: 2px 0 8px;
  font-size: 17px;
}

.price {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.pricing-card ul {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-card li + li {
  margin-top: 4px;
}

.badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(129, 140, 248, 0.8);
  color: #e5e7eb;
  font-size: 11px;
  margin-bottom: 20px;
}

.pricing-card .btn,
.pricing-card .btn-block {
  margin-top: auto;
}

.pricing-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-soft);
}

/* Lead form */

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-size: 13px;
  color: #d1d5db;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.8);
  background: rgba(15, 23, 42, 0.98);
}

.form-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-soft);
}

.field-hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

.lead-aside h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.lead-aside ul {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.lead-aside li + li {
  margin-top: 4px;
}

.lead-aside p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.ya-form-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ya-form-wrapper {
  padding: 18px 18px 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, rgba(79, 70, 229, 0.35), transparent 55%), rgba(10, 18, 40, 0.98);
  box-shadow: var(--shadow-subtle);
}

.ya-form-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border-radius: 12px;
  background: transparent;
}

/* FAQ */

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

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.96);
  padding: 10px 12px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 16px;
  color: var(--text-soft);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

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

.faq-item p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), transparent 55%), #020617;
  padding: 32px 0 22px;
}

.footer-inner {
  display: grid;
  gap: 20px;
}

.footer-main h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.footer-main p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-link {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  min-width: 190px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.contact-link:hover {
  border-color: rgba(129, 140, 248, 0.8);
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.contact-value {
  font-size: 14px;
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.9;
  margin-top: 4px;
}

.footer-meta {
  font-size: 12px;
}

/* Animations and scroll reveal */

@keyframes floatOrbit {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(0, 15px, 0) rotate(360deg);
  }
}

@keyframes floatOrbitReverse {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(0, -20px, 0) rotate(-360deg);
  }
}

@keyframes shimmerMove {
  0% {
    transform: translateX(-140%);
  }
  55% {
    transform: translateX(130%);
  }
  100% {
    transform: translateX(130%);
  }
}

.section,
.card,
.step,
.pricing-card,
.lead-layout,
.faq-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-content: flex-start;
    margin-top: 10px;
  }

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

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

  .lead-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
  }

  .nav {
    position: fixed;
    inset: calc(var(--nav-height) + 6px) 16px auto;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(9, 9, 11, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    transform-origin: top center;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .burger {
    display: inline-flex;
  }

  .site-header .btn-sm {
    display: none;
  }

  .hero {
    padding-top: 38px;
  }

  .section {
    padding: 46px 0;
  }

  .section-header {
    margin-bottom: 22px;
  }

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

  .lead-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-main h2 {
    font-size: 20px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .card {
    padding: 16px;
  }

  .site-footer {
    padding-bottom: 18px;
  }
}
/* Обновленные стили для кнопок с анимациями нажатия */

/* Основные стили кнопок (добавлены новые transition свойства) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.2s ease, 
              background 0.2s ease, 
              color 0.2s ease, 
              border-color 0.2s ease,
              opacity 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Эффект пульсации при нажатии (ripple effect) */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.btn:active::after {
  width: 200px;
  height: 200px;
  opacity: 1;
  transition: width 0.3s ease-out, height 0.3s ease-out, opacity 0.2s ease;
}

/* Анимация для primary кнопки */
.btn-primary {
  background-image: var(--accent-gradient);
  color: #f9fafb;
  box-shadow: var(--shadow-button);
  background-size: 100% 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.7);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
  background-size: 200% 100%;
  transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.1s ease,
              background-size 0.2s ease;
}

/* Анимация для ghost кнопки */
.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(148, 163, 184, 0.8);
}

.btn-ghost:active {
  transform: scale(0.97);
  background: rgba(20, 30, 50, 0.98);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(95, 123, 255, 0.3);
  transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.1s ease,
              background 0.1s ease;
}

/* Размеры кнопок с сохранением анимаций */
.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}

.btn-lg:active {
  transform: scale(0.96);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-sm:active {
  transform: scale(0.98);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-block:active {
  transform: scale(0.99);
}

/* Специальная анимация для кнопок в навигации */
.nav .btn:active {
  transform: scale(0.95);
}

/* Анимация для contact-link (футер) */
.contact-link {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  min-width: 190px;
  transition: border-color 0.15s ease, 
              background 0.15s ease, 
              transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.contact-link:hover {
  border-color: rgba(129, 140, 248, 0.8);
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-2px);
}

.contact-link:active {
  transform: scale(0.97) translateY(0);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(95, 123, 255, 0.2);
  transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.1s ease;
}

/* Анимация для burger меню */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at 0 0, rgba(95, 123, 255, 0.4), transparent 55%), rgba(15, 23, 42, 0.96);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease,
              border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.burger:hover {
  border-color: rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at 0 0, rgba(95, 123, 255, 0.5), transparent 55%), rgba(15, 23, 42, 0.98);
}

.burger:active {
  transform: scale(0.92);
}

.burger.is-open:active {
  transform: scale(0.92) rotate(0deg);
}

/* Анимация для link-like элементов */
.link-like {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #bfdbfe;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.2s ease,
              gap 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.link-like:hover {
  color: var(--accent-strong);
  gap: 8px;
}

.link-like:active {
  transform: scale(0.95);
  color: var(--accent);
}

.link-like::after {
  content: "↗";
  font-size: 11px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.link-like:active::after {
  transform: translate(2px, -2px);
}

/* Анимация для пунктов навигации */
.nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav a:active {
  color: var(--accent-strong);
}

.nav a:active::after {
  width: 100%;
  opacity: 0.7;
  transition: width 0.1s ease-out;
}

/* Анимация для FAQ */
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  padding: 4px 0;
  border-radius: var(--radius-md);
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary:active {
  transform: scale(0.99);
  background-color: rgba(95, 123, 255, 0.05);
}

/* Анимация для кнопок в hero секции */
.hero-cta .btn:active {
  transform: scale(0.96);
}

/* Дополнительная анимация для иконок в кнопках (если есть) */
.btn svg, .btn img {
  transition: transform 0.15s ease;
}

.btn:active svg, .btn:active img {
  transform: scale(0.9);
}

/* Специальные эффекты для touch устройств */
@media (hover: none) and (pointer: coarse) {
  .btn:active {
    transform: scale(0.97);
    transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .btn-primary:active {
    background-size: 150% 100%;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
  }
  
  /* Убираем hover эффекты на touch устройствах */
  .btn:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
    box-shadow: var(--shadow-button);
  }
  
  .btn-ghost:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.5);
  }
  
  .contact-link:hover {
    transform: none;
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.95);
  }
  
  .nav a:hover {
    color: var(--text-soft);
  }
  
  .nav a:hover::after {
    width: 0;
  }
}

/* Анимация для disabled состояния */
.btn:disabled, 
.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.btn:disabled:active,
.btn.disabled:active {
  transform: none;
}
/* Burger menu - исправленная версия */
.burger {
  display: none; /* Скрыт по умолчанию на десктопе */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 42px; /* Немного увеличил для лучшей тач-области */
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at 0 0, rgba(95, 123, 255, 0.4), transparent 55%), rgba(15, 23, 42, 0.96);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  margin: 0;
  z-index: 100;
}

.burger span {
  width: 20px; /* Немного увеличил */
  height: 2px;
  border-radius: 99px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  display: block;
}

.burger:hover {
  border-color: rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at 0 0, rgba(95, 123, 255, 0.5), transparent 55%), rgba(15, 23, 42, 0.98);
}

.burger:active {
  transform: scale(0.94);
}

/* Состояние открытого бургера */
.burger.is-open {
  background: radial-gradient(circle at 0 0, rgba(95, 123, 255, 0.6), transparent 55%), rgba(15, 23, 42, 0.98);
}

.burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.burger.is-open:active {
  transform: scale(0.94);
}

/* Медиа-запрос для мобильных устройств - ИСПРАВЛЕН */
@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
  }

  /* Показываем бургер на мобильных */
  .burger {
    display: flex !important; /* Добавил !important для гарантии */
  }

  /* Скрываем десктопную навигацию */
  .nav {
    position: fixed;
    inset: calc(var(--nav-height) + 6px) 16px auto;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(9, 9, 11, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    transform-origin: top center;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: auto;
    min-width: 200px;
    z-index: 99;
  }

  .nav.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  /* Скрываем кнопку в хедере на мобильных */
  .site-header .btn-sm {
    display: none;
  }
}

/* Для совсем маленьких экранов */
@media (max-width: 520px) {
  .burger {
    width: 40px;
    height: 40px;
  }
  
  .burger span {
    width: 18px;
  }
}

/* Отдельный медиа-запрос для touch-устройств - НЕ переопределяем display */
@media (hover: none) and (pointer: coarse) {
  /* Убираем hover эффекты, но НЕ трогаем display */
  .burger:hover {
    transform: none;
    border-color: rgba(148, 163, 184, 0.3);
    background: radial-gradient(circle at 0 0, rgba(95, 123, 255, 0.4), transparent 55%), rgba(15, 23, 42, 0.96);
  }
  
  .burger:active {
    transform: scale(0.94);
  }
  
  /* Оставляем is-open класс активным */
  .burger.is-open:hover {
    background: radial-gradient(circle at 0 0, rgba(95, 123, 255, 0.6), transparent 55%), rgba(15, 23, 42, 0.98);
  }
}