@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Unbounded:wght@400;600;700&display=swap");

:root {
  --bg: #0b1220;
  --bg-secondary: #101b31;
  --card: rgba(21, 34, 54, 0.85);
  --card-strong: rgba(21, 34, 54, 0.95);
  --border: rgba(106, 140, 200, 0.25);
  --accent: #4aa3ff;
  --accent-strong: #2f7bff;
  --accent-soft: rgba(74, 163, 255, 0.18);
  --accent-warm: #f1b24a;
  --accent-warm-strong: #e1992f;
  --text: #eaf1ff;
  --muted: #a7b9d6;
  --warning: #ffcf6b;
  --shadow: 0 18px 45px rgba(7, 12, 20, 0.65);
  --shadow-soft: 0 12px 30px rgba(6, 11, 18, 0.5);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --font-body: "Manrope", "Arial", sans-serif;
  --font-display: "Unbounded", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  position: relative;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(74, 163, 255, 0.28), transparent 60%),
    radial-gradient(900px 520px at 92% 12%, rgba(241, 178, 74, 0.2), transparent 65%),
    radial-gradient(720px 520px at 20% 80%, rgba(90, 200, 190, 0.16), transparent 70%),
    linear-gradient(160deg, #0a111e, #0c1728 45%, #0f1d33);
  color: var(--text);
  font-family: var(--font-body);
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

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

button,
input {
  font-family: inherit;
}

.hero-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-decor img {
  opacity: 0.35;
  filter: blur(6px);
}

.ellipse-main {
  position: absolute;
  top: -220px;
  left: -180px;
  width: 480px;
  height: 480px;
  transform: rotate(-12deg);
}

.ellipse-first {
  position: absolute;
  top: 180px;
  left: 20px;
  width: 380px;
  height: 380px;
  opacity: 0.25;
}

.ellipse-secondary {
  position: absolute;
  bottom: 90px;
  left: -300px;
  width: 360px;
  height: 360px;
  opacity: 0.2;
}

.ellipse-tertiary {
  position: absolute;
  bottom: -60px;
  right: -120px;
  width: 420px;
  height: 420px;
  opacity: 0.15;
}

.app {
  position: relative;
  z-index: 2;
  width: min(980px, 92vw);
  padding: 40px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 160, 215, 0.25);
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: rise 0.7s ease both;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.title-section {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-main {
  width: 86px;
  height: 110px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(74, 163, 255, 0.35), rgba(21, 34, 54, 0.85));
  box-shadow: 0 12px 26px rgba(7, 12, 20, 0.65),
    0 0 0 1px rgba(74, 163, 255, 0.25);
  padding: 8px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.text-container h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button-section {
  display: flex;
  justify-content: flex-start;
}

.tariffs-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b1220;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(74, 163, 255, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tariffs-button::after,
.go-button::after,
.pay-with-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.5) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.tariffs-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 30px rgba(74, 163, 255, 0.5);
}

.tariffs-button:hover::after,
.go-button:hover::after,
.pay-with-stars:hover::after {
  transform: translateX(120%);
}

#tariffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tariff {
  position: relative;
  background: var(--card-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(120, 160, 215, 0.2);
  box-shadow: var(--shadow-soft);
  overflow: visible;
  animation: rise 0.7s ease both;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#tariffs .tariff:nth-child(1) {
  animation-delay: 0.05s;
}

#tariffs .tariff:nth-child(2) {
  animation-delay: 0.12s;
}

#tariffs .tariff:nth-child(3) {
  animation-delay: 0.18s;
}

.tariff::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(74, 163, 255, 0.18), transparent 60%);
  opacity: 0.8;
  border-radius: inherit;
  pointer-events: none;
}

.tariff>* {
  position: relative;
  z-index: 1;
}

.tariff h3 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.tariff .price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-top: 16px;
}

.tariff .original-price {
  color: rgba(255, 140, 140, 0.9);
  font-size: 1rem;
  margin-top: 6px;
  text-decoration: line-through;
}

.tariff-group {
  margin: 14px 0;
  color: var(--muted);
}

.tariff-group p {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--text);
}

.tariff-group ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.95rem;
}

.icon-container {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tariff-icon {
  width: 36px;
  height: 36px;
  filter: brightness(0) saturate(100%) invert(82%) sepia(41%) saturate(572%) hue-rotate(356deg) brightness(104%) contrast(102%) drop-shadow(0 6px 12px rgba(241, 178, 74, 0.45));
  transition: transform 0.3s ease;
}

.current-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(167, 185, 214, 0.15);
  color: var(--muted);
  border: 1px solid rgba(120, 160, 215, 0.2);
  font-weight: 600;
}

