/* 4ni52.org — style.css */

/* ── Variables ── */
:root {
  --bg: #0d0d0f;
  --surface: #16161a;
  --surface-2: #1e1e26;
  --border: #2c2c3a;
  --gold: #c8a96e;
  --gold-dim: rgba(200, 169, 110, 0.12);
  --gold-border: rgba(200, 169, 110, 0.28);
  --text: #e4e4ee;
  --muted: #7a7a90;
  --green: #3ecf8e;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --font: 'Work Sans', 'Noto Sans SC', system-ui, sans-serif;
}

[data-theme="light"] {
  --bg: #f4f4f7;
  --surface: #ffffff;
  --surface-2: #ebebef;
  --border: #dadadf;
  --text: #111118;
  --muted: #64647a;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Accessibility ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--gold); color: #000;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  z-index: 9999; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── Surface ── */
.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Helpers ── */
.muted { color: var(--muted); }

.section-kicker {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 0.5rem;
}

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5rem; gap: 1rem;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.4rem;
}
.section-head p { color: var(--muted); font-size: 0.95rem; max-width: 520px; }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 0.9rem;
}

/* ── Buttons ── */
.solid-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  background: var(--gold); color: #000;
  padding: 0.65rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.88rem; border: none; cursor: pointer;
  transition: opacity 0.18s;
  white-space: nowrap;
}
.solid-btn:hover { opacity: 0.82; }

.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  background: transparent; color: var(--text);
  padding: 0.65rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.88rem;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
  white-space: nowrap;
}
.ghost-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem; border-radius: 100px;
  background: var(--gold-dim); color: var(--gold);
  border: 1px solid var(--gold-border);
}

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(13, 13, 15, 0.9);
  backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] header { background: rgba(244, 244, 247, 0.9); }

.nav {
  display: flex; align-items: center; gap: 1rem; height: 64px;
}

.brand {
  display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0;
}
.brand-mark { width: 34px; height: 34px; color: var(--gold); }
.brand-text strong {
  display: block; font-size: 0.9rem; font-weight: 800;
  letter-spacing: 0.06em; color: var(--text);
}
.brand-text span {
  display: block; font-size: 0.64rem; color: var(--muted);
  letter-spacing: 0.07em; text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 0.15rem; margin-left: auto;
}
.nav-links a {
  font-size: 0.84rem; font-weight: 500; color: var(--muted);
  padding: 0.38rem 0.7rem; border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.theme-toggle {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); padding: 0.32rem 0.7rem;
  border-radius: var(--radius-sm); font-size: 0.78rem; cursor: pointer;
  transition: color 0.18s; font-family: inherit;
}
.theme-toggle:hover { color: var(--text); }

.header-cta {
  background: var(--gold); color: #000;
  padding: 0.38rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 700; transition: opacity 0.18s;
}
.header-cta:hover { opacity: 0.85; }

.menu-btn {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--text); padding: 0.38rem 0.6rem;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 1rem;
  line-height: 1;
}

/* ── Sections ── */
section { padding: 4.5rem 0; }

/* ── Hero ── */
.hero {
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% -5%, rgba(200, 169, 110, 0.1) 0%, transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 420px; gap: 3.5rem; align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.18;
  margin-bottom: 1rem;
}
.hero-copy h1 span { color: var(--gold); }
.hero-copy > p {
  color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem;
  max-width: 460px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-panel { padding: 1.75rem; }
.hero-panel h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; }
.mini-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-bottom: 1.25rem;
}
.mini-stat { text-align: center; padding: 0.75rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.mini-stat > span { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.25rem; }
.mini-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--gold); line-height: 1; }
.mini-stat small { display: block; font-size: 0.68rem; color: var(--muted); margin-top: 0.2rem; }
.hero-note {
  font-size: 0.84rem; color: var(--muted); line-height: 1.65;
  padding-top: 1rem; border-top: 1px solid var(--border);
}

/* ── Grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }

/* ── Generic Card ── */
.card { padding: 1.5rem; }
.card strong { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.card p { font-size: 0.88rem; color: var(--muted); }

/* ── District Card ── */
.district-card {
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.district-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.district-card em {
  font-style: normal; font-size: 0.68rem; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.district-card strong { font-size: 1.2rem; font-weight: 800; }
.district-card p { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.district-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.85rem; }

/* ── Service Card ── */
.service-card {
  padding: 1.5rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.service-icon {
  width: 46px; height: 46px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 800; color: var(--gold);
}
.service-card strong { font-size: 1rem; font-weight: 700; }
.service-card p { font-size: 0.83rem; color: var(--muted); }

/* ── Listing Grid ── */
.listing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.profile-card {
  padding: 0; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.profile-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.profile-media {
  width: 100%; aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--border) 100%);
  position: relative; overflow: hidden;
}
.profile-media img { width: 100%; height: 100%; object-fit: cover; }
.profile-media-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--border); font-size: 2rem;
}
.profile-card-body { padding: 1rem; }
.profile-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.75rem;
}
.profile-top h3 { font-size: 1rem; font-weight: 700; }
.profile-top p { font-size: 0.76rem; color: var(--muted); margin-top: 0.15rem; }
.badge-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.meta {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 0.85rem;
}
.profile-actions { display: flex; gap: 0.5rem; }
.profile-actions .solid-btn,
.profile-actions .ghost-btn {
  flex: 1; padding: 0.5rem; font-size: 0.78rem;
}

/* ── Entry / Domain Announcement ── */
.entry-announce {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center;
}
.entry-announce h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.75rem; }
.entry-announce > p.entry-note { color: var(--muted); font-size: 0.9rem; max-width: 560px; margin: 0 auto; }

.domain-list {
  display: flex; gap: 0.85rem; justify-content: center;
  flex-wrap: wrap; margin: 2rem 0;
}
.domain-pill {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 100px; padding: 0.55rem 1.35rem;
  font-size: 0.9rem; font-weight: 700; color: var(--gold);
  display: flex; align-items: center; gap: 0.6rem;
}
.domain-pill .dot {
  width: 7px; height: 7px; background: var(--green); border-radius: 50%;
  flex-shrink: 0;
}
.domain-pill small { font-weight: 400; color: var(--muted); font-size: 0.78rem; }

/* ── Feature / Panel ── */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.panel { padding: 2rem; }
.panel h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-item { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.stack-item:last-child { border-bottom: none; padding-bottom: 0; }
.stack-item strong { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.stack-item p { font-size: 0.86rem; color: var(--muted); }
.notice {
  margin-top: 1.5rem; padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  font-size: 0.86rem; line-height: 1.65;
}
.notice strong { color: var(--gold); }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 2rem; }
.faq-item { padding: 2rem; }
.faq-item h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }

.details { border-bottom: 1px solid var(--border); }
.details:first-of-type { border-top: 1px solid var(--border); }
.details summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; cursor: pointer; font-weight: 600; font-size: 0.92rem;
  list-style: none; gap: 1rem; color: var(--text);
}
.details summary::-webkit-details-marker { display: none; }
.details summary > span {
  color: var(--gold); font-size: 1.15rem; flex-shrink: 0;
  transition: transform 0.22s; font-weight: 300; line-height: 1;
}
.details[open] summary > span { transform: rotate(45deg); }
.details p { padding: 0 0 1.1rem; font-size: 0.88rem; color: var(--muted); line-height: 1.75; }

.info-list li {
  padding: 0.5rem 0; font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-list a { color: var(--muted); transition: color 0.18s; }
.info-list a:hover { color: var(--gold); }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-bottom: 2rem; }
.footer-card .section-kicker { margin-bottom: 0.75rem; }
.footer-card h2 { font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.footer-card ul li { margin-bottom: 0.55rem; }
.footer-card ul a { font-size: 0.84rem; color: var(--muted); transition: color 0.18s; }
.footer-card ul a:hover { color: var(--gold); }
.footer-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.75; }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  font-size: 0.78rem; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.footer-bottom a { color: var(--muted); transition: color 0.18s; }
.footer-bottom a:hover { color: var(--gold); }

