/* ============================================
   HYPE ONLINE — ОБЩИЙ ДИЗАЙН
   ============================================ */

@font-face {
  font-family: 'SiteFont';
  src: url('/s/one.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* === ФОН === */
body {
  min-height: 100vh;
  background-color: #1a1a1a;
  background-image:
    radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
  color: #fff;
  font-family: Arial, sans-serif;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* === ШАПКА === */
header {
  width: 100%;
  height: 70px;
  background: #161616;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-family: 'SiteFont', Arial, sans-serif;
  border-radius: 10px;
  position: relative;
  z-index: 100;
}

header img { height: 40px; width: auto; }

nav { display: flex; gap: 30px; }

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-family: 'SiteFont', Arial, sans-serif;
  transition: color 0.2s;
}

nav a:hover { color: #aaa; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 200;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 22, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 50;
}

.mobile-menu.active { opacity: 1; pointer-events: auto; }

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  font-family: 'SiteFont', Arial, sans-serif;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: #aaa; }

/* === КНОПКИ === */
.btn {
  position: relative;
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'SiteFont', Arial, sans-serif;
  font-size: 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.3s ease,
              background 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn:hover::before { left: 100%; }

.btn-primary {
  background: #fff;
  color: #161616;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25), 0 0 40px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.5), 0 0 80px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.btn:active { transform: translateY(-1px) scale(1.01); }

/* === КАРТОЧКИ === */
.card {
  position: relative;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  font-family: 'SiteFont', Arial, sans-serif;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 255, 255, 0.08);
}

/* === РАЗДЕЛИТЕЛЬ === */
.divider {
  width: 100%;
  max-width: 1200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px auto;
}

/* === ПОДВАЛ === */
footer {
  width: 100%;
  background: #161616;
  border-radius: 10px;
  margin-top: 40px;
  padding: 25px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-left { align-items: flex-end; text-align: right; }
.footer-center { align-items: center; text-align: center; }
.footer-right { align-items: flex-start; text-align: left; }

.footer-label {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #aaa;
}

.footer-value {
  font-family: 'SiteFont', Arial, sans-serif;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-value:hover { color: #aaa; }

.footer-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-docs {
  width: 100%;
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'SiteFont', Arial, sans-serif;
  font-size: 13px;
  color: #666;
}

.footer-docs a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-docs a:hover { color: #fff; }

.footer-docs-divider {
  margin: 0 10px;
  color: #444;
}

/* === МОБИЛЬНАЯ === */
@media (max-width: 768px) {
  header { padding: 0 20px; }
  nav { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }

  footer {
    padding: 18px 15px;
    gap: 10px;
  }

  .footer-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
  }

  .footer-left,
  .footer-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
  }

  .footer-left {
    align-items: flex-start;
    text-align: left;
  }

  .footer-right {
    align-items: flex-end;
    text-align: right;
  }

  .footer-divider {
    display: none;
  }

  .footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-top: 8px;
  }

  .footer-label {
    font-size: 11px;
  }

  .footer-value {
    font-size: 13px;
  }

  .footer-docs {
    font-size: 11px;
    padding-top: 12px;
    margin-top: 5px;
  }
}