/* =========================================================
ФАЙЛ: /web/static/css/figma-styles.css
Назначение: стили PayBurst на основе дизайна из Figma
Дата создания: 2025
========================================================= */

/* =====================
   ПЕРЕМЕННЫЕ (из Figma)
   ===================== */
:root {
  /* Основные цвета - ЗЕЛЕНАЯ палитра */
  --color-primary: #147429;
  --color-primary-dark: #14742E;
  --color-primary-light: #14743F;
  --color-accent: #47B783;
  --color-accent-mid: #2D963D;
  --color-accent-light: #20A366;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(168deg, #147429 0%, #47B783 100%);
  --gradient-button: linear-gradient(171deg, #147444 0%, #20A35B 100%);
  --gradient-icon: linear-gradient(135deg, #147444 0%, #2D9650 100%);
  --gradient-card: linear-gradient(144deg, rgba(255, 255, 255, 0.60) 0%, rgba(248, 255, 254, 0.60) 100%);
  --gradient-section: linear-gradient(162deg, rgba(255, 255, 255, 0.70) 0%, rgba(255, 255, 255, 0.63) 100%);
  --gradient-divider: linear-gradient(90deg, #14742E 0%, #2D963D 50%, #147470 100%);
  
  /* Фоны */
  --color-bg-main: linear-gradient(180deg, #F7FBFA 0%, #E8F5F3 100%);
  --color-bg-section: linear-gradient(180deg, #E0F2F0 0%, #EEF7F6 100%);
  --color-bg-white: #FFFFFF;
  
  /* Текст */
  --color-text-primary: #0F1A17;
  --color-text-secondary: #4E6A65;
  --color-text-muted: #6B7280;
  --color-text-light: #2C3E3A;
  
  /* Серые оттенки */
  --color-grey-light: #F7FBFA;
  --color-grey-border: #E6F0EF;
  --color-grey-soft: #EEF6F5;
  --color-grey-placeholder: #9CA3AF;
  
  /* Тени */
  --shadow-sm: 0px 2px 8px rgba(20, 116, 52, 0.30);
  --shadow-md: 0px 4px 16px rgba(20, 116, 112, 0.35);
  --shadow-lg: 0px 4px 20px rgba(20, 116, 112, 0.08);
  --shadow-xl: 0px 12px 40px rgba(20, 116, 52, 0.40);
  
  /* Радиусы */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 50px;
  
  /* Размеры */
  --container-max: 1200px;
  --section-padding: 70px;
  --blur-amount: 12.5px;
}

/* =====================
   БАЗОВЫЕ СТИЛИ
   ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  min-width: 320px;
}

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--color-text-primary);
  background: var(--color-bg-main);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: 72px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer !important;
}

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

/* =====================
   КОНТЕЙНЕР
   ===================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 12px;
}

/* =====================
   НАВИГАЦИЯ (из Figma)
   ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  background: linear-gradient(178deg, rgba(255, 255, 255, 0.33) 0%, rgba(246, 251, 250, 0.33) 100%);
  backdrop-filter: blur(17.5px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.39);
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 40px;
}

/* Логотип */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-badge {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #14743C 0%, #2D9669 100%);
  box-shadow: 0px 4px 12px rgba(20, 116, 112, 0.30);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.brand-badge:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 16px rgba(20, 116, 112, 0.4);
}

.brand-badge img {
  width: 32px;
  height: 32px;
}

.brand span {
  font-size: 20px;
  font-weight: 800;
  color: #14743F;
  line-height: 32px;
}

/* Навигационные ссылки */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
}

.nav-links a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  color: #14743F;
  line-height: 25.6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(20, 116, 63, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-links a:hover {
  background: rgba(20, 116, 63, 0.1);
  transform: translateY(-1px);
}

.nav-links a:hover::before {
  left: 100%;
}

/* CTA кнопка в навигации */
.nav-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 197px;
}

.nav-cta .button-primary {
  padding: 12px 20px;
  background: linear-gradient(171deg, #147444 0%, #20A35B 100%);
  box-shadow: 0px 4px 16px rgba(20, 116, 52, 0.40);
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.30);
  color: white;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.2px;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.10);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta .button-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-cta .button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 20px rgba(20, 116, 52, 0.5);
}

.nav-cta .button-primary:hover::before {
  left: 100%;
}

/* =====================
   HERO СЕКЦИЯ
   ===================== */
.hero {
  padding: var(--section-padding) 0;
  background: var(--color-bg-section);
  position: relative;
  overflow: hidden;
  /* Фоновое изображение */
  background-image: url('/static/images/bg/bg_1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Overlay для лучшей читаемости */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 251, 250, 0.85) 0%, rgba(232, 245, 243, 0.85) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -115px;
  left: -192px;
  width: 2304px;
  height: 405px;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(45, 150, 145, 0.18) 0%, rgba(45, 150, 145, 0) 100%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  z-index: 2;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 27px 44px;
  background: linear-gradient(168deg, #147429 0%, #47B783 100%);
  box-shadow: 0px 12px 40px rgba(20, 116, 52, 0.40);
  border-radius: var(--radius-pill);
  border: 4px solid rgba(255, 255, 255, 0.30);
  color: white;
  font-size: 24px;
  font-weight: 700;
  line-height: 38.4px;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.10);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0px 16px 48px rgba(20, 116, 52, 0.5);
}

.hero-badge:hover::before {
  left: 100%;
}

/* Hero Title */
.hero-title-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  margin: 14px 0;
  position: relative;
}

.hero-logo {
  width: 60px;
  height: 60px;
  position: absolute;
  left: -8px;
  top: calc(50% - 30px);
  filter: drop-shadow(0px 4px 12px rgba(20, 116, 112, 0.35));
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
}

.hero-title {
  font-size: clamp(28px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  text-align: center;
}

.hero-title .brand-text {
  color: #1E8139;
}

.hero-sub {
  width: 100%;
  max-width: 956px;
  font-size: 20px;
  font-weight: 400;
  line-height: 28.8px;
  color: #14742E;
  text-align: center;
}

/* Hero Metrics */
.hero-metrics {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.metric {
  min-width: 389px;
  padding: 16px 17px;
  background: rgba(238, 246, 245, 0.80);
  border-radius: var(--radius-md);
  border: 4px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(var(--blur-amount));
  text-align: center;
  transition: all 0.3s ease;
}

.metric:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.metric strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 35.2px;
  color: var(--color-text-primary);
}

.metric span {
  font-size: 16px;
  font-weight: 400;
  line-height: 25.6px;
  color: var(--color-text-primary);
}

/* =====================
   СЕКЦИИ
   ===================== */
.section-soft {
  padding: var(--section-padding) 0;
  background: var(--color-bg-section);
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Фоновые изображения для секций */
#about {
  background-image: url('/static/images/bg/bg_2.png');
}

#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(224, 242, 240, 0.90) 0%, rgba(238, 247, 246, 0.90) 100%);
  pointer-events: none;
  z-index: 0;
}

#features {
  background-image: url('/static/images/bg/bg_3.png');
}

#features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(240, 248, 247, 0.90) 0%, rgba(224, 242, 240, 0.90) 100%);
  pointer-events: none;
  z-index: 0;
}

#shops {
  background-image: url('/static/images/bg/bg_4.png');
}


