/* UXPilot design system — v2 portfolio */

:root {
  --v2-primary: #2563eb;
  --v2-accent: #4f46e5;
  --v2-surface: #ffffff;
  --v2-background: #f8fafc;
  --v2-text: #0f172a;
  --v2-muted: #64748b;
  --v2-border: #e2e8f0;

  /* Typography scale */
  --v2-font-sans: 'Inter', system-ui, sans-serif;
  --v2-display-size: 2.25rem;       /* 36px — hero h1 mobile */
  --v2-display-size-lg: 3.75rem;    /* 60px — hero h1 desktop */
  --v2-lead-size: 1.125rem;         /* 18px */
  --v2-lead-size-lg: 1.25rem;       /* 20px */
  --v2-body-size: 1rem;             /* 16px */
  --v2-meta-size: 0.875rem;         /* 14px */
  --v2-caption-size: 0.75rem;       /* 12px */
  --v2-micro-size: 0.625rem;        /* 10px */
  --v2-display-leading: 1.1;
  --v2-lead-leading: 1.625;
  --v2-body-leading: 1.65;
  --v2-tracking-tight: -0.025em;
  --v2-tracking-caps: 0.14em;
  --v2-tracking-caps-wide: 0.16em;
}

body.v2 {
  background-color: var(--v2-background);
  color: var(--v2-text);
  font-family: var(--v2-font-sans);
}

/* ------------------------------------------------------------------
   Typography — accent hierarchy (reference: #hero)

   3 уровня акцента в тексте:
   1. .v2-accent-primary  — имя, ключевые цифры, CTA (цвет primary)
   2. .v2-accent-strong    — домены/термины в lead на muted-фоне (text → тёмный)
   3. .v2-accent-muted     — метки, подписи, вторичный контент (muted)

   Правило: lead-параграф всегда muted; выделение внутри — strong, не primary.
   Primary в заголовках — только для имени / одного слова-маркера.
   ------------------------------------------------------------------ */

.v2-display {
  margin: 0;
  font-size: var(--v2-display-size);
  font-weight: 900;
  line-height: var(--v2-display-leading);
  letter-spacing: var(--v2-tracking-tight);
  color: var(--v2-text);
  text-wrap: balance;
}

@media (min-width: 768px) {
  .v2-display {
    font-size: var(--v2-display-size-lg);
  }
}

.v2-lead {
  max-width: 42rem;
  margin: 0;
  font-size: var(--v2-lead-size);
  line-height: var(--v2-lead-leading);
  color: var(--v2-muted);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .v2-lead {
    font-size: var(--v2-lead-size-lg);
  }
}

.v2-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--v2-meta-size);
  color: var(--v2-muted);
}

.v2-meta-row a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.v2-meta-row a:hover {
  color: var(--v2-primary);
}

.v2-accent-primary {
  color: var(--v2-primary);
}

.v2-accent-strong {
  font-weight: 700;
  color: var(--v2-text);
}

.v2-accent-muted {
  color: var(--v2-muted);
}

.v2-label-caps {
  font-size: var(--v2-micro-size);
  font-weight: 700;
  letter-spacing: var(--v2-tracking-caps-wide);
  text-transform: uppercase;
  color: var(--v2-muted);
}

.v2-stat-value {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1;
  color: var(--v2-primary);
}

.v2-stat-label {
  font-size: var(--v2-micro-size);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-muted);
}

.v2-heading-sm {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: var(--v2-tracking-tight);
  color: var(--v2-text);
}

.v2-heading-xs {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--v2-text);
}

.v2-text-primary-sm {
  font-size: var(--v2-meta-size);
  font-weight: 700;
  color: var(--v2-primary);
}

.v2-badge-caps {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: var(--v2-micro-size);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-primary);
  background: rgb(37 99 235 / 0.08);
  border-radius: 9999px;
}

.cv-card {
  background: var(--v2-surface);
  border: 1px solid var(--v2-border);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v2-primary);
  margin-bottom: 1rem;
}

.nav-link {
  color: var(--v2-muted);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--v2-primary);
}

