:root {
  --moss: #A8D8B9;
  --moss-light: #C8E8D9;
  --moss-dark: #5D7A5C;
  --bg: #0f1714;
  --bg-light: #1a2522;
  --text: #E0F0E3;
  --text-secondary: #c0d6cc;
  --card-bg: rgba(30, 40, 35, 0.7);
  --border: rgba(168, 216, 185, 0.15);
  --border-hover: rgba(168, 216, 185, 0.35);
  --shadow: rgba(0, 0, 0, 0.3);
  --error: #ff6b6b;
  --success: #51cf66;
}


/* Дополнительный класс для информационного уведомления */
.notification-info .notification-icon {
  color: #2196F3; /* Синий цвет для информационных сообщений */
}

.notification-info {
  border-left: 4px solid #2196F3;
}

/* Анимация кнопки при копировании */
.btn-copied {
  background: var(--success) !important;
  transform: scale(0.95);
  transition: all 0.3s ease;
}

/* Инструкция по подключению */
.connection-guide {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.connection-steps {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.connection-steps li {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Партиклы листиков */
#leaf-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.leaf {
  position: absolute;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23A8D8B980"><path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2a2 2 0 110 4 2 2 0 010-4z"/></svg>');
  opacity: 0.3;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Плавный скролл */
html {
  scroll-behavior: smooth;
}

/* Header */
header {
  text-align: center;
  padding: 5rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--moss), transparent);
}

.logo {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1.2rem;
  line-height: 2;
  background: linear-gradient(135deg, var(--moss) 0%, var(--moss-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

/* Исправлено: палочка под логотипом опущена ниже */
.logo::after {
  content: "";
  position: absolute;
  bottom: -12px; /* Изменено с -8px на -12px */
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--moss);
  border-radius: 2px;
  opacity: 0.8;
}

.tagline {
  font-size: 1.8rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: var(--moss-light);
  font-weight: 300;
  font-style: italic;
}

.subtagline {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
}

/* Статистика онлайн */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem auto 3rem;
  flex-wrap: wrap;
  max-width: 800px;
}

.stat-card {
  background: rgba(30, 40, 35, 0.6);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(168, 216, 185, 0.1);
  text-align: center;
  min-width: 180px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 20px var(--shadow);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--moss);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.online-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4CAF50;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--moss) 0%, var(--moss-dark) 100%);
  color: var(--bg);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--moss-dark) 0%, var(--moss) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(93, 122, 92, 0.4);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
}

.btn-secondary {
  background: rgba(168, 216, 185, 0.1);
  color: var(--moss);
}

.btn-secondary:hover {
  background: rgba(168, 216, 185, 0.2);
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

section {
  margin: 5rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--moss);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--moss), transparent);
  margin: 0.75rem auto;
  border-radius: 2px;
}

/* Donate планы - симметричные */
.donate-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.donate-container {
  width: 100%;
  overflow: visible;
}

.donate-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  justify-content: center;
}

/* Гарантируем одинаковую высоту всех карточек */
.plan {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Общий контейнер для содержимого с одинаковой высотой */
.plan-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  width: 100%;
}

.plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--moss), var(--moss-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.plan:hover {
  transform: translateY(-10px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px var(--shadow);
}

.plan:hover::before {
  transform: scaleX(1);
}

.plan-icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan h3 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.plan .price {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0.8rem 0 1.5rem;
  color: var(--moss-light);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan ul {
  list-style: none;
  text-align: left;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex-grow: 1;
  width: 100%;
  padding: 0 0.5rem;
}

.plan ul li {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.4;
}

.plan ul li::before {
  content: "✓";
  color: var(--moss);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.plan .btn {
  width: 100%;
  margin-top: auto;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Особенные стили для последнего плана */
.plan.koren {
  grid-column: span 1;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  background: var(--card-bg);
  padding: 2rem 1.8rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 25px var(--shadow);
}

.feature h3 {
  color: var(--moss);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Модальные окна */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 20, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  backdrop-filter: blur(5px);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-light);
  color: var(--text);
  padding: 2.5rem;
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal h3 {
  color: var(--moss);
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  text-align: center;
}

.modal h4 {
  color: var(--moss-light);
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
}

.modal p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.modal a {
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px dotted var(--moss);
  transition: border-color 0.2s ease;
}

.modal a:hover {
  border-bottom-color: transparent;
}

/* Форма ввода ника */
.form-group {
  margin: 1.5rem 0;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(168, 216, 185, 0.1);
}

.form-input::placeholder {
  color: rgba(224, 240, 227, 0.4);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.form-error {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}

/* Информация о покупке */
.purchase-info {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.purchase-item {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.purchase-item .label {
  color: var(--text-secondary);
}

.purchase-item .value {
  color: var(--text);
  font-weight: 500;
}

.purchase-total {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--moss);
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close:hover {
  color: var(--moss);
  background: rgba(168, 216, 185, 0.1);
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.modal-buttons .btn {
  flex: 1;
}

/* Уведомление об успехе */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  transform: translateX(400px);
  transition: transform 0.4s ease;
  max-width: 350px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification.show {
  transform: translateX(0);
}

.notification-icon {
  font-size: 1.5rem;
}

.notification-success .notification-icon {
  color: var(--success);
}

.notification-error .notification-icon {
  color: var(--error);
}

.notification-content h4 {
  margin-bottom: 0.3rem;
  color: var(--text);
}

.notification-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  background: rgba(15, 23, 20, 0.8);
}

.footer-links {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--moss);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.2s ease;
  position: relative;
}

.footer-links a:hover {
  background: rgba(168, 216, 185, 0.1);
  transform: translateY(-2px);
}

.footer-links a::after {
  content: "•";
  color: var(--moss-dark);
  position: absolute;
  right: -0.5rem;
  opacity: 0.5;
}

.footer-links a:last-child::after {
  display: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .donate-plans {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }
  
  .plan {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .logo { font-size: 3rem; }
  .tagline { font-size: 1.5rem; }
  .subtagline { font-size: 1rem; }
  h2 { font-size: 1.8rem; }
  .donate-plans { 
    grid-template-columns: 1fr; 
    max-width: 400px; 
    margin: 0 auto; 
  }
  .features { grid-template-columns: 1fr; }
  .modal-content { padding: 1.8rem; }
  .footer-links { flex-direction: column; gap: 0.5rem; }
  .footer-links a::after { display: none; }
  .stats { gap: 1rem; }
  .stat-card { 
    min-width: 140px; 
    padding: 1.2rem 1.5rem; 
  }
  .stat-value { font-size: 2rem; }
  .modal-buttons { flex-direction: column; }
  .notification {
    left: 1rem;
    right: 1rem;
    max-width: calc(100% - 2rem);
  }
}

@media (max-width: 480px) {
  header { padding: 3rem 1rem 2rem; }
  main { padding: 0 1rem; }
  .plan { padding: 1.5rem; }
  .feature { padding: 1.5rem 1.2rem; }
  .stats { flex-direction: column; align-items: center; }
  .stat-card { width: 100%; max-width: 250px; }
}