#reviews {
  background-image: url('/static/images/bg/bg_5.png');
}

#reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(240, 248, 247, 0.90) 0%, rgba(224, 242, 240, 0.90) 100%);
  pointer-events: none;
  z-index: 0;
}

#partners, #contacts {
  background-image: url('/static/images/bg/bg_6.png');
}

#partners::before, #contacts::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(240, 248, 247, 0.90) 0%, rgba(224, 242, 240, 0.90) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Контент секций поверх фона */
.section-soft .container {
  position: relative;
  z-index: 1;
}

/* Section Header */
.section-header {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto 24px;
  padding: 40px 21px;
  background: var(--gradient-section);
  border-radius: 15px;
  border: 4px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(var(--blur-amount));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-header::before {
  content: '';
  position: absolute;
  top: -116px;
  left: -578px;
  width: 2316px;
  height: 466px;
  background: radial-gradient(ellipse 51% 252% at 50% 50%, rgba(20, 116, 112, 0.03) 0%, rgba(20, 116, 112, 0) 70%);
  pointer-events: none;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  color: #147434;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}

.section-sub {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
  position: relative;
  z-index: 1;
}

/* Section Divider */
.section-divider {
  width: 100px;
  height: 4px;
  background: var(--gradient-divider);
  box-shadow: var(--shadow-sm);
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 1px;
  left: -20px;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(20, 116, 112, 0.20) 50%, transparent 100%);
  border-radius: 1px;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 46px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #147426 0%, #2D9655 100%);
  box-shadow: 0px 2px 4px rgba(20, 116, 112, 0.45);
  border-radius: 4px;
}

/* =====================
   КАРТОЧКИ
   ===================== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card, .enhanced-card {
  padding: 19px;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  border: 4px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(var(--blur-amount));
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover, .enhanced-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card Icon */
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-icon);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.card:hover .card-icon, .enhanced-card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0px 6px 20px rgba(20, 116, 112, 0.45);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2.2px;
}

