/* ==========================================================================
   VOcreate — Shared UI Foundation (header / footer / mobile menu)
   Scoped classes: site-* — do not replace page-specific section styles
   ========================================================================== */

:root {
  --bg: #050505;
  --surface: #121212;
  --accent: #FF0AAE;
  --accent-glow: #FF4FD8;
  --text: #EAEAEA;
  --text-muted: #9CA3AF;
  --site-header-height: 72px;
  --site-lime: var(--accent);
  --site-bg: var(--bg);
  --site-text: var(--text);
  --site-muted: var(--text-muted);
  --site-line: rgba(255, 255, 255, 0.1);
  --site-max: 1180px;
}

/* --------------------------------------------------------------------------
   Site Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--site-header-height);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--site-line);
}

.site-header__inner {
  width: min(calc(100% - 32px), var(--site-max));
  margin-inline: auto;
  min-height: var(--site-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header .site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.site-header .site-header__brand:hover {
  color: var(--accent-glow);
  opacity: 0.92;
}

.site-header__mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--site-lime);
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.4);
  transform: rotate(14deg);
  flex-shrink: 0;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.site-header__toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--site-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header--open .site-header__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header--open .site-header__toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header--open .site-header__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.site-header .site-header__link {
  color: var(--site-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-header .site-header__link:hover {
  color: var(--site-text);
}

.site-header .site-header__link--active {
  color: var(--accent);
}

.site-header .site-header__link--active {
  position: relative;
}

.site-header .site-header__link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--site-lime);
  border-radius: 2px;
  opacity: 0.85;
}

.site-header a.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--site-lime);
  color: #050505;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.site-header a.site-header__cta:hover {
  background: #FF4FD8;
  color: #050505;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 79, 216, 0.18);
}

.site-header__dropdown {
  position: relative;
}

.site-header button.site-header__dropdown-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
  color: var(--site-muted);
}

.site-header button.site-header__dropdown-toggle:hover,
.site-header__dropdown--active .site-header__dropdown-toggle,
.site-header__dropdown--open .site-header__dropdown-toggle {
  color: var(--site-text);
}

.site-header__dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 196px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--site-line);
  background: rgba(12, 14, 13, 0.97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 120;
}

.site-header__dropdown:hover .site-header__dropdown-menu,
.site-header__dropdown:focus-within .site-header__dropdown-menu,
.site-header__dropdown--open .site-header__dropdown-menu {
  display: grid;
  gap: 4px;
}

.site-header .site-header__dropdown-link {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--site-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.site-header .site-header__dropdown-link:hover,
.site-header .site-header__dropdown-link--active {
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.04);
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--site-line);
  background: var(--bg);
  padding: 48px 0 36px;
  color: var(--site-muted);
  font-size: 14px;
}

.site-footer__inner {
  width: min(calc(100% - 32px), var(--site-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px 40px;
}

.site-footer__brand {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.site-footer__tagline {
  margin: 0;
  max-width: 340px;
  line-height: 1.55;
  color: var(--site-muted);
}

.site-footer__heading {
  color: var(--site-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.site-footer .site-footer__links a {
  color: var(--site-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .site-footer__links a:hover {
  color: var(--site-text);
}

.site-footer__bottom {
  width: min(calc(100% - 32px), var(--site-max));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--site-line);
  color: rgba(156, 163, 175, 0.8);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Anchor offset for sticky header
   -------------------------------------------------------------------------- */
#content,
#management,
#contact,
#works {
  scroll-margin-top: calc(var(--site-header-height) + 16px);
}

/* --------------------------------------------------------------------------
   Compact homepage
   -------------------------------------------------------------------------- */
.page-home main > .hero {
  padding-top: 48px;
  min-height: auto;
}

.page-home .home-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.page-home a.home-route {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home a.home-route:hover {
  border-color: rgba(255, 10, 174, 0.35);
  transform: translateY(-2px);
  color: inherit;
}

.page-home .home-route h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  max-width: none;
}

.page-home .home-route p {
  margin: 0 0 24px;
  color: rgba(234, 234, 234, 0.68);
  flex: 1;
}

