/* Base & background */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #e6faff;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-image: url("img/bg.JPG");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* фон не двигается при скролле */
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 0;
  display: grid;
  gap: 18px;
  min-height: 100vh;
  align-content: center; /* только вертикальное центрирование, ширина карточек не меняется */
}

/* Neon card */
.card {
  position: relative;
  border-radius: 9999px;
  isolation: isolate;
}

.card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Переливающаяся неоновая окантовка через маску */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px; /* толщина рамки: строго 2px */
  background: linear-gradient(90deg, #00eaff, #ff00d0, #00eaff, #ff00d0);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: neonFlow 8s linear infinite;
}


.card__inner {
  position: relative;
  border-radius: inherit;
  background: black;
  backdrop-filter: blur(2px);
  padding: 12px 16px; /* меньше блок */
  padding-left: calc(var(--btn-size, 84px) + 28px);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid transparent; /* 2px толщина, цвет задаёт псевдоэлемент */
  overflow: hidden;
}

.card__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px; /* толщина: 2px */
  background: linear-gradient(90deg, #00eaff, #ff00d0, #00eaff, #ff00d0);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: neonFlow 6s linear infinite;
}

@keyframes neonFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card__button {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: var(--btn-size, 84px); /* больше кнопка */
  height: var(--btn-size, 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  pointer-events: none; /* клик проходит по ссылке */
  animation: buttonSlideSmall 3.6s ease-in-out infinite;
}

.card__button img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 255, 234, 0.6));
}

.card__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.card__brand img {
  height: 40px; /* логотип вместо текста */
  width: auto;
  max-width: 100%;
  display: block;
}

.card__caption {
  font-size: 14px;
  line-height: 1.2;
  color: #ffffff;
  text-align: center;
}

.card__caption span { display: block; }
.card__caption .card__sub { opacity: 0.9; font-size: 13px; }

.card__text {
  flex: 1 1 auto;
  min-width: 0;
}

.card__text h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.card__text p {
  margin: 0;
  line-height: 1.45;
  color: #cfe9ff;
}

/* Адаптивность */
@media (max-width: 560px) {
  :root { --btn-size: 72px; }
  .card__text h3 { font-size: 16px; }
  .card__text p { font-size: 14px; }
}

@keyframes buttonSlideSmall {
  0%, 100% { left: 12px; }
  50% { left: calc(12px + var(--slide-amp, 8px)); }
}



