:root{
  --bg:#0b0b0e; --text:#f5f7fb; --muted:#a8b0be; --line:#202534; --card:#0e1017;
  --accent:#58AF08; --accent-2:#2AC0D0;
  /* Переопределяемые переменные кейса (зарезервировано) */
}
html,body{height:100%}
/* Исправление проблемы с шапкой и скроллбаром */
body {
  margin: 0;
  color: var(--text);
  background: 
    /* Градиентные эффекты для страницы кейса с параллаксом */
    radial-gradient(1000px 700px at calc(-10% + var(--bg-parallax-x, 0)) calc(-20% + var(--bg-parallax-y, 0)), rgba(59,125,219,0.06), transparent 65%),
    radial-gradient(800px 600px at calc(110% + var(--bg-parallax-x, 0)) calc(-10% + var(--bg-parallax-y, 0)), rgba(90,154,255,0.04), transparent 60%),
    radial-gradient(600px 500px at calc(50% + var(--bg-parallax-x, 0)) calc(90% + var(--bg-parallax-y, 0)), rgba(142,197,255,0.03), transparent 55%),
    var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  padding-top: 0; /* отступ переносим на main */
  position: relative;
}

/* light theme removed */

/* Правка безопасной области для фиксированной шапки */
/* Глобальная высота шапки берём из styles.css; здесь только отступ контента */
:root { --header-h: 72px; }
/* Отступ под фиксированную шапку — на странице кейса шапки нет */
main { padding-top: 0; }
@media (max-width: 700px) { :root { --header-h: 64px; } }

/* Основной контент */
main { position: relative; z-index: 1; }

/* Градиент удалён по требованию */

/* Hero Section с правильными отступами */
.case-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }

.case-hero .case-hero-head { display: grid; gap: 10px; margin-bottom: 14px; }

/* Overview Section с правильными отступами */
.overview-header {
  text-align: center !important;
  margin-bottom: 48px !important;
  padding: 20px 0 !important;
  margin-top: 20px; /* Добавляем отступ сверху */
}

/* Header: используем глобальные стили из styles.css */

