:root {
  /* Элегантная природная палитра */
  --primary-forest: #2D5A27;
  --secondary-stone: #8B7355;
  --accent-sage: #4A7C59;
  --background-cream: #FFFFFF;
  --footer-parchment: #F5F5DC;
  --section-light: #F9F9F7;
  --text-charcoal: #2C2C2C;
  --text-muted: #6B7280;
  --border-elegant: #E5E7EB;
  
  /* Типографика */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', sans-serif;
  
  /* Пространственная система */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Скругление */
  --radius-pill: 9999px;
  --radius-elegant: 8px;
  
  /* Тени */
  --shadow-elegant: 0 4px 6px -1px rgba(45, 90, 39, 0.1);
  --shadow-hover: 0 10px 15px -3px rgba(45, 90, 39, 0.15);
  
  /* Переходы */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-quick: all 0.2s ease-out;
}

/* Полноэкранный foundation */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Основная типографика */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-charcoal);
  background: var(--background-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Переопределение Tailwind контейнера для полноэкранности */
.container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto;
  margin-right: auto;
}

/* Элегантная типографическая иерархия */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-forest);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--primary-forest);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
  color: var(--text-charcoal);
}

/* Ссылочная типографика */
a {
  color: var(--accent-sage);
  text-decoration: none;
  transition: var(--transition-quick);
  position: relative;
}

a:hover {
  color: var(--primary-forest);
}

/* Элегантные подчеркнутые ссылки */
a.link-elegant {
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

a.link-elegant:hover {
  border-bottom-color: var(--accent-sage);
}

/* Полноэкранные секции */
.section {
  width: 100vw;
  padding: var(--space-xl) 5vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.section--light {
  background: var(--section-light);
}

.section--cream {
  background: var(--background-cream);
}

/* Элегантные заголовки секций */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

/* Элегантная навигация */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-elegant);
  padding: var(--space-md) 5vw;
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-forest);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-charcoal);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-elegant);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  background: var(--section-light);
  color: var(--primary-forest);
}

/* Элегантные кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--accent-sage);
  color: white;
  box-shadow: var(--shadow-elegant);
}

.btn-primary:hover {
  background: var(--primary-forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--accent-sage);
  border: 2px solid var(--accent-sage);
}

.btn-outline:hover {
  background: var(--accent-sage);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary-stone);
  color: white;
}

.btn-secondary:hover {
  background: #6d5a45;
  transform: translateY(-2px);
  color: white;
}

/* Элегантные карточки */
.card {
  background: var(--background-cream);
  border-radius: var(--radius-elegant);
  padding: var(--space-md);
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-elegant);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-header {
  border-bottom: 1px solid var(--border-elegant);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-forest);
  margin-bottom: var(--space-xs);
}

.card-subtitle {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.875rem;
}

/* Элегантные формы */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--primary-forest);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--border-elegant);
  border-radius: var(--radius-elegant);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: var(--background-cream);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-sage);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Hero секция */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--background-cream) 0%, var(--section-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::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="%232D5A27" opacity="0.05"/><circle cx="80" cy="80" r="2" fill="%238B7355" opacity="0.05"/><circle cx="40" cy="60" r="1.5" fill="%234A7C59" opacity="0.05"/></svg>') repeat;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 2;
  position: relative;
  padding: 0 var(--space-md);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--primary-forest), var(--secondary-stone));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Элегантная сетка */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Footer */
.footer {
  background: var(--footer-parchment);
  padding: var(--space-lg) 5vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-top: 1px solid var(--border-elegant);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  font-family: var(--font-serif);
  color: var(--primary-forest);
  margin-bottom: var(--space-sm);
}

.footer-section p,
.footer-section a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-section a:hover {
  color: var(--primary-forest);
}

/* Утилиты */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Responsive */
@media (max-width: 768px) {
  .section {
    padding: var(--space-md) 4vw;
  }
  
  .navbar {
    padding: var(--space-sm) 4vw;
  }
  
  .hero {
    padding: var(--space-lg) 4vw;
  }
  
  .footer {
    padding: var(--space-md) 4vw;
  }
  
  .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 3rem;
  }
  
  .section {
    padding: var(--space-lg) 3vw;
  }
  
  .hero {
    padding: var(--space-md) 3vw;
  }
}

/* Alpine.js поддержка */
[x-cloak] {
  display: none !important;
}

/* Плавные переходы для динамического контента */
.x-transition {
  transition: var(--transition-smooth);
}

/* Анимации появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--section-light);
}

::-webkit-scrollbar-thumb {
  background: var(--border-elegant);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Focus accessibility */
*:focus {
  outline: 2px solid var(--accent-sage);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  outline-offset: 4px;
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}