﻿:root {
  --bg-dark: #06070d;
  --bg-mid: #0a1020;
  --bg-accent: #25113d;
  --text: #f7f7fb;
  --muted: #b3b8d3;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-stroke: rgba(255, 255, 255, 0.14);
  --glow: #9b5cff;
  --glow-2: #5f7dff;
  --success: #8ef0ba;
  --radius-lg: 24px;
  --radius-md: 20px;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  /* background: radial-gradient(1300px 700px at 18% 14%, rgba(157, 84, 255, 0.28), transparent 60%),
    radial-gradient(900px 700px at 86% 30%, rgba(83, 101, 255, 0.22), transparent 58%),
    linear-gradient(164deg, var(--bg-dark) 0%, var(--bg-mid) 47%, #070a14 100%); */
  background-image: linear-gradient(270deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.85) 60%), url('/background.avif');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.background-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.liquid-glass-filters {
  position: absolute;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.blob-1 {
  width: 240px;
  height: 240px;
  background: linear-gradient(160deg, #9f6dff, #5f8aff);
  left: -80px;
  top: 180px;
}

.blob-2 {
  width: 260px;
  height: 260px;
  background: linear-gradient(120deg, #5f7dff, #7a48ff);
  right: -90px;
  top: 420px;
}

.blob-3 {
  width: 180px;
  height: 180px;
  background: linear-gradient(140deg, #b672ff, #5f7dff);
  left: 40%;
  bottom: -70px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(4, 5, 11, 0.84), rgba(4, 5, 11, 0.36));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 320ms var(--ease-premium);
}

.lang-btn.active {
  color: var(--text);
  background: linear-gradient(130deg, rgba(155, 92, 255, 0.42), rgba(95, 125, 255, 0.36));
  box-shadow: 0 0 14px rgba(155, 92, 255, 0.35);
}

main {
  position: relative;
  z-index: 1;
}

.section {
  width: min(1100px, 100% - 28px);
  margin: 0 auto;
  padding: 44px 0;
}

.glass {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--card-stroke);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero {
  padding-top: 34px;
}

.hero-card {
  border-radius: 28px;
  padding: 22px;

  display: grid;
  gap: 18px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(155, 92, 255, 0.55), rgba(95, 125, 255, 0.42), rgba(255, 255, 255, 0));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.9rem, 7.4vw, 3.3rem);
  line-height: 1.08;
}

.hero-text {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
  /* max-width: 42ch; */
}

.cta-stack {
  display: grid;
  gap: 12px;
}

.hero-cta-col {
  position: relative;
  z-index: 2;
}

.hero-reviews-rotator {
  border-radius: 28px;
  padding: 38px 20px;
  overflow: hidden;
}

.hero-reviews-rotator__title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(229, 231, 255, 0.72);
}

.reviews-section__cards {
  display: grid;
}

.reviews-section__card {
  grid-area: 1 / 1;
  display: grid;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 620ms var(--ease-premium), transform 620ms var(--ease-premium),
    visibility 0s linear 620ms;
}

.reviews-section__card.is-active,
.reviews-section__card.is-leaving,
.reviews-section__card.is-entering {
  visibility: visible;
  transition-delay: 0s;
}

.reviews-section__card.is-entering {
  opacity: 0;
  transform: translateY(24px);
}

.reviews-section__card.is-active {
  opacity: 1;
  transform: translateY(0);
}

.reviews-section__card.is-leaving {
  opacity: 0;
  transform: translateY(-18px);
}

.reviews-section__card-boby {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reviews-section__card-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.reviews-section__card-boby h3 {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reviews-section__source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(229, 231, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 74px;
}

.reviews-section__rating {
  display: inline-flex;
  gap: 2px;
  color: #ffcb64;
}

.reviews-section__rating i {
  font-style: normal;
  line-height: 1;
}

.reviews-section__rating i::before {
  content: "★";
}

.reviews-section__card-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reviews-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.reviews-btn {
  color: rgba(255, 255, 255, 0.2);
  background: transparent;
  border: 0;
  padding: .5rem 1rem;
}

.cta-btn {
  position: relative;
  border-radius: 20px;
  padding: .5rem 18px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 42%, rgba(145, 170, 255, 0.08)),
    linear-gradient(125deg, rgba(16, 22, 42, 0.66), rgba(28, 16, 44, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: border-color 520ms var(--ease-premium), background 520ms var(--ease-premium);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  border-radius: inherit;
  background:
    radial-gradient(70% 90% at 22% 12%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.06) 55%, transparent 76%),
    radial-gradient(80% 120% at 82% 110%, rgba(109, 160, 255, 0.23), rgba(109, 160, 255, 0.02) 64%);
  filter: url("#iosLiquidGlass");
  opacity: 0.88;
  pointer-events: none;
  will-change: filter, background-position;
}

.cta-btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  border-color: rgba(206, 221, 255, 0.4);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.09) 42%, rgba(145, 170, 255, 0.18)),
    linear-gradient(125deg, rgba(24, 32, 58, 0.86), rgba(38, 24, 58, 0.82));
}

.cta-btn:active {
  border-color: rgba(186, 205, 248, 0.38);
}

.cta-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  color: #fff;
}

