/* ========== УЛУЧШЕННЫЙ ДИЗАЙН - МИРОВЫЕ ПРАКТИКИ ========== */

/* Улучшенные отступы секций */
section {
  padding: var(--spacing-3xl) 0 !important;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: var(--spacing-2xl) 0 !important;
  }
}

/* Градиентные разделители между секциями */
section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(74, 159, 216, 0.3), 
    rgba(76, 175, 80, 0.3), 
    transparent
  );
}

/* Улучшенные карточки */
.card {
  background: rgba(26, 31, 40, 0.7) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: var(--spacing-xl) !important;
  transition: all var(--duration-normal) var(--ease-standard) !important;
  box-shadow: var(--shadow-md) !important;
  overflow: hidden;
  position: relative;
}

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

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  border-color: rgba(74, 159, 216, 0.4) !important;
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(74, 159, 216, 0.15) !important;
}

/* Улучшенные кнопки */
.btn {
  letter-spacing: 0.02em;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn--primary:hover,
.btn--secondary:hover,
.btn--telegram:hover {
  transform: translateY(-4px) scale(1.02) !important;
}

/* Улучшенные ссылки */
a {
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  transition: width var(--duration-normal) var(--ease-standard);
}

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

/* Улучшенная типографика */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
}

h1 {
  letter-spacing: -0.02em;
}

h2 {
  letter-spacing: -0.015em;
}

p {
  max-width: 65ch;
  color: var(--color-text-secondary);
}

/* Стилизация скроллбара */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 14, 39, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-hover));
  border-radius: 5px;
  border: 2px solid rgba(10, 14, 39, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-accent-hover), var(--color-primary-light));
}

/* FIX для мобильной прокрутки */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
    height: 100%;
  }
  
  .site-main {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Предотвращение прокрутки внутри блоков */
  .hero-text,
  .hero-text,
  .hero-exp,
  .section-main,
  .section-blog {
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Улучшение отступов на мобильных */
  .container {
    padding-left: var(--spacing-lg) !important;
    padding-right: var(--spacing-lg) !important;
  }
  
  h1 {
    font-size: calc(var(--font-size-2xl) * 0.8) !important;
  }
  
  h2 {
    font-size: calc(var(--font-size-xl) * 0.9) !important;
  }
  
  p {
    font-size: var(--font-size-base) !important;
    line-height: 1.7 !important;
  }
  
  /* Убираем горизонтальный скролл */
  * {
    max-width: 100%;
  }
}

/* Анимация появления элементов */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-standard), transform 0.8s var(--ease-standard);
}

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

/* Улучшенные таблицы */
table {
  border-collapse: collapse;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

table th {
  background: linear-gradient(135deg, rgba(74, 159, 216, 0.3) 0%, rgba(76, 175, 80, 0.3) 100%);
  padding: var(--spacing-lg);
  text-align: left;
  font-weight: 600;
  color: #fff;
  border-bottom: 2px solid rgba(74, 159, 216, 0.5);
}

table td {
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
}

table tr:hover td {
  background: rgba(74, 159, 216, 0.05);
}/* ========== ДОПОЛНИТЕЛЬНЫЕ ОТСТУПЫ И КАРТОЧКИ ========== */

/* Увеличиваем отступы между секциями */
section {
  padding: var(--spacing-2xl) 0 !important;
}

@media (max-width: 768px) {
  section {
    padding: var(--spacing-xl) 0 !important;
  }
}

/* Карточки для FAQ (Частые вопросы) */
.faq-item {
  background: rgba(26, 31, 40, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.05), 
    transparent
  );
  transition: left 0.6s ease;
  z-index: 0;
}

.faq-item:hover::before {
  left: 100%;
}

.faq-item:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 159, 216, 0.4);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(74, 159, 216, 0.15);
}

.faq-item h3 {
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
  position: relative;
  z-index: 1;
}

.faq-item p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
  position: relative;
  z-index: 0.02em;
}

.faq-item p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* Карточки для колонок в разделе "Что такое компетентный маркетинг" */
.section-main__columns > div {
  background: rgba(26, 31, 40, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.section-main__columns > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.05), 
    transparent
  );
  transition: left 0.6s ease;
  z-index: 0;
}

.section-main__columns > div:hover::before {
  left: 100%;
}

.section-main__columns > div:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 159, 216, 0.4);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(74, 159, 216, 0.15);
}

.section-main__columns h3 {
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
}

.section-main__list {
  padding-left: var(--spacing-lg);
  margin-bottom: 0;
}

.section-main__list li {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
}



