/* =========================================================
   Нейродиагностика мозговой активности — page-specific styles.
   Shares tokens, header/footer, buttons, .service-card and
   .process-step components with css/style.css (loaded first).
   ========================================================= */

/* ---------- consistent section rhythm ----------
   style.css sections (.services, .process, .about, .contact) default to
   5rem/4.5rem padding for index.html's alternating-background layout;
   on this page backgrounds are unified (see #process below), so that much
   padding stacks into an oversized gap. Standardize the gap here instead. */
#not-free, #what, #process, #triggers, #report, #zapis, #faq { padding: 3.6rem 0; }

/* ---------- hero ---------- */
.diag-hero { position: relative; padding: 3.4rem 0 3.6rem; overflow: hidden; }
.diag-hero-canvas-wrap {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none;
}
.diag-hero .wrap { position: relative; z-index: 1; }
.diag-hero-row { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3rem; }
.diag-hero-copy { max-width: 620px; }
.diag-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 0.9rem; }
.diag-hero h1 em { font-style: normal; color: var(--teal); }
.diag-hero-lead { color: var(--ink-soft); font-size: 1.06rem; max-width: 56ch; margin-bottom: 1.8rem; }
.diag-hero-lead strong { color: var(--ink); }
.diag-hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.4rem; }
.diag-hero-price { color: var(--ink-soft); font-size: 0.9rem; max-width: 56ch; }
.diag-hero-price b { color: var(--ink); }

.diag-hero-visual { position: relative; }
.diag-hero-img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 28px; box-shadow: var(--shadow);
}
.diag-hero-callout {
  position: absolute; left: 1.4rem; bottom: 1.4rem; max-width: 300px;
  background: var(--paper); border-radius: 16px; box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem;
}
.diag-hero-callout-label {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.72rem; color: var(--gold);
  margin: 0 0 0.4em;
}
.diag-hero-callout p:last-child { color: var(--ink-soft); font-size: 0.86rem; margin: 0; }

@media (max-width: 900px) {
  .diag-hero-row { grid-template-columns: 1fr; }
  .diag-hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .diag-hero-copy { max-width: none; }
}

/* ---------- what you get: Q&A grid ---------- */
.diag-qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.diag-qa-card {
  background: var(--paper-raised); border-top: 4px solid var(--gold);
  border-radius: 16px; box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.5rem;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.diag-qa-card:hover { transform: translateY(-4px); }
.diag-qa-card--wide { grid-column: span 2; }
.diag-qa-num {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  margin-bottom: 1.1rem;
}
.diag-qa-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.diag-qa-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; flex-grow: 1; }

.diag-qa-summary {
  max-width: none;
  margin: 1.8rem 0 0; padding: 1.4rem 1.7rem;
  background: color-mix(in srgb, var(--ink) 5%, var(--paper-raised));
  border: 1px solid var(--line); border-radius: 16px;
  color: var(--ink); font-size: 1rem;
}

@media (max-width: 980px) {
  .diag-qa-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .diag-qa-grid { grid-template-columns: 1fr; }
  .diag-qa-card--wide { grid-column: span 1; }
}

/* ---------- process text + photo carousel ---------- */
/* .process is shared with index.html (white band there); on this page it
   should blend with the sections above it instead of standing out. */
#process { background: var(--paper); }

.diag-process-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; margin-bottom: 2.8rem; }
.diag-process-text { display: grid; gap: 0.9rem; color: var(--ink-soft); font-size: 1.02rem; }
.diag-process-text p { margin: 0; }
.diag-process-text strong { color: var(--ink); }

/* brain-training-cutout.png has its black background keyed out to alpha
   (see brain-training.webp for the original), so it floats directly on the
   page like the glow on index.html's teal promo band — no card needed. */
.diag-process-visual { display: flex; align-items: center; justify-content: center; }
.diag-process-brain { width: 100%; max-width: 420px; }