/* ── List Page (Area / Category) ── */
.list-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(200,169,110,0.08) 0%, transparent 60%);
}
.list-hero .breadcrumb {
  font-size: 0.78rem; color: var(--muted); margin-bottom: 0.75rem;
}
.list-hero .breadcrumb a { color: var(--muted); transition: color 0.18s; }
.list-hero .breadcrumb a:hover { color: var(--gold); }
.list-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 0.6rem;
}
.list-hero h1 span { color: var(--gold); }
.list-hero p { color: var(--muted); font-size: 0.98rem; max-width: 540px; }
.list-hero .list-hero-meta {
  display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap;
}

.filter-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  padding: 1.5rem 0; border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem; align-items: center;
}
.filter-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-right: 0.25rem; }
.filter-chip {
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.32rem 0.85rem; border-radius: 100px;
  font-size: 0.8rem; cursor: pointer; color: var(--muted);
  transition: all 0.18s; font-family: inherit;
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--gold-dim); border-color: var(--gold); color: var(--gold);
}

/* ── Profile Detail Page ── */
.profile-page-hero {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; padding: 3.5rem 0;
  align-items: start;
}
.profile-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.gallery-main {
  grid-column: 1/-1; aspect-ratio: 4/3;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2);
}
.gallery-main-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--border); font-size: 3rem;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--border); font-size: 1.5rem;
}
.profile-detail { display: flex; flex-direction: column; gap: 1.5rem; }
.profile-detail .breadcrumb { font-size: 0.78rem; color: var(--muted); }
.profile-detail .breadcrumb a { color: var(--muted); transition: color 0.18s; }
.profile-detail .breadcrumb a:hover { color: var(--gold); }
.profile-detail h1 { font-size: 2.2rem; font-weight: 800; }
.profile-tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.price-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
.price-card h3 {
  font-size: 0.72rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.5rem; font-weight: 600;
}
.price-value { font-size: 2rem; font-weight: 800; color: var(--gold); }
.price-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }

.profile-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.profile-meta-item {
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}
.profile-meta-item .label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.profile-meta-item .value { font-size: 0.9rem; font-weight: 600; }

.contact-actions { display: flex; gap: 0.75rem; }
.contact-actions .solid-btn,
.contact-actions .ghost-btn { flex: 1; padding: 0.75rem; font-size: 0.88rem; }

.profile-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

.similar-section { padding: 3rem 0; border-top: 1px solid var(--border); }
.similar-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ── Header Entry & Telegram ── */
.header-entry {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); padding: 0.38rem 0.85rem;
  border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600;
  transition: border-color 0.18s, color 0.18s; white-space: nowrap;
}
.header-entry:hover { border-color: var(--gold); color: var(--gold); }

.header-tg {
  background: rgba(41, 182, 246, 0.1); border: 1px solid rgba(41, 182, 246, 0.28);
  color: #29b6f6; padding: 0.38rem 0.85rem;
  border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 700;
  transition: opacity 0.18s; white-space: nowrap;
}
.header-tg:hover { opacity: 0.8; }

a.domain-pill { transition: border-color 0.18s, background 0.18s; }
a.domain-pill:hover { border-color: var(--gold); background: var(--gold-dim); }
.domain-pill-tg {
  border-color: rgba(41, 182, 246, 0.28) !important;
  background: rgba(41, 182, 246, 0.08) !important;
  color: #29b6f6 !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile-page-hero { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem; z-index: 199; gap: 0.1rem;
  }
  .nav-links.open a { padding: 0.6rem 0.5rem; border-radius: var(--radius-sm); }
  .menu-btn { display: block; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); }
  .domain-list { flex-direction: column; align-items: center; }
  .faq-grid { grid-template-columns: 1fr; }
  .profile-meta-grid { grid-template-columns: 1fr 1fr; }
  .entry-announce { padding: 2rem 1.25rem; }
}

@media (max-width: 420px) {
  .listing-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 1.75rem; }
}
