:root {
  --page: #ffffff;
  --soft: #f8f9fb;
  --soft-2: #f1f3f6;
  --card: #ffffff;
  --ink: #111827;
  --muted: #77808f;
  --line: #e9ecf1;
  --line-strong: #e2e6ec;
  --blue: #315efb;
  --blue-hover: #244de0;
  --green: #20bf63;
  --red: #c75d63;
  --radius: 16px;
  --shadow: 0 14px 38px rgba(17, 24, 39, .045);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body,
button,
input,
select,
textarea {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--page);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-size: 14px; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }

.content-container {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header + image background */
.top-hero,
.inner-hero {
  position: relative;
  flex: 0 0 auto;
  color: #fff;
  background: #fff;
  isolation: isolate;
  overflow: hidden;
}
.top-hero { min-height: 365px; }
.inner-hero { min-height: 225px; }
.top-hero::before,
.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../img/hero-bg.png');
  background-position: center top;
  background-size: 98% auto;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,.92) 70%, rgba(0,0,0,.45) 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,.92) 70%, rgba(0,0,0,.45) 86%, transparent 100%);
}
.top-hero::after,
.inner-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 92%);
  pointer-events: none;
}

.site-header {
  width: 100%;
  padding: 16px 32px 0;
  position: relative;
  z-index: 20;
}
.header-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 210px;
  flex: 0 0 auto;
}
.brand-on-hero { color: #fff; }
.brand-dark { color: var(--ink); }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border: 2px solid currentColor;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text b {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-text small {
  max-width: 145px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: .76;
  white-space: nowrap;
}

.nav-cloud {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  white-space: nowrap;
}
.nav-cloud a {
  min-height: 38px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: #171a21;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  transition: background .18s ease, color .18s ease;
}
.nav-cloud a:hover,
.nav-cloud a.active { background: rgba(17, 24, 39, .055); }
.nav-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  border-radius: 6px;
}
.nav-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-icon-blue { color: #3d64e6; background: #edf1ff; }
.nav-icon-purple { color: #8058ce; background: #f1edfb; }
.nav-icon-green { color: #268c62; background: #eaf7f0; }
.nav-icon-orange { color: #c47a2e; background: #fff3e6; }
.nav-icon-rose { color: #bb5c70; background: #fbeef1; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-btn {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  color: #151922;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.login-btn:hover { background: #fff; }
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  padding: 0;
  cursor: pointer;
}
.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 4px auto;
  border-radius: 2px;
  background: #171a21;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 78px;
  padding-bottom: 86px;
}
.hero-copy h1,
.inner-hero-copy h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.hero-copy h1 { font-size: clamp(39px, 5.4vw, 57px); }
.hero-copy p {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  font-weight: 400;
}
.inner-hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  padding-bottom: 50px;
}
.inner-hero-copy h1 { font-size: 40px; }
.inner-hero-copy p {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 14px;
}

/* Main */
.home-main,
.page-main {
  flex: 1 0 auto;
  background: #fff;
}
.content-section { padding: 19px 0; }
.catalog-section {
  position: relative;
  z-index: 2;
  margin-top: -35px;
  padding-top: 0;
}
.page-main { padding: 34px 0 48px; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.catalog-card,
.page-card { padding: 20px; }
.panel h2,
.section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.025em;
}
.catalog-card > h2 { margin-bottom: 14px; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}
.section-heading.with-link a {
  color: #4769db;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #cdd6f8;
  text-underline-offset: 3px;
}

/* Packages */
.product-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.product-row {
  min-height: 61px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #eff1f4;
}
.product-row:last-child { border-bottom: 0; }
.product-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.robux-icon { width: 32px; height: 32px; flex: 0 0 32px; }
.product-amount {
  white-space: nowrap;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.025em;
}
.old-amount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7a8493;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.old-amount img { width: 20px; height: 20px; opacity: .48; }
.old-amount del { text-decoration-thickness: 1.5px; }
.discount-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #f1dadd;
  border-radius: 999px;
  background: #fbf0f1;
  color: #b45e65;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.price-button {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  background: #f0f2f5;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.price-button:hover { background: #e8ebef; }
.price-button:active { transform: translateY(1px); }

/* Recent purchases — no outer card */
.purchases-section { padding-top: 22px; }
.purchases-heading h2 { font-size: 18px; }
.online-badge {
  min-height: 30px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dcefe3;
  border-radius: 999px;
  background: #f2faf5;
  color: #48775b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.online-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(32,191,99,.28);
  animation: onlinePulse 1.9s ease-in-out infinite;
}
@keyframes onlinePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(32,191,99,.26); }
  50% { opacity: .56; box-shadow: 0 0 0 6px rgba(32,191,99,0); }
}
.purchase-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(158px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 1px 1px 7px;
  scrollbar-width: thin;
}
.purchase-item {
  min-height: 82px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(17,24,39,.025);
}
.avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid #edf0f3;
  border-radius: 50%;
  background: #f2f4f6;
  object-fit: cover;
}
.purchase-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.purchase-copy span {
  overflow: hidden;
  color: #8a93a1;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.purchase-copy b {
  margin-top: 3px;
  font-size: 13px;
  white-space: nowrap;
}