@media (max-width: 900px) {
  .diag-process-row { grid-template-columns: 1fr; }
  .diag-process-visual { order: -1; max-width: 340px; margin: 0 auto; }
}

.diag-carousel-frame { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.diag-carousel-track { display: flex; transition: transform 0.5s ease; }
.diag-carousel-slide { flex: 0 0 100%; }
.diag-carousel-slide img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 15%; }
.diag-carousel-callout {
  position: absolute; left: 1.6rem; bottom: 1.6rem; max-width: 340px;
  background: var(--paper); border-radius: 16px; box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem;
}
.diag-carousel-callout-label {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 0.72rem; color: var(--gold); margin: 0 0 0.4em;
}
.diag-carousel-callout p:last-child { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

.diag-carousel-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.3rem; flex-wrap: wrap;
}
.diag-carousel-nav { display: flex; align-items: center; gap: 1.4rem; }
.diag-carousel-arrows { display: flex; gap: 0.6rem; }
.diag-carousel-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper-raised); color: var(--ink); display: flex;
  align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.diag-carousel-arrow:hover { border-color: var(--gold); }
.diag-carousel-dots { display: flex; gap: 0.5rem; }
.diag-carousel-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line);
  cursor: pointer; padding: 0;
}
.diag-carousel-dot.is-active { background: var(--gold); }
.diag-carousel-caption { color: var(--ink-soft); font-size: 0.86rem; }

@media (max-width: 640px) {
  .diag-carousel-callout { position: static; margin-top: 1rem; max-width: none; }
  .diag-carousel-controls { justify-content: center; }
  .diag-carousel-caption { width: 100%; text-align: center; }
}

/* ---------- science approach ---------- */
.diag-science { position: relative; padding: 3.6rem 0; overflow: hidden; }
.diag-science-wave {
  position: absolute; top: 0; left: 0; width: 100%; height: 130px;
  z-index: 0; opacity: 0.8; pointer-events: none; color: var(--line);
}
.diag-science .wrap { position: relative; z-index: 1; }
.diag-science-eyebrow { display: flex; align-items: center; gap: 0.7em; }
.diag-science-eyebrow .tag-new { flex-shrink: 0; white-space: nowrap; }
.diag-science-heading { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 16ch; margin-bottom: 2.8rem; }

.diag-science-card {
  display: grid; grid-template-columns: auto 1fr; gap: 2.2rem; align-items: center;
  background: var(--paper-raised); border-radius: 28px; box-shadow: var(--shadow);
  padding: 2.4rem 2.6rem; margin-bottom: 1.8rem;
}
.diag-science-photo {
  width: 190px; height: 190px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--gold-soft);
}
.diag-science-kicker {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.78rem; color: var(--gold); margin: 0 0 0.6em;
}
.diag-science-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 0.8rem; }
.diag-science-text { color: var(--ink-soft); margin-bottom: 1.2rem; }
.diag-science-text strong { color: var(--ink); }
.diag-science-name { font-weight: 700; color: var(--ink); margin: 0; }
.diag-science-role { font-weight: 700; color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

.diag-science-quote {
  position: relative; padding-left: 2.6rem; color: var(--ink); font-weight: 600; font-size: 1.05rem;
  max-width: 72ch; margin: 0;
}
.diag-science-quote::before {
  content: ""; position: absolute; left: 0; top: 0.7em; width: 34px; height: 2px; background: var(--gold);
}

@media (max-width: 720px) {
  .diag-science-card { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.6rem; }
  .diag-science-quote { padding-left: 2rem; }
}

/* ---------- callout ---------- */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  background: var(--paper-raised); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--facet-cut)) 0, 100% var(--facet-cut), 100% 100%, 0 100%);
  padding: 1.7rem 1.9rem; box-shadow: var(--shadow);
}
.callout-mark {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--teal);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
}
.callout h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.callout p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
@media (max-width: 560px) { .callout { grid-template-columns: 1fr; } }

