/* ============================================================
   Effecto Cases · v2 — Luchshe-inspired visual confidence
   в фирменной гамме Эффекто
   ============================================================ */

:root {
  --bg: #08050f;
  --bg-2: #11081e;
  --bg-3: #1a0d2e;
  --violet: #7c3aed;
  --violet-2: #a855f7;
  --magenta: #e879f9;
  --magenta-strong: #d946ef;
  --white: #ffffff;
  --gray: #cbd5e1;
  --muted: #6b6781;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);
  --container: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
  --radius: 24px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'tnum';
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  color: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 1;
}

/* ============================================================
   Header — transparent → solid on scroll
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 5, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--magenta-strong) 100%);
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--bg);
}

/* Brand logo (image) — replaces old square-mark + text combo */
.brand-logo {
  height: 34px;
  width: auto;
  max-width: 200px;
  display: block;
  flex-shrink: 0;
}

@media (min-width: 1100px) {
  .brand-logo { height: 38px; max-width: 220px; }
}

.brand-logo--lg {
  height: 48px;
  max-width: 260px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  font-size: 15px;
}

.primary-nav a {
  color: var(--gray);
  transition: color 0.2s ease;
  font-weight: 500;
}

.primary-nav a:hover {
  color: var(--white);
}

.btn-header {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--white);
  color: #1a0830;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-header:hover {
  background: var(--magenta);
  color: var(--white);
  transform: translateY(-1px);
}

/* ============================================================
   Hero — gradient with halo like Luchshe
   ============================================================ */

.hero {
  padding-top: clamp(120px, 14vw, 180px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(217, 70, 239, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 20%, rgba(124, 58, 237, 0.4), transparent 60%),
    radial-gradient(ellipse 600px 500px at 80% 60%, rgba(217, 70, 239, 0.35), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 50% 100%, rgba(168, 85, 247, 0.2), transparent 70%);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  mask-image: radial-gradient(ellipse 800px 600px at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 800px 600px at center, black, transparent 80%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
  position: relative;
  z-index: 1;
}

@media (min-width: 1100px) {
  .hero-inner {
    grid-template-columns: 7fr 5fr;
    gap: 80px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--magenta);
}

.hero-title {
  font-size: clamp(44px, 7.5vw, 104px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 36px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--violet-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.hero-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.hero-note {
  font-size: clamp(12px, 1vw, 13px);
  line-height: 1.5;
  color: var(--magenta);
  max-width: 560px;
  margin-bottom: 40px;
  letter-spacing: 0.005em;
  padding-left: 14px;
  border-left: 2px solid rgba(217, 70, 239, 0.6);
  font-style: italic;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--white);
  color: #1a0830;
}

.btn-primary:hover {
  background: var(--magenta);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(217, 70, 239, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: var(--border-2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-num {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}

.meta-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

@media (min-width: 1100px) {
  .hero-meta {
    align-items: flex-start;
  }
}

/* ============================================================
   Hero Background — atmospheric hot-clients photo, blended
   ============================================================ */

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  height: 130%;
  width: auto;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(8px) saturate(0.85);
  mask-image: radial-gradient(ellipse at 70% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 80%);
}

.hero-bg-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, var(--bg) 85%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}

@media (max-width: 1099px) {
  .hero-bg-image {
    right: -30%;
    height: 100%;
    opacity: 0.12;
  }
}

@media (max-width: 640px) {
  .hero-bg-image { display: none; }
}

/* ============================================================
   Hero Portrait — round photo on the right
   ============================================================ */

.hero-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: 0;
}

@media (min-width: 1100px) {
  .hero-portrait {
    align-items: flex-end;
    padding: 0;
  }
}

.portrait-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.25) 0%, rgba(124, 58, 237, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

.portrait-photo {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.1),
    0 40px 80px rgba(217, 70, 239, 0.4),
    0 0 100px rgba(124, 58, 237, 0.3);
  background: var(--bg);
}

/* Ring variant — full portrait photo with neon halo, no card frame, no border */
.portrait-photo--ring {
  width: 360px;
  height: 540px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 1099px) {
  .portrait-photo { width: 240px; height: 240px; }
  .portrait-photo--ring { width: 290px; height: 435px; }
  .portrait-glow { width: 320px; height: 320px; }
}

@media (max-width: 480px) {
  .portrait-photo { width: 200px; height: 200px; }
  .portrait-photo--ring { width: 250px; height: 375px; }
  .portrait-glow { width: 280px; height: 280px; }
}

.portrait-caption {
  position: relative;
  z-index: 1;
  text-align: center;
}

@media (min-width: 1100px) {
  .portrait-caption { text-align: right; }
}

.portrait-caption .caption-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--white);
}