.dot-pattern {
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
}

.case-card {
  background: var(--v2-surface);
  border: 1px solid var(--v2-border);
  border-radius: 1rem;
  padding: 2rem;
}

.v2-chip {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: 0.375rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--v2-muted);
}

.v2-exp-row {
  display: grid;
  gap: 2rem;
  padding: 3rem 1rem;
  margin: 0 -1rem;
  border-top: 1px solid var(--v2-border);
  border-radius: 1rem;
  transition: background-color 0.2s ease;
}

.v2-exp-row:hover {
  background: rgb(248 250 252 / 0.5);
}

@media (min-width: 768px) {
  .v2-exp-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .v2-exp-aside {
    grid-column: span 4 / span 4;
  }

  .v2-exp-main {
    grid-column: span 8 / span 8;
  }
}

.v2-prose {
  color: var(--v2-muted);
  line-height: 1.65;
  font-size: 1rem;
}

.v2-prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}

.v2-prose li + li {
  margin-top: 0.5rem;
}

.v2-arch-section {
  margin-top: -1rem;
  margin-bottom: 3rem;
}

.v2-arch-wrap {
  display: flex;
  justify-content: center;
}

.v2-arch-frame {
  width: 100%;
  overflow: visible;
  background: transparent;
  min-height: 0;
  transform: scale(0.9);
  transform-origin: center top;
  margin-bottom: -78px;
}

.v2-arch-frame iframe {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
}

.v2-arch-rotate-hint {
  display: none;
}

@keyframes v2-arch-rotate-left {
  0%,
  100% {
    transform: rotate(0deg);
  }

  45%,
  55% {
    transform: rotate(-90deg);
  }
}

