:root {
  --orange: #ff5c00;
  --orange-glow: #ff3c00;
  --dark: #0f0f0f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: black;
}

@keyframes rotating {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.bg::before {
  z-index: -1;
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 300%;
  height: 300%;
  overflow: visible;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(https://i.scdn.co/image/ab67616d0000b273af52c228c9619ff6298b08cd);
  background-size: cover;
  background-position: center;
  filter: blur(80px);
  animation: rotating 100s linear infinite;
}


.logo {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  max-width: 40%;
  margin-bottom: 30px;
}

.logo svg {
  margin: 0;
}

.logo .adlook,
.logo .hub {
  height: 40px;
}

.logo .adlook {
  width: 225px;
}

.logo .hub {
  width: 78px;
}

body {
  width: 100%;
  margin: 0;
  padding: 80px 0;
  display: flex;
  justify-content: center;
  background: #1b1b1b;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: white;
  min-height: 100vh;
}

.breathing-accent {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(221, 82, 53, 0.7), transparent 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: -999;
}

.container {
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - 160px);
  z-index: 2;
  position: relative;
}

h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-shadow: 0 0 15px rgba(255, 92, 0, 0.5);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1000px;
}


.card {
  transform-style: preserve-3d;
  will-change: transform;
  transform-origin: center center;
  transition: transform 0.2s ease, border-color 0.3s, box-shadow 0.3s, scale 0.3s ease-in-out;
  perspective: 1000px;
  min-width: 250px;
  min-height: 180px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  text-decoration: none;
  color: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.009);
}

.card:hover {
  z-index: 2;
}

.card:not(.disable):hover {
  box-shadow: 0 10px 40px var(--accent-bg);
  scale: 1.02;
}

.card:not(.disable):hover {
  box-shadow: 0 10px 40px var(--accent-bg);
}

.card.disable {
  cursor: not-allowed;
}

.card.disable:hover {
  transform: none;
}

.card.disable svg path {
  fill: rgba(86, 86, 86, 0.463);
}

.card-content.disable p {
  color: rgba(86, 86, 86, 0.706);
}

.card.disable:hover .card-logo {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: transparent;
}

.card.disable::after {
  content: 'Сервис находится в разработке';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 3;
}

.card.disable:hover::after {
  opacity: 1;
}

.highlight {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  background: white;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  transition: top 0.2s, left 0.2s;
}

.card.accent1 {
  --accent-border: #2196f3;
  --accent-bg: rgba(33, 150, 243, 0.2);
}

.card.accent2 {
  --accent-border: #ff9800;
  --accent-bg: rgba(255, 152, 0, 0.2);
}

.card.accent3 {
  --accent-border: #4caf50;
  --accent-bg: rgba(76, 175, 80, 0.2);
}

.card.accent4 {
  --accent-border: #9c27b0;
  --accent-bg: rgba(156, 39, 176, 0.2);
}

.card.accent5 {
  --accent-border: #f44336;
  --accent-bg: rgba(244, 67, 54, 0.2);
}

.card.accent6 {
  --accent-border: #00bcd4;
  --accent-bg: rgba(0, 188, 212, 0.2);
}

.card.accent7 {
  --accent-border: #e91e63;
  --accent-bg: rgba(233, 30, 99, 0.2);
}

.card.accent8 {
  --accent-border: #ffc107;
  --accent-bg: rgba(255, 193, 7, 0.2);
}

.card-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  z-index: 2;
  position: relative;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-bottom-color 0.3s;
}

.card:not(.disable):hover .card-logo {
  background: var(--accent-bg);
}

.card:not(.disable):hover .card-logo {
  background: var(--accent-bg);
}

.card-logo svg {
  max-height: 40px;
  max-width: 100%;
}

.card-logo.dop svg {
  margin-top: 10px;
  max-height: 50px;
  max-width: 100%;
}

.card-content {
  padding: 20px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 2;
  height: calc(100% - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.3s, border-bottom-color 0.3s;
}

.card:not(.disable):hover .card-content {
  background: var(--accent-bg);
}

.card-content h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.card-content p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  text-align: center;
}

.transition {
  transition: all 0.125s;
}

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.login-box {
  background: #1e1e1e;
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  width: 300px;
  z-index: 3;
}

.login-box h2 {
  margin-bottom: 20px;
  text-align: center;
}

.login-box input {
  margin-bottom: 15px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #333;
  color: white;
}

.login-box button {
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.login-box button:hover {
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .logo {
    max-width: 80%;
    margin-bottom: 15px;
  }
}