/*
 * /about — «Как и зачем сделан Qualims» (Фаза 7, SITE_IMPROVEMENT_PLAN.md §4 / §8 / Р8).
 *
 * Химик для химиков через специфику и доказательства, не через прилагательные.
 * Слой поверх site.css/tokens.css; грузится только на /about. Доменные детали и
 * changelog-как-доказательство снимают «воздуханство»; никаких выдуманных метрик,
 * отзывов без имён и сток-фото (§4). Фото — слоты-заглушки под реальные снимки.
 */

/* ── Рассказ (читаемая колонка) ── */
.about-story { max-width: 760px; margin: 0 auto; }
.about-story p { font-size: var(--text-md); line-height: 1.85; color: var(--body); margin-bottom: 1.1rem; }
.about-story p.lead-p { font-size: var(--text-lg); line-height: 1.7; color: var(--ink); font-weight: var(--weight-medium); }
.about-story em { font-style: normal; color: var(--accent); font-weight: var(--weight-semibold); }

/* ── Принципы отбора фич ── */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-top: 1.75rem; }
.principle {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
}
.principle .pr-ic {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--accent-subtle); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: .9rem;
}
.principle h4 { font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--ink); margin-bottom: .4rem; }
.principle p { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; margin: 0; }

/* ── Доменные детали (тёмная полоса «это писал химик») ── */
.domain-band { position: relative; overflow: hidden; background: var(--dark-bg); color: #fff; padding: 72px 0; }
.domain-band::after {
  content: ''; position: absolute; inset: -30%; z-index: 0; pointer-events: none; mix-blend-mode: screen;
  background-image:
    radial-gradient(ellipse 55% 45% at 15% 10%, rgba(13, 148, 136, .38) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(59, 130, 246, .26) 0%, transparent 55%);
  animation: aurora-float 27s ease-in-out infinite alternate;
}
.domain-band > .container { position: relative; z-index: 1; }
.domain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; margin-top: 1.75rem; }
.domain-item { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; }
.domain-item i { font-size: 1.4rem; color: var(--accent-light); }
.domain-item h4 { font-size: var(--text-base); font-weight: var(--weight-bold); color: #fff; margin: .6rem 0 .35rem; }
.domain-item p { font-size: var(--text-sm); color: rgba(255, 255, 255, .62); line-height: 1.6; margin: 0; }

/* ── Фото-слоты (под реальные снимки основателя/лаборатории) ── */
.about-photos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.photo-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--surface), var(--bg));
  border: 1px dashed var(--border-muted);
  min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; color: var(--muted);
}
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-frame .pf-ic { font-size: 2rem; color: var(--accent); opacity: .55; }
.photo-frame .pf-cap { font-size: var(--text-xs); margin-top: .6rem; line-height: 1.5; max-width: 200px; }

/* ── Доказательство: changelog ── */
.proof-card {
  max-width: 760px; margin: 0 auto;
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--accent-subtle); border: 1px solid var(--accent-glow);
  border-radius: var(--radius-xl); padding: 1.75rem 1.9rem;
}
.proof-card .proof-ic { font-size: 1.8rem; color: var(--accent); flex-shrink: 0; }
.proof-card h3 { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--ink); margin-bottom: .4rem; }
.proof-card p { font-size: var(--text-sm); color: var(--body); line-height: 1.65; margin: 0 0 .9rem; }

/* ── Прямой контакт ── */
.about-contact { text-align: center; }
.about-contact .email-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--border-muted); border-radius: var(--radius-full);
  padding: .6rem 1.2rem; font-size: var(--text-sm); font-weight: var(--weight-semibold);
  color: var(--accent); cursor: pointer; transition: border-color var(--motion-base) var(--motion-ease), background var(--motion-base) var(--motion-ease);
}
.about-contact .email-btn:hover { border-color: var(--accent); background: var(--accent-subtle); }

/* ── Адаптив ── */
@media (max-width: 760px) {
  .about-photos { grid-template-columns: 1fr; }
  .proof-card { flex-direction: column; gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .domain-band::after { animation: none !important; } }