@keyframes v2-arch-arc-pulse {
  0%,
  100% {
    opacity: 0.35;
  }

  45%,
  55% {
    opacity: 1;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .v2-arch-rotate-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 2rem;
    border: 1px dashed var(--v2-border);
    border-radius: 1rem;
    background: var(--v2-surface);
  }

  .v2-arch-rotate-hint__visual {
    position: relative;
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .v2-arch-rotate-hint__arc {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    color: var(--v2-primary, #2563eb);
    animation: v2-arch-arc-pulse 2.4s ease-in-out infinite;
  }

  .v2-arch-rotate-hint__arc-head {
    opacity: 0.95;
  }

  .v2-arch-rotate-hint__icon {
    position: relative;
    z-index: 1;
    font-size: 2.25rem;
    color: var(--v2-primary, #2563eb);
    transform-origin: center center;
    animation: v2-arch-rotate-left 2.4s ease-in-out infinite;
  }

  .v2-arch-frame iframe {
    display: none;
  }

  .v2-arch-frame {
    transform: none;
    margin-bottom: 0;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .v2-arch-rotate-hint {
    display: none;
  }

  .v2-arch-section {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    margin-bottom: 1.5rem;
  }

  .v2-arch-frame {
    transform: none;
    margin-bottom: 0;
  }

  .v2-arch-frame iframe {
    display: block;
    height: calc(100svh - 3.5rem);
    min-height: 240px;
    width: 100%;
  }
}

/* DCB simulator embed (case-dcb.html) */
.v2-dcb-collapsible {
  border: 1px solid var(--v2-border);
  border-radius: 1rem;
  background: var(--v2-surface);
  overflow: hidden;
}

.v2-dcb-collapsible__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--v2-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.v2-dcb-collapsible__summary::-webkit-details-marker {
  display: none;
}

.v2-dcb-collapsible__icon {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--v2-muted);
  transition: transform 0.2s ease;
}

.v2-dcb-collapsible[open] .v2-dcb-collapsible__icon {
  transform: rotate(180deg);
}

.v2-dcb-collapsible[open] .v2-dcb-collapsible__summary {
  border-bottom: 1px solid var(--v2-border);
}

.v2-dcb-collapsible__body {
  padding: 0;
  overflow: hidden;
  background: var(--v2-background);
}

.v2-dcb-collapsible__body iframe {
  display: block;
  width: 100%;
  height: 920px;
  min-height: 520px;
  border: 0;
  background: var(--v2-background);
}

@media (max-width: 1023px) {
  .v2-dcb-collapsible__body iframe {
    height: 1200px;
  }
}

/* DCB outcome + subscription flow (case-dcb.html) */
.v2-dcb-outcome {
  margin-bottom: 0;
  padding: 3rem 0 0;
  background: none;
  border-top: 1px solid var(--v2-border);
}

.v2-dcb-outcome__list {
  display: grid;
  gap: 0;
}

@media (min-width: 768px) {
  .v2-dcb-outcome__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    row-gap: 0;
  }

  .v2-dcb-outcome__list li + li {
    margin-top: 1rem;
  }
}

/* DCB subscription flow */
.v2-dcb-flow {
  --v2-dcb-phone-w: clamp(10.5rem, 14vw, 12.5rem);
}

.v2-dcb-flow--example {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.v2-dcb-flow__slider {
  position: relative;
}

.v2-dcb-flow__nav,
.v2-dcb-flow__dots {
  display: none;
}

.v2-dcb-flow__track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 639px) {
  .v2-dcb-flow {
    --v2-dcb-phone-w: min(68vw, 15rem);
  }

  .v2-dcb-flow__slider {
    padding: 0 2.75rem;
  }

  .v2-dcb-flow__track {
    display: flex;
    gap: 1rem;
    margin-top: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .v2-dcb-flow__track::-webkit-scrollbar {
    display: none;
  }

  .v2-dcb-flow__step {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .v2-dcb-flow__step-head {
    min-height: 0;
  }

  .v2-dcb-flow__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--v2-border);
    border-radius: 9999px;
    background: var(--v2-surface);
    color: var(--v2-text);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  }

  .v2-dcb-flow__nav:hover:not(:disabled) {
    background: var(--v2-primary);
    color: #fff;
    border-color: var(--v2-primary);
  }

  .v2-dcb-flow__nav:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .v2-dcb-flow__nav--prev {
    left: 0;
  }

  .v2-dcb-flow__nav--next {
    right: 0;
  }

  .v2-dcb-flow__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
  }

  .v2-dcb-flow__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: var(--v2-border);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
  }

  .v2-dcb-flow__dot.is-active {
    background: var(--v2-primary);
    transform: scale(1.25);
  }
}

@media (min-width: 640px) {
  .v2-dcb-flow__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }
}

@media (min-width: 1100px) {
  .v2-dcb-flow__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
  }

  .v2-dcb-flow__step {
    height: 100%;
  }

  .v2-dcb-flow__phone-wrap {
    margin-top: auto;
  }
}

.v2-dcb-flow__step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.v2-dcb-flow__step-head {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-height: 6.25rem;
}

.v2-dcb-flow__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-primary);
  background: rgba(37, 99, 235, 0.08);
  border-radius: 9999px;
}

.v2-dcb-flow__step-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--v2-text);
}

.v2-dcb-flow__step-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--v2-muted);
}

.v2-dcb-flow__phone-wrap {
  flex: 0 0 auto;
  width: var(--v2-dcb-phone-w);
  min-width: 0;
  margin-inline: auto;
}

.v2-dcb-flow__phone {
  width: var(--v2-dcb-phone-w);
  aspect-ratio: 375 / 812;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--v2-border);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.v2-dcb-flow__phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.125rem;
  border: 1px solid var(--v2-border);
  border-radius: 9999px;
  background: #fff;
}

.lang-btn {
  min-width: 2rem;
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--v2-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--v2-text);
}

.lang-btn.active {
  background: var(--v2-primary);
  color: #fff;
}

.v2-hero-photo-glow {
  position: absolute;
  inset: -0.5rem;
  border-radius: 9999px;
  background: linear-gradient(to top right, rgb(37 99 235 / 0.25), rgb(79 70 229 / 0.25));
  opacity: 0.7;
  filter: blur(16px);
  transition: opacity 0.2s ease;
}

