/* Ravensthorpe — glassmorphism dark UI (mobile-first) */
:root{
  --bg0:#070A12;
  --bg1:#0B1020;
  --bg2:#0E1630;
  --text:#EAF0FF;
  --muted:rgba(234,240,255,.72);
  --muted2:rgba(234,240,255,.55);
  --line:rgba(234,240,255,.14);
  --line2:rgba(234,240,255,.10);
  --glass:rgba(255,255,255,.08);
  --glass2:rgba(255,255,255,.06);
  --shadow: 0 16px 48px rgba(0,0,0,.45);
  --shadow2: 0 12px 30px rgba(0,0,0,.35);
  --blur: 18px;
  --r: 18px;
  --r2: 24px;
  --accent:#8A7BFF;
  --accent2:#38D6FF;
  --good:#29E07A;
  --bad:#FF5478;
  --warn:#FFCB45;
  --focus: 0 0 0 3px rgba(138,123,255,.25);
  --max: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% 0%, rgba(138,123,255,.18), transparent 60%),
              radial-gradient(1200px 800px at 80% 10%, rgba(56,214,255,.14), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg2));
  min-height:100vh;
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

.bg{position:fixed; inset:0; z-index:-2; overflow:hidden}
.bg__orb{
  position:absolute; width:520px; height:520px; border-radius:50%;
  filter: blur(42px);
  opacity:.65;
  transform: translate3d(0,0,0);
  animation: floaty 12s ease-in-out infinite;
}
.bg__orb--1{left:-160px; top:-160px; background: radial-gradient(circle at 30% 30%, rgba(138,123,255,.9), rgba(138,123,255,.1) 60%, transparent 70%)}
.bg__orb--2{right:-200px; top:40px; background: radial-gradient(circle at 40% 30%, rgba(56,214,255,.85), rgba(56,214,255,.08) 60%, transparent 70%); animation-duration: 15s}
.bg__noise{
  position:absolute; inset:-20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity:.12;
  mix-blend-mode: overlay;
}

@keyframes floaty{
  0%,100%{transform: translate3d(0,0,0)}
  50%{transform: translate3d(0,-16px,0)}
}

.container{max-width:var(--max); margin:0 auto; padding: 88px 16px 36px}
.topbar{
  position:fixed; inset:0 0 auto 0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5,8,18,.72), rgba(5,8,18,.32));
  border-bottom: 1px solid rgba(234,240,255,.08);
}

.brand{display:flex; align-items:center; gap:10px}
.brand__mark{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}
.brand__name{font-weight:700; letter-spacing:.2px}

