/* ============================================================
   MagicResto — Design System
   Inspired by snapbuild.ru, adapted for HoReCa
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  /* Backgrounds */
  --bg-primary:   #ffffff;
  --bg-secondary: #edf1f8;
  --bg-card:      #ffffff;
  --bg-card-hover:#f5f8ff;
  --bg-glass:     rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.82);
  --glass-shadow: 0 8px 48px rgba(58,130,247,0.07), inset 0 1px 0 rgba(255,255,255,0.95);

  /* Accents */
  --accent-orange: #f05a1a;
  --accent-pink:   #e83378;
  --accent-blue:   #3a82f7;
  --accent-navy:   #172554;
  --accent-amber:  #e89e00;

  /* Gradient */
  --gradient-main: linear-gradient(135deg, #f05a1a 0%, #e83378 50%, #3a82f7 100%);
  --gradient-text: linear-gradient(135deg, #f05a1a, #e83378, #3a82f7);
  --gradient-hero: linear-gradient(270deg, #f05a1a, #e83378, #c026d3, #3a82f7);
  --gradient-card: linear-gradient(135deg, #f05a1a 0%, #3a82f7 100%);

  /* Text */
  --text-primary:   #0f172a;
  --text-secondary: #64748b;
  --text-muted:     #94a3b8;

  /* Borders */
  --border:         rgba(0, 0, 0, 0.08);
  --border-accent:  rgba(58, 130, 247, 0.3);

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(0,0,0,0.09);
  --shadow-glow:   0 0 40px rgba(240, 90, 26, 0.15);
  --shadow-blue:   0 0 40px rgba(58, 130, 247, 0.15);

  /* Radius */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill: 100px;

  /* Spacing */
  --section-py: 100px;
  --container-px: 70px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  /* Subtle page-level gradient — makes glass elements pop */
  background: linear-gradient(160deg,
    #f8faff 0%,
    #fff8f5 25%,
    #f5f8ff 55%,
    #fff4f8 80%,
    #f6f9ff 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
.display { font-size: clamp(1.875rem, 5.5vw, 4.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -2px; }
.h1      { font-size: clamp(1.75rem, 4.5vw, 4.25rem); font-weight: 800; line-height: 1.06; letter-spacing: -1.8px; }
.h2      { font-size: clamp(1.5rem, 3.5vw, 3.25rem);  font-weight: 700; line-height: 1.1;  letter-spacing: -1.2px; }
.h3      { font-size: clamp(1.25rem, 2.5vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.8px; }
.h4      { font-size: clamp(1.125rem, 2vw, 2rem);     font-weight: 600; line-height: 1.2;  letter-spacing: -0.4px; }
.h5      { font-size: 1.25rem;  font-weight: 600; line-height: 1.3; }
.body-xl { font-size: 1.375rem; font-weight: 400; line-height: 1.55; }
.body-lg { font-size: 1.125rem; font-weight: 400; line-height: 1.6; }
.body-md { font-size: 1rem;     font-weight: 400; line-height: 1.6; }
.body-sm { font-size: 0.875rem; font-weight: 400; line-height: 1.5; }

.text-gradient {
  background: var(--gradient-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }

/* ── Layout ── */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.section {
  padding: var(--section-py) 0;
}
.section-sm { padding: 60px 0; }
.section-dark {
  background: linear-gradient(180deg, #edf1f8 0%, #e8edf6 100%);
  border-top: 1px solid rgba(210,218,235,0.6);
  border-bottom: 1px solid rgba(210,218,235,0.6);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* ── Section Header ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(91, 155, 245, 0.1);
  border: 1px solid rgba(91, 155, 245, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.section-header {
  margin-bottom: 56px;
}
.section-header .h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); max-width: 600px; font-size: 1.125rem; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-lg { padding: 18px 36px; font-size: 1.125rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.btn-primary {
  background: var(--gradient-main);
  background-size: 200% 200%;
  color: #fff;
  animation: gradient-shift 6s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.45);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(58,130,247,0.4);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--accent-blue);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--accent-pink); }
.btn-ghost .arrow { transition: transform 0.2s; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ── Cards ── */
.card {
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}
.card-gradient {
  background: var(--gradient-card);
  border: none;
}
.card-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 20px;
  background: var(--gradient-text);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
}
.badge-orange { background: rgba(255,107,53,0.12); color: var(--accent-orange); border: 1px solid rgba(255,107,53,0.2); }
.badge-blue   { background: rgba(91,155,245,0.12); color: var(--accent-blue);   border: 1px solid rgba(91,155,245,0.2); }
.badge-pink   { background: rgba(255,75,139,0.12); color: var(--accent-pink);   border: 1px solid rgba(255,75,139,0.2); }
.badge-green  { background: rgba(34,197,94,0.12);  color: #22c55e;              border: 1px solid rgba(34,197,94,0.2); }

/* ── Tag chip ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.tag:hover, .tag.active {
  background: rgba(91,155,245,0.12);
  border-color: rgba(91,155,245,0.3);
  color: var(--accent-blue);
}

/* ── Icon Box ── */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.icon-box-orange { background: rgba(255,107,53,0.12); }
.icon-box-blue   { background: rgba(91,155,245,0.12); }
.icon-box-pink   { background: rgba(255,75,139,0.12); }
.icon-box-amber  { background: rgba(255,179,71,0.12); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
}

/* ══════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.06), inset 0 -1px 0 rgba(255,255,255,0.9);
  height: 72px;
  display: flex;
  align-items: center;
}
.header .container { width: 100%; }
.nav {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  position: relative;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 40px;
}
.nav-logo img, .nav-logo svg { height: 47px; width: auto; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-phone {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.nav-social {
  display: flex;
  gap: 8px;
}
.nav-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: all 0.2s;
}
.nav-social a:hover { background: rgba(58,130,247,0.10); border-color: var(--border-accent); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; touch-action: manipulation; cursor: pointer; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }

/* Мобильная CTA кнопка в nav — скрыта на десктопе */
.nav-cta-mobile { display: none; }

/* ══════════════════════════════════
   HERO SECTION
   ══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, #f05a1a, #e83378, #c026d3, #3a82f7);
  background-size: 400% 400%;
  animation: luxury-gradient 12s ease-in-out infinite;
  opacity: 0.08;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255,255,255,0) 0%, var(--bg-primary) 65%);
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(255,107,53,0.15) 0%, transparent 70%);
  animation: glow-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-content .section-label { margin-bottom: 24px; }
.hero-title {
  font-size: clamp(1.875rem, 6.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: clamp(-1px, -0.15vw, -2.5px);
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-trust-item { font-size: 0.875rem; color: var(--text-secondary); }
.hero-trust-item strong { color: var(--text-primary); display: block; font-size: 1.375rem; font-weight: 700; }
.hero-visual {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(240,90,26,0.08);
  max-width: 580px;
  width: 100%;
}
.hero-image-wrap img { width: 100%; display: block; }
.hero-float-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  animation: float 4s ease-in-out infinite;
}
.hero-float-card.card-tl { top: -20px; left: -20px; animation-delay: 0s; }
.hero-float-card.card-br { bottom: -20px; right: -20px; animation-delay: 2s; }
.hero-float-card .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.dot-orange { background: var(--accent-orange); box-shadow: 0 0 6px var(--accent-orange); }

/* ══════════════════════════════════
   STATS BAR
   ══════════════════════════════════ */
.stats-bar {
  background: rgba(237,241,248,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(210,220,238,0.65);
  border-bottom: 1px solid rgba(210,220,238,0.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 0 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-text);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.9rem; color: var(--text-secondary); }

/* ══════════════════════════════════
   WHY SECTION (numbered cards)
   ══════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.why-card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.95);
}
.why-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}
.why-num {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-text);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
  margin-bottom: 16px;
}
.why-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.why-card p  { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; }

/* ══════════════════════════════════
   MODULES SECTION
   ══════════════════════════════════ */
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.module-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(58,130,247,0.12);
}
.module-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.module-body { padding: 28px; }
.module-body .icon-box { margin-bottom: 16px; }
.module-body h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: 10px; }
.module-body p  { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.module-features { display: flex; flex-direction: column; gap: 8px; }
.module-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.module-feature::before {
  content: '✓';
  width: 18px;
  height: 18px;
  background: rgba(91,155,245,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}

/* ══════════════════════════════════
   FOR WHOM SECTION
   ══════════════════════════════════ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: default;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.audience-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(240,90,26,0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(240,90,26,0.10);
}
.audience-icon { font-size: 2.5rem; margin-bottom: 14px; }
.audience-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.audience-card p  { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }

/* ══════════════════════════════════
   INTEGRATIONS PREVIEW
   ══════════════════════════════════ */
.integrations-preview .section-header { margin-bottom: 40px; }
.int-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.int-logo-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.int-logo-pill:hover {
  background: rgba(58,130,247,0.08);
  border-color: var(--border-accent);
  color: var(--text-primary);
}
.int-count-badge {
  background: var(--gradient-main);
  background-size: 200%;
  animation: gradient-shift 6s ease-in-out infinite;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

/* ══════════════════════════════════
   MOBILE APP SECTION
   ══════════════════════════════════ */
.mobile-section {
  background: var(--bg-secondary);
}
.mobile-content { max-width: 500px; }
.mobile-content .section-label { margin-bottom: 20px; }
.mobile-content h2 { margin-bottom: 20px; }
.mobile-content p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.0625rem; line-height: 1.65; }
.app-store-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.app-store-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.app-store-btn:hover { background: var(--bg-card-hover); border-color: var(--border-accent); }
.app-store-btn .store-icon { font-size: 1.5rem; }
.app-store-btn .store-text .store-sub { font-size: 0.7rem; color: var(--text-secondary); }
.app-store-btn .store-text .store-name { font-size: 0.9375rem; font-weight: 600; }
.mobile-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mobile-img-wrap {
  max-width: 360px;
  position: relative;
}
.mobile-img-wrap img {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.mobile-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse, rgba(91,155,245,0.12) 0%, transparent 70%);
  z-index: -1;
}

/* ══════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════ */
.testimonial-card {
  background: rgba(255,255,255,0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all 0.3s;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.95);
}
.testimonial-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}
.testimonial-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 1rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--gradient-main);
  background-size: 200%;
  flex-shrink: 0;
}
.testimonial-author-info .name { font-weight: 600; font-size: 0.9375rem; }
.testimonial-author-info .role { font-size: 0.8125rem; color: var(--text-secondary); }

/* ══════════════════════════════════
   PRICING PREVIEW (cards)
   ══════════════════════════════════ */
.pricing-card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.80);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: all 0.3s;
  position: relative;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  background: linear-gradient(145deg, rgba(240,90,26,0.04), rgba(58,130,247,0.06));
  border-color: rgba(58,130,247,0.35);
  transform: scale(1.04);
  box-shadow: 0 8px 40px rgba(58,130,247,0.14);
}
.pricing-card:hover:not(.featured) { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.10); }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-main);
  background-size: 200%;
  animation: gradient-shift 6s ease-in-out infinite;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pricing-plan { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 1px; text-transform: uppercase; }
.pricing-price { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.pricing-desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 24px; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.pricing-feature .check { color: var(--accent-blue); font-size: 0.8rem; flex-shrink: 0; }
.pricing-feature .cross { color: var(--text-muted); font-size: 0.8rem; flex-shrink: 0; }
.pricing-feature.disabled { color: var(--text-muted); }

/* ══════════════════════════════════
   CTA BLOCK
   ══════════════════════════════════ */
.cta-block {
  background: linear-gradient(135deg, rgba(240,90,26,0.05) 0%, rgba(58,130,247,0.07) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,107,53,0.1) 0%, transparent 70%);
  animation: glow-pulse 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
.cta-block .container { position: relative; z-index: 1; }
.amocrm-form-wrap { position: relative; z-index: 2; }
.cta-block h2 { margin-bottom: 16px; position: relative; }
.cta-block p  { color: var(--text-secondary); font-size: 1.125rem; margin-bottom: 40px; position: relative; }
.cta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.cta-input {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,0.14);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cta-input::placeholder { color: var(--text-muted); }
.cta-input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(58,130,247,0.12); }

/* ── Custom CTA Form ── */
.cta-form-custom { max-width: 480px; margin: 0 auto; position: relative; z-index: 2; }
.cta-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.cta-field-wrap { width: 100%; }
.cta-form-custom .cta-input { width: 100%; box-sizing: border-box; flex: none; }
.cta-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: #ef4444;
  margin-bottom: 12px;
  text-align: left;
}
.cta-success {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #10b981;
  margin-top: 16px;
}
.cta-form-custom .btn { width: 100%; justify-content: center; }
.cta-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; position: relative; }