.portrait-caption .caption-role {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.portrait-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.portrait-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* (kept for backward compatibility — unused after ring portrait switch) */

/* ============================================================
   Trust Bar — horizontal stats strip below hero
   ============================================================ */

.trust-bar {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.trust-num {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}

.trust-label {
  font-size: clamp(11px, 0.95vw, 13px);
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

@media (min-width: 1100px) {
  .trust-bar-inner {
    flex-wrap: nowrap;
    gap: 16px;
  }
  .trust-item {
    flex: 1 1 0;
    min-width: 0;
    gap: 8px;
  }
  .trust-num { font-size: clamp(15px, 1.4vw, 22px); }
  .trust-label {
    font-size: clamp(10px, 0.75vw, 12px);
    line-height: 1.35;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .trust-bar-inner { gap: 16px; }
  .trust-divider { display: none; }
  .trust-item { flex: 0 0 calc(33.333% - 11px); }
}

@media (max-width: 767px) {
  .trust-divider { display: none; }
  .trust-bar-inner { gap: 16px 24px; }
  .trust-item { flex: 0 0 calc(50% - 12px); }
}

/* ============================================================
   Featured Case — one BIG project at the top
   ============================================================ */

.featured {
  padding: clamp(40px, 6vw, 80px) 0;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-2);
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 70, 239, 0.4);
}

@media (min-width: 900px) {
  .featured-card {
    grid-template-columns: 1.1fr 1fr;
    min-height: 540px;
  }
}

.featured-visual {
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(217, 70, 239, 0.3), transparent 70%),
    linear-gradient(135deg, #2a0e5e 0%, #5b1480 50%, #2a0e5e 100%);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.featured-visual-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 40px;
  text-align: center;
}

.featured-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.1),
    0 30px 80px rgba(217, 70, 239, 0.5),
    0 0 120px rgba(124, 58, 237, 0.3);
  background: var(--bg);
}

.featured-photo-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.caption-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--white);
}

.caption-role {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .featured-photo {
    width: 200px;
    height: 200px;
  }
}

.featured-body {
  padding: clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 24px;
  font-weight: 600;
}

.featured-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--magenta);
}

.featured-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.featured-desc {
  color: var(--gray);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 36px;
}

.featured-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.featured-metric .num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
  white-space: nowrap;
}

.featured-metric .lbl {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ============================================================
   Cases Grid — Luchshe-style asymmetric
   ============================================================ */

.cases {
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  max-width: 14ch;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 36ch;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.chip {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--gray);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: -0.005em;
}

.chip:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.chip.is-active {
  background: var(--white);
  color: #1a0830;
  border-color: var(--white);
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1100px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

@media (max-width: 1099px) and (min-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.case-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), border-color 0.35s ease, background 0.35s ease;
  position: relative;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 70, 239, 0.5);
  background: var(--bg-3);
}

.case-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cover-kaleva::before {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(217, 70, 239, 0.1));
}

.case-cover {
  aspect-ratio: 16 / 10;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 30px 30px;
}

.case-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.2), transparent 60%);
}

.cover-art {
  position: relative;
  z-index: 1;
  width: 65%;
  max-width: 280px;
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.case-card:hover .cover-art {
  transform: scale(1.06);
}

.cover-mark {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
  z-index: 2;
}

.cover-arrow {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.case-card:hover .cover-arrow {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--white);
  transform: rotate(-45deg);
}

.case-body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-tags {
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  font-weight: 600;
}

.case-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--white);
}

.case-desc {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.5;
  flex: 1;
}

