/* =========================================================
   parkskazka.ru — one-screen stub (redirect CTA)
   Breakpoints: 4K/5K/8K, desktop, laptop, tablet, mobile,
   special tuning: iPhone 14 Pro, flagship Samsung.
   ========================================================= */

/* -------- Reset / Base -------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

:root{
  --bg: #070A14;
  --bg2:#0B1020;
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.14);
  --text:#F3F6FF;
  --muted: rgba(243,246,255,.74);
  --shadow: 0 30px 90px rgba(0,0,0,.42);
  --accent1:#7C5CFF;
  --accent2:#2DD4FF;
  --radius: 22px;

  /* base scale tokens (overridden by media queries where needed) */
  --containerW: 980px;
  --pad: 28px;
  --gap: 16px;
  --title: clamp(1.55rem, 2.1vw, 2.4rem);
  --lead: clamp(1.00rem, 1.1vw, 1.15rem);
  --btnH: 48px;
  --btnPadX: 18px;
}

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* allow safe areas on iOS */
body { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }

a{ color: inherit; text-decoration: none; }
p{ margin: 0; }

/* -------- Layout -------- */
.screen{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 44px);
  position: relative;
  overflow: hidden;
}

.bg{
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 10% 10%, rgba(124,92,255,.33), transparent 60%),
    radial-gradient(900px 520px at 92% 15%, rgba(45,212,255,.22), transparent 60%),
    radial-gradient(900px 520px at 40% 110%, rgba(255,111,0,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  filter: saturate(1.08);
}

.card{
  position: relative;
  z-index: 1;
  width: min(var(--containerW), 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  padding: var(--pad);
  display: grid;
  gap: calc(var(--gap) + 2px);
  backdrop-filter: blur(14px);
}

/* -------- Brand -------- */
.brand{
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  font-size: 1.35rem;
}

.logo-img{
  width: 100%;
  height: 100%;
  display: block;
}

.brand__name{
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.15;
}

.brand__tagline{
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2px;
}

/* -------- Copy -------- */
.title{
  margin: 0;
  font-size: var(--title);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lead{
  color: var(--muted);
  font-size: var(--lead);
  line-height: 1.55;
  max-width: 70ch;
}

/* -------- CTA -------- */
.cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  height: var(--btnH);
  padding: 0 var(--btnPadX);
  border-radius: 14px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform .15s ease, opacity .15s ease, border-color .15s ease;
  user-select: none;
  white-space: nowrap;
}

.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); opacity: .92; }

.btn-primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
}

.btn-ghost{
  background: rgba(255,255,255,.04);
  color: var(--text);
}

/* -------- Facts -------- */
.facts{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.facts li{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.035);
  color: rgba(243,246,255,.86);
}

/* -------- Meta -------- */
.meta{
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.meta__hint{
  font-size: 0.92rem;
  color: rgba(243,246,255,.62);
}

.meta__link{
  font-weight: 700;
  display: inline-block;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.22);
  background: rgba(0,0,0,.12);
}

/* -------- Accessibility / Reduced motion -------- */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   BREAKPOINTS
   ========================================================= */

/* 8K / huge walls */
@media (min-width: 7680px){
  :root{
    --containerW: 1800px;
    --pad: 56px;
    --gap: 22px;
    --title: clamp(3rem, 2.2vw, 4.2rem);
    --lead: clamp(1.55rem, 1.2vw, 1.9rem);
    --btnH: 72px;
    --btnPadX: 28px;
    --radius: 28px;
  }
  .brand__mark{ width: 72px; height: 72px; border-radius: 20px; font-size: 2rem; }
}

/* 4K/5K */
@media (min-width: 2560px) and (max-width: 7679px){
  :root{
    --containerW: 1280px;
    --pad: 44px;
    --gap: 20px;
    --title: clamp(2.3rem, 1.6vw, 3.2rem);
    --lead: clamp(1.2rem, 1.0vw, 1.45rem);
    --btnH: 60px;
    --btnPadX: 22px;
    --radius: 26px;
  }
  .brand__mark{ width: 56px; height: 56px; border-radius: 18px; font-size: 1.7rem; }
}

/* Standard desktop (FHD/QHD) */
@media (min-width: 1440px) and (max-width: 2559px){
  :root{
    --containerW: 1040px;
    --pad: 34px;
    --gap: 18px;
    --btnH: 52px;
    --btnPadX: 18px;
  }
}

/* Laptop (typical 1024–1439) */
@media (min-width: 1024px) and (max-width: 1439px){
  :root{
    --containerW: 920px;
    --pad: 28px;
    --gap: 16px;
  }
}

/* Tablets landscape */
@media (min-width: 768px) and (max-width: 1023px){
  :root{
    --containerW: 720px;
    --pad: 24px;
    --gap: 14px;
    --title: clamp(1.45rem, 3.0vw, 2.0rem);
    --lead: clamp(0.98rem, 2.2vw, 1.12rem);
  }
  .brand__mark{ width: 42px; height: 42px; }
}

/* Tablets portrait / big phones landscape */
@media (min-width: 600px) and (max-width: 767px){
  :root{
    --containerW: 560px;
    --pad: 20px;
    --gap: 12px;
    --btnH: 48px;
  }
  .cta{ flex-direction: column; }
  .btn{ width: 100%; }
}

/* Phones */
@media (max-width: 599px){
  :root{
    --containerW: 520px;
    --pad: 18px;
    --gap: 12px;
    --title: clamp(1.35rem, 5.2vw, 1.9rem);
    --lead: clamp(0.95rem, 3.8vw, 1.08rem);
    --btnH: 48px;
    --btnPadX: 16px;
    --radius: 18px;
  }
  .cta{ flex-direction: column; }
  .btn{ width: 100%; }
  .brand__tagline{ font-size: 0.9rem; }
}

/* iPhone 14 Pro (393×852 CSS px) portrait tuning */
@media (width: 393px) and (height: 852px) and (orientation: portrait){
  :root{ --pad: 18px; --gap: 11px; }
  .facts li{ padding: 11px 12px; }
}

/* Top Samsung (e.g., S23/S24 Ultra 412×915) portrait tuning */
@media (width: 412px) and (height: 915px) and (orientation: portrait){
  :root{ --pad: 18px; --gap: 12px; }
}

/* Very small phones */
@media (max-width: 360px){
  :root{ --pad: 16px; --gap: 10px; --btnH: 46px; }
  .brand{ gap: 12px; }
  .brand__mark{ width: 40px; height: 40px; border-radius: 13px; }
  .facts li{ padding: 10px 12px; }
}

/* ===== Disable text selection (site-wide) ===== */
html, body, * {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE/Edge legacy */
  user-select: none;         /* Modern browsers */
  -webkit-tap-highlight-color: transparent;
}

@font-face {
  font-family: 'PT Root UI';
  src: url('/assets/fonts/pt-root-ui/pt-root-ui_vf.woff2') format('woff2'),
       url('/assets/fonts/pt-root-ui/pt-root-ui_vf.woff') format('woff');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}