/* =====================================================
   VGRB Expert Solutions — Corporate Website Styles
   Clean, Fast, Professional B2B SaaS Design
   Version: 2.0 (Refactored)
   ===================================================== */

/* ==================== CSS VARIABLES ==================== */
:root {
  --primary-purple: #9b59b6;
  --primary-blue: #2980b9;
  --gradient-primary: linear-gradient(135deg, #9b59b6, #2980b9);
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 24px rgba(155, 89, 182, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button, input, select, textarea { font-family: inherit; border: none; outline: none; }
ul { list-style: none; }

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-dark); margin-bottom: 1rem; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.75; }
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--text-muted); }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ==================== LAYOUT ==================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-md); font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: all var(--transition-base);
  text-decoration: none; border: none; line-height: 1.4;
}
.btn-primary { background: var(--gradient-primary); color: #fff !important; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: #fff !important; }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: #fff; color: var(--primary-purple); border: 2px solid var(--border-light); }
.btn-secondary:hover { border-color: var(--primary-purple); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--text-dark); border: 1px solid var(--border-light); }
.btn-ghost:hover { background: var(--bg-light); border-color: var(--primary-purple); color: var(--primary-purple); }
.btn-danger { background: #ef4444; color: #fff; border: none; }
.btn-danger:hover { background: #dc2626; box-shadow: 0 4px 15px rgba(239,68,68,0.4); }

/* Back button — adaptive contrast & position fixed */
.btn-back {
  display: inline-flex !important; 
  align-items: center !important; 
  gap: 8px !important; 
  padding: 10px 22px !important;
  border-radius: var(--radius-md) !important; 
  font-weight: 600 !important; 
  font-size: 0.9rem !important;
  
  /* Базовий стиль для СВІТЛИХ сторінок (Послуги, CRM-бот): робимо яскравою */
  color: var(--primary-purple) !important; 
  background: #ffffff !important; 
  border: 2px solid var(--primary-purple) !important;
  
  box-shadow: var(--shadow-sm) !important;
  transition: all var(--transition-base) !important; 
  cursor: pointer !important; 
  text-decoration: none !important;
  
  /* Позиціонування: залізобетонно ліворуч без розтягування */
  display: table !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  margin-bottom: 32px !important;
  margin-top: 100px !important; /* Відступ, щоб не залітала під шапку */
}

/* Ефект при наведенні для світлих сторінок */
.btn-back:hover { 
  color: #ffffff !important; 
  border-color: var(--primary-purple) !important; 
  background: var(--primary-purple) !important; 
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Автоматична адаптація для ВСІХ ТЕМНИХ сторінок (Лідогенерація, Безпека) */
.hero-lead .btn-back,
.hero-dark .btn-back,
.section-dark .btn-back,
[class*="hero-"] .btn-back,
body:has(.hero-lead) .btn-back {
  color: #ffffff !important; 
  background: rgba(255, 255, 255, 0.1) !important; 
  border-color: rgba(255, 255, 255, 0.3) !important;
  margin-top: 40px !important; /* На темних екранах великий відступ не потрібен */
}

/* Ефект при наведенні на темних сторінках */
.hero-lead .btn-back:hover,
.hero-dark .btn-back:hover,
.section-dark .btn-back:hover,
[class*="hero-"] .btn-back:hover {
  background: #ffffff !important;
  color: var(--text-dark) !important;
  border-color: #ffffff !important;
}

.btn-back:hover { 
  color: #ffffff !important; 
  border-color: var(--primary-purple) !important; 
  background: var(--primary-purple) !important; 
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Універсальний стиль для ВСІХ темних сторінках (і лідогенерація, і безпека) */
.hero-lead .btn-back,
.hero-dark .btn-back,
.section-dark .btn-back,
body:has(.hero-lead) .btn-back,
body:has([style*="background"]) .btn-back {
  color: #ffffff !important; 
  background: rgba(255, 255, 255, 0.1) !important; 
  border-color: rgba(255, 255, 255, 0.3) !important;
  margin-top: 40px !important; /* На темних банерах великий відступ не потрібен */
}

.hero-lead .btn-back:hover,
.hero-dark .btn-back:hover,
.section-dark .btn-back:hover {
  background: #ffffff !important;
  color: var(--text-dark) !important;
  border-color: #ffffff !important;
}

.btn-back:hover { 
  color: #ffffff !important; 
  border-color: var(--primary-purple) !important; 
  background: var(--primary-purple) !important; 
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Автоматична адаптація на темних екранах (як твоя Лідогенерація) */
.hero-lead .btn-back,
.hero-dark .btn-back,
.section-dark .btn-back {
  color: #ffffff !important; 
  background: rgba(255, 255, 255, 0.1) !important; 
  border-color: rgba(255, 255, 255, 0.3) !important;
  margin-top: 40px !important; /* На темному банері вже є свій padding, великий відступ не потрібен */
}

.hero-lead .btn-back:hover,
.hero-dark .btn-back:hover,
.section-dark .btn-back:hover {
  background: #ffffff !important;
  color: var(--text-dark) !important;
  border-color: #ffffff !important;
}
.btn-back:hover { color: #fff; border-color: var(--primary-purple); background: var(--primary-purple); }
/* On dark backgrounds */
.hero-dark .btn-back,
.section-dark .btn-back {
  color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25);
}
.hero-dark .btn-back:hover,
.section-dark .btn-back:hover {
  background: rgba(255,255,255,0.2); border-color: #fff;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm); transition: all var(--transition-base);
  border: 1px solid var(--border-light); display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-purple); }
.card-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary); border-radius: var(--radius-md); margin-bottom: 20px;
  font-size: 1.5rem; color: #fff;
}
.card h3 { margin-bottom: 12px; color: var(--text-dark); }
.card p { color: var(--text-muted); line-height: 1.6; }
.card .btn { margin-top: auto; }

/* ==================== BADGES ==================== */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px;
  border-radius: 100px; font-size: 0.85rem; font-weight: 500;
  background: var(--bg-light); color: var(--primary-purple);
}

/* ==================== HEADER & NAV ==================== */
header {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; 
  transition: all var(--transition-base);
  
  /* ПРАВКА: Задаем жесткую высоту шапки, чтобы она не прыгала */
  height: 70px; 
  display: flex;
  align-items: center;
}
header.scrolled { 
  border-bottom-color: var(--border-light); 
  box-shadow: var(--shadow-sm); 
}

.header-inner {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  /* ПРАВКА: Убираем вертикальный padding, оставляем только боковые отступы */
  padding: 0 24px; 
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto;
  height: 100%; /* Шаблон заполняет всю высоту header */
}
.logo {
  font-size: 1.35rem; font-weight: 700; color: var(--text-dark);
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; flex-shrink: 0; text-decoration: none;
}
.logo span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-img { height: 38px; width: auto; display: block; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition-fast); padding: 6px 0;
}
.nav-links a:hover { color: var(--primary-purple); }
.nav-links a.active { color: var(--primary-purple); }
.nav-links a.btn-primary { color: #fff !important; padding: 10px 24px; font-size: 0.88rem; }
.nav-links a.btn-primary:hover { color: #fff !important; }

/* Dropdown */
.dropdown { position: relative; display: inline-flex; align-items: center; }
.dropdown-content {
  display: none; position: absolute; background: #fff; min-width: 250px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12); border-radius: var(--radius-md);
  padding: 8px 0; z-index: 1100; top: calc(100% + 8px); left: -16px;
  border: 1px solid var(--border-light);
}
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}
.dropdown-content a {
  color: var(--text-dark) !important; padding: 11px 20px !important;
  display: block !important; font-size: 0.9rem !important; transition: 0.2s;
  text-align: left; margin: 0 !important; line-height: 1.4;
}
.dropdown-content a:hover { background: var(--bg-light); color: var(--primary-purple) !important; }
.dropdown:hover .dropdown-content { display: block; }
.dropbtn::after { content: ' ▾'; font-size: 0.75rem; vertical-align: middle; opacity: 0.5; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all var(--transition-base); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg); padding: 24px; z-index: 999;
  opacity: 0; transform: translateY(-10px); transition: all var(--transition-base);
  pointer-events: none; max-height: calc(100vh - 70px); overflow-y: auto;
}
.mobile-menu.active { opacity: 1; transform: translateY(0); pointer-events: all; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-links a {
  font-size: 1rem; font-weight: 500; color: var(--text-dark);
  padding: 14px 0; border-bottom: 1px solid var(--border-light); transition: color var(--transition-fast);
}
.mobile-menu-links a:hover { color: var(--primary-purple); }
.mobile-menu-links .mobile-dropdown-title { color: var(--primary-purple); font-weight: 600; border-bottom: none; padding-bottom: 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 12px; }
.mobile-menu-links .mobile-dropdown-link { padding-left: 16px; font-size: 0.95rem; }
.mobile-menu-links a.btn-primary { margin-top: 16px; text-align: center; border-bottom: none; border-radius: var(--radius-md); }

/* ==================== FOOTER (Canonical 4-column) ==================== */
footer {
  background: var(--text-dark); color: #fff; padding: 60px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; margin-bottom: 24px;
}
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 1rem; }
.footer-col p { color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 12px; font-size: 0.95rem; }
.footer-col .logo { color: #fff; }
.footer-col .logo span { color: var(--primary-blue); -webkit-text-fill-color: var(--primary-blue); background: none; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color var(--transition-fast); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; color: rgba(255,255,255,0.4); font-size: 0.85rem;
}

/* ==================== FLOATING PAYMENT BUTTON ==================== */
.floating-pay-btn {
  position: fixed; bottom: 30px; right: 30px;
  background: linear-gradient(135deg, #8a2be2, #4a00e0); color: #fff;
  border: none; padding: 14px 24px; border-radius: 50px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px rgba(138,43,226,0.35); z-index: 998;
  transition: all var(--transition-base); font-family: var(--font-primary);
}
.floating-pay-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(138,43,226,0.45); }

/* Payment Modal */
.payment-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); display: none; justify-content: center;
  align-items: center; z-index: 1050; backdrop-filter: blur(4px);
}
.payment-modal-content {
  background: #fff; padding: 32px; border-radius: var(--radius-xl);
  width: 90%; max-width: 420px; position: relative; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: modalPop 0.3s ease-out;
}
.close-modal-btn {
  position: absolute; top: 16px; right: 16px; background: none;
  border: none; font-size: 1.5rem; cursor: pointer; color: #94a3b8;
  transition: color 0.2s; width: 32px; height: 32px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%;
}
.close-modal-btn:hover { color: var(--text-dark); background: var(--bg-light); }
@keyframes modalPop { from { transform: scale(0.95) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

/* ==================== PRICING ==================== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.price-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 40px; text-align: center;
  transition: all var(--transition-base); position: relative; overflow: hidden;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-purple); }
.price-card.featured { border: 2px solid var(--primary-purple); }
.price-badge {
  position: absolute; top: 16px; right: -30px; background: var(--primary-purple);
  color: #fff; padding: 4px 40px; transform: rotate(45deg); font-size: 0.8rem; font-weight: 700;
}
.price-amount { font-size: 2.5rem; font-weight: 800; color: var(--text-dark); margin: 20px 0; }
.price-amount span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-list { list-style: none; padding: 0; margin-bottom: 30px; text-align: left; }
.price-list li { margin-bottom: 12px; display: flex; gap: 10px; font-size: 0.95rem; }
.price-list li .icon { color: var(--primary-purple); font-weight: 700; }

/* Security block */
.security-block { background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; padding: 50px; border-radius: var(--radius-lg); margin-top: 80px; position: relative; overflow: hidden; }
.security-block h2 { color: #fff; margin-bottom: 20px; }

/* ==================== STORE ==================== */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; margin-top: 40px; }
.product-card { position: relative; overflow: hidden; }
.product-badge {
  position: absolute; top: 20px; right: 20px; background: var(--primary-purple);
  color: #fff; padding: 4px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
}
.product-price { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin: 20px 0; }
.product-price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; text-decoration: line-through; margin-right: 8px; }
.product-features { list-style: none; padding: 0; margin-bottom: 20px; font-size: 0.9rem; }
.product-features li { margin-bottom: 8px; display: flex; gap: 8px; }
.coming-soon { opacity: 0.55; filter: grayscale(1); pointer-events: none; }

/* ==================== BLOG ==================== */
.blog-card { height: 100%; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 0.85rem; color: var(--text-muted); }
.blog-category { background: var(--bg-light); color: var(--primary-blue); padding: 4px 12px; border-radius: 50px; font-weight: 600; font-size: 0.8rem; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 12px; line-height: 1.4; }
.blog-card p { flex-grow: 1; font-size: 0.95rem; }

/* ==================== ARTICLE STYLES ==================== */
.article-content { max-width: 800px; margin: 0 auto; font-size: 1.05rem; line-height: 1.85; color: var(--text-dark); }
.article-content h2 { margin-top: 48px; margin-bottom: 20px; color: var(--primary-purple); font-weight: 800; }
.article-content h3 { margin-top: 32px; margin-bottom: 16px; font-weight: 700; color: #0f172a; }
.article-content p { margin-bottom: 20px; }
.article-content ul { margin-bottom: 24px; padding-left: 24px; list-style-type: disc; }
.article-content li { margin-bottom: 10px; color: var(--text-dark); }
.article-header { text-align: center; margin-bottom: 56px; }
.article-meta-tag { color: var(--primary-purple); font-weight: 700; margin-bottom: 16px; display: inline-block; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--primary-purple); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--text-light); }

