/* ── Стили кейс-страниц ── */

/* Section shell */
section.cs {
  padding: 80px 0;
  border-bottom: var(--bw) solid var(--ink);
}

/* Case Hero */
.case-hero {
  padding: 56px 0 52px;
  border-bottom: var(--bw) solid var(--ink);
}
.case-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.case-eyebrow .line {
  flex: 1;
  min-width: 30px;
  height: 2px;
  background: var(--ink);
}
.case-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--bw) solid var(--ink);
  background: var(--ink);
  gap: var(--bw);
  margin-top: 40px;
}
.case-meta-item {
  background: var(--paper);
  padding: 20px 22px 18px;
}
.case-meta-item .lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 8px;
}
.case-meta-item .val {
  font-family: var(--display);
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}

/* Body text */
.body-text h2 {
  margin-bottom: 22px;
}
.body-text h3 {
  font-size: clamp(17px, 1.6vw, 22px);
  margin-bottom: 14px;
  margin-top: 36px;
}
.body-text p {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--ink-60);
  font-weight: 500;
}
.body-text p:last-child {
  margin-bottom: 0;
}

/* Layouts */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.two-col-rev {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.two-col > *,
.two-col-rev > * {
  min-width: 0;
}

/* Checklist */
.checklist {
  list-style: none;
  border-top: 2px solid var(--ink);
  margin-top: 24px;
}
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 2px solid rgba(12, 12, 13, 0.1);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.checklist li:last-child {
  border-bottom: none;
}
.checklist li::before {
  content: '→';
  color: var(--accent-ink);
  font-family: var(--mono);
  font-weight: 700;
  flex-shrink: 0;
}

/* Detail card */
.detail-card {
  border: var(--bw) solid var(--ink);
  padding: 28px;
  box-shadow: 7px 7px 0 var(--ink);
}
.detail-row {
  padding: 13px 0;
  border-bottom: 1px solid rgba(12, 12, 13, 0.12);
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-row .dr-lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-40);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.detail-row .dr-val {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

/* Image blocks */
.img-full {
  border-top: var(--bw) solid var(--ink);
  border-bottom: var(--bw) solid var(--ink);
}
.img-full img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}
.img-placeholder {
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* Results grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--bw) solid var(--ink);
  background: var(--ink);
  gap: var(--bw);
  margin-bottom: 52px;
}
.result-item {
  background: var(--paper);
  padding: 24px 22px 20px;
}
.result-item .rv {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 0.84;
  color: var(--ink);
}
.result-item .rv small {
  font-family: var(--mono);
  font-size: 0.32em;
  font-weight: 700;
  color: var(--accent-ink);
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 0.3em;
}
.result-item .rl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-top: 11px;
  line-height: 1.4;
}

/* Quote block */
.case-quote {
  background: var(--dark);
  color: var(--paper-on-dark);
  padding: 80px 0;
  border-top: 8px solid var(--accent);
  border-bottom: 8px solid var(--accent);
}
.qt {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 26px);
  text-transform: uppercase;
  line-height: 1.32;
  color: var(--paper-on-dark);
  margin-bottom: 28px;
  max-width: 52ch;
}
.qt::before {
  content: '"';
  color: var(--accent);
  display: block;
  font-size: 1.5em;
  line-height: 0.65;
  margin-bottom: 10px;
}
.qa {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-on-dark-60);
}
.qa strong {
  color: var(--paper-on-dark);
}
.qt-big {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(100px, 12vw, 180px);
  color: rgba(255, 45, 16, 0.2);
  line-height: 0.7;
  flex-shrink: 0;
  padding-right: 16px;
}

/* Inline quote */
.inline-quote {
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--paper-2);
}
.inline-quote .iq-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 19px);
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 12px;
}
.inline-quote .iq-text::before {
  content: '"';
  color: var(--accent-ink);
  margin-right: 0.1em;
}
.inline-quote .iq-attr {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.inline-quote .iq-attr strong {
  color: var(--ink);
}

/* Case table (comparison tables: before/after, model versions) */
.case-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
}
.case-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}
.case-table th {
  text-align: left;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
}
.case-table td {
  padding: 10px 12px;
  font-size: 15px;
  border-bottom: 1px solid rgba(12, 12, 13, 0.12);
}
.case-table tbody tr:last-child td {
  border-bottom: none;
}

/* Detail card accent modifier (security/red-team findings) */
.detail-card--accent {
  border-color: var(--accent);
  box-shadow: 7px 7px 0 var(--accent-ink);
}
.detail-card--accent p {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 16px;
}
.detail-card--accent p:last-child {
  margin-bottom: 0;
}

/* CTA / Form section */
.cta-section {
  background: var(--dark);
  color: var(--paper-on-dark);
  padding: 80px 0;
}
.cta-section .sec-head {
  border-color: var(--dark-line);
}
.cta-section .sec-head .idx {
  color: var(--accent-2);
}
.cta-section .sec-head .ttl {
  color: var(--accent-2);
}
.cta-section .sec-head .meta {
  color: var(--paper-on-dark-60);
}

/* Responsive */
@media (max-width: 1020px) {
  .two-col,
  .two-col-rev {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .case-meta-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  section.cs {
    padding: 56px 0;
  }
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
  .case-quote .two-col {
    grid-template-columns: 1fr;
  }
  .qt-big {
    display: none;
  }
}

/* ── Screenshot Slider ── */

.screenshot-slider {
  position: relative;
  overflow: hidden;
  border: var(--bw) solid var(--ink);
  background: var(--paper-2);
  max-width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
}

.slider-slide {
  flex: 0 0 100%;
  cursor: zoom-in;
}

.slider-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  padding: 10px 14px;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.slider-btn:hover {
  transform: translateY(calc(-50% - 2px)) translateX(-2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.slider-btn:active {
  transform: translateY(calc(-50% + 2px)) translateX(2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.slider-btn--prev {
  left: 12px;
}

.slider-btn--next {
  right: 12px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 10px;
  background: var(--paper-2);
  border-top: var(--bw) solid var(--ink);
}

.slider-dot {
  width: 10px;
  height: 10px;
  background: transparent;
  border: 2px solid var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.slider-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── Lightbox ── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lb-img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border: var(--bw) solid rgba(255, 255, 255, 0.15);
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 2;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.lb-close:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.lb-nav {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  padding: 14px 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.lb-nav:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.lb-nav:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* ── Article page ── */

.art-h1 {
  font-size: clamp(36px, 5.5vw, 80px);
  margin-bottom: 28px;
}

.case-hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 52ch;
  border-left: var(--bw) solid var(--accent);
  padding-left: 18px;
  color: var(--ink);
  font-weight: 500;
}

.art-rubric {
  color: var(--accent-ink);
}

.art-year {
  color: var(--ink-40);
}

.art-body {
  max-width: 760px;
}

.art-footnote {
  background: var(--paper-2);
  border-left: var(--bw) solid var(--paper-2);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.art-footnote p {
  font-size: 14px;
  color: var(--ink-40);
  font-style: italic;
  margin-bottom: 0;
}

.art-img {
  width: 100%;
  display: block;
  border: var(--bw) solid var(--ink);
  margin: 32px 0;
}

.art-card-img {
  height: 260px;
  background: var(--dark);
  color: var(--accent);
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0.06em;
}

.art-cta-idx {
  font-size: 32px;
  line-height: 1;
}

@media (max-width: 760px) {
  .art-card-img {
    height: 200px;
  }
}

@media (max-width: 760px) {
  .slider-slide img {
    height: 240px;
  }

  .slider-btn {
    padding: 8px 10px;
    font-size: 14px;
    box-shadow: none;
  }

  .slider-btn:hover {
    box-shadow: none;
  }

  .lb-nav {
    padding: 10px 14px;
    font-size: 16px;
  }
}
