/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary-green: #6B9B7B;
  --deep-green: #4A7C5E;
  --olive-gold: #A8B894;
  --gold: #D4AF37;
  --light-gold: #E5C76B;
  --dark-gold: #C9A961;
  --cream: #F8F6F3;
  --light-cream: #FDFBF7;
  --soft-white: #FAFAF8;
  --text-dark: #2C3E2E;
  --text-medium: #5A6B5E;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--light-cream) 0%, var(--cream) 50%, var(--soft-white) 100%);
  line-height: 1.6;
}

/* Прелоадер */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light-cream);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--gold);
  border-top: 5px solid var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 246, 243, 0.98) 100%);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(107, 155, 123, 0.15);
  padding: 10px 0;
  backdrop-filter: blur(15px);
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 70px;
  width: 98%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-green), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.logo p {
  font-size: 14px;
  color: var(--text-medium);
  margin-top: -10px;
}

.hamburger {
  display: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--light-gold));
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-green);
}

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

.header-contact {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Единая кнопка контакта */
.phone-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold), var(--light-gold));
  color: var(--deep-green);
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.35);
  position: relative;
  overflow: hidden;
}

.phone-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.phone-button:hover::before {
  left: 100%;
}

.phone-button:hover {
  background: linear-gradient(135deg, var(--dark-gold), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(212, 175, 55, 0.5);
}

.phone-button i {
  margin-right: 8px;
  font-size: 20px;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary-green), var(--olive-gold), var(--gold));
  color: #fff;
  padding: 16px 40px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 17px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(27, 94, 69, 0.3);
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  letter-spacing: 0.3px;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: linear-gradient(135deg, var(--gold), var(--light-gold), var(--primary-green));
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
  border-color: rgba(212, 175, 55, 0.3);
}

/* Геройский раздел */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('hero-bg.jpg') center/cover no-repeat;
  filter: blur(2px) brightness(0.7);
  z-index: 1;
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 76, 58, 0.5), rgba(27, 94, 69, 0.4), rgba(212, 175, 55, 0.25));
  z-index: 2;
}

/* Simplified particles effect for better performance */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: simpleFloat 8s ease-in-out infinite;
  will-change: transform;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  top: 25%;
  left: 15%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 3px;
  height: 3px;
  top: 65%;
  left: 75%;
  animation-delay: 3s;
}

.particle:nth-child(3) {
  width: 5px;
  height: 5px;
  top: 85%;
  left: 25%;
  animation-delay: 6s;
}

@keyframes simpleFloat {
  0%, 100% { 
    transform: translateY(0px); 
    opacity: 0.4; 
  }
  50% { 
    transform: translateY(-15px); 
    opacity: 0.8; 
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.95);
  padding: 60px 50px;
  border-radius: 25px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(212, 175, 55, 0.4);
  max-width: 900px;
  animation: heroContentAppear 1.5s ease-out;
  transform-style: preserve-3d;
}

@keyframes heroContentAppear {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-content::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--primary-green), var(--gold), var(--olive-gold), var(--primary-green));
  border-radius: 28px;
  z-index: -1;
  animation: borderGlow 4s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes borderGlow {
  0%, 100% { 
    opacity: 0.6;
    background-position: 0% 50%;
  }
  50% { 
    opacity: 1;
    background-position: 100% 50%;
  }
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
  animation: titlePulse 3s ease-in-out infinite;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@keyframes titlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.hero-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-weight: 500;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-content p:last-of-type {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content .cta-button {
  margin-top: 30px;
  font-size: 18px;
  padding: 18px 40px;
  animation: fadeInUp 1s ease-out 1.2s both, buttonFloat 3s ease-in-out 2s infinite;
  position: relative;
  overflow: hidden;
}

@keyframes buttonFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.hero-content .cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-content .cta-button:hover::after {
  width: 300px;
  height: 300px;
}

/* Обо мне */
.about {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--soft-white) 0%, var(--light-cream) 100%);
  position: relative;
}

.about h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 50px;
  background: linear-gradient(135deg, var(--primary-green), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.about h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--gold));
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  width: 350px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(107, 155, 123, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid rgba(212, 175, 55, 0.25);
}

