/* ===== Архив Онлифанс — dark premium theme ===== */
:root {
  --bg: #0a060c;
  --bg-2: #120a14;
  --surface: #17111d;
  --surface-2: #20182a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f3f7;
  --muted: #9a9aad;
  --accent: #ff2d8c;
  --accent-2: #b00e62;
  --tg: #2aabee;
  --tg-2: #229ed9;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 15px; padding: 12px 22px;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }

.btn-tg {
  background: linear-gradient(135deg, var(--tg) 0%, var(--tg-2) 100%);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(42, 171, 238, 0.55);
}
.btn-tg:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(42, 171, 238, 0.7); }

.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--text); }

.tg-ico {
  width: 18px; height: 18px; flex: 0 0 18px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21.94 4.6 18.9 19.2c-.23 1.02-.84 1.27-1.7.79l-4.7-3.46-2.27 2.18c-.25.25-.46.46-.95.46l.34-4.8 8.73-7.9c.38-.34-.08-.53-.59-.19l-10.8 6.8-4.65-1.46c-1.01-.32-1.03-1.01.21-1.49l18.2-7.02c.84-.31 1.58.2 1.31 1.49z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21.94 4.6 18.9 19.2c-.23 1.02-.84 1.27-1.7.79l-4.7-3.46-2.27 2.18c-.25.25-.46.46-.95.46l.34-4.8 8.73-7.9c.38-.34-.08-.53-.59-.19l-10.8 6.8-4.65-1.46c-1.01-.32-1.03-1.01.21-1.49l18.2-7.02c.84-.31 1.58.2 1.31 1.49z'/></svg>") center/contain no-repeat;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .2px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-family: "Unbounded", sans-serif;
}
.brand-name { font-size: 17px; }
.brand-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.footer-brand .brand-logo { width: 30px; height: 30px; }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav > a:not(.btn) { color: var(--muted); font-weight: 600; font-size: 15px; }
.header-nav > a:not(.btn):hover { color: var(--text); }

/* ===== Hero ===== */
.hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% 0 auto 0; height: 600px; z-index: 0;
  background:
    radial-gradient(600px 320px at 25% 20%, rgba(255,45,140,0.22), transparent 70%),
    radial-gradient(560px 320px at 78% 10%, rgba(159,4,96,0.30), transparent 70%);
  filter: blur(8px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--accent);
  padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
.hero-title {
  font-family: "Unbounded", sans-serif; font-weight: 800;
  font-size: clamp(40px, 7vw, 76px); line-height: 1.02; margin: 22px 0 14px;
  background: linear-gradient(180deg, #fff 30%, #c7c7d6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); max-width: 620px; margin: 0 auto; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 32px 0 40px; }
.hero-stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats > div {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 22px; min-width: 150px;
}
.hero-stats strong { display: block; font-size: 20px; font-family: "Unbounded", sans-serif; }
.hero-stats span { color: var(--muted); font-size: 14px; }

/* ===== Section heads ===== */
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 {
  font-family: "Unbounded", sans-serif; font-weight: 700;
  font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px;
}
.section-head p { color: var(--muted); }

/* ===== Catalog controls ===== */
.catalog { padding: 56px 0; }
.controls { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.search-wrap { flex: 1 1 360px; max-width: 460px; }
#search {
  width: 100%; padding: 14px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  font: inherit; font-size: 15px;
}
#search::placeholder { color: var(--muted); }
#search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,140,0.20); }
.sort-wrap { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
#sort {
  padding: 12px 16px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border-strong); color: var(--text); font: inherit; cursor: pointer;
}
#sort:focus { outline: none; border-color: var(--accent); }

.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.chip {
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: all .18s ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-color: transparent;
}

/* ===== Model grid ===== */
.model-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.model-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.model-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.model-card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.model-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.model-card:hover .model-card-media img { transform: scale(1.06); }
.model-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,6,12,0.88) 100%);
}
.model-card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; color: #fff;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(6px); border: 1px solid var(--border-strong);
}
.model-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px; }
.model-card-name { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 19px; }
.model-card-tagline { color: var(--muted); font-size: 13px; margin-top: 2px; }
.model-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mini-tag { font-size: 11px; color: var(--text); background: rgba(255,255,255,0.1); padding: 3px 9px; border-radius: 999px; }

.empty-state { text-align: center; color: var(--muted); padding: 50px 0; }

/* ===== CTA band ===== */
.cta-band { padding: 70px 0; }
.cta-inner {
  text-align: center; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 26px; padding: 54px 28px; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(500px 220px at 50% 0%, rgba(255,45,140,0.16), transparent 70%);
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-family: "Unbounded", sans-serif; font-size: clamp(24px, 4vw, 36px); margin-bottom: 10px; }
.cta-inner p { color: var(--muted); margin-bottom: 26px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0; margin-top: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-note { color: var(--muted); font-size: 13px; }
.footer-tg { color: var(--tg); font-weight: 700; }
.footer-tg:hover { text-decoration: underline; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { padding-top: 24px; color: var(--muted); font-size: 14px; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span { margin: 0 6px; }

/* ===== Model page hero ===== */
.model-hero { padding: 30px 0 50px; }
.model-hero-inner { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 44px; align-items: start; }
.model-hero-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); margin-top: 44px; }
.model-hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  object-position: 50% 6%; transition: transform .4s ease; }
.model-hero-media:hover img { transform: scale(1.06); }
.model-name { font-family: "Unbounded", sans-serif; font-size: clamp(34px, 6vw, 60px); line-height: 1.05; margin: 16px 0 8px; }
.model-tagline { color: var(--accent); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); padding: 6px 13px; border-radius: 999px; }
.model-bio { color: var(--muted); font-size: 16px; max-width: 560px; margin-bottom: 26px; }
.hero-hint { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ===== Gallery ===== */
.gallery-section { padding: 30px 0 10px; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.gallery-item.locked img { filter: blur(9px) brightness(0.7); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-lock {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  color: #fff; font-weight: 700; font-size: 14px; text-align: center; padding: 16px;
  background: rgba(10,10,15,0.35);
}
.gallery-lock span { display: block; }

/* ===== Related ===== */
.related { padding: 40px 0 60px; }
.related-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.related-more { text-align: center; margin-top: 28px; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .model-hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .model-hero-media { max-width: 380px; margin: 0 auto; }
  .hero { padding: 56px 0 40px; }
}
@media (max-width: 520px) {
  .header-nav { gap: 12px; }
  .header-nav > a:not(.btn) { display: none; }
  .hero-stats > div { min-width: 120px; padding: 12px 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== Хэштеги ===== */
.card-hashtags { display: flex; flex-wrap: wrap; gap: 7px 11px; margin-top: 11px; }
.card-hashtags:empty { display: none; }
.model-hashtags { display: flex; flex-wrap: wrap; gap: 8px 13px; margin: 2px 0 18px; }
.model-hashtags:empty { display: none; }
.hashtag { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .2px; }
.model-hashtags .hashtag { font-size: 15px; }
