@charset "utf-8";
/* CSS Document — Стиль "Лесные феи" 🌿🧚‍♀️🌸 */
nav ul li a:hover::after {
    content: "🌸";
    position: absolute;
    animation: fall 1s ease-out;
}
.header-flower {
    text-align: center;
    margin-bottom: 1rem;
}

.header-flower img {
    max-width: 200px;
    opacity: 0.8;
}
img {
  width: 100%;
  }
figcaption {
	font-size: 30px;
	line-height: 1.3;
	font-family: 'Times New Roman', serif;
	}

/* ===== ОСНОВНЫЕ НАСТРОЙКИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', 'Segoe UI', 'Inter', sans-serif; /* Более нежный шрифт */
  background: #f5f0e7;  /* Тёплый кремовый фон */
  color: #3a3a3a;
  line-height: 1.7;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  
  /* 🖼️ ИНСТРУКЦИЯ: Добавляем фоновый лес/траву 
     Положи картинку леса в папку images/backgrounds/ и раскомментируй строку ниже */
  background-image: url('../images/backgrounds/forest-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-blend-mode: overlay;
}

/* ===== ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ===== */

/* 🧚‍♀️ Летающие феи (фоновая анимация) */
.fairy-dust {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;  /* Чтобы не мешали кликать */
  z-index: 9999;
  
  /* 🖼️ ИНСТРУКЦИЯ: Положи прозрачную PNG с феечками в images/decor/
     и раскомментируй строку ниже */
  background: url('../images/decor/fairies.png') repeat 0 0;
  animation: float 60s linear infinite;
  opacity: 0.3;
}

@keyframes float {
  from { background-position: 0 0; }
  to { background-position: 100% 100%; }
}

/* 🌸 Цветочный декор для заголовков */
h1::before, h2::before {
  content: "🌸";
  font-size: 1.5rem;
  margin-right: 0.5rem;
  opacity: 0.7;
  display: inline-block;
  animation: sway 3s ease-in-out infinite;
}

h3::before {
  content: "🌿";
  font-size: 1.2rem;
  margin-right: 0.3rem;
  opacity: 0.6;
}

@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3 {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #2d4a3b;  /* Тёмно-зелёный */
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #c1d5c0;  /* Мятная линия вместо серой */
  padding-bottom: 1rem;
  font-family: 'Playfair Display', serif;  /* Более изящный шрифт для заголовков */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

h2 {
  font-size: 2.2rem;
  margin: 2rem 0 1rem;
  color: #3d5e4c;
}

h3 {
  font-size: 1.6rem;
  margin: 1.5rem 0 0.5rem;
  color: #5b7c6a;
}

p {
  margin-bottom: 1.2rem;
  color: #4a4a4a;
  font-size: 1.5rem;
}

/* ===== КАРТОЧКИ ===== */
.card, section {
  background: rgba(255, 255, 255, 0.85);  /* Полупрозрачный белый */
  backdrop-filter: blur(5px);  /* Эффект матового стекла */
  border: 1px solid #d4e0d0;
  border-radius: 20px;  /* Скруглённые углы */
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 20px rgba(100, 120, 100, 0.1);
  
  /* 🖼️ ИНСТРУКЦИЯ: Можно добавить цветочный узор на карточки
     Положи flowers-pattern.png в images/patterns/ */
  /* background-image: url('../images/patterns/flowers-pattern.png'); */
  background-repeat: repeat;
  background-size: 100px;
  background-blend-mode: overlay;
}

/* ===== НАВИГАЦИЯ ===== */
nav {
  margin-bottom: 2rem;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background: rgba(230, 240, 230, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 50px;  /* Овальная форма */
  border: 1px solid #b8cfb0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

nav ul li {
  margin: 0;
}

nav ul li a {
  display: block;
  color: #3d5e4c;
  text-align: center;
  padding: 14px 24px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  border-bottom: none;
}

nav ul li a:hover {
  background: #a7c5a3;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(100, 130, 100, 0.3);
}

/* ===== ССЫЛКИ ===== */
a {
  color: #5b7c6a;
  text-decoration: none;
  border-bottom: 1px dotted #b8cfb0;
  font-weight: 500;
  transition: all 0.2s;
}

a:hover {
  color: #2d4a3b;
  border-bottom: 1px solid #7fa07a;
}

/* ===== ТАБЛИЦЫ ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(255,255,255,0.6);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

td, th {
  padding: 1rem;
  border-bottom: 1px solid #d9e3d5;
  text-align: left;
}

th {
  background: #c1d5c0;
  color: #2d4a3b;
  font-weight: 600;
}

tr:hover {
  background: rgba(170, 200, 160, 0.2);
}

/* ===== КОЛОНКИ (из твоего первого CSS) ===== */
div.column60 { 
  width: 60%; 
  float: left;
  padding-right: 20px;
}

div.column40 { 
  width: 40%; 
  float: left;
  padding-left: 20px;
}

/* Очистка float после колонок */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ===== ФУТЕР ===== */
footer {
  margin-top: 4rem;
  padding: 2rem;
  border-top: 2px dashed #c1d5c0;
  color: #7a8f7a;
  font-size: 0.95rem;
  text-align: center;
  position: relative;
}

/* Цветочек в футере */
footer::after {
  content: "🌼";
  font-size: 1.5rem;
  display: block;
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* ===== ДЕКОРАТИВНЫЕ ЛИНИИ ===== */
hr {
  border: none;
  border-top: 2px dashed #c8dbc0;
  margin: 2rem 0;
  position: relative;
}

hr::before {
  content: "✧";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f5f0e7;
  padding: 0 10px;
  color: #8aa88a;
  font-size: 1.2rem;
}

/* ===== СЕТКА ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* ===== КНОПКИ В СТИЛЕ "ЦВЕТОЧКИ" ===== */
.button, .btn {
  display: inline-block;
  background: #e3f0df;
  color: #2d4a3b;
  padding: 10px 25px;
  border-radius: 30px;
  border: 1px solid #a7c5a3;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(130, 160, 130, 0.2);
  border-bottom: none;
}

.button:hover, .btn:hover {
  background: #a7c5a3;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(100, 130, 100, 0.3);
}

/* ===== СПИСКИ ===== */
ul, ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

li {
  margin-bottom: 0.5rem;
  color: #4a5a4a;
}

ul li::marker {
  color: #8aa88a;
  content: "�� ";
}

/* ===== АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ ===== */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  div.column60, div.column40 {
    width: 100%;
    float: none;
    padding: 0;
  }
  
  nav ul {
    border-radius: 20px;
  }
  
  nav ul li a {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}