.v2-hero-photo.group:hover .v2-hero-photo-glow {
  opacity: 1;
}

.project-card-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.project-card-link:hover .v2-readmore {
  text-decoration: underline;
}

.v2-pdf-btn {
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--v2-primary);
  border-radius: 9999px;
  background: transparent;
  color: var(--v2-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.v2-pdf-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--v2-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.v2-pdf-btn-icon:hover {
  color: var(--v2-primary);
}

.v2-contact-footer {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  border-radius: 1rem;
  background: var(--v2-text);
  color: #fff;
  text-align: center;
}

.v2-contact-footer__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
}

.v2-contact-footer__inner {
  position: relative;
  z-index: 1;
}

.v2-contact-footer__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
}

.v2-contact-footer__desc {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  color: rgb(148 163 184);
  line-height: 1.65;
}

.v2-contact-footer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.v2-contact-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.v2-contact-footer__btn--primary {
  background: var(--v2-primary);
  color: #fff;
}

.v2-contact-footer__btn--primary:hover {
  background: #1d4ed8;
}

.v2-contact-footer__btn--ghost {
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.v2-contact-footer__btn--ghost:hover {
  background: rgb(255 255 255 / 0.2);
}

.v2-contact-footer__copy {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

.v2-pdf-btn.is-busy,
.v2-pdf-btn-icon.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

/* CV print / Save as PDF — selectable text, natural page breaks */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  html,
  body {
    background: #fff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .v2-nav,
  #projects,
  .v2-contact-footer,
  .v2-pdf-btn,
  .v2-pdf-btn-icon,
  .lang-switcher {
    display: none !important;
  }

  main {
    max-width: none !important;
    padding: 0 !important;
  }

  #pdf-export-root {
    overflow: visible;
    box-sizing: border-box;
  }

  #hero {
    margin-bottom: 1.25rem !important;
  }

  #hero .grid {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 1.25rem !important;
    align-items: center !important;
  }

  .v2-hero-photo-glow {
    display: none !important;
  }

  .v2-hero-photo > div.relative {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    box-shadow: none !important;
  }

  .v2-hero-photo img {
    width: 96px !important;
    height: 96px !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  #experience,
  #skills {
    margin-bottom: 1.25rem !important;
    scroll-margin-top: 0 !important;
  }

  #experience .section-title {
    margin-bottom: 0.75rem !important;
  }

  .v2-exp-row {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    padding: 0.85rem 0 !important;
    margin: 0 !important;
    break-inside: auto;
    page-break-inside: auto;
  }

  .v2-exp-aside {
    grid-column: span 4 / span 4 !important;
    min-width: 0;
  }

  .v2-exp-main {
    grid-column: span 8 / span 8 !important;
    min-width: 0;
  }

  #skills .grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
  }

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

.project-card-static {
  opacity: 0.72;
}

.v2-project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: rgb(37 99 235 / 0.1);
  color: var(--v2-primary);
  font-size: 1.125rem;
}

/* Case study page */
.v2-case-hero-title {
  margin: 0 0 2rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: var(--v2-tracking-tight);
  color: var(--v2-text);
}

.v2-case-hero-sub {
  display: block;
  margin-top: 0.35em;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--v2-primary);
}

.v2-case-highlight {
  padding: 2rem;
  border-top-width: 4px;
  border-top-style: solid;
}

.v2-case-highlight__value {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--v2-text);
}

.v2-case-highlight--blue { border-top-color: #3b82f6; }
.v2-case-highlight--indigo { border-top-color: #6366f1; }
.v2-case-highlight--violet { border-top-color: #8b5cf6; }
.v2-case-highlight--emerald { border-top-color: #10b981; }

.v2-case-metric__value {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--v2-text);
}

.v2-case-problem-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.v2-case-problem-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: var(--v2-lead-size);
  line-height: var(--v2-lead-leading);
  color: var(--v2-muted);
}

.v2-case-problem-list li + li {
  margin-top: 0.75rem;
}

.v2-case-problem-list i {
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.v2-case-role-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  border-left: 4px solid var(--v2-primary);
}

.v2-case-role-card__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgb(239 246 255);
  color: var(--v2-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.v2-case-role-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--v2-text);
}

.v2-case-role-card__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--v2-muted);
}

