body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 18% 14%, rgba(227, 214, 162, 0.13), transparent 18%),
    radial-gradient(circle at 82% 24%, rgba(227, 214, 162, 0.1), transparent 20%),
    radial-gradient(circle at 50% 62%, rgba(227, 214, 162, 0.08), transparent 28%);
}

body.cursor-enabled,
body.cursor-enabled a,
body.cursor-enabled button,
body.cursor-enabled input,
body.cursor-enabled textarea,
body.cursor-enabled select {
  cursor: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif,
blockquote {
  font-family: "Cormorant Garamond", serif;
}

html {
  scroll-behavior: smooth;
}

.animate-scroll {
  animation: scroll 60s linear infinite;
  will-change: transform;
}

.hover\:scale-102:hover,
.group:hover .group-hover\:scale-102 {
  transform: scale(1.02);
}

.service-card {
  position: relative;
  box-shadow: none !important;
}

[data-lang] {
  transition: color 200ms ease;
}

.dental-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 32px;
  height: 54px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) rotate(-10deg) scale(0.78);
  transform-origin: 16px 40px;
  transition:
    opacity 220ms ease,
    transform 280ms ease;
  filter: drop-shadow(0 5px 9px rgba(82, 90, 98, 0.08));
}

.dental-cursor.is-visible {
  opacity: 0.98;
}

.dental-cursor.is-hovering {
  transform: translate3d(-50%, -50%, 0) rotate(-7deg) scale(0.82);
}

.dental-cursor.is-pressed {
  transform: translate3d(-50%, -50%, 0) rotate(-5deg) scale(0.72);
}

.dental-cursor.is-hidden {
  opacity: 0;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 4.25px;
  height: 4.25px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: rgba(79, 98, 90, 0.92);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.58),
    0 4px 10px rgba(79, 98, 90, 0.14);
  transform: translate3d(-50%, -50%, 0);
  transition:
    opacity 160ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.cursor-dot.is-visible {
  opacity: 0.96;
}

.cursor-dot.is-hovering {
  background: rgba(197, 179, 88, 0.98);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.64),
    0 5px 14px rgba(197, 179, 88, 0.2);
  transform: translate3d(-50%, -50%, 0) scale(1.14);
}

.cursor-dot.is-pressed {
  transform: translate3d(-50%, -50%, 0) scale(0.78);
}

.cursor-dot.is-hidden {
  opacity: 0;
}

.dental-cursor-handle {
  position: absolute;
  left: 14px;
  top: 18px;
  width: 3px;
  height: 33px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(101, 112, 120, 0.98) 0%,
      rgba(247, 248, 249, 0.98) 22%,
      rgba(162, 170, 176, 0.98) 42%,
      rgba(250, 251, 252, 0.98) 58%,
      rgba(131, 142, 150, 0.97) 78%,
      rgba(236, 239, 241, 0.96) 100%
    );
  box-shadow:
    inset 1px 0 1px rgba(255, 255, 255, 0.86),
    inset -1px 0 1px rgba(85, 96, 104, 0.18);
}

.dental-cursor-handle::before,
.dental-cursor-handle::after {
  content: "";
  position: absolute;
}

.dental-cursor-handle::before {
  left: -1px;
  right: -1px;
  top: 8px;
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(118, 128, 136, 0.95) 0%,
      rgba(243, 245, 246, 0.98) 22%,
      rgba(151, 158, 165, 0.95) 44%,
      rgba(246, 247, 248, 0.98) 58%,
      rgba(122, 132, 140, 0.94) 80%,
      rgba(233, 236, 238, 0.96) 100%
    );
}

.dental-cursor-handle::after {
  left: 1px;
  top: 9px;
  width: 1px;
  height: 12px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.24) 0 1px,
      rgba(138, 147, 155, 0.16) 1px 2px
    );
}

.dental-cursor-mirror {
  position: absolute;
  top: 3px;
  left: 6px;
  display: grid;
  place-items: center;
  width: 13px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(
      90deg,
      rgba(106, 118, 126, 0.98) 0%,
      rgba(250, 251, 252, 0.98) 24%,
      rgba(152, 163, 170, 0.97) 44%,
      rgba(246, 247, 248, 0.98) 58%,
      rgba(102, 115, 124, 0.98) 82%,
      rgba(229, 232, 235, 0.96) 100%
    );
  border: 1px solid rgba(225, 232, 236, 0.92);
  transform: rotate(9deg);
}