.cta-icon {
  width: 18px;
  height: 18px;
  stroke: rgba(238, 232, 255, 0.98);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.cta-label {
  position: relative;
  z-index: 1;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #ffffff;
  color: #090909;
  border-radius: 12px;
  width: 126px;
  min-width: 112px;
  padding: .8rem 1rem;
  min-height: 28px;
  line-height: 1;
  font-size: 0.74rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  margin-right: -10px;
  box-shadow: inset 0px 0px 6px rgba(0, 0, 0, 0.2);
}

.cta-pill svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.45rem, 6vw, 2.6rem);
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
}

.ba-card {
  border-radius: var(--radius-lg);
  padding: 14px;
}

.ba-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.ba-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0e1324;
  --pos: 50%;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.ba-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
  transition: clip-path 240ms var(--ease-premium);
}

.ba-slider.dragging .ba-after-wrap {
  transition: none;
}

.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 16px rgba(153, 99, 255, 0.72);
  transform: translateX(-1px);
  pointer-events: none;
}

.divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(140deg, #b07bff, #6f8dff);
  border: 2px solid rgba(255, 255, 255, 0.78);
  transform: translate(-50%, -50%);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.label {
  position: absolute;
  top: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  background: rgba(5, 8, 16, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.label.before {
  left: 10px;
}

.label.after {
  right: 10px;
}

.book-wrap {
  border-radius: 28px;
  text-align: center;
  padding: 38px 20px;
}

.book-support-grid {
  display: grid;
  gap: 44px 16px;
}

#book-support .hero-reviews-rotator {
  height: 100%;
}

#book-support {
  padding-top: 0;
}


.book-wrap h2,
.book-wrap p,
.book-wrap .book-btn {
  position: relative;
  z-index: 2;
}

.book-wrap p {
  color: var(--muted);
  margin: 10px auto 0;
  max-width: 35ch;
}

.book-btn {
  margin-top: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 190px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, #9061ff, #5f80ff);
  box-shadow: 0 0 0 0 rgba(143, 97, 255, 0.42);
  animation: pulseGlow 2.4s ease-out infinite;
  transition: transform 340ms var(--ease-premium), box-shadow 340ms var(--ease-premium);
}

.book-btn:hover,
.book-btn:focus-visible {
  transform: translateY(-2px);
}

.book-btn:active {
  transform: scale(0.98);
}

.support-dropdown {
  position: relative;
  z-index: 3;
}

.support-toggle {
  width: 100%;
}

.support-menu {
  position: absolute;
  top: calc(100% + 6px);
  /* left: 0; */
  right: 0;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  gap: 6px;
  z-index: 9;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms var(--ease-premium), transform 240ms var(--ease-premium),
    visibility 0s linear 240ms;
  background-color: #353b5c;
}

.support-dropdown.is-open .support-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.support-item {
  display: flex;
  min-height: 40px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 260ms var(--ease-premium), border-color 260ms var(--ease-premium);
  background-position: center center;
  background-size: 60px auto;
  background-repeat: no-repeat;
  width: 80px;
}

.blik {
  background-image: url(/blik.svg)
}

.usdt {
  background-image: url(/usdt.svg)
}

.revolut {
  background-image: url(/revolut.svg)
}

.support-item:hover,
.support-item:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.donation-card {
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: grid;
  gap: 10px;
}

.donation-card p {
  line-height: 1.7;
  color: var(--muted);
}

.donation-card strong {
  color: var(--text);
}

.reviews-grid {
  display: grid;
  gap: 16px;
}

.review-card {
  border-radius: var(--radius-md);
  padding: 18px;
  display: grid;
  gap: 10px;
  transition: transform 340ms var(--ease-premium), box-shadow 340ms var(--ease-premium);
}

.review-card p {
  color: var(--muted);
  line-height: 1.68;
}

.stars {
  color: #ffcb64;
  letter-spacing: 0.12em;
}

.footer {
  width: min(1100px, 100% - 28px);
  margin: 0 auto;
  padding: 22px 0 34px;
  color: rgba(229, 231, 255, 0.74);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: inline-flex;
  gap: 14px;
}

.footer-links a {
  transition: color 280ms ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(24px) scale(0.99);
  transition: opacity 700ms var(--ease-premium), transform 700ms var(--ease-premium), filter 700ms var(--ease-premium);
  transition-delay: calc(var(--reveal-delay, 0s));
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.tilt-card {
  transform: none !important;
  will-change: auto;
  transition: none;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(143, 97, 255, 0.42);
  }

  100% {
    box-shadow: 0 0 0 14px rgba(143, 97, 255, 0);
  }
}

@media (min-width: 760px) {
  .topbar {
    padding: 18px 30px;
  }

  .hero-card {
    padding: 34px;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
    gap: 26px;
  }

  .hero-content {
    max-width: none;
  }

  .cta-stack {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }

  .hero-cta-col {
    max-width: 400px;
    width: 100%;
    justify-self: end;
    align-self: start;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 760px) {
  .book-btn {
    width: 100%;
  }

  .hero-content {
    text-align: center;
  }

  .footer {
    flex-direction: column-reverse;
  }
}

@media (max-width: 338px) {
  .hero-card {
    padding: 22px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reviews-section__card {
    transform: none !important;
  }
}