/* New Case Layout */
.case-wrap{--pad: clamp(18px, 2.8vw, 28px); padding-top:86px}
.case-hero{position:relative; overflow:hidden; border-bottom:1px solid var(--line)}
.case-hero__media{position:relative; min-height:min(72vh, 760px);}
.case-hero__media img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(1.02)}
.case-hero__media::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,0) 40%, rgba(0,0,0,0) 70%, rgba(0,0,0,.8) 100%)}
.case-hero__content{position:relative; z-index:1; width:min(1200px, 92vw); margin-inline:auto; padding: clamp(42px, 12vh, 180px) 0 48px}
.case-badge{display:inline-flex; gap:6px; align-items:center; padding:6px 10px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); font-size:12px; color:#fff}
.case-title{font-family:"Space Grotesk", Inter, system-ui; font-size:clamp(32px, 6vw, 64px); line-height:1.05; margin:10px 0 12px}
.case-lead{max-width:760px; color:#cfd6e6; margin:0}
.case-info{margin-top:12px; display:flex; gap:12px; flex-wrap:wrap; color:#aeb6c7; font-size:14px}

/* Mosaic Grid — brand new composition */
.mosaic{width:min(1400px, 96vw); margin:32px auto; display:grid; grid-template-columns:repeat(6, 1fr); gap:10px}
.mosaic__item{position:relative; border-radius:14px; overflow:hidden; background:var(--card); border:1px solid var(--line)}
.mosaic__item img{width:100%; height:100%; object-fit:cover}
.mosaic__item--a{grid-column:1/5; grid-row:1/3}
.mosaic__item--b{grid-column:5/7; grid-row:1/2}
.mosaic__item--c{grid-column:5/7; grid-row:2/3}
.mosaic__item--d{grid-column:1/3; grid-row:3/4}
.mosaic__item--e{grid-column:3/5; grid-row:3/4}
.mosaic__item--f{grid-column:5/7; grid-row:3/5}
.mosaic__item--g{grid-column:1/3; grid-row:4/5}
.mosaic__item--h{grid-column:3/5; grid-row:4/5}
@media (max-width: 900px){ .mosaic{ grid-template-columns:1fr; } .mosaic__item{ aspect-ratio: 16/9 } .mosaic__item--f{ aspect-ratio: 4/5 } }

/* Scrollytelling strips */
.strip{border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#0d0f15}
.strip__inner{width:min(1200px, 92vw); margin-inline:auto; padding: clamp(28px, 5vw, 52px) 0; display:grid; gap:14px}
.strip__title{font-family:"Space Grotesk"; margin:0}
.strip__grid{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
.strip__card{border:1px solid var(--line); border-radius:16px; background:var(--card); overflow:hidden}
.strip__media{aspect-ratio: 21/9}
.strip__media--square{aspect-ratio: 1/1}
.strip__media--tall{aspect-ratio: 4/5}
.strip__meta{padding:12px 14px; color:var(--muted); font-size:14px}
@media (max-width: 900px){ .strip__grid{ grid-template-columns:1fr } }

/* Filmstrip row */
.film{position:relative; overflow:auto; border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.film__row{display:flex; gap:10px; padding:14px; width:max-content}
.film__cell{border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--card)}
.film__cell img{display:block; width:340px; height:220px; object-fit:cover}
@media (max-width: 700px){ .film__cell img{ width:260px; height:180px } }

/* Footer: используем глобальные стили из styles.css */

/* Lightbox (fresh minimal) */
.lb{position:fixed; inset:0; background:rgba(0,0,0,.92); display:none; align-items:center; justify-content:center; z-index:9999}
.lb.is-open{display:flex}
.lb__img{max-width:92vw; max-height:92vh; border-radius:12px}
.lb__btn{position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.12); color:#fff; border:none; width:44px; height:44px; border-radius:999px; cursor:pointer}
.lb__btn:hover{background:rgba(255,255,255,.2)}
.lb__prev{left:18px}
.lb__next{right:18px}
.lb__close{position:absolute; top:18px; right:18px; width:42px; height:42px; border-radius:999px; background:rgba(255,255,255,.12); color:#fff; border:none; cursor:pointer}
.lb__counter{position:absolute; bottom:18px; left:50%; transform:translateX(-50%); color:#fff; font-weight:600; font-size:14px; background:rgba(0,0,0,.35); padding:6px 10px; border-radius:999px}

/* --- New aligned sections and grids --- */
.case-container{width:min(1200px, 92vw); margin-inline:auto}
.case-section{padding: clamp(32px, 6vw, 60px) 0; border-top:1px solid var(--line)}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px}
.section-title{font-family:"Space Grotesk", Inter, system-ui; font-size: clamp(22px, 3vw, 30px); margin:0}
.section-note{color:var(--muted); font-size:14px}

.grid{display:grid; gap:14px}
.grid--3{grid-template-columns: repeat(3, 1fr)}
.grid--2{grid-template-columns: repeat(2, 1fr)}
.grid--1{grid-template-columns: 1fr}
@media (max-width: 980px){ .grid--3{ grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 640px){ .grid--3, .grid--2{ grid-template-columns: 1fr } }

.tile{border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--card)}
.tile__media{width:100%; height:100%; object-fit:cover; display:block}
.tile__cap{padding:10px 12px; color:var(--muted); font-size:13px}
.tile:hover{transform: translateY(-2px); transition: transform .2s ease}

/* Ratio helpers */
.ratio-1x1{aspect-ratio:1/1}
.ratio-4x5{aspect-ratio:4/5}
.ratio-16x9{aspect-ratio:16/9}
.ratio-21x9{aspect-ratio:21/9}

/* --- Guide (Maryco-like case layout) --- */
.guide-hero .case-hero__content{padding-bottom: 24px}
.guide-section{padding: clamp(36px, 6vw, 64px) 0; border-top:1px solid var(--line)}
.guide-title{font-family:"Space Grotesk"; font-size: clamp(26px, 3.6vw, 42px); margin:0 0 10px}
.guide-lead{color:var(--muted); max-width: 840px; margin:0}
.guide-grid{display:grid; gap:16px}
.guide-grid--2{grid-template-columns: 320px 1fr}
@media (max-width: 900px){ .guide-grid--2{ grid-template-columns: 1fr } }
.guide-list{list-style:none; margin:0; padding:0; display:grid; gap:10px}
.guide-list li{display:flex; justify-content:space-between; gap:12px; border-bottom:1px dashed var(--line); padding:8px 0}
.guide-list li:last-child{border-bottom:none}
.guide-card{border:1px solid var(--line); border-radius:16px; background:var(--card); overflow:hidden}
.guide-card .meta{padding:12px 14px; color:var(--muted); font-size:14px}
.guide-kicker{font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0 0 8px}

/* Case Page Styles */
.case-main {
  padding-top: 80px;
}

.case-hero {
  padding: 60px 0;
  text-align: center;
  background: var(--bg);
}

.case-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.case-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.case-title {
  font-family: "Space Grotesk", Inter, system-ui;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

.case-lead {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
}

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

.section-title {
  font-family: "Space Grotesk", Inter, system-ui;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--text);
}

/* Grid Layouts */
.case-grid {
  display: grid;
  gap: 16px;
}

.case-grid--logos {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 600px;
  margin: 0 auto;
}

.case-grid--vertical {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.case-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Парные сетки для одинаковых изображений */
.case-grid--vertical-pair {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto 24px;
}

.case-grid--wide-pair {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
  margin: 0 auto 24px;
}

/* Case Items */
.case-item {
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  cursor: pointer;
}

.case-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.case-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .case-main {
    padding-top: 60px;
  }
  
  .case-hero {
    padding: 40px 0;
  }
  
  .case-section {
    padding: 32px 0;
  }
  
  .case-grid--logos {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .case-grid--vertical {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  
  .case-grid--wide {
    grid-template-columns: 1fr;
  }
  
  /* Адаптация парных сеток для мобильных */
  .case-grid--vertical-pair {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .case-grid--wide-pair {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .case-container {
    padding: 0 16px;
  }
  
  .case-grid {
    gap: 12px;
  }
  
  .case-grid--logos {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .case-grid--vertical {
    grid-template-columns: 1fr;
  }
  
  .case-grid--vertical-pair {
    margin-bottom: 16px;
  }
  
  .case-grid--wide-pair {
    margin-bottom: 16px;
  }
}

/* Case Lightbox */
.case-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.case-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.case-lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.case-lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.case-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.2s ease;
}

.case-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.case-lightbox-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
}

.case-lightbox-prev,
.case-lightbox-next {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.2s ease;
}

.case-lightbox-prev:hover,
.case-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.case-lightbox-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .case-lightbox-content {
    padding: 16px;
  }
  
  .case-lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  
  .case-lightbox-nav {
    bottom: 16px;
    gap: 12px;
  }
  
  .case-lightbox-prev,
  .case-lightbox-next {
    width: 40px;
    height: 40px;
  }
  
  .case-lightbox-counter {
    top: 16px;
    left: 16px;
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Additional styles for new Elfbrus case page */
.project-description {
  max-width: 800px;
  line-height: 1.6;
  color: var(--muted);
}

.project-description p {
  margin: 0 0 16px 0;
}

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

.case-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
}

@media (max-width: 768px) {
  .case-navigation {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Enhanced mosaic grid for logos */
.mosaic__item {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mosaic__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Enhanced strip cards */
.strip__card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.strip__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Enhanced film cells */
.film__cell {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.film__cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Enhanced tiles */
.tile {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Header/footer overrides для кейса удалены — используем глобальные стили из styles.css */

/* Enhanced case info */
.case-info span {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* Enhanced section notes */
.section-note {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* Responsive improvements */
@media (max-width: 640px) {
  .case-hero__content {
    padding: clamp(32px, 8vh, 120px) 0 32px;
  }
  
  .case-title {
    font-size: clamp(28px, 8vw, 48px);
  }
  
  .case-lead {
    font-size: 16px;
  }
  
  .mosaic {
    gap: 8px;
  }
  
  .strip__inner {
    padding: clamp(20px, 4vw, 40px) 0;
  }
  
  .film__row {
    padding: 12px;
  }
  
  .film__cell img {
    width: 240px;
    height: 160px;
  }
}

/* Оптимизация производительности скроллинга для страницы кейса */
.case-hero,
.case-content,
.case-section {
  will-change: transform;
  transform: translateZ(0);
  overflow: visible;
}

/* Улучшаем производительность анимаций */
.case-hero__title,
.case-hero__subtitle,
.case-hero__image {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Оптимизация для параллакс эффектов */
.case-hero__image {
  transform: translateZ(0);
  will-change: transform;
}

/* Убираем возможные конфликты с overflow */
.case-grid,
.case-item {
  overflow: visible;
}

/* Улучшаем производительность для мобильных устройств */
@media (max-width: 768px) {
  .case-hero,
  .case-content {
    overflow-x: hidden;
  }
}

/* Промежуточный блок результатов проекта */
.results-balanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(155, 123, 255, 0.15);
}

.result-card h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.result-card strong {
  color: var(--text);
  font-weight: 600;
}

/* Статистика проекта */
.project-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(155, 123, 255, 0.15);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 900px) {
  .results-balanced {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .project-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .result-card {
    padding: 20px;
  }
  
  .stat-item {
    padding: 16px;
  }
}

@media (max-width: 600px) {
  .results-balanced {
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .project-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .result-card {
    padding: 16px;
  }
  
  .result-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .result-card p {
    font-size: 13px;
  }
  
  .stat-item {
    padding: 14px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 12px;
  }
}

/* Скрываем старые классы результатов */
.results-tiles,
.case-stats,
.case-columns,
.results-compact {
  display: none;
}

/* Новая структура блока обзора проекта */
.overview-header {
  text-align: center !important;
  margin-bottom: 48px !important;
  padding: 20px 0 !important;
}

.overview-title {
  font-family: "Space Grotesk", Inter, system-ui !important;
  font-size: clamp(32px, 4vw, 42px) !important;
  font-weight: 700 !important;
  margin: 0 0 16px 0 !important;
  color: var(--text) !important;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.overview-subtitle {
  font-size: clamp(16px, 2vw, 18px) !important;
  color: var(--muted) !important;
  margin: 0 !important;
  max-width: 600px !important;
  margin-inline: auto !important;
  line-height: 1.6 !important;
}

/* Сетка информации о проекте */
.project-info-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 48px !important;
}

.project-info-card {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.project-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(155, 123, 255, 0.15);
  border-color: rgba(155, 123, 255, 0.3);
}

.project-info-card:hover::before {
  transform: scaleX(1);
}

.info-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
  color: var(--accent);
}

.info-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-info-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-info-card p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* Описание задачи и решения */
.project-description-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.description-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.description-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 20px 20px 0 0;
}

.description-card h3 {
  font-family: "Space Grotesk", Inter, system-ui;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: var(--text);
}

.description-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Секция ключевых особенностей */
.features-section {
  margin-bottom: 48px;
}

.features-section h3 {
  font-family: "Space Grotesk", Inter, system-ui;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 32px 0;
  color: var(--text);
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(155, 123, 255, 0.15);
  border-color: rgba(155, 123, 255, 0.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
  color: var(--accent);
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text);
  font-family: "Space Grotesk", Inter, system-ui;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Секция цветовой палитры */
.color-section {
  text-align: center;
  margin-bottom: 48px;
  margin-top: 48px;
}

.color-section h3 {
  font-family: "Space Grotesk", Inter, system-ui;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 32px 0;
  color: var(--text);
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.color-swatch {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  border: 2px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.color-swatch:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.color-name {
  position: absolute;
  inset: auto 8px 8px 8px;
  display: grid;
  place-items: center;
  min-height: 24px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 600;
  font-family: monospace;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: transform, opacity;
}

/* Меняем хекс на название при ховере */
.color-swatch::after { opacity: 1 !important; transform: translateY(0); transition: opacity 0.25s ease, transform 0.25s ease; will-change: transform, opacity; }
.color-swatch:hover::after { opacity: 0 !important; transform: translateY(-6px); }
.color-swatch:hover .color-name { opacity: 1; transform: translateY(0); }

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

.color-swatch.secondary {
  background: var(--accent-2);
}

.color-swatch.accent {
  background: #8ec5ff;
}

.color-swatch.neutral {
  background: var(--text);
}

.color-swatch.muted {
  background: var(--muted);
}

/* Изображения цветовой палитры */
.color-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.color-images img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}

/* Изображения цветов без дополнительной обводки */
.color-images-no-border {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding: 14px;
}

.color-images-no-border img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--card);
}

@media (max-width: 600px) {
  .color-images {
    gap: 12px;
  }
}

/* Веб-баннеры в 3 колонки */
.web-banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px;
}

.web-banners-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  aspect-ratio: 1/1;
  object-fit: cover;
}

@media (max-width: 900px) {
  .web-banners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .web-banners-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Логотип с текстом - горизонтальное изображение */
.logo-text-comparison {
  margin-top: 16px;
  padding: 14px;
}

.logo-text-comparison img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}

/* Айдентика - горизонтальное изображение на всю ширину */
.identity-full-width {
  padding: 14px;
}

.identity-full-width img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 900px) {
  .overview-header {
    margin-bottom: 40px;
  }
  
  .project-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }
  
  .project-description-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .color-palette {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .overview-header {
    margin-bottom: 32px;
  }
  
  .overview-title {
    font-size: 28px;
  }
  
  .overview-subtitle {
    font-size: 16px;
  }
  
  .project-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }
  
  .project-info-card {
    padding: 20px;
  }
  
  .description-card {
    padding: 24px;
  }
  
  .description-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .features-section h3,
  .color-section h3 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card {
    padding: 24px;
  }
  
  .color-palette {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Секция программ и итогов */
.tools-results-section {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.tools-section h3,
.results-section h3 {
  font-family: "Space Grotesk", Inter, system-ui;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: var(--text);
  text-align: center;
}

.tools-grid,
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.tool-card,
.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-card::before,
.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tool-card:hover,
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(155, 123, 255, 0.15);
  border-color: rgba(155, 123, 255, 0.3);
}

.tool-card:hover::before,
.result-card:hover::before {
  transform: scaleX(1);
}

.tool-icon,
.result-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
  color: var(--accent);
}

.tool-icon svg,
.result-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card h4,
.result-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", Inter, system-ui;
}

/* Адаптивность для новых секций */
@media (max-width: 900px) {
  .tools-results-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .tools-grid,
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .tools-results-section {
    margin-top: 32px;
    gap: 24px;
  }
  
  .tools-section h3,
  .results-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .tools-grid,
  .results-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .tool-card,
  .result-card {
    padding: 20px;
  }
}

/* Переработанный блок результатов проекта */
.results-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.achievement-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 20px 20px 0 0;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(88, 175, 8, 0.15);
  border-color: rgba(88, 175, 8, 0.3);
}

.achievement-icon {
  margin-bottom: 20px;
  color: var(--accent);
}

.achievement-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.achievement-card h3 {
  font-family: "Space Grotesk", Inter, system-ui;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text);
}

.achievement-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Ключевые преимущества */
.key-benefits {
  margin-top: 48px;
  text-align: center;
}

.key-benefits h3 {
  font-family: "Space Grotesk", Inter, system-ui;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 32px 0;
  color: var(--text);
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(88, 175, 8, 0.1);
}

.benefit-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.benefit-item span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

/* Адаптивность для новых элементов */
@media (max-width: 900px) {
  .results-achievements {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
  
  .achievement-card {
    padding: 24px;
  }
  
  .benefits-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .results-achievements {
    gap: 20px;
    margin-bottom: 32px;
  }
  
  .achievement-card {
    padding: 20px;
  }
  
  .achievement-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .achievement-card p {
    font-size: 14px;
  }
  
  .key-benefits h3 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .benefits-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .benefit-item {
    padding: 16px;
  }
  
  .benefit-item span {
    font-size: 14px;
  }
}

/* Стили для case-figure с интегрированными заголовками */
.case-figure--with-title {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-figure--with-title:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(88, 175, 8, 0.15);
  border-color: rgba(88, 175, 8, 0.3);
}

.figure-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(88, 175, 8, 0.95), rgba(42, 192, 208, 0.95));
  color: #fff;
  padding: 20px;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.figure-header h3 {
  font-family: "Space Grotesk", Inter, system-ui;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #fff;
}

.figure-header p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
}

.case-figure--with-title img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.case-figure--with-title:hover img {
  transform: scale(1.02);
}

.case-figure--with-title figcaption {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Адаптивность для новых элементов */
@media (max-width: 900px) {
  .figure-header {
    padding: 16px;
  }
  
  .figure-header h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  
  .figure-header p {
    font-size: 13px;
  }
  
  .case-figure--with-title figcaption {
    padding: 14px 16px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .figure-header {
    padding: 14px;
  }
  
  .figure-header h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .figure-header p {
    font-size: 12px;
  }
  
  .case-figure--with-title figcaption {
    padding: 12px 14px;
    font-size: 12px;
  }
}

/* Ключевые преимущества в одну строку */
.key-benefits-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.key-benefits-section h3 {
  font-family: "Space Grotesk", Inter, system-ui;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: var(--text);
  text-align: center;
}

/* Программы стилизуем, как преимущества */
.programs-section {
  margin-top: 28px;
  padding-top: 0;
}

.programs-section h3 {
  font-family: "Space Grotesk", Inter, system-ui;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: var(--text);
  text-align: center;
}

.benefits-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
}

.benefit-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(88, 175, 8, 0.1);
}

.benefit-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

.benefit-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Адаптивность для ключевых преимуществ */
@media (max-width: 1200px) {
  .benefits-row {
    max-width: 100%;
    gap: 16px;
  }
  
  .benefit-item {
    padding: 14px 16px;
  }
  
  .benefit-item span {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .benefits-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  
  .benefit-item {
    flex: 0 0 calc(50% - 6px);
    padding: 12px 14px;
  }
  
  .key-benefits-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .benefits-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .benefit-item {
    flex: 1;
    width: 100%;
    padding: 12px 16px;
  }
  
  .benefit-item span {
    font-size: 14px;
  }
  
  .key-benefits-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }
}

/* Двухколоночный блок: Используемые программы + Ключевые преимущества */
.tools-benefits {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.tb-title {
  font-family: "Space Grotesk", Inter, system-ui;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: var(--text);
}

.tools-col .tb-tool-list {
  display: grid;
  gap: 16px;
}

.tools-col .tool-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.tools-col .tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(88, 175, 8, 0.12);
  color: var(--accent);
}

.tools-col .tool-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.benefits-col .benefits-row {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.benefits-col .benefit-item {
  flex: 1;
}

/* Адаптивность */
@media (max-width: 1100px) {
  .tools-benefits {
    grid-template-columns: 320px 1fr;
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .tools-benefits {
    grid-template-columns: 1fr;
  }
  .benefits-col .benefits-row {
    flex-wrap: wrap;
  }
}

/* Единый блок-галерея изображений кейса */
.gallery {
  width: min(1200px, 92vw);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Пресеты размеров карточек */
.gi-12x6 { grid-column: span 12; aspect-ratio: 21 / 9; }
.gi-6x6  { grid-column: span 6;  aspect-ratio: 16 / 9; }
.gi-6x8  { grid-column: span 6;  aspect-ratio: 4 / 5; }
.gi-4x4  { grid-column: span 4;  aspect-ratio: 1 / 1; }
.gi-8x10 { grid-column: span 8;  aspect-ratio: 8 / 5; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gi-12x6 { grid-column: span 6; }
  .gi-8x10 { grid-column: span 6; }
  .gi-6x6, .gi-6x8 { grid-column: span 6; }
  .gi-4x4 { grid-column: span 3; }
}

@media (max-width: 620px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gi-4x4 { grid-column: span 4; }
}

/* Ограничение ширины для ключевых преимуществ — используем ширину контейнера */
.key-benefits-section, .benefits-col { width: 100%; margin-inline: 0; }
.benefits-row { width: 100%; max-width: none; margin-inline: 0; }

/* Парные изображения с общим подзаголовком */
.pair-figure { width: 100%; margin: 0 0 24px 0; background: transparent; border: 0; border-radius: 0; overflow: hidden; position: relative; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0; position: relative; z-index: 1; }
.pair-grid img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.pair-caption { text-align: center; padding: 12px 8px 4px; color: var(--muted); }
.pair-caption h3 { margin: 0 0 4px 0; font-family: "Space Grotesk", Inter, system-ui; font-size: 22px; color: var(--text); }
.pair-caption p { margin: 0; font-size: 14px; }
@media (max-width: 800px){ .pair-grid { grid-template-columns: 1fr; } }

/* Верхняя панель заголовка для парных контейнеров */
.pair-figure { 
  background: var(--card); 
  border: 1px solid var(--line); 
  border-radius: 16px; 
  overflow: hidden;
  position: relative;
}

.pair-figure::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,125,219,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pair-figure:hover::after {
  opacity: 1;
}
.pair-header { padding: 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(59,125,219,.1), rgba(90,154,255,.08)); }
.pair-header h3 { margin: 0 0 4px 0; font-family: "Space Grotesk", Inter, system-ui; font-size: 20px; color: var(--text); }
.pair-header p { margin: 0; font-size: 14px; color: var(--muted); }
.pair-grid { padding: 14px; }
.pair-grid img { border-radius: 12px; }

/* Градиент поверх изображений, исчезающий к низу */
.pair-figure { position: relative; }
/* Убрано затемнение снизу у парных изображений */
.pair-figure::after { content: none; }

/* Слой изображений под градиентом */
.pair-grid { position: relative; z-index: 1; padding: 14px; }
.pair-header { position: relative; z-index: 3; }

/* Ключевые преимущества: фиксируем ширину и предотвращаем переполнение */
.benefits-col { width: 100%; max-width: 100%; overflow: hidden; }
.benefits-col .benefits-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.benefits-col .benefit-item { min-width: 0; }
.benefits-col .benefit-item span { white-space: normal; text-overflow: clip; overflow: visible; }

@media (max-width: 1100px) {
  .benefits-col .benefits-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .benefits-col .benefits-row { grid-template-columns: 1fr; }
}

/* Сдвиг шапки убран для一致ности со всеми страницами */
.site-header .header-inner { transform: none; }

/* Локальная конфигурация скролла для страницы кейса */
/* body { overflow: auto; } - убрано, чтобы не мешать блокировке скролла модалок */
:root { --header-h: 72px; }
@media (max-width: 700px) { :root { --header-h: 64px; } }
/* main больше не компенсирует шапку — это делает body через padding-top */
main { margin-top: 0; padding-top: 0 !important; height: auto; overflow: visible; }