/* Card Title */
.card h3, .enhanced-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  color: #14742E;
  margin: 0 0 12px;
}

/* Card Text */
.card p, .enhanced-card p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* =====================
   КНОПКИ
   ===================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  min-width: 200px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.button-primary {
  background: linear-gradient(169deg, #14744E 0%, #20A366 100%);
  box-shadow: var(--shadow-md);
  color: white;
}

.button-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.button-primary:hover {
  background: linear-gradient(169deg, #0f5a3b 0%, #1a8a50 100%);
  transform: translateY(-2px);
  box-shadow: 0px 8px 24px rgba(20, 116, 112, 0.45);
}

.button-primary:hover::before {
  left: 100%;
}

.button-outline {
  background: white;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}

.button-outline:hover {
  background: var(--color-grey-soft);
  border-color: var(--color-accent);
}

/* =====================
   ФОРМЫ
   ===================== */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 18px 22px;
  background: white;
  border: 2px solid var(--color-grey-border);
  border-radius: var(--radius-md);
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-primary);
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(20, 116, 41, 0.1);
  transform: translateY(-1px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-grey-placeholder);
  font-style: italic;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 8px;
  line-height: 22.4px;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314742E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  padding: 31px 0 30px;
  background: linear-gradient(180deg, #F7FBFA 0%, white 100%);
  border-top: 1px solid var(--color-grey-border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer .brand-badge {
  width: 36px;
  height: 36px;
}

.footer .brand strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 22.4px;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.footer-button:hover::before {
  left: 100%;
}

.instagram-button {
  background: linear-gradient(17deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
}

.cert-button {
  background: linear-gradient(165deg, #14744A 0%, #20A366 100%);
  box-shadow: var(--shadow-sm);
}

.telegram-footer-button {
  background: linear-gradient(163deg, #0088CC 0%, #00A8FF 100%);
  box-shadow: 0px 2px 8px rgba(0, 136, 204, 0.30);
}

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

/* =====================
   БУРГЕР-МЕНЮ
   ===================== */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
}

.burger:hover {
  transform: scale(1.05);
}

.burger svg {
  width: 100%;
  height: 100%;
}

/* Мобильное меню */
.mobile-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(178deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 250, 0.98) 100%);
  backdrop-filter: blur(17.5px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.39);
  box-shadow: 0px 8px 32px rgba(20, 116, 112, 0.2);
  padding: 20px;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu.is-open {
  display: flex !important;
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
  color: #14743F;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  background: rgba(20, 116, 63, 0.1);
}

.mobile-menu .button-primary {
  margin-top: 8px;
}

/* =====================
   АДАПТИВНОСТЬ
   ===================== */

/* Большие планшеты и ноутбуки */
@media (max-width: 1024px) {
  .nav-inner {
    gap: 20px;
  }
  
  .hero-metrics {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .metric {
    min-width: 280px;
    flex: 1 1 280px;
  }
  
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header {
    padding: 30px 20px;
  }
  
  .hero-badge {
    font-size: 20px;
    padding: 20px 36px;
  }
}

/* Планшеты */
@media (max-width: 768px) {
  body {
    padding-top: 68px;
  }
  
  .navbar {
    height: 68px;
  }
  
  /* Скрываем десктоп меню */
  .nav-links {
    display: none !important;
  }
  
  .nav-cta {
    display: none !important;
  }
  
  /* Показываем бургер */
  .burger {
    display: block;
  }
  
  .nav-inner {
    gap: 10px;
    justify-content: space-between;
  }
  
  /* Фоновые изображения - отключаем fixed для производительности */
  .hero,
  .section-soft {
    background-attachment: scroll !important;
  }
  
  /* Hero */
  .hero {
    padding: 56px 0;
  }
  
  .hero-badge {
    padding: 16px 28px;
    font-size: 18px;
  }
  
  .hero-logo {
    width: 50px;
    height: 50px;
    position: static;
    margin-bottom: 16px;
  }
  
  .hero-title-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .hero-metrics {
    flex-direction: column;
    width: 100%;
  }
  
  .metric {
    min-width: 100%;
    width: 100%;
  }
  
  /* Секции */
  .section-soft {
    padding: 56px 0;
  }
  
  .section-header {
    padding: 30px 16px;
    margin-bottom: 32px;
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Карточки */
  .card, .enhanced-card {
    padding: 24px;
  }
  
  /* Формы */
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px;
    padding: 16px 18px;
  }
  
  /* Footer */
  .footer .container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Мобильные устройства */
@media (max-width: 480px) {
  body {
    padding-top: 64px;
  }
  
  .navbar {
    height: 64px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  /* Фоны - облегченный вариант для мобильных */
  .hero,
  .section-soft {
    background-size: cover;
    background-position: center center;
  }
  
  /* Увеличиваем overlay для лучшей читаемости на маленьких экранах */
  .hero::after,
  #about::before,
  #features::before,
  #reviews::before,
  #partners::before,
  #contacts::before {
    background: linear-gradient(180deg, rgba(247, 251, 250, 0.92) 0%, rgba(232, 245, 243, 0.92) 100%) !important;
  }
  
  /* Навигация */
  .brand span {
    font-size: 17px;
  }
  
  .brand-badge {
    width: 32px;
    height: 32px;
  }
  
  .brand-badge img {
    width: 28px;
    height: 28px;
  }
  
  /* Hero */
  .hero {
    padding: 40px 0;
  }
  
  .hero-badge {
    padding: 12px 24px;
    font-size: 16px;
    line-height: 1.4;
  }
  
  .hero-title {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.2;
  }
  
  .hero-sub {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .hero-logo {
    width: 44px;
    height: 44px;
  }
  
  /* Метрики */
  .metric {
    min-width: 100%;
    padding: 14px 16px;
  }
  
  .metric strong {
    font-size: 20px;
  }
  
  .metric span {
    font-size: 14px;
  }
  
  /* Секции */
  .section-soft {
    padding: 40px 0;
  }
  
  .section-header {
    padding: 24px 12px;
    margin-bottom: 24px;
  }
  
  .section-title {
    font-size: clamp(24px, 5vw, 32px);
  }
  
  .section-sub {
    font-size: 16px;
  }
  
  /* Карточки */
  .card, .enhanced-card {
    padding: 20px;
  }
  
  .card-icon {
    width: 40px;
    height: 40px;
  }
  
  .card-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .card h3, .enhanced-card h3 {
    font-size: 18px;
  }
  
  .card p, .enhanced-card p {
    font-size: 15px;
  }
  
  /* Кнопки */
  .button {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
  }
  
  .nav-cta .button-primary {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  /* Дополнительные стили для предотвращения выхода за границы */
  .nav-cta .button-primary {
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* На очень узких экранах скрываем кнопку */
  @media (max-width: 480px) {
    .nav-cta {
      display: none !important;
    }
  }
  
  /* На средних экранах уменьшаем размер кнопки */
  @media (max-width: 768px) and (min-width: 481px) {
    .nav-cta .button-primary {
      padding: 8px 12px;
      font-size: 13px;
      max-width: 150px;
    }
  }
  
  /* Формы */
  .form-input,
  .form-textarea,
  .form-select {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .form-label {
    font-size: 13px;
  }
  
  /* Footer */
  .footer {
    padding: 24px 0;
  }
  
  .footer .brand-badge {
    width: 32px;
    height: 32px;
  }
  
  .footer-links {
    flex-direction: column;
    width: 100%;
  }
  
  .footer-button {
    width: 100%;
    justify-content: center;
  }
}

/* Очень маленькие устройства */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  
  .hero-badge {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 22px;
  }
  
  .hero-sub {
    font-size: 14px;
  }
  
  .metric {
    padding: 12px 14px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-sub {
    font-size: 14px;
  }
}

/* =====================
   АНИМАЦИИ
   ===================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =====================
   УТИЛИТЫ
   ===================== */
.text-center {
  text-align: center;
}

.mt-24 {
  margin-top: 24px;
}

.mb-24 {
  margin-bottom: 24px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

/* =====================
   СПИННЕР ЗАГРУЗКИ
   ===================== */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* =====================
   ВАЛИДАЦИЯ ФОРМ
   ===================== */
.form-input:invalid,
.form-textarea:invalid {
  border-color: #dc2626;
}

.form-input:valid,
.form-textarea:valid {
  border-color: #147429;
}

.form-input:focus:invalid,
.form-textarea:focus:invalid {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input:focus:valid,
.form-textarea:focus:valid {
  box-shadow: 0 0 0 3px rgba(20, 116, 41, 0.1);
}

/* =====================
   КРИТИЧЕСКОЕ ИСПРАВЛЕНИЕ МЕРЦАНИЯ КУРСОРА
   ===================== */
/* Принудительное исправление курсора для всех ссылок магазинов */
#shops a,
#shops a:hover,
#shops a:focus,
#shops a:active,
.shop a,
.shop a:hover,
.shop a:focus,
.shop a:active,
.shop-title-link,
.shop-title-link:hover,
.shop-title-link:focus,
.shop-title-link:active {
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

/* Максимальная специфичность для переопределения всех стилей */
html body #shops a,
html body #shops a:hover,
html body .shop a,
html body .shop a:hover {
  cursor: pointer !important;
}

