body {
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #1A1A1A;
}

* {
  box-sizing: inherit;
}

.bg-primary {
  background: #1A1A1A;
}

.bg-gradient-to-b.from-primary.to-gold-transparent {
  background: linear-gradient(180deg, #1A1A1A 0%, rgba(212, 175, 55, 0.2) 100%);
}

.bg-gradient-to-b.from-gold-transparent.to-primary {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.2) 0%, #1A1A1A 100%);
}

.bg-gradient-to-r.from-primary.to-gold-transparent {
  background: linear-gradient(90deg, #1A1A1A 0%, rgba(212, 175, 55, 0.2) 100%);
}

.text-light {
  color: #F5F5F5;
}

.text-gold {
  color: #D4AF37;
}

.bg-card {
  background: rgba(26, 26, 26, 0.9);
}

.bg-gradient-to-r.from-gold.to-gold-dark {
  background: linear-gradient(to right, #D4AF37, #B8972D);
}

.bg-gradient-to-r.from-gold-dark.to-gold {
  background: linear-gradient(to right, #B8972D, #D4AF37);
}

.border-gold\/30 {
  border-color: rgba(212, 175, 55, 0.3);
}

.border-gold {
  border-color: #D4AF37;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Parallax Background */
.parallax-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  z-index: 0;
}

/* Lazy Load */
.lazy-load {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Swiper custom styles for Testimonials */
.testimonials-slider {
  position: relative;
  padding: 0 40px;
  overflow: hidden;
  height: 250px;
}

.swiper-wrapper {
  align-items: center;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.swiper-slide-active {
  opacity: 1;
}

.testimonial-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
  color: #D4AF37;
  background-color: rgba(26, 26, 26, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: rgba(26, 26, 26, 0.8);
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 20px;
}

/* Fade animation for language switch */
.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

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

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

/* Back to Top Button */
#back-to-top {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
}

/* Navigation Hover Effects */
.nav-links a,
.nav-mobile a {
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-mobile a:hover {
  color: #D4AF37;
}

.nav-links a::after,
.nav-mobile a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #D4AF37;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-mobile a:hover::after {
  width: 100%;
}

/* Adaptive styles */
.min-h-fit {
  min-height: auto;
}

.nav-mobile.active {
  display: flex;
}

/* Десктоп (больше 1024px) */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }

  nav .nav-links {
    display: flex;
  }

  nav .burger {
    display: none;
  }

  .color {
    background: #D4AF37;
  }

  header {
    min-height: 100vh;
  }

  header h1 {
    font-size: 3rem;
  }

  header p {
    font-size: 1.25rem;
  }

  header a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  section h2 {
    font-size: 2.25rem;
  }

  section p.text-base {
    font-size: 1rem;
  }

  section p.text-lg {
    font-size: 1.125rem;
  }

  #services .grid div h3 {
    font-size: 1.125rem;
  }

  #services .grid div p {
    font-size: 0.875rem;
  }

  #services table th,
  #services table td {
    font-size: 0.875rem;
    padding: 0.5rem;
  }

  #services p.text-sm {
    font-size: 0.875rem;
  }

  .testimonials-slider {
    padding: 0 40px;
  }

  .testimonial-card {
    max-width: 400px;
    padding: 1.5rem;
  }

  .testimonial-card p.text-sm {
    font-size: 0.875rem;
  }

  .testimonial-card p.text-xs {
    font-size: 0.75rem;
  }

  .testimonial-avatar {
    width: 64px;
    height: 64px;
    top: -2rem;
    border-width: 4px;
  }

  .testimonial-card .mt-8 {
    margin-top: 2rem;
  }

  #contact .grid div h3 {
    font-size: 1.25rem;
  }

  #contact .grid div p {
    font-size: 0.875rem;
  }

  footer p {
    font-size: 0.875rem;
  }
}

/* Планшеты (641px–1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  nav .nav-links {
    display: flex;
  }

  nav .burger {
    display: none;
  }

  .color {
    background: #D4AF37;
  }

  header {
    min-height: 80vh;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1.125rem;
  }

  header a {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
  }

  section h2 {
    font-size: 2rem;
  }

  section p.text-base {
    font-size: 0.875rem;
  }

  section p.text-lg {
    font-size: 1rem;
  }

  #services .grid div h3 {
    font-size: 1rem;
  }

  #services .grid div p {
    font-size: 0.75rem;
  }

  #services table th,
  #services table td {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  #services p.text-sm {
    font-size: 0.75rem;
  }

  .testimonials-slider {
    padding: 0 20px;
  }

  .testimonial-card {
    max-width: 360px;
    padding: 1rem;
  }

  .testimonial-card p.text-sm {
    font-size: 0.75rem;
  }

  .testimonial-card p.text-xs {
    font-size: 0.625rem;
  }

  .testimonial-avatar {
    width: 48px;
    height: 48px;
    top: -1.5rem;
    border-width: 3px;
  }

  .testimonial-card .mt-8 {
    margin-top: 1.5rem;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 32px;
    height: 32px;
  }

  .swiper-button-prev:after,
  .swiper-button-next:after {
    font-size: 16px;
  }

  #contact .grid div h3 {
    font-size: 1.125rem;
  }

  #contact .grid div p {
    font-size: 0.75rem;
  }

  footer p {
    font-size: 0.75rem;
  }
}

/* Мобильные (до 640px) */
@media (max-width: 640px) {
  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  nav .nav-links {
    display: none;
  }

  nav .burger {
    display: flex;
  }

  .color {
    background: #D4AF37;
  }

  nav .nav-mobile {
    padding: 1rem 0;
  }

  nav .nav-mobile a {
    font-size: 0.875rem;
  }

  header {
    min-height: 70vh;
  }

  header h1 {
    font-size: 1.875rem;
  }

  header p {
    font-size: 0.875rem;
  }

  header a {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  section p.text-base {
    font-size: 0.75rem;
  }

  section p.text-lg {
    font-size: 0.875rem;
  }

  #services .grid div {
    padding: 0.75rem;
  }

  #services .grid div img {
    height: 120px;
  }

  #services .grid div h3 {
    font-size: 0.875rem;
  }

  #services .grid div p {
    font-size: 0.625rem;
  }

  #services table {
    max-width: 100%;
  }

  #services table th,
  #services table td {
    font-size: 0.625rem;
    padding: 0.25rem;
  }

  #services p.text-sm {
    font-size: 0.625rem;
  }

  #about p {
    font-size: 0.875rem;
  }

  #pricing p {
    font-size: 0.875rem;
  }

  #pricing a {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .testimonials-slider {
    padding: 0 10px;
  }

  .swiper-slide {
    padding: 0.5rem 0;
  }

  .testimonial-card {
    max-width: 90%;
    padding: 0.75rem;
    border-radius: 0.5rem;
  }

  .testimonial-card p.text-sm {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .testimonial-card p.text-xs {
    font-size: 0.625rem;
  }

  .testimonial-avatar {
    width: 40px;
    height: 40px;
    top: -20px;
    border-width: 2px;
  }

  .testimonial-card .mt-8 {
    margin-top: 1.25rem;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  #contact .grid div h3 {
    font-size: 1rem;
  }

  #contact .grid div p {
    font-size: 0.625rem;
  }

  #contact .w-full.h-64 {
    height: 200px;
  }

  footer p {
    font-size: 0.625rem;
  }

  #back-to-top {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem;
    font-size: 0.75rem;
  }
}