.cta-box { background: var(--bg-light); border-left: 5px solid var(--primary-purple); padding: 36px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; margin: 48px 0; }
.cta-box h3 { margin-top: 0; color: var(--text-dark); }
.cta-card-gradient { background: var(--gradient-primary); color: #fff; padding: 40px; border-radius: var(--radius-lg); margin: 48px 0; text-align: center; }
.cta-card-gradient h3 { color: #fff; margin-bottom: 12px; }
.cta-card-gradient .btn-light { background: #fff; color: var(--primary-purple); padding: 14px 32px; border-radius: var(--radius-md); font-weight: 700; text-decoration: none; display: inline-block; margin-top: 20px; transition: all 0.3s; }
.cta-card-gradient .btn-light:hover { transform: scale(1.03); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

.comparison-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 0.9rem; border-radius: var(--radius-md); overflow: hidden; }
.comparison-table th, .comparison-table td { border: 1px solid var(--border-light); padding: 14px 16px; text-align: left; }
.comparison-table th { background: var(--bg-light); color: var(--primary-purple); font-weight: 600; }

/* ==================== LEAD GEN ==================== */
.hero-lead { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; padding: 100px 0 60px; text-align: center; }
.hero-lead h1 { color: #fff; margin-bottom: 20px; font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.hero-lead p { color: #94a3b8; font-size: 1.1rem; max-width: 700px; margin: 0 auto 40px; line-height: 1.7; }
.workflow-section { background: var(--bg-light); padding: 80px 0; }
.workflow-step { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
.step-number { background: var(--primary-purple); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 1.1rem; }

/* ==================== FORMS ==================== */
.form-container { background: var(--bg-white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.form-group { margin-bottom: 24px; text-align: left; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); font-size: 0.9rem; }
.form-control { width: 100%; padding: 13px 16px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; transition: all 0.2s; background: #fff; color: var(--text-dark); }
.form-control:focus { border-color: var(--primary-purple); box-shadow: 0 0 0 3px rgba(155,89,182,0.1); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-hint { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .logo-img { height: 32px; }
  .logo { font-size: 1.2rem; }
  .section { padding: 60px 0; }
  .security-block { padding: 32px; }
  .security-block.grid-2 { grid-template-columns: 1fr; }
  /* ПРАВКА: Компактная кнопка в шапке на мобильных устройствах */
  .header-inner .btn {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .store-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-lead { padding: 80px 0 48px; }
}

/* ==================== HERO DARK (Articles & Inner Pages) ==================== */
.hero-dark {
  background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff;
  padding: 100px 0 50px; text-align: center;
}
.hero-dark h1 { color: #fff; }
.hero-dark p, .hero-dark .lead { color: rgba(255,255,255,0.75); }
.hero-dark .badge { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
.hero-dark .article-meta-tag { color: rgba(155,89,182,0.9); }
.hero-dark .breadcrumbs { color: rgba(255,255,255,0.5); }
.hero-dark .breadcrumbs a { color: rgba(155,89,182,0.9); }
.hero-dark .breadcrumbs span { color: rgba(255,255,255,0.35); }

/* ==================== LEGAL PAGES ==================== */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-top: 48px; margin-bottom: 16px; color: var(--primary-purple); font-size: 1.4rem; }
.legal-content h3 { margin-top: 32px; margin-bottom: 12px; font-size: 1.15rem; }
.legal-content p { margin-bottom: 16px; color: var(--text-dark); line-height: 1.8; }
.legal-content ul { margin-bottom: 20px; padding-left: 24px; list-style-type: disc; }
.legal-content li { margin-bottom: 8px; color: var(--text-dark); line-height: 1.7; }
.legal-content strong { color: var(--text-dark); }
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }

/* ==================== ADMIN PANEL ==================== */
.admin-body { font-family: var(--font-primary); background: var(--bg-light); color: var(--text-dark); }
.admin-container { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.admin-header { background: var(--gradient-primary); color: #fff; padding: 24px; border-radius: var(--radius-lg); margin-bottom: 32px; display: flex; justify-content: space-between; align-items: center; }
.admin-header h1 { color: #fff; font-size: 1.4rem; margin: 0; }
.admin-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-light); }
.admin-table th { background: var(--bg-light); font-weight: 600; color: var(--text-dark); }
.admin-table tr:hover { background: var(--bg-light); }
.admin-actions { display: flex; gap: 8px; }
.admin-actions a, .admin-actions button { font-size: 0.8rem; padding: 4px 10px; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; border: 1px solid var(--border-light); background: #fff; color: var(--text-dark); transition: all 0.2s; }
.admin-actions a:hover, .admin-actions button:hover { border-color: var(--primary-purple); color: var(--primary-purple); }
.admin-actions .delete-btn { color: #ef4444; border-color: #fecaca; }
.admin-actions .delete-btn:hover { background: #fef2f2; border-color: #ef4444; }

/* ==================== SPECIAL OFFER BADGE ==================== */
.special-offer-badge {
  position: absolute; top: 16px; left: 16px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; padding: 6px 14px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 700; z-index: 2;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
