/* ===== SimpleClient tariffs: plan cards + order window ===== */

/* ---------- Plan cards (landing #store and cabinet "Покупка") ---------- */
.sc-plan {
  --tone: 61, 139, 255;
  height: 360px !important;
  border-radius: 26px !important;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--tone), .30), transparent 60%),
    linear-gradient(180deg, rgba(16, 28, 60, .72), rgba(6, 12, 28, .86)) !important;
  border: 1px solid rgba(var(--tone), .28);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(220, 235, 255, .10) !important;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s;
}
.sc-plan:nth-child(2) { --tone: 120, 170, 255; }
.sc-plan:nth-child(3) { --tone: 102, 221, 170; }
.sc-plan:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--tone), .55);
  box-shadow: 0 36px 70px -30px rgba(0, 0, 0, .95), 0 0 50px -20px rgba(var(--tone), .7), inset 0 1px 0 rgba(220, 235, 255, .14) !important;
}
/* drop the scattered logo pattern; keep one calm mark */
.sc-plan > .absolute.inset-0:first-child { display: none; }
.sc-plan > .absolute.inset-0.flex.items-center {
  align-items: flex-start !important; padding: 54px 16px 0; color: rgb(var(--tone)) !important;
  /* the stock card scaled this whole layer ×1.25 on hover, pushing "HWID" past the card edges */
  transform: none !important;
}
/* the version number sizes itself to the card width */
.sc-plan { container-type: inline-size; }
.sc-plan > .absolute.inset-0.flex.items-center svg {
  width: 96px !important; height: 96px !important; opacity: .9 !important;
  filter: drop-shadow(0 0 22px rgba(var(--tone), .65));
}
.sc-plan > .absolute.inset-0.flex.items-center svg * { fill: currentColor; }
.sc-plan > [class*="bg-gradient-to-t"] { display: none; }
/* text block */
.sc-plan > .relative.z-10 { padding: 24px !important; }
.sc-plan .sc-plan-kind {
  text-transform: none !important; letter-spacing: 0 !important;
  font-size: 12.5px !important; color: rgba(var(--tone), .95) !important; margin-bottom: 6px !important;
}
.sc-plan .sc-plan-title {
  font: 600 21px/1.2 var(--sc-head) !important; letter-spacing: -0.025em; filter: none !important;
}
.sc-plan .sc-plan-desc {
  font-size: 13px !important; line-height: 1.5 !important; color: rgba(200, 218, 250, .6) !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex-shrink: 0;
}
.sc-plan .sc-plan-price {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(160, 200, 255, .10);
  font: 600 24px/1 var(--sc-head) !important; color: #fff !important; letter-spacing: -0.02em;
}
.sc-plan .sc-plan-price::after {
  content: "Купить";
  font: 600 13px/1 var(--sc-head); letter-spacing: 0;
  padding: 10px 18px; border-radius: 9999px;
  color: #fff; background: rgba(var(--tone), .22); border: 1px solid rgba(var(--tone), .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: background-color .2s;
}
.sc-plan:hover .sc-plan-price::after { background: rgba(var(--tone), .38); }

/* ---------- Order window ---------- */
/* Fit: the window never grows past the screen. The form column was centred with
   justify-content:center inside an overflow box, so on short screens its top
   (title, price) was cut off and could not be scrolled to. Now it is centred
   with auto margins, which fall back to top alignment and scroll when it is too tall. */
