/* Общие стили как в index.html */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: Arial, sans-serif;
  background: white; /* Изменено на белый */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Навигация */
nav {
  width: 100%;
  background: #000000;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

nav a.active {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #4a5cd8 0%, #663a99 100%);
}

.guide-container {
  max-width: 1000px;
  width: 100%;
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  color: #222;
  margin-bottom: 18px;
  font-size: 2em;
}

.header-controls {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.language-selector, .current-time {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 25px;
  border: 1px solid #eee;
  font-weight: bold;
}

select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  background: white;
  font-size: 14px;
}

.current-time strong {
  color: #000000;
}

.sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

.panel {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  border: 1px solid #eee;
}

h2 {
  font-size: 1.3em;
  margin-bottom: 15px;
  text-align: center;
  color: #000000;
  font-weight: bold;
}

.accordion {
  background: white;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.accordion-header {
  padding: 15px 20px;
  background: #000000;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #000000;
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
  padding: 20px;
  max-height: 4000px;
}

.accordion-content p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #555;
}

.accordion-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.accordion-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.note {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 12px 15px;
  margin: 15px 0;
  border-radius: 6px;
  font-size: 0.9em;
}

.warning {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  padding: 12px 15px;
  margin: 15px 0;
  border-radius: 6px;
  font-size: 0.9em;
}

.important {
  background: #d1ecf1;
  border-left: 4px solid #0dcaf0;
  padding: 12px 15px;
  margin: 15px 0;
  border-radius: 6px;
  font-size: 0.9em;
}

.watermark { 
  margin-top: 20px; 
  font-size: 0.9em; 
  opacity: 0.4; 
  text-align: center;
  color: #666;
}

.guide-container + div {
  text-align: center;
  margin-top: 15px;
}

.guide-container + div a {
  opacity: 0.6;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.guide-container + div a:hover {
  opacity: 0.9;
}

/* Адаптивность */
@media (min-width: 768px) {
  .sections {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .guide-container {
    padding: 15px;
    margin: 15px;
    border-radius: 12px;
  }
  
  h1 {
    font-size: 1.8em;
  }
  
  .header-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .language-selector, .current-time {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 8px;
    padding: 8px;
  }
  
  nav a {
    font-size: 0.85em;
    padding: 6px 10px;
  }
  
  .guide-container {
    padding: 12px;
    margin: 10px;
  }
  
  h1 {
    font-size: 1.6em;
    margin-bottom: 15px;
  }
  
  .header-img {
    height: 120px;
  }
  
  .accordion-header {
    padding: 12px 15px;
    font-size: 0.9em;
  }
  
  .accordion-content {
    padding: 0 15px;
  }
  
  .accordion-content.active {
    padding: 15px;
  }
}