.nav{display:none; gap:14px}
.nav a{
  font-size:14px; color:var(--muted);
  padding:8px 10px; border-radius:12px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.nav a:hover{background: rgba(255,255,255,.06); color:var(--text); transform: translateY(-1px)}
.nav a:active{transform: translateY(0)}

.iconbtn{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid var(--line2);
  background: rgba(255,255,255,.04);
  color:var(--text);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.iconbtn:hover{background: rgba(255,255,255,.06); border-color: var(--line)}
.iconbtn:active{transform: translateY(1px) scale(.98)}
.iconbtn span{
  width:18px; height:2px; background: rgba(234,240,255,.8);
  border-radius:99px;
  display:block;
  position:relative;
}
#menuBtn span:nth-child(1){transform: translateY(-5px)}
#menuBtn span:nth-child(3){transform: translateY(5px)}
.iconbtn--x{width:38px; height:38px}
.iconbtn--x span:nth-child(1){transform: rotate(45deg); position:absolute}
.iconbtn--x span:nth-child(2){transform: rotate(-45deg); position:absolute}

.mobileMenu{
  position:fixed; inset:64px 0 0 0;
  display:none;
  padding: 12px 14px;
  z-index:49;
}
.mobileMenu__card{
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.mobileMenu__card a{
  padding:12px 12px;
  border-radius:14px;
  color:var(--muted);
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.mobileMenu__card a:hover{background: rgba(255,255,255,.06); color:var(--text); transform: translateY(-1px)}
.mobileMenu__card a:active{transform: translateY(0)}
.mobileMenu.is-open{display:block}

.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--r2);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.glass-weak{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(234,240,255,.10);
  border-radius: var(--r);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero{padding: 18px; display:grid; gap:18px}
.hero__badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(234,240,255,.10);
  color:var(--muted);
  font-size:13px;
}
.hero__title{margin:10px 0 6px; font-size: 40px; line-height:1.02; letter-spacing:-.8px}
.hero__subtitle{margin:0 0 14px; color:var(--muted); max-width: 38ch}
.hero__ip{margin-top: 6px}
.hero__ipLabel{font-size:12px; color:var(--muted2); margin-bottom:6px}
.hero__ipRow{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.hero__ipValue{
  padding: 10px 12px;
  border-radius:14px;
  background: rgba(0,0,0,.25);
  border:1px solid rgba(234,240,255,.14);
  font-size: 14px;
}
.hero__ipHint{font-size:12px; color:var(--muted2); margin-top:6px}
.hero__cta{display:flex; gap:10px; flex-wrap:wrap; margin-top: 16px}

.hero__right{display:grid; gap:14px}
.hero__statGrid{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
.stat{padding:12px}
.stat__label{font-size:12px; color:var(--muted2)}
.stat__value{margin-top:6px; font-size:18px; font-weight:700}
.stat__value--small{font-size:12px; font-weight:600; line-height:1.25; color:rgba(234,240,255,.9)}

.hero__art{padding:14px; overflow:hidden; position:relative}
.hero__artInner{position:relative; height: 160px; border-radius:18px; overflow:hidden}
.hero__ring{
  position:absolute; inset:-30%;
  border-radius:50%;
  border: 1px solid rgba(234,240,255,.14);
  animation: spin 12s linear infinite;
}
.hero__ring--2{inset:-20%; animation-duration: 18s; opacity:.7}
.hero__ring--3{inset:-10%; animation-duration: 26s; opacity:.45}
@keyframes spin{to{transform: rotate(360deg)}}

.hero__pixel{
  width: 84px; height: 84px; border-radius: 22px;
  position:absolute; left: 18px; top: 22px;
  background: linear-gradient(180deg, rgba(138,123,255,.35), rgba(56,214,255,.18));
  border: 1px solid rgba(234,240,255,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.hero__pixelGlow{
  position:absolute; inset:-30%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.5), transparent 60%);
  filter: blur(8px);
  opacity:.6;
}
.hero__caption{
  position:absolute; right: 12px; bottom: 10px;
  font-size:12px; color:rgba(234,240,255,.72);
  background: rgba(0,0,0,.22);
  border:1px solid rgba(234,240,255,.12);
  padding:8px 10px;
  border-radius: 14px;
}

.section{margin-top: 18px; padding-top: 18px}
.section__head{margin: 18px 0 12px}
.section__title{margin:0; font-size: 22px; letter-spacing:-.2px}
.section__desc{margin:6px 0 0; color:var(--muted); font-size: 14px}

.grid{display:grid; gap:12px}
.grid--2{grid-template-columns: 1fr}
.grid--3{grid-template-columns: 1fr}

.card{padding:16px}
.card__title{margin:0 0 10px; font-size:16px}
.card--accent{
  border-color: rgba(138,123,255,.28);
  background: linear-gradient(180deg, rgba(138,123,255,.12), rgba(255,255,255,.05));
}

.row{display:flex; gap:10px}
.row--between{justify-content:space-between}
.row--center{align-items:center}

.divider{height:1px; background: rgba(234,240,255,.10); margin: 12px 0}

.muted{color:var(--muted); font-size: 12px}
.tiny{font-size: 12px}

.list{margin:0; padding:0 0 0 18px; color: var(--muted); line-height:1.55}
.list li{margin: 7px 0}

.btn{
  border-radius: 16px;
  border: 1px solid rgba(234,240,255,.14);
  padding: 11px 14px;
  font-weight: 600;
  font-size: 14px;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
  user-select:none;
}
.btn:focus{outline:none; box-shadow: var(--focus)}
.btn--small{padding:8px 12px; border-radius: 14px; font-size: 13px}
.btn--wide{width:100%}
.btn--primary{
  background: linear-gradient(180deg, rgba(138,123,255,.95), rgba(104,90,255,.82));
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 18px 40px rgba(138,123,255,.18);
}
.btn--primary:hover{filter: brightness(1.05); transform: translateY(-1px)}
.btn--primary:active{transform: translateY(0) scale(.99)}
.btn--secondary{
  background: rgba(255,255,255,.06);
  color: #ffffff;
}
.btn--secondary:hover{background: rgba(255,255,255,.09); transform: translateY(-1px)}
.btn--secondary:active{transform: translateY(0)}
.btn--ghost{
  background: transparent;
  border-color: rgba(234,240,255,.10);
  color: var(--muted);
}
.btn--ghost:hover{background: rgba(255,255,255,.06); color:var(--text)}
.btn[disabled]{opacity:.45; cursor:not-allowed; transform:none}

.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(234,240,255,.12);
  color: var(--muted);
  font-size: 13px;
}
.dot{width:8px; height:8px; border-radius:50%}
.dot--neutral{background: rgba(234,240,255,.35)}
.dot--good{background: var(--good); box-shadow: 0 0 0 4px rgba(41,224,122,.14)}
.dot--bad{background: var(--bad); box-shadow: 0 0 0 4px rgba(255,84,120,.12)}

.statusGrid{margin-top: 12px; display:grid; gap:12px; grid-template-columns: 1fr 1fr}
.statusItem{padding: 12px; border-radius: 16px; background: rgba(0,0,0,.18); border:1px solid rgba(234,240,255,.10)}
.statusItem__k{font-size:12px; color: var(--muted2)}
.statusItem__v{margin-top:6px; font-weight:700}
.statusItem--full{grid-column: 1 / -1}

.rules{margin:0; padding-left: 18px; color: var(--muted); line-height:1.6}
.rules li{margin: 8px 0}

.newsCard{padding: 14px; display:flex; flex-direction:column; gap:10px; min-height: 160px}
.newsCard__top{display:flex; justify-content:space-between; gap:10px}
.newsCard__title{margin:0; font-size: 15px; letter-spacing:-.1px}
.newsCard__date{font-size: 12px; color: var(--muted2)}
.newsCard__text{margin:0; color: var(--muted); line-height:1.55}
.newsCard__tag{
  font-size: 12px;
  color: rgba(234,240,255,.78);
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(234,240,255,.12);
  background: rgba(0,0,0,.18);
  width:max-content;
}

.teamCard{padding: 14px; display:flex; gap:12px; align-items:flex-start}
.avatar{
  width:48px; height:48px; border-radius: 16px;
  border:1px solid rgba(234,240,255,.14);
  background: rgba(0,0,0,.18);
  overflow:hidden;
  flex: 0 0 auto;
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
}
.avatar img{width:100%; height:100%; display:block}
.teamCard__name{font-weight:700}
.teamCard__role{color: var(--muted2); font-size:12px; margin-top:2px}
.teamCard__desc{color: var(--muted); font-size: 13px; line-height:1.45; margin-top:8px}

.price{font-size: 18px; font-weight: 800; letter-spacing:-.3px}
.price span{font-size: 28px}
.price--big span{font-size: 38px}

.footer{
  margin-top: 18px;
  padding: 18px 2px 6px;
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:12px;
  color: var(--muted);
}
.footer a{color: var(--muted)}
.footer a:hover{color: var(--text)}
.footer__brand{font-weight:800; color: var(--text); margin-bottom: 4px}

.modal{
  position:fixed; inset:0;
  display:none;
  z-index: 80;
}
.modal.is-open{display:block}
.modal__backdrop{position:absolute; inset:0; background: rgba(0,0,0,.55)}
.modal__panel{
  position:absolute; left: 50%; top: 50%;
  transform: translate(-50%, -48%) scale(.98);
  width: min(520px, calc(100% - 28px));
  padding: 14px;
  opacity:0;
  transition: transform .22s ease, opacity .22s ease;
}
.modal.is-open .modal__panel{opacity:1; transform: translate(-50%,-50%) scale(1)}
.modal__head{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.modal__title{font-size: 18px; font-weight: 800; letter-spacing:-.2px}
.modal__body{margin-top: 12px; display:grid; gap:14px}

.field{display:grid; gap:8px}
.label{font-size: 12px; color: var(--muted2)}
.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(234,240,255,.14);
  color: var(--text);
  outline:none;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.input:focus{border-color: rgba(138,123,255,.45); box-shadow: var(--focus)}
.hint{font-size:12px; color: var(--muted2)}
.hint.is-bad{color: rgba(255,84,120,.95)}

.segmented{
  position:relative;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:6px;
  padding: 6px;
  border-radius: 18px;
  border:1px solid rgba(234,240,255,.14);
  background: rgba(0,0,0,.18);
}
.segmented input{position:absolute; opacity:0; pointer-events:none}
.segmented label{
  text-align:center;
  padding: 10px 10px;
  border-radius: 14px;
  color: var(--muted);
  cursor:pointer;
  z-index:1;
  transition: color .18s ease;
  font-weight:600;
  font-size: 13px;
}
.segmented__pill{
  position:absolute; top:6px; bottom:6px;
  width: calc((100% - 12px) / 3);
  left:6px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(234,240,255,.12);
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
  transition: transform .22s cubic-bezier(.2,.9,.2,1);
}
#monthsSegment input:checked + label{color: var(--text)}
#monthsSegment input#m2:checked ~ .segmented__pill{transform: translateX(100%)}
#monthsSegment input#m3:checked ~ .segmented__pill{transform: translateX(200%)}

.total{padding: 12px; display:flex; align-items:center; justify-content:space-between}
.total__k{color: var(--muted2); font-size: 12px}
.total__v{font-size: 18px; font-weight: 800}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 90;
  display:none;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(234,240,255,.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.toast.is-show{display:block; animation: toastIn .18s ease-out}
@keyframes toastIn{from{opacity:0; transform: translateX(-50%) translateY(6px)} to{opacity:1; transform: translateX(-50%) translateY(0)}}

.skel{
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.10), rgba(255,255,255,.06));
  background-size: 200% 100%;
  animation: shimmer 1.25s linear infinite;
}
.skel--line{height: 14px; margin: 10px 0}
.skel--card{height: 150px}
@keyframes shimmer{to{background-position: -200% 0}}

.hidden{display:none}

.reveal{opacity:0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease}
.reveal.is-in{opacity:1; transform: translateY(0)}

@media (min-width: 860px){
  .container{padding-top: 96px}
  .nav{display:flex}
  #menuBtn{display:none}
  .hero{grid-template-columns: 1.05fr .95fr; padding: 22px}
  .grid--2{grid-template-columns: 1fr 1fr}
  .grid--3{grid-template-columns: 1fr 1fr 1fr}
  .hero__title{font-size: 54px}
  .hero__artInner{height: 210px}
}
/* === Hero social buttons (inside hero__art) === */
.hero__social{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 3;
}
/* соцкнопки на месте бывшего квадрата */
.hero__social--corner{
  position: absolute;
  top: 22px;
  left: 22px;
}


.socialBtn{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 14px;

  text-decoration: none;
  color: rgba(255,255,255,.92);

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    0 10px 30px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.10);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(12px);

  transition: transform .16s ease, background .16s ease, border-color .16s ease;
  user-select: none;
}

.socialBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.22);
}

.socialBtn:active{
  transform: translateY(0px) scale(.98);
}

.socialBtn__icon{
  width: 18px;
  height: 18px;
  opacity: .95;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

.socialBtn__text{
  font-weight: 600;
  letter-spacing: .2px;
  font-size: 13px;
  line-height: 1;
  opacity: .92;
}

/* mobile-first already ok, but on tiny screens make it tighter */
@media (max-width: 420px){
  .hero__social{ left: 16px; bottom: 16px; gap: 8px; }
  .socialBtn{ padding: 9px 11px; border-radius: 13px; }
  .socialBtn__text{ font-size: 12.5px; }
}
