.cx {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.cx-head { margin-bottom: 8px; }
.cx-head .header__inner { gap: 22px; }
.cx-head__back {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--t-70);
  white-space: nowrap;
}
.cx-head__back:hover { color: var(--accent-300); }

@media (max-width: 767px) {

  .cx-head .logo { display: none; }
  .cx-head .header__inner { gap: 14px; padding: 10px 22px; }
  .cx-head__back { gap: 6px; font-size: 13px; }
}

.cx-hero { padding-block: 46px 28px; }
.cx-kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.cx-title {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.cx-lead {
  margin: 20px 0 0;
  max-width: 620px;
  font-weight: 300;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--t-62);
}
.cx-chips {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cx-chip {
  padding: 7px 14px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  font-size: 13px;
  color: var(--t-70);
  background: color-mix(in srgb, var(--text) 4%, transparent);
}
.cx-chip--accent {
  border-color: var(--a-34);
  color: var(--accent-300);
  background: var(--a-12);
}

.cx-h2 {
  margin: 64px 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.cx-sub {
  margin: 0 0 26px;
  font-weight: 300;
  font-size: 15px;
  color: var(--t-48);
}

.cx-browser {
  border: 1px solid var(--divider);
  border-radius: 12px;
  overflow: hidden;
  background: #0e1118;
  box-shadow: var(--shadow-lg);
}
.cx-browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(180deg, #161a22, #101319);
}
.cx-dots { display: flex; gap: 7px; }
.cx-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2b303b; }
.cx-dots i:nth-child(1) { background: #f0554d; }
.cx-dots i:nth-child(2) { background: #f0a32a; }
.cx-dots i:nth-child(3) { background: #37b24a; }
.cx-url {
  flex: 1;
  padding: 7px 14px;
  border-radius: 999px;
  background: #0b0e14;
  border: 1px solid var(--divider);
  font-size: 13px;
  color: var(--t-55);
  text-align: center;
}
.cx-hint { font-size: 12px; color: var(--t-34); white-space: nowrap; }
.cx-scroll {
  position: relative;
  height: 620px;
  overflow: hidden;
}
.cx-scroll img {
  width: 100%;
  display: block;
  animation: cx-autoscroll 30s ease-in-out infinite alternate;
}
.cx-scroll:hover img { animation-play-state: paused; }
@keyframes cx-autoscroll {
  0%, 8% { transform: translateY(0); }
  92%, 100% { transform: translateY(calc(-100% + 620px)); }
}

.cx-gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.cx-shot {
  margin: 0;
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--text) 4%, transparent), transparent);
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cx-shot:hover {
  border-color: var(--a-45);
  transform: translateY(-3px);
}
.cx-shot__frame {
  position: relative;
  cursor: zoom-in;
  border-bottom: 1px solid var(--divider);
  background: #0e1118;
}
.cx-shot__frame img { width: 100%; display: block; }
.cx-shot__cap { padding: 20px 24px 24px; }
.cx-shot__cap b { display: block; font-weight: 400; font-size: 18px; letter-spacing: -0.01em; }
.cx-shot__cap span { display: block; margin-top: 8px; font-weight: 300; font-size: 14px; line-height: 1.55; color: var(--t-55); }

.cx-rights {
  margin: 0 0 40px;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.7;
  color: var(--t-34);
  text-align: center;
}
.cx-cta {
  margin: 72px 0 40px;
  padding: 44px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  text-align: center;
  background: linear-gradient(140deg, var(--a-12), color-mix(in srgb, var(--text) 2%, transparent) 58%);
}
.cx-cta h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 300; }
.cx-cta p { margin: 14px auto 26px; max-width: 520px; font-weight: 300; color: var(--t-62); }
.cx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #2f8fef, #1b5895);
  border: 1px solid var(--a-45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cx-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgb(0 0 0 / 45%); }
.cx-btn--ghost {
  color: var(--accent-300);
  background: transparent;
  border-color: var(--divider);
  margin-left: 10px;
}
.cx-btn--ghost:hover { border-color: var(--a-45); box-shadow: none; }

.cx-lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px;
  overflow: auto;
  background: color-mix(in srgb, #05070b 88%, transparent);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.cx-lb.is-open { display: flex; }
.cx-lb img {
  max-width: 1200px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-lg);
}
.cx-lb__close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: #14171f;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
.cx-lb__close:hover { border-color: var(--a-45); color: var(--accent-300); }

@media (max-width: 767px) {

  .cx { padding-inline: 22px; }
  .cx-hero { padding-block: 26px 22px; }
  .cx-title { font-size: clamp(26px, 6.4vw, 40px); }
  .cx-lead { margin-top: 16px; }
  .cx-h2 { margin-top: 48px; }
  .cx-shot__cap { padding: 16px 18px 20px; }
  .cx-cta {
    margin: 52px 0 32px;
    padding: 32px 22px;
  }
  .cx-btn { padding: 14px 24px; }
  .cx-btn--ghost { margin-left: 0; margin-top: 10px; }
  .cx-lb { padding: 16px; }
  .cx-lb__close { top: 12px; right: 14px; }
}

@media (max-width: 700px) {
  .cx-scroll { height: 440px; }
  @keyframes cx-autoscroll {
    0%, 8% { transform: translateY(0); }
    92%, 100% { transform: translateY(calc(-100% + 440px)); }
  }
  .cx-hint { display: none; }
}

/* Хлебные крошки: цепочка нужна и разметкой, и на самой странице —
   Яндекс охотнее показывает навигационную строку в сниппете, когда есть обе. */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--t-42);
}
.crumbs a { transition: color 0.2s; }
.crumbs a:hover { color: var(--accent-300); }
.crumbs .i {
  width: 13px;
  height: 13px;
  fill: currentColor;
  opacity: 0.55;
  vertical-align: -0.1em;
}
.crumbs [aria-current] { color: var(--t-62); }

/* Кейс уводит на профильное направление, а не только обратно в портфолио */
.cx-services {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--t-55);
}
.cx-services a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--t-34);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.cx-services a + a { margin-left: 14px; }
.cx-services a:hover {
  color: var(--accent-300);
  text-decoration-color: var(--accent);
}