.page-home .home-route span {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.page-home .hero h1 span,
.page-home .tag {
  color: var(--accent);
}

.page-home .tag--badge {
  border-color: rgba(255, 10, 174, 0.2);
  background: rgba(255, 10, 174, 0.03);
  color: rgba(255, 10, 174, 0.92);
}

/* --------------------------------------------------------------------------
   Unified CTA
   -------------------------------------------------------------------------- */
.site-cta {
  padding: 72px 0 96px;
}

.site-cta__inner {
  width: min(calc(100% - 32px), var(--site-max));
  margin-inline: auto;
  padding: 48px 40px;
  border-radius: 32px;
  border: 1px solid var(--site-line);
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 79, 216, 0.10), transparent 16rem),
    #121212;
  text-align: center;
}

.site-cta__kicker {
  color: var(--site-lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-cta h2 {
  margin: 0 auto 14px;
  max-width: 760px;
  color: var(--site-text);
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.site-cta p {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--site-muted);
  font-size: 18px;
}

.site-cta__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.site-cta a.site-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: 0.2s ease;
}

.site-cta a.site-cta__btn--telegram {
  background: rgba(42, 171, 238, 0.92);
  color: #ffffff;
}

.site-cta a.site-cta__btn--instagram {
  background: linear-gradient(135deg, #e07a28, #d42a7a, #7a34af);
  color: #ffffff;
}

.site-cta a.site-cta__btn--phone {
  background: transparent;
  border: 1px solid var(--site-line);
  color: var(--site-text);
}

.site-cta a.site-cta__btn--telegram:hover,
.site-cta a.site-cta__btn--instagram:hover {
  transform: translateY(-2px);
  opacity: 0.94;
  color: #ffffff;
}

.site-cta a.site-cta__btn--phone:hover {
  border-color: rgba(255, 10, 174, 0.45);
  color: var(--site-text);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Comparison (one 3-col table, mobile + desktop)
   -------------------------------------------------------------------------- */
.site-compare {
  margin-top: 28px;
  overflow-x: hidden;
}

.site-compare__table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: #121212;
  border: 1px solid var(--site-line);
  border-radius: 18px;
  overflow: hidden;
}

.site-compare__table col:nth-child(1) {
  width: 42%;
}

.site-compare__table col:nth-child(2),
.site-compare__table col:nth-child(3) {
  width: 29%;
}

.site-compare__table th,
.site-compare__table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
  overflow-wrap: break-word;
}

.site-compare__table thead th {
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--site-text);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  line-height: 1.25;
}

.site-compare__table thead th:first-child,
.site-compare__table tbody th {
  text-align: left;
  padding-left: 12px;
}

