
:root {
  --bg: #060915;
  --bg-soft: rgba(10, 16, 34, 0.78);
  --panel: rgba(11, 18, 40, 0.88);
  --panel-strong: rgba(8, 12, 28, 0.96);
  --text: #f5f8ff;
  --muted: rgba(232, 240, 255, 0.72);
  --line: rgba(92, 190, 255, 0.22);
  --accent: #4ec8ff;
  --accent-2: #f04dff;
  --accent-3: #7ff3ff;
  --hero-shadow: rgba(5, 10, 20, 0.65);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1200px;
  --header-h: 86px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(131, 27, 255, 0.16), transparent 33%),
    radial-gradient(circle at top right, rgba(0, 183, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #04070f, #091124 30%, #050811 100%);
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.page { padding-bottom: 72px; }
.header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(3, 7, 17, 0.94), rgba(3, 7, 17, 0.72));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-size: 42px; font-weight: 900; letter-spacing: 0.04em; line-height: 1;
}
.logo span { display: inline-block; transform: skew(-12deg); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  font-size: 14px; color: var(--muted); transition: color .2s ease;
}
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 16px; border: 1px solid transparent;
  min-height: 52px; padding: 0 24px; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, #ff59cb, #4fcbff);
  color: #fff; box-shadow: 0 12px 32px rgba(109, 87, 255, 0.28);
}
.btn-secondary {
  min-height: 44px; padding: 0 18px; border-radius: 14px;
  background: rgba(3, 9, 22, 0.55); color: #eaf8ff; border-color: rgba(78, 200, 255, 0.4);
}
.hero {
  position: relative; margin-top: 18px; overflow: hidden;
  border-radius: 36px; min-height: min(92vh, 980px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}
.hero-media, .hero-overlay, .hero-glow { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media video.is-mobile { display: none; }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 8, 19, 0.86) 0%, rgba(5, 8, 19, 0.54) 45%, rgba(5, 8, 19, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 8, 19, 0.18) 0%, rgba(5, 8, 19, 0.32) 58%, rgba(5, 8, 19, 0.84) 100%);
}
.hero-glow {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 41, 185, 0.20), transparent 28%),
    radial-gradient(circle at 78% 16%, rgba(58, 189, 255, 0.18), transparent 32%),
    radial-gradient(circle at 70% 80%, rgba(123, 0, 255, 0.12), transparent 26%);
}
.hero-content {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between;
  min-height: inherit; padding: 56px 56px 40px;
}
.hero-topline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-pill, .age-pill {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border-radius: 999px; background: rgba(3, 10, 26, 0.55); border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
}
.hero-pill { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.age-pill { font-size: 17px; font-weight: 800; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(260px, 1fr); align-items: end; gap: 32px; }
.hero-copy h1 {
  margin: 0 0 16px; font-size: clamp(42px, 4.55vw, 75px); line-height: 0.96; letter-spacing: -0.04em;
  text-transform: uppercase; max-width: 12ch;
}
.hero-copy h1 span { color: var(--accent); display: block; }
.hero-meta {
  margin: 0 0 14px; color: rgba(255, 255, 255, 0.85); font-size: 18px; letter-spacing: .16em; text-transform: uppercase;
}
.hero-subtitle { margin: 0 0 28px; font-size: clamp(19px, 2.1vw, 28px); max-width: 18ch; color: #eff7ff; }
.hero-note { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-note p { margin: 0; color: var(--muted); font-size: 17px; max-width: 36ch; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-side {
  display: grid; gap: 12px; justify-items: end;
}
.hero-mini {
  width: min(360px, 100%); padding: 18px 18px 16px; border-radius: 22px; border: 1px solid rgba(255,255,255,.10);
  background: rgba(10, 16, 34, 0.45); backdrop-filter: blur(10px);
}
.hero-mini strong { display: block; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: #bfeeff; margin-bottom: 8px; }
.hero-mini p { margin: 0; font-size: 16px; color: #fff; }
.hero-features {
  margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.hero-feature {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 20px;
  background: rgba(8, 14, 30, 0.58); border: 1px solid rgba(255,255,255,0.08); border-radius: 22px;
  backdrop-filter: blur(10px);
}
.hero-icon {
  width: 42px; height: 42px; border-radius: 14px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(240,77,255,0.28), rgba(78,200,255,0.24)); font-size: 20px;
}
.hero-feature strong { display: block; font-size: 15px; margin-bottom: 6px; }
.hero-feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.section {
  margin-top: 28px; padding: 36px; border-radius: 32px;
  background: linear-gradient(180deg, rgba(8, 13, 29, 0.96), rgba(5, 9, 21, 0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 62px); line-height: 0.95; text-transform: uppercase; }
.section-heading p { margin: 14px 0 0; color: var(--muted); font-size: 20px; max-width: 30ch; }
.stats-layout {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.95fr); gap: 28px; align-items: stretch;
}
.stats-numbers {
  margin-top: 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; overflow: hidden;
}
.stat {
  padding: 20px 10px; background: rgba(6, 12, 28, 0.64); position: relative;
}
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 20px; bottom: 20px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(80, 204, 255, 0.3), transparent);
}
.stat strong { display: block; font-size: clamp(18px, 1.7vw, 28px); color: var(--accent); margin-bottom: 6px; white-space: nowrap; }
.stat span { color: #dff8ff; font-size: 12px; font-weight: 700; text-transform: uppercase; line-height: 1.3; }
.city-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)) 72px; grid-template-rows: repeat(2, minmax(140px, 1fr)); gap: 12px;
}
.city-card {
  position: relative; min-height: 154px; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08); background: #050811;
}
.city-card img { width: 100%; height: 100%; object-fit: cover; }
.city-card::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,7,15,.86) 0%, rgba(4,7,15,.48) 18%, rgba(4,7,15,0) 52%);
}
.city-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.city-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.city-card:nth-child(3) { grid-column: 1; grid-row: 2; }
.city-card:nth-child(4) { grid-column: 2; grid-row: 2; }
.city-card span {
  position: absolute; left: 16px; bottom: 14px; z-index: 1; font-size: 16px; line-height: 1.05; font-weight: 900; text-transform: uppercase;
}
.city-pill {
  border-radius: 24px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #4ad2ff, #70e5ff); color: #0a1022; font-weight: 900; text-transform: uppercase;
  writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: .08em; grid-column: 3; grid-row: 1 / span 2;
}
.expect {
  background: linear-gradient(180deg, rgba(7, 12, 28, 0.95), rgba(5, 8, 19, 0.98));
}
.expect-top {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: end; margin-bottom: 24px;
}
.expect-scape {
  border-radius: 24px; overflow: hidden; min-height: 240px; border: 1px solid rgba(255,255,255,0.08);
}
.expect-scape img { width: 100%; height: 100%; object-fit: cover; }
.card-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.expect-card {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 270px; border: 1px solid rgba(255,255,255,0.10);
  background: #04070f;
}
.expect-card img { width: 100%; height: 100%; object-fit: cover; }
.expect-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(4, 7, 15, 0.18) 44%, rgba(4, 7, 15, 0.88) 100%);
}
.expect-card-label {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1;
}
.expect-card-label strong { display: block; font-size: 28px; margin-bottom: 6px; }
.expect-card-label span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.page-tail {
  margin-top: 28px; padding: 28px 30px; border-radius: 28px; text-align: center;
  color: var(--muted); background: rgba(7, 12, 26, 0.9); border: 1px dashed rgba(109, 212, 255, 0.25);
}
.page-tail strong { display: block; margin-bottom: 8px; color: #fff; font-size: 18px; }
.footer-space { height: 24px; }
@media (max-width: 1120px) {
  .hero-content { padding: 42px 28px 28px; }
  .hero-grid, .stats-layout, .expect-top { grid-template-columns: 1fr; }
  .hero-side { justify-items: start; }
  .hero-features, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: repeat(2, minmax(0,1fr)) 72px; }
}
@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; justify-content: center; padding: 14px 0 16px; }
  .nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .section { padding: 24px; border-radius: 26px; }
  .hero { min-height: 760px; border-radius: 28px; }
  .hero-copy h1 { max-width: none; }
  .hero-features, .card-grid, .stats-numbers { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .page { padding-bottom: 48px; }
  .container { width: min(calc(100% - 20px), var(--container)); }
  .logo { font-size: 34px; }
  .btn { width: 100%; }
  .header-actions { width: 100%; flex-direction: column; }
  .hero { min-height: 700px; }
  .hero-media video.is-desktop { display: none; }
  .hero-media video.is-mobile { display: block; }
  .hero-copy h1 { font-size: 42px; }
  .hero-subtitle { font-size: 18px; }
  .hero-note { align-items: flex-start; }
  .hero-mini { width: 100%; }
  .hero-topline { margin-bottom: 16px; }
  .hero-feature { padding: 16px; }
  .city-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; }
  .city-card:nth-child(1), .city-card:nth-child(2), .city-card:nth-child(3), .city-card:nth-child(4) { grid-column: auto; grid-row: auto; }
  .city-pill { grid-column: 1 / -1; grid-row: auto; min-height: 70px; writing-mode: horizontal-tb; }
  .city-card { min-height: 160px; }
  .expect-card { min-height: 236px; }
}
body.theme-petersburg {
  --accent: #7bd2ff;
  --accent-2: #9d4dff;
}
body.theme-petersburg .hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 8, 28, 0.88) 0%, rgba(7, 8, 28, 0.60) 42%, rgba(7, 8, 28, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 8, 28, 0.18) 0%, rgba(7, 8, 28, 0.30) 58%, rgba(7, 8, 28, 0.84) 100%);
}
body.theme-petersburg .hero-pill { background: rgba(11, 12, 38, 0.58); }

