/* =========================================================
   ENHANCEMENTS: unified SVG sizing, smooth scroll, button fade
   ========================================================= */

/* Плавная прокрутка (CSS) */
html {
  scroll-behavior: smooth;
}

/* Отступ при якорном переходе (учитываем высоту header) */
:target {
  scroll-margin-top: 90px;
}

/* Универсальный размер для иконок внутри кнопок */
.social-btn .icon,
.icon-24 {
  width: 24px;
  height: 24px;
  display: block;
}

/* Ховер-глоу соц-иконок */
.icon--discord path,
.icon--telegram path,
.icon--gmail path {
  transition: filter .45s ease, transform .45s var(--ease-out-back);
}

.social-btn:hover .icon--discord path,
.social-btn:hover .icon--telegram path,
.social-btn:hover .icon--gmail path {
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb) / 0.55));
}

/* Анимация появления соц-кнопок */
@keyframes fadeSlide {
  0%   { opacity:0; transform:translateY(16px) scale(.95); }
  60%  { opacity:1; }
  100% { opacity:1; transform:translateY(0) scale(1); }
}

.social-links .social-btn {
  opacity: 0;
  will-change: opacity, transform;
}

body.ui-ready .social-links .social-btn {
  animation: fadeSlide .65s var(--ease-out-back) forwards;
}

body.ui-ready .social-links .social-btn:nth-child(1){ animation-delay:.05s; }
body.ui-ready .social-links .social-btn:nth-child(2){ animation-delay:.18s; }
body.ui-ready .social-links .social-btn:nth-child(3){ animation-delay:.31s; }

/* Статистика: уточнение округлых соединений (если не заданы в базовом CSS) */
.stats-section .stat-icon {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Skills иконки — согласованный стиль */
.skill-icon svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pricing icons — заполняемые варианты */
.price-card .icon {
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.price-card .icon.fillable .i-fill {
  fill: currentColor;
  stroke: none;
}

/* Пара универсальных утилит (если нужно) */
.svg-smooth {
  shape-rendering: geometricPrecision;
}

.no-anim-prefers-reduced-motion {
  animation: none !important;
  transition: none !important;
}

/* Урезаем анимации при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  body.ui-ready .social-links .social-btn {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}