/* Back course page: dark authority hero, the endless series, the calculator, the secrets. */

/* ---------- dark hero ---------- */
.dark-hero { background: radial-gradient(120% 90% at 85% 0%, #24543a 0%, var(--deep) 55%, #10291c 100%); color: #fff; }
.dark-hero h1, .dark-hero .sub { color: #fff; }
.dark-hero .em { color: #8ee6b1; }
.dark-hero mark { background-image: linear-gradient(transparent 62%, rgba(142, 230, 177, .38) 62%); }
.dark-hero .press { color: #e6efe8; }
.dark-hero .press img { background: #fff; padding: 2px; }
.dark-hero .cta-note { color: #d4e2d8; }
.dark-hero .hero-facts li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.dark-hero .hero-facts b { color: #8ee6b1; }
.dark-hero .cta { background: var(--green-bright); color: #08210f; box-shadow: 0 12px 28px -12px rgba(31, 168, 91, .9); }
.dark-hero .cta:hover { background: #29bd69; }
.titles { list-style: none; padding: 0; margin: 0 auto 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 560px; }
.titles li { font-size: 15px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(142, 230, 177, .14); border: 1px solid rgba(142, 230, 177, .4); color: #e9fbef; white-space: nowrap; }
@media (min-width: 900px) { .titles { justify-content: flex-start; margin-inline: 0; } }

/* the collage, built only from real photos */
.hero-collage { position: relative; margin: 0; padding-top: 22%; }
.hc-main { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.hc-main img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 46% 50%; }
.hc-tv { position: absolute; top: 0; inset-inline-start: 4%; width: 62%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .65); transform: rotate(-2.5deg); animation: tvIn .9s cubic-bezier(.2, .7, .2, 1) .2s both; }
.hc-tv img { width: 100%; aspect-ratio: 815 / 461; object-fit: cover; }
.hc-tv span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.hc-tv .ico13 { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 4px; background: url(assets/img/reshet13-logo.png) center / cover no-repeat; }
@keyframes tvIn { from { opacity: 0; transform: translateY(-12px) rotate(-6deg); } to { opacity: 1; transform: rotate(-2.5deg); } }
.hero-collage .creds-float { inset-inline-start: auto; inset-inline-end: 10px; bottom: 14px; justify-items: end; }

/* ---------- stations ---------- */
.station-list { list-style: none; padding: 0; margin: 8px auto 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 600px; }
.station-list li { background: #fff; border-radius: 999px; padding: 7px 16px 7px 14px; font-weight: 600; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 6px; }
.station-list li::before { content: "-"; color: var(--ink-soft); font-weight: 800; }

/* ---------- the endless series ---------- */
.cycle { --size: min(calc(100vw - 40px), 420px); position: relative; width: var(--size); aspect-ratio: 1; margin: 14px auto 6px; }
.cycle svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-track { fill: none; stroke: #d9e4dc; stroke-width: 10; }
.c-run { fill: none; stroke: var(--hot); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 804; stroke-dashoffset: 804; transform: rotate(-90deg); transform-origin: 50% 50%; opacity: .35; }
.c-dot { fill: var(--hot-2); filter: drop-shadow(0 0 6px rgba(201, 84, 43, .6)); }
.c-nodes { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.c-nodes li { position: absolute; top: 50%; left: 50%; width: 31%; text-align: center; font-size: 14.5px; font-weight: 700; line-height: 1.25; background: #fff; border-radius: 12px; padding: 6px 4px; box-shadow: var(--shadow); color: var(--ink); --r: calc(var(--size) * .395); transform: translate(-50%, -50%) rotate(calc(var(--a) * 60deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -60deg)); transition: background .3s ease, color .3s ease; }
.c-nodes li.on { background: var(--hot-2); color: #fff; }
.c-center { position: absolute; inset: 30%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.c-center span { font-size: 15px; font-weight: 700; color: var(--deep); line-height: 1.25; }
.c-center b { font-size: clamp(22px, 6.4vw, 32px); color: var(--hot-2); font-weight: 800; line-height: 1.15; }
.c-center small { font-size: 14px; color: var(--ink-soft); }
.cycle.tick .c-center b { animation: tick .5s ease; }
@keyframes tick { 40% { transform: scale(1.15); } }
.cycle.done .c-nodes li { background: #fbe3d4; color: #7a2a0c; }

/* ---------- calculator ---------- */
.calc { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 18px 18px 14px; margin: 12px 0 8px; }
.slider { display: block; margin-bottom: 14px; }
.slider > span { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 4px; }
.slider b { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--deep); font-size: 19px; }
.slider input[type=range] { --fill: 50%; width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; direction: rtl; cursor: pointer; }
.slider input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to left, var(--green) var(--fill), #dfe8e1 var(--fill)); }
.slider input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: #dfe8e1; }
.slider input[type=range]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--green); }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.slider input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.calc-out { display: grid; gap: 10px; margin: 6px 0 10px; }
.co-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-weight: 600; }
.co-track { height: 28px; border-radius: 8px; background: var(--mint); overflow: hidden; }
.co-bar { display: block; height: 100%; width: 0; border-radius: 8px; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.co-bar.big { background: var(--hot); }
.co-bar.small { background: var(--green); }
.calc:not(.go) .co-bar { width: 0 !important; }
.co-row b { font-size: 19px; color: var(--deep); white-space: nowrap; }
.co-row:first-child b { color: var(--hot-2); font-size: 22px; }
.calc-x { text-align: center; font-weight: 700; color: var(--deep); margin: 4px 0 0; }

/* ---------- secrets ---------- */
.secrets .wrap.narrow p { color: #e6efe8; }
.secret-list { display: grid; gap: 14px; max-width: 900px; margin: 16px auto 4px; grid-template-columns: minmax(0, 1fr); }
.secret { background: #fff; color: var(--ink); border-radius: 16px; padding: 18px 16px 14px; position: relative; overflow: hidden; box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .7); }
.secret .s-no { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green); font-size: 16px; margin-bottom: 4px; }
.secret .s-no i { width: 30px; height: 30px; border-radius: 50%; background: var(--deep); color: #fff; font-style: normal; display: grid; place-items: center; }
.secret h3 { font-size: clamp(21px, 4.6vw, 26px); margin: 2px 0 8px; color: var(--deep); }
.secret p { margin-bottom: 8px; }
.secret .src { font-size: 14.5px; color: var(--ink-soft); margin: 8px 0 0; }
.secret .lock { position: absolute; inset-inline-end: 14px; top: 14px; width: 30px; height: 30px; fill: none; stroke: var(--deep); stroke-width: 1.8; stroke-linecap: round; opacity: .35; transition: transform .5s ease, opacity .5s ease; }
.secret.open .lock { transform: translateY(-4px) rotate(-12deg); opacity: .6; }
.secret .s-body { transition: filter .8s ease, opacity .8s ease; }
.secret:not(.open) .s-body { filter: blur(5px); opacity: .5; }
.vs2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.vs2 > div { border-radius: 10px; padding: 10px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.vs2 .bad { background: #f7e8df; color: #6d2a10; }
.vs2 .good { background: #e3f2e7; color: #11502c; }
.vs2 b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.loop4 { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 10px 0; }
.loop4 span { background: #fbe3d4; color: #7a2a0c; border-radius: 99px; padding: 5px 12px; font-weight: 700; font-size: 15.5px; }
.loop4 em { font-style: normal; color: var(--hot-2); font-weight: 800; }
@media (min-width: 900px) { .secret-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .secret.wide { grid-column: 1 / -1; } }

/* ---------- Netta ---------- */
.cred-grid { list-style: none; padding: 0; margin: 10px auto 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 860px; }
.cred-grid li { background: #fff; border-radius: var(--radius); padding: 14px 10px; text-align: center; box-shadow: var(--shadow); }
.cred-grid b { display: block; font-size: clamp(22px, 5.6vw, 30px); color: var(--deep); line-height: 1.15; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.cred-grid li > span { display: block; font-size: 15.5px; line-height: 1.35; margin-top: 4px; }
@media (min-width: 760px) { .cred-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.more-creds { font-size: 16.5px; margin: 4px auto 18px; max-width: 700px; }
.story-img.tall img { aspect-ratio: auto; max-height: 520px; width: auto; margin: 0 auto; }
.shot.inline { margin: 10px 0 0; }
.shot.inline img { max-width: 320px; }

/* ---------- course ---------- */
.method { list-style: none; padding: 0; margin: 12px auto 20px; display: grid; gap: 10px; }
.method li { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.method b { font-size: 30px; font-weight: 800; color: var(--green); font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
.method p { margin: 0; font-weight: 600; }
.inside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto 14px; }
.inside figure { margin: 0; }
.inside img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: var(--shadow); background: #fff; }
.inside figcaption { text-align: center; font-size: 15px; font-weight: 600; margin-top: 6px; }
.inside-list { list-style: none; padding: 0; margin: 0 auto 16px; max-width: 620px; }
.inside-list li { position: relative; padding-inline-start: 30px; margin-bottom: 10px; }
.inside-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 800; }
.secret.open .r-timer circle.prog { stroke-dashoffset: 52; }
.deep .punch, .punch.light { color: #fff; }
.proof .clip:not(.wide) .clip-play { max-width: 300px; }
.proof .clip:not(.wide) .clip-play img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.materials { margin: 0 auto 14px; max-width: 760px; }
.materials img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.materials figcaption { text-align: center; font-size: 15px; font-weight: 600; margin-top: 6px; }
@media (max-width: 640px) { .hero-collage { padding-top: 33%; } .hc-tv { inset-inline-start: 21%; width: 58%; } }
@media (min-width: 900px) {
  .hero-collage { padding-top: 18%; }
  .hc-tv { inset-inline-start: auto; inset-inline-end: -2%; width: 52%; }
  .hc-main img { object-position: 46% 45%; }
}

/* ---------- research round 1 additions ---------- */
.five { display: flex; justify-content: center; gap: 10px; margin: 4px 0 8px; }
.five i { width: 30px; height: 46px; border-radius: 15px 15px 8px 8px; background: #d6e1d8; position: relative; }
.five i::before { content: ""; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: inherit; }
.five i.on { background: var(--green); }
.secret .r-bars.prevent .r-bar { grid-template-columns: 96px minmax(0, 1fr); }
.wait { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px; margin: 14px 0 10px; text-align: start; }
.wait-t { font-weight: 700; color: var(--deep); margin-bottom: 10px; text-align: center; }
.wait-bars { display: grid; gap: 8px; }
.wb { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 10px; }
.wb > span { grid-row: 1 / 3; font-weight: 600; font-size: 16px; }
.wb > i { display: block; height: 14px; border-radius: 7px; background: var(--hot); width: 0; transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.wait.go .wb > i { width: var(--w); }
.wb > b { font-size: 15px; color: var(--hot-2); }
.wait .src { font-size: 14.5px; color: var(--ink-soft); text-align: center; margin: 10px 0 0; }
.dark-hero .what { color: #e6efe8; font-weight: 600; margin: -4px 0 12px; }
.calc-kupa { text-align: center; font-size: 16px; margin: 6px 0 0; }
.secrets .light { color: #e6efe8; }
.big-n { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0; }
.big-n b { font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif; font-size: 54px; font-weight: 800; color: var(--green); line-height: 1; }
.big-n span { font-weight: 600; max-width: 180px; line-height: 1.35; text-align: start; }
.r-cap { font-weight: 600; font-size: 16px; color: var(--deep); margin: 6px 0 4px; }

/* hero v3: the clinic photo; Netta stays visible on every width */
.hc-main img { object-position: 82% 40%; }
@media (max-width: 640px) {
  .hero-collage { padding-top: 0; padding-bottom: 26%; }
  .hc-tv { top: auto; bottom: 0; inset-inline-start: 21%; width: 58%; transform: rotate(-2deg); }
  .hero-collage .creds-float { top: 12px; bottom: auto; }
}
@media (min-width: 900px) { .hc-main img { object-position: 82% 40%; } }
/* the clinic photo is landscape: keep the whole scene, Netta and the patient */
.hc-main img, .hc-main img[src*="clinic-3"] { aspect-ratio: 3 / 2; object-position: 62% 45%; }
@media (max-width: 640px) {
  .hero-collage { padding-bottom: calc(31% + 22px); }
}
@media (min-width: 900px) { .hero-collage { padding-top: 26%; } .hc-main img { object-position: 62% 45%; } }
@media (min-width: 900px) {
  .hero-collage .creds-float { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
}