.site-compare__table tbody th {
  color: var(--site-muted);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.site-compare__table td {
  text-align: center;
  color: var(--site-text);
  font-weight: 700;
  font-size: 14px;
  padding-right: 8px;
}

.site-compare__table .site-compare__yes {
  color: var(--site-lime);
  font-weight: 800;
}

.site-compare__table .site-compare__no {
  color: var(--site-muted);
  font-weight: 600;
}

.site-compare__table tbody tr:last-child th,
.site-compare__table tbody tr:last-child td {
  border-bottom: 0;
}

.site-compare__note {
  margin: 16px 0 0;
  color: var(--site-muted);
  font-size: 14px;
  max-width: 720px;
}

@media (min-width: 761px) {
  .site-compare__table {
    border-radius: 24px;
  }

  .site-compare__table th,
  .site-compare__table td {
    padding: 14px 16px;
  }

  .site-compare__table thead th {
    font-size: 15px;
    padding: 16px;
  }

  .site-compare__table tbody th {
    font-size: 14px;
    padding-left: 18px;
  }

  .site-compare__table td {
    font-size: 15px;
  }

  .site-compare__note {
    margin-top: 20px;
    font-size: 15px;
  }
}

/* --------------------------------------------------------------------------
   Secondary cross-sell + disclaimer
   -------------------------------------------------------------------------- */
.site-crosssell {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid var(--site-line);
  background: rgba(255, 255, 255, 0.02);
}

.site-crosssell strong {
  display: block;
  color: var(--site-text);
  font-size: 16px;
  margin-bottom: 6px;
}

.site-crosssell p {
  margin: 0 0 12px;
  color: var(--site-muted);
  font-size: 14px;
}

.site-crosssell a {
  color: var(--site-lime);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.site-note {
  margin-top: 20px;
  max-width: 760px;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-note strong {
  display: block;
  color: rgba(243, 246, 241, 0.82);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .page-home main > .hero {
    padding-top: 40px;
  }

  .page-home .home-routes {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Tablet / Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --site-header-height: 64px;
  }

  .site-header__inner {
    width: min(calc(100% - 22px), var(--site-max));
  }

  .site-header__toggle {
    display: flex;
    order: 2;
  }

  .site-header a.site-header__cta {
    order: 1;
    margin-left: auto;
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }

  .site-header__nav {
    position: fixed;
    top: var(--site-header-height);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 24px;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--site-line);
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    max-height: calc(100vh - var(--site-header-height));
    overflow-y: auto;
    overflow-x: hidden;
  }

  .site-header--open .site-header__nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header .site-header__link {
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-header .site-header__link--active::after {
    display: none;
  }

  .site-header .site-header__link--active {
    color: var(--site-lime);
  }

  .site-header__dropdown {
    display: contents;
  }

  .site-header button.site-header__dropdown-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 18px 0 8px;
    color: rgba(156, 163, 175, 0.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
    border-bottom: 0;
  }

  .site-header__dropdown-menu,
  .site-header__dropdown:hover .site-header__dropdown-menu,
  .site-header__dropdown:focus-within .site-header__dropdown-menu,
  .site-header__dropdown--open .site-header__dropdown-menu {
    position: static;
    display: grid;
    transform: none;
    left: auto;
    min-width: 0;
    padding: 0 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header .site-header__dropdown-link {
    padding: 14px 0 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__inner,
  .site-footer__bottom {
    width: min(calc(100% - 22px), var(--site-max));
  }
}

/* --------------------------------------------------------------------------
   Temporary placeholder pages (/cases/, /contacts/)
   -------------------------------------------------------------------------- */
.site-placeholder {
  padding: 72px 0 88px;
}

.site-placeholder__inner {
  width: min(calc(100% - 32px), var(--site-max));
  margin-inline: auto;
}

.site-placeholder__eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--site-lime);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.site-placeholder__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--site-lime);
}

.site-placeholder h1 {
  margin: 0 0 22px;
  max-width: 820px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 850;
  color: var(--site-text);
}

.site-placeholder__lead {
  margin: 0 0 32px;
  max-width: 640px;
  color: #9CA3AF;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.site-placeholder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.site-placeholder__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: 0.25s ease;
}

.site-placeholder a.site-placeholder__btn--primary {
  background: var(--site-lime);
  color: #050505;
}

.site-placeholder a.site-placeholder__btn--primary:hover {
  background: #FF4FD8;
  color: #050505;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255, 79, 216, 0.18);
}

.site-placeholder a.site-placeholder__btn--secondary {
  background: transparent;
  color: var(--site-text);
  border-color: var(--site-line);
}

.site-placeholder a.site-placeholder__btn--secondary:hover {
  border-color: rgba(255, 10, 174, 0.55);
  color: var(--site-text);
}

.site-placeholder__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.site-placeholder__card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--site-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.site-placeholder__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-placeholder__card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: var(--site-text);
  max-width: none;
}

.site-placeholder__contacts {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin-bottom: 28px;
}

.site-placeholder a.site-placeholder__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-placeholder a.site-placeholder__contact:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.site-placeholder a.site-placeholder__contact--telegram {
  background: rgba(42, 171, 238, 0.92);
  color: #ffffff;
}

.site-placeholder a.site-placeholder__contact--instagram {
  background: linear-gradient(135deg, #e07a28, #d42a7a, #7a34af);
  color: #ffffff;
}

.site-placeholder a.site-placeholder__contact--phone {
  background: transparent;
  border: 1px solid var(--site-line);
  color: var(--site-text);
}

.site-placeholder a.site-placeholder__contact--phone:hover {
  border-color: rgba(255, 10, 174, 0.45);
  color: var(--site-text);
}

@media (max-width: 900px) {
  .site-placeholder__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-home a.home-route {
    min-height: 0;
    padding: 22px;
  }

  .site-cta {
    padding: 48px 0 72px;
  }

  .site-cta__inner {
    width: min(calc(100% - 22px), var(--site-max));
    padding: 28px 20px;
  }

  .site-cta__contacts {
    flex-direction: column;
    align-items: stretch;
  }

  .site-cta a.site-cta__btn {
    width: 100%;
  }

  .site-placeholder {
    padding: 48px 0 72px;
  }

  .site-placeholder__inner {
    width: min(calc(100% - 22px), var(--site-max));
  }

  .site-placeholder h1 {
    font-size: 40px;
  }

  .site-placeholder__actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 36px;
  }

  .site-placeholder__btn,
  .site-placeholder a.site-placeholder__contact {
    width: 100%;
  }

  .site-placeholder__contacts {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__cta,
  .site-header__toggle-line,
  .site-header__nav,
  .site-header__link,
  .site-placeholder__btn,
  .site-placeholder a.site-placeholder__contact {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Cases portfolio (/cases/)
   -------------------------------------------------------------------------- */
.cases-hero {
  padding: 72px 0 32px;
  text-align: center;
}

.cases-hero .vc-prod-eyebrow,
.cases-hero .section-kicker {
  margin-bottom: 16px;
}

.cases-hero h1 {
  margin: 0 auto 12px;
  max-width: 720px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.cases-hero p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--site-muted);
  font-size: 17px;
}

.cases-section {
  padding: 0 0 72px;
}

.cases-panel {
  width: min(calc(100% - 32px), var(--site-max));
  margin-inline: auto;
}

.cases-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.cases-tabs__btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--site-line);
  background: var(--surface);
  color: var(--site-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.cases-tabs__btn:hover {
  border-color: rgba(255, 10, 174, 0.35);
  color: var(--site-text);
}

.cases-tabs__btn--active {
  border-color: rgba(255, 10, 174, 0.45);
  background: rgba(255, 10, 174, 0.1);
  color: var(--site-text);
  box-shadow: 0 0 16px rgba(255, 79, 216, 0.12);
}

.cases-tabs__label--short {
  display: none;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cases-video {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--site-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 9 / 16;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cases-video:hover {
  border-color: rgba(255, 10, 174, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cases-video:active {
  transform: scale(0.985);
}

.cases-video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cases-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.28);
  color: #fff;
  font-size: 28px;
  pointer-events: none;
}

.cases-video__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 5px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 10, 174, 0.35);
  background: rgba(5, 5, 5, 0.78);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
}

body.cases-modal-open {
  overflow: hidden;
}

.cases-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cases-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cases-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  cursor: pointer;
}

.cases-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 520px);
  max-height: 100dvh;
  gap: 16px;
}

