/* Общий стиль сайта «Найди гриб»: главная и посадочные страницы. Цвета — как в приложении («Лесная ночь»). */
:root {
  --bg: #0d1410; --bg2: #121c16; --card: #17241c; --line: #27382d;
  --text: #e8efe9; --muted: #a9b8ad; --green: #7cfc00; --green2: #4fbf2a; --moss: #9ccc65;
  --warn: #ffb74d; --danger: #ff5246; --car: #ffd54f; --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

header.top { position: sticky; top: 0; z-index: 20; background: rgba(13,20,16,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: var(--text); }
.logo img { width: 30px; height: 30px; }
nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--text); }
@media (max-width: 860px) { nav { display: none; } }

/* первый экран */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero, url(img/hero.jpg)) center/cover no-repeat; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,14,10,.96) 0%, rgba(8,14,10,.82) 45%, rgba(8,14,10,.35) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 25%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding-top: 56px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; margin: 0 0 18px; letter-spacing: -1px; }
.hero h1 span { color: var(--green); }
.hero p.lead { font-size: clamp(18px, 2.1vw, 21px); color: #d4ded6; max-width: 560px; margin: 0 0 28px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: 17px; }
.btn.primary { background: var(--green); color: #0b1a05; box-shadow: 0 8px 30px rgba(124,252,0,.25); }
.btn.ghost { border: 1.5px solid rgba(255,255,255,.3); color: var(--text); }
.btn.soon { border: 1.5px solid var(--green); color: var(--green); cursor: default; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.badge { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }

section { padding: 84px 0; }
section.alt { background: var(--bg2); }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.5px; }
h3 { line-height: 1.25; }
.kicker { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; margin-bottom: 10px; }
.sub { color: var(--muted); max-width: 680px; margin: 0 0 36px; font-size: 18px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .four { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ic { font-size: 32px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.card.art { padding: 0; overflow: hidden; }
.card.art img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card.art div { padding: 20px 22px 24px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.rev .media { order: 2; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 36px; } .feature.rev .media { order: 0; } }
.media { display: flex; justify-content: center; }
.media.pic img { border-radius: var(--radius); border: 1px solid var(--line); }
ul.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
ul.points li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
ul.points li b { color: var(--text); }
ul.points li span { color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #0b1a05;
  font-weight: 800; display: grid; place-items: center; }
.steps li span { color: var(--muted); }
.steps li b { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { padding: 9px 15px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.chip.on::before { content: "✓ "; color: var(--green); font-weight: 700; }
.warnbox { border-left: 4px solid var(--warn); background: #2a2210; padding: 16px 18px; border-radius: 10px; color: #f2e4c4; }
.note { color: var(--muted); font-size: 15px; }

table.q { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 16px; }
table.q td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
table.q td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.bar { height: 8px; border-radius: 99px; background: #233229; margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green2); border-radius: 99px; }
.bar.bad i { background: var(--warn); }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; }
details p { color: var(--muted); margin: 10px 0 0; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 auto; width: 220px; scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 3px solid #050805; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }

/* два экрана рядом, второй чуть ниже */
.shots2 { gap: 18px; align-items: flex-start; }
.shots2 img { width: min(220px, 42vw); height: auto; border-radius: 22px; border: 3px solid #050805;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.shots2 img + img { margin-top: 48px; }

/* «Итог похода»: карточка-макет */
.trip { width: min(360px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.trip-map { background: #0f1a13; border-radius: 12px; overflow: hidden; }
.trip-map svg { display: block; width: 100%; height: auto; }
.trip-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 16px; }
.trip-nums b { display: block; font-size: 22px; line-height: 1.2; }
.trip-nums span { color: var(--muted); font-size: 13px; line-height: 1.3; display: block; }
.trip-stars { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; }
.trip-stars span { color: var(--car); font-size: 22px; letter-spacing: 2px; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.related a { display: block; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 700; }
.related a span { display: block; color: var(--muted); font-weight: 400; font-size: 15px; margin-top: 4px; }
.related a:hover { border-color: var(--green2); }

article.text { max-width: 760px; }
article.text h2 { font-size: clamp(24px, 3.2vw, 32px); margin-top: 46px; }
article.text p, article.text li { color: #cfdad2; }
article.text ul, article.text ol { padding-left: 22px; }
article.text li { margin-bottom: 8px; }

.final { text-align: center; }
.final .cta { justify-content: center; }
.final .sub { margin-left: auto; margin-right: auto; }
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer a { color: var(--muted); }

/* ===== макет телефона и живые экраны (anim.js) ===== */
.phone { position: relative; width: min(300px, 76vw); aspect-ratio: 9/19; border-radius: 42px; padding: 10px;
  background: #050805; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 2px #2b3a2f; flex: 0 0 auto; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #0b110d;
  font-size: 12px; color: var(--text); user-select: none; }
.screen .strip { position: absolute; left: 8px; right: 8px; top: 12px; height: 26px; border-radius: 13px; background: rgba(12,18,15,.85);
  display: flex; align-items: center; justify-content: space-around; font-weight: 700; font-size: 11px; color: #cfd8d2; z-index: 3; }
.screen .bar-bottom { position: absolute; left: 8px; right: 8px; bottom: 12px; height: 44px; border-radius: 22px; background: #17241c;
  display: flex; align-items: center; justify-content: center; gap: 6px; z-index: 3; font-size: 11px; font-weight: 600; }
.screen .bar-bottom span { padding: 7px 12px; border-radius: 16px; color: var(--muted); transition: background .3s, color .3s; }
.screen .bar-bottom span.on { background: #3a3a1f; color: var(--car); }

/* «Поиск»: кадр камеры */
.cam { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .5s; }
.cam.on { opacity: 1; }
.cam .frame { position: absolute; left: -18%; top: 0; width: 136%; aspect-ratio: 3/4;
  background: url(img/demo_frame.webp) center/100% 100%; will-change: transform; }
.cam .box { position: absolute; left: 0; top: 0; will-change: transform; opacity: 0; transition: opacity .3s; }
.cam .box.on { opacity: 1; }
.cam .box i { position: absolute; width: 22%; height: 26%; border: 3px solid var(--green); }
.cam .box i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.cam .box i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.cam .box i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.cam .box i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.cam .box .pulse { position: absolute; inset: -6px; animation: grow 0.9s linear infinite; }
.cam .box .pulse i { border-color: rgba(124,252,0,.8); }
@keyframes grow { from { inset: -4px; opacity: .9; } to { inset: -20px; opacity: 0; } }
.cam .tag { position: absolute; left: 0; top: -30px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.cam .tag b { width: 24px; height: 24px; border-radius: 50%; background: rgba(12,18,15,.85); border: 2px solid var(--green);
  display: grid; place-items: center; font-size: 12px; }
.cam .tag em { font-style: normal; background: rgba(0,0,0,.65); padding: 2px 6px; font-size: 11px; }
.cam .hint { position: absolute; left: 0; right: 0; bottom: 120px; text-align: center; font-weight: 800; font-size: 17px;
  color: var(--green); text-shadow: 0 0 6px #000, 0 0 2px #000; opacity: 0; transition: opacity .3s; }
.cam .hint.on { opacity: 1; }
.cam .wave { position: absolute; top: 44%; width: 46px; height: 70px; opacity: 0; transition: opacity .2s; }
.cam .wave.on { opacity: 1; }
.cam .wave.l { left: 4px; } .cam .wave.r { right: 4px; transform: scaleX(-1); }
.cam .wave i { position: absolute; left: 0; top: 0; width: 70px; height: 70px; border-radius: 50%; border: 3px solid transparent;
  border-left-color: var(--green); animation: wave 0.7s linear infinite; }
.cam .wave i:nth-child(2) { animation-delay: .23s; } .cam .wave i:nth-child(3) { animation-delay: .46s; }
@keyframes wave { from { transform: translateX(26px) scale(.4); opacity: 1; } to { transform: translateX(0) scale(1); opacity: 0; } }
.cam .mini { position: absolute; left: 10px; bottom: 66px; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(12,18,15,.85); border: 1px solid #3a4a3f; }
.cam .mini::after { content: "🚗"; position: absolute; left: 6px; top: 30px; font-size: 11px; }
.cam .findbtn { position: absolute; right: 10px; bottom: 66px; width: 60px; height: 60px; border-radius: 50%; background: var(--moss);
  color: #10200a; font-weight: 800; font-size: 10px; display: grid; place-items: center; padding-top: 18px;
  transition: background .3s, box-shadow .3s; }
.cam .findbtn::before { content: "📍"; position: absolute; top: 9px; font-size: 15px; }
.cam .findbtn.hot { background: var(--car); box-shadow: 0 0 0 6px rgba(255,213,79,.25); }

/* «Навигация»: радар */
.radar { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .5s; }
.radar.on { opacity: 1; }
.radar .head { position: absolute; left: 10px; right: 10px; top: 48px; padding: 9px 12px; border-radius: 14px; background: #17241c;
  display: flex; align-items: center; gap: 10px; }
.radar .head b { font-size: 20px; color: var(--text); }
.radar .head small { display: block; color: var(--muted); font-size: 11px; }
.radar svg { position: absolute; left: 0; right: 0; top: 104px; width: 100%; height: calc(100% - 172px); }

/* сигналы */
.signals { display: grid; gap: 16px; }
.sig { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.sig .pat { display: flex; gap: 6px; align-items: center; height: 26px; }
.sig .pat i { display: block; height: 16px; border-radius: 4px; background: #2d4234; }
.sig .pat i.s { width: 16px; } .sig .pat i.l { width: 64px; }
.sig.play .pat i { animation: buzz var(--d, 2.4s) infinite; }
.sig b { display: block; } .sig span { color: var(--muted); font-size: 15px; }
@keyframes buzz { 0%, 100% { background: #2d4234; } }
.sig.play .pat i { animation-name: var(--a); }
@keyframes b1 { 0%,9% { background: var(--green); } 10%,100% { background: #2d4234; } }
@keyframes b2 { 0%,14% { background: #2d4234; } 15%,24% { background: var(--green); } 25%,100% { background: #2d4234; } }
@keyframes b3 { 0%,29% { background: #2d4234; } 30%,39% { background: var(--green); } 40%,100% { background: #2d4234; } }
@keyframes bl { 0%,34% { background: #64b5f6; } 35%,100% { background: #2d4234; } }
@keyframes w1 { 0%,9% { background: var(--warn); } 10%,100% { background: #2d4234; } }
@keyframes w2 { 0%,14% { background: #2d4234; } 15%,24% { background: var(--warn); } 25%,100% { background: #2d4234; } }
@keyframes w3 { 0%,29% { background: #2d4234; } 30%,39% { background: var(--warn); } 40%,100% { background: #2d4234; } }
@media (max-width: 520px) { .sig { grid-template-columns: 1fr; gap: 8px; } }

/* предупреждение об опасном двойнике */
.danger-demo { position: relative; width: min(340px, 86vw); aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: url(img/art/search.webp) center/cover; }
.danger-demo .box { position: absolute; left: 33%; top: 33%; width: 36%; height: 56%; }
.danger-demo .box i { position: absolute; width: 24%; height: 20%; border: 4px solid var(--danger); }
.danger-demo .box i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.danger-demo .box i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.danger-demo .box i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.danger-demo .box i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.danger-demo .box em { position: absolute; left: 0; top: -30px; white-space: nowrap; font-style: normal; font-size: 13px;
  background: rgba(0,0,0,.75); padding: 3px 8px; border-left: 3px solid var(--danger); }
.danger-demo .say { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(40,10,8,.9); border: 1px solid var(--danger); font-size: 14px; animation: say 4s infinite; }
@keyframes say { 0%, 20% { opacity: 0; transform: translateY(8px); } 30%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
