/* PsyMap Website — clean modern style */
:root {
  --orange: #FF8C00;
  --blue: #3478F6;
  --green: #34C759;
  --purple: #AF52DE;
  --bg: #F9F9FB;
  --card: #FFFFFF;
  --text: #1D1D1F;
  --text2: #6E6E73;
  --radius: 16px;
  --max-w: 960px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,249,251,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.nav-logo {
  font-size: 20px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-img {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: block;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.lang-switcher {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px; padding-left: 16px;
  border-left: 1px solid rgba(0,0,0,0.1);
  font-size: 14px;
}
.lang-switcher a {
  color: var(--text2);
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}
.lang-switcher a:hover { color: var(--text); }
.lang-switcher a.active { color: var(--blue); font-weight: 600; }
.lang-sep { color: var(--text2); opacity: 0.6; user-select: none; }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-logo {
  width: 88px; height: 88px;
  border-radius: 22px;
  display: block;
  margin: 0 auto 24px;
  object-fit: contain;
}
.hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 12px; }
.hero p.subtitle {
  font-size: 18px; color: var(--text2); max-width: 560px; margin: 0 auto 32px;
}
.hero .cta {
  display: inline-block;
  background: var(--text);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px; font-weight: 600;
  transition: opacity 0.2s;
}
.hero .cta:hover { opacity: 0.85; text-decoration: none; }
.hero .offline-badge {
  display: block; margin-top: 14px;
  font-size: 13px; color: var(--text2);
}

/* Section */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
}
.section-title {
  font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 40px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px; color: #fff;
}
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text2); }

/* Screenshots — один ряд, горизонтальный скролл */
.section-screenshots { padding-top: 40px; }
.screenshots-intro {
  text-align: center;
  color: var(--text2);
  font-size: 15px;
  max-width: 480px;
  margin: -8px auto 32px;
}
.screenshots-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 24px 24px;
  margin: 0 -24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-padding-inline: 24px;
}
.screenshots-grid::after {
  content: '';
  flex-shrink: 0;
  min-width: 16px;
}
.screenshots-grid::-webkit-scrollbar {
  height: 8px;
}
.screenshots-grid::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
}
.screenshots-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}
.screenshot-item {
  margin: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
}
/* Пропорции как у скриншота iPhone (1242×2688) */
.screenshot-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1242 / 2688;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.12);
  background: var(--card);
  display: block;
}
.screenshot-caption {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  text-align: center;
  line-height: 1.35;
  max-width: 160px;
}

/* iPad: крупнее карточки */
@media (min-width: 768px) {
  .screenshot-item { width: 200px; }
  .screenshot-caption { max-width: 200px; font-size: 13px; }
  .screenshot-img { border-radius: 22px; }
}

/* Mac / десктоп: ещё крупнее */
@media (min-width: 1024px) {
  .screenshots-grid {
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }
  .screenshot-item { width: 220px; }
  .screenshot-caption { max-width: 220px; }
}

/* Who */
.who-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.who-tag {
  background: var(--card);
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

/* Disclaimer block */
.disclaimer-block {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  padding: 0 24px;
}
.disclaimer-inner {
  background: rgba(52,120,246,0.06);
  border-radius: var(--radius);
  padding: 24px;
}
.disclaimer-inner h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--blue); }
.disclaimer-inner p { font-size: 13px; color: var(--text2); }

/* Footer */
.footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 13px; color: var(--text2);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-links { margin-bottom: 8px; }
.footer-links a { margin: 0 12px; }

/* --- Inner pages --- */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.page .updated { font-size: 13px; color: var(--text2); margin-bottom: 32px; }
.page h2 { font-size: 20px; font-weight: 600; margin: 32px 0 8px; }
.page p, .page li { font-size: 15px; color: var(--text); margin-bottom: 12px; }

/* FAQ */
.faq-item { margin-bottom: 24px; }
.faq-item .q { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.faq-item .a { font-size: 14px; color: var(--text2); }

/* Evidence */
.evidence-category { margin-bottom: 40px; }
.evidence-category h2 {
  font-size: 18px; font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0,0,0,0.06);
  margin-bottom: 16px;
}
.evidence-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.evidence-item .citation { font-size: 14px; margin-bottom: 6px; }
.evidence-item .relevance { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.evidence-item .link { font-size: 13px; }

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .hero p.subtitle { font-size: 16px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .features-grid { grid-template-columns: 1fr; }
}
