:root {
  --bg: #0a0a0c;
  --bg-2: #121216;
  --card: #141418;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f1ee;
  --muted: #a7a3a0;
  --accent: #ff2a3c;
  --accent-2: #ff5a67;
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --max: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255, 42, 60, 0.18), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Red glow layers ---------- */
.glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform, opacity;
  animation: glow-breathe 9s ease-in-out infinite;
}
.glow--top {
  width: 70vw;
  height: 70vw;
  max-width: 820px;
  max-height: 820px;
  top: -30vw;
  right: -20vw;
  background: radial-gradient(circle, rgba(255, 42, 60, 0.7), rgba(255, 42, 60, 0.15) 45%, transparent 70%);
  opacity: 0.6;
}
.glow--hero {
  width: clamp(420px, 55vw, 760px);
  height: clamp(420px, 55vw, 760px);
  max-width: 640px;
  max-height: 640px;
  top: 28vh;
  left: -22vw;
  background: radial-gradient(circle, rgba(255, 42, 60, 0.55), transparent 65%);
  opacity: 0.4;
  animation-delay: -3s;
}
.glow--bottom {
  width: clamp(520px, 72vw, 1100px);
  height: clamp(260px, 38vw, 620px);
  bottom: -26vh;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 42, 60, 0.45), transparent 65%);
  opacity: 0.35;
  animation: glow-breathe-center 11s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 0.8; }
}
@keyframes glow-breathe-center {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
  50% { transform: translateX(-50%) scale(1.1); opacity: 0.5; }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header,
main,
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
main { flex: 1 0 auto; }

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.35em;
  line-height: 1.25;
}
.logo__line2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 42, 60, 0.55);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid;
  line-height: 1;
}
.badge--age {
  color: var(--accent);
  border-color: rgba(255, 42, 60, 0.6);
  letter-spacing: 0.05em;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 42, 60, 0.3), inset 0 0 8px rgba(255, 42, 60, 0.12);
}
.badge--channel {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(8px);
}
.diamond { color: var(--accent-2); text-shadow: 0 0 8px rgba(255, 42, 60, 0.9); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  padding: 12px 18px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: rgba(255, 42, 60, 0.6);
  box-shadow: 0 0 24px rgba(255, 42, 60, 0.25);
}
.btn--primary {
  position: relative;
  background: linear-gradient(135deg, #ff3b4c, #e6192c);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 90, 103, 0.35) inset,
    0 10px 30px rgba(255, 42, 60, 0.35),
    0 0 40px rgba(255, 42, 60, 0.2);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #ff5563, #ff2a3c);
  box-shadow:
    0 0 0 1px rgba(255, 120, 130, 0.5) inset,
    0 14px 36px rgba(255, 42, 60, 0.5),
    0 0 60px rgba(255, 42, 60, 0.35);
}
.btn--full { width: 100%; }
.btn[hidden] { display: none; }

.arrow { font-size: 0.9em; }
.tg-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 16px rgba(255, 42, 60, 0.8);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent), 0 0 28px rgba(255, 42, 60, 0.6);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--accent), 0 0 22px rgba(255, 42, 60, 0.5); }
  50% { transform: scale(1.25); box-shadow: 0 0 18px var(--accent), 0 0 40px rgba(255, 42, 60, 0.85); }
}

.hero__title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(40px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero__title-line { display: block; }
.hero__title-line--accent {
  color: var(--accent);
  background: linear-gradient(100deg, #ff5a67 0%, #ff2a3c 45%, #ff7a84 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 42, 60, 0.55)) drop-shadow(0 0 60px rgba(255, 42, 60, 0.3));
}

.hero__text {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text);
  opacity: 0.9;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
  box-shadow: 0 10px 18px -12px rgba(255, 42, 60, 0.9);
  transition: gap 0.2s ease, box-shadow 0.2s ease;
}
.link-underline:hover {
  gap: 26px;
  box-shadow: 0 12px 22px -10px rgba(255, 42, 60, 1);
}

.hero__random {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.hero__random a {
  color: var(--text);
  margin-left: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.hero__random a:hover { border-color: var(--text); }

/* ---------- Models ---------- */
.models { padding-top: 40px; padding-bottom: 80px; }

.models__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.section-title::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  border-radius: 2px;
}
.models__count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  position: relative;
  background: linear-gradient(180deg, #17171c, #101014);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  animation: card-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 90ms);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}
/* тонкая красная линия сверху, разгорается при наведении */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 60, 0.7), transparent);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 42, 60, 0.55);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 42, 60, 0.15),
    0 0 50px rgba(255, 42, 60, 0.28);
}
.card:hover::before { opacity: 1; }
.card__link { display: block; height: 100%; }

.card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
  overflow: hidden;
}
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card__img { transform: scale(1.04); }

.card__fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 96px;
  color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 42, 60, 0.35), transparent 55%),
    linear-gradient(160deg, #1b1b21, #0d0d10);
}
.card--no-photo .card__img { display: none; }
.card--no-photo .card__fallback { display: flex; }

.card__top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.card__age18 {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 12, 0.97) 0%, rgba(10, 10, 12, 0.65) 28%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 42, 60, 0.22), transparent 70%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.card__info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}
.card__name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.card__age {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  color: var(--muted);
}
.card__tagline {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.card__tagline:empty { display: none; }

.card__bottom {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.card__foot {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 60px 0;
}
.empty code {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer__sep { opacity: 0.5; }
.footer__admin-link {
  color: var(--text);
  border-bottom: 1px solid transparent;
}
.footer__admin-link:hover {
  border-color: var(--accent);
}

@media (min-width: 1500px) {
  :root { --max: 1320px; }
}

@media (max-width: 1024px) {
  .grid {
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .header, main, .footer { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 44px; padding-bottom: 40px; }
  .models__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__name { font-size: 20px; }
  .card__age { font-size: 14px; }
  .card__tagline { font-size: 12px; }
  .card__info { left: 12px; right: 12px; bottom: 12px; }
  .card__top { top: 10px; left: 10px; right: 10px; }
  .badge--channel { font-size: 9px; padding: 4px 6px; }
  .card__bottom { padding: 10px 10px 12px; gap: 8px; }
  .btn--primary.btn--full { font-size: 12px; padding: 10px 8px; gap: 6px; }
  .card__foot { font-size: 9px; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .card { opacity: 1; transform: none; }
}
