/* TIM'S WOODWORK - КОРПОРАТИВНЫЙ СТИЛЬ */
/* Clean white background with crisp whitespace, lively teal or amber accents against warm wood neutrals */

:root {
  /* Основная цветовая палитра */
  --primary-teal: #0d9488;
  --primary-amber: #f59e0b;
  --neutral-wood: #a8a29e;
  --dark-wood: #57534e;
  --light-wood: #e7e5e4;
  
  /* Градиенты */
  --hero-gradient: linear-gradient(135deg, rgba(13, 148, 136, 0.9) 0%, rgba(245, 158, 11, 0.1) 100%);
  --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(231, 229, 228, 0.3) 100%);
  
  /* Тени */
  --soft-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --hero-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Основные стили */
* {
  scroll-behavior: smooth;
}

/* Защита от горизонтальной прокрутки */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-wood);
  background-color: #ffffff;
}

/* Стили для заголовков */
.heading-primary {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--dark-wood);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.heading-secondary {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--primary-teal);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.heading-accent {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--primary-amber);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* Hero секция */
.hero-section {
  display: flex;
  align-items: center;
  position: relative;
  box-shadow: var(--hero-shadow);
  background-size: cover;
  background-position: center;
}

.hero-content {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 300;
}

/* Кнопки */
.btn-primary {
  background: var(--primary-teal);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: var(--soft-shadow);
  border: 2px solid var(--primary-teal);
  white-space: nowrap;
}

.btn-primary:hover {
  background: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.4);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: var(--primary-amber);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: var(--soft-shadow);
  border: 2px solid var(--primary-amber);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary-teal);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-teal);
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--primary-teal);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.4);
  text-decoration: none;
}

/* Карточки услуг */
.service-card {
  background: var(--card-gradient);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(231, 229, 228, 0.8);
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-teal);
}

.service-card img {
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-title {
  color: var(--dark-wood);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-price {
  color: var(--primary-teal);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Навигация */
.main-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--soft-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  color: var(--dark-wood);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-link {
  color: var(--dark-wood);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-teal);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary-teal);
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  transition: right 0.3s ease;
  z-index: 9999;
  box-shadow: var(--hero-shadow);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Cookie баннер */
.cookie-consent-banner {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--hero-shadow);
  border: 1px solid rgba(231, 229, 228, 0.8);
  max-width: 400px;
  z-index: 10000;
}

.cookie-banner-title {
  color: var(--dark-wood);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cookie-banner-text {
  color: var(--neutral-wood);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

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

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 80px;
}

.cookie-btn.accept {
  background: var(--primary-teal);
  color: white;
}

.cookie-btn.accept:hover {
  background: #0f766e;
}

.cookie-btn.decline {
  background: transparent;
  color: var(--neutral-wood);
  border: 1px solid var(--neutral-wood);
}

.cookie-btn.decline:hover {
  background: var(--neutral-wood);
  color: white;
}

/* FAQ аккордеон */
.faq-item {
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  background: white;
}

.faq-question {
  background: var(--light-wood);
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark-wood);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(231, 229, 228, 0.7);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--neutral-wood);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 300px;
}

/* Утилиты */
.section-padding {
  padding: 5rem 0;
}

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

.text-center {
  text-align: center;
}

.mb-section {
  margin-bottom: 5rem;
}

.mt-section {
  margin-top: 5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .cookie-consent-banner {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
  
  .mobile-menu {
    width: 280px;
  }
  
  .hero-section {
    min-height: 80vh;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .heading-primary {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .cookie-consent-banner {
    padding: 1rem;
  }
  
  .cookie-banner-buttons {
    flex-direction: column;
  }
}