.v2-case-role-card--stack {
  flex-direction: column;
  gap: 1rem;
  border-left-width: 0;
  border-top: 4px solid var(--v2-primary);
}

.v2-case-role-list {
  margin-top: 0.75rem;
}

.v2-case-role-list li {
  font-size: 0.8125rem;
}

.v2-case-goals {
  border-radius: 1.5rem;
  padding: 2rem;
  background: var(--v2-text);
  color: #fff;
  box-shadow: 0 25px 50px -12px rgb(15 23 42 / 0.25);
  position: relative;
  overflow: hidden;
}

.v2-case-goals__decor {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem;
  opacity: 0.1;
  pointer-events: none;
}

.v2-case-goals__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.v2-case-goals__intro {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgb(148 163 184);
  position: relative;
  z-index: 1;
}

.v2-case-goals__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.v2-case-goals__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgb(203 213 225);
}

.v2-case-goals__list li + li {
  margin-top: 0.75rem;
}

.v2-case-goals__check {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  border-radius: 9999px;
  background: var(--v2-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: #fff;
}

.v2-case-body {
  font-size: var(--v2-lead-size);
  line-height: var(--v2-lead-leading);
  color: var(--v2-muted);
}

.v2-case-result-panel {
  padding: 0;
  overflow: hidden;
  background: rgb(248 250 252 / 0.5);
  border: none;
  box-shadow: none;
}

.v2-case-result-inner {
  padding: 2rem;
  background: var(--v2-surface);
  border: 1px solid var(--v2-border);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

@media (min-width: 768px) {
  .v2-case-result-inner {
    padding: 3rem;
  }
}

.v2-case-result-lead {
  margin: 0 0 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--v2-text);
}

.v2-case-result-col__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.v2-case-result-col__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.v2-case-result-col__icon--biz {
  background: rgb(219 234 254);
  color: #2563eb;
}

.v2-case-result-col__icon--platform {
  background: rgb(224 231 255);
  color: #4f46e5;
}

.v2-case-result-col__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--v2-text);
}

.v2-case-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.v2-case-result-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--v2-muted);
}

.v2-case-result-list li + li {
  margin-top: 1rem;
}

.v2-case-result-list .fa-check {
  margin-top: 0.25rem;
  color: #22c55e;
}

.v2-case-section-lead {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--v2-muted);
}

/*
  Typography map — когда что использовать

  | Роль              | Класс              | Size (mob → desk) | Weight | Color   |
  |-------------------|--------------------|-------------------|--------|---------|
  | Hero h1           | .v2-display        | 36px → 60px       | 900    | text    |
  | Имя в h1          | .v2-accent-primary | inherit         | inherit| primary |
  | Hero lead         | .v2-lead           | 18px → 20px       | 400    | muted   |
  | Термины в lead    | .v2-accent-strong  | inherit           | 700    | text    |
  | Контакты hero     | .v2-meta-row       | 14px              | 400    | muted   |
  | Заголовок секции  | .section-title     | 12px              | 700    | primary |
  | Компания          | .v2-heading-sm     | 24px              | 900    | text    |
  | Роль              | .v2-heading-xs     | 20px              | 700    | text    |
  | Даты              | .v2-text-primary-sm| 14px              | 700    | primary |
  | Микро-лейбл       | .v2-label-caps     | 10px              | 700    | muted   |
  | Бейдж «текущая»   | .v2-badge-caps     | 10px              | 700    | primary |
  | Тело опыта        | .v2-prose          | 16px              | 400    | muted   |

  Hero HTML (i18n-html):
    h1.v2-display → «Привет!<br>Меня зовут <span class="v2-accent-primary">Максим</span>»
    p.v2-lead     → «…на стыке <b class="v2-accent-strong">Telecom, Billing и AdTech</b>…»
    div.v2-meta-row → иконка + текст, ссылки наследуют muted → hover primary
*/
