:root {
  --bg: #0b0a10;
  --card: rgba(22, 18, 31, 0.9);
  --card-soft: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --green: #8b5cf6;
  --green-dark: #6d43e6;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 20% 78%, rgba(124, 95, 255, 0.12), transparent 24%),
    radial-gradient(circle at 86% 24%, rgba(117, 75, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #111019 0%, #08070c 100%);
}

.cabinet-page {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(12, 10, 16, 0.74), rgba(12, 10, 16, 0.82));
}

.cabinet-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(2, 6, 12, 0.52), rgba(2, 6, 12, 0.84)),
    url("../img/profile-bg.jpg") center center / cover no-repeat;
  filter: saturate(0.35) brightness(0.38) contrast(0.9);
  transform: scale(1.05);
  pointer-events: none;
}

.cabinet-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 18%, rgba(34, 74, 115, 0.14), transparent 30%),
    radial-gradient(circle at 70% 68%, rgba(80, 44, 118, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.18), rgba(2, 5, 12, 0.64));
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

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

.page-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(122, 61, 255, 0.25);
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}

.page-glow-left {
  left: -120px;
  bottom: 120px;
}

.page-glow-right {
  right: -140px;
  top: 420px;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 34px 0 80px;
  background: url("../img/bg2.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 48% 48%, rgba(7, 7, 11, 0.5) 0%, rgba(7, 7, 11, 0.28) 30%, transparent 58%),
    linear-gradient(180deg, rgba(6, 6, 8, 0.34) 0%, rgba(7, 7, 11, 0.34) 48%, rgba(7, 7, 11, 0.52) 100%),
    linear-gradient(90deg, rgba(7, 7, 11, 0.2) 0%, rgba(7, 7, 11, 0.16) 46%, rgba(7, 7, 11, 0.3) 100%);
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.subpage-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 24px 0 10px;
  background: linear-gradient(180deg, rgba(9, 8, 13, 0.88), rgba(9, 8, 13, 0));
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 10px 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.site-nav.scrolled {
  background: rgba(22, 19, 28, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-mark {
  color: var(--green);
  font-family: "Unbounded", sans-serif;
  font-size: 1.95rem;
  line-height: 1;
}

.nav-links,
.nav-actions,
.hero-actions,
.news-meta,
.footer-inner {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 28px;
  margin-right: auto;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links .nav-active,
.news-meta a:hover {
  color: var(--green);
}

.nav-links a:hover,
.news-meta a:hover {
  transform: translateY(-1px);
}

.nav-actions {
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-4px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #9d7cff 0%, #7457f2 100%);
  box-shadow: 0 16px 36px rgba(119, 92, 246, 0.32);
}

.button-dark {
  color: #fff;
  background: rgba(12, 12, 15, 0.92);
}

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.button-large {
  min-height: 58px;
  padding: 0 30px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 130px);
  padding-top: 44px;
}

.hero-copy {
  width: min(820px, 100%);
  transform: translateX(-80px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.title-center h2,
.download-copy h2,
.subpage-hero-title h1 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: 7.2rem;
  line-height: 0.95;
  white-space: nowrap;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.46);
}

.hero-text {
  max-width: 510px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-heading,
.title-center {
  margin-bottom: 38px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.section-heading-compact {
  display: block;
}

.section-heading h2,
.title-center h2,
.download-copy h2 {
  font-size: 3.2rem;
  line-height: 0.98;
}

.section-heading p,
.title-center p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.section-icon svg {
  width: 22px;
  height: 22px;
}

.title-center {
  text-align: center;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.feature-row-reverse {
  grid-template-columns: minmax(280px, 0.94fr) minmax(0, 1.06fr);
}

.feature-card,
.news-card,
.role-card,
.step-card,
.download-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.news-card:hover,
.role-card:hover,
.step-card:hover,
.download-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.feature-card {
  padding: 24px;
  border-radius: 32px;
}

.feature-media,
.feature-media-wide {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.feature-media img,
.feature-media-wide img {
  height: 100%;
  aspect-ratio: 1.72 / 1;
  object-fit: cover;
}

.feature-copy h3 {
  margin: 10px 0;
  font-size: 3rem;
  line-height: 1.08;
}

.feature-copy p,
.role-copy p,
.step-card p,
.download-copy p,
.footer p,
.news-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #cfb8ff;
  background: rgba(139, 92, 246, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
}

.roles-section {
  padding-top: 64px;
}

.roles-grid,
.steps-grid,
.news-grid {
  display: grid;
  gap: 28px;
}

.roles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-card {
  overflow: hidden;
  padding: 24px;
  border-radius: 32px;
}

.role-card img {
  margin-top: 20px;
  border-radius: 24px;
  aspect-ratio: 1.07 / 1;
  object-fit: cover;
}

.role-card-right .role-copy {
  text-align: right;
}

.role-copy h3,
.step-card h3,
.news-body h3 {
  margin: 10px 0;
  font-size: 1.65rem;
  line-height: 1.1;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
  padding: 28px;
  border-radius: 26px;
}

.step-card:hover,
.role-card:hover,
.download-card:hover,
.news-card:hover {
  transform: translateY(-4px);
}

.step-number {
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(139, 92, 246, 0.92);
  font-family: "Unbounded", sans-serif;
  font-size: 2rem;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  gap: 34px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 18% 28%, rgba(139, 92, 246, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(38, 28, 57, 0.9), rgba(17, 15, 23, 0.98));
  box-shadow: var(--shadow);
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 214px;
  gap: 14px;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.download-card > * {
  position: relative;
  z-index: 1;
}

.download-kicker,
.download-card span {
  color: var(--muted);
}

.download-kicker {
  color: #cfb8ff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.download-card strong {
  font-family: "Unbounded", sans-serif;
  font-size: 1.55rem;
  line-height: 1.08;
}

.download-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #9d7cff 0%, #7457f2 100%);
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(119, 92, 246, 0.22);
}

.telegram-panel {
  display: grid;
  justify-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 38px 32px 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at 22% 10%, rgba(139, 92, 246, 0.18), transparent 34%),
    radial-gradient(circle at 82% 30%, rgba(122, 61, 255, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(34, 24, 55, 0.94), rgba(13, 10, 20, 0.98));
  text-align: center;
  box-shadow: var(--shadow);
}

.telegram-panel h2 {
  width: min(1040px, 100%);
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 2.45rem;
  line-height: 1.08;
  text-transform: uppercase;
}

.telegram-visual {
  position: relative;
  width: min(1120px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #120d1c;
  aspect-ratio: 1983 / 793;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.telegram-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.telegram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(520px, 100%);
  min-height: 64px;
  padding: 0 30px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, #9d7cff 0%, #7457f2 100%);
  font-family: "Unbounded", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.telegram-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(119, 92, 246, 0.32);
}

.telegram-panel p {
  margin: -10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.15rem;
}

.subpage-main {
  min-height: 70vh;
}

.subpage-hero-section {
  padding: 72px 0 52px;
}

.subpage-hero-title {
  text-align: center;
}

.subpage-hero-title h1 {
  font-size: 4.8rem;
  line-height: 1;
  text-transform: uppercase;
}

.subpage-hero-title p {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.text-green {
  color: var(--green);
}

.hidden {
  display: none !important;
}

.button:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-grid-single {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.news-card {
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(35, 26, 58, 0.85), rgba(19, 16, 27, 0.94));
}

.news-image img {
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
}

.news-body {
  display: grid;
  gap: 18px;
  padding: 24px 26px 28px;
}

.news-date {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-meta {
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}

.news-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 34px;
  text-align: center;
}

.news-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.05rem;
  font-weight: 800;
}

.news-empty span {
  color: rgba(207, 184, 255, 0.72);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.account-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 64px 32px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  text-align: center;
}

.account-lock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: var(--green);
  background: rgba(139, 92, 246, 0.1);
}

.account-lock-icon svg {
  width: 38px;
  height: 38px;
}

.account-placeholder h3 {
  margin: 0;
  color: var(--muted);
  font-family: "Unbounded", sans-serif;
  font-size: 2rem;
}

.account-placeholder p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.account-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.account-login,
.account-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.account-login {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.account-login h2,
.account-profile h2 {
  margin: 12px 0 6px;
  font-family: "Unbounded", sans-serif;
  font-size: 1.35rem;
}

.account-login p,
.account-profile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.account-field {
  display: grid;
  gap: 8px;
}

.account-field span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.account-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.account-field input:focus {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.account-message {
  min-height: 22px;
  margin: 0;
  color: #cfb8ff;
  font-size: 0.9rem;
}

.account-message.is-error {
  color: #ff8888;
}

.account-panel {
  min-height: 100%;
  padding: 28px;
}

.account-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 430px;
  text-align: center;
}

.account-panel-empty h3 {
  margin: 0;
  color: var(--muted);
  font-family: "Unbounded", sans-serif;
  font-size: 2rem;
}

.account-panel-empty p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.account-profile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.account-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 900;
}

.account-status.is-online {
  color: #cfb8ff;
  background: rgba(139, 92, 246, 0.14);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.account-stats article,
.account-info-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.account-stats article {
  padding: 18px;
}

.account-stats span,
.account-info-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  font-weight: 800;
}

.account-stats strong {
  font-family: "Unbounded", sans-serif;
  font-size: 1.35rem;
}

.account-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.account-info-card {
  padding: 16px;
}

.account-info-card b {
  font-size: 1rem;
}

.account-enter-section {
  padding-bottom: 96px;
}

.account-login-center {
  width: min(420px, 100%);
  margin: 42px auto 0;
}

.profile-page {
  min-height: 100vh;
  color: #fff;
  background: #111;
}

.profile-page .page-glow {
  display: none;
}

.profile-shell {
  width: min(calc(100% - 64px), 1400px);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.profile-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 58px;
}

.profile-top h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.profile-top strong {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.profile-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.06);
  font-family: "Unbounded", sans-serif;
  font-size: 1.8rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-left {
  display: grid;
  gap: 24px;
}

.profile-menu,
.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.015);
}

.profile-menu {
  display: grid;
  gap: 9px;
  padding: 24px 32px;
}

.profile-menu button {
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.46);
  background: transparent;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.profile-menu button:hover,
.profile-menu button.is-active {
  color: #fff;
}

.profile-menu button:hover {
  transform: translateX(3px);
}

.profile-shop {
  position: relative;
  display: grid;
  gap: 24px;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffbe00, #ff8a00);
}

.profile-shop::after {
  content: "$";
  position: absolute;
  right: -2px;
  top: -10px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
}

.profile-shop span {
  position: relative;
  z-index: 1;
  max-width: 250px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
}

.profile-shop b {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  color: #ff9a00;
  background: #fff;
  font-size: 1rem;
}

.profile-content {
  display: grid;
  gap: 24px;
}

.profile-tab {
  display: grid;
  gap: 24px;
}

.profile-card {
  padding: 28px;
}

.profile-card h2,
.profile-card h3 {
  margin: 0 0 22px;
  font-size: 2rem;
  line-height: 1.08;
}

.profile-card-wide {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 202px;
}

.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.38), transparent 30%),
    linear-gradient(160deg, #2a2a2a, #171717);
}

.profile-avatar::before {
  content: "";
  width: 54px;
  height: 94px;
  border-radius: 26px 26px 10px 10px;
  background: linear-gradient(180deg, #7377ff, #2d315d);
  box-shadow: 0 -24px 0 -12px #d8b18f;
}

.profile-avatar span {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffca22, #ff8b00);
  font-weight: 900;
}

.profile-avatar b {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.profile-avatar-small {
  width: 88px;
  height: 88px;
}

.profile-avatar-small::before {
  width: 34px;
  height: 58px;
  box-shadow: 0 -15px 0 -8px #d8b18f;
}

.profile-name-row,
.profile-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-mini-head {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.profile-main-info h2,
.profile-mini-head h2 {
  margin: 0;
  font-size: 1.8rem;
}

.profile-main-info p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  font-weight: 800;
}

.profile-pills {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #111;
  background: #fff;
  font-weight: 900;
}

.profile-pills span:nth-child(2),
.profile-pills-inline span:nth-child(3) {
  color: #fff;
  background: #242424;
}

.profile-pills-inline {
  margin-top: 8px;
}

.profile-pills-inline span:first-child {
  color: #fff;
  background: linear-gradient(135deg, #ffca22, #ff8b00);
}

.profile-bars {
  display: grid;
  gap: 12px;
  max-width: 380px;
  margin-top: 30px;
}

.profile-bars > div {
  display: grid;
  grid-template-columns: 90px minmax(120px, 1fr) 72px;
  align-items: center;
  gap: 16px;
}

.profile-bars span,
.profile-bars b,
.profile-list dt,
.profile-muted,
.skill-row span {
  color: rgba(255, 255, 255, 0.48);
  font-weight: 800;
}

.profile-bar {
  height: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #242424;
}

.profile-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.profile-bar-red i {
  background: repeating-linear-gradient(110deg, #f10035 0 24px, #d80031 24px 48px);
}

.profile-bar-orange i {
  background: repeating-linear-gradient(110deg, #f1a600 0 24px, #d98c00 24px 48px);
}

.profile-logout,
.profile-small-btn {
  border: 0;
  color: #fff;
  background: #4a4a4a;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.profile-logout {
  min-width: 106px;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.profile-small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 24px;
  padding: 0 24px;
  border-radius: 999px;
}

.profile-card-grid,
.profile-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.profile-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.profile-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr);
  gap: 16px;
}

.profile-list dd {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  word-break: break-word;
}

.profile-list-large div {
  grid-template-columns: 150px minmax(0, 1fr);
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-row:first-of-type {
  padding-top: 0;
}

.skill-row div {
  display: grid;
  gap: 4px;
}

.skill-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.52);
  font-size: 1.8rem;
  font-style: italic;
}

.profile-empty-small {
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.profile-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.profile-table span {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 900;
}

.profile-table b {
  font-size: 1.05rem;
}

.footer {
  padding: 0 0 42px;
}

.footer-inner {
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer strong {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
}

.footer-dev {
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.footer-dev a {
  color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 1120px) {
  .feature-row,
  .feature-row-reverse,
  .download-panel,
  .roles-grid,
  .news-grid,
  .profile-layout,
  .profile-card-wide {
    grid-template-columns: 1fr;
  }

  .profile-top {
    grid-template-columns: auto 1fr;
  }

  .profile-top strong {
    grid-column: 2;
  }

  .profile-left {
    grid-template-columns: 1fr;
  }

  .profile-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-logout {
    width: fit-content;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy {
    transform: translateX(-36px);
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 5.4rem;
    white-space: normal;
  }

  .section-heading h2,
  .title-center h2,
  .download-copy h2 {
    font-size: 2.7rem;
  }

  .feature-copy h3 {
    font-size: 2.45rem;
  }
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px;
  }

  .brand {
    padding-right: 0;
    border-right: 0;
  }

  .nav-links {
    order: 3;
    justify-content: center;
    width: 100%;
    margin-right: 0;
    flex-wrap: wrap;
    gap: 16px 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    justify-content: flex-start;
    min-height: auto;
    padding-top: 40px;
  }

  .hero-copy {
    transform: none;
  }

  .hero-copy h1 {
    font-size: 4.15rem;
  }

  .download-actions,
  .roles-grid,
  .account-layout,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .role-card-right .role-copy {
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-shell {
    width: min(calc(100% - 32px), 1400px);
    padding-top: 28px;
  }

  .profile-top {
    margin-bottom: 34px;
  }

  .profile-card-grid,
  .profile-two-columns {
    grid-template-columns: 1fr;
  }

  .profile-menu {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-copy h1 {
    font-size: 3.15rem;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .section-heading h2,
  .title-center h2,
  .download-copy h2,
  .subpage-hero-title h1 {
    font-size: 2.05rem;
  }

  .button,
  .button-large {
    width: 100%;
  }

  .hero-actions,
  .nav-actions {
    width: 100%;
    flex-direction: column;
  }

  .download-panel,
  .news-card,
  .role-card {
    border-radius: 26px;
  }

  .download-panel,
  .account-placeholder {
    padding: 24px;
  }

  .account-login,
  .account-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .profile-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-top strong {
    grid-column: auto;
  }

  .profile-card {
    padding: 22px;
    border-radius: 24px;
  }

  .profile-card-wide {
    gap: 18px;
  }

  .profile-name-row,
  .profile-mini-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
  }

  .profile-avatar-small {
    width: 88px;
    height: 88px;
  }

  .profile-bars > div,
  .profile-list div,
  .profile-list-large div,
  .profile-table {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .profile-shop span {
    font-size: 1.55rem;
  }

  .account-profile {
    flex-direction: column;
  }

  .account-stats,
  .account-info-grid {
    grid-template-columns: 1fr;
  }

  .telegram-panel {
    padding: 30px 14px 28px;
    border-radius: 24px;
  }

  .telegram-panel h2 {
    font-size: 1.65rem;
  }

  .telegram-button {
    min-height: 58px;
    font-size: 1.05rem;
  }

  .feature-copy h3,
  .news-body h3 {
    font-size: 1.5rem;
  }
}

/* Profile page refresh */
.profile-shell-clean {
  width: min(calc(100% - 40px), 1120px);
}

.profile-top-clean {
  grid-template-columns: 1fr auto;
  margin-bottom: 34px;
}

.profile-title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-top-clean h1 {
  letter-spacing: -0.06em;
}

.profile-top-clean strong {
  color: rgba(255, 255, 255, 0.92);
}

.profile-content-clean {
  max-width: none;
}

.profile-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.profile-card-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 210px;
}

.profile-avatar-human {
  width: 132px;
  height: 132px;
  color: var(--green);
  background:
    radial-gradient(circle at 62% 22%, rgba(139, 92, 246, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.profile-avatar-human::before,
.profile-avatar-human span {
  display: none;
}

.profile-avatar-human svg {
  width: 74px;
  height: 74px;
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.35));
}

.profile-avatar-human b {
  color: rgba(255, 255, 255, 0.5);
}

.profile-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 14px;
  margin-top: 28px;
}

.profile-money-grid div {
  padding: 16px 18px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.06);
}

.profile-money-grid span,
.profile-car-item span,
.profile-car-item small {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 800;
}

.profile-money-grid b {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
}

.profile-card-grid-clean {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.profile-cars {
  display: grid;
  gap: 12px;
}

.profile-car-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-car-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 58px;
  border-radius: 14px;
  color: var(--green);
  background: rgba(139, 92, 246, 0.08);
}

.profile-car-icon svg {
  width: 56px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-car-item b {
  display: block;
  margin-bottom: 3px;
  font-size: 1.08rem;
}

.profile-car-item small {
  margin-top: 5px;
  font-size: 0.85rem;
}

.profile-more-btn {
  min-height: 50px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: 16px;
  color: #cfb8ff;
  background: rgba(139, 92, 246, 0.08);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.profile-more-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.14);
}

.profile-pills span:nth-child(2) {
  color: #cfb8ff;
  background: rgba(139, 92, 246, 0.13);
}

.profile-logout {
  color: #fff;
  background: rgba(12, 12, 15, 0.94);
}

@media (max-width: 860px) {
  .profile-top-clean,
  .profile-card-hero,
  .profile-card-grid-clean {
    grid-template-columns: 1fr;
  }

  .profile-money-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .profile-shell-clean {
    width: min(calc(100% - 28px), 1120px);
  }

  .profile-title-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-car-item {
    grid-template-columns: 1fr;
  }
}

/* calmer profile palette */
.profile-page {
  background:
    radial-gradient(circle at 16% 18%, rgba(124, 95, 255, 0.1), transparent 24%),
    radial-gradient(circle at 86% 22%, rgba(117, 75, 255, 0.14), transparent 25%),
    linear-gradient(180deg, #111019 0%, #08070c 100%);
}

.profile-card {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 88% 0%, rgba(139, 92, 246, 0.045), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.026));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.profile-card-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.075), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028));
}

.profile-avatar-human,
.profile-car-icon,
.profile-money-grid div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.profile-avatar-human svg,
.profile-car-icon svg {
  filter: none;
}

.profile-money-grid div {
  border-radius: 16px;
}

.profile-car-item {
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-car-icon {
  width: 64px;
  height: 54px;
  border-radius: 14px;
  color: rgba(139, 92, 246, 0.86);
}

.profile-car-icon svg {
  width: 46px;
  height: 34px;
  stroke-width: 4.5;
}

.profile-car-copy b {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.profile-car-copy span,
.profile-car-copy small {
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.55;
}

.profile-more-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.profile-more-btn:hover {
  border-color: rgba(139, 92, 246, 0.34);
  background: rgba(139, 92, 246, 0.1);
}

.profile-pills span:nth-child(2) {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
}

/* split cabinet layout like profile reference */
.cabinet-shell-split {
  width: min(calc(100% - 40px), 1100px);
}

.cabinet-split-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.cabinet-column {
  display: grid;
  gap: 24px;
}

.cabinet-character-card {
  padding: 28px;
}

.cabinet-character-head {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cabinet-character-card .cabinet-avatar {
  width: 100px;
  height: 100px;
}

.cabinet-character-card .cabinet-avatar svg {
  width: 58px;
  height: 58px;
}

.cabinet-character-card h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
}

.cabinet-pills-inline {
  margin-top: 10px;
}

.cabinet-health-wide {
  grid-template-columns: minmax(0, 1fr) 72px;
  width: 100%;
  margin: 18px 0;
}

.cabinet-list-character {
  gap: 13px;
}

.cabinet-list-character div {
  grid-template-columns: 150px minmax(0, 1fr);
}

.cabinet-list-character dd,
.cabinet-list dd {
  font-size: 1.05rem;
}

.cabinet-logout-soft {
  min-width: 150px;
  margin-top: 26px;
  padding: 0 24px;
  border-radius: 14px;
}

.cabinet-logout-nav {
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.16);
}

.cabinet-cars-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cabinet-cars-compact .cabinet-car {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.cabinet-cars-compact .cabinet-car-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: rgba(139, 92, 246, 0.84);
  background: rgba(139, 92, 246, 0.08);
}

.cabinet-cars-compact .cabinet-car-icon svg {
  width: 30px;
  height: 22px;
}

.cabinet-cars-compact .cabinet-car-copy b {
  font-size: 0.88rem;
  line-height: 1.2;
}

.cabinet-cars-compact .cabinet-car-copy span,
.cabinet-cars-compact .cabinet-car-copy small {
  font-size: 0.75rem;
}

.cabinet-cars-compact .cabinet-more,
.cabinet-cars-compact .cabinet-empty {
  grid-column: 1 / -1;
}

@media (max-width: 940px) {
  .cabinet-split-grid,
  .cabinet-cars-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .cabinet-character-head,
  .cabinet-list-character div {
    grid-template-columns: 1fr;
  }
}

/* clean cabinet layout, isolated from old profile styles */
.cabinet-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #fff;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(124, 95, 255, 0.1), transparent 24%),
    radial-gradient(circle at 86% 20%, rgba(117, 75, 255, 0.16), transparent 26%),
    linear-gradient(180deg, #111019 0%, #08070c 100%);
}

.cabinet-shell {
  width: min(calc(100% - 40px), 1100px);
  margin: 0 auto;
  padding: 28px 0 70px;
}

.cabinet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.cabinet-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cabinet-title h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.cabinet-top strong {
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
}

.cabinet-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.06);
  font-family: "Unbounded", sans-serif;
  font-size: 1.8rem;
  text-decoration: none;
}

.cabinet-hero,
.cabinet-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 0%, rgba(139, 92, 246, 0.05), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.cabinet-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 116px;
  gap: 26px;
  align-items: center;
  padding: 26px;
  margin-bottom: 22px;
}

.cabinet-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.045);
}

.cabinet-avatar svg {
  width: 70px;
  height: 70px;
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cabinet-avatar span {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 900;
}

.cabinet-hero-main {
  display: grid;
  gap: 20px;
}

.cabinet-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.cabinet-hero h2 {
  margin: 0;
  font-size: 1.95rem;
  line-height: 1.1;
}

.cabinet-health {
  display: grid;
  grid-template-columns: minmax(210px, 320px) 74px;
  gap: 14px;
  align-items: center;
  margin-top: 13px;
}

.cabinet-health-track {
  height: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.cabinet-health-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(110deg, #f00635 0 22px, #c9002c 22px 44px);
}

.cabinet-health b {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  line-height: 1.1;
}

.cabinet-pills {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cabinet-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.cabinet-pills span:first-child {
  color: #111;
  background: #fff;
}

.cabinet-money {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 14px;
}

.cabinet-money div {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.cabinet-money span,
.cabinet-list dt,
.cabinet-car-copy span,
.cabinet-car-copy small,
.cabinet-skill span {
  color: rgba(255, 255, 255, 0.54);
  font-weight: 800;
}

.cabinet-money b {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}

.cabinet-logout {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #fff;
  background: rgba(9, 9, 12, 0.94);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.cabinet-stack {
  display: grid;
  gap: 22px;
}

.cabinet-card {
  padding: 24px;
}

.cabinet-card h3 {
  margin: 0 0 18px;
  font-size: 1.85rem;
  line-height: 1.1;
}

.cabinet-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.cabinet-list div {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 14px;
}

.cabinet-list dd {
  margin: 0;
  color: #fff;
  font-weight: 900;
  word-break: break-word;
}

.cabinet-cars {
  display: grid;
  gap: 12px;
}

.cabinet-car {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.cabinet-car-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  color: rgba(139, 92, 246, 0.86);
  background: rgba(255, 255, 255, 0.04);
}

.cabinet-car-icon svg {
  width: 44px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cabinet-car-copy b,
.cabinet-skill b {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.cabinet-car-copy small {
  display: block;
  margin-top: 4px;
}

.cabinet-more {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cabinet-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.035);
}

.cabinet-skills-card {
  margin-top: 0;
}

.cabinet-skills {
  display: grid;
  gap: 0;
}

.cabinet-skill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cabinet-skill:first-child {
  padding-top: 0;
}

.cabinet-skill strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.035);
  font-size: 1.45rem;
  font-style: italic;
}

.cabinet-skills .cabinet-more {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .cabinet-top,
  .cabinet-hero,
  .cabinet-hero-head,
  .cabinet-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-top {
    display: grid;
  }

  .cabinet-money,
  .cabinet-health {
    grid-template-columns: 1fr;
  }

  .cabinet-logout {
    width: fit-content;
  }
}

@media (max-width: 580px) {
  .cabinet-shell {
    width: min(calc(100% - 28px), 1100px);
    padding-top: 28px;
  }

  .cabinet-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .cabinet-car,
  .cabinet-list div {
    grid-template-columns: 1fr;
  }
}

/* dashboard composition override */
.profile-shell-clean {
  width: min(calc(100% - 40px), 1100px);
}

.profile-content-clean {
  display: grid;
  gap: 20px;
}

.profile-card-hero {
  grid-template-columns: 112px minmax(0, 1fr) 128px;
  min-height: 176px;
  padding: 24px;
}

.profile-avatar-human {
  width: 112px;
  height: 112px;
}

.profile-name-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.profile-money-grid {
  grid-template-columns: repeat(2, minmax(0, 220px));
}

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: 20px;
  align-items: start;
}

.profile-card-transport {
  min-height: 100%;
}

.profile-side-stack {
  display: grid;
  gap: 20px;
}

.profile-side-stack .profile-card {
  padding: 24px;
}

.profile-side-stack .profile-card h3 {
  font-size: 1.6rem;
}

.profile-side-stack .profile-list div {
  grid-template-columns: 126px minmax(0, 1fr);
}

.profile-content-clean > .profile-card:not(.profile-card-hero) {
  grid-column: auto;
}

@media (max-width: 900px) {
  .profile-dashboard-grid,
  .profile-card-hero,
  .profile-name-row {
    grid-template-columns: 1fr;
  }

  .profile-money-grid {
    grid-template-columns: 1fr;
  }
}

/* final profile alignment */
.profile-shell-clean {
  width: min(calc(100% - 40px), 1180px);
}

.profile-top-clean {
  margin-bottom: 28px;
}

.profile-card-hero {
  grid-template-columns: 120px minmax(0, 1fr) auto;
  padding: 28px;
  gap: 28px;
}

.profile-avatar-human {
  width: 120px;
  height: 120px;
}

.profile-main-info {
  display: grid;
  gap: 18px;
}

.profile-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
}

.profile-main-info h2 {
  font-size: 1.9rem;
}

.profile-health {
  grid-template-columns: minmax(220px, 320px) 72px;
  width: fit-content;
  margin-top: 10px;
}

.profile-health-bar {
  height: 17px;
}

.profile-money-grid {
  grid-template-columns: repeat(2, minmax(190px, 230px));
  margin-top: 0;
}

.profile-logout {
  align-self: center;
}

.profile-content-clean {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.profile-content-clean > .profile-card-hero {
  grid-column: 1 / -1;
}

.profile-content-clean > .profile-card-grid-clean {
  display: contents;
}

.profile-content-clean > .profile-card-grid-clean > .profile-card {
  grid-column: span 6;
}

.profile-content-clean > .profile-card {
  grid-column: 1 / -1;
}

.profile-card {
  min-height: 0;
}

.profile-list div,
.profile-list-large div {
  grid-template-columns: 130px minmax(0, 1fr);
}

.profile-skills {
  grid-template-columns: 1fr;
}

@media (max-width: 860px) {
  .profile-content-clean,
  .profile-card-hero,
  .profile-name-row {
    grid-template-columns: 1fr;
  }

  .profile-content-clean > .profile-card-grid-clean > .profile-card,
  .profile-content-clean > .profile-card {
    grid-column: 1;
  }

  .profile-health,
  .profile-money-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

.profile-skills {
  display: grid;
  gap: 0;
}

.profile-skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-skill-row:first-child {
  padding-top: 0;
}

.profile-skill-row b,
.profile-skill-row span {
  display: block;
}

.profile-skill-row b {
  margin-bottom: 4px;
  color: #fff;
  font-size: 1.05rem;
}

.profile-skill-row span {
  color: rgba(255, 255, 255, 0.44);
  font-weight: 800;
}

.profile-skill-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.035);
  font-size: 1.55rem;
  font-style: italic;
}

.profile-skills .profile-more-btn {
  margin-top: 18px;
}

/* profile layout tune */
.profile-shell-clean {
  width: min(calc(100% - 40px), 1040px);
}

.profile-content-clean {
  gap: 22px;
}

.profile-card-grid-clean {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.profile-card-hero {
  grid-template-columns: 124px minmax(0, 1fr) 116px;
  gap: 24px;
  min-height: 188px;
  padding: 24px;
}

.profile-avatar-human {
  width: 124px;
  height: 124px;
}

.profile-name-row {
  align-items: flex-start;
}

.profile-money-grid {
  grid-template-columns: repeat(2, minmax(0, 210px));
  margin-top: 22px;
}

.profile-health {
  display: grid;
  grid-template-columns: minmax(190px, 270px) 72px;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.profile-health b {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.86rem;
  font-weight: 900;
}

.profile-health-bar {
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-health-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(110deg, #f00635 0 22px, #c9002c 22px 44px);
}

.profile-logout {
  justify-self: end;
  align-self: center;
}

.profile-card h3 {
  margin-bottom: 18px;
}

.profile-card {
  height: fit-content;
}

.profile-list {
  gap: 12px;
}

.profile-list div,
.profile-list-large div {
  grid-template-columns: 145px minmax(0, 1fr);
}

.profile-card:has(.profile-skills) {
  margin-top: 2px;
}

@media (max-width: 860px) {
  .profile-shell-clean {
    width: min(calc(100% - 32px), 1040px);
  }

  .profile-card-hero,
  .profile-card-grid-clean {
    grid-template-columns: 1fr;
  }

  .profile-logout {
    justify-self: start;
  }
}

@media (max-width: 580px) {
  .profile-health,
  .profile-list div,
  .profile-list-large div {
    grid-template-columns: 1fr;
  }
}

/* Final cabinet overrides: keep profile rows readable after older profile rules. */
.cabinet-list div,
.cabinet-list-character div {
  grid-template-columns: minmax(168px, 0.72fr) minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}

.cabinet-list dt,
.cabinet-list dd {
  min-width: 0;
}

.cabinet-list dd {
  overflow-wrap: anywhere;
}

@media (max-width: 580px) {
  .cabinet-list div,
  .cabinet-list-character div {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
}

/* ============================================================
   PROFILE PAGE — NEW LAYOUT
   ============================================================ */

.prof-shell {
  width: min(calc(100% - 40px), 1200px);
  margin: 0 auto;
  padding: 28px 0 80px;
}

/* Hero banner */
.prof-hero {
  margin-bottom: 24px;
  padding: 32px 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 50%, rgba(139, 92, 246, 0.06), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(122, 61, 255, 0.08), transparent 40%),
    linear-gradient(160deg, rgba(9, 12, 18, 0.96) 0%, rgba(13, 17, 24, 0.94) 100%);
  box-shadow: 0 24px 64px rgba(0,0,0,0.36);
}

.prof-hero-inner {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 28px;
}

.prof-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: var(--green);
  background:
    radial-gradient(circle at 55% 20%, rgba(139,92,246,0.22), transparent 50%),
    rgba(255,255,255,0.05);
}

.prof-avatar svg {
  width: 56px;
  height: 56px;
}

.prof-avatar span {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  font-weight: 700;
}

.prof-hero-info h1 {
  margin: 0 0 10px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.prof-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.prof-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.1);
  font-size: 0.82rem;
  font-weight: 900;
}

.prof-badge-lvl {
  color: #111;
  background: #fff;
}

.prof-badge-vip {
  color: #111;
  background: linear-gradient(135deg, #ffe033, #ff9500);
}

.prof-health-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
}

.prof-health-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.prof-health-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f03030, #e01010);
  transition: width 0.4s ease;
}

.prof-health-row span {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.prof-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 6px 20px;
  margin: 0;
  padding: 20px 28px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.prof-hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.prof-hero-stats dt {
  color: rgba(255,255,255,0.42);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prof-hero-stats dd {
  margin: 0;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
}

/* Content grid */
.prof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.prof-col-left,
.prof-col-mid,
.prof-col-right {
  display: flex;
  flex-direction: column;
}

/* Высоту ряда задаёт только карточка «Персонаж» (заканчивается после «Ранг семьи»);
   навыки и транспорт подстраиваются под эту высоту и прокручиваются внутри */
.prof-col-mid,
.prof-col-right {
  position: relative;
}

.prof-col-mid .prof-card,
.prof-col-right .prof-card {
  position: absolute;
  inset: 0;
}

.prof-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(139,92,246,0.04), transparent 26%),
    linear-gradient(180deg, rgba(8, 11, 18, 0.96), rgba(10, 13, 20, 0.96));
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}

.prof-card-fill {
  box-sizing: border-box;
  overflow: hidden;
}

.prof-card-title {
  margin: 0 0 18px;
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Список полей */
.prof-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.prof-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.prof-list div:last-child {
  margin-bottom: 8px;
  border-bottom: none;
  padding-bottom: 0;
}

.prof-list dt {
  color: rgba(255,255,255,0.42);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.prof-list dd {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

/* Статистика — плиткой */
.prof-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prof-stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.prof-stat span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prof-stat strong {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

/* Навыки */
.prof-skills {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}

.prof-skill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(10, 14, 20, 0.88);
}

.prof-skill:first-child {
  padding-top: 0;
}

.prof-skill:last-of-type {
  border-bottom: none;
}

.prof-skill-info b {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.prof-skill-info span {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  font-weight: 700;
}

.prof-skill-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* Транспорт */
.prof-cars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.prof-cars::-webkit-scrollbar {
  display: none;
}

.prof-car {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(12, 16, 24, 0.96);
  transition: border-color 0.2s, background 0.2s;
}

.prof-car:hover {
  border-color: rgba(139,92,246,0.25);
  background: rgba(14, 18, 26, 0.98);
}

.prof-car-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--green);
  background: rgba(139,92,246,0.08);
  flex-shrink: 0;
}

.prof-car-icon svg {
  width: 32px;
  height: 22px;
}

.prof-car-info b {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prof-car-info span,
.prof-car-info small {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  font-weight: 700;
}

.prof-more {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding-top: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.prof-more:hover,
.prof-more:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
  outline: none;
}

.prof-more:active {
  background: rgba(255,255,255,0.12);
  transform: translateY(1px);
  color: #fff;
}

.prof-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(6px);
}

.prof-modal {
  width: min(560px, calc(100vw - 24px));
  max-height: min(80vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139,92,246,0.08), transparent 30%),
    linear-gradient(180deg, rgba(18, 17, 24, 0.96), rgba(15, 12, 20, 0.98));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.52);
}

.prof-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.prof-modal-title {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}

.prof-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.04);
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.prof-modal-close:hover,
.prof-modal-close:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  outline: none;
}

.prof-modal-body {
  max-height: min(70vh, 620px);
  overflow-y: auto;
  padding: 16px 18px 18px;
}

.prof-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prof-modal-skill {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.prof-modal-skill:last-child {
  border-bottom: none;
}

.prof-empty {
  display: grid;
  place-items: center;
  min-height: 80px;
  border-radius: 12px;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.03);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1100px) {
  .prof-grid {
    grid-template-columns: 240px 1fr 1fr;
  }
  .prof-grid-property {
    grid-template-columns: 1fr 1fr;
  }
  .prof-hero-inner {
    grid-template-columns: 88px 1fr auto;
  }
}

@media (max-width: 860px) {
  .prof-grid {
    grid-template-columns: 1fr 1fr;
  }
  .prof-grid-property {
    grid-template-columns: 1fr;
  }
  .prof-col-left {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
  .prof-hero-inner {
    grid-template-columns: 80px 1fr;
  }
  .prof-hero-stats {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .prof-grid {
    grid-template-columns: 1fr;
  }
  .prof-col-left {
    grid-template-columns: 1fr;
  }
  .prof-hero-inner {
    grid-template-columns: 72px 1fr;
    gap: 16px;
  }
  .prof-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prof-hero {
    padding: 22px 20px;
  }
  .prof-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Statbar inside hero */
.prof-hero-statbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 1px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prof-statbar-item {
  padding: 0 20px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.prof-statbar-item:nth-child(4n) {
  border-right: none;
  padding-right: 0;
}

.prof-grid-property {
  margin-top: 40px; /* Увеличено с 20px до 40px */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px; /* Добавлен отступ между колонками */
}

.prof-grid-property .prof-card {
  min-height: 180px;
}

.prof-property {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prof-statbar-item:last-child {
  border-right: none;
  padding-right: 0;
}

.prof-statbar-item span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.prof-statbar-item strong {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 860px) {
  .prof-hero-statbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .prof-statbar-item,
  .prof-statbar-item:nth-child(4n) {
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .prof-hero-statbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
