@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2);
  }
  50% {
    box-shadow: 0 0 24px 4px rgba(37, 99, 235, 0.12);
  }
}

@keyframes stat-pop {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-fade-up {
  animation: fade-up 0.7s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.animate-stat-pop {
  animation: stat-pop 0.5s ease-out forwards;
}

.animation-delay-100 {
  animation-delay: 0.1s;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-300 {
  animation-delay: 0.3s;
}

.animation-delay-400 {
  animation-delay: 0.4s;
}

.stat-counter.is-visible .stat-value {
  transition: color 0.3s ease;
}

.hero-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.swiper-reviews .swiper-button-prev,
.swiper-reviews .swiper-button-next {
  color: #2563eb;
}

.swiper-reviews .swiper-button-prev::after,
.swiper-reviews .swiper-button-next::after {
  font-size: 1.25rem;
}

.swiper-reviews .swiper-pagination-bullet {
  background: #9ca3af;
  opacity: 0.5;
}

.swiper-reviews .swiper-pagination-bullet-active {
  background: #2563eb;
  opacity: 1;
}

.burger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Font Awesome 5 Pro — локальные webfonts */
@font-face {
  font-family: "Font Awesome 5 Pro";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/fontawesome/webfonts/fa-solid-900.woff2") format("woff2"),
       url("../assets/fonts/fontawesome/webfonts/fa-solid-900.woff") format("woff");
}

.fas,
.fa-solid {
  font-family: "Font Awesome 5 Pro";
  font-weight: 900;
}

.site-icon {
  display: inline-block;
  line-height: 1;
}

.site-icon::before {
  display: inline-block;
}

/* Flaticon — локальные webfonts */
@font-face {
  font-family: "flaticon_qampin";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("../assets/fonts/flaticon/flaticon_qampin.woff2") format("woff2"),
       url("../assets/fonts/flaticon/flaticon_qampin.woff") format("woff");
}

i[class^="flaticon-"]:before,
i[class*=" flaticon-"]:before {
  font-family: flaticon_qampin !important;
  font-style: normal;
  font-weight: normal !important;
  display: inline-block;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: #6b7280;
  line-height: 1.7;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0.75rem 0 1rem 1.25rem;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content a {
  color: #2563eb;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #1d4ed8;
}

.form-field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35);
}

.field-error-msg {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #dc2626;
}

.form-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: min(22rem, calc(100vw - 2rem));
  transform: translateX(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.form-toast.is-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-answer.is-open {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-fade-in,
  .animate-pulse-glow,
  .animate-stat-pop {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
