﻿:root {
  --bg: #000000;
  --surface: #040608;
  --surface-2: #020305;
  --card-border: rgba(166, 173, 184, 0.34);
  --card-glow: rgba(166, 173, 184, 0.06);
  --card-radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: #f2f6f7;
  background-color: #000;
}

.page-content {
  width: 100%;
  padding: 0 0 96px;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-media {
  position: relative;
  width: min(100%, 1280px);
  margin: 0 auto 18px;
  isolation: isolate;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media::before {
  z-index: 2;
  background: linear-gradient(
    90deg,
    #000 0%,
    rgba(0, 0, 0, 0) 13%,
    rgba(0, 0, 0, 0) 87%,
    #000 100%
  );
}

.hero-media::after {
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 58%,
    rgba(0, 0, 0, 0.78) 84%,
    #000 100%
  );
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-surface-link {
  display: block;
  width: 100%;
  height: 100%;
}

.card-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 58px;
}

.card-item {
  --btn-h: 32px;
  position: relative;
  width: min(56%, 630px);
  padding-bottom: calc(var(--btn-h) / 2);
}

.card-surface {
  position: relative;
  aspect-ratio: 5 / 2;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.26),
    0 0 14px var(--card-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateZ(0);
}

.card-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(186, 194, 205, 0.06);
}

.card-button {
  position: absolute;
  left: 50%;
  bottom: calc(var(--btn-h) / 2);
  z-index: 3;
  transform: translate(-50%, 50%);
  width: clamp(160px, 18vw, 190px);
  max-width: 50%;
  height: var(--btn-h);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, #38fff5 0%, #00fff2 45%, #00d9cf 100%);
  color: #031714;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: clamp(0.56rem, 0.68vw, 0.64rem);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 180ms ease, filter 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.card-button:hover {
  transform: translate(-50%, calc(50% - 2px));
  background: linear-gradient(180deg, #c6ffff 0%, #54f4ff 42%, #1298ff 100%);
  border-color: rgba(120, 226, 255, 0.95);
  color: #001829;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(58, 189, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  filter: saturate(1.14) contrast(1.06);
}

.card-button:active {
  transform: translate(-50%, calc(50% + 1px));
  background: linear-gradient(180deg, #0cc9ff 0%, #0a8cff 44%, #045fd8 100%);
  border-color: rgba(132, 206, 255, 0.95);
  color: #e9f7ff;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.34),
    0 0 14px rgba(22, 148, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: saturate(1.16) contrast(1.07);
}

.card-button:focus-visible {
  background: linear-gradient(180deg, #c6ffff 0%, #54f4ff 42%, #1298ff 100%);
  border-color: rgba(120, 226, 255, 0.95);
  color: #001829;
}

@media (max-width: 1024px) {
  .card-list {
    gap: 46px;
  }

  .card-item {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .hero-media {
    margin-bottom: 11px;
  }

  .card-list {
    gap: 40px;
    padding-inline: clamp(8px, 3vw, 14px);
  }

  .card-item {
    --btn-h: 26px;
    width: 93%;
    padding-bottom: calc(var(--btn-h) * 0.8);
  }

  .card-button {
    width: clamp(150px, 46%, 176px);
    max-width: none;
    bottom: calc(var(--btn-h) * 0.8);
    font-size: clamp(0.52rem, 2.1vw, 0.62rem);
  }

  .card-list .card-item:nth-of-type(2) {
    padding-bottom: calc(var(--btn-h) * 0.95);
  }

  .card-list .card-item:nth-of-type(2) .card-button {
    width: clamp(142px, 44%, 166px);
    bottom: calc(var(--btn-h) * 0.95);
  }
}

.site-footer {
  width: 100%;
  background: #000000;
  border-top: 1px solid rgba(0, 255, 242, 0.15);
  padding: 40px 20px;
}

.site-footer-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.site-footer-text {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.6;
  font-weight: 400;
}

.site-footer-mark {
  color: rgba(0, 255, 242, 0.9);
  text-shadow: 0 0 8px rgba(0, 255, 242, 0.35);
  margin-right: 4px;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 30px 20px;
  }

  .site-footer-text {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-button {
    transition: none;
  }
}
