/* ===== base.css — только то, что реально используется сайтом ===== */
* { box-sizing: border-box; margin: 0; padding: 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; transition: background 0.2s ease; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
::-webkit-scrollbar-thumb:active { background: rgba(255,255,255,0.35); }

html { -webkit-text-size-adjust: 100%; }
body { font: 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #e0e0e0; background-color: #0a0a0a; padding-top: 64px; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: #f0f0f0; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #fff; }

/* фон с сеткой */
.main-background { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; opacity: 0.4;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.02) 0%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 60px); }
.main-background::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 300px; background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent); opacity: 0.6; }

/* шапка */
.site-header { position: fixed; top: 0; left: 0; width: 100%; height: 64px; background-color: rgba(17,17,17,0.2); border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; z-index: 1000; backdrop-filter: blur(6px); }
.header-left { display: flex; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 20px; }
.site-title { font-size: 20px; font-weight: 600; color: #fff; }

.search-wrapper { position: relative; }
.search-input { width: 240px; height: 36px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 0 16px 0 40px; font-size: 14px; color: #fff; font-family: inherit; transition: all 0.2s ease; outline: none; }
.search-input::placeholder { color: rgba(255,255,255,0.4); }
.search-input:focus { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); width: 280px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-icon::before { content: ''; display: block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.5); border-radius: 50%; position: relative; }
.search-icon::after { content: ''; display: block; width: 2px; height: 6px; background: rgba(255,255,255,0.5); position: absolute; bottom: -2px; right: -2px; transform: rotate(-45deg); }

.projects-button { height: 36px; padding: 0 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; }
.projects-button:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: #fff; }
.projects-button::before { content: ''; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav-schedule::before { display: none; }

/* индикатор статуса */
.status-wrapper { position: relative; }
.status-indicator { width: 14px; height: 14px; border-radius: 50%; cursor: pointer; display: inline-block; border: 1px solid #888; position: relative; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); } 50% { box-shadow: 0 0 8px 4px rgba(255,255,255,0.2); } }
.status-green { background-color: #2ecc71; opacity: 0.9; }
.status-orange { background-color: #f39c12; opacity: 0.8; }
.status-red { background-color: #e74c3c; opacity: 0.8; }
.status-popup { position: absolute; top: 22px; left: 0; width: 320px; background-color: #1a1a1a; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transform: translateY(6px); transition: 0.15s ease; z-index: 1001; }
.status-wrapper:hover .status-popup { opacity: 1; pointer-events: auto; transform: translateY(0); }
.status-popup h4 { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #fff; }
.status-line { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; color: #d0d0d0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.green { background: #2ecc71; opacity: 0.9; }
.dot.orange { background: #f39c12; opacity: 0.8; }
.dot.red { background: #e74c3c; opacity: 0.8; }
.status-desc { font-size: 12px; line-height: 1.5; color: #888; margin-top: 6px; }
.status-popup hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 8px 0; }
.status-links { display: flex; gap: 12px; margin-top: 6px; }
.status-links a { font-size: 12px; color: #d0d0d0; }
.status-links a:hover { color: #fff; text-decoration: underline; }

/* подвал */
footer.footer { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(17,17,17,0.9); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,0.06); padding: 12px 24px; display: flex; justify-content: center; z-index: 900; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; width: 100%; }
.footer-brand { font-size: 14px; opacity: 0.7; letter-spacing: 1px; font-weight: 600; }
.footer-link { font-size: 13px; color: #d0d0d0; opacity: 0.7; transition: opacity 0.2s ease; }
.footer-link:hover { opacity: 1; color: #fff; }

/* согласие на хранение данных */
#cookieConsentOverlay { position: fixed; inset: 0; background: rgba(0,0,0,0.88); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; z-index: 9999; animation: fadeIn 0.4s cubic-bezier(0.4,0,0.2,1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-content { background: #fff; padding: 48px 56px; border-radius: 2px; max-width: 540px; color: #1a1a1a; box-shadow: 0 24px 64px rgba(0,0,0,0.24); animation: slideUp 0.5s cubic-bezier(0.4,0,0.2,1); }
.cookie-content h3 { margin-bottom: 20px; font-size: 22px; font-weight: 500; color: #000; letter-spacing: -0.3px; }
.cookie-content p { margin: 12px 0; font-size: 14px; line-height: 1.7; color: #4a4a4a; }
.cookie-content p.warning { color: #1a1a1a; background: #f5f5f5; padding: 16px 20px; border-left: 2px solid #000; margin: 20px 0; font-size: 13px; line-height: 1.6; }
.cookie-content form { margin-top: 32px; }
.cookie-content label { display: flex; align-items: center; margin: 16px 0; font-size: 14px; color: #2a2a2a; cursor: pointer; }
.cookie-content input[type="checkbox"] { appearance: none; width: 18px; height: 18px; border: 1.5px solid #ccc; border-radius: 1px; margin-right: 14px; cursor: pointer; position: relative; transition: all 0.2s ease; flex-shrink: 0; background: #fff; }
.cookie-content input[type="checkbox"]:hover { border-color: #888; }
.cookie-content input[type="checkbox"]:checked { background: #000; border-color: #000; }
.cookie-content input[type="checkbox"]:checked::after { content: ""; position: absolute; top: 2px; left: 5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.cookie-content button { margin-top: 32px; padding: 14px 0; width: 100%; background: #000; border: none; border-radius: 1px; cursor: pointer; font-weight: 500; font-size: 14px; color: #fff; letter-spacing: 0.3px; transition: all 0.2s ease; font-family: inherit; }
.cookie-content button:hover { background: #1a1a1a; }
.cookie-content button:active { transform: scale(0.99); }
.cookie-content button:disabled { opacity: 0.4; cursor: not-allowed; }

/* адаптив */
@media (max-width: 768px) {
  .site-header { padding: 0 16px; }
  .header-right { gap: 12px; flex: 1; justify-content: flex-end; }
  .nav-schedule { display: none; }
  .search-input { width: 180px; }
  .search-input:focus { width: 200px; }
  .projects-button { padding: 0 16px; font-size: 13px; }
}
@media (max-width: 600px) {
  .cookie-content { margin: 20px; padding: 32px 28px; max-width: calc(100% - 40px); max-height: 90vh; overflow-y: auto; }
  .cookie-content h3 { font-size: 20px; }
}
@media (max-width: 480px) {
  .site-title { font-size: 16px; }
  .search-input { width: 130px; font-size: 13px; }
  .search-input:focus { width: 150px; }
  .projects-button span { display: none; }
  .projects-button { padding: 0; width: 36px; justify-content: center; }
  .status-popup { position: fixed; left: 16px; right: 16px; top: 70px; width: auto; }
  .footer-inner { flex-direction: column; gap: 6px; }
}