.dental-cursor-mirror::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 11px;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(113, 122, 130, 0.95) 0%,
      rgba(247, 248, 249, 0.98) 28%,
      rgba(152, 161, 168, 0.94) 52%,
      rgba(236, 239, 241, 0.96) 100%
    );
  transform: rotate(8deg);
}

.dental-cursor-glass {
  width: 10px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.98), rgba(249, 251, 252, 0.94) 34%, rgba(214, 228, 233, 0.76) 64%, rgba(164, 184, 194, 0.42) 100%);
}

.dental-cursor-glint {
  position: absolute;
  top: 3px;
  left: 2px;
  width: 3px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
}

[data-lang] {
  transition: color 200ms ease;
}

body.modal-open {
  overflow: hidden;
}

.modal-panel {
  animation: modal-in 300ms ease;
}

header > div {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
}

.mobile-nav {
  display: none;
}

#poziuris {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 24px !important;
  padding: 80px 64px !important;
}

#paslaugos .service-card {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 24px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

#paslaugos .service-card:hover {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(196, 179, 88, 0.9) !important;
}

#paslaugos .service-line {
  transform-origin: left center;
}

#kontaktai > div:last-child {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

main {
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(227, 214, 162, 0.09), transparent 14%),
    radial-gradient(circle at 74% 44%, rgba(227, 214, 162, 0.07), transparent 18%),
    radial-gradient(circle at 48% 86%, rgba(227, 214, 162, 0.06), transparent 16%);
}

main > * {
  position: relative;
}

@media (max-width: 900px) {
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .mobile-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(58, 68, 64, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at 20% 10%, rgba(227, 214, 162, 0.11), transparent 20%),
      radial-gradient(circle at 80% 22%, rgba(227, 214, 162, 0.08), transparent 22%),
      radial-gradient(circle at 50% 66%, rgba(227, 214, 162, 0.06), transparent 26%);
  }

  header {
    top: 8px !important;
    margin-top: 8px !important;
  }

  header > div {
    padding: 9px 11px !important;
    gap: 7px !important;
    min-height: 56px;
  }

  header .w-10.h-10 {
    width: 2rem !important;
    height: 2rem !important;
    font-size: 0.74rem !important;
  }

  header .font-bold.text-sm {
    font-size: 0.88rem !important;
    line-height: 1.05 !important;
  }

  header .text-xs.text-gray-600 {
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
  }

  header .flex.items-center.gap-4 {
    gap: 7px !important;
  }

  header [data-lang] {
    font-size: 0.76rem !important;
  }

  header [data-open-modal] {
    padding: 8px 13px !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  main {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  main::before {
    background:
      radial-gradient(circle at 22% 18%, rgba(227, 214, 162, 0.07), transparent 16%),
      radial-gradient(circle at 78% 44%, rgba(227, 214, 162, 0.05), transparent 20%),
      radial-gradient(circle at 48% 86%, rgba(227, 214, 162, 0.05), transparent 18%);
  }

  .animate-scroll {
    animation-duration: 42s;
  }

  .bg-\[\#5f756c\].text-white.py-3.overflow-hidden.border-b.border-white\/10 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .font-serif.italic {
    font-size: 1rem !important;
  }

  main > section:first-child {
    padding-top: 74px !important;
    padding-bottom: 48px !important;
    gap: 34px !important;
  }

  main > section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    gap: 34px !important;
  }

  #gydytoja {
    gap: 28px !important;
  }

  #gydytoja > div:first-child {
    max-width: 34rem;
  }

  #gydytoja > div:last-child {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  #gydytoja h3.text-2xl.font-serif.mb-2 {
    margin-bottom: 6px !important;
  }

  h1.font-serif.text-5xl {
    font-size: 2.9rem !important;
    line-height: 0.96 !important;
    margin-bottom: 14px !important;
  }

  h2.font-serif.text-4xl {
    font-size: 2.18rem !important;
    line-height: 1 !important;
  }

  h3.text-2xl,
  h3.font-serif.text-2xl {
    font-size: 1.8rem !important;
    line-height: 1.08 !important;
  }

  .text-lg.text-gray-600.mb-8.leading-relaxed,
  .text-gray-700.leading-relaxed,
  .text-gray-700.mb-8.leading-relaxed,
  .text-gray-600 {
    font-size: 0.98rem !important;
    line-height: 1.66 !important;
  }

  .absolute.bottom-0.right-0.translate-x-8.translate-y-8.bg-white\/80.backdrop-blur-xl.p-6.rounded-3xl.shadow-2xl.border.border-white\/50.max-w-xs {
    position: static !important;
    max-width: none !important;
    margin-top: 16px !important;
    transform: none !important;
    padding: 18px 18px 20px !important;
  }

  .flex.gap-4.flex-col.sm\:flex-row {
    gap: 12px !important;
  }

  .service-card {
    padding: 24px !important;
  }

  .service-card .text-4xl {
    font-size: 2rem !important;
  }

  #poziuris {
    padding: 34px 24px !important;
  }

  #poziuris blockquote {
    font-size: 1.82rem !important;
    line-height: 1.16 !important;
    margin-bottom: 20px !important;
  }

  #gydytoja .grid.grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding-top: 18px !important;
  }

  #gydytoja .grid.grid-cols-3 > div {
    padding: 14px 0 0 !important;
    border-top: 1px solid rgba(148, 163, 156, 0.18);
  }

  #gydytoja img {
    border-width: 10px !important;
  }

  #kontaktai {
    gap: 28px !important;
  }

  #kontaktai > div:first-child {
    max-width: 34rem;
  }

  #kontaktai .rounded-3xl.p-12 {
    padding: 22px !important;
    border-radius: 28px !important;
  }

  #kontaktai .relative.z-10.space-y-8 {
    gap: 24px !important;
  }

  footer .max-w-5xl {
    gap: 18px !important;
  }
}

