/* Longread landing — дефектовка АКПП */

.lr {
  --lr-max: 1120px;
  --lr-prose: 680px;
}

.lr-hero {
  position: relative;
  min-height: min(92svh, 820px);
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 0 3.5rem;
  overflow: hidden;
}

.lr-hero__media {
  position: absolute;
  inset: 0;
}

.lr-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  animation: lrHeroZoom 16s var(--ease-out) forwards;
}

@keyframes lrHeroZoom {
  to { transform: scale(1); }
}

.lr-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 12, 14, 0.94) 0%, rgba(10, 12, 14, 0.72) 45%, rgba(10, 12, 14, 0.4) 100%),
    linear-gradient(to top, rgba(10, 12, 14, 0.95) 0%, transparent 48%);
}

.lr-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--lr-max));
  margin-inline: auto;
  max-width: 720px;
}

.lr-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.lr-hero__crumb a {
  color: var(--muted);
  transition: color 0.2s;
}

.lr-hero__crumb a:hover {
  color: var(--accent);
}

.lr-hero__crumb span[aria-hidden="true"] {
  color: var(--steel);
}

.lr-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.lr-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.lr-hero__lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.lr-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.lr-hero__meta strong {
  color: var(--text);
  font-weight: 600;
}

/* Progress / TOC */

.lr-toc {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(10, 12, 14, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.lr-toc__inner {
  width: min(100% - 1.5rem, var(--lr-max));
  margin-inline: auto;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  scrollbar-width: thin;
}

.lr-toc a {
  flex: 0 0 auto;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lr-toc a:hover,
.lr-toc a.is-active {
  color: var(--accent);
  border-color: var(--line-strong);
  background: var(--accent-dim);
}

/* Sections */

.lr-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.lr-section--alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.lr-section--dark {
  position: relative;
  overflow: hidden;
}

.lr-section__bg {
  position: absolute;
  inset: 0;
}

.lr-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.22) saturate(0.75);
}

.lr-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 12, 14, 0.92), rgba(10, 12, 14, 0.7));
}

.lr-wrap {
  width: min(100% - 2rem, var(--lr-max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.lr-prose {
  width: min(100%, var(--lr-prose));
}

.lr-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lr-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.lr-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

.lr-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
  margin-bottom: 2rem;
}

.lr-text {
  color: #c5ced8;
  font-size: 1.02rem;
  line-height: 1.7;
}

.lr-text + .lr-text {
  margin-top: 1rem;
}

/* Stats */

.lr-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2rem;
}

.lr-stats li {
  background: var(--bg);
  padding: 1.35rem 1.25rem;
}

.lr-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.lr-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Split media */

.lr-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.lr-split--rev {
  grid-template-columns: 0.95fr 1.05fr;
}

.lr-split--rev .lr-split__media {
  order: 2;
}

.lr-split__media {
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 3;
}

.lr-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lr-split__caption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Checklist */

.lr-check {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.lr-check li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  align-items: start;
}

.lr-check__mark {
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.lr-check__mark::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
}

.lr-check strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.lr-check p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Table */

.lr-table-wrap {
  margin-top: 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.lr-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}

.lr-table th,
.lr-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.lr-table th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg);
}

.lr-table tr:last-child td {
  border-bottom: none;
}

.lr-table tbody tr {
  background: var(--bg-elevated);
}

.lr-table tbody tr:nth-child(even) {
  background: var(--surface);
}

.lr-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.lr-table td {
  color: #c5ced8;
}

.lr-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lr-badge--ok {
  background: rgba(72, 187, 120, 0.15);
  color: #68d391;
}

.lr-badge--warn {
  background: var(--accent-dim);
  color: var(--accent);
}

.lr-badge--bad {
  background: rgba(245, 101, 101, 0.15);
  color: #fc8181;
}

/* Zones grid */

.lr-zones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2rem;
}

.lr-zone {
  background: var(--bg);
  padding: 1.5rem 1.35rem;
}

.lr-zone__num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.lr-zone ul {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.lr-zone li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.lr-zone li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

/* Process steps */

.lr-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  counter-reset: flow;
}

.lr-flow li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--accent);
}

.lr-flow__n {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.75rem;
}

.lr-flow p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.45rem;
  line-height: 1.5;
}

/* Callout */

.lr-callout {
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
}

.lr-callout p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.lr-callout strong {
  color: var(--accent);
}

/* Compare */

.lr-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2rem;
}

.lr-compare__col {
  background: var(--bg);
  padding: 1.5rem 1.35rem;
}

.lr-compare__col h3 {
  margin-bottom: 1rem;
}

.lr-compare__col ul {
  display: grid;
  gap: 0.55rem;
}

.lr-compare__col li {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}

.lr-compare__col li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.lr-compare__col--plus li::before {
  content: "+";
}

/* Gallery strip */

.lr-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.65rem;
  margin-top: 2rem;
}

.lr-gallery figure {
  overflow: hidden;
  background: var(--surface);
  margin: 0;
}

.lr-gallery figure:first-child {
  grid-row: span 2;
}

.lr-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
  transition: transform 0.6s var(--ease-out);
}

.lr-gallery figure:hover img {
  transform: scale(1.04);
}

.lr-gallery figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

/* FAQ */

.lr-faq {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2rem;
}

.lr-faq details {
  background: var(--bg);
  padding: 1.15rem 1.25rem;
}

.lr-faq summary {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.lr-faq summary::-webkit-details-marker {
  display: none;
}

.lr-faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.lr-faq details[open] summary::after {
  content: "–";
}

.lr-faq details p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 46rem;
}

/* Related */

.lr-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2rem;
}

.lr-related a {
  background: var(--bg);
  padding: 1.35rem 1.25rem;
  display: grid;
  gap: 0.5rem;
  transition: background 0.25s;
  min-height: 100%;
}

.lr-related a:hover {
  background: var(--surface);
}

.lr-related span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.lr-related strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.lr-related p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* CTA band */

.lr-cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--line-strong);
  background: rgba(18, 22, 26, 0.88);
  backdrop-filter: blur(10px);
}

.lr-cta h2 {
  margin-bottom: 0.5rem;
}

.lr-cta p {
  color: var(--muted);
}

.lr-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lr-cta .btn {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .lr-stats,
  .lr-zones,
  .lr-compare,
  .lr-related,
  .lr-flow {
    grid-template-columns: 1fr 1fr;
  }

  .lr-split,
  .lr-split--rev {
    grid-template-columns: 1fr;
  }

  .lr-split--rev .lr-split__media {
    order: 0;
  }

  .lr-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .lr-gallery figure:first-child {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .lr-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .lr-stats,
  .lr-zones,
  .lr-compare,
  .lr-related,
  .lr-flow,
  .lr-gallery {
    grid-template-columns: 1fr;
  }

  .lr-gallery figure:first-child {
    grid-column: auto;
  }

  .lr-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .lr-cta__actions {
    flex-direction: column;
  }

  .lr-cta .btn {
    width: 100%;
  }

  .lr-toc {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lr-hero__media img {
    animation: none;
  }
}
