/* ================================================================
   Portfolio – Main page styles (inspired by liumichelle.com)
   ================================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

div {
  padding: 0;
}

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

body {
  position: relative;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #404040;
  background: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

body.panel-open,
html:has(body.panel-open) {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

strong {
  font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
}

/* ---------- Gradient banner (scrolls with content, smooth fade to white) ---------- */
.gradient-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 280px;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.25) 45%,
      rgba(255, 255, 255, 0.7) 75%,
      #fff 100%),
    linear-gradient(135deg,
      rgba(255, 192, 203, 0.3) 0%,
      rgba(216, 191, 255, 0.3) 35%,
      rgba(191, 213, 255, 0.22) 65%,
      rgba(191, 238, 255, 0.15) 100%);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Site wrapper (dims when panel opens) ---------- */
/* Боковые отступы как у модалки: calc(100vw / 24) — только десктоп */
.site-wrapper {
  position: relative;
  z-index: 1;
  padding-left: calc(100vw / 24);
  padding-right: calc(100vw / 24);
  transition: filter 0.4s cubic-bezier(.4, 0, .2, 1);
}

body.panel-open .site-wrapper {
  filter: brightness(0.88) saturate(0.7);
  pointer-events: none;
}

/* ---------- Header (fixed on mobile, static on desktop) ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  position: relative;
  z-index: 50;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__lang {
  display: flex;
  align-items: center;
}

.site-header__lang .lang-switcher {
  margin-left: 0;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-header__logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.site-header__burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 200;
  transition: transform .25s ease;
}

.site-header__burger:active {
  transform: scale(.93);
}

.burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.burger-line:nth-child(1) {
  top: 16px;
}

.burger-line:nth-child(2) {
  top: 23px;
}

.burger-line:nth-child(3) {
  top: 30px;
}

.site-header__burger.is-open .burger-line:nth-child(1) {
  top: 23px;
  transform: translateX(-50%) rotate(45deg);
}

.site-header__burger.is-open .burger-line:nth-child(2) {
  opacity: 0;
}

.site-header__burger.is-open .burger-line:nth-child(3) {
  top: 23px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- Main content ---------- */
.main-content {
  padding: 0 0 140px;
}

/* ---------- Hero ---------- */
.hero {
  margin-bottom: 12px;
}

.hero__name {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #404040;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.4;
  color: #404040;
  max-width: 720px;
}

/* ---------- Contacts bar (above Samokat) ---------- */
.contacts-bar {
  margin-top: 16px;
  margin-bottom: 72px;
}

