/* ISRmes Design System — shadcn/ui inspired */

:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 221.2 83.2% 53.3%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221.2 83.2% 53.3%;
  --radius: 0.5rem;
  --chart-1: 12 76% 61%;
  --chart-2: 173 58% 39%;
  --chart-3: 197 37% 24%;
  --chart-4: 43 74% 66%;
  --chart-5: 27 87% 67%;
  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-primary: 240 5.9% 10%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 240 4.8% 95.9%;
  --sidebar-accent-foreground: 240 5.9% 10%;
  --sidebar-border: 220 13% 91%;
  --sidebar-ring: 217.2 91.2% 59.8%;
}

.dark {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 217.2 91.2% 59.8%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 224.3 76.3% 48%;
  --chart-1: 220 70% 50%;
  --chart-2: 160 60% 45%;
  --chart-3: 30 80% 55%;
  --chart-4: 280 65% 60%;
  --chart-5: 340 75% 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;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.text-muted { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--secondary));
}

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.btn-outline:hover {
  background: hsl(var(--accent));
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Cards */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.bento-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.bento-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.bento-item.span-2 {
  grid-column: span 2;
}

.bento-item.span-2-row {
  grid-row: span 2;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
  text-decoration: none;
  letter-spacing: -0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: hsl(var(--primary));
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: hsl(var(--primary));
  border-radius: 1px;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  padding: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 2px);
}

.dropdown-menu a:hover {
  background: hsl(var(--accent));
}

