* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body {
  background: #0b0b0b;
  color: #eee;
  line-height: 1.6;
  scroll-behavior: smooth;
}
.wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(8px);
  padding: 15px 0;
  z-index: 1000;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .logo { width: 50px; }
header h1 { font-family: 'Cinzel', serif; color: #f5d97a; font-size: 2em; }
nav a {
  color: #f5d97a;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s;
}
nav a:hover { color: #d4b55c; }

/* Hero section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(11,11,11,0.8), rgba(11,11,11,0.8)), url('background.jpg') center/cover no-repeat;
}
.hero h2 {
  font-family: 'Cinzel', serif;
  color: #f5d97a;
  font-size: 3em;
  margin-bottom: 20px;
}
.hero p { font-size: 1.2em; max-width: 700px; margin: 0 auto; color: #ccc; }

/* Блоки */
.block { padding: 80px 0; text-align: center; }
.block h2 {
  font-family: 'Cinzel', serif;
  color: #f5d97a;
  font-size: 2em;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(245, 217, 122, 0.2);
  display: inline-block;
}
.block p, .block ul, .block form { max-width: 700px; margin: 0 auto; text-align: center; }

/* Состав клана */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.member {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.member img { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 10px; }
.member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(245, 217, 122, 0.3);
}
.member h3 { color: #f5d97a; margin-bottom: 5px; }
.member span { color: #ccc; font-size: 0.9em; }

/* Новости */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 20px; }
.news-item {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}
.news-item h4 { color: #f5d97a; margin-bottom: 10px; }
.news-item p { color: #ccc; font-size: 0.95em; }
.news-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(245,217,122,0.3); }

/* Контактная форма */
.contact-form input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #111;
  color: #fff;
  transition: 0.3s;
}
.contact-form input:focus { outline: 2px solid #f5d97a; }
.contact-form button {
  background: linear-gradient(90deg, #d4b55c, #f5d97a);
  border: none;
  padding: 12px 40px;
  color: #000;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245,217,122,0.4);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  color: #777;
  border-top: 1px solid rgba(245, 217, 122, 0.1);
}

/* Mobile */
@media (max-width: 768px) {
  .header-content { flex-direction: column; }
  nav a { margin: 10px 0; }
  .grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 2em; }
  .hero p { font-size: 1em; }
}

.telegram-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.telegram-btn {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #d4b55c, #f5d97a);
  color: #000;
  font-weight: 700;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.telegram-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245,217,122,0.4);
}

.telegram-btn .icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* Таймлайн стиль */
.timeline {
  position: relative;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 2px solid #888;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
  max-height: 1000px; /* для плавного открытия */
  opacity: 1;
}

.timeline.collapse {
  max-height: 0;
  opacity: 0;
  padding-left: 0;
  border-left: none;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: #444;
  border-radius: 50%;
  border: 2px solid #fff;
  transition: background-color 0.3s ease;
}

.timeline-date {
  font-weight: bold;
  color: #ffcc00;
  display: block;
  margin-bottom: 5px;
}

  /* Кнопка админки */
  #admin-toggle {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    padding: 10px 16px;
    background: linear-gradient(145deg, #ffcc00, #ffaa00);
    color: #222;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
  }

  #admin-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  }

  /* Панель админки */
  #admin-panel {
    position: fixed;
    top: 50px;
    right: 10px;
    width: 320px;
    background: #1a1a1a;
    color: #ffcc00;
    padding: 15px;
    border: 2px solid #ffcc00;
    border-radius: 12px;
    display: none;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
  }

  #admin-panel h3 {
    margin-top: 0;
    font-size: 18px;
    text-align: center;
    margin-bottom: 12px;
  }

  #admin-panel input, 
  #admin-panel button {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ffcc00;
    background: #222;
    color: #ffcc00;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
  }

  #admin-panel button {
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
  }

  #admin-panel button:hover {
    background: #ffcc00;
    color: #222;
    transform: scale(1.03);
  }

  