.contacts-bar__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.contacts-bar__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(242, 242, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 500;
  color: #404040;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}

.contacts-bar__link:hover {
  background: rgba(235, 235, 242, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #404040;
}

/* ---------- Site nav (legacy, kept for styles) ---------- */
.site-nav__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #404040;
  transition: background .2s, color .2s;
}

.site-nav__link:hover {
  background: #f0f0f0;
  color: #404040;
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: stretch;
  margin-left: auto;
}

.lang-switcher__track {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  background: transparent;
  border-radius: 999px;
  padding: 3px;
}

.lang-switcher__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: var(--thumb-width, 42px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: rgba(242, 242, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  transform: translateX(var(--thumb-left, 0));
  transition: none;
}

.lang-switcher--animated .lang-switcher__thumb {
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.lang-switcher__btn {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: color .3s;
}

.lang-switcher__btn:hover:not(.lang-switcher__active) {
  color: #666;
}

.lang-switcher__btn.lang-switcher__active {
  color: #404040;
  font-weight: 600;
}

/* ---------- About section ---------- */
.about-section {
  margin-bottom: 72px;
}

.about-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-bullets .body_text,
.about-bullets p {
  font-size: 16px;
  line-height: 1.65;
  color: #404040;
  margin: 0;
}

/* ---------- Company section ---------- */
.company-section {
  margin-bottom: 80px;
}

#mes {
  margin-top: 160px;
}

.company-section__intro {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 20px;
}

.company-section__intro-col {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.company-section__intro-col:first-child {
  padding-right: 30px;
}

.company-section__intro-col:last-child {
  padding-left: 30px;
  padding-right: 30px;
}

.company-section__logo {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 2px;
}

.company-section__logo--round {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.company-section__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: #404040;
  margin-bottom: 10px;
}

.company-section__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: #404040;
  max-width: 700px;
  margin: 0;
}

.company-section__desc--secondary {
  color: #404040;
}

/* ---------- Project grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---------- Project card ---------- */
.project-card {
  position: relative;
  border-radius: 28px;
  background: transparent;
  overflow: visible;
  cursor: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: none) {
  .project-card {
    cursor: pointer;
  }
}

.project-card:hover,
.project-card:focus {
  transform: translateY(-6px);
  outline: none;
}

.project-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: transparent;
  border-radius: 28px;
  margin-bottom: 6px;
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card__image {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card__image img {
  transform: scale(1.06);
}

.project-card__caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(242, 242, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 500;
  color: #404040;
}

.project-card__caption-sep {
  opacity: 0.7;
  margin: 0 0.35em;
}

.project-card__caption-year {
  font-weight: 500;
  color: #737380;
}

.project-card__stats {
  padding: 2px 0 12px;
  margin-left: 26px;
  font-size: 13px;
  font-weight: 500;
  color: #737380;
}

.project-card__stats span {
  white-space: nowrap;
}

.project-card__stats span+span::before {
  content: "\2022";
  font-weight: 400;
  color: #737380;
  padding: 0 0.4em;
}

/* ---------- Custom cursor over case (liquid glass) ---------- */
.cursor-view-case {
  position: fixed;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cursor-view-case.is-visible {
  opacity: 0.75;
}

body:has(.project-card:hover) .cursor-view-case.is-visible {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

/* ---------- Panel overlay ---------- */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .78);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

body.panel-open .panel-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Лёгкое розоватое затемнение для модалки проектов Самоката с блюром */
body.panel-open.panel-open--samokat .panel-overlay {
  background: rgba(255, 220, 230, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Фон для модалки проектов MES — та же непрозрачность, что у Самоката (0.82) */
body.panel-open.panel-open--mes .panel-overlay {
  background: rgba(210, 216, 237, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ---------- Project panel (centered modal) ---------- */
/* Боковые отступы на десктопе: left = right = 100vw/12 (в 2 раза больше, чем было 100vw/24) */
/* Хедер с кнопкой — оверлей поверх контента, контент прокручивается под ним */
.project-panel {
  position: fixed;
  top: 18px;
  left: calc(100vw / 12);
  right: calc(100vw / 12);
  bottom: 18px;
  background: #fff;
  z-index: 950;
  opacity: 0;
  transform: translateY(24px) scale(.98);
  pointer-events: none;
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1),
    transform .4s cubic-bezier(.4, 0, .2, 1);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .04);
  overflow: hidden;
}

body.panel-open .project-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Кастомный индикатор прокрутки модалки (маска по закруглению 24px) */
.project-panel__scroll-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 11;
  background: transparent;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .25s ease;
  clip-path: inset(0 0 0 0 round 24px 24px 0 0);
}

.project-panel__scroll-indicator.is-visible {
  opacity: 1;
}

.project-panel__scroll-indicator__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #404040;
  border-radius: 0 2px 2px 0;
  /* без transition — иначе при скролле индикатор «догоняет» и прыгает */
}

/* Самокат — акцент */
body.panel-open--samokat .project-panel__scroll-indicator__fill {
  background: #FE3360;
}

/* MES — акцент синий */
body.panel-open--mes .project-panel__scroll-indicator__fill {
  background: #3b82f6;
}

/* Область контента на всю модалку — скроллится, без стандартного скроллбара, маска по закруглению */
.project-panel__scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border-radius: 24px;
  clip-path: inset(0 0 0 0 round 24px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-panel__scroll::-webkit-scrollbar {
  display: none;
}

/* Кнопка закрытия поверх контента (оверлей) */
.project-panel__close {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F2F2F2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}

.project-panel__close:hover {
  background: #e4e4ea;
  transform: scale(1.06);
}

.project-panel__close svg {
  width: 18px;
  height: 18px;
  stroke: #404040;
}

/* Контент модалки на десктопе: гибкая ширина, макс. 900px, при сужении экрана уменьшается */
.project-panel__body {
  box-sizing: border-box;
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 80px 24px 100px;
}

/* Panel project content */
.panel-hero {
  margin-bottom: 32px;
}

.panel-hero__company {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #404040;
  margin-bottom: 8px;
}

.panel-hero__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: #404040;
  margin-bottom: 16px;
}

.panel-hero__desc {
  font-size: 16px;
  line-height: 1.6;
  color: #404040;
  max-width: 600px;
}

.panel-image {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 28px;
  background: #eeeef3;
}

.panel-image img {
  width: 100%;
  display: block;
}

.panel-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
}

.panel-meta__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #404040;
  margin-bottom: 4px;
}

.panel-meta__value {
  font-size: 14px;
  font-weight: 500;
  color: #404040;
}

.panel-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.panel-stats span {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: 999px;
  background: #F2F2F2;
  font-size: 14px;
  font-weight: 500;
  color: #404040;
}

.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.panel-cta:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.panel-cta svg {
  width: 16px;
  height: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 40px 0;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__name {
  font-size: 14px;
  font-weight: 600;
  color: #404040;
}

.site-footer__links {
  display: flex;
  gap: 16px;
}

.site-footer__links a {
  font-size: 13px;
  font-weight: 500;
  color: #404040;
  transition: color .2s;
}

.site-footer__links a:hover {
  color: #404040;
}

/* ---------- Scroll reveal ---------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1),
    transform .7s cubic-bezier(.4, 0, .2, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Mobile menu overlay ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(26, 26, 26, .95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s cubic-bezier(.4, 0, .2, 1);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.mobile-menu__close:hover {
  background: rgba(255, 255, 255, .2);
}

.mobile-menu__close:active {
  transform: scale(.95);
}

.mobile-menu__close svg {
  width: 22px;
  height: 22px;
}

.mobile-menu a {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  padding: 14px 28px;
  border-radius: 16px;
  transition: background .2s;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, .1);
}

.mobile-menu .lang-switcher {
  margin-top: 16px;
  margin-left: 0;
}

.mobile-menu .lang-switcher__track {
  background: rgba(255, 255, 255, .12);
  height: 48px;
  padding: 4px;
}

.mobile-menu .lang-switcher__thumb {
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: #fff;
}

.mobile-menu .lang-switcher__btn {
  padding: 10px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
}

.mobile-menu .lang-switcher__btn.lang-switcher__active {
  color: #404040;
}

/* ================================================================
   Responsive: десктоп (>700px) и мобильная (≤700px)
   ================================================================ */
@media screen and (max-width: 700px) {
  body {
    font-size: 14px;
  }

  .site-header__burger {
    display: none;
  }

  .site-header__lang {
    display: flex;
  }

  .site-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .site-header {
    padding: 16px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }

  .main-content {
    padding: 82px 16px 80px;
  }

  .contacts-bar {
    margin-bottom: 56px;
  }

  .hero__name {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__subtitle br:last-of-type {
    display: none;
  }

  .company-section {
    margin-bottom: 56px;
  }

  .company-section__intro {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }

  .company-section__intro-col {
    width: 100%;
  }

  .company-section__intro-col:first-child,
  .company-section__intro-col:last-child {
    padding-left: 0;
    padding-right: 0;
  }

  .company-section__title {
    font-size: 26px;
  }

  .company-section__desc {
    font-size: 14px;
    margin-bottom: 0;
  }

  .company-section__desc br {
    display: none;
  }

  .company-section__desc--secondary {
    margin-left: 32px;
    margin-top: 0;
  }

  .company-section__logo {
    width: 24px;
    height: 24px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    border-radius: 24px;
  }

  .project-card__image {
    aspect-ratio: 4 / 3;
    border-radius: 28px;
  }

  .project-card__stats {
    display: none;
  }

  .about-bullets .body_text,
  .about-bullets p {
    font-size: 14px;
  }

  /* Панель проекта на весь экран */
  .project-panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .project-panel__scroll {
    border-radius: 0;
  }

  .project-panel__close {
    top: 28px;
    right: 16px;
  }

  .project-panel__body {
    padding: 72px 16px 60px;
  }

  .panel-hero__title {
    font-size: 24px;
  }

  .panel-hero__desc {
    max-width: 100%;
  }

  .panel-meta {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================================================
   Panel case content – restyle Webflow classes
   ================================================================ */
.panel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.panel-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: #404040;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.panel-error {
  text-align: center;
  padding: 80px 20px;
  font-size: 16px;
  color: #404040;
}

/* Reset Webflow body class inside panel — минимальный шрифт 18px, line-height 26px */
.panel-case {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 26px;
}

/* Content blocks */
.panel-case .section_content {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.panel-case .content-block {
  margin-top: 20px;
  margin-bottom: 20px;
  padding-top: 0px;
}

.panel-case .content-block.case-hypothesis-intro-desc {
  padding-top: 0px;
}

.panel-case .content-block.case-result-metrics {
  padding-top: 0px;
}

.panel-case .content-block.case-result-title {
  padding-top: 0px;
}

.panel-case .content-block.case-screen-preview {
  padding-top: 0;
}

.panel-case .case-meta-row {
  margin-bottom: 20px;
}

/* Меньше отступа над блоком результата (A full replacement… / 8,1/10 и Redesign… / 8,9/10) в журнале учителя и колледжах */
.panel-case .content-block:has(+ .content-block .result-cards-grid),
.panel-case .content-block:has([data-i18n="tj_result_1"]) {
  margin-bottom: 8px;
}

.panel-case .content-block:has([data-i18n="co_result_1"]) {
  margin-bottom: 4px;
}

/* Убрать лишний отступ сверху у блока с карточками результата в колледжах (Redesign and update / 8,9 / 10) */
.panel-case .content-block:has(.result-cards-grid [data-i18n="co_res_label_1"]) {
  margin-top: 0;
}

.panel-case .spacer-40 {
  height: 0;
  margin-bottom: 32px;
}

.panel-case .spacer-56 {
  height: 0;
  margin-bottom: 48px;
}

/* Spacer divs – collapse */
.panel-case .content-spacer {
  display: none;
}

/* Пустой content-block (остаётся только padding) — не показывать */
.panel-case .content-block:empty {
  display: none;
}

/* Typography */
.panel-case .header {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #404040;
  margin: 0 0 8px;
}

/* Большой подзаголовок (28px), 100% ширины контента модалки */
.panel-case .subheader {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  color: #404040;
  margin: 0;
  max-width: 100%;
}

.panel-case .subheader strong {
  font-weight: 600;
  color: rgba(64, 64, 64, 1);
}

.panel-case .body_text {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  color: #404040;
  margin: 0;
}

.panel-case .body_text strong {
  font-weight: 600;
  color: #404040;
}

.panel-case strong.body_text {
  font-weight: 700;
}

/* Текст про задачу сборщика (op_flow) — 100% ширины контейнера */
.panel-case [data-i18n="op_flow"] {
  max-width: 100%;
}

/* Текст процесса трансферов (tr_process_1–4) — 100% ширины контейнера */
.panel-case [data-i18n="tr_process_1"],
.panel-case [data-i18n="tr_process_2"],
.panel-case [data-i18n="tr_process_3"],
.panel-case [data-i18n="tr_process_4"] {
  max-width: 100%;
}

/* Текст «My role» в трансферах (tr_role_1–9) — 100% ширины контейнера */
.panel-case [data-i18n="tr_role_1"],
.panel-case [data-i18n="tr_role_2"],
.panel-case [data-i18n="tr_role_3"],
.panel-case [data-i18n="tr_role_4"],
.panel-case [data-i18n="tr_role_5"],
.panel-case [data-i18n="tr_role_6"],
.panel-case [data-i18n="tr_role_7"],
.panel-case [data-i18n="tr_role_8"],
.panel-case [data-i18n="tr_role_9"] {
  max-width: 100%;
}

/* Примечание к завершению задачи (tr_done_note) — 100% ширины контейнера */
.panel-case [data-i18n="tr_done_note"] {
  max-width: 100%;
}

/* Описание физического процесса на кухне (dk_flow) — 100% ширины контейнера */
.panel-case [data-i18n="dk_flow"] {
  max-width: 100%;
}

/* Детали про этикетки и супервайзера (dk_problem_detail) — 100% ширины контейнера */
.panel-case [data-i18n="dk_problem_detail"] {
  max-width: 100%;
}

/* Текст «My role» в Dark store kitchen (dk_role_1–7) — 100% ширины контейнера */
.panel-case [data-i18n="dk_role_1"],
.panel-case [data-i18n="dk_role_2"],
.panel-case [data-i18n="dk_role_3"],
.panel-case [data-i18n="dk_role_4"],
.panel-case [data-i18n="dk_role_5"],
.panel-case [data-i18n="dk_role_6"],
.panel-case [data-i18n="dk_role_7"] {
  max-width: 100%;
}

/* Описание МЭШ и веб-сервиса (tj_desc_2) — 100% ширины контейнера */
.panel-case [data-i18n="tj_desc_2"] {
  max-width: 100%;
}

/* Текст «My role» в Teacher's journal (tj_role_1–9) — 100% ширины контейнера */
.panel-case [data-i18n="tj_role_1"],
.panel-case [data-i18n="tj_role_2"],
.panel-case [data-i18n="tj_role_3"],
.panel-case [data-i18n="tj_role_4"],
.panel-case [data-i18n="tj_role_5"],
.panel-case [data-i18n="tj_role_6"],
.panel-case [data-i18n="tj_role_7"],
.panel-case [data-i18n="tj_role_8"],
.panel-case [data-i18n="tj_role_9"] {
  max-width: 100%;
}

.panel-case .body_gr,
.panel-case .body_grey_c {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #404040;
  margin: 0 0 6px;
}

/* ─── Подзаголовок маленький (стиль для секций в кейсах) ───
   Цвет: #7A7A7A | начертание: 400 | без капса | отступ сверху 100px (кроме первого)
   Используется: заголовки секций в модалках кейсов (The hypothesis that started it all, Task, My role и т.д.) */
.panel-case .content-block .body_gr {
  color: #7A7A7A;
  font-weight: 400;
  margin-top: 100px;
  margin-bottom: 0px;
  text-transform: none;
  letter-spacing: 0;
}

.panel-case .content-block:first-child .body_gr {
  margin-top: 0;
}

/* Подзаголовок маленький без отступа 100 для подписей метрик (Metrics, DAU, Dark Stores, Moscow schools) */
.panel-case .metrics-grid .body_gr,
.panel-case .metrics-grid .body_grey_c {
  color: #7A7A7A;
  font-weight: 400;
  margin-top: 0;
  text-transform: none;
  letter-spacing: 0;
}

.panel-case .body_gr_web {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: #404040;
  margin-top: 6px;
}

.panel-case .body_gr_web.white {
  color: #404040;
}

/* Строка под заголовком: простой текст iOS  •  Android  •  B2B  •  2025  •  и иконки без эффектов */
.panel-case .flex-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: -12px;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 26px;
  color: #747474;
}

.panel-case .flex-block .case-tag {
  display: inline-flex;
  padding: 0;
  border-radius: 0;
  background: none;
}

.panel-case .flex-block .case-tag::after {
  content: "•";
  padding: 0 0.5em;
  font-weight: 400;
}

.panel-case .flex-block .case-tag .body_text {
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  color: #747474;
  margin: 0;
}

.panel-case .flex-block .store-icon-wrap,
.panel-case .flex-block .store-icon-wrap {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: none;
}

.panel-case .flex-block .store-icon-wrap::after {
  content: "•";
  padding: 0 0.5em;
}

.panel-case .flex-block .store-icon-wrap--no-dot::after {
  display: none;
}

.panel-case .flex-block .store-icon-wrap img,
.panel-case .flex-block .store-icon-wrap img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.panel-case .flex-block .w-inline-block {
  display: inline-flex;
}

/* Cover images */
.panel-case img {
  max-width: 100%;
  border-radius: 16px;
  display: block;
}

.panel-case .media-block {
  margin: 0;
}

.panel-case .media-block img {
  width: 100%;
  border-radius: 16px;
}

/* GIF containers */
.panel-case .media-block-padded {
  margin-bottom: 20px;
}

.panel-case .media-block-padded img,
.panel-case .image-5 {
  width: 100%;
  border-radius: 16px;
}

/* Metrics grid */
/* Блок метрик: десктоп — 2 блока → 2 колонки пополам, 3 блока → 3 колонки; мобильная — отдельно в медиазапросе */
.panel-case .content-block.case-metrics {
  margin-top: 8px;
  padding-top: 0;
}

.panel-case .metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  background: none;
  margin-bottom: 0;
}

.panel-case .metrics-grid:has(> .metric-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

.panel-case .metrics-grid .metric-card {
  padding: 20px 22px;
  background: #F2F2F2;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Ячейки метрик (Metrics, DAU, Dark Stores и т.д.) — отдельный стиль, не наследуют общие изменения отступов */
.panel-case .metric-cell .body_text {
  margin: 0 0 6px;
}

.panel-case .metric-cell .body_gr {
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 8px;
}

/* Teacher's journal: серые блоки с фоном #F4F4F8 */
.panel-case:has([data-i18n="tj_schools_label"]) .metrics-grid .metric-card,
.panel-case:has([data-i18n="tj_schools_label"]) .pain-point-card,
.panel-case:has([data-i18n="tj_schools_label"]) .result-card {
  background: #F4F4F8;
}

/* Colleges: серые блоки с фоном #F4F4F8 */
.panel-case:has([data-i18n="co_colleges_label"]) .metrics-grid .metric-card-muted,
.panel-case:has([data-i18n="co_colleges_label"]) .pain-point-card,
.panel-case:has([data-i18n="co_colleges_label"]) .result-card {
  background: #F4F4F8;
}

/* Colleges: блоки DAU и Moscow colleges — как Redesign and update (скругления и отступы) */
.panel-case:has([data-i18n="co_colleges_label"]) .metrics-grid .metric-card-muted {
  padding: 18px;
  border-radius: 18px;
}

/* Colleges: изображения Navigation, Block tables, Tables — в серых блоках */
.panel-case:has([data-i18n="co_colleges_label"]) .media-block-padded,
.panel-case:has([data-i18n="co_colleges_label"]) .media-block {
  background: #F4F4F8;
  padding: 18px;
  border-radius: 18px;
  overflow: hidden;
}

.panel-case:has([data-i18n="co_colleges_label"]) .media-block-padded img,
.panel-case:has([data-i18n="co_colleges_label"]) .media-block img {
  border-radius: 12px;
}

.panel-case .metric-card,
.panel-case .auto-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-case .auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.panel-case .metric-card-muted {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Pain points & hypothesis grid */
/* Pain points — карточки в одну горизонтальную линию где один столбец (Order picking: User Pain Points) */
.panel-case .cards-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-case .cards-section:has(> .cards-row:only-child) {
  flex-wrap: nowrap;
}

.panel-case .cards-section:has(> .cards-row:only-child) .info-card {
  flex: 1 1 0;
  min-width: 0;
}

.panel-case .cards-section .cards-row,
.panel-case .cards-section .cards-row {
  display: contents;
}

/* Business / Kitchen pain points в модалке — одна горизонтальная линия */

/* Transfers: Business pain points (bento-bpain-grid) */
.panel-case .cards-section.bento-bpain {
  display: block;
}

.panel-case .bento-bpain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.panel-case .bento-bpain-grid .info-card {
  min-width: 0;
}

/* Dark kitchen: Business / Kitchen pain points. Teachers: Teacher's Pain Points. Colleges: Administrator's Pain Points (.cards-row с карточками .info-card или .pain-point-card) */
.panel-case .cards-row:has(> .info-card),
.panel-case .cards-row:has(> .pain-point-card),
.panel-case .content-block.case-pain-points .cards-row,
.panel-case .content-block.case-business-pain-points .cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.panel-case .cards-row:has(> .info-card) .info-card,
.panel-case .cards-row:has(> .pain-point-card) .pain-point-card,
.panel-case .content-block.case-pain-points .cards-row .info-card,
.panel-case .content-block.case-business-pain-points .cards-row .info-card {
  min-width: 0;
}

/* Pain point cards */
.panel-case .info-card,
.panel-case .pain-point-card {
  padding: 28px;
  background: #F2F2F2;
  border-radius: 14px;
  min-width: 200px;
  flex: 1 1 200px;
}

.panel-case .info-card .body_text,
.panel-case .pain-point-card .body_text {
  font-size: 18px;
  line-height: 1.35;
  color: #404040;
  margin: 0;
}

/* Order picking: User Pain Points — две колонки только на десктопе */
@media screen and (min-width: 701px) {
  .panel-case .content-block:has([data-i18n="op_pain_1"]) .cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* Order picking: Hypotheses — padding-top 0 и две колонки на десктопе */
.panel-case .content-block:has([data-i18n="op_hyp_1"]) {
  padding-top: 0;
}

@media screen and (min-width: 701px) {
  .panel-case .content-block:has([data-i18n="op_hyp_1"]) .cards-section {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hypothesis grid: 2 columns in project modals (Transfers, Dark kitchen, Order picking, etc.) */
.panel-case .cards-section:has(.hypothesis-card),
.panel-case .content-block.case-hypotheses .cards-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Hypothesis cards */
.panel-case .hypothesis-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #404040;
  border-radius: 14px;
  color: #fff;
}

.panel-case .hypothesis-card div:first-child {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  color: rgba(255, 255, 255, .9);
  margin: 0 0 8px 0;
}

.panel-case .hypothesis-card div:last-child {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-transform: none;
  letter-spacing: 0;
  color: #FD7392;
  margin: 0;
  margin-top: auto;
  padding-top: 8px;
}

.panel-case .body_gr.white {
  color: rgba(255, 255, 255, .9);
  text-transform: none;
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0;
}

.panel-case .body_gr.pink_c,
.panel-case .pink_c {
  color: #FD7392 !important;
}

/* Result metrics */
.panel-case .result-cards-grid,
.panel-case .result-cards-grid-alt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.panel-case .result_web {
  padding: 14px 16px;
  background: #1a1a1a;
  border-radius: 18px;
  text-align: center;
}

.panel-case .result_web .header,
.panel-case .result_web .header.pink {
  font-size: 28px;
  font-weight: 400;
  color: #f472b6;
  margin-bottom: 6px;
}

.panel-case .result_web .body_gr_web,
.panel-case .result_web .body_gr_web.white {
  font-size: 18px;
  line-height: 26px;
  color: rgba(255, 255, 255, .7);
  margin: 0;
}

/* Bento results grid (Order picking) — 3 cols: left (2 cells), middle (2 cells), right (1 full height) */
.panel-case .bento-results {
  display: grid;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "hero topmid right"
    "released bottommid right";
  gap: 10px;
  margin-top: 8px;
}

.panel-case .bento-results__card {
  border-radius: 18px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
  min-height: 0;
}

.panel-case .bento-results__value {
  font-family: Montserrat, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 110%;
  margin: 0;
  color: #FE3360;
}

.panel-case .bento-results__label {
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
  color: #7A7A7A;
}

/* Hero — tall left card, content pinned to top */
.panel-case .bento-results__card--hero {
  grid-area: hero;
  background: #EFEFEF;
  padding: 40px;
  justify-content: flex-start;
}

.panel-case .bento-results__card--hero .bento-results__value {
  font-size: 28px;
  font-weight: 600;
  line-height: 100%;
  color: #FE3360;
}

.panel-case .bento-results__card--hero .bento-results__label {
  font-size: 14px;
  color: #7A7A7A;
  margin-top: 2px;
}

/* Dark cards — bottom-middle cell */
.panel-case .bento-results__card--dark {
  background: #EFEFEF;
}

.panel-case .bento-results__card--dark .bento-results__value {
  font-size: 28px;
  font-weight: 600;
  color: #FE3360;
}

.panel-case .bento-results__card--dark .bento-results__label {
  font-size: 14px;
  color: #7A7A7A;
}

.panel-case .bento-results__card--dark:nth-child(2) {
  grid-area: bottommid;
  border-radius: 18px;
}

/* Light card — top-middle cell */
.panel-case .bento-results__card--light {
  grid-area: topmid;
  background: #EFEFEF;
  justify-content: flex-start;
}

.panel-case .bento-results__card--light .bento-results__value {
  font-size: 28px;
  font-weight: 600;
  color: #FE3360;
}

.panel-case .bento-results__card--light .bento-results__label {
  font-size: 14px;
  color: #7A7A7A;
}

/* Accent card — right column, full height */
.panel-case .bento-results__card--accent {
  grid-area: right;
  background: #EFEFEF;
}

.panel-case .bento-results__card--accent .bento-results__value {
  font-size: 28px;
  font-weight: 600;
  color: #FE3360;
}

.panel-case .bento-results__card--accent .bento-results__label {
  font-size: 14px;
  color: #7A7A7A;
}

/* Released card — bottom-left cell (прямоугольный, как верхние) */
.panel-case .bento-results__card--released {
  grid-area: released;
  background: #EFEFEF;
  border-radius: 18px;
}

/* Расписание сборщиков: сетка 2×2 в панели проекта */
.panel-case .bento-results--grid-2x2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "cell1 cell2"
    "cell3 cell4";
}

.panel-case .bento-results--grid-2x2 .bento-results__card:nth-child(1) {
  grid-area: cell1;
}

.panel-case .bento-results--grid-2x2 .bento-results__card:nth-child(2) {
  grid-area: cell2;
}

.panel-case .bento-results--grid-2x2 .bento-results__card:nth-child(3) {
  grid-area: cell3;
}

.panel-case .bento-results--grid-2x2 .bento-results__card:nth-child(4) {
  grid-area: cell4;
}

.panel-case .bento-results__card--released .bento-results__value {
  font-size: 28px;
  font-weight: 600;
  color: #FE3360;
}

.panel-case .bento-results__card--released .bento-results__label {
  font-size: 14px;
  color: #7A7A7A;
}

/* Teacher's journal / Colleges result cards — одинаковый внутренний отступ у обеих карточек (Redesign… / 8,9/10 и т.п.) */
.panel-case .result-card {
  padding: 18px;
  background: #f8f8fa;
  border-radius: 18px;
  margin-bottom: 12px;
}

/* Одинаковый отступ у карточек внутри .result-cards-grid (блоки результата в колледжах и журнале учителя) */
.panel-case .result-cards-grid .result-card {
  padding: 18px;
  margin-bottom: 0;
}

.panel-case .result-cards-grid {
  gap: 16px;
}

/* Заголовок карточки результата (Redesign and update и т.п.) — без отступа сверху */
.panel-case .result-cards-grid .result-card .body_gr {
  margin-top: 0;
}

.panel-case .result-card .body_gr {
  margin-top: 0;
  margin-bottom: 8px;
}

.panel-case .result-card .body_text {
  font-size: 18px;
  line-height: 26px;
}

/* App store / play store icons in tags */
.panel-case .w-inline-block {
  display: inline-flex;
}

/* Container blocks that might exist */
.panel-case .container-11,
.panel-case .container-12,
.panel-case .container-13,
.panel-case .container-14,
.panel-case .container-15,
.panel-case .w-container {
  display: none;
}

/* Insight image */
.panel-case .content-block>img {
  border-radius: 16px;
  margin-bottom: 8px;
}

/* Responsive inside panel (мобильная версия) */
@media screen and (max-width: 700px) {
  .panel-case {
    font-size: 14px;
    line-height: 1.5;
  }

  .panel-case .body_text,
  .panel-case .body_gr,
  .panel-case .body_grey_c,
  .panel-case .body_gr_web,
  .panel-case .body_gr.white,
  .panel-case .flex-block .case-tag .body_text,
  .panel-case .info-card .body_text,
  .panel-case .pain-point-card .body_text,
  .panel-case .hypothesis-card div:first-child,
  .panel-case .hypothesis-card div:last-child,
  .panel-case .result_web .body_gr_web,
  .panel-case .result_web .body_gr_web.white,
  .panel-case .result-card .body_text,
  .panel-case .result-card .body_gr,
  .panel-case .content-block .body_gr {
    font-size: 14px;
  }

  .panel-case .header {
    font-size: 24px;
    line-height: 26px;
  }

  .panel-case .subheader {
    font-size: 18px;
    line-height: 1.25;
    max-width: 100%;
  }

  .panel-case [data-i18n="op_flow"],
  .panel-case [data-i18n="tr_process_1"],
  .panel-case [data-i18n="tr_process_2"],
  .panel-case [data-i18n="tr_process_3"],
  .panel-case [data-i18n="tr_process_4"],
  .panel-case [data-i18n="tr_role_1"],
  .panel-case [data-i18n="tr_role_2"],
  .panel-case [data-i18n="tr_role_3"],
  .panel-case [data-i18n="tr_role_4"],
  .panel-case [data-i18n="tr_role_5"],
  .panel-case [data-i18n="tr_role_6"],
  .panel-case [data-i18n="tr_role_7"],
  .panel-case [data-i18n="tr_role_8"],
  .panel-case [data-i18n="tr_role_9"],
  .panel-case [data-i18n="tr_done_note"],
  .panel-case [data-i18n="dk_flow"],
  .panel-case [data-i18n="dk_problem_detail"],
  .panel-case [data-i18n="dk_role_1"],
  .panel-case [data-i18n="dk_role_2"],
  .panel-case [data-i18n="dk_role_3"],
  .panel-case [data-i18n="dk_role_4"],
  .panel-case [data-i18n="dk_role_5"],
  .panel-case [data-i18n="dk_role_6"],
  .panel-case [data-i18n="dk_role_7"],
  .panel-case [data-i18n="tj_desc_2"],
  .panel-case [data-i18n="tj_role_1"],
  .panel-case [data-i18n="tj_role_2"],
  .panel-case [data-i18n="tj_role_3"],
  .panel-case [data-i18n="tj_role_4"],
  .panel-case [data-i18n="tj_role_5"],
  .panel-case [data-i18n="tj_role_6"],
  .panel-case [data-i18n="tj_role_7"],
  .panel-case [data-i18n="tj_role_8"],
  .panel-case [data-i18n="tj_role_9"] {
    max-width: 100%;
  }

  /* Отступы 8px между блоками в мобильной панели кейса (pain points, hypotheses, bento results, metrics и т.д.) */
  .panel-case .cards-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .panel-case .cards-section:has(.hypothesis-card) {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .panel-case .content-block.case-pain-points .cards-row,
  .panel-case .content-block.case-hypotheses .cards-section,
  .panel-case .content-block.case-result-metrics .bento-results,
  .panel-case .content-block.case-business-pain-points .cards-row {
    gap: 8px;
  }

  .panel-case .cards-section .hypothesis-card {
    padding: 14px;
  }

  .panel-case .info-card,
  .panel-case .pain-point-card {
    padding: 20px;
  }

  .panel-case .cards-section.bento-bpain .bento-bpain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .panel-case .cards-section.bento-bpain .bento-bpain-grid .info-card {
    min-width: 0;
  }

  .panel-case .cards-row:has(> .info-card),
  .panel-case .cards-row:has(> .pain-point-card) {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .panel-case .cards-row:has(> .info-card) .info-card,
  .panel-case .cards-row:has(> .pain-point-card) .pain-point-card {
    min-width: 0;
  }

  .panel-case .result-cards-grid,
  .panel-case .result-cards-grid-alt {
    grid-template-columns: 1fr;
  }

  /* Метрики: мобильная — 2 колонки; при 2 блоках — в ряд, при 3 — первый на всю ширину, два других пополам */
  .panel-case .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-case .metrics-grid .metric-card.metric-cell:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
  }

  .panel-case .result_web .header,
  .panel-case .result_web .header.pink {
    font-size: 24px;
  }

  .panel-case .bento-results {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "right    right"
      "hero     topmid"
      "released bottommid";
    gap: 8px;
  }

  .panel-case .bento-results--grid-2x2 {
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "cell1 cell2"
      "cell3 cell4";
  }

  .panel-case .bento-results__card {
    padding: 22px 20px;
    gap: 5px;
    border-radius: 18px;
  }

  .panel-case .bento-results__card--dark:nth-child(2) {
    border-radius: 18px;
  }

  .panel-case .bento-results__card--hero {
    padding: 26px 20px;
  }

  .panel-case .bento-results__card--hero .bento-results__value {
    font-size: 28px;
    font-weight: 600;
    color: #FE3360;
  }

  .panel-case .bento-results__card--hero .bento-results__label {
    font-size: 14px;
    color: #7A7A7A;
  }

  .panel-case .bento-results__value {
    font-size: 28px;
    font-weight: 600;
    color: #FE3360;
  }

  .panel-case .bento-results__label {
    font-size: 14px;
    color: #7A7A7A;
  }

  /* Отступы только для мобильной версии (десктоп — как в базовых правилах выше) */
  .panel-case .content-block {
    margin-top: 0;
    padding-top: 0;
  }

  .panel-case .body_text {
    margin: 0;
  }

  .panel-case .content-block .body_gr {
    margin-top: 80px;
    margin-bottom: 0;
  }

  .panel-case .content-block:first-child .body_gr {
    margin-top: 0;
  }

  .panel-case .metric-cell .body_gr {
    margin-top: 0;
  }

  /* Меньше расстояние между блоками в мобильной модалке */
  .panel-case .spacer-40 {
    margin-bottom: 20px;
  }

  .panel-case .spacer-56 {
    margin-bottom: 28px;
  }

  .panel-case .metrics-grid {
    gap: 8px;
  }
}