.promocode-input {
  width: calc(100% - 62px);
  padding: 12px 14px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(120, 160, 215, 0.3);
  background: rgba(10, 16, 26, 0.6);
  color: var(--text);
}

.promocode-input::placeholder {
  color: rgba(231, 238, 248, 0.6);
}

.promocode-confirm {
  margin-top: 12px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: rgba(74, 163, 255, 0.2);
  color: var(--text);
  cursor: pointer;
}

.select-button {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.go-button,
.pay-with-stars {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.go-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b1220;
  box-shadow: 0 10px 22px rgba(74, 163, 255, 0.35);
}

.pay-with-stars {
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-strong));
  color: #1a1204;
  box-shadow: 0 10px 22px rgba(255, 200, 100, 0.35);
}

.go-button:hover,
.pay-with-stars:hover {
  transform: translateY(-2px) scale(1.01);
}

.badge-best {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 207, 107, 0.15);
  color: var(--warning);
  font-weight: 700;
  font-size: 0.85rem;
}

.crown-container {
  position: absolute;
  top: -90px;
  left: -90px;
  --crown-size: 120px;
  --badge-top: calc(var(--crown-size) * 0.9);
  --badge-left: calc(var(--crown-size) * 0.28);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: rotate(-18deg);
  z-index: 2;
  pointer-events: none;
}

.crown-icon {
  width: var(--crown-size);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.popular-text {
  position: absolute;
  top: var(--badge-top);
  left: var(--badge-left);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(74, 163, 255, 0.75);
  color: #0b1220;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  transform: rotate(-27deg);
  transform-origin: left center;
}

.text-banner {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(120, 160, 215, 0.25);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: rise 0.7s ease both;
  animation-delay: 0.2s;
}

.banner-text {
  position: relative;
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.banner-text .highlight {
  color: var(--accent);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.feature {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(120, 160, 215, 0.2);
  box-shadow: var(--shadow-soft);
  animation: rise 0.7s ease both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:nth-child(1) {
  animation-delay: 0.05s;
}

.feature:nth-child(2) {
  animation-delay: 0.1s;
}

.feature:nth-child(3) {
  animation-delay: 0.15s;
}

.feature:nth-child(4) {
  animation-delay: 0.2s;
}

.feature:nth-child(5) {
  animation-delay: 0.25s;
}

.feature:nth-child(6) {
  animation-delay: 0.3s;
}

.feature:nth-child(7) {
  animation-delay: 0.35s;
}

.feature img {
  width: 38px;
  height: 38px;
  filter: invert(1) brightness(1.1);
  padding: 6px;
  border-radius: 12px;
  background: rgba(74, 163, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(74, 163, 255, 0.2),
    0 8px 16px rgba(7, 12, 20, 0.4);
  transition: transform 0.3s ease;
}

.feature p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(7, 12, 20, 0.75);
}

.hero-card:hover .icon-main {
  transform: translateY(-4px) rotate(-4deg) scale(1.03);
  box-shadow: 0 12px 24px rgba(74, 163, 255, 0.4);
}

.tariff:hover,
.tariff:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(6, 11, 18, 0.65);
}

.tariff:hover .tariff-icon,
.tariff:focus-within .tariff-icon {
  transform: rotate(-6deg) scale(1.08);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(6, 11, 18, 0.55);
}

.feature:hover img {
  transform: scale(1.12) rotate(-4deg);
}

.seo-block,
.contact-info {
  color: var(--muted);
  font-size: 0.85rem;
}

.seo-block {
  background: rgba(10, 16, 26, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(120, 160, 215, 0.18);
  padding: 18px 20px;
}

.seo-title {
  margin: 0 0 10px;
  color: var(--text);
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-links span {
  opacity: 0.4;
}

.contact-info {
  text-align: center;
  padding: 18px 16px 0;
}

.contact-info a {
  color: var(--accent);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 22, 0.88);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1rem;
  backdrop-filter: blur(8px);
}

.spinner {
  border: 4px solid rgba(231, 238, 248, 0.2);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  animation: spin 0.8s linear infinite;
  margin-bottom: 10px;
}

.rotate-star {
  animation: rotateStar 6s linear infinite;
}

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

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

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

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .app {
    width: 92vw;
    padding: 28px 0 60px;
    gap: 22px;
  }

  .title-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .icon-main {
    width: 72px;
    height: 90px;
  }

  .tariffs-button {
    width: 100%;
    justify-content: center;
  }

  #tariffs {
    grid-template-columns: 1fr;
  }

  .crown-container {
    top: -78px;
    left: -72px;
    --crown-size: 96px;
    --badge-top: calc(var(--crown-size) * 0.95);
    transform: rotate(-16deg);
  }

  .crown-icon {
    width: 96px;
  }

  .popular-text {
    font-size: 0.65rem;
    left: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