/* ══════════════════════════════════
   FOOTER — Liquid Glass
   ══════════════════════════════════ */
.footer {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-top: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 72px 0 32px;
  /* Decorative gradient shimmer overlay */
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(240, 90,  26, 0.03) 0%,
    rgba(255,255,255, 0.40) 40%,
    rgba(58, 130,247, 0.03) 100%);
  pointer-events: none;
  z-index: 0;
}
.footer > * { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand { max-width: 280px; }
.footer-brand img { height: 47px; margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: all 0.2s;
}
.footer-social a:hover { background: rgba(58,130,247,0.12); border-color: var(--border-accent); }
.footer-col h5 { font-size: 0.875rem; font-weight: 600; margin-bottom: 20px; color: var(--text-primary); letter-spacing: 0.5px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.8125rem; color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--text-secondary); }
.footer-copy { font-size: 0.8125rem; color: var(--text-muted); }

/* Developer credit — clean white strip below footer */
.footer-dev {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}
.footer-dev-label { display: none; }
.footer-dev a { display: flex; align-items: center; opacity: 0.8; transition: opacity 0.2s; }
.footer-dev a:hover { opacity: 1; }
.footer-dev img { height: 101px; width: auto; display: block; }

/* ══════════════════════════════════
   PRICING PAGE
   ══════════════════════════════════ */
.pricing-hero {
  padding: 100px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,107,53,0.05) 0%, transparent 100%);
}
.pricing-hero h1 { margin-bottom: 16px; }
.pricing-hero p { color: var(--text-secondary); font-size: 1.125rem; max-width: 520px; margin: 0 auto 40px; }
.pricing-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  margin-bottom: 60px;
}
.toggle-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.toggle-btn.active {
  background: var(--gradient-main);
  background-size: 200%;
  animation: gradient-shift 6s ease-in-out infinite;
  color: #fff;
}
.pricing-cards-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 80px;
}
.service-table {
  width: 100%;
  border-collapse: collapse;
}
.service-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.service-table td {
  padding: 16px 20px;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}
.service-table tr:last-child td { border-bottom: none; }
.service-table tr:hover td { background: rgba(255,255,255,0.02); }
.service-price { font-weight: 700; color: var(--accent-blue); white-space: nowrap; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-question {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.faq-answer { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.65; }

/* ══════════════════════════════════
   INTEGRATIONS PAGE
   ══════════════════════════════════ */
.int-hero {
  padding: 100px 0 60px;
  text-align: center;
}
.int-hero h1 { margin-bottom: 16px; }
.int-hero p { color: var(--text-secondary); font-size: 1.125rem; max-width: 520px; margin: 0 auto 40px; }
.int-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.int-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.int-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s;
  cursor: default;
}
.int-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.int-card-icon { font-size: 2rem; margin-bottom: 12px; }
.int-card h5 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 6px; }
.int-card p  { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }
.int-card-cat { font-size: 0.75rem; font-weight: 500; color: var(--accent-blue); margin-top: 10px; }