@media (max-width: 560px) {
  header {
    width: calc(100% - 18px) !important;
  }

  header > div {
    padding: 9px 10px !important;
    gap: 5px !important;
  }

  header .text-xs.text-gray-600 {
    display: none;
  }

  header .flex.items-center.gap-4 {
    gap: 6px !important;
  }

  header .text-xs.font-bold.text-gray-600 {
    display: inline-flex !important;
    align-items: center;
    gap: 3px;
    min-width: 44px;
  }

  header [data-open-modal] {
    padding: 8px 11px !important;
    font-size: 0.74rem !important;
  }

  .mobile-nav {
    width: calc(100% - 18px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-nav a {
    min-height: 38px;
    font-size: 0.82rem;
  }

  h1.font-serif.text-5xl {
    font-size: 2.56rem !important;
  }

  h2.font-serif.text-4xl {
    font-size: 2rem !important;
  }

  #poziuris {
    padding: 28px 20px !important;
  }

  #poziuris blockquote {
    font-size: 1.6rem !important;
  }

  .text-lg.text-gray-600.mb-8.leading-relaxed,
  .text-gray-700.leading-relaxed,
  .text-gray-700.mb-8.leading-relaxed,
  .text-gray-600 {
    font-size: 0.94rem !important;
    line-height: 1.62 !important;
  }

  .service-card {
    padding: 22px !important;
  }

  #gydytoja {
    gap: 24px !important;
  }

  #gydytoja > div:last-child {
    max-width: 292px;
  }

  #gydytoja img {
    border-width: 9px !important;
  }

  #kontaktai .rounded-3xl.p-12 {
    padding: 20px !important;
  }

  #kontaktai .relative.z-10.space-y-8 {
    gap: 20px !important;
  }

  .absolute.bottom-0.right-0.translate-x-8.translate-y-8.bg-white\/80.backdrop-blur-xl.p-6.rounded-3xl.shadow-2xl.border.border-white\/50.max-w-xs {
    padding: 16px 16px 18px !important;
  }

  .mobile-nav + main {
    margin-top: 2px;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes modal-in {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .dental-cursor,
  .cursor-dot,
  .animate-scroll,
  .modal-panel,
  .group-hover\:scale-102 {
    animation: none !important;
    transition: none !important;
  }
}
