:root {
  --bg: #14121c;
  --card: #ffffff;
  --card-soft: rgba(255,255,255,0.76);
  --text: #221d2f;
  --muted: #6c6477;
  --accent: #7f3f98;
  --accent-soft: rgba(127,63,152,0.10);
  --dark-text: #f6f0ff;
  --dark-muted: #cbc1dc;
  --line: rgba(34,29,47,0.08);
  --shadow: 0 14px 26px rgba(27, 18, 39, 0.05);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Onest', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(127,63,152,0.26), transparent 24rem),
    linear-gradient(180deg, #13111a 0%, #191522 100%);
  color: var(--text);
}

a { color: inherit; }

.page {
  width: min(1220px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0 28px;
}

.layout {
  display: grid;
  gap: 14px;
}

.sidebar-shell { display: contents; }

.hero,
.main,
.footer-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero {
  order: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--dark-text);
  padding: 14px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.brand img {
  display: block;
  width: min(124px, 32vw);
  height: auto;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff0b9;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.92rem;
}

.top-feature,
.hub-card--icon {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.top-feature {
  margin-top: 12px;
  padding: 16px 20px 15px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.1);
}

.top-feature .icon-wrap,
.hub-card--icon .icon-wrap {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.05rem;
}

.hero .icon-wrap {
  background: rgba(255,255,255,0.12);
  color: #fff0b9;
}

.content-wrap {
  display: block;
  min-width: 0;
  width: 100%;
}

.hero .title { color: var(--dark-text); }
.hero .desc { color: var(--dark-muted); }

.main {
  order: 2;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,243,235,0.96));
  padding: 16px;
}

.priority-list,
.link-list,
.detail-list {
  display: grid;
  gap: 10px;
}

.hub-card--icon {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hub-card--icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7f3f98, #d29be8);
}

.hub-card--photo,
.hub-card--simple,
.hub-content-card,
.hub-note-card,
.hub-legend-card,
.hub-table-card {
  display: block;
  text-decoration: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--card-soft);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hub-card--simple {
  padding: 16px;
}

.thumb {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 12px;
  background: #ece7ef;
}

.thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.thumb--contain {
  background: linear-gradient(180deg, #ffffff, #f3f0f6);
}

.thumb--contain img {
  object-fit: contain;
  padding: 8px;
}

.top-feature:hover,
.hub-card--icon:hover,
.hub-card--photo:hover,
.hub-card--simple:hover {
  transform: translateY(-2px);
}

.title {
  display: block;
  font-size: 1rem;
  line-height: 1.34;
  font-weight: 800;
  color: var(--text);
}

.desc {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.58;
  color: var(--muted);
}

.hub-card--photo .title,
.hub-card--simple .title {
  font-size: 0.9rem;
}

.hub-card--photo .desc,
.hub-card--simple .desc {
  font-size: 0.8rem;
}

.section-heading {
  margin: 0 0 12px;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text);
}

.hub-intro {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.hub-content-card,
.hub-note-card,
.hub-legend-card,
.hub-table-card {
  padding: 16px;
}

.hub-content-card + .hub-content-card,
.hub-content-card + .hub-note-card,
.hub-note-card + .hub-content-card,
.hub-table-card + .hub-legend-card {
  margin-top: 12px;
}

.hub-content-card p,
.hub-note-card p,
.hub-legend-card p {
  margin: 0 0 10px;
  line-height: 1.7;
  color: var(--muted);
}

.hub-content-card p:last-child,
.hub-note-card p:last-child,
.hub-legend-card p:last-child {
  margin-bottom: 0;
}

.hub-content-card ul,
.hub-content-card ol,
.hub-note-card ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hub-content-card li,
.hub-note-card li {
  margin-bottom: 6px;
}

.hub-detail {
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hub-detail + .hub-detail {
  margin-top: 12px;
}

.hub-detail summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 18px 16px;
}

.hub-detail summary::-webkit-details-marker {
  display: none;
}

.hub-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hub-detail-copy {
  flex: 1;
}

.hub-detail-meta {
  min-width: 92px;
  text-align: right;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
}

.hub-detail-meta-wrap {
  min-width: 140px;
  text-align: right;
}

.hub-detail-meta-wrap .hub-detail-meta {
  min-width: 0;
}

.hub-summary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(127,63,152,0.12);
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
}

.hub-detail-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.hub-detail-hint i {
  font-size: 0.9rem;
}

.hub-detail[open] .hub-detail-hint i {
  transform: rotate(180deg);
}

.hub-detail-body {
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
}

.hub-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(127,63,152,0.12);
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.hub-compare {
  display: grid;
  gap: 10px;
}

.hub-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(86px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.hub-compare-row > div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hub-compare-row--head > div {
  background: rgba(127,63,152,0.12);
  font-weight: 800;
}

.hub-compare-row > div:nth-child(n + 2) {
  text-align: center;
}

.footer-panel {
  order: 3;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px 14px;
  color: var(--dark-text);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

.socials img {
  width: 21px;
  height: 21px;
}

.company {
  margin-top: 14px;
  color: var(--dark-muted);
  line-height: 1.55;
  text-align: center;
  font-size: 0.92rem;
}

.company a {
  color: #fff0b9;
  text-decoration: none;
  font-weight: 800;
}

.page-legal {
  margin: 16px auto 0;
  width: min(1220px, calc(100% - 24px));
  color: var(--dark-muted);
  text-align: center;
  font-size: 0.71rem;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .page { padding-top: 24px; }
  .layout { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
  .sidebar-shell { display: block; grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 20px; }
  .hero { padding: 18px 16px; border-radius: 30px 30px 0 0; border-bottom: 0; }
  .hero-row { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .brand img { width: 168px; }
  .main { grid-column: 2; grid-row: 1; padding: 18px; }
  .footer-panel { padding: 18px 16px; border-radius: 0 0 30px 30px; border-top: 0; }
}

@media (min-width: 1180px) {
  .rest-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rest-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
