/* ===== БАЗОВЫЙ СБРОС ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  background: #f4f7fc;
  color: #1e2b37;
  line-height: 1.5;
  padding: 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 32px;
  box-shadow: 0 20px 40px -10px rgba(0, 20, 30, 0.2);
  padding: 30px 25px;
}

/* ===== ТИПОГРАФИКА ===== */
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(145deg, #0b3b5c, #1b5a7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.subhead {
  font-size: 1.2rem;
  color: #2c4e6e;
  margin-bottom: 2rem;
  border-left: 5px solid #3fa7d0;
  padding-left: 20px;
  background: #eef7fd;
  border-radius: 0 40px 40px 0;
  padding: 12px 25px;
}

h2 {
  font-size: 1.9rem;
  font-weight: 600;
  color: #0a3142;
  margin: 2.5rem 0 1.2rem 0;
  padding-bottom: 8px;
  border-bottom: 4px solid #3fa7d0;
  display: inline-block;
}

/* ===== НАВИГАЦИЯ (ССЫЛКИ) ===== */
.nav-rubrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  background: #e2edf5;
  padding: 18px 25px;
  border-radius: 60px;
  margin: 30px 0 25px 0;
  justify-content: center;
}

.nav-rubrics a {
  text-decoration: none;
  font-weight: 600;
  color: #144a66;
  background: white;
  padding: 8px 22px;
  border-radius: 40px;
  box-shadow: 0 4px 8px rgba(0,30,40,0.08);
  transition: 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-rubrics a:hover {
  background: #3fa7d0;
  color: white;
  border-color: #1f6e8e;
  transform: translateY(-2px);
}

.nav-rubrics a:active {
  transform: translateY(0);
}

/* ===== ДЕВИЗ (НОВЫЙ) ===== */
.motto {
  background: linear-gradient(135deg, #f0f9ff, #e6f2fa);
  border-radius: 30px;
  padding: 25px 30px;
  margin: 20px 0 25px;
  box-shadow: 0 8px 20px rgba(0,40,60,0.1);
  border: 1px solid rgba(63,167,208,0.3);
  text-align: center;
}

.motto-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #1a4356;
  margin: 10px 0;
}

.motto-highlight {
  font-size: 1.8rem;
  font-weight: 800;
  color: #215e7c;
  margin: 20px 0 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 rgba(233,138,62,0.2);
}

.motto-highlight i {
  color: #e98a3e;
  margin: 0 15px;
  font-size: 2rem;
}

/* ===== КАРТОЧКИ ===== */
.guides-vertical {
  display: block;
}

.guides-vertical .guide-card {
  margin-bottom: 30px;
  width: 100%;
}

.guide-card, .event-card, .faq-card, .announce-card, .gallery-item, .info-block {
  background: #ffffff;
  border-radius: 28px;
  padding: 20px 22px;
  box-shadow: 0 10px 20px rgba(0, 30, 45, 0.05);
  border: 1px solid rgba(63, 167, 208, 0.2);
  transition: all 0.2s ease;
}

.guide-card:hover, .event-card:hover {
  box-shadow: 0 15px 30px rgba(26, 115, 160, 0.15);
  border-color: #3fa7d0;
}

.guide-card h4 {
  font-size: 1.5rem;
  color: #1b4e6e;
  margin-bottom: 10px;
  font-weight: 700;
  border-left: 6px solid #f0b27a;
  padding-left: 15px;
}

.badge {
  background: #fbe9d2;
  color: #b1540f;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 12px;
}

.roles {
  background: #e0f0f8;
  padding: 12px 15px;
  border-radius: 18px;
  margin: 15px 0;
  font-size: 0.95rem;
}

.roles i {
  color: #c96b2c;
  width: 22px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 15px;
  background: #f7fbfe;
  padding: 12px;
  border-radius: 20px;
}

.stats span {
  background: white;
  padding: 5px 15px;
  border-radius: 40px;
  font-weight: 500;
  box-shadow: 0 2px 5px #cbdbe8;
}

/* ===== РАСПИСАНИЕ (ТАБЛИЦА) ===== */
.schedule-wrapper {
  overflow-x: auto;
  margin: 25px 0 15px;
  border-radius: 24px;
  border: 1px solid #bdd8e9;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 700px;
}

th {
  background: #215e7c;
  color: white;
  padding: 14px 8px;
  font-weight: 600;
  font-size: 1rem;
}

td {
  padding: 12px 8px;
  border-bottom: 1px solid #cde1ef;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

.event-tch { color: #a5502b; font-weight: 600; }
.event-da { color: #1b7e5b; font-weight: 600; }
.event-igra { color: #2a6f97; font-weight: 600; }
.footnote { font-size: 0.85rem; margin-top: 8px; }

/* ===== FAQ ===== */
.rule-list {
  list-style: none;
}
.rule-list li {
  margin-bottom: 18px;
  padding-left: 30px;
  position: relative;
}
.rule-list li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: #e98a3e;
  font-size: 1.3rem;
}
.green { color: #1b9e5c; font-weight: 600; }
.orange { color: #cf7b2c; font-weight: 600; }
.red { color: #c03c2b; font-weight: 600; }

/* ===== ГАЛЕРЕЯ ОТЧЁТОВ ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.gallery-item {
  text-align: center;
  padding: 10px;
  background: #f8fcff;
  border-radius: 20px;
  transition: 0.2s;
  border: 1px solid rgba(63, 167, 208, 0.2);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,30,45,0.1);
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #e1f0fa;
  margin-bottom: 10px;
  border: 2px solid white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.image-wrapper img:hover {
  transform: scale(1.05);
}

.filename {
  font-weight: 600;
  font-size: 0.85rem;
  background: #e2edf5;
  padding: 4px 10px;
  border-radius: 40px;
  display: inline-block;
  margin-bottom: 5px;
  word-break: break-word;
  max-width: 100%;
}

.gallery-date {
  font-size: 0.8rem;
  color: #215e7c;
}

.no-reports {
  text-align: center;
  padding: 40px;
  background: #f0f7fd;
  border-radius: 30px;
  color: #2f5575;
  font-style: italic;
}

/* ===== МОДАЛЬНОЕ ОКНО С НАВИГАЦИЕЙ ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  background: rgba(0,0,0,0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.close:hover {
  color: #e98a3e;
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.2s;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.next {
  right: 20px;
  border-radius: 50%;
}

.prev {
  left: 20px;
  border-radius: 50%;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
  color: #e98a3e;
}

/* ===== ИНФОРМАЦИЯ ===== */
.info-block p {
  margin: 10px 0;
  font-size: 1.1rem;
}
.info-block i {
  margin-right: 12px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 650px) {
  body { padding: 10px; }
  .container { padding: 18px 12px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .nav-rubrics a { padding: 6px 15px; font-size: 0.9rem; }
  .motto-highlight { font-size: 1.4rem; }
  .motto-text { font-size: 1rem; }
}

@media (max-width: 480px) {
  .stats span { font-size: 0.8rem; padding: 4px 10px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .close {
    top: 10px;
    right: 15px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
  .prev, .next {
    font-size: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ===== ДОПОЛНИТЕЛЬНО ===== */
hr {
  margin: 30px 0 10px;
  border: 2px dotted #bfd9ec;
}
.footer-note {
  text-align: right;
  font-size: 0.9rem;
  color: #5f7e97;
  margin-top: 40px;
}
details {
  margin-top: 15px;
  cursor: pointer;
  padding: 10px;
  background: #f0f8ff;
  border-radius: 16px;
}
summary {
  font-weight: 600;
  color: #215e7c;
  outline: none;
}