.case-metric {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.metric-num {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Placeholder card */
.case-card--placeholder {
  border-style: dashed;
  border-color: rgba(217, 70, 239, 0.3);
  background: transparent;
}

.case-card--placeholder .case-cover {
  background: transparent;
}

.case-card--placeholder .case-cover::before,
.case-card--placeholder .case-cover::after {
  display: none;
}

.cover-next {
  color: var(--magenta);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}

/* ============================================================
   Video Tiles — uniform 3-column grid within cases section
   ============================================================ */

.cases-subsection {
  margin: 64px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.subsection-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--white);
}

.subsection-sub {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.video-tile {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.video-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 70, 239, 0.4);
}

.video-tile .video-cover {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-tile .video-cover svg {
  width: 100%;
  height: 100%;
  display: block;
}

.video-poster--image {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1a1410;
}

.video-poster--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.video-tile:hover .video-poster--image img {
  transform: scale(1.04);
  filter: brightness(0.7);
}

.video-tile:hover .video-poster--image::after {
  opacity: 1;
}

.video-poster--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.15), rgba(124, 58, 237, 0.25));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.video-tile .case-body {
  padding: 20px 24px 24px;
}

.video-tile .case-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--white);
}

.video-tile .case-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.video-tile .case-desc--long {
  font-size: 13px;
  line-height: 1.55;
}

.video-tile .case-geo {
  font-size: 12px;
  color: var(--magenta);
  letter-spacing: 0.005em;
  margin-top: 4px;
  opacity: 0.85;
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.video-modal.is-open {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-modal video {
  width: 100%;
  max-height: calc(100vh - 160px);
  background: #000;
  border-radius: 12px;
  display: block;
}

.video-modal-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  text-align: center;
}

.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 767px) {
  .video-modal { padding: 24px 16px; }
  .video-modal-close { top: -40px; right: 0; }
}

/* ============================================================
   Testimonials — quotes & interviews
   ============================================================ */

.testimonials {
  padding: clamp(80px, 10vw, 140px) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1100px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.testimonial-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 70, 239, 0.4);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 70, 239, 0.6), transparent);
}

.t-quote-mark {
  position: absolute;
  top: 16px;
  right: 28px;
  font-size: 96px;
  font-weight: 800;
  line-height: 0.7;
  color: rgba(124, 58, 237, 0.25);
  font-family: Georgia, serif;
  letter-spacing: -0.05em;
  pointer-events: none;
}

.t-quote-mark--muted {
  color: rgba(217, 70, 239, 0.4);
  font-family: inherit;
  font-size: 56px;
}

.t-quote {
  font-size: 17px;
  line-height: 1.55;
  color: var(--gray);
  margin-bottom: 32px;
  flex: 1;
  position: relative;
  z-index: 1;
  letter-spacing: -0.005em;
}

.t-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--violet) 0%, var(--magenta-strong) 100%);
  color: var(--white);
}

.t-avatar--placeholder {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
}

.t-avatar--dashed {
  background: transparent;
  border: 1px dashed rgba(217, 70, 239, 0.5);
  color: var(--magenta);
  font-size: 20px;
}

.t-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.t-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.t-role {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.testimonial-card--placeholder {
  border-style: dashed;
  border-color: rgba(217, 70, 239, 0.25);
  background: transparent;
}

.testimonial-card--placeholder:hover {
  border-color: rgba(217, 70, 239, 0.5);
}

/* Empty-state when filter shows no cases */
.cases-empty {
  margin-top: 48px;
  padding: 60px 32px;
  border: 1px dashed rgba(217, 70, 239, 0.3);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(124, 58, 237, 0.04);
}

.cases-empty-mark {
  font-size: 40px;
  color: var(--magenta);
  margin-bottom: 16px;
  opacity: 0.7;
}

.cases-empty-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 8px;
}

.cases-empty-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Yandex Reviews widget */
.yandex-reviews {
  padding: clamp(60px, 8vw, 100px) 0;
}

.yandex-widget-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 560 / 800;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
}

.yandex-widget-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 640px) {
  .yandex-widget-wrap {
    aspect-ratio: 4 / 5;
  }
}

/* Yandex map widget — sits next to reviews */
.yandex-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1100px) {
  .yandex-widgets {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.yandex-map-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 560 / 400;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
}

.yandex-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   Approach — color block section like Luchshe
   ============================================================ */

.approach {
  padding: clamp(80px, 10vw, 140px) 0;
}

.approach-card {
  background: linear-gradient(135deg, var(--violet) 0%, #4c1d95 100%);
  border-radius: var(--radius);
  padding: clamp(48px, 6vw, 88px);
  position: relative;
  overflow: hidden;
}

.approach-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.5), transparent 70%);
  pointer-events: none;
}

