/* dawsonitoid.info — edukacja: analityka ubezpieczeń po relokacji */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}
.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}
.animate-pulse-custom {
  animation: pulse 2s ease-in-out infinite;
}
.animate-count-up {
  animation: countUp 0.8s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.1s;
  opacity: 0;
}
.delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}
.delay-300 {
  animation-delay: 0.3s;
  opacity: 0;
}
.delay-400 {
  animation-delay: 0.4s;
  opacity: 0;
}
.delay-500 {
  animation-delay: 0.5s;
  opacity: 0;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  transition: transform 0.3s ease;
}
.stat-number:hover {
  transform: scale(1.05);
}

.testimonial-card:hover {
  transform: translateY(-3px);
}
.testimonial-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.burger-menu {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.burger-menu.active {
  transform: translateX(0);
  opacity: 1;
}

header nav .burger-button .burger-icon {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

header nav .burger-button.active .burger-icon:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

header nav .burger-button.active .burger-icon:nth-child(2) {
  opacity: 0;
}

header nav .burger-button.active .burger-icon:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.cookie-banner {
  animation: slideInUp 0.5s ease-out;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.faq-answer.faq-answer-open {
  max-height: 800px;
}

.faq-question {
  cursor: pointer;
  user-select: none;
}
.faq-question:hover {
  color: #22c55e;
}

.form-success-notification {
  animation: fadeSlideIn 0.4s ease-out;
}

.nav-link-active {
  color: #22c55e;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 40rem;
  margin-inline: auto;
  display: none;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(18 26 12 / 0.25);
  padding: 1.5rem;
}
.cookie-banner.is-visible {
  display: block;
}
.cookie-banner__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
.cookie-banner__text {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgb(18 26 12 / 0.55);
}
.cookie-panel.is-visible {
  display: flex;
}
.cookie-panel__dialog {
  width: min(100%, 32rem);
  max-height: min(90vh, 40rem);
  overflow: auto;
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 25px 50px -12px rgb(18 26 12 / 0.25);
  padding: 1.5rem;
}
.cookie-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cookie-panel__header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}
.cookie-panel__close {
  width: 44px;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #1f2937;
  flex-shrink: 0;
}
.cookie-panel__close:hover {
  background-color: #e1e1e3;
  border-color: #020617;
}
.cookie-panel__text {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.cookie-panel__options {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background-color: #e1e1e3;
}
.cookie-option input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: #020617;
}
.cookie-option__title {
  font-weight: 700;
  color: #1f2937;
}
.cookie-option__desc {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}
.cookie-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cookie-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 190;
  min-width: 44px;
  min-height: 44px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background-color: #020617;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgb(18 26 12 / 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.cookie-toggle:hover {
  background-color: #020514;
}
.cookie-btn {
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.cookie-btn--primary {
  background-color: #020617;
  color: #ffffff;
  border: 0;
}
.cookie-btn--primary:hover {
  background-color: #020514;
}
.cookie-btn--secondary {
  background-color: #e1e1e3;
  color: #020617;
  border: 1px solid #e5e7eb;
}
.cookie-btn--secondary:hover {
  border-color: #020617;
}
.cookie-btn--ghost {
  background-color: #ffffff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.cookie-btn--ghost:hover {
  background-color: #e1e1e3;
  color: #020617;
}
@media (min-width: 768px) {
  .cookie-banner {
    left: auto;
    right: 1.5rem;
    bottom: 5.5rem;
    margin-inline: 0;
  }
  .cookie-toggle {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}
