:root {
  --bg: #140c18;
  --card: #1d1424;
  --text: #f7f2f6;
  --muted: #b3a4b8;
  --accent: #e23d6b;
  --accent-2: #ff5b84;
  --line: #3a2a42;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: Georgia, "Times New Roman", serif; }
body { font-family: Inter, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
button, a.cta { font: inherit; cursor: pointer; }
.top { position: sticky; top: 0; z-index: 5; padding: 14px 18px; background: rgba(20,12,24,.92); }
.logo { color: var(--accent-2); font-weight: 700; font-size: 26px; letter-spacing: -.03em; text-decoration: none; }
.wrap { max-width: 430px; margin: 0 auto; padding: 10px 18px 36px; }
.photo-wrap { position: relative; border-radius: 18px; overflow: hidden; height: 290px; margin-bottom: 16px; }
.hero-photo { width: 100%; height: 290px; object-fit: cover; }

@media (min-width: 900px) {
  body { background:
    radial-gradient(900px 500px at 70% -10%, #4a1733 0%, transparent 55%),
    var(--bg); }
  .top { padding: 16px 8vw; }
  .wrap, .foot { max-width: 980px; }
  .hero {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 36px 48px;
    align-items: center;
    min-height: 520px;
    padding-top: 24px;
  }
  .hero .photo-wrap,
  .hero .hero-photo { height: 480px; }
  .hero h1, .hero .lead, .hero .geo, .hero .cta, .hero .proof, .hero .hint, .hero .pills, .hero .who { grid-column: 2; }
  .hero .photo-wrap { grid-column: 1; grid-row: 1 / 10; }
  .hero h1 { font-size: 42px; max-width: none; }
  .hero h1,
  .hero .lead,
  .hero .geo,
  .hero .cta,
  .hero .proof,
  .hero .pills {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .nearby { margin-top: 36px; text-align: center; }
  .nearby h2 { margin-bottom: 16px; }
}
.photo-wrap.fade .hero-photo { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.photo-wrap.fade .hero-photo.on { opacity: 1; }
.dot {
  position: absolute; left: 12px; bottom: 12px;
  background: #133; color: #b6f5c6; font-size: 12px;
  padding: 4px 8px; border-radius: 999px;
}
.dot::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  background: #3de28a; border-radius: 50%; margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(61, 226, 138, .7);
  animation: online-pulse 1.6s ease-out infinite;
}
@keyframes online-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 226, 138, .65); }
  70% { box-shadow: 0 0 0 8px rgba(61, 226, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 226, 138, 0); }
}
.cta-pulse { animation: cta-pulse 1.8s ease-in-out infinite; }
@keyframes cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(226, 61, 107, .35); }
  50% { transform: scale(1.07); box-shadow: 0 10px 32px rgba(226, 61, 107, .55); }
}
.who { color: var(--muted); margin-bottom: 6px; }
.hero { text-align: center; }
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 8px; }
.lead, .hint, .geo { color: var(--muted); }
.lead { margin-bottom: 14px; }
.geo { margin-bottom: 14px; font-size: 14px; }
.cta {
  display: block; width: 100%; text-align: center; text-decoration: none;
  border: 0; border-radius: 999px; padding: 16px 18px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff; font-weight: 700;
  box-shadow: 0 8px 24px rgba(226, 61, 107, .35);
}
.cta-home { margin-top: 28px; margin-bottom: 6px; font-size: 18px; }
.proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 12px 0 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #1f1526;
  border: 1px solid #3de28a55;
  color: #c8f5d4;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
}
.proof::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3de28a;
  box-shadow: 0 0 0 0 rgba(61, 226, 138, .65);
  animation: online-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}
.story-info .proof {
  margin: 14px 0 0;
}

.card button {
  box-shadow: 0 6px 16px rgba(226, 61, 107, .28);
}
.hint { text-align: center; font-size: 13px; margin: 12px 0 16px; }
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}
.pills li {
  font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 7px 12px;
  color: #ffe4ee; background: #2a1524;
  border: 1px solid #e23d6b66;
}
.nearby { margin-top: 28px; }
.nearby h2 { font-size: 18px; margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding-bottom: 10px; }
@media (min-width: 900px) {
  .cards {
    grid-template-columns: 280px 280px;
    gap: 16px;
    justify-content: center;
    width: max-content;
    margin: 0 auto;
  }
  .card { max-width: 280px; }
  .card strong { font-size: 15px; }
  .card button { padding: 10px; font-size: 14px; }
}
.card img { width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: top; }
.card strong {
  display: block;
  padding: 0 10px;
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}
.card strong [data-iname] {
  display: inline;
  padding: 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
}
.card [data-km] {
  display: block;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 8px;
  text-align: center;
}
.card button { margin: 0 10px; width: calc(100% - 20px); border: 0; border-radius: 999px; padding: 8px; background: var(--accent); color: #fff; }
.btn-write {
  position: relative; overflow: hidden;
  animation: write-glow 2.8s ease-in-out infinite;
}
.btn-write::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: write-shine 2.8s ease-in-out infinite;
}
@keyframes write-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 91, 132, .15); }
  50% { box-shadow: 0 0 18px 2px rgba(255, 91, 132, .45); }
}
@keyframes write-shine {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}
body[data-view="stories"] { min-height: 100dvh; }
body[data-view="stories"] .top { padding: 8px 16px; }
body[data-view="stories"] .logo { font-size: 20px; }
body[data-view="stories"] .wrap {
  max-width: 430px;
  padding: 6px 14px 8px;
}
body[data-view="stories"] .foot {
  padding: 4px 16px 10px;
  font-size: 11px;
}
.story { text-align: center; }
.story-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  width: 78%;
  max-height: calc(100dvh - 280px);
  margin: 0 auto 14px;
  background: #0d0810;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.story-info .who {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}
.story-info .geo {
  margin-bottom: 14px;
  text-align: center;
  font-size: 16px;
}
.story-info .cta {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 18px;
  font-size: 19px;
}
@media (min-width: 900px) {
  body[data-view="stories"] .wrap { max-width: 630px; padding-top: 12px; }
  body[data-view="stories"] .story-photo {
    width: 72%;
    max-width: 460px;
    max-height: calc(100dvh - 240px);
  }
  body[data-view="stories"] .story-info .who { font-size: 28px; }
  body[data-view="stories"] .story-info .geo { font-size: 17px; }
  body[data-view="stories"] .story-info .cta { max-width: 420px; font-size: 20px; padding: 17px 20px; }
}
.foot { max-width: 430px; margin: 0 auto; padding: 0 18px 40px; color: #7a6b80; font-size: 12px; line-height: 1.45; text-align: center; }
.overlay { position: fixed; inset: 0; background: rgba(8,4,10,.78); display: grid; place-items: center; padding: 18px; z-index: 20; }
.overlay[hidden] { display: none; }
.box { width: min(100%, 380px); background: #211628; border: 1px solid var(--line); border-radius: 20px; padding: 22px 18px; text-align: center; }
.box h2 { margin-bottom: 8px; font-size: 22px; }
.box p { color: var(--muted); margin-bottom: 14px; }
.box button { width: 100%; margin-top: 8px; border-radius: 999px; border: 1px solid var(--line); background: #160e1c; color: #fff; padding: 12px; }
.spin { width: 36px; height: 36px; border: 3px solid #3a2a42; border-top-color: var(--accent-2); border-radius: 50%; margin: 8px auto 12px; animation: s .8s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .story { text-align: center; }
html[dir="rtl"] .pills { justify-content: flex-end; }
