
:root {
  /* Новая цветовая схема - природа и птицы */
  --bg: #0f1419;
  --card: #1a2332;
  --text: #e8f4f8;
  --muted: #9bb5c7;
  --accent: #4a9eff;
  --accent-hover: #6bb3ff;
  --success: #2dd4bf;
  --warning: #f59e0b;
  --error: #ef4444;
  --border: #2d3748;
  --border-light: #4a5568;
  --shadow: rgba(0, 0, 0, 0.3);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #4a9eff 0%, #2dd4bf 100%);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  scroll-behavior: smooth;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Заголовок */
.site-header {
  background: rgba(26, 35, 50, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px var(--shadow);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.burger {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.burger:hover {
  background: var(--border-light);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
}

.nav-list a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: left 0.3s ease;
  z-index: -1;
}

.nav-list a:hover::before {
  left: 0;
}

.nav-list a:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

/* Основной контент */
.content {
  margin-top: 30px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.hero img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s ease;
}

.hero img:hover {
  transform: scale(1.02);
}

/* Сетка */
.grid {
  display: grid;
  gap: 25px;
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Карточки */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow);
  border-color: var(--accent);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--accent);
  font-size: 1.4em;
  font-weight: 600;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  background: var(--bg);
}

/* Типографика */
.content h1 {
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content h2 {
  font-size: 2em;
  font-weight: 600;
  line-height: 1.3;
  margin: 30px 0 20px 0;
  color: var(--accent);
}

.content h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin: 25px 0 15px 0;
  color: var(--accent);
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 158, 255, 0.4);
  text-decoration: none;
  color: white;
}

/* Формы */
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--accent);
}

/* Футер */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 0;
}

.site-footer .grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.site-footer h3 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.3em;
}

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

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

/* Новостная рассылка */
.newsletter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
}

.newsletter input {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.newsletter button {
  margin-bottom: 0;
}

/* Мелкий текст */
.small {
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.5;
}

/* Баннер куки */
.cookie-banner {
  display: none;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 -5px 20px var(--shadow);
}

.cookie-banner.show {
  display: flex;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  margin: 0;
  padding: 8px 16px;
  font-size: 14px;
}

.cookie-more {
  color: var(--accent);
  font-size: 14px;
  text-decoration: underline;
}

/* Хлебные крошки */
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.breadcrumbs li::after {
  content: '›';
  margin: 0 8px;
  color: var(--muted);
}

.breadcrumbs li:last-child::after {
  content: '';
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

/* Таблицы */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
}

th, td {
  border: 1px solid var(--border);
  padding: 15px;
  text-align: left;
}

th {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

tr:nth-child(even) {
  background: rgba(74, 158, 255, 0.05);
}

tr:hover {
  background: rgba(74, 158, 255, 0.1);
}

/* Изображения */
img {
  background: var(--card);
  border-radius: 8px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .site-header .wrap {
    padding: 12px 15px;
  }
  
  .logo img {
    height: 40px;
  }
  
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px var(--shadow);
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-list li {
    width: 100%;
  }
  
  .nav-list a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 5px;
  }
  
  .burger {
    display: inline-block;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .wrap {
    padding: 15px;
  }
  
  .content h1 {
    font-size: 2em;
  }
  
  .content h2 {
    font-size: 1.6em;
  }
  
  .grid.cards {
    grid-template-columns: 1fr;
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-actions {
    justify-content: center;
  }
  
  .newsletter {
    flex-direction: column;
  }
  
  .newsletter input {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .content h1 {
    font-size: 1.8em;
  }
  
  .card {
    padding: 20px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