/* Hero */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--muted)) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsl(var(--primary) / 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 5;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, hsl(var(--foreground)) 0%, hsl(var(--primary)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.hero-buttons .btn {
  position: relative;
  z-index: 11;
  pointer-events: auto;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Feature cards */
.feature-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Steps */
.steps {
  display: flex;
  gap: 2rem;
  counter-reset: step;
}

.step {
  flex: 1;
  position: relative;
  padding-top: 3rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: hsl(var(--primary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: -1rem;
  height: 2px;
  background: hsl(var(--border));
}

.step:last-child::after {
  display: none;
}

/* Table */
.table-container {
  overflow-x: auto;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}

th {
  background: hsl(var(--muted));
  font-weight: 600;
  font-size: 0.875rem;
}

tr:hover {
  background: hsl(var(--accent));
}

/* FAQ */
.faq-item {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background: hsl(var(--card));
  transition: background 0.2s;
}

.faq-question:hover {
  background: hsl(var(--accent));
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.25rem 1.25rem;
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background: hsl(var(--muted));
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer-links h4 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
}

.animate.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* Dark mode toggle */
.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  color: hsl(var(--foreground));
}

.dark-mode-toggle:hover {
  background: hsl(var(--accent));
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.badge-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid hsl(var(--border));
  margin-bottom: 2rem;
}

.tab {
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}

.tab.active {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

.tab:hover {
  color: hsl(var(--foreground));
}

/* Alert */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  margin-bottom: 1rem;
}

.alert-info {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
}

.alert-success {
  background: hsl(142 76% 36% / 0.1);
  border-color: hsl(142 76% 36% / 0.2);
  color: hsl(142 76% 36%);
}

/* ROI Calculator specific */
.roi-calculator {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
}

.roi-result {
  background: hsl(var(--muted));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

/* FIX: ROI результат в столбик на мобильных */
@media (max-width: 768px) {
  .roi-result > div:first-child,
  #roi-result > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .roi-result .roi-value,
  #roi-result .roi-value {
    font-size: 1.75rem;
  }
}

.roi-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: hsl(var(--border));
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: hsl(var(--primary));
  border-radius: 50%;
  margin-left: -5px;
}

.timeline-date {
  font-size: 0.875rem;
  color: hsl(var(--primary));
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Security levels */
.security-level {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.security-level:hover {
  border-color: hsl(var(--primary));
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.security-level-number {
  width: 48px;
  height: 48px;
  background: hsl(var(--primary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* Partner logos placeholder */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  align-items: center;
}

.partner-item {
  height: 60px;
  background: hsl(var(--muted));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 600;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.2), hsl(var(--primary) / 0.05));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: hsl(var(--primary));
}

/* Logo in navbar */
.logo-img {
  height: 32px;
  width: auto;
  max-width: 120px;
  display: block;
  object-fit: contain;
}

.navbar .logo {
  display: flex;
  align-items: center;
  max-width: 140px;
  flex-shrink: 0;
}

/* ===== HAMBURGER MENU ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: hsl(var(--foreground));
  transition: all 0.3s;
  border-radius: 1px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== DESKTOP DROPDOWN ===== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  padding: 0.5rem;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: hsl(var(--accent));
}

/* ===== MOBILE MENU ===== */
.nav-links.mobile-open {
  display: flex;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 1.5rem;
  gap: 0;
  z-index: 999;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  height: auto;
  min-height: calc(100vh - 64px);
  padding-bottom: 3rem;
}

.nav-links.mobile-open li {
  width: 100%;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.nav-links.mobile-open li:last-child {
  border-bottom: none;
}

.nav-links.mobile-open a {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  width: 100%;
}

.nav-links.mobile-open .dropdown {
  position: static;
}

.nav-links.mobile-open .dropdown > a::after {
  content: ' ▼';
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.nav-links.mobile-open .dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0 0 0.5rem 1rem;
  display: none;
  min-width: auto;
}

.nav-links.mobile-open .dropdown.open .dropdown-menu,
.nav-links.mobile-open .dropdown-menu.show {
  display: block;
}

.nav-links.mobile-open .dropdown-menu a {
  font-size: 1rem;
  padding: 0.75rem 0;
  color: hsl(var(--muted-foreground));
  border-bottom: none;
}

.nav-links.mobile-open .dropdown-menu a:hover {
  background: transparent;
  color: hsl(var(--primary));
}

/* Mobile CTA button in menu */
.nav-links.mobile-open .mobile-cta {
  margin-top: 1rem;
  padding: 1rem 0;
  border-top: 2px solid hsl(var(--border));
}

.nav-links.mobile-open .mobile-cta .btn {
  width: 100%;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  /* FIX: padding для карточек отраслей */
  .feature-card {
    padding: 1rem;
  }

  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 6rem 0 2rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }

  /* FIX 3: grid-4 на главной "4 линейки" — 1 колонка */
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  /* FIX 4: bento-grid — 1 колонка */
  .bento-grid {
    grid-template-columns: 1fr !important;
  }
  .bento-item.span-2,
  .bento-item.span-2-row {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .steps { flex-direction: column; }
  .step { padding-top: 3.5rem; }
  .step::after { display: none; }

  /* FIX 5: Отступ после .step::before */
  .step::before {
    margin-bottom: 0.75rem;
  }
  .step h3 {
    margin-top: 0.5rem;
  }

  .section { padding: 3rem 0; }

  .roi-calculator { padding: 1.25rem; }
  .roi-value { font-size: 1.75rem; }

  .table-container { font-size: 0.75rem; }
  th, td { padding: 0.5rem; }

  .security-level { flex-direction: column; gap: 1rem; }
  .security-level-number { width: 40px; height: 40px; font-size: 1rem; }

  .timeline { padding-left: 1.5rem; }
  .timeline-item::before { left: -1.5rem; }

  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .mobile-menu-btn { display: flex; }
  .nav-links { display: none; }

  /* FIX 2: CTA button в мобильном меню */
  .navbar .btn-primary {
    display: none;
  }

  .logo-img {
    height: 28px;
    max-width: 100px;
  }
  .navbar .logo {
    max-width: 120px;
  }

  .navbar .container {
    height: 56px;
  }

  /* FIX 6: Footer отступ слева 10px */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding-left: 10px;
  }

  .footer .container {
    padding-left: calc(1.5rem + 10px);
    padding-right: 1.5rem;
  }
}

/* Industries grid mobile fix */
@media (max-width: 768px) {
  .industries-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* Desktop CTA - hide on mobile */
.desktop-cta {
    display: inline-flex;
}

.mobile-cta {
    display: none;
}

@media (max-width: 768px) {
    .desktop-cta {
        display: none !important;
    }

    .mobile-cta {
        display: list-item !important;
    }

    .mobile-cta .btn {
        font-size: 0.875rem;
        padding: 0.65rem 1.125rem;
        width: 100%;
        max-width: 75%;
        margin: 0 auto;
        display: flex;
    }
}

/* FIX: Формы не выходят за пределы экрана */
@media (max-width: 768px) {
  .roi-calculator,
  form,
  .form-group {
    max-width: 100%;
    overflow-x: hidden;
  }

  .form-input,
  .form-select,
  .form-textarea {
    max-width: 100%;
    min-width: 0;
  }
}