.cases-modal__close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 201;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.92);
  color: rgba(255, 255, 255, 0.92);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cases-modal__close:hover,
.cases-modal__close:focus-visible {
  border-color: rgba(255, 10, 174, 0.45);
  box-shadow: 0 0 16px rgba(255, 79, 216, 0.18);
  outline: none;
}

.cases-modal__player-wrap {
  width: min(90vw, calc(80dvh * 9 / 16), 400px);
  max-height: 80dvh;
  aspect-ratio: 9 / 16;
  flex-shrink: 0;
  touch-action: pan-y;
}

.cases-modal__player {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--site-line);
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.cases-modal__player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.cases-modal__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, calc(80dvh * 9 / 16 + 120px), 520px);
  padding: 0 4px;
}

.cases-modal__nav {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--site-line);
  background: rgba(18, 18, 18, 0.92);
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cases-modal__nav:hover,
.cases-modal__nav:focus-visible {
  border-color: rgba(255, 10, 174, 0.45);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(255, 79, 216, 0.16);
  outline: none;
}

.cases-modal__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  text-align: center;
}

.cases-modal__counter {
  color: var(--site-text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.cases-modal__badge {
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 100%;
}

.cases-empty {
  margin: 0;
  padding: 32px 20px;
  text-align: center;
  color: var(--site-muted);
  font-size: 15px;
  border: 1px dashed var(--site-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 960px) {
  .cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cases-hero {
    padding-top: 54px;
  }

  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cases-tabs__btn {
    font-size: 13px;
    padding: 0 14px;
  }

  .cases-tabs__label--full {
    display: none;
  }

  .cases-tabs__label--short {
    display: inline;
  }

  .cases-video__badge {
    top: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    padding: 5px 8px;
    font-size: 10px;
    line-height: 1.3;
    white-space: normal;
  }

  .cases-modal__player-wrap {
    width: min(90vw, calc(78dvh * 9 / 16));
    max-height: 78dvh;
  }

  .cases-modal__controls {
    width: min(100%, 90vw);
  }

  .cases-modal__badge {
    font-size: 11px;
  }
}
