* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #000000;
  overflow-x: hidden;
}

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #d4a574;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  position: relative;
  z-index: 9999;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
    url("/assets/images/bg.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  z-index: 2;
  width: 100%;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.1;
  max-width: 800px;
  font-family: "Poppins", serif;
}

.hero h1 .highlight {
  color: #d4a574;
  font-weight: 400;
}

.hero p {
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
  opacity: 0.95;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  padding: 18px 40px;
  background: transparent;
  border: 2px solid #d4a574;
  color: #d4a574;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
}
.contact .cta-button {
  width: 100%;
}

.cta-button:hover {
  border-radius: 9px;
  background: linear-gradient(94deg, #efa657 -10.11%, #b25d19 136.76%);
  color: #000000;
}

/* Equestrian World Section */
.equestrian-world {
  padding: 120px 0 100px;
  background: #000000;
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.section-title .highlight {
  color: #d4a574;
}

.section-description {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem;
  opacity: 0.9;
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  z-index: 10;
}

.horse-outlines {
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  z-index: 1;
  width: 150px;
  height: 200px;
}

.horse-outlines.right {
  left: auto;
  right: 30%;
  top: 276px;
}

.horse-outlines svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

/* Background Horse Images */
.horse-bg-left {
  position: absolute;
  left: 0;
  top: 30%;
  width: 300px;
  height: 400px;
  background-image: url("./assets/horse-bg-left.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 1;
}

.horse-bg-right {
  position: absolute;
  right: 18%;
  top: 100px;
  width: 300px;
  height: 400px;
  background-image: url("./assets/horse-bg-right.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 1;
}

.small-horse {
  position: absolute;
  top: 200px;
  left: 18%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0.9;
}

.gallery-container {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  z-index: 10;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 30px;
  align-items: stretch;
  height: 400px;
  width: 100%;
}

.gallery-item {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  height: 400px;
}

.gallery-item:first-child,
.gallery-item:last-child {
  position: relative;
}

.gallery-item:first-child::after,
.gallery-item:last-child::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  background: linear-gradient(to right, #000000, transparent);
  z-index: 2;
}

.gallery-item:first-child::after {
  left: 0;
}

.gallery-item:last-child::after {
  right: 0;
  background: linear-gradient(to left, #000000, transparent);
}

.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.gallery-nav button {
  width: 60px;
  height: 60px;
  background: transparent;
  border: 2px solid #d4a574;
  color: #d4a574;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav button:first-child {
  border-right: 1px solid #d4a574;
}

.gallery-nav button:last-child {
  border-left: 1px solid #d4a574;
  background: #d4a574;
  color: #000000;
}

.gallery-nav button:hover {
  background: #d4a574;
  color: #000000;
}

/* Services Section */
.services {
  padding: 100px 0;
  background: #000000;
  position: relative;
}

.services-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.services-text h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  font-family: "Playfair Display";
}

.services-text h2 .highlight {
  color: #d4a574;
}

.service-list {
  list-style: none;
}

.service-item {
  display: flex;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.service-number {
  font-size: 48px;
  font-weight: 700;
  color: #d4a574;
  margin-right: 1.5rem;
  font-family: "Playfair Display";
}

.service-details h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-details p {
  opacity: 0.9;
  line-height: 1.5;
}

.running-horse {
  width: 100%;
  height: auto;
  max-width: 500px;
}

/* About Section */
.about {
  padding: 100px 0;
  background: rgba(212, 165, 116, 0.05);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-text h2 .highlight {
  color: #d4a574;
}

.about-text p {
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: #000000;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-header .emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: rgba(212, 165, 116, 0.05);
  border: 1px solid #efa657;
  padding: 2rem;
  text-align: center;
}

.testimonial-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  color: #d4a574;
  font-weight: 500;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: rgba(212, 165, 116, 0.05);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-form {
  max-width: 344px;
}

.contact-form h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-form h2 .highlight {
  color: #d4a574;
}

.contact-form p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 165, 116, 0.3);
  color: #ffffff;
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-map {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
}

/* Footer */
.footer {
  background: #000000;
  padding: 2rem 0;
  padding-top: 0px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #797979;
  padding-top: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: #d4a574;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #d4a574;
  padding: 1.5rem;
  border-radius: 8px;
  z-index: 2000;
  display: none;
}

.cookie-popup.show {
  display: block;
}

.cookie-popup p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border: 1px solid #d4a574;
  background: transparent;
  color: #d4a574;
  cursor: pointer;
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.cookie-btn.accept {
  background: #d4a574;
  color: #000000;
}

.cookie-btn:hover {
  background: #d4a574;
  color: #000000;
}

.hors {
  font-size: 80px;
}

h2 {
  font-family: "Playfair Display";
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Мобильное меню */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  /* Hero секция */
  .hero-content {
    padding: 0 2rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Общие секции */
  .services-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Мобильная галерея */
  .gallery-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
  }

  .gallery {
    display: flex;
    transition: transform 0.3s ease;
    gap: 0;
    height: 300px;
  }

  .gallery-item {
    min-width: 100vw;
    width: 100vw;
    height: 300px;
    margin-bottom: 0;
    flex-shrink: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .gallery-item:first-child::after,
  .gallery-item:last-child::after {
    display: none;
  }

  .gallery-item:not(.active-mobile) {
    display: none;
  }

  .gallery-item.active-mobile {
    display: block;
    width: 100vw;
    height: 300px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Скрыть элементы на мобильных */
  .horse-outlines {
    display: none;
  }

  .horse-bg-left,
  .horse-bg-right {
    display: none;
  }

  /* Cookie popup */
  .cookie-popup {
    left: 10px;
    right: 10px;
  }

  .cookie-buttons {
    justify-content: center;
  }

  /* Дополнительные мобильные стили */
  .small-horse {
    top: 0px;
    left: 15%;
  }

  .small-horse img {
    max-width: 150px;
    width: 100%;
  }

  .horse-outlines.right {
    top: 0px;
    right: 15%;
  }

  .horse-outlines.right img {
    max-width: 150px;
    width: 100%;
  }

  .contact-content {
    flex-direction: column !important;
  }

  .contact-form {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .hero-content,
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .contact-form h2,
  .services-text h2,
  .about-text h2 {
    font-size: 1.8rem;
  }

  /* Мобильная галерея для маленьких экранов */
  .gallery {
    height: 250px;
  }

  .gallery-item {
    height: 250px;
    width: 100vw;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .gallery-item.active-mobile {
    height: 250px;
    width: 100vw;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #000000;
}

body::-webkit-scrollbar-thumb {
  background: #d4a574;
  border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #c19660;
}

/* Добавьте эти стили для анимации гамбургер -> крестик */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 2004;
  position: relative;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  padding: 0;
  justify-content: center; /* Центрируем полоски */
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  transition: all 0.3s ease;
  display: block;
  transform-origin: center; /* Точка поворота в центре */
  position: relative;
}

/* Когда меню активно - превращаем в крестик */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0; /* Средняя полоска исчезает */
  transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Альтернативный вариант - более четкий крестик */
/*
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
*/

/* Дополнительные стили для плавности */
.mobile-menu-toggle span:nth-child(1) {
  transition-delay: 0s;
}

.mobile-menu-toggle span:nth-child(2) {
  transition-delay: 0.1s;
}

.mobile-menu-toggle span:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transition-delay: 0.2s;
}

.mobile-menu-toggle.active span:nth-child(2) {
  transition-delay: 0.1s;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transition-delay: 0s;
}

/* Более продвинутая версия с лучшей анимацией */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 2004;
  position: relative;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  padding: 5px;
  justify-content: space-between;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block;
  border-radius: 2px;
}

/* Hover эффект */
.mobile-menu-toggle:hover span {
  background: #d4a574;
}

/* Анимация в крестик */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: #d4a574;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0) rotate(180deg);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  background: #d4a574;
}

/* Мобильные стили */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  /* Добавляем пульсацию когда меню открыто */
  .mobile-menu-toggle.active {
    animation: pulse 2s infinite;
  }
  .sevice__wrapper .about-content-odd {
    display: flex;
    flex-direction: column-reverse !important;
  }
  .sevice__wrapper .about {
    padding-bottom: 0px;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(212, 165, 116, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 165, 116, 0);
  }
}

.about__wrapper .hero {
  max-height: 350px;
}
.about__wrapper .section-title {
  line-height: 120%;
}
.about__wrapper .testimonials .testimonial-card {
  border: none;
  padding: 0px;
}
.about__wrapper .testimonials .testimonial-card .testimonial-image {
  height: 435px;
}
.about__wrapper .testimonials .testimonial-card .testimonial-text {
  color: #fff;
  font-family: "Playfair Display";
  font-size: 31px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 46.5px */
  text-align: left;
  margin-bottom: 0;
}
.about__wrapper .testimonials .testimonial-card .testimonial-author {
  color: #efa657;
  font-family: "Playfair Display";
  font-size: 21px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  text-align: left;
}
.about__wrapper .small-horse,
.about__wrapper .horse-outlines {
  display: none;
}
.about__wrapper .about-text p {
  color: rgba(255, 255, 255, 0.8);
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%; /* 24px */
}

.testimonials__wrapper .hero {
  max-height: 350px;
}
.testimonials__wrapper .testimonials {
  padding: 0px;
}

.gallery__wrapper .hero {
  max-height: 350px;
}
.gallery__wrapper .equestrian-world {
  margin-top: 60px;
}
.gallery__wrapper .small-horse,
.horse-outlines {
  display: none;
}
.contact__wrapper .contact {
  margin-top: 60px;
}
.contact__wrapper .links {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}
.contact__wrapper .contact_text {
  margin-top: 20px;
}
.contact__wrapper .contact_text p {
  margin-bottom: 0;
}

.privacy {
  margin-top: 100px;
}
.privacy h2 {
  text-align: left;
}
.privacy ul {
  padding-left: 20px;
}
.privacy p {
  margin-top: 5px;
}

@media (max-width: 768px) {
  .gallery-item:not(.active-mobile) {
      display: block !important;
  }
}