
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #c9b2a3;
  overflow-x: hidden;
  padding-top: 100px; /* Добавляем отступ сверху для фиксированного навбара */
}

/* Decorative patterns */
.pattern-lines {
  background-image: repeating-linear-gradient(
    45deg,
    #000 0,
    #000 2px,
    transparent 2px,
    transparent 10px
  );
}

.dots {
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 12px 12px;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease;
}

.fade-left.active {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 1s ease;
}

.fade-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Parallax image */
.parallax {
  transform: translateY(0);
  transition: transform 0.2s ease-out;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: black;
  color: white;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Fixed navbar - теперь всегда прилипает к верху */
.navbar-fixed {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1500px;
  z-index: 100;
  background-color: #efefef;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Close button */
#closeMenu {
  cursor: pointer;
  font-size: 24px;
  transition: opacity 0.2s;
}

#closeMenu:hover {
  opacity: 0.7;
}

/* Mobile menu links */
.mobile-link {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: padding-left 0.2s;
}

.mobile-link:hover {
  padding-left: 10px;
  color: #c9b2a3;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Burger button */
#burger {
  cursor: pointer;
  user-select: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Добавляем отступ для якорных ссылок */
}

/* Фон для MAIN секции */
.main-background {
  position: relative;
  background-image: url('/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.main-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(239, 239, 239, 0.88);
  z-index: 0;
}

.main-background > * {
  position: relative;
  z-index: 1;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
  
  html {
    scroll-padding-top: 80px;
  }
}