:root {
  --bg: #000000;
  --fg: #ffffff;
  --glass-bg: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.10);
  --glass-shadow: 0 10px 40px rgba(0,0,0,0.7);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html,body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: center; 
}

*::selection {
  background-color: rgba(255, 255, 255, 0.25);
}
 
#vanta-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  gap: 48px;
  animation: fadeInPage 0.8s var(--ease) both;
}

/* Хедер / герой */
.hero {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 60px;
  align-items: center;
  animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.logo-wrap {
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
  animation: fadeInScale 0.8s var(--ease) 0.2s both;
}

.logo-wrap:hover {
  transform: rotate(-1deg) scale(1.05);
  box-shadow: 0 18px 60px rgba(0,0,0,0.9);
}

.logo-wrap {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  padding: 12px;
}

.logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  filter: brightness(200%) contrast(120%);
}

.headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;

  font-family: "Manrope", system-ui;
}

.slogan {
  font-size: 18px;
  opacity: 0.9;
}

.apply-button {
  max-width: 100%;
}

.apply-button a {
  display: inline-block;
  padding: 12px 48px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  animation: slideInButton 0.8s var(--ease) both;
}

.apply-button a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s var(--ease);
}

.apply-button a:hover::before {
  left: 100%;
}

.apply-button a:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.1));
  box-shadow: 0 8px 24px rgba(255,255,255,0.2), 0 0 20px rgba(255,255,255,0.05);
  transform: translateY(-2px) scale(1.02);
}

/* Секции серверов */
.servers {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.server-card {
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background 0.6s var(--ease);
  will-change: transform;
  animation: fadeInUp 0.7s var(--ease) calc(0.3s + var(--card-delay, 0s)) both;
}

.server-card:nth-child(1) {
  --card-delay: 0s;
}

.server-card:nth-child(2) {
  --card-delay: 0.1s;
}

.server-card:nth-child(3) {
  --card-delay: 0.2s;
}

.server-card:nth-child(4) {
  --card-delay: 0.3s;
}

.server-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  background: rgba(255,255,255,0.08);
}

.server-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(6px) saturate(110%);
  -webkit-backdrop-filter: blur(6px) saturate(110%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
}

.server-media {
  flex: 1 1 auto;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
}

.server-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.server-info h3 {
  margin: 0;
  font-size: 20px;
  font-family: "Manrope", system-ui;
}

.server-info p {
  margin: 0;
  font-size: 16px;
  opacity: 0.85;
}

footer {
  opacity: 0.7;
  font-size: 14px;
  animation: fadeUp 1.2s var(--ease) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInButton {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInPage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

footer { 
  margin-top: 40px; 
  opacity: 0.8; 
  font-size: 13px; 
}

/* Адаптив */
@media (max-width: 1200px) {
  .page { gap: 40px; padding: 40px 20px; }
  .hero { gap: 40px; }
  .servers { gap: 16px; }
}

@media (max-width: 900px) {
  .page { gap: 32px; padding: 32px 16px; }
  
  .hero { 
    grid-template-columns: 1fr; 
    text-align: center;
    gap: 24px;
  }
  
  .logo-wrap { 
    margin: 0 auto;
    width: 120px;
    height: 120px;
  }
  
  .title { font-size: 28px; }
  .slogan { font-size: 14px; }
  
  .apply-button {
    width: 100%;
  }
  
  .apply-button a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    box-sizing: border-box;
  }
  
  .servers { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html, body { font-size: 14px; }
  .page { 
    gap: 24px; 
    padding: 24px 12px;
  }
  
  .hero { 
    gap: 16px;
  }
  
  .logo-wrap {
    width: 100px;
    height: 100px;
  }
  
  .headline { gap: 4px; }
  
  .title { 
    font-size: 24px;
    letter-spacing: -0.01em;
  }
  
  .slogan { font-size: 13px; }
  
  .apply-button a {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .server-card {
    padding: 14px;
    gap: 10px;
    min-height: 220px;
  }
  
  .server-info h3 {
    font-size: 14px;
  }
  
  .server-info p {
    font-size: 12px;
  }
  
  footer { 
    font-size: 11px;
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .page { padding: 16px 8px; }
  
  .logo-wrap {
    width: 80px;
    height: 80px;
    border-radius: 16px;
  }
  
  .title { font-size: 20px; }
  .slogan { font-size: 12px; }
  
  .server-card {
    padding: 12px;
    min-height: 200px;
  }
  
  .apply-button a {
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* Отключение hover-эффектов на сенсорных устройствах */
@media (hover: none) {
  .server-card:hover,
  .logo-wrap:hover {
    transform: none;
    box-shadow: var(--glass-shadow);
  }
  
  .apply-button a:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.06));
  }
}