.about-image:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(107, 155, 123, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
}

/* Услуги */
.services {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(27, 94, 69, 0.05) 0%, rgba(212, 175, 55, 0.08) 100%);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="2.5" fill="%23ffffff" opacity="0.1"/></svg>');
  pointer-events: none;
}

.services h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-green), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.services h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--gold));
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.price-table h3 {
  font-size: 30px;
  background: linear-gradient(135deg, var(--primary-green), var(--olive-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 40px 0 20px;
  text-align: center;
  position: relative;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.price-table h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--gold));
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(27, 94, 69, 0.12);
  overflow: hidden;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.price-table th {
  background: linear-gradient(135deg, var(--primary-green), var(--olive-gold));
  color: #fff;
  padding: 18px 15px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 13px;
}

.price-table td {
  padding: 18px 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.price-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(107, 155, 123, 0.08), rgba(212, 175, 55, 0.05));
  transform: translateX(3px);
}

.price-table td:last-child {
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-green), var(--olive-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 16px;
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

/* Отзывы */
.reviews {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--soft-white) 0%, var(--light-cream) 100%);
}

.reviews h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-green), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.reviews h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--gold));
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.review-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 60px;
  text-align: center;
}

.review-slide {
  display: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 251, 247, 0.95));
  backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(107, 155, 123, 0.12);
  border: 2px solid rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
}

.review-slide.active {
  display: block;
}

.review-slide::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 60px;
  color: rgba(107, 155, 123, 0.1);
  font-family: Georgia, serif;
}

.review-slide p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.review-slide h4 {
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary-green), var(--olive-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
  font-weight: 700;
}

.review-slide span {
  color: var(--text-medium);
  font-size: 14px;
  opacity: 0.8;
}

.review-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.review-buttons button {
  background: linear-gradient(135deg, var(--primary-green), var(--olive-gold));
  color: #fff;
  border: none;
  padding: 12px 17px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(27, 94, 69, 0.3);
}

.review-buttons button:hover {
  background: linear-gradient(135deg, var(--gold), var(--light-gold));
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Контакты */
.contacts {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(27, 94, 69, 0.05) 0%, rgba(212, 175, 55, 0.08) 100%);
  text-align: center;
}

.contacts h2 {
  font-size: 42px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-green), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.contacts p {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.contacts a {
  background: linear-gradient(135deg, var(--primary-green), var(--olive-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.contacts a:hover {
  opacity: 0.8;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.contacts i {
  font-size: 24px;
  margin-right: 5px;
  color: var(--gold);
}
/* Исправление для кнопки */
.contacts .cta-button {
  color: #fff; /* Принудительно задаём белый цвет текста для кнопки */
}

.contacts .cta-button:hover {
  color: #fff; /* Принудительно задаём белый цвет текста для кнопки */
}

/* FAQ */
.faq {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--soft-white) 0%, var(--light-cream) 100%);
}

.faq h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--primary-green), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(107, 155, 123, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.faq-question {
  padding: 18px 25px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  background-color: rgba(248, 246, 243, 0.6);
  position: relative;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(248, 246, 243, 0.9);
  padding-left: 30px;
}

.faq-question::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: var(--gold);
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  padding: 18px 25px;
  display: none;
  color: var(--text-dark);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
  background: linear-gradient(135deg, rgba(253, 251, 247, 0.95), rgba(248, 246, 243, 0.9));
}

/* Подвал */
.footer {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--deep-green) 100%);
  color: #fff;
  padding: 25px 0;
  box-shadow: 0 -4px 20px rgba(107, 155, 123, 0.2);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p {
  opacity: 0.9;
}

.footer-social a {
  color: #fff;
  margin: 0 12px;
  font-size: 22px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--light-gold);
  transform: translateY(-3px);
  text-shadow: 0 4px 10px rgba(229, 199, 107, 0.4);
}

.footer-right a {
  background: linear-gradient(135deg, var(--gold), var(--light-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-right a:hover {
  opacity: 0.8;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.footer-left p {
  color: #fff;
}