/* Общий стиль страниц проектов (тема совпадает с главной) */
:root {
  --bg: #0a0a0c; --bg-soft: #121216; --card: #16161c; --card-hi: #1c1c24;
  --line: #26262f; --ink: #f4f4f6; --muted: #a0a0ac; --muted-2: #6c6c78;
  --accent: #ff6a2b; --accent-2: #ffb347; --green: #4ade80; --radius: 18px; --maxw: 980px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'JetBrains Mono', monospace; }
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% -5%, rgba(255,106,43,.16), transparent 60%),
    radial-gradient(500px 400px at 5% 10%, rgba(255,179,71,.08), transparent 55%);
}
main, header { position: relative; z-index: 1; }

/* nav */
header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(10,10,12,.7); border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #160a04;
  font-weight: 700; padding: 11px 20px; border-radius: 999px; font-size: 15px; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s; box-shadow: 0 6px 24px rgba(255,106,43,.28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,106,43,.4); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* project hero */
.proj-hero { padding: 64px 0 36px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 26px; transition: color .2s; }
.back:hover { color: var(--accent); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.proj-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.proj-hero .sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin-bottom: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tag { font-size: 13px; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 12px; border-radius: 8px; }
.badge { font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--bg-soft); }
.badge.live { color: var(--green); border-color: rgba(74,222,128,.3); }

/* browser frame + screenshots */
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0d0d11; box-shadow: 0 20px 50px rgba(0,0,0,.45); margin: 14px 0; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #1a1a20; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.browser-bar .r{background:#ff5f57}.browser-bar .y{background:#febc2e}.browser-bar .g{background:#28c840}
.browser-url { margin-left: 10px; font-size: 12px; color: var(--muted-2); background: #0d0d11; padding: 5px 14px; border-radius: 6px; flex: 1; font-family:'JetBrains Mono',monospace; }
.browser img { display: block; width: 100%; }

/* phone / telegram mockup */
.phone-wrap { display: flex; justify-content: center; margin: 18px 0; }
.phone { width: 100%; max-width: 340px; border: 9px solid #1a1a20; border-radius: 34px; background: #0e1621; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.tg-head { background: #17212b; padding: 14px 16px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #0b1119; }
.tg-head .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#5ec6ff,#2b88d8); flex: none; }
.tg-head b { font-size: 14px; } .tg-head .st { font-size: 11px; color: #5ec6ff; }
.tg-body { padding: 16px 14px; background: #0e1621; min-height: 280px; display: flex; flex-direction: column; gap: 9px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.msg.in { background: #182533; color: #e6edf3; align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.out { background: #2b5278; color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.tg-kb { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 92%; }
.tg-kb span { background: #182533; color: #5ec6ff; font-size: 12px; padding: 7px 11px; border-radius: 9px; border: 1px solid #233444; }

/* sections */
.proj-section { padding: 30px 0; }
.proj-section h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.proj-section p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.proj-section p strong { color: var(--ink); font-weight: 600; }

/* spec grid Задача/Решение/Результат/Роль */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 4px; }
@media (max-width: 720px){ .spec-grid { grid-template-columns: 1fr; } }
.spec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.spec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-2); margin-bottom: 10px; }
.spec p { color: var(--muted); font-size: 15px; margin: 0; }

/* feature list */
.features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media (max-width: 720px){ .features { grid-template-columns: 1fr; } }
.features li { color: var(--muted); font-size: 15px; padding-left: 26px; position: relative; }
.features li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.features li b { color: var(--ink); font-weight: 600; }

/* CTA */
.proj-cta { background: linear-gradient(135deg, rgba(255,106,43,.12), rgba(255,179,71,.05)); border: 1px solid rgba(255,106,43,.25); border-radius: 26px; padding: 48px 36px; text-align: center; margin: 40px 0; }
.proj-cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.proj-cta p { color: var(--muted); font-size: 17px; max-width: 460px; margin: 0 auto 28px; }
.proj-cta .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted-2); font-size: 14px; text-align: center; margin-top: 20px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (max-width: 720px){ nav { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 10px 0; } .nav-links { width: 100%; gap: 14px; } }