/* ══════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════ */
@keyframes luxury-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%       { transform: translate(-50%, -50%) scale(1.08); opacity: 0.8; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */

/* ── 1280px: большой планшет / ноутбук ── */
@media (max-width: 1280px) {
  :root { --container-px: 48px; }
  .why-grid          { grid-template-columns: repeat(3, 1fr); }
  .audience-grid     { grid-template-columns: repeat(3, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}

/* ── 1024px: планшет landscape ── */
@media (max-width: 1024px) {
  :root { --container-px: 32px; --section-py: 80px; }
  .why-grid          { grid-template-columns: repeat(3, 1fr); }
  .audience-grid     { grid-template-columns: repeat(3, 1fr); }
  .pricing-cards-wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 32px; }
  .int-grid          { grid-template-columns: repeat(3, 1fr); }
  .grid-4            { grid-template-columns: repeat(2, 1fr); }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .stat-item         { border-right: none; border-bottom: 1px solid var(--border); padding: 20px 0; }
  .stat-item:nth-child(2n) { border-bottom: none; }
}

/* ── 768px: планшет portrait / большой телефон ── */
@media (max-width: 768px) {
  :root { --container-px: 24px; --section-py: 72px; }

  /* Nav — бургер */
  .nav-social   { display: none; }
  .nav-burger   { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 80px;
    right: 12px;
    left: auto;
    width: 220px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    padding: 8px;
    gap: 2px;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    z-index: 9999;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links a    { padding: 12px 16px; font-size: 1rem; border-radius: 10px; color: var(--text-primary); font-weight: 500; }
  /* CTA кнопка внутри мобильного меню */
  .nav-cta-mobile {
    display: flex;
    margin-top: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    border-radius: var(--radius-pill);
  }

  /* Бургер → X при открытом меню */
  .nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Hero */
  .hero         { flex-direction: column; min-height: auto; padding: 100px 0 64px; gap: 48px; }
  .hero-content { max-width: 100%; }
  .hero-visual  { width: 100%; }
  .hero-float-card { display: none; }

  /* Grids */
  .grid-2           { grid-template-columns: 1fr; }
  .grid-3           { grid-template-columns: repeat(2, 1fr); }
  .grid-4           { grid-template-columns: repeat(2, 1fr); }
  .grid-5           { grid-template-columns: repeat(2, 1fr); }
  .why-grid         { grid-template-columns: repeat(2, 1fr); }
  .audience-grid    { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards-wrap { grid-template-columns: 1fr; }
  .int-grid         { grid-template-columns: repeat(2, 1fr); }

  /* Misc */
  .mobile-section .flex { flex-direction: column; gap: 40px; }
  .pricing-card.featured { transform: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* Typography at tablet */
  .hero-subtitle  { font-size: 1.125rem; }
  .section-header { margin-bottom: 40px; }
  .section-header p { font-size: 1rem; }
  .hero-trust     { gap: 20px; }

  /* Stats */
  .stats-bar      { padding: 32px 0; }
  .stat-number    { font-size: 2.25rem; }
}

/* ── 600px: мобильный телефон ── */
@media (max-width: 600px) {
  :root { --container-px: 16px; --section-py: 60px; }

  /* Nav */
  .nav-phone  { display: none; }
  .nav-right  { gap: 8px; }
  .nav-links  { top: 80px; right: 8px; width: 200px; padding: 8px; }
  .nav-cart   { padding: 6px 10px; font-size: 0.85rem; }

  /* Hero */
  .hero           { padding: 80px 0 48px; gap: 40px; }
  .hero-title     { font-size: clamp(2rem, 9vw, 2.625rem); letter-spacing: -1px; }
  .hero-subtitle  { font-size: 1.0625rem; }
  .hero-actions   { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .hero-trust     { flex-wrap: wrap; gap: 16px; }

  /* Stats */
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-item     { border-right: none; border-bottom: 1px solid var(--border); padding: 20px 0; }
  .stat-item:last-child { border-bottom: none; }

  /* Grids — одна колонка */
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .why-grid  { grid-template-columns: 1fr; }
  .int-grid  { grid-template-columns: 1fr; }
  .int-filter { gap: 6px; }

  /* Аудитория — 2 колонки оставляем */
  .audience-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid  { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* CTA-форма */
  .cta-form      { flex-direction: column; }
  .cta-form .btn { width: 100%; justify-content: center; }

  /* Заголовки секций */
  .section-heading { font-size: clamp(1.75rem, 7vw, 2.25rem); }

  /* Section header — меньше отступ */
  .section-header { margin-bottom: 28px; }
  .section-header p { font-size: 0.9375rem; }

  /* Stats — компактнее */
  .stats-bar      { padding: 24px 0; }
  .stat-number    { font-size: 1.875rem; }
  .stat-label     { font-size: 0.8125rem; }

  /* Кнопки — 100% ширина */
  .btn-lg { padding: 15px 24px; font-size: 1rem; }

  /* Карточки с числами */
  .result-item { padding: 28px 16px; }

  /* Кал-во касс stepper */
  .kassa-calc { flex-direction: column; align-items: flex-start; }
}

/* ── 375px: маленький телефон ── */
@media (max-width: 375px) {
  :root { --container-px: 14px; --section-py: 52px; }

  .hero           { padding: 70px 0 40px; }
  .hero-title     { font-size: 1.75rem; letter-spacing: -0.75px; }
  .hero-subtitle  { font-size: 0.9375rem; margin-bottom: 28px; }
  .hero-trust     { gap: 12px; }
  .hero-trust-item strong { font-size: 1.125rem; }
  .hero-actions .btn { padding: 13px 20px; font-size: 0.9375rem; }

  .nav-logo img, .nav-logo svg { height: 32px; }

  .audience-grid  { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: 1fr; }
  .stat-item      { padding: 16px 0; border-bottom: 1px solid var(--border); border-right: none; }
  .stat-item:last-child { border-bottom: none; }
  .stat-number    { font-size: 1.75rem; }

  .section-header { margin-bottom: 20px; }
  .section-header p { font-size: 0.875rem; }
  .section-heading { font-size: 1.625rem; }
  .why-card .why-number { font-size: 2rem; }

  .btn-lg { padding: 13px 20px; font-size: 0.9375rem; }
  .result-item { padding: 20px 12px; }
}
