:root {
  --bg: #0b1020;
  --bg-soft: #0f152b;
  --card: #151b31;
  --text: #e8ecf8;
  --muted: #b9c1d9;
  --brand: #0ea5e9;
  --brand-2: #06b6d4;
  --ring: rgba(14, 165, 233, 0.45);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  background: radial-gradient(rgba(6, 182, 212, 0.18), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Language toggler (CSS-only) */
.lang-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}
.lang-switch label {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.06);
}
#lang-en:checked ~ .site-header .lang-switch label[for='lang-en'],
#lang-ru:checked ~ .site-header .lang-switch label[for='lang-ru'],
#lang-uz:checked ~ .site-header .lang-switch label[for='lang-uz'] {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #001018;
  font-weight: 700;
}
/* language show/hide with priority over .btn display */
.site-header .t,
.page .t {
  display: none !important;
}
#lang-en:checked ~ .site-header .t.en {
  display: inline !important;
}
#lang-ru:checked ~ .site-header .t.ru {
  display: inline !important;
}
#lang-uz:checked ~ .site-header .t.uz {
  display: inline !important;
}
#lang-en:checked ~ .page .t.en {
  display: initial !important;
}
#lang-ru:checked ~ .page .t.ru {
  display: initial !important;
}
#lang-uz:checked ~ .page .t.uz {
  display: initial !important;
}
#lang-en:checked ~ .page a.t.en {
  display: inline-flex !important;
}
#lang-ru:checked ~ .page a.t.ru {
  display: inline-flex !important;
}
#lang-uz:checked ~ .page a.t.uz {
  display: inline-flex !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
}

/* Nav */
.nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
}
.nav-list a:hover {
  color: #fff;
}

/* Mobile nav */
.nav-toggle {
  display: none;
}
.nav-burger {
  display: none;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.nav-burger:before,
.nav-burger:after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #e8ecf8;
  transition: transform 0.25s ease, top 0.25s ease, bottom 0.25s ease;
}
.nav-burger:before {
  top: 14px;
}
.nav-burger:after {
  bottom: 14px;
}

@media (max-width: 820px) {
  .nav-burger {
    display: block;
  }
  .nav {
    position: fixed;
    inset: 64px 0 auto;
    z-index: 40;
  }
  .nav-list {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: grid;
    gap: 12px;
    background: rgba(20, 26, 49, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 14px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-toggle:checked + .nav-burger:before {
    top: 19px;
    transform: rotate(45deg);
  }
  .nav-toggle:checked + .nav-burger:after {
    bottom: 19px;
    transform: rotate(-45deg);
  }
  .nav-toggle:checked ~ .nav .nav-list {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 28px;
}
.hero-copy {
  max-width: 560px;
}
.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.1;
}
.hero-copy p {
  margin: 0 0 22px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
.hero-art img {
  width: 100%;
  height: clamp(260px, 48vh, 520px);
  object-fit: cover;
  border-radius: 16px;
}
.hero-art {
  filter: drop-shadow(0 10px 40px rgba(14, 165, 233, 0.25));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
/* subtle pulse for primary CTA */
@keyframes pulseSoft {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18);
  }
  50% {
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.32);
  }
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #001018;
  box-shadow: 0 10px 30px var(--ring);
  animation: pulseSoft 3.2s ease-in-out infinite;
}
.btn-primary:hover {
  filter: brightness(1.05);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 6px 0 18px;
}

/* Contact */
.contact {
  padding: 36px 0 8px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}
.contact-value {
  color: #dfe8fb;
  text-decoration: none;
}
.contact-value:hover {
  color: #fff;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}
.card-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  min-height: 310px;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Brighter price badge for perfect readability */
.badge {
  position: absolute;
  left: 14px;
  top: 12px;
  background: linear-gradient(135deg, #ffd60a, #f59e0b);
  color: #0b1020;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-title {
  margin: 0 0 6px;
  font-size: 20px;
}
.card-desc {
  margin: 0 0 12px;
  color: var(--muted);
}
.card-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.card-icons li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d9e2f7;
}
.icon {
  width: 18px;
  height: 18px;
  color: #9ecdf0;
}
.card-actions {
  display: flex;
  margin-top: auto;
}

/* Keyframed, full-width Pay button */
@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 10px 26px rgba(14, 165, 233, 0.28);
  }
  50% {
    box-shadow: 0 14px 36px rgba(14, 165, 233, 0.45);
  }
}
.btn-pay {
  width: 100%;
  background: linear-gradient(90deg, #22d3ee, #0ea5e9, #22d3ee);
  background-size: 200% 100%;
  color: #001018;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  animation: gradientShift 6s linear infinite, pulseGlow 3s ease-in-out infinite;
}
.btn-pay:hover {
  background-position: 100% 0;
  filter: brightness(1.05);
}
.btn-pay:active {
  transform: translateY(1px);
}
.btn-pay .icon {
  color: #001b2a;
  transition: transform 0.2s ease;
}
.btn-pay:hover .icon {
  transform: translateX(3px);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 100;
  pointer-events: none;
}
.modal.open {
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal.open .modal-backdrop {
  opacity: 1;
}
.modal-dialog {
  position: relative;
  width: min(560px, calc(100% - 32px));
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.modal.open .modal-dialog {
  transform: none;
  opacity: 1;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}
.modal-close {
  background: transparent;
  border: none;
  color: #e8ecf8;
  font-size: 20px;
  cursor: pointer;
}
.modal-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 10px;
}
.modal-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e8ecf8;
  cursor: pointer;
  font-size: 15px;
}
.modal-tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #001018;
  border-color: transparent;
}
.modal-tab .icon {
  width: 20px;
  height: 20px;
}
.modal-body {
  padding: 8px 16px 16px;
}
.form-row {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.form-row.two {
  grid-template-columns: 1.4fr 0.8fr 0.6fr;
}
@media (max-width: 560px) {
  .form-row.two {
    grid-template-columns: 1fr;
  }
}
.form-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}
.form-field input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 16, 32, 0.4);
  backdrop-filter: blur(8px);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}

/* Small screens */
@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
  }
}
@media (max-width: 680px) {
  .card-media {
    min-height: 240px;
  }
}

/* Accessibility helpers */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
