/* Smart Sex static copy — no Site123 branding */
@font-face {
  font-family: "EFT Crystalex";
  src: url("../fonts/crystalex-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
  /* U+00B7 and U+2219 are broken in this font and blow the page width on phones */
  unicode-range: U+0000-00B6, U+00B8-2218, U+221A-10FFFF;
}
@font-face {
  font-family: "EFT Crystalex";
  src: url("../fonts/crystalex-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00B6, U+00B8-2218, U+221A-10FFFF;
}
:root {
  --bg: #090e11;
  --paper: #f4f5f6;
  --ink: #111;
  --muted: #5c636a;
  --accent: #37718d;
  --pink: #e23d7a;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: "EFT Crystalex", "Assistant", "Heebo", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  direction: rtl;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
html[dir="ltr"] body { direction: ltr; }
a { color: inherit; text-decoration: none; }
img, video, iframe, svg { max-width: 100%; height: auto; }
img { display: block; }
p, h1, h2, h3, li, figcaption, .note, .kicker { overflow-wrap: anywhere; max-width: 100%; }
.wrap, .topbar, .hero, .section, footer, main, article, .card, .offer-box {
  max-width: 100%;
  min-width: 0;
}
.wrap { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }

.topbar, header.site {
  background: #000;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar-inner, header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  min-width: 0;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; min-width: 0; flex: 0 0 auto; }
.brand img { width: 46px; height: 46px; max-width: 46px; max-height: 46px; object-fit: contain; }
.topbar nav, nav.main { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.topbar nav a, nav.main a {
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.topbar nav a.active, .topbar nav a:hover,
nav.main a.active, nav.main a:hover { background: #fff; color: #111; }

.hero {
  min-height: 72vh;
  background: #111 center/cover no-repeat;
  display: grid;
  place-items: center;
  padding: 48px 0;
  position: relative;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.62));
}
.hero-content, .hero .panel {
  position: relative;
  z-index: 1;
  background: #fff;
  color: #111;
  padding: 32px 28px;
  width: min(720px, calc(100% - 24px));
  text-align: center;
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}
.hero h1 { margin: 0 0 10px; font-size: clamp(26px, 4.6vw, 42px); line-height: 1.25; }
.hero .lead { font-size: 18px; margin: 0 0 14px; }
.hero p { margin: 0 0 10px; }
.hero .note { color: var(--muted); font-size: 13px; margin-top: 10px; }

.section { padding: 48px 0 56px; }
.section h2, .section h1 { margin: 0 0 22px; }
.grid, .cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}
.card img { width: 100%; height: 210px; object-fit: cover; background: #ddd; }
.card .body { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.35; }
.card .meta { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.card p { margin: 0; color: #333; }

.btn, .cta {
  display: inline-block;
  background: var(--pink);
  color: #fff !important;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
}
.btn:hover, .cta:hover { filter: brightness(.95); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

footer, footer.site {
  background: #111;
  color: #ddd;
  padding: 28px 0;
  text-align: center;
}
footer a, footer.site a { color: #fff; }
footer .contact, .fine { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.article { background: #fff; padding: 32px 26px; border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.05); max-width: 100%; }
.article h1 { margin-top: 0; }
.article h2 { font-size: 22px; }
.article img, .article video, .article iframe,
.contentDiv img, .s123-editor img, .editorBox img {
  max-width: 100% !important;
  height: auto !important;
}
.post-cover { margin: 0 0 18px; }
.post-cover img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; }
.article table { display: block; max-width: 100%; overflow-x: auto; }

.crumbs { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.crumbs a { color: var(--accent); text-decoration: underline; }
.en-brief {
  background: #f7f1f4;
  border-inline-start: 4px solid var(--pink);
  padding: 12px 14px;
  margin: 0 0 18px;
  border-radius: 8px;
  text-align: start;
}
html[dir="rtl"] .en-brief { direction: ltr; text-align: left; }
.en-brief p { margin: 0; }
.topics p, .prose p { margin: 0 0 12px; }
.faq details {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; }
.hub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hub-list li { background: #fff; border-radius: 8px; padding: 14px 16px; box-shadow: 0 8px 22px rgba(0,0,0,.05); }
.hub-list a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.hub-list p { margin: 6px 0 0; }

.age {
  position: fixed; inset: 0; background: rgba(0,0,0,.88);
  display: none; place-items: center; z-index: 80; padding: 16px;
}
.age.show { display: grid; }
.age .box { background: #161616; color: #fff; padding: 26px; width: min(460px, 100%); text-align: center; border-radius: 8px; }
.age .row { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.age button { border: 0; cursor: pointer; padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.age .yes { background: var(--pink); color: #fff; }
.age .no { background: #333; color: #fff; }

@media (max-width: 800px) {
  .wrap { width: min(1100px, calc(100% - 20px)); }
  .grid, .cards, .split { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .topbar-inner, header.site .bar { min-height: 0; padding: 8px 0; gap: 8px; }
  .brand img { width: 40px; height: 40px; max-width: 40px; max-height: 40px; }
  .topbar nav a, nav.main a { padding: 6px 10px; font-size: 14px; }
  .hero { min-height: 0; padding: 28px 0; }
  .hero-content, .hero .panel { padding: 22px 16px; width: min(720px, 100%); }
  .card img { height: 180px; }
  .article { padding: 18px 14px; }
  .section { padding: 32px 0 40px; }
}

.lang-switch { display: flex; gap: 4px; margin-right: 8px; }
.lang-switch a {
  color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.3);
}
.lang-switch a.active, .lang-switch a:hover { background: #fff; color: #111; border-color: #fff; }

.topbar nav a.nav-cta, nav.main a.nav-cta {
  background: var(--pink);
  color: #fff !important;
  border-radius: 999px;
}
.topbar nav a.nav-cta:hover, nav.main a.nav-cta:hover {
  background: #ff5b93;
  color: #fff !important;
}
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps article, .points article {
  background: #fff;
  border-radius: 8px;
  padding: 16px 16px 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  min-width: 0;
}
.steps span { display: block; color: var(--pink); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.steps h3, .points h3 { margin: 0 0 6px; font-size: 18px; }
.steps p, .points p { margin: 0; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 8px 0 18px; }
.offer-box {
  margin-top: 26px;
  background: #141414;
  color: #fff;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
}
.offer-box h2 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.offer-box p { margin: 0 0 12px; }
.offer-box .kicker { color: #ff8ab3; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.offer-bar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #111;
  color: #fff;
  box-shadow: 0 -8px 24px rgba(0,0,0,.28);
}
.offer-bar p { margin: 0; font-size: 14px; font-weight: 700; }
.offer-bar .fine { display: block; font-size: 11px; font-weight: 400; color: #bbb; }
.age.show ~ .offer-bar, .offer-bar.is-hidden { display: none !important; }
@media (max-width: 800px) {
  .steps, .points { grid-template-columns: 1fr; }
  .offer-bar { display: flex; }
  body { padding-bottom: 74px; }
}
@media print {
  .offer-bar, .nav-cta { display: none !important; }
  body { padding-bottom: 0; }
}
