:root {
  --color-primary: #2563eb;
  --color-primary-soft: #dbeafe;
  --color-accent: #facc15;
  --color-dark: #0b1220;

  --scroll-offset: 84px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(129, 140, 248, 0.18),
      transparent 55%
    ),
    #f3f4f6;
  min-height: 100vh;
}

body.is-loading {
  overflow: hidden;
}

section[id] {
  scroll-margin-top: var(--scroll-offset);
}

#hero {
  position: relative;
  background-image: url("/img/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero::before {
  content: none !important;
}

#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  background: radial-gradient(
      1200px 600px at 20% 20%,
      rgba(37, 99, 235, 0.22),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 80% 30%,
      rgba(59, 130, 246, 0.18),
      transparent 60%
    ),
    radial-gradient(
      700px 500px at 50% 85%,
      rgba(99, 102, 241, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, #0b1220, #0b1220);

  transition: opacity 0.35s ease, visibility 0.35s ease;
  opacity: 1;
  visibility: visible;
}

#pageLoader.page-loader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  width: min(520px, 100%);
  border-radius: 24px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  color: #fff;
}

.loader-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 18px;
  margin-top: 10px;
}

.loader-sub {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.loader-ring {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  margin: 0 auto;
  background: conic-gradient(
    from 180deg,
    #60a5fa,
    rgba(255, 255, 255, 0.12),
    #93c5fd
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 8px),
    #000 calc(100% - 8px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 8px),
    #000 calc(100% - 8px)
  );
  animation: loaderSpin 1s linear infinite;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.loader-bar {
  margin: 16px auto 0;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.loader-bar > i {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    rgba(96, 165, 250, 0),
    rgba(96, 165, 250, 0.9),
    rgba(147, 197, 253, 0)
  );
  animation: loaderShimmer 1.1s ease-in-out infinite;
}

@keyframes loaderShimmer {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .loader-ring,
  .loader-bar > i {
    animation: none !important;
  }
}

header.bg-blue-600 {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

header nav a {
  position: relative;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #38bdf8, #facc15);
  border-radius: 999px;
  transition: width 0.25s ease;
}

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

#destinations .rounded-2xl,
#hot-tours .rounded-2xl,
#reviews blockquote,
#benefits .p-6.bg-gray-50,
#faq .bg-white,
#upcomingList > div,
#tourResults > div,
#favoritesList > div {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

#destinations .rounded-2xl,
#hot-tours .rounded-2xl,
#reviews blockquote,
#upcomingList > div,
#tourResults > div,
#favoritesList > div {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#destinations .rounded-2xl:hover,
#hot-tours .rounded-2xl:hover,
#reviews blockquote:hover,
#upcomingList > div:hover,
#tourResults > div:hover,
#favoritesList > div:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(129, 140, 248, 0.35);
}

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

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

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-open {
  transform: translateX(0);
}

.mobile-menu-closed {
  transform: translateX(100%);
}

#notification {
  transition: opacity 0.3s ease;
}

.faq-content {
  max-height: 0;
  transition: max-height 0.3s ease;
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

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

.animate-slideInDown {
  animation: slideInDown 0.8s ease forwards;
}

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

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

#backToTop {
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.35);
}

section {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  section {
    padding-left: 0;
    padding-right: 0;
  }
}

footer.bg-blue-600 {
  background: radial-gradient(
    circle at top left,
    rgba(56, 189, 248, 0.25),
    rgba(15, 23, 42, 1)
  );
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1.2fr));
  gap: 2rem;
  align-items: flex-start;
}

.footer-col {
  font-size: 0.875rem;
}

.footer-col-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(191, 219, 254, 1);
  margin-bottom: 0.75rem;
}

footer.bg-blue-600 a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

footer.bg-blue-600 a:hover {
  color: #facc15;
  opacity: 1;
}

.social-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.social-icon--tg {
  border-color: #38bdf8;
}
.social-icon--vk {
  border-color: #3b82f6;
}
.social-icon--ok {
  border-color: #f97316;
}
.social-icon--wa {
  border-color: #22c55e;
}

.social-icon:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.6);
  background: #facc15;
  color: #0f172a;
  border-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  footer.bg-blue-600 {
    text-align: left;
  }
}

.agent-avatar {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

.agent-avatar:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  border-color: rgba(129, 140, 248, 0.9);
}

.agent-avatar-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  background: #e5e7eb;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.4);
}

.agent-avatar-badge--tg {
  background: #38bdf8;
  color: #0f172a;
}

.agent-avatar-badge--wa {
  background: #22c55e;
  color: #022c22;
}

#about .agent-card {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 184, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#about .agent-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(129, 140, 248, 0.35);
  background: rgba(255, 255, 255, 0.99);
}