/* Дополнительные отступы для внутреннего контента */
.hero-text__inner,
.hero-exp__inner,
.faq .container,
.comparison-table .container,
.section-main__inner {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

/* Адаптивность */
@media (max-width: 768px) {
  .section-main__columns {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
    gap: var(--spacing-lg);
  }
  

  
  .faq-item,
  .section-main__columns > div {
    padding: var(--spacing-lg);
  }
}

/* Дополнительные padding по просьбе пользователя */

.section-blog__grid { padding: 10px !important; }

/* Увеличение отступов между соприкасающимися элементами */
.faq-item { margin-bottom: 20px !important; }
.blog-card { margin-bottom: 20px !important; }
.section-blog__grid { 
  gap: 20px !important; 
  padding: 10px !important;
}
.section-main__columns { gap: 20px !important; }

@media (max-width: 768px) {
  .faq-item { margin-bottom: 10px !important; }
  .blog-card { margin-bottom: 10px !important; }
  .section-blog__grid { gap: 10px !important; }
  .section-main__columns { gap: 10px !important; }
}
EOF'
/* ========== НОВЫЕ КАРТОЧКИ ДЛЯ РАЗДЕЛА "ПРАКТИКА И ЛИЧНЫЙ ОПЫТ" ========== */
.hero-exp__cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.hero-exp__card {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background: rgba(26, 31, 40, 0.7);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Градиентная рамка */
.hero-exp__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(74, 159, 216, 0.6),
    rgba(76, 175, 80, 0.6),
    rgba(139, 93, 255, 0.6),
    rgba(74, 159, 216, 0.6)
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

/* Внутренний блеск */
.hero-exp__card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

/* Эффект при наведении */
.hero-exp__card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(74, 159, 216, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

.hero-exp__card:hover::before {
  opacity: 1;
  animation: gradient-rotate 3s linear infinite;
}

.hero-exp__card:hover::after {
  opacity: 0.4;
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Иконка */
.hero-exp__card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 159, 216, 0.15);
  border-radius: 16px;
  border: 1px solid rgba(74, 159, 216, 0.3);
  color: #4a9fd8;
  position: relative;
  z-index: 1;
}

.hero-exp__card-icon svg {
  width: 32px;
  height: 32px;
}

/* Цифра */
.hero-exp__card-number {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #4a9fd8, #4caf50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  line-height: 1;
}

/* Заголовок */
.hero-exp__card-label {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* Описание */
.hero-exp__card-desc {
  font-size: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Особые стили для каждой карточки */
.hero-exp__card--years .hero-exp__card-icon {
  background: rgba(74, 159, 216, 0.2);
  border-color: rgba(74, 159, 216, 0.4);
  color: #4a9fd8;
}

.hero-exp__card--projects .hero-exp__card-icon {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.4);
  color: #4caf50;
}

.hero-exp__card--years .hero-exp__card-number {
  background: linear-gradient(135deg, #4a9fd8, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-exp__card--projects .hero-exp__card-number {
  background: linear-gradient(135deg, #4caf50, #8bc34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero-exp__cards {
    gap: 20px;
    margin: 30px 0;
  }
  
  .hero-exp__card {
    min-width: 100%;
    padding: 24px;
    border-radius: 20px;
  }
  
  .hero-exp__card-number {
    font-size: 40px;
  }
  
  .hero-exp__card-label {
    font-size: 16px;
  }
  
  .hero-exp__card-desc {
    font-size: 13px;
  }
}

/* Улучшение заголовка и подписи раздела */
.hero-exp__title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-exp__caption {
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-exp__title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  
  .hero-exp__caption {
    margin-top: 30px;
    font-size: 15px;
  }
}

/* ========== КАРТОЧКИ БЛОГА (STYLE GLASS) ========== */
.section-blog .blog-card {
  background: rgba(26, 31, 40, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-blog .blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(74, 159, 216, 0.5),
    rgba(139, 93, 255, 0.5),
    rgba(76, 175, 80, 0.5),
    rgba(74, 159, 216, 0.5)
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.section-blog .blog-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.section-blog .blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 16px 48px rgba(74, 159, 216, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.12);
}

.section-blog .blog-card:hover::before {
  opacity: 1;
  animation: gradient-rotate 4s linear infinite;
}

.section-blog .blog-card:hover::after {
  opacity: 0.4;
}

/* Изображение */
.section-blog .blog-card__top {
  position: relative;
  overflow: hidden;
}

.section-blog .blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-standard);
}

.section-blog .blog-card:hover .blog-card__image {
  transform: scale(1.05);
}

/* Тело карточки */
.section-blog .blog-card__body {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.section-blog .blog-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
  line-height: 1.3;
}

.section-blog .blog-card__excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex: 1;
}

/* Футер */
.section-blog .blog-card__footer {
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.section-blog .blog-card__cta {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.section-blog .blog-card__cta:hover {
  color: var(--color-accent-hover);
}

/* Метаданные */
.section-blog .blog-card__meta {
  position: absolute;
  bottom: var(--spacing-sm);
  left: var(--spacing-sm);
  right: var(--spacing-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.section-blog .blog-card__dot {
  margin: 0 6px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .section-blog .blog-card__image {
    height: 180px;
  }
  .section-blog .blog-card__body {
    padding: var(--spacing-md);
  }
  .section-blog .blog-card__title {
    font-size: var(--font-size-base);
  }
}

/* Исправление двойного скролла на мобильных */
@media (max-width: 768px) {
  .hero-text,
  .hero-exp,
  .section-main,
  .section-blog {
    overflow: visible !important;
    -webkit-overflow-scrolling: auto !important;
  }
}

/* Исправление высоты html/body на мобильных */
@media (max-width: 768px) {
  html, body {
    height: auto !important;
    max-width: none !important;
    position: static !important;
    overflow-x: visible !important;
  }
}

/* Убрать overflow-x у site-main */
@media (max-width: 768px) {
  .site-main {
    overflow-x: visible !important;
  }
}
