/* Секції під першим екраном: світ із Джуліо продовжується вниз, тексти — на темних «скляних» картках. */
.sec { position: relative; padding: clamp(80px, 12vw, 150px) var(--gutter); overflow: hidden; }
/* Кадр по «фокусу» сцени (де Джуліо), а не по центру — інакше голова обрізається (Юра 12.10). */
.sec::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg) var(--world) var(--focus, center) / cover no-repeat;
  opacity: 0; transition: opacity .6s ease; }
/* Сцена проявляється, лише коли картинка завантажена й розпакована (js/ui.js додає .lit), — не «вистрибує» посеред прокрутки. */
.sec.lit::before { opacity: .55; }
.sec::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(31, 24, 19, .55) 18%, rgba(31, 24, 19, .55) 82%, var(--bg) 100%); }
/* Вміст секції — над фоном зі сценою. */
.sec-in { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.sec-narrow { max-width: 760px; }
.kicker { font: 600 12px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin-bottom: 14px; }
.sec h2 { font: 800 clamp(40px, 6vw, 84px)/.98 var(--head); color: var(--title); text-shadow: var(--title-glow); margin-bottom: 36px; max-width: 16ch; }
.sec h2 em { font-family: var(--accent); font-style: italic; font-weight: 600; color: #E9CDA6; text-shadow: 0 0 26px rgba(235, 200, 150, .65); }

.card { background: rgba(23, 17, 14, .82); border: 1px solid var(--line); border-radius: 28px; padding: 26px;
  box-shadow: 0 30px 60px #0009, inset 0 1px 0 #D9C4A61a; }
.card h3 { font: 800 30px/1 var(--head); color: var(--title); margin: 14px 0 10px; }
.card h3 small { font: 500 14px var(--body); color: var(--muted); }
.card p { color: var(--text-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ico { width: 40px; height: 40px; fill: none; stroke: var(--sand); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 10px #D9C4A655); }
.card { transition: transform .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-4px); border-color: #D9C4A666; }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs-new { border-color: #D9C4A688; box-shadow: 0 30px 60px #0009, 0 0 40px #D9C4A61f; }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 8px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); }
.ticks li::before { position: absolute; left: 0; top: 0; width: 20px; text-align: center; font-weight: 700; }
.ticks .no::before { content: "✕"; color: var(--err); }
.ticks .yes::before { content: "✓"; color: var(--ok); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #17110Ecc;
  color: var(--text-2); font: 600 14px/1 var(--body); cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.tabs button:hover { color: var(--text); border-color: #D9C4A688; }
.tabs [aria-selected="true"] { background: var(--cta); color: var(--cta-text); border-color: transparent; }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.case { min-height: 220px; display: grid; place-content: center; gap: 16px; text-align: center; border-style: dashed; }
.case[hidden] { display: none; }
.case-soon { color: var(--muted) !important; }

.steps { list-style: none; padding: 0; display: grid; gap: 18px; max-width: 760px; position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; border-left: 2px dashed #D9C4A644; }
.steps li { display: flex; gap: 18px; align-items: center; font-size: 18px; color: var(--text-2); }
.steps b { color: var(--text); }
.num { position: relative; flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: #17110E; border: 1px solid #D9C4A688; font: 600 italic 26px var(--accent); color: var(--skin); box-shadow: 0 0 24px #D9C4A633; }
.note { margin-top: 26px; color: var(--muted); max-width: 640px; }

.about { max-width: 720px; font-size: 18px; }
.egg { margin-top: 14px; font-size: 13px; color: var(--muted) !important; font-style: italic; }

.faq { display: grid; gap: 12px; }
.faq details { background: rgba(23, 17, 14, .85); border: 1px solid var(--line); border-radius: 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; font: 600 18px var(--body); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid #D9C4A666; color: var(--sand); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); }

.sec-final { min-height: 90svh; display: grid; place-items: center; text-align: center; }
.sec-final::before { opacity: .8; }
.sec-final h2 { margin: 0 auto 18px; }
.sec-final .btn-cta { margin-top: 28px; }
[data-timer] { font-variant-numeric: tabular-nums; color: var(--sand); }

.foot { padding: 70px var(--gutter) 34px; border-top: 1px solid var(--line); }
.foot-big { display: flex; gap: clamp(20px, 5vw, 60px); flex-wrap: wrap; justify-content: center; }
.foot-big a { font: 800 clamp(40px, 8vw, 110px)/1 var(--head); color: var(--title); text-decoration: none; text-shadow: var(--title-glow); transition: color .2s ease; }
.foot-big a:hover { color: var(--sand); }
.foot-big a[hidden] { display: none; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; color: var(--muted); font-size: 14px; }
.foot-row a { color: var(--text-2); }

/* Закріплена шапка після прокрутки (як у референсі). */
.bar.stuck { position: fixed; padding-top: 14px; padding-bottom: 14px; background: rgba(23, 17, 14, .92); border-bottom: 1px solid var(--line);
  animation: bar-in .3s ease; }
@keyframes bar-in { from { transform: translateY(-100%); } }

/* Появи при прокрутці — лише transform/opacity. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 767px) {
  .sec::before { background-image: var(--world-m); background-position: var(--focus-m, center); }
  .sec { padding-left: 18px; padding-right: 18px; }
  .vs { grid-template-columns: 1fr; }
  .steps li { font-size: 16px; }
  .foot-row { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* Зони дотику ≥ 44 px (ДЗ-09). */
.logo, .foot-row a, .foot-big a { display: inline-flex; align-items: center; min-height: 44px; }

/* Підвал: посилання на документи й кнопка «Налаштування cookies» (виглядає як посилання). */
.foot-links { display: inline-flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.link-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn[hidden] { display: none; }
.link-btn:hover { color: var(--text); }

/* «Про мене» (Юра 15.10): тези лору й дві дії — щоб навіть не-лід щось натиснув. */
.about .ab-lead { margin: 0 0 18px; color: var(--text); font-size: 1.08em; }
.about .ab-line { margin: 0 0 14px; }
.about .ab-line b { color: var(--text); }
.ab-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ab-btns .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
.ab-list { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 8px; color: var(--text-2); }
.ab-list b { color: var(--text); }
