:root {
  /* Аналоговая цветовая схема - зелено-синие оттенки */
  --primary-color: #2E8B57; /* Морской зеленый */
  --primary-dark: #1F5F3F;
  --primary-light: #4CAF66;
  --secondary-color: #3498DB; /* Голубой */
  --secondary-dark: #2980B9;
  --secondary-light: #5DADE2;
  --accent-color: #27AE60; /* Зеленый акцент */
  --accent-dark: #1E8449;
  
  /* Нейтральные цвета */
  --text-primary: #2C3E50;
  --text-secondary: #5D6D7E;
  --text-light: #85929E;
  --white: #FFFFFF;
  --gray-light: #F8F9FA;
  --gray-medium: #E9ECEF;
  --gray-dark: #6C757D;
  --black: #212529;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(46, 139, 87, 0.9) 0%, rgba(52, 152, 219, 0.8) 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
  
  /* Шрифты */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
  
  /* Размеры */
  --container-max-width: 1200px;
  --border-radius: 12px;
  --border-radius-small: 8px;
  --border-radius-large: 20px;
  
  /* Тени */
  --shadow-light: 0 2px 8px rgba(46, 139, 87, 0.1);
  --shadow-medium: 0 4px 16px rgba(46, 139, 87, 0.15);
  --shadow-heavy: 0 8px 32px rgba(46, 139, 87, 0.2);
  --shadow-hover: 0 12px 40px rgba(46, 139, 87, 0.25);
  
  /* Переходы */
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.4s ease-in-out;
  --transition-slow: 0.6s ease-in-out;
  
  /* Z-индексы */
  --z-header: 1000;
  --z-overlay: 1001;
  --z-modal: 1002;
}

/* Базовые стили */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Типография */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

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

/* Секции */
.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--gray-light);
}

/* Заголовки секций */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Хедер */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-medium);
  z-index: var(--z-header);
  transition: var(--transition-medium);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition-fast);
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition-medium);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary::before {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  color: var(--white);
}

button, input[type='submit'] {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-medium);
  background: var(--gradient-primary);
  color: var(--white);
  border-color: var(--primary-color);
}

button:hover, input[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Hero секция */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--white);
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Карточки */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
  margin: 0 auto;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 2rem;
  text-align: center;
  flex-grow: 1;
}

.card-content h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Services секция */
.services {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  align-items: start;
}

.service-card {
  height: 100%;
}

.progress-indicator {
  margin-top: 1rem;
  text-align: left;
  width: 100%;
}

.progress-bar {
  height: 6px;
  background: var(--gray-medium);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  animation: progressLoad 2s ease-out forwards;
  width: 0;
}

.progress-bar[data-progress="95"]::after { animation-delay: 0.5s; }
.progress-bar[data-progress="88"]::after { animation-delay: 1s; }
.progress-bar[data-progress="92"]::after { animation-delay: 1.5s; }

.progress-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
}

/* Gallery секция */
.gallery {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin: 0 auto;
}

/* News секция */
.news {
  padding: 80px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.news-card {
  height: 100%;
}

.news-date {
  display: inline-block;
  background: var(--primary-light);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-small);
  font-size: 0.875rem;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

/* Resources секция */
.resources {
  padding: 80px 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.resource-card {
  padding: 2rem;
  height: 100%;
  text-align: center;
  border: 2px solid var(--gray-medium);
  background: var(--white);
}

.resource-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.resource-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.resource-link:hover {
  border-bottom-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Contact секция */
.contact {
  padding: 80px 0;
}

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

.contact-info .contact-card {
  padding: 2rem;
  height: 100%;
}

.contact-item {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-medium);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item strong {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--gray-medium);
  border-radius: var(--border-radius-small);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-small);
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progressLoad {
  to {
    width: attr(data-progress);
  }
}

.progress-bar[data-progress="95"]::after {
  animation: progressLoad95 2s ease-out forwards;
}

.progress-bar[data-progress="88"]::after {
  animation: progressLoad88 2s ease-out forwards;
}

.progress-bar[data-progress="92"]::after {
  animation: progressLoad92 2s ease-out forwards;
}

@keyframes progressLoad95 {
  to { width: 95%; }
}

@keyframes progressLoad88 {
  to { width: 88%; }
}

@keyframes progressLoad92 {
  to { width: 92%; }
}

/* Стили для дополнительных страниц */
.page-header {
  padding-top: 100px;
  padding-bottom: 60px;
  background: var(--gray-light);
  text-align: center;
}

.page-content {
  padding: 60px 0;
}

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.page-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.page-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Success page styles */
.success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
}

.success-content {
  text-align: center;
  background: var(--white);
  padding: 4rem 3rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-heavy);
  max-width: 500px;
  width: 90%;
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.success-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.success-message {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hamburger {
    display: none;
  }
  
  .services-grid,
  .news-grid,
  .gallery-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .success-content {
    padding: 3rem 2rem;
  }
  
  .success-title {
    font-size: 1.5rem;
  }
}

/* Микроанимации для интерактивности */
.card,
.gallery-item,
.btn,
.nav-link {
  animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* Гласморфизм эффекты */
.header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card:hover {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Дополнительные утилитарные классы */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }