/* =========================================================
   Александр Руднев — портфолио продуктового дизайнера
   Чистая, спокойная вёрстка под rudnev.space.
   Ширина контента — 900px (как у Notion). Иерархия — строгая.
   ========================================================= */

:root {
  --bg: #F7F4EE;
  --bg-2: #EFEAE0;
  --ink: #0B0B0A;
  --ink-2: #2A2A28;
  --muted: #7A766D;
  --line: #DDD6C7;
  --accent: #FF4A1C;
  --accent-soft: rgba(255, 74, 28, 0.08);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --radius: 18px;
  --radius-lg: 28px;

  /* Единый контейнер для всего контента — ровно 900px по центру. */
  --container: 900px;
  --gutter: clamp(20px, 5vw, 40px);

  /* Типографическая лестница (используется на всех страницах). */
  --t-hero: clamp(48px, 10vw, 132px);
  --t-h1: clamp(40px, 6vw, 72px);
  --t-h2: clamp(28px, 3.6vw, 44px);
  --t-h3: clamp(22px, 2.4vw, 28px);
  --t-label: 13px;
  --t-body: 17px;

  /* Ритм. */
  --space-section: clamp(96px, 12vw, 160px);
  --space-block: clamp(40px, 6vw, 80px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

strong {
  font-weight: 600;
  color: var(--ink);
}

/* ====================== NAV ====================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__logo {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 14px;
  border: 1px solid var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease);
}

.nav__logo:hover {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(-12deg);
}

.nav__menu {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav__menu a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}

.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.nav__menu a:hover {
  color: var(--ink);
}

.nav__menu a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 640px) {
  .nav__menu {
    gap: 18px;
    font-size: 13.5px;
  }
}

/* ====================== HERO ====================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px var(--gutter) 80px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  width: max-content;
  margin-bottom: 40px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.2s infinite var(--ease);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 74, 28, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(255, 74, 28, 0); }
}

.hero__title {
  font-size: var(--t-hero);
  line-height: 0.94;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0 0 36px;
}

.hero__title em {
  color: var(--accent);
  font-style: normal;
  font-family: var(--font-sans);
}

.reveal-line {
  display: block;
  overflow: hidden;
  line-height: 0.96;
}

.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  will-change: transform;
}

.reveal-line.is-in > span {
  transform: translateY(0);
}

.reveal-line:nth-child(2) > span {
  transition-delay: 0.12s;
}

.hero__role {
  font-size: clamp(19px, 2.2vw, 26px);
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 500;
}

.hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 48px;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  --pad-x: 22px;
  --pad-y: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}

.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--primary svg {
  transition: transform 0.4s var(--ease);
}

.btn--primary:hover svg {
  transform: translate(3px, -3px) rotate(-12deg);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.hero__meta {
  margin-top: auto;
  padding-top: 80px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.hero__meta a {
  position: relative;
  transition: color 0.25s var(--ease);
}

.hero__meta a:hover {
  color: var(--ink);
}

/* ====================== SECTIONS ====================== */

.section {
  padding: var(--space-section) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

/* Явное разделение подряд идущих секций на лендинге — тонкая линия + воздух. */
.section + .section {
  padding-top: var(--space-section);
  border-top: 1px solid var(--line);
}

.section__header {
  margin-bottom: var(--space-block);
}

.section__label {
  display: inline-block;
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  position: relative;
  padding-left: 22px;
}

.section__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--muted);
  transform: translateY(-50%);
}

.section__title {
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  max-width: 22ch;
}

.section__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  margin-top: 24px;
  max-width: 540px;
  line-height: 1.55;
}

/* ====================== ABOUT ====================== */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 8px;
  max-width: 720px;
}

.about__para {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
}

.tags li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.tags li:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ====================== WORK ====================== */

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 24px;
}

@media (max-width: 640px) {
  .work__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

.case {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.case__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.case__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.case:hover .case__cover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -20px rgba(11, 11, 10, 0.18);
}

.case:hover .case__cover img {
  transform: scale(1.04);
}

.case__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px 24px;
  padding: 0 4px;
}

.case__tag {
  grid-column: 1 / -1;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.case__title {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  max-width: 22ch;
}

.case__arrow {
  font-size: 24px;
  color: var(--muted);
  align-self: end;
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}

.case:hover .case__arrow {
  transform: translate(6px, -6px);
  color: var(--accent);
}

/* ====================== CONTACT ====================== */

.contact__title em {
  color: var(--accent);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 720px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

.contact__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 16px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, #fff 30%, transparent);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.4s var(--ease);
}

.contact__card:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.contact__card:hover .contact__arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

.contact__label {
  grid-column: 1;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.contact__card:hover .contact__label {
  color: color-mix(in srgb, var(--bg) 60%, transparent);
}

.contact__value {
  grid-column: 1;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.contact__arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}

/* ====================== FOOTER ====================== */

.footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--gutter);
  margin-top: 80px;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ====================== REVEAL ANIMATIONS ====================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.about__para.is-in:nth-child(2) { transition-delay: 0.1s; }
.about__para.is-in:nth-child(3) { transition-delay: 0.2s; }

.case.is-in { transition-delay: calc(var(--i, 0) * 0.08s); }

/* =========================================================
   INNER PAGES (cases + cv)
   ========================================================= */

.page--inner {
  padding-top: 76px;
}

/* ---------- CASE PAGE ---------- */

.case-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
}

.case-hero {
  margin-bottom: var(--space-block);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.case-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 48px;
  transition: color 0.25s var(--ease), transform 0.3s var(--ease);
}

.case-hero__back:hover {
  color: var(--accent);
  transform: translateX(-3px);
}

.case-hero__tag {
  display: inline-block;
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.case-hero__title {
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 28px;
  max-width: 18ch;
}

.case-hero__link {
  display: inline-block;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.case-hero__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.case-body {
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--ink-2);
}

/* h3 — лид-подзаголовок (один в начале). */
.case-body h3 {
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 400;
  font-family: var(--font-serif);
  font-style: italic;
  margin: 8px 0 56px;
  color: var(--ink-2);
  max-width: 28ch;
}

/* h4 — основные разделы кейса (Контекст, Приоритезация и т.д.). */
.case-body h4 {
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  text-transform: none;
  color: var(--ink);
  margin: 80px 0 24px;
}

/* h2 на всякий случай (Notion-генерация). */
.case-body h2 {
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 96px 0 28px;
  color: var(--ink);
}

.case-body p {
  margin: 0 0 20px;
  max-width: 68ch;
}

.case-body ul,
.case-body ol {
  padding-left: 22px;
  margin: 0 0 22px;
  max-width: 68ch;
}

.case-body li {
  margin-bottom: 10px;
}

.case-body ol > li::marker {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.case-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.case-body a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.case-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  max-width: 60ch;
}

.case-body hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 64px 0;
}

.case-body .image {
  margin: 48px 0;
}

.case-body .image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.case-body .image figcaption {
  display: none;
}

.case-body .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
  align-items: start;
}

@media (max-width: 720px) {
  .case-body .cols {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}

.case-body .col > *:first-child {
  margin-top: 0;
}

.case-body .callout {
  display: flex;
  gap: 14px;
  padding: 22px 24px;
  background: var(--bg-2);
  border-radius: var(--radius);
  margin: 32px 0;
}

.case-body .callout__icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.case-body .bookmark {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 14px;
  color: var(--ink-2);
  border-bottom-width: 1px;
}

.case-body .bookmark:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.case-body details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--bg-2);
}

.case-body summary {
  cursor: pointer;
  font-weight: 500;
}

/* Prev / Next */
.case-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.case-nav__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, #fff 30%, transparent);
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.case-nav__link--right {
  text-align: right;
  align-items: flex-end;
}

.case-nav__link:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.case-nav__link:hover .case-nav__name {
  color: var(--bg);
}

.case-nav__name {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color 0.3s var(--ease);
}

@media (max-width: 640px) {
  .case-nav {
    grid-template-columns: 1fr;
  }
}

/* ---------- CV PAGE ---------- */

.cv-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--gutter) 32px;
}

.cv-hero .section__label {
  margin-bottom: 32px;
}

.cv-hero__title {
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 40px;
}

.cv-hero__sub {
  display: block;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--muted);
  margin-top: 14px;
}

.cv-hero__meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: var(--muted);
}

.cv-hero__meta a {
  position: relative;
  transition: color 0.25s var(--ease);
}

.cv-hero__meta a:hover {
  color: var(--ink);
}

/* Секции CV — единый ритм, заголовки крупные, разделители тонкие. */
.cv-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter) 0;
}

/* На CV — крупный вертикальный воздух между секциями + линия-разделитель. */
.cv-section + .cv-section {
  padding-top: var(--space-section);
  border-top: 1px solid var(--line);
}

.cv-section:last-of-type {
  padding-bottom: 96px;
}

.cv-section__head {
  display: block;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.cv-section__head .section__label {
  margin: 0 0 16px;
}

.cv-section__title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
}

/* Читаемый prose-блок. */
.prose {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}

.prose p {
  margin: 0 0 22px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink);
}

/* Skills */

.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .skills {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.skills__title {
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}

.skills__text {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  max-width: 60ch;
}

.skills__text--tools {
  font-size: 15.5px;
  line-height: 1.8;
}

.skills__tools {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* Experience — вертикальная иерархия. */

.exp {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exp__item {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.exp__item:first-child {
  border-top: 0;
  padding-top: 8px;
}

.exp__period {
  display: block;
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}

.exp__company {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
}

.exp__company a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.exp__company a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.exp__ext {
  color: var(--muted);
  font-size: 0.7em;
  margin-left: 4px;
  vertical-align: middle;
}

.exp__company a:hover .exp__ext {
  color: var(--accent);
}

.exp__role {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 24px;
}

.exp__role strong {
  color: var(--ink-2);
  font-weight: 600;
}

.exp__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 68ch;
}

.exp__points {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 68ch;
}

.exp__points li {
  position: relative;
  padding-left: 22px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.exp__points li:last-child {
  margin-bottom: 0;
}

.exp__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--muted);
}

.exp__points strong {
  color: var(--ink);
  font-weight: 600;
}

/* ====================== LIGHTBOX ====================== */

/* Картинки кейсов кликабельны — открываются на весь экран. */
.case-body figure.image img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 64px);
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  cursor: zoom-out;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.55);
  transform: scale(0.96);
  transition: transform 0.45s var(--ease);
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent);
  background: transparent;
  color: var(--bg);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.3s var(--ease);
}

.lightbox__close:hover {
  background: color-mix(in srgb, var(--bg) 16%, transparent);
  transform: rotate(90deg);
}

/* ====================== REDUCED MOTION ====================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-line > span {
    opacity: 1 !important;
    transform: none !important;
  }
}
