:root {
  --bg-top: #12060d;
  --bg-bottom: #220b18;
  --card: rgba(28, 10, 19, 0.82);
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #fff8fc;
  --muted: #efc6d7;
  --pill: rgba(255, 255, 255, 0.07);
  --accent-a: #ff6aa2;
  --accent-b: #ffb564;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 162, 0.22), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 181, 100, 0.18), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  background:
    linear-gradient(rgba(16, 5, 10, 0.42), rgba(16, 5, 10, 0.72)),
    url("bg-blur.webp") center 22% / cover no-repeat;
  filter: blur(38px) saturate(1.05);
  transform: scale(1.08);
  opacity: 0.52;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-start;
}

.shell {
  width: 100%;
  display: grid;
  gap: 10px;
}

.topbar {
  display: flex;
  justify-content: flex-start;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.lang-switch a.active {
  color: #210b15;
  background: linear-gradient(135deg, #ffd9b5, #ffb980);
}

.card {
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  overflow: hidden;
}

.hero-media {
  position: relative;
  min-height: clamp(238px, 42vh, 320px);
  background:
    linear-gradient(180deg, rgba(10, 4, 8, 0.04), rgba(10, 4, 8, 0.44)),
    url("hero.webp") center 20% / cover no-repeat;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 6, 11, 0.9) 100%);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(21, 7, 13, 0.52);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 0 14px 14px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: url("avatar.webp") center 26% / cover no-repeat;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
  flex: 0 0 auto;
}

.profile-copy h1 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.1;
}

.profile-link {
  display: inline-block;
  margin-top: 3px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
}

.content,
.preview {
  padding: 12px;
}

.content {
  display: grid;
  gap: 10px;
}

.pill-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill-row li {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 8px 10px;
  text-align: center;
  border-radius: 999px;
  background: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.77rem;
  line-height: 1.22;
}

.hook {
  margin: 0;
  text-align: center;
  color: #ffe3ee;
  font-size: 0.88rem;
  font-weight: 700;
}

.signal {
  margin: -2px 0 0;
  text-align: center;
  color: #ffd6e6;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trust {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trust span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #2a0d17;
  background: linear-gradient(135deg, var(--accent-a) 0%, #ff82af 40%, var(--accent-b) 100%);
  box-shadow: 0 18px 36px rgba(255, 105, 160, 0.28);
}

.cta-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.cta-copy span {
  display: block;
  margin-top: 3px;
  font-size: 0.84rem;
  line-height: 1.25;
  color: rgba(42, 13, 23, 0.82);
}

.cta-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 248, 252, 0.8);
  box-shadow: inset 0 0 0 1px rgba(42, 13, 23, 0.08);
  font-size: 1.2rem;
  font-weight: 900;
}

.social-links {
  display: grid;
  gap: 8px;
}

.social-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 12px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.social-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff7fb;
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-copy strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.1;
}

.social-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.helper-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.preview-head h2 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.2;
}

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

.thumb {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(17, 6, 11, 0.86);
  box-shadow: inset 0 -20px 32px rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 360px) {
  .page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .content,
  .preview {
    padding-left: 10px;
    padding-right: 10px;
  }

  .pill-row li {
    min-height: 46px;
    font-size: 0.71rem;
  }

  .cta-copy strong {
    font-size: 0.94rem;
  }

  .cta-copy span {
    font-size: 0.8rem;
  }

  .social-link {
    min-height: 56px;
    padding: 10px;
  }

  .social-copy strong {
    font-size: 0.86rem;
  }

  .social-copy span {
    font-size: 0.74rem;
  }

  .helper-link {
    font-size: 0.74rem;
  }

  .signal {
    font-size: 0.74rem;
  }
}