/* Keep the cover image and responsive video on the same background layer. */
.hero-media > img, .hero-media > video { position: absolute; inset: 0; }
.hero-media > video { opacity: 0; }
.hero-media > video.is-video-playing { opacity: 1; }
.app-section { border-style: solid; padding: 54px 28px; scroll-margin-top: 100px; }
.app-section h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.05; margin: 22px auto 16px; max-width: 22ch; }
.app-section p { max-width: 50ch; margin: 0 auto 28px; line-height: 1.6; }
.store-links { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.site-footer { padding:40px 0 8px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; color:var(--muted); font-size:14px; }
a:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
@media(max-width:620px) {
 .header-inner { flex-wrap:wrap; justify-content:space-between; gap:12px; padding:12px 0; }
 .header-actions { width:auto; flex-direction:row; }
 .header-actions .btn { width:auto; min-height:38px; padding:0 12px; font-size:12px; }
 .header-actions .btn-primary { display:none; }
 .nav { gap:20px; }
 .nav a { font-size:12px; }
 .hero-content { padding:28px 20px; }
 .hero-copy h1 { font-size:clamp(30px,8.6vw,48px); overflow-wrap:normal; }
 .hero-meta { font-size:13px; letter-spacing:.07em; }
 .hero-topline { gap:6px; }
 .hero-pill { font-size:10px; padding:0 10px; }
 .hero-side { display:none; }
 .hero-features { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:32px; }
 .hero-feature { padding:12px; display:block; }
 .hero-feature p { font-size:12px; }
 .hero-feature strong { font-size:13px; }
 .hero-icon { margin-bottom:8px; }
 .stats-numbers { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
 .stat:last-child { grid-column:1 / -1; }
 .stat strong { font-size:36px; }
 .section { padding:24px 18px; }
 .section-heading h2 { font-size:28px; overflow-wrap:normal; }
 .site-footer { align-items:flex-start; gap:24px; }
 .site-footer > span:not(.age-pill) { max-width:24ch; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .hero-media video { display:none !important; } }

@media(min-width:621px){ .hero-copy h1 { max-width:none; font-size:clamp(42px,4vw,64px); } .hero-subtitle { max-width:30ch; font-size:22px; } }