/* ---------- trigger quotes ---------- */
.trigger-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.trigger-card {
  background: var(--paper-raised); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--facet-cut)) 0, 100% var(--facet-cut), 100% 100%, 0 100%);
  padding: 1.5rem 1.7rem; box-shadow: var(--shadow);
}
.trigger-card p {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.06rem; color: var(--ink); margin: 0 0 0.6rem;
}
.trigger-card span { font-size: 0.8rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
@media (max-width: 700px) { .trigger-grid { grid-template-columns: 1fr; } }

/* ---------- value for parent ---------- */
.diag-value { position: relative; padding: 3.6rem 0; overflow: hidden; }
.diag-value-wave {
  position: absolute; top: 0; left: 0; width: 100%; height: 130px;
  z-index: 0; opacity: 0.8; pointer-events: none; color: var(--line);
}
.diag-value .wrap { position: relative; z-index: 1; }
.diag-value-row { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3.2rem; }

.diag-value-stat { display: flex; align-items: baseline; gap: 0.7em; margin: 0 0 0.4rem; }
.diag-value-num { font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; color: var(--teal); line-height: 1; }
.diag-value-unit {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.9rem; color: var(--gold);
}
.diag-value-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1.1rem; }
.diag-value-text { color: var(--ink-soft); margin-bottom: 1.4rem; }
.diag-value-text strong { color: var(--ink); }

.diag-value-quote {
  border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0;
  background: var(--paper-raised); padding: 1.3rem 1.6rem;
  display: grid; gap: 0.9rem; color: var(--ink); max-width: none;
}
.diag-value-quote p { margin: 0; max-width: none; }
.diag-value-quote strong { color: var(--teal); }

.diag-value-visual { position: relative; }
.diag-value-img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 28px; box-shadow: var(--shadow);
}
.diag-value-callout {
  position: absolute; right: 1.4rem; bottom: 1.4rem; max-width: 300px;
  background: var(--paper); border-radius: 16px; box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem;
}
.diag-value-callout-label {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.72rem; color: var(--gold);
  margin: 0 0 0.4em;
}
.diag-value-callout p:last-child { color: var(--ink-soft); font-size: 0.86rem; margin: 0; }

@media (max-width: 900px) {
  .diag-value-row { grid-template-columns: 1fr; }
  .diag-value-visual { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------- report mock ---------- */
.report-card {
  background: var(--paper-raised); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--facet-cut)) 0, 100% var(--facet-cut), 100% 100%, 0 100%);
  box-shadow: var(--shadow); overflow: hidden;
}
.report-head {
  padding: 1.4rem 1.7rem; border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
}
.report-head b { font-family: var(--font-display); font-size: 1.15rem; }
.report-head .meta { font-size: 0.82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.report-body { padding: 1.6rem 1.7rem; display: grid; gap: 1.6rem; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 760px) { .report-body { grid-template-columns: 1fr; } }

.bars { display: grid; gap: 0.7rem; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 38px; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--ink-soft); }
.bar-track { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--teal)); }
.report-notes { font-size: 0.92rem; color: var(--ink-soft); }
.report-notes b { color: var(--ink); }
.report-notes p + p { margin-top: 0.8rem; }
.report-tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-soft); padding: 0.9rem 1.7rem; border-top: 1px solid var(--line);
}

/* ---------- pricing ---------- */
.pricing-card {
  background: var(--paper-raised); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--facet-cut)) 0, 100% var(--facet-cut), 100% 100%, 0 100%);
  padding: 2rem 1.9rem; box-shadow: var(--shadow);
}
.pricing-num { font-family: var(--font-display); font-size: 2.6rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.pricing-num sup { font-size: 1.15rem; top: -0.9rem; position: relative; color: var(--ink-soft); }
.pricing-meta { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.4rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--teal); font-weight: 400; flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); font-size: 0.96rem; margin-top: 0.8rem; max-width: 64ch; }

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