.fixed.inset-0.z-\[100\].items-center { padding: 16px; }
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] {
  height: min(640px, calc(100dvh - 32px)) !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 32px);
}
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > [class*="overflow-y-auto"] {
  justify-content: flex-start !important;
  overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(160, 200, 255, .2) transparent;
}
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > [class*="overflow-y-auto"] > :first-child { margin-top: auto; padding-right: 36px; }
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > [class*="overflow-y-auto"] > :last-child { margin-bottom: auto; }
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > .absolute.left-5 {
  height: calc(100% - 40px) !important; max-height: none !important;
}
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] {
  border: 1px solid rgba(160, 200, 255, .12);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(220, 235, 255, .08), 0 0 80px -40px rgba(var(--sc-ice), .7) !important;
  background: #070d1f !important;
}
.fixed.inset-0.z-\[100\].items-center > .bg-black\/60 {
  background: rgba(2, 5, 14, .62) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
}
/* left: the plan, on the warden wallpaper */
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > .absolute.left-5 > div { border: 1px solid rgba(160, 200, 255, .10); }
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > .absolute.left-5 img { opacity: 0; }
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > .absolute.left-5 > div {
  background: url(/images/main/bg-warden.jpg) center / cover no-repeat;
}
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > .absolute.left-5 [class*="bg-[rgba(5,10,24,0.8)]"] {
  background: linear-gradient(180deg, rgba(5, 10, 24, .35), rgba(5, 10, 24, .85) 75%) !important;
}
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > .absolute.left-5 p[class*="text-[20px]"] {
  font: 600 22px/1.2 var(--sc-head) !important; letter-spacing: -0.03em;
}
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > .absolute.left-5 p[class*="text-white/50"] { color: rgba(214, 228, 255, .72) !important; }
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > .absolute.left-5 svg[viewBox="0 0 32 27"] { width: 64px !important; height: 54px !important; }
.fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > .absolute.left-5 .z-10:has(svg[viewBox="0 0 32 27"]) > svg { filter: none; }

/* right: labels in sentence case, price as the headline */
.fixed.inset-0.z-\[100\].items-center p[class*="uppercase"] {
  text-transform: none !important; letter-spacing: 0 !important;
  font-size: 13px !important; color: rgba(200, 218, 250, .6) !important;
}
.fixed.inset-0.z-\[100\].items-center p[class*="text-primary-400/60"] { color: var(--sc-rime) !important; }
.fixed.inset-0.z-\[100\].items-center h2.font-title {
  font: 600 38px/1.05 var(--sc-head) !important; letter-spacing: -0.04em; color: #fff;
}
.fixed.inset-0.z-\[100\].items-center h2.font-title span[class*="text-white/30"] {
  font: 400 16px/1 var(--sc-head) !important; letter-spacing: 0; color: rgba(200, 218, 250, .55) !important;
}
/* payment methods and periods: glass pills, the chosen one lit with ice */
.fixed.inset-0.z-\[100\].items-center button[class*="rounded-full"][class*="text-[11px]"] {
  padding: 8px 14px !important; font-size: 13px !important;
  color: rgba(214, 228, 255, .7) !important;
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
}
.fixed.inset-0.z-\[100\].items-center button[class*="rounded-full"][class*="text-[11px]"]:hover { color: #fff !important; background: rgba(255, 255, 255, .09) !important; }
.fixed.inset-0.z-\[100\].items-center button[class*="rounded-full"][class*="bg-primary-500/15"] {
  color: #fff !important;
  background: rgba(var(--sc-ice), .2) !important;
  border-color: rgba(var(--sc-ice), .55) !important;
  box-shadow: 0 0 20px -6px rgba(var(--sc-ice), .7);
}
/* payment logos aren't shipped with the site — show clean text pills */
.fixed.inset-0.z-\[100\].items-center button[class*="rounded-full"] > img { display: none; }
.fixed.inset-0.z-\[100\].items-center span[class*="w-[48px]"] { width: 76px !important; font-size: 12.5px !important; color: rgba(200, 218, 250, .5) !important; }
/* promo code */
.fixed.inset-0.z-\[100\].items-center div[class*="h-[46px]"][class*="rounded-full"],
.fixed.inset-0.z-\[100\].items-center div[class*="h-[42px]"][class*="rounded-full"] {
  border-color: rgba(160, 200, 255, .12) !important; background: rgba(255, 255, 255, .04) !important;
  transition: border-color .2s, box-shadow .2s;
}
.fixed.inset-0.z-\[100\].items-center div[class*="rounded-full"]:focus-within {
  border-color: rgba(var(--sc-ice), .55) !important; box-shadow: 0 0 0 3px rgba(var(--sc-ice), .14);
}
.fixed.inset-0.z-\[100\].items-center input::placeholder { color: rgba(200, 215, 245, .35) !important; }
/* terms */
.fixed.inset-0.z-\[100\].items-center label span[class*="text-white/25"] { font-size: 12.5px !important; color: rgba(200, 218, 250, .55) !important; }
.fixed.inset-0.z-\[100\].items-center label > div[class*="rounded-[4px]"] { border-radius: 6px !important; width: 18px !important; height: 18px !important; }
/* pay buttons */
.fixed.inset-0.z-\[100\].items-center button.w-full[class*="rounded-[20px]"] {
  border-radius: 9999px !important; padding-top: 15px !important; padding-bottom: 15px !important;
  background: rgba(var(--sc-ice), .28) !important;
  border: 1px solid rgba(var(--sc-ice), .6) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 34px -8px rgba(var(--sc-ice), .8) !important;
}
.fixed.inset-0.z-\[100\].items-center button.w-full[class*="rounded-[20px]"]:hover { background: rgba(var(--sc-ice), .4) !important; }
.fixed.inset-0.z-\[100\].items-center a[class*="bg-[#5BB8E0]"] {
  border-radius: 9999px !important; padding: 12px 0 !important; font-size: 13px !important;
  color: rgba(214, 228, 255, .8) !important;
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .08);
}
.fixed.inset-0.z-\[100\].items-center a[class*="bg-[#5BB8E0]"]:hover { color: #fff !important; background: rgba(255, 255, 255, .09) !important; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .sc-plan { height: 318px !important; }
  .sc-plan > .absolute.inset-0.flex.items-center { padding-top: 24px; }
  .sc-plan > .absolute.inset-0.flex.items-center svg { width: 56px !important; height: 48px !important; }
  .sc-plan > .relative.z-10 { padding: 20px !important; }
  .sc-plan .sc-plan-title { font-size: 19px !important; }
  .sc-plan .sc-plan-price { font-size: 21px !important; }
  .fixed.inset-0.z-\[100\].items-center h2.font-title { font-size: 30px !important; }
  .fixed.inset-0.z-\[100\].items-center { padding: 12px; }
  .fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] {
    width: 100% !important;
    height: min(720px, calc(100dvh - 24px)) !important; max-height: calc(100dvh - 24px);
  }
  .fixed.inset-0.z-\[100\].items-center > .rounded-\[28px\] > [class*="overflow-y-auto"] { padding: 22px 20px !important; }
  .fixed.inset-0.z-\[100\].items-center button[class*="rounded-full"][class*="text-[11px]"] {
    padding: 8px 12px !important; white-space: nowrap;
  }
  .fixed.inset-0.z-\[100\].items-center span[class*="w-[48px]"] { width: 64px !important; font-size: 11.5px !important; }
}