.approach-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.approach-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  font-weight: 600;
}

.approach-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--magenta);
}

.approach-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 32px;
  max-width: 16ch;
  position: relative;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

@media (min-width: 768px) {
  .approach-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

.approach-item {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.approach-num {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--magenta);
  margin-bottom: 16px;
}

.approach-item h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.approach-item p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   CTA Strip — final wordmark moment
   ============================================================ */

.cta-strip {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  position: relative;
}

.cta-title {
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  max-width: 12ch;
  background: linear-gradient(135deg, var(--white) 0%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-text {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--gray);
  max-width: 50ch;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  padding: clamp(60px, 8vw, 100px) 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 2fr;
    gap: 80px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-mark--lg {
  width: 56px;
  height: 56px;
  font-size: 30px;
  border-radius: 14px;
}

.footer-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

/* ============================================================
   Individual case page
   ============================================================ */

.case-hero {
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: clamp(40px, 5vw, 60px);
}

.case-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
  transition: color 0.2s ease;
}

.case-hero-back:hover {
  color: var(--white);
}

.case-hero-title {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 16ch;
  margin-bottom: 32px;
}

.case-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.case-hero-meta .meta-num {
  font-size: clamp(32px, 3.5vw, 48px);
}

.case-section {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--border);
}

.case-section h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.case-section p {
  color: var(--gray);
  font-size: 17px;
  line-height: 1.6;
  max-width: 70ch;
  margin-bottom: 16px;
}

.case-section ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.case-section ul li {
  padding: 14px 0 14px 28px;
  position: relative;
  color: var(--gray);
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

.case-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-weight: 600;
}

.case-section ul li:last-child {
  border-bottom: none;
}

.case-gallery {
  background: var(--bg-2);
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767px) {
  .video-wrap { margin-top: 24px; border-radius: 12px; }
}

.case-figure {
  margin: 32px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
}

.case-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.case-figure figcaption {
  padding: 14px 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-align: center;
  background: var(--bg-2);
}

@media (max-width: 767px) {
  .case-figure { margin-top: 24px; border-radius: 12px; }
  .case-figure figcaption { padding: 12px 14px; font-size: 12px; }
}

/* ============================================================
   Accessibility & Motion
   ============================================================ */

/* Hide Pages "Made with Spru" badge */
#spru-pages-badge-host {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ============================================================
   Compact case cards — for VK article links (no big cover image)
   ============================================================ */

.case-card--compact .case-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(217, 70, 239, 0.12));
  position: relative;
  overflow: hidden;
}

.case-card--compact .case-cover .cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.case-card--compact .case-cover .cover-mark,
.case-card--compact .case-cover .cover-arrow {
  z-index: 2;
}

.cover-sportpit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 5, 15, 0) 50%, rgba(8, 5, 15, 0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

.cover-icon-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(56px, 8vw, 96px);
  line-height: 1;
  filter: drop-shadow(0 0 24px rgba(217, 70, 239, 0.5));
  z-index: 1;
}

.case-card--compact .case-body {
  padding: 22px 24px 26px;
}

.case-card--compact .case-title {
  font-size: 19px;
  line-height: 1.3;
}

@media (min-width: 1100px) {
  .case-card--compact .case-title {
    font-size: 20px;
  }
}