/* Roblox Plus — no outer card */
.plus-section-wrap { padding-top: 20px; }
.plus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.plus-card {
  min-width: 0;
  min-height: 282px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafb;
}
.plus-card.accent {
  background: #f5f7ff;
  border-color: #e4e8f8;
}
.plus-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.plus-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.plus-name img { width: 24px; height: 24px; flex: 0 0 24px; }
.plus-name h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}
.plus-title-row > b { font-size: 11px; white-space: nowrap; }
.plus-card > del {
  margin: 7px 0 0 auto;
  color: #848d9b;
  font-size: 11px;
  font-weight: 600;
}
.plus-card ul {
  margin: 18px 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #4b5360;
  font-size: 12px;
  line-height: 1.4;
}
.plus-button {
  margin-top: auto;
  width: 100%;
  min-height: 40px;
  border: 1px solid #e5e8ed;
  border-radius: 10px;
  background: #eef0f3;
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.plus-card.accent .plus-button { border-color: transparent; background: var(--blue); color: #fff; }
.plus-card.accent .plus-button:hover { background: var(--blue-hover); }

/* FAQ — no outer card */
.faq-section-wrap { padding-top: 20px; padding-bottom: 28px; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.faq-item summary {
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { font-size: 16px; font-weight: 400; }
.faq-item p {
  margin: 0;
  padding: 0 12px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.faq-page-list { display: grid; gap: 10px; margin-top: 18px; }
.faq-page .faq-item summary { font-size: 14px; padding: 16px; }
.faq-page .faq-item p { font-size: 13px; padding: 0 16px 16px; }

/* Inner pages */
.page-card h2 { margin-bottom: 14px; }
.page-lead {
  max-width: 680px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.page-lead.compact { margin: 7px 0 0; font-size: 13px; }
.page-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.steps-grid > div,
.info-list > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfc;
  padding: 16px;
}
.steps-grid span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.steps-grid h3 { margin: 14px 0 6px; font-size: 14px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.note-box {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #eceff3;
  border-radius: 12px;
  background: #f8f9fb;
  color: #596270;
  font-size: 12px;
  line-height: 1.6;
}
.info-list { display: grid; gap: 10px; }
.info-list > div { display: flex; flex-direction: column; gap: 4px; }
.info-list b { font-size: 13px; }
.info-list span { color: var(--muted); font-size: 12px; }

/* Contacts */
.support-cards {
  margin-top: 19px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.support-card {
  min-width: 0;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfc;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.support-card:hover {
  transform: translateY(-1px);
  border-color: #dde2e9;
  box-shadow: 0 9px 24px rgba(17,24,39,.04);
}
.support-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 12px;
}
.support-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mail-icon { color: #4d67c8; background: #eef2ff; }
.vk-icon { color: #fff; background: #2787f5; font-size: 13px; font-weight: 800; letter-spacing: -.04em; }
.support-card-copy { min-width: 0; display: flex; flex-direction: column; }
.support-card-copy small { color: var(--muted); font-size: 10px; }
.support-card-copy b { margin-top: 2px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.support-card-copy em { margin-top: 3px; color: #8a93a1; font-size: 10px; font-style: normal; }
.contact-form-wrap {
  margin-top: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.contact-form-copy h3 { margin: 6px 0 7px; font-size: 20px; letter-spacing: -.025em; }
.contact-form-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact-form { display: grid; gap: 11px; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #3f4652;
  font-size: 11px;
  font-weight: 700;
}
.contact-form label span { color: var(--muted); font-weight: 500; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  padding: 10px 11px;
  outline: none;
  color: var(--ink);
}
.contact-form input { height: 41px; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: #bac6ee; box-shadow: 0 0 0 3px rgba(49,94,251,.06); }
.contact-submit { justify-self: start; }

/* Legal pages */
.legal-page section { padding: 15px 0; border-top: 1px solid var(--line); }
.legal-page section:first-of-type { margin-top: 4px; }
.legal-page h3 { margin: 0 0 7px; font-size: 14px; }
.legal-page p { margin: 0; color: #626b78; font-size: 12px; line-height: 1.7; }
.legal-page p a { color: #4264d5; text-decoration: underline; text-underline-offset: 2px; }

/* Footer */
.footer {
  margin-top: auto;
  padding: 31px 0 17px;
  border-top: 1px solid #eef0f3;
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}
.footer-brand-block p {
  max-width: 250px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links b { margin-bottom: 2px; font-size: 12px; }
.footer-links a { color: var(--muted); font-size: 11px; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 23px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #f0f1f3;
  color: #9aa2ae;
  font-size: 10px;
}
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.footer-legal a:hover { color: #5f6875; }

/* Buttons + modal */
.primary-btn {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.primary-btn:hover { background: var(--blue-hover); }
.full { width: 100%; }
.ghost-btn {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,.2);
}
.modal-panel.small { width: min(390px, 100%); }
.modal-panel h3 { margin: 0 34px 8px 0; font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
.modal-panel > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f0f1f3;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.modal-field,
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #343b48;
  font-size: 12px;
  font-weight: 700;
}
.modal-field { margin-bottom: 12px; }
.login-form { display: grid; gap: 12px; margin-top: 18px; }
.modal-field input,
.login-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 12px;
  outline: none;
  background: #fff;
}
.modal-field input:focus,
.login-form input:focus { border-color: #aebdef; box-shadow: 0 0 0 3px rgba(49,94,251,.07); }
.modal-open { overflow: hidden; }

/* Admin */
.admin-body { min-height: 100vh; display: block; background: #f5f6f8; }
.admin-login-wrap { min-height: 100vh; padding: 20px; display: grid; place-items: center; }
.admin-login-card {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.admin-login-card h1 { margin: 22px 0 8px; font-size: 25px; }
.admin-login-card p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.admin-login-card label,
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #343b48;
  font-size: 12px;
  font-weight: 700;
}
.admin-login-card input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  padding: 10px 11px;
  outline: none;
}
.admin-login-card input { height: 42px; margin-bottom: 12px; }
.admin-form input,
.admin-form select { height: 42px; }
.admin-form textarea { min-height: 150px; resize: vertical; }
.admin-back { display: block; margin-top: 16px; color: var(--muted); text-align: center; font-size: 12px; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0,1fr); }
.admin-sidebar {
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
}
.admin-sidebar nav { display: grid; gap: 6px; margin-top: 32px; }
.admin-sidebar nav a { padding: 10px 11px; border-radius: 9px; color: #5b6472; font-size: 12px; font-weight: 600; }
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active { background: #f0f2f5; color: #111827; }
.sidebar-bottom { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 11px; }
.sidebar-bottom a { color: #111827; font-weight: 700; }
.admin-main { min-width: 0; padding: 28px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.admin-topbar h1 { margin: 3px 0 0; font-size: 27px; letter-spacing: -.03em; }
.section-kicker { color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.admin-card { margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(17,24,39,.03); }
.admin-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.admin-card-head h2 { margin: 0; font-size: 19px; }
.admin-card-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form { display: grid; gap: 16px; }
.admin-form label span { color: var(--muted); font-weight: 500; }
.switch-row { display: flex; flex-wrap: wrap; gap: 18px; }
.switch-label { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; cursor: pointer; }
.switch-label input { position: absolute; opacity: 0; pointer-events: none; }
.switch-label > span { width: 34px; height: 20px; border-radius: 999px; background: #d5d9e0; position: relative; transition: .18s; }
.switch-label > span::after { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.16); }
.switch-label input:checked + span { background: var(--blue); }
.switch-label input:checked + span::after { transform: translateX(14px); }
.form-actions { display: flex; gap: 8px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 12px; }
.alert.success { background: #edf9f1; color: #166534; border: 1px solid #d9eee0; }
.alert.error { margin-bottom: 12px; background: #fef3f3; color: #991b1b; border: 1px solid #f4d6d6; }
.count-badge { padding: 6px 9px; border-radius: 999px; background: #f0f2f5; color: #5d6675; font-size: 11px; font-weight: 700; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.admin-table th { padding: 10px; text-align: left; color: #7a8494; font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 11px 10px; border-bottom: 1px solid #f0f1f3; vertical-align: top; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td small { display: block; margin-top: 3px; color: var(--muted); }
.status-badge { display: inline-flex; padding: 5px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.status-badge.green { background: #eef8f1; color: #267044; }
.status-badge.red { background: #fbefef; color: #a9555c; }
.status-badge.blue { background: #eef2ff; color: #4564d3; }
.status-badge.gray { background: #f0f2f4; color: #6e7682; }
.row-actions { min-width: 180px; }
.row-actions a,
.row-actions button { padding: 0; border: 0; background: none; color: #315efb; font-size: 10px; font-weight: 700; cursor: pointer; }
.row-actions form { display: inline; margin-left: 7px; }
.row-actions .danger-link { color: var(--red); }

@media (max-width: 1100px) {
  .brand-text { display: none; }
  .nav-cloud a { padding: 8px 8px; gap: 5px; font-size: 10.5px; }
}

@media (max-width: 820px) {
  .nav-cloud { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-cloud.open {
    position: absolute;
    left: 0;
    right: 0;
    top: 58px;
    transform: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
  }
  .nav-cloud a { padding: 10px 11px; justify-content: flex-start; font-size: 12px; }
}

@media (max-width: 760px) {
  .site-header { padding: 0 16px; }
  .header-row { min-height: 62px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-text { display: flex; }
  .brand-text b { font-size: 13px; }
  .brand-text small { font-size: 8px; }
  .login-btn { min-height: 38px; padding: 0 13px; font-size: 12px; }
  .mobile-menu-btn { width: 38px; height: 38px; }
  .top-hero { min-height: 320px; }
  .inner-hero { min-height: 205px; }
  .top-hero::before,
  .inner-hero::before { background-size: auto 100%; }
  .hero-copy { padding-top: 58px; padding-bottom: 66px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy p { font-size: 14px; }
  .inner-hero-copy { padding-top: 32px; padding-bottom: 34px; }
  .inner-hero-copy h1 { font-size: 32px; }
  .catalog-section { margin-top: -27px; }
  .catalog-card,
  .page-card { padding: 14px; }
  .panel h2,
  .section-heading h2 { font-size: 19px; }
  .product-row { grid-template-columns: minmax(0,1fr) 128px; gap: 10px; padding: 10px; }
  .product-main { flex-wrap: wrap; gap: 7px; }
  .product-amount { font-size: 20px; }
  .robux-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .old-amount { font-size: 13px; }
  .old-amount img { width: 17px; height: 17px; }
  .discount-badge { min-height: 21px; padding: 2px 6px; font-size: 10px; }
  .price-button { font-size: 12px; }
  .plus-grid { grid-template-columns: 1fr; }
  .plus-card { min-height: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .support-cards { grid-template-columns: 1fr; }
  .contact-form-wrap { grid-template-columns: 1fr; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-legal { justify-content: flex-start; }
  .admin-shell { display: block; }
  .admin-sidebar { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-sidebar nav { margin-top: 18px; grid-template-columns: 1fr 1fr; }
  .sidebar-bottom { margin-top: 18px; }
  .admin-main { padding: 18px 14px; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .content-container { width: min(820px, calc(100% - 32px)); }
  .brand-text { display: none; }
  .login-btn { padding: 0 11px; }
  .hero-copy h1 { font-size: 33px; }
  .product-row { grid-template-columns: minmax(0,1fr) 108px; }
  .product-amount { font-size: 18px; }
  .old-amount { gap: 2px; font-size: 11px; }
  .old-amount img { width: 15px; height: 15px; }
  .price-button { min-height: 38px; padding: 8px; font-size: 11px; }
  .purchase-strip { grid-auto-columns: 158px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand-block { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== v4: визуальные исправления ===== */
html,
body,
button,
input,
select,
textarea {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-stretch: normal;
  font-style: normal;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}
body {
  min-height: 100dvh;
  font-size: 14px;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}
button,
input,
select,
textarea { font: inherit; letter-spacing: 0; }

/* Верх светлый: исходное изображение остаётся фоном, но мягко уходит в белый. */
.top-hero,
.inner-hero {
  color: var(--ink);
  background: #fff;
}
.top-hero { min-height: 350px; }
.inner-hero { min-height: 215px; }
.top-hero::before,
.inner-hero::before {
  inset: 0;
  background-position: center top;
  background-size: min(1680px, 94vw) auto;
  opacity: .13;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 54%, rgba(0,0,0,.82) 69%, rgba(0,0,0,.34) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 54%, rgba(0,0,0,.82) 69%, rgba(0,0,0,.34) 84%, transparent 100%);
}
.top-hero::after,
.inner-hero::after {
  height: 43%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.76) 54%, #fff 100%);
}

.brand-on-hero { color: var(--ink); }
.brand-mark {
  border-color: #242a33;
  color: #171b22;
  background: rgba(255,255,255,.72);
  box-shadow: 0 5px 18px rgba(17,24,39,.05);
}
.brand-text b { letter-spacing: 0; }
.brand-text small { letter-spacing: .075em; }
.hero-copy {
  padding-top: 66px;
  padding-bottom: 72px;
}
.hero-copy h1,
.inner-hero-copy h1 {
  color: #111827;
  letter-spacing: -.022em;
}
.hero-copy h1 { font-size: clamp(38px, 4.2vw, 52px); line-height: 1.06; }
.hero-copy p,
.inner-hero-copy p {
  color: #66707f;
  line-height: 1.6;
}

/* Навигация: нормальный размер текста и иконок, без визуального сжатия. */
.nav-cloud {
  gap: 3px;
  padding: 6px;
  border-color: rgba(226,230,236,.86);
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 30px rgba(17,24,39,.08);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}
.nav-cloud a {
  min-height: 42px;
  padding: 8px 12px;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}
.nav-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
}
.nav-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
  vector-effect: non-scaling-stroke;
}
.login-btn {
  min-height: 44px;
  padding: 0 19px;
  border-color: #e7e9ed;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(17,24,39,.075);
  font-size: 13px;
  line-height: 1;
}
.mobile-menu-btn { display: none !important; }

/* Убираем чрезмерно отрицательный кернинг. */
.panel h2,
.section-heading h2,
.product-amount,
.plus-name h3,
.contact-form-copy h3,
.modal-panel h3,
.admin-topbar h1 {
  letter-spacing: -.014em;
}

/* Последние покупки: на ПК всё помещается без горизонтального скролла. */
.purchase-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 12px;
  overflow: visible;
  padding: 1px;
  scrollbar-width: none;
}
.purchase-strip::-webkit-scrollbar { display: none; }
.purchase-item {
  min-width: 0;
  min-height: 80px;
  padding: 11px;
  gap: 9px;
}
.avatar {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}
.purchase-copy span { font-size: 11.5px; }
.purchase-copy b { font-size: 13px; letter-spacing: 0; }

/* Roblox Plus: одна и та же переданная иконка используется у всех карточек блока. */
.plus-name img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}
.plus-name h3 { font-size: 14px; }

/* Поля формы не растягиваются мышью/пальцем. */
.contact-form textarea {
  min-height: 132px;
  resize: none;
}

/* Тонкие, менее контрастные границы. */
:root {
  --line: #edf0f4;
  --line-strong: #e6eaf0;
}
.product-row { border-bottom-color: #f1f3f6; }

@media (max-width: 1100px) {
  .brand-text { display: flex; }
  .nav-cloud a { padding: 8px 10px; gap: 7px; font-size: 12px; }
}

/* На мобильных и узких планшетах меню НЕ превращается в бургер: логотип + вход сверху,
   меню второй строкой, горизонтально прокручивается. */
@media (max-width: 820px) {
  .site-header { padding: 0 16px; }
  .header-row {
    min-height: 0;
    padding-top: 9px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
    max-width: min(210px, calc(100vw - 112px));
  }
  .brand-text { display: flex; }
  .brand-text b { font-size: 13px; }
  .brand-text small { font-size: 8px; }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
  }
  .nav-cloud,
  .nav-cloud.open {
    grid-column: 1 / -1;
    grid-row: 2;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    padding: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 14px;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }
  .nav-cloud::-webkit-scrollbar { display: none; }
  .nav-cloud a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 7px 10px;
    justify-content: flex-start;
    font-size: 12px;
    scroll-snap-align: start;
  }
  .nav-icon { width: 24px; height: 24px; flex-basis: 24px; }
  .nav-icon svg { width: 16px; height: 16px; }
  .login-btn { min-height: 39px; padding: 0 14px; font-size: 12px; }

  .top-hero { min-height: 340px; }
  .inner-hero { min-height: 235px; }
  .top-hero::before,
  .inner-hero::before {
    background-size: auto 92%;
    opacity: .12;
  }
  .hero-copy { padding-top: 44px; padding-bottom: 64px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy p { font-size: 14px; }
  .inner-hero-copy { padding-top: 30px; padding-bottom: 38px; }

  .purchase-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 0 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .purchase-item {
    flex: 0 0 164px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .brand-text { display: flex; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .brand-text b { max-width: 105px; font-size: 12px; }
  .brand-text small { max-width: 105px; font-size: 7.5px; }
  .hero-copy h1 { font-size: 32px; }
}

/* ===== v5: финальная визуальная правка ===== */
html,
body,
button,
input,
select,
textarea {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-stretch: normal;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0;
}
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Верх: используется само присланное изображение, без чёрной заливки контейнера. */
.top-hero,
.inner-hero {
  color: #fff;
  background: #fff;
  overflow: hidden;
}
.top-hero { min-height: 348px; }
.inner-hero { min-height: 250px; }
.top-hero::before,
.inner-hero::before {
  inset: 0;
  opacity: 1;
  background-image: url('../img/hero-bg.png');
  background-position: center top;
  background-size: min(1760px, 96vw) auto;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0,0,0,.96) 68%, rgba(0,0,0,.68) 79%, rgba(0,0,0,.22) 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0,0,0,.96) 68%, rgba(0,0,0,.68) 79%, rgba(0,0,0,.22) 91%, transparent 100%);
}
.top-hero::after,
.inner-hero::after {
  height: 42%;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.12) 32%, rgba(255,255,255,.72) 74%, #fff 100%);
}

/* Логотип: оригинальная иконка Robux вместо буквы R. */
.brand-on-hero { color: #fff; }
.brand-dark { color: var(--ink); }
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 13px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 26px rgba(0,0,0,.12);
}
.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.brand-dark .brand-mark {
  border-color: #e7ebf0;
  box-shadow: 0 7px 22px rgba(17,24,39,.05);
}
.brand-text b {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-text small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
}

/* Навигация и иконки. */
.nav-cloud {
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 36px rgba(0,0,0,.16);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.nav-cloud a {
  min-height: 44px;
  padding: 7px 12px 7px 9px;
  gap: 9px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.15;
}
.nav-cloud a:hover { background: rgba(17,24,39,.045); }
.nav-cloud a.active {
  background: #f1f3f6;
  box-shadow: inset 0 0 0 1px rgba(17,24,39,.015);
}
.nav-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
}
.nav-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.85;
}
.robux-nav-icon img {
  width: 20px;
  height: 20px;
  opacity: .86;
}

/* Кнопка входа. */
.login-btn {
  min-height: 48px;
  padding: 5px 8px 5px 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  color: #111827;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 12.5px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.login-btn:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 15px 34px rgba(0,0,0,.19);
}
.login-btn-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 11px;
  background: #111827;
  color: #fff;
}
.login-btn-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-btn-arrow {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1f3f6;
  color: #6c7582;
  font-size: 15px;
  line-height: 1;
}

/* Приветствие: компактнее на ПК. */
.hero-copy {
  padding-top: 70px;
  padding-bottom: 76px;
}
.hero-copy h1,
.inner-hero-copy h1 {
  color: #fff;
  letter-spacing: -.018em;
}
.hero-copy h1 {
  max-width: 610px;
  font-size: clamp(36px, 3.5vw, 44px);
  line-height: 1.07;
}
.hero-copy p {
  max-width: 520px;
  margin-top: 14px;
  color: rgba(255,255,255,.70);
  font-size: 14px;
  line-height: 1.55;
}
.inner-hero-copy {
  padding-top: 46px;
  padding-bottom: 46px;
}
.inner-hero-copy h1 {
  margin-top: 8px;
  font-size: 36px;
  line-height: 1.08;
}
.inner-hero-copy p {
  max-width: 590px;
  margin-top: 10px;
  color: rgba(255,255,255,.68);
  font-size: 13.5px;
  line-height: 1.6;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* FAQ: аккуратная стрелка, которая поворачивается при раскрытии. */
.faq-item {
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(17,24,39,.018);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.faq-item:hover {
  border-color: #e3e7ed;
  box-shadow: 0 9px 26px rgba(17,24,39,.032);
}
.faq-item[open] {
  border-color: #e2e7ef;
  background: #fcfcfd;
}
.faq-item summary {
  min-height: 52px;
  padding: 13px 13px 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #202733;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}
.faq-item summary > span:first-child {
  min-width: 0;
  font-size: inherit;
  font-weight: inherit;
}
.faq-chevron {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  background: #f7f8fa;
  color: #5d6673;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.faq-chevron svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: #eef2ff;
  color: #526bd7;
}
.faq-item p {
  margin: 0;
  padding: 0 56px 16px 15px;
  color: #747e8c;
  font-size: 12px;
  line-height: 1.65;
}

/* Внутренние страницы: без скучной большой рамки вокруг всего контента. */
.polished-page {
  padding: 30px 0 58px;
}
.page-section { padding: 0; }
.page-section-head {
  max-width: 620px;
  margin-bottom: 20px;
}
.page-section-head h2 {
  margin: 6px 0 0;
  color: #151b25;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.page-section-head p {
  margin: 8px 0 0;
  color: #788290;
  font-size: 12.5px;
  line-height: 1.65;
}
.section-kicker {
  color: #6e79a1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.feature-grid {
  display: grid;
  gap: 12px;
}
.feature-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.feature-card {
  min-height: 210px;
  padding: 17px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: linear-gradient(180deg,#fff 0%,#fbfcfd 100%);
  box-shadow: 0 10px 28px rgba(17,24,39,.025);
}
.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feature-icon,
.timeline-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}
.feature-icon svg,
.timeline-icon svg,
.callout-icon svg,
.legal-summary-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-blue { background: #eef3ff; color: #5471dc; }
.feature-green { background: #edf8f2; color: #2e8e62; }
.feature-purple { background: #f3effd; color: #7458c3; }
.step-tag {
  color: #adb4bf;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
}
.feature-card h3 {
  margin: 26px 0 7px;
  font-size: 14px;
  font-weight: 800;
}
.feature-card p {
  margin: 0;
  color: #77818e;
  font-size: 11.5px;
  line-height: 1.65;
}
.page-callout {
  margin-top: 14px;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid #e8edf6;
  border-radius: 15px;
  background: #f8faff;
}
.page-callout.soft-blue { background: #f8fbff; }
.callout-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #6076cf;
  box-shadow: 0 5px 14px rgba(17,24,39,.035);
}
.page-callout b { font-size: 12.5px; }
.page-callout p { margin: 3px 0 0; color: #7a8492; font-size: 11px; line-height: 1.5; }
.text-link {
  color: #526ad0;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.text-link span { margin-left: 3px; }

.delivery-timeline {
  display: grid;
  gap: 10px;
}
.timeline-card {
  min-height: 88px;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid #edf0f4;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17,24,39,.022);
}
.timeline-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.timeline-copy h3 { margin: 0; font-size: 13.5px; }
.timeline-copy p { margin: 4px 0 0; color: #7a8491; font-size: 11.5px; line-height: 1.55; }
.timeline-icon { width: 40px; height: 40px; }
.timeline-icon img { width: 22px; height: 22px; }

/* Контакты. */
.contacts-page .support-cards { margin-top: 0; }
.support-card {
  min-height: 92px;
  padding: 16px;
  border-color: #edf0f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(17,24,39,.025);
}
.support-card:hover {
  transform: translateY(-2px);
  border-color: #dfe5ed;
  box-shadow: 0 13px 32px rgba(17,24,39,.045);
}
.support-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
.support-icon svg { width: 22px; height: 22px; }
.support-card-copy small { font-size: 10px; }
.support-card-copy b { font-size: 13px; }
.support-card-copy em { font-size: 10.5px; }
.support-arrow {
  margin-left: auto;
  color: #a3acb8;
  font-size: 17px;
  font-weight: 500;
}
.contact-form-wrap {
  margin-top: 14px;
  padding: 20px;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  border-color: #edf0f4;
  border-radius: 17px;
  background: linear-gradient(135deg,#fbfcff 0%,#fff 62%);
  box-shadow: 0 10px 30px rgba(17,24,39,.025);
}
.contact-form-copy h3 { margin: 7px 0 8px; font-size: 21px; }
.contact-form-copy p { font-size: 11.5px; }
.contact-note {
  margin-top: 16px;
  padding: 10px 11px;
  display: flex;
  gap: 8px;
  border: 1px solid #e9edf5;
  border-radius: 11px;
  background: rgba(255,255,255,.75);
  color: #89929f;
  font-size: 9.5px;
  line-height: 1.5;
}
.contact-note > span {
  width: 7px;
  height: 7px;
  margin-top: 3px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #7288db;
}
.contact-form input,
.contact-form textarea {
  border-color: #e5e9ef;
  background: #fff;
  font-size: 12px;
}
.contact-form textarea {
  min-height: 112px;
  max-height: 112px;
  resize: none !important;
}
.contact-submit { gap: 8px; }

/* FAQ отдельной страницы. */
.faq-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.faq-head-row > div { max-width: 520px; }
.mini-support-link {
  min-height: 34px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e8edf3;
  border-radius: 11px;
  background: #fff;
  color: #687381;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.mini-support-dot { width: 7px; height: 7px; border-radius: 50%; background: #34b76c; }
.faq-page-list {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 10px;
}
.faq-page .faq-item summary { padding: 14px 13px 14px 15px; font-size: 12.5px; }
.faq-page .faq-item p { padding: 0 56px 16px 15px; font-size: 11.5px; }

/* Юридические страницы. */
.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0,1fr);
  align-items: start;
  gap: 18px;
}
.legal-summary {
  position: sticky;
  top: 18px;
  padding: 16px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fafbfc;
}
.legal-summary-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #eef3ff;
  color: #5a70c9;
}
.legal-summary b { display: block; font-size: 12.5px; }
.legal-summary p { margin: 6px 0 15px; color: #7d8794; font-size: 10.5px; line-height: 1.6; }
.legal-summary a { color: #546ccd; font-size: 10.5px; font-weight: 700; }
.legal-content { min-width: 0; }
.legal-content .page-section-head { margin-bottom: 12px; }
.legal-content section {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 10px;
  border-top: 1px solid #edf0f4;
}
.legal-content section > span {
  color: #a6aeba;
  font-size: 10px;
  font-weight: 800;
}
.legal-content h3 { margin: 0 0 5px; font-size: 13px; }
.legal-content p { margin: 0; color: #747f8c; font-size: 11.5px; line-height: 1.72; }
.legal-content a { color: #526bd1; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1100px) {
  .nav-cloud a { padding: 7px 10px 7px 8px; font-size: 12px; }
  .nav-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .nav-icon svg, .robux-nav-icon img { width: 18px; height: 18px; }
}

@media (max-width: 820px) {
  .site-header { padding: 0 16px; }
  .header-row {
    padding-top: 10px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 9px;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .brand-text { display: flex; }
  .header-actions { grid-column: 2; grid-row: 1; margin-left: 0; }
  .nav-cloud,
  .nav-cloud.open {
    grid-column: 1 / -1;
    grid-row: 2;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 17px;
    white-space: nowrap;
    scrollbar-width: none;
    scroll-padding-inline: 8px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .nav-cloud::-webkit-scrollbar { display: none; }
  .nav-cloud a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 6px 10px 6px 7px;
    border-radius: 12px;
    font-size: 12px;
  }
  .nav-cloud a.active { border-radius: 12px; }
  .nav-icon { width: 29px; height: 29px; flex-basis: 29px; border-radius: 9px; }
  .nav-icon svg, .robux-nav-icon img { width: 19px; height: 19px; }
  .login-btn { min-height: 43px; padding: 4px 7px 4px 5px; gap: 7px; }
  .login-btn-icon { width: 33px; height: 33px; flex-basis: 33px; }
  .login-btn-arrow { display: none; }

  .top-hero { min-height: 365px; }
  .inner-hero { min-height: 275px; }
  .top-hero::before,
  .inner-hero::before {
    background-size: auto 300px;
    background-position: center top;
  }
  .hero-copy { padding-top: 52px; padding-bottom: 68px; }
  .hero-copy h1 { font-size: 34px; }
  .inner-hero-copy { padding-top: 37px; padding-bottom: 42px; }
  .inner-hero-copy h1 { font-size: 31px; }

  .feature-grid.three { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-card h3 { margin-top: 18px; }
  .page-callout { grid-template-columns: auto minmax(0,1fr); }
  .page-callout .text-link { grid-column: 2; justify-self: start; }
  .contact-form-wrap { grid-template-columns: 1fr; }
  .faq-head-row { align-items: flex-start; flex-direction: column; }
  .faq-page-list { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-summary { position: static; }
}

@media (max-width: 560px) {
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .brand-mark img { width: 25px; height: 25px; }
  .brand-text b { max-width: 116px; font-size: 12px; }
  .brand-text small { max-width: 116px; font-size: 7.5px; }
  .login-btn { min-height: 40px; padding-right: 9px; font-size: 11.5px; }
  .login-btn-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
  .login-btn-icon svg { width: 16px; height: 16px; }
  .top-hero { min-height: 350px; }
  .hero-copy h1 { font-size: 31px; }
  .hero-copy p { font-size: 13px; }
  .inner-hero { min-height: 260px; }
  .inner-hero-copy h1 { font-size: 29px; }
  .polished-page { padding-top: 25px; }
  .page-section-head h2 { font-size: 22px; }
  .timeline-card { grid-template-columns: 34px minmax(0,1fr); }
  .timeline-icon { display: none; }
  .support-cards { grid-template-columns: 1fr; }
  .contact-form-grid { grid-template-columns: 1fr; }
}

/* ===== v6: визуальная стабилизация ===== */
:root {
  --brand: #315efb;
  --brand-2: #6a5cf6;
  --ink: #141b2a;
  --muted: #6f7a8a;
  --line: #edf0f4;
  --line-strong: #e4e8ee;
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-optical-sizing: auto;
  font-stretch: 100%;
  font-style: normal;
  font-synthesis: none;
  font-variant: normal;
  font-kerning: normal;
  letter-spacing: 0;
}
body {
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button,
input,
select,
textarea { line-height: 1.35; }

/* Фон героя: псевдоэлемент должен быть НАД белым фоном контейнера, а не под ним. */
.top-hero,
.inner-hero {
  position: relative;
  isolation: isolate;
  background: #fff;
}
.top-hero::before,
.inner-hero::before {
  z-index: 0 !important;
  pointer-events: none;
  opacity: 1 !important;
  background-image: url('../img/hero-bg.png') !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: min(1780px, 96vw) auto !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0,0,0,.96) 67%, rgba(0,0,0,.72) 78%, rgba(0,0,0,.28) 90%, transparent 100%) !important;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0,0,0,.96) 67%, rgba(0,0,0,.72) 78%, rgba(0,0,0,.28) 90%, transparent 100%) !important;
}
.top-hero::after,
.inner-hero::after {
  z-index: 1 !important;
  pointer-events: none;
  height: 40% !important;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.10) 28%, rgba(255,255,255,.68) 72%, #fff 100%) !important;
}
.site-header,
.hero-copy,
.inner-hero-copy { position: relative; z-index: 2; }

/* Логотип и заголовки на тёмном изображении. */
.brand-on-hero { color: #fff !important; }
.brand-on-hero .brand-text small { color: rgba(255,255,255,.72); }
.brand-mark {
  overflow: hidden;
  border-color: rgba(255,255,255,.72) !important;
  background: rgba(255,255,255,.94) !important;
}
.brand-mark img {
  width: 29px !important;
  height: 29px !important;
  max-width: 29px;
  max-height: 29px;
  object-fit: contain;
}
.brand-dark .brand-mark { border-color: var(--line-strong) !important; }
.brand-dark .brand-text b { color: var(--ink); }
.brand-text { line-height: 1.1 !important; }
.brand-text b,
.brand-text small { letter-spacing: 0 !important; }
.brand-text small { margin-top: 4px; }

.hero-copy h1,
.inner-hero-copy h1 {
  color: #fff !important;
  letter-spacing: 0 !important;
}
.hero-copy h1 {
  max-width: 650px;
  font-size: clamp(34px, 3.1vw, 42px) !important;
  line-height: 1.16 !important;
}
.hero-copy h1 span {
  color: #8eafff;
}
.hero-copy p,
.inner-hero-copy p {
  color: rgba(255,255,255,.78) !important;
}
.inner-hero-copy h1 { font-size: 38px !important; line-height: 1.18 !important; }
.hero-kicker {
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.11);
  color: rgba(255,255,255,.84);
}

/* Все основные заголовки читаются единообразно, без отрицательного трекинга. */
.panel h2,
.section-heading h2,
.page-section-head h2,
.feature-card h3,
.timeline-copy h3,
.contact-form-copy h3,
.legal-content h3,
.modal-panel h3,
.admin-topbar h1,
.admin-card h2,
.product-amount,
.plus-name h3 {
  letter-spacing: 0 !important;
  font-stretch: 100%;
}
.panel h2,
.section-heading h2,
.page-section-head h2 { color: #17213a; }
.panel h2,
.section-heading h2 { line-height: 1.3 !important; }
.product-amount { line-height: 1.22 !important; }
.old-amount,
.price-button,
.purchase-copy,
.plus-card,
.faq-item,
.footer,
.page-main { font-stretch: 100%; }

/* Меню: крупнее и без визуально сжатых иконок. */
.nav-cloud a {
  min-height: 46px;
  padding: 8px 13px 8px 9px;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}
.nav-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
}
.nav-icon svg,
.robux-nav-icon img {
  width: 21px !important;
  height: 21px !important;
  flex: 0 0 21px;
}
.robux-nav-icon img { opacity: 1; }

/* Цветная кнопка входа. */
.login-btn {
  min-height: 48px;
  padding: 5px 9px 5px 6px;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.30);
  background: linear-gradient(135deg, #315efb 0%, #665cf4 100%);
  color: #fff;
  box-shadow: 0 13px 34px rgba(49,94,251,.30);
  font-size: 13px;
  line-height: 1.3 !important;
}
.login-btn:hover {
  background: linear-gradient(135deg, #2855ef 0%, #5b50ea 100%);
  box-shadow: 0 16px 38px rgba(49,94,251,.36);
}
.login-btn-icon {
  background: rgba(255,255,255,.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.login-btn-arrow {
  background: rgba(255,255,255,.14);
  color: #fff;
}

/* Внутренние страницы на ПК: крупнее типографика и наполненнее карточки. */
.polished-page { padding: 38px 0 64px; }
.page-section-head {
  max-width: 720px;
  margin-bottom: 24px;
}
.page-section-head h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.25 !important;
}
.page-section-head p {
  margin-top: 9px;
  color: #707b8b;
  font-size: 14px;
  line-height: 1.7;
}
.feature-grid { gap: 14px; }
.feature-card {
  min-height: 220px;
  padding: 21px;
  border-radius: 18px;
}
.feature-icon,
.timeline-icon { width: 46px; height: 46px; border-radius: 14px; }
.feature-icon svg,
.timeline-icon svg { width: 23px; height: 23px; }
.feature-card h3 {
  margin: 28px 0 9px;
  font-size: 16px;
  line-height: 1.35;
}
.feature-card p {
  font-size: 13px;
  line-height: 1.7;
}
.step-tag { font-size: 11px; }
.page-callout {
  margin-top: 16px;
  padding: 18px 19px;
  gap: 15px;
  border-radius: 17px;
}
.page-callout b { font-size: 14px; line-height: 1.35; }
.page-callout p { font-size: 12.5px; line-height: 1.65; }
.text-link { font-size: 12.5px; }
.delivery-timeline { gap: 12px; }
.timeline-card {
  min-height: 104px;
  padding: 18px 19px;
  grid-template-columns: 42px minmax(0,1fr) auto;
  gap: 15px;
  border-radius: 17px;
}
.timeline-number { width: 38px; height: 38px; border-radius: 12px; font-size: 12px; }
.timeline-copy h3 { font-size: 15.5px; line-height: 1.35; }
.timeline-copy p { margin-top: 5px; font-size: 13px; line-height: 1.65; }

/* FAQ. */
.faq-item summary {
  min-height: 58px;
  padding: 15px 14px 15px 17px;
  font-size: 13.5px;
  line-height: 1.45 !important;
}
.faq-item p {
  padding: 0 60px 17px 17px;
  font-size: 12.5px;
  line-height: 1.7;
}
.faq-chevron { width: 32px; height: 32px; flex-basis: 32px; }
.faq-page .faq-item summary { font-size: 13.5px; }
.faq-page .faq-item p { font-size: 12.5px; }
.mini-support-link { min-height: 38px; padding: 8px 12px; font-size: 11.5px; }

/* Контакты. */
.support-cards { gap: 13px; }
.support-card { min-height: 108px; padding: 19px; }
.support-icon { width: 50px; height: 50px; flex-basis: 50px; }
.support-card-copy small { font-size: 11px; }
.support-card-copy b { font-size: 14px; line-height: 1.35; }
.support-card-copy em { font-size: 11.5px; line-height: 1.4; }
.contact-form-wrap {
  margin-top: 17px;
  padding: 24px;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  border-radius: 19px;
}
.contact-form-copy h3 { margin-top: 0; font-size: 24px; line-height: 1.3; }
.contact-form-copy p { font-size: 13px; line-height: 1.7; }
.contact-note { font-size: 11px; line-height: 1.55; }
.contact-form label { font-size: 12px; line-height: 1.35; }
.contact-form input,
.contact-form textarea { font-size: 13px; line-height: 1.45; }
.contact-form input { height: 44px; }
.contact-form textarea { min-height: 124px; max-height: 124px; resize: none !important; }

/* Юридические страницы. */
.legal-layout { grid-template-columns: 235px minmax(0,1fr); gap: 22px; }
.legal-summary { padding: 20px; border-radius: 18px; }
.legal-summary b { font-size: 14px; }
.legal-summary p { font-size: 12px; line-height: 1.7; }
.legal-summary a { font-size: 11.5px; }
.legal-content section {
  padding: 19px 0;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 13px;
}
.legal-content section > span { font-size: 11px; }
.legal-content h3 { font-size: 15px; line-height: 1.35; }
.legal-content p { font-size: 12.5px; line-height: 1.78; }

/* Roblox Plus — нормальная вертикальная метрика текста. */
.plus-name h3 { line-height: 1.35 !important; }
.plus-title-row > b,
.plus-card > del,
.plus-button { line-height: 1.35 !important; }
.plus-card ul { font-size: 12.5px; line-height: 1.55; }
.plus-button { font-size: 11.5px; }

/* Админка: настройки логотипа. */
.admin-topbar h1 { margin: 0; line-height: 1.25; }
.admin-topbar p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.admin-logo-preview {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f9fb;
}
.admin-logo-preview img { width: 42px; height: 42px; object-fit: contain; }
.logo-settings-grid input[type="file"] { height: auto; min-height: 42px; padding: 8px; }

/* Старые kicker-стили больше не используются. */
.section-kicker { display: none !important; }

@media (max-width: 1100px) {
  .brand-text { display: flex !important; }
  .nav-cloud a { font-size: 12.5px; }
}

@media (max-width: 820px) {
  .site-header { padding: 0 16px; }
  .header-row { row-gap: 10px; }
  .nav-cloud,
  .nav-cloud.open {
    padding: 6px 10px !important;
    gap: 4px;
    border-radius: 18px !important;
    scroll-snap-type: none !important;
    scroll-padding-inline: 10px;
  }
  .nav-cloud a {
    min-height: 43px;
    padding: 6px 11px 6px 7px;
    border-radius: 13px !important;
    font-size: 12px;
    scroll-snap-align: none !important;
  }
  .nav-cloud a.active { border-radius: 13px !important; }
  .nav-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .nav-icon svg,
  .robux-nav-icon img { width: 20px !important; height: 20px !important; }

  .top-hero::before,
  .inner-hero::before {
    background-size: auto 315px !important;
    background-position: center top !important;
  }
  .hero-copy h1 { font-size: 32px !important; line-height: 1.18 !important; }
  .inner-hero-copy h1 { font-size: 30px !important; }

  .polished-page { padding-top: 30px; }
  .page-section-head h2 { font-size: 25px; }
  .feature-card { min-height: 0; padding: 19px; }
  .contact-form-wrap { padding: 20px; }
  .legal-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-text b { font-size: 12.5px; }
  .brand-text small { font-size: 8px; }
  .login-btn { min-height: 41px; font-size: 11.5px; }
  .login-btn-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .hero-copy h1 { font-size: 30px !important; }
  .feature-grid.three { grid-template-columns: 1fr; }
  .page-section-head h2 { font-size: 23px; }
  .page-section-head p { font-size: 13px; }
  .support-cards { grid-template-columns: 1fr; }
  .contact-form-grid { grid-template-columns: 1fr; }
}

/* Дополнительная стабилизация метрик текста на широких экранах. */
@media (min-width: 821px) {
  .catalog-card > h2,
  .section-heading h2 { font-size: 23px; }
  .product-amount { font-size: 26px; }
  .old-amount { font-size: 15px; line-height: 1.35; }
  .price-button { font-size: 13.5px; line-height: 1.35; }
  .purchase-copy span { font-size: 11.5px; line-height: 1.4; }
  .purchase-copy b { font-size: 13.5px; line-height: 1.35; }
  .plus-name h3 { font-size: 14.5px; }
  .plus-title-row > b { font-size: 12px; }
}

/* ===== v8: точечные исправления без перестройки существующей вёрстки ===== */

/* Никаких текстовых теней. Цвета героя и логотипа заданы явно. */
.brand-on-hero .brand-text b,
.brand-on-hero .brand-text small,
.hero-copy h1,
.hero-copy h1 span,
.hero-copy p,
.inner-hero-copy h1,
.inner-hero-copy p {
}

/* Фоновое изображение теперь является самим background контейнера.
   Так оно не может исчезнуть из-за z-index/mask псевдоэлемента. */
.top-hero,
.inner-hero {
  background-color: #fff !important;
  background-image: url('../img/hero-bg.png') !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: min(1700px, 96vw) auto !important;
  color: #fff !important;
}
.top-hero::before,
.inner-hero::before {
  content: none !important;
  display: none !important;
}
.top-hero::after,
.inner-hero::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  z-index: 1 !important;
  display: block !important;
  height: 42% !important;
  pointer-events: none !important;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.06) 28%,
    rgba(255,255,255,.52) 68%,
    #fff 100%
  ) !important;
}
.site-header,
.hero-copy,
.inner-hero-copy {
  position: relative !important;
  z-index: 2 !important;
}

.brand-on-hero .brand-text b { color: #ffffff !important; }
.brand-on-hero .brand-text small { color: #89a8ff !important; opacity: 1 !important; }
.hero-copy h1,
.inner-hero-copy h1 { color: #ffffff !important; }
.hero-copy h1 span { color: #7fa4ff !important; }
.hero-copy p,
.inner-hero-copy p { color: rgba(255,255,255,.78) !important; }

/* Удалённые из HTML kicker-плашки больше нигде не должны появляться. */
.hero-kicker,
.section-kicker { display: none !important; }

/* Подстраховка вертикальных метрик Inter без масштабирования или сжатия. */
html,
body,
button,
input,
select,
textarea {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-stretch: normal !important;
  font-synthesis: none !important;
  transform: none;
}
body { letter-spacing: 0 !important; }
button,
input,
select,
textarea { letter-spacing: 0 !important; }

/* Меню на мобильном: сохраняем внутренний левый отступ и одинаковую геометрию активного пункта. */
@media (max-width: 820px) {
  .nav-cloud,
  .nav-cloud.open {
    padding-left: 10px !important;
    padding-right: 10px !important;
    scroll-snap-type: none !important;
    scroll-padding-inline: 10px !important;
  }
  .nav-cloud a,
  .nav-cloud a.active {
    border-radius: 13px !important;
    scroll-snap-align: none !important;
  }
  .top-hero,
  .inner-hero {
    background-size: auto 315px !important;
    background-position: center top !important;
  }
}

/* v8.1 — исходный PNG прозрачный, поэтому hero остаётся светлым. Явные цвета текста. */
.brand-on-hero { color: #111827 !important; }
.brand-on-hero .brand-text b {
  color: #111827 !important;
  opacity: 1 !important;
}
.brand-on-hero .brand-text small {
  color: #5f7eea !important;
  opacity: 1 !important;
}
.hero-copy h1,
.inner-hero-copy h1 {
  color: #111827 !important;
}
.hero-copy h1 span { color: #6f91f5 !important; }
.hero-copy p,
.inner-hero-copy p {
  color: #6f7a8a !important;
}

/* ===== v9: точечные правки ===== */

/* На главной между самостоятельными секциями чуть больше воздуха. */
.home-main > .content-section + .content-section {
  margin-top: 14px;
}

/* Логотип без дополнительной подписи STORE. */
.brand-text {
  justify-content: center;
}
.brand-text b {
  line-height: 1.2 !important;
}

/* Простая плоская кнопка входа: без градиента, тени, стрелки и плашки у иконки. */
.login-btn {
  min-height: 44px !important;
  padding: 0 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #315efb !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-stretch: normal !important;
  font-synthesis: none !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  transform: none !important;
}
.login-btn:hover {
  background: #2855e8 !important;
  box-shadow: none !important;
  transform: none !important;
}
.login-btn-icon {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: currentColor !important;
  box-shadow: none !important;
}
.login-btn-icon svg {
  width: 18px !important;
  height: 18px !important;
}
.login-btn-arrow { display: none !important; }

/* Превью favicon в админке. */
.admin-brand-previews {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-favicon-preview {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8f9fb;
}
.admin-favicon-preview img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.settings-subsection + .settings-subsection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.settings-subsection > b {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

@media (max-width: 820px) {
  .home-main > .content-section + .content-section {
    margin-top: 10px;
  }
  .login-btn {
    min-height: 41px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
  }
  .login-btn-icon,
  .login-btn-icon svg {
    width: 17px !important;
    height: 17px !important;
    flex-basis: 17px !important;
  }
}

/* ==============================
   Technical layer v10
   ============================== */
.header-user {
  min-height: 42px;
  max-width: 220px;
  padding: 4px 10px 4px 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #315efb;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.header-user[hidden] { display: none !important; }
.header-user > img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  object-fit: cover;
  background: #fff;
}
.header-user-copy {
  min-width: 0;
  display: grid;
  text-align: left;
  line-height: 1.15;
}
.header-user-copy b,
.header-user-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user-copy b { font-size: 11.5px; font-weight: 700; }
.header-user-copy small { margin-top: 2px; font-size: 9.5px; opacity: .78; }

.login-search-panel { width: min(480px, 100%); }
.roblox-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 16px;
}
.roblox-search-form input,
.topup-modal-panel input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.roblox-search-form input:focus,
.topup-modal-panel input:focus {
  border-color: #aebdef;
  box-shadow: 0 0 0 3px rgba(49,94,251,.07);
}
.roblox-search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 350px;
  overflow-y: auto;
}
.roblox-result {
  width: 100%;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.roblox-result:hover { background: #f8f9fb; border-color: #dde2e9; }
.roblox-result:disabled { opacity: .6; cursor: wait; }
.roblox-result img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft-2);
}
.roblox-result-copy { min-width: 0; display: grid; gap: 2px; }
.roblox-result-copy b { font-size: 13px; line-height: 1.25; }
.roblox-result-copy small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.auth-loading,
.auth-inline-message {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.45;
}
.auth-loading { background: var(--soft); color: var(--muted); }
.auth-inline-message { margin-top: 10px; background: #fff1f1; color: #a94b52; }
.auth-inline-message[data-type="info"] { background: #f1f5ff; color: #4664ba; }

.profile-modal-panel { width: min(560px, 100%); }
.profile-head {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding-right: 34px;
}
.profile-head > img {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  object-fit: cover;
  background: var(--soft-2);
}
.profile-head h3 { margin: 0 !important; }
.profile-head p { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; }
.profile-balance { font-size: 17px; white-space: nowrap; }
.profile-actions { display: flex; gap: 8px; margin-top: 18px; }
.profile-orders-wrap { margin-top: 20px; }
.profile-orders-title { margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.profile-orders { display: grid; gap: 8px; max-height: 330px; overflow-y: auto; }
.profile-empty { padding: 18px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: 11.5px; text-align: center; }
.profile-order { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.profile-order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-order-top b { font-size: 12.5px; }
.order-status { padding: 4px 7px; border-radius: 999px; background: #f1f3f6; color: #687182; font-size: 9.5px; font-weight: 700; }
.order-status.completed { background: #eaf8f0; color: #27865a; }
.order-status.pending_manual { background: #fff5e8; color: #a46925; }
.profile-order-meta { margin-top: 5px; color: var(--muted); font-size: 10.5px; }
.profile-order-code {
  margin-top: 9px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  background: #f6f8fb;
}
.profile-order-code code { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 11.5px; font-weight: 700; }
.profile-order-code button { border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.profile-order-waiting { margin-top: 9px; color: #9a6b2f; font-size: 10.5px; line-height: 1.45; }

.topup-modal-panel .modal-field { margin-top: 16px; }
.order-modal-panel { width: min(430px, 100%); }
.order-modal-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #f4f6fa;
}
.order-modal-actions { margin-top: 16px; }
.sold-out-btn,
.sold-out-btn:hover {
  background: #d66a70 !important;
  border-color: #d66a70 !important;
  color: #fff !important;
  cursor: not-allowed;
}
.order-code-box {
  margin-top: 16px;
  padding: 13px;
  display: grid;
  gap: 8px;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #f8faff;
}
.order-code-box[hidden] { display: none !important; }
.order-code-box span { color: var(--muted); font-size: 10px; }
.order-code-box strong { overflow-wrap: anywhere; font-size: 16px; line-height: 1.35; }

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  max-width: min(430px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 11px 14px;
  border: 1px solid #dde3ec;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(17,24,39,.10);
  font-size: 11.5px;
  font-weight: 600;
}
.site-toast[data-type="error"] { border-color: #edd0d3; background: #fff7f7; color: #a94b52; }
.site-toast[data-type="success"] { border-color: #cfe8d9; background: #f5fff9; color: #287a53; }

@media (max-width: 820px) {
  .header-user { min-height: 40px; max-width: 170px; padding: 4px 8px 4px 4px; }
  .header-user > img { width: 30px; height: 30px; flex-basis: 30px; }
  .header-user-copy b { max-width: 95px; }
  .roblox-search-form { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 50px minmax(0,1fr); padding-right: 28px; }
  .profile-head > img { width: 50px; height: 50px; }
  .profile-balance { grid-column: 2; font-size: 15px; }
  .profile-actions { flex-wrap: wrap; }
}
.admin-inline-code { display: flex; gap: 6px; min-width: 220px; }
.admin-inline-code input { min-width: 130px; height: 34px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 11px; }
.admin-inline-code button { height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer; }

/* ==============================
   v11 — точечные исправления UI
   ============================== */

/* hidden должен побеждать display:inline-flex !important у кнопки входа. */
.login-btn[hidden],
.header-user[hidden] {
  display: none !important;
}

/* После авторизации остаётся только профиль. Блок профиля крупнее и с нормальными метриками Inter. */
.header-user {
  min-height: 50px;
  max-width: 270px;
  padding: 5px 14px 5px 6px;
  gap: 10px;
  border-radius: 13px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  font-stretch: normal;
  font-synthesis: none;
}
.header-user > img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
}
.header-user-copy {
  gap: 2px;
  line-height: 1.25;
}
.header-user-copy b {
  font-family: inherit !important;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
.header-user-copy small {
  margin-top: 0;
  font-family: inherit !important;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  opacity: .9;
}

/* Не показываем нативные стрелки у числовых полей вообще. */
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Пустое поле суммы — пользователь сам вводит значение. */
.topup-modal-panel input[data-topup-amount] {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

/* iOS/мобильные браузеры не зумят страницу при фокусе на поле, если размер >= 16px. */
@media (max-width: 820px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
    line-height: 1.35 !important;
  }

  .header-user {
    min-height: 44px;
    max-width: min(205px, 52vw);
    padding: 4px 10px 4px 5px;
    gap: 8px;
    border-radius: 12px;
  }
  .header-user > img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
  }
  .header-user-copy b {
    font-size: 12.5px;
    line-height: 1.25;
  }
  .header-user-copy small {
    font-size: 11px;
    line-height: 1.25;
  }
}


/* ===== v12: логотип без декоративной плашки; текст полностью управляется админкой ===== */
.brand-mark,
.brand-on-hero .brand-mark,
.brand-dark .brand-mark {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.brand-mark img {
  display: block !important;
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: none !important;
}
.brand-text b {
  text-transform: none !important;
  font-variant: normal !important;
}