/* ---- Hero: servers the client is played on, a quiet row under the buttons ---- */
.sc-servers {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px;
  margin-top: 28px; font-size: 13px; color: rgba(200, 218, 250, .5);
}
.sc-servers ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sc-servers li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border-radius: 9999px;
  color: rgba(230, 240, 255, .82); font-weight: 500;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(160, 200, 255, .10);
}
.sc-servers img {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1.5px var(--srv), 0 0 12px -2px var(--srv);
}
@media (max-width: 640px) {
  .sc-servers { margin-top: 22px; font-size: 12px; }
  .sc-servers-label { flex-basis: 100%; text-align: center; }
}

/* ---- Plan cards: the version number is the picture ---- */
.sc-has-ver > .absolute.inset-0.flex.items-center svg { display: none !important; }
.sc-ver {
  display: block; margin-top: -4px;
  max-width: 100%;
  font: 700 min(76px, 19cqi)/1 var(--sc-head); letter-spacing: -0.06em;
  font-variant-numeric: lining-nums; white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, #fff 10%, rgba(var(--tone), 1) 120%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 26px rgba(var(--tone), .45));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s;
}
.sc-ver.sc-ver-long { font-size: min(54px, 13.5cqi); margin-top: 10px; letter-spacing: -0.05em; }
/* hover: the number lifts slightly and glows, staying inside the card */
.sc-plan:hover .sc-ver { transform: translateY(-3px) scale(1.04); filter: drop-shadow(0 0 34px rgba(var(--tone), .65)); }
@media (prefers-reduced-motion: reduce) { .sc-ver { transition: none; } .sc-plan:hover .sc-ver { transform: none; } }
@media (max-width: 640px) {
  .sc-plan.sc-has-ver { height: 360px !important; }
  .sc-ver.sc-ver-long { margin-top: 8px; }
}
/* appears together with the hero buttons, not before them */
.sc-servers { animation: sc-servers-in .6s 1.1s both cubic-bezier(.2, .8, .2, 1); }
@keyframes sc-servers-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .sc-servers { animation: none; } }