.case-card--compact .case-desc {
  font-size: 14px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .case-card--compact .case-body { padding: 20px 20px 22px; }
  .case-card--compact .case-title { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .case-card:hover,
  .featured-card:hover,
  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1023px) {
  .primary-nav .nav-link { display: none; }
  .primary-nav .nav-link:nth-last-child(3) { display: inline-flex; }
  .primary-nav { gap: 12px; font-size: 14px; }
}

@media (max-width: 767px) {
  .primary-nav { gap: 10px; font-size: 13px; }
  .footer-links { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; min-width: 0; justify-content: center; }
  .cta-actions .btn { flex: 1; min-width: 0; justify-content: center; }
  .featured-metrics { grid-template-columns: 1fr; gap: 16px; padding: 20px 0; }
  .site-header { padding: 14px 0; }
  .site-header.is-scrolled { padding: 10px 0; }
}

@media (max-width: 480px) {
  .primary-nav a:nth-child(2) { display: none; }
  .case-metric { flex-wrap: wrap; }
  .hero-title { font-size: clamp(40px, 12vw, 56px); }
}

/* ============================================================
   Mobile Nav — filters scroll horizontally, header compacts
   ============================================================ */

@media (max-width: 767px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    margin-bottom: 32px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
  .hero-actions .btn { width: auto; }
}

/* ============================================================
   FAQ Section — for AIO/Answer Engine
   ============================================================ */

.faq {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 24px 28px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(217, 70, 239, 0.4);
  background: var(--bg-3);
}

.faq-item summary {
  cursor: pointer;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 8px;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--magenta);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 16px;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .faq-item { padding: 20px 22px; }
  .faq-item summary { font-size: 16px; }
}

/* ============================================================
   Case Carousel — карусель слайдов презентации кейса
   ============================================================ */

.carousel {
  position: relative;
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
}

.carousel-viewport {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: var(--bg);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 24px;
  background: linear-gradient(to top, rgba(8, 5, 15, 0.92), rgba(8, 5, 15, 0));
  color: var(--gray);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.carousel-slide:hover .carousel-caption { opacity: 1; transform: translateY(0); }

/* Counter (1 / 7) */
.carousel-counter {
  position: absolute;
  top: 18px;
  left: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 5, 15, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  z-index: 2;
  border: 1px solid var(--border-2);
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(8, 5, 15, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.carousel-arrow:hover {
  background: rgba(124, 58, 237, 0.85);
  border-color: var(--violet);
  transform: translateY(-50%) scale(1.05);
}
.carousel-arrow:active { transform: translateY(-50%) scale(0.95); }
.carousel-arrow--prev { left: 16px; }
.carousel-arrow--next { right: 16px; }
.carousel-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.carousel-arrow:disabled:hover { background: rgba(8, 5, 15, 0.75); border-color: var(--border-2); transform: translateY(-50%); }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.3s ease;
}
.carousel-dot.is-active {
  background: var(--magenta-strong);
  width: 24px;
}

/* Mobile */
@media (max-width: 767px) {
  .carousel { margin-top: 24px; border-radius: 16px; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 16px; }
  .carousel-arrow--prev { left: 8px; }
  .carousel-arrow--next { right: 8px; }
  .carousel-counter { top: 10px; left: 12px; font-size: 11px; padding: 5px 10px; }
}

/* case video card — превью ролика со ссылкой на внешний источник (vkvideo) */
.case-video-card {
  position: relative;
  display: block;
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 16 / 9;
  background: #111;
  isolation: isolate;
}
.case-video-card__poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.05);
  transition: filter 0.35s ease, transform 0.6s ease;
}
.case-video-card:hover .case-video-card__poster,
.case-video-card:focus-visible .case-video-card__poster {
  filter: brightness(0.7) saturate(1.1);
  transform: scale(1.03);
}
.case-video-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 14px;
}
.case-video-card__play {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255, 75, 0, 0.92);
  box-shadow: 0 12px 40px rgba(255, 75, 0, 0.4), inset 0 0 0 4px rgba(255, 255, 255, 0.4);
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease;
}
.case-video-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 56%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.case-video-card:hover .case-video-card__play,
.case-video-card:focus-visible .case-video-card__play {
  transform: scale(1.08);
  background: rgba(255, 110, 40, 1);
}
.case-video-card__title {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}
.case-video-card__sub {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

@media (max-width: 767px) {
  .case-video-card { border-radius: 12px; }
  .case-video-card__play { width: 64px; height: 64px; }
  .case-video-card__play::after { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; }
}

.case-video-frame {
  position: relative;
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}
.case-video-frame iframe {
  display: block;
}

/* ===== Videos page ===== */
.videos-page { padding: 60px 0 100px; }
.videos-page .section-title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.videos-page .accent { color: #d946ef; }
.videos-page .section-sub { color: var(--text-2); max-width: 720px; margin-bottom: 20px; }
.videos-page .back-link { color: var(--magenta); text-decoration: none; font-size: 14px; display: inline-block; }
.videos-page .back-link:hover { color: #fff; }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

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