.portfolio-case-page {
  --case-ink: #17191c;
  --case-muted: #60656d;
  --case-paper: #f4f4f1;
  --case-card: #fff;
  --case-line: rgba(23, 25, 28, .14);
  --case-accent: #d3622d;
  --case-accent-dark: #8e3516;
  --case-dark: #181b1f;
  color: var(--case-ink);
  background: var(--case-paper);
}

.portfolio-case-page.theme-vk {
  --case-accent: #f2763d;
  --case-accent-dark: #c85220;
  --case-dark: #07130f;
  --case-paper: #f2f5f3;
  --case-green: #0c8f6f;
  --case-mint: #22d3a1;
}

.portfolio-case-page.theme-sinatra {
  --case-accent: #79503f;
  --case-accent-dark: #513226;
  --case-dark: #1c211d;
  --case-paper: #f3f0ee;
}

.portfolio-case {
  overflow: hidden;
  font-family: "Roboto", Arial, sans-serif;
}
body.portfolio-case-page > main.portfolio-case { padding-top: 0; }
body.portfolio-case-page > main.portfolio-case > section { box-shadow: none; clip-path: none; }

.case-skip-link {
  position: fixed;
  top: 12px;
  left: 18px;
  z-index: 120;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #07130f;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(7, 19, 15, .28);
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.case-skip-link:focus,
.case-skip-link:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  padding: 11px 15px;
  overflow: visible;
  outline: 3px solid #22d3a1;
  outline-offset: 3px;
  clip: auto;
  clip-path: none;
}

.portfolio-case-page #top,
.portfolio-case-page section,
.portfolio-case-page :focus {
  scroll-margin-top: 96px;
}

.portfolio-case h1,
.portfolio-case h2,
.portfolio-case h3,
.portfolio-case p { text-wrap: pretty; }

.case-shell { width: min(100% - 40px, 1180px); margin: 0 auto; }
.case-back { display: inline-flex; color: inherit; font-size: 15px; font-weight: 750; text-decoration: none; opacity: .72; }
.case-back:hover,
.case-back:focus-visible { opacity: 1; }

.case-hero {
  position: relative;
  min-height: 700px;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--case-dark);
}

.case-hero--photo {
  background: var(--case-dark);
  background-position: center;
  background-size: cover;
}

body.portfolio-case-page > main.portfolio-case > section.case-hero--photo {
  background: var(--case-dark);
}

.case-hero--photo::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 15, 16, .96) 0%, rgba(20, 21, 23, .9) 42%, rgba(20, 21, 23, .35) 72%, rgba(20, 21, 23, .08) 100%);
  content: "";
}

.case-hero--vk::before,
.case-hero--sinatra::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.case-hero--vk::before,
.case-hero--vk::after {
  pointer-events: none;
}

.case-hero--vk::before {
  background:
    linear-gradient(105deg, rgba(7, 19, 15, 0) 0 58%, rgba(242, 118, 61, .2) 58% 75%, rgba(34, 211, 161, .16) 75% 100%),
    linear-gradient(135deg, #07130f 0%, #0b241c 54%, #174c3d 100%);
}
.case-hero--vk::after { content: none; }
.case-hero--vk .case-hero__copy { position: relative; z-index: 2; width: min(690px, 58%); }

.case-hero--sinatra { color: #171512; background: #e9dfd0; }
.case-hero--sinatra::before {
  background:
    linear-gradient(90deg, rgba(244, 237, 226, .3) 0%, rgba(244, 237, 226, .08) 52%, rgba(244, 237, 226, 0) 70%),
    url("assets/cases/sinatra/hero-wide.webp") center / cover no-repeat;
}

.case-hero__inner {
  position: relative;
  width: min(100% - 40px, 1180px);
  min-height: 700px;
  margin: 0 auto;
  padding: 116px 0 130px;
}

.case-hero__copy { width: min(760px, 72%); margin-top: 40px; }
.case-hero--sinatra .case-hero__copy { width: min(690px, 57%); }
.case-eyebrow {
  margin: 0 0 18px;
  color: #ffb174;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.theme-vk .case-eyebrow { color: #9dccff; }
.theme-sinatra .case-eyebrow { color: var(--case-accent); }
.case-hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}
.case-hero__lead { max-width: 700px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: clamp(19px, 2vw, 25px); line-height: 1.45; }
.case-hero--sinatra .case-hero__lead { color: #5e5e5e; }
.case-hero__actions { display: flex; gap: 14px; margin-top: 34px; }
.case-hero .btn { min-height: 52px; padding: 15px 24px; }
.case-hero .btn--primary {
  color: #fff;
  background: var(--case-accent);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
}
.case-hero .btn--primary:hover,
.case-hero .btn--primary:focus-visible { background: var(--case-accent-dark); }
.theme-sinatra .case-hero .btn--dark {
  color: #fff;
  background: #3f493e;
  box-shadow: 0 14px 34px rgba(46, 54, 44, .24);
}
.theme-sinatra .case-hero .btn--dark:hover,
.theme-sinatra .case-hero .btn--dark:focus-visible { background: #2f382f; }

.case-kpis {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100% - 40px, 1180px);
  margin: -70px auto 0;
  color: #fff;
  background: var(--case-accent);
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
.case-kpis > div { min-height: 145px; padding: 28px; border-right: 1px solid rgba(255,255,255,.22); }
.case-kpis > div:last-child { border-right: 0; }
.case-kpis b { display: block; margin-bottom: 8px; font-family: var(--heading-font); font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: 0; }
.case-kpis span { display: block; font-size: 14px; line-height: 1.4; opacity: .86; }
.theme-sinatra .case-kpis { background: #3f493e; }

.case-section { padding: 112px 0; }
.case-section--white { background: #fff; }
.case-section--dark { color: #fff; background: var(--case-dark); }
.case-section--tint { background: color-mix(in srgb, var(--case-accent) 8%, #fff); }
body.portfolio-case-page > main.portfolio-case > section.case-section--white {
  --band-bg: #fff;
  background: #fff;
}
body.portfolio-case-page > main.portfolio-case > section.case-section--dark {
  --band-bg: var(--case-dark);
  background: var(--case-dark);
}
body.portfolio-case-page > main.portfolio-case > section.case-section--tint {
  --band-bg: color-mix(in srgb, var(--case-accent) 8%, #fff);
  background: color-mix(in srgb, var(--case-accent) 8%, #fff);
}
.case-section__head { max-width: 870px; margin-bottom: 52px; }
.case-stage { display: block; margin-bottom: 13px; color: var(--case-accent); font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.case-section h2 { margin: 0; font-family: var(--heading-font); font-size: clamp(34px, 4.8vw, 62px); line-height: 1.03; letter-spacing: 0; }
.case-section__head > p { max-width: 760px; margin: 24px 0 0; color: var(--case-muted); font-size: 19px; line-height: 1.65; }
.case-section--dark .case-section__head > p { color: rgba(255,255,255,.7); }

.case-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.case-card {
  grid-column: span 4;
  padding: 30px;
  border: 1px solid var(--case-line);
  background: var(--case-card);
  border-radius: 22px;
}
.case-card--wide { grid-column: span 6; }
.case-card--dark { color: #fff; border-color: transparent; background: var(--case-dark); }
.case-card__num { display: block; margin-bottom: 38px; color: var(--case-accent); font-size: 13px; font-weight: 850; letter-spacing: .12em; }
.case-card h3 { margin: 0 0 14px; font-size: 24px; line-height: 1.15; letter-spacing: 0; }
.case-card p { margin: 0; color: var(--case-muted); font-size: 16px; line-height: 1.62; }
.case-card--dark p { color: rgba(255,255,255,.68); }

.case-split { display: grid; grid-template-columns: 1.06fr .94fr; gap: 72px; align-items: center; }
.case-prose p { margin: 0 0 20px; color: var(--case-muted); font-size: 18px; line-height: 1.68; }
.case-prose p:last-child { margin-bottom: 0; }
.case-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.case-list li { position: relative; padding-left: 28px; color: var(--case-muted); font-size: 17px; line-height: 1.5; }
.case-list li::before { position: absolute; top: .58em; left: 0; width: 10px; height: 10px; border-radius: 99px; background: var(--case-accent); content: ""; }

.site-shot {
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 20px;
  background: #252a2d;
  box-shadow: 0 30px 70px rgba(0,0,0,.18);
}
.site-shot__bar { display: flex; gap: 7px; align-items: center; height: 42px; padding: 0 15px; background: #17191b; }
.site-shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #6b7074; }
.site-shot__body { min-height: 420px; padding: 44px; color: #fff; background: linear-gradient(135deg, #0a0c0d, #30383c); }
.site-shot__logo { font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.site-shot h3 { max-width: 420px; margin: 90px 0 14px; font-size: clamp(28px, 4vw, 48px); line-height: 1.02; letter-spacing: -.04em; }
.site-shot p { max-width: 420px; margin: 0 0 24px; color: rgba(255,255,255,.7); }
.site-shot__button { display: inline-flex; padding: 12px 18px; border-radius: 8px; color: #fff; background: var(--case-accent); font-weight: 750; }
.site-shot figcaption,
.case-media figcaption { padding: 14px 4px 0; color: var(--case-muted); font-size: 14px; line-height: 1.45; }

.case-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.case-project-photo { margin: 0; }
.case-project-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; }
.case-project-photo figcaption { margin-top: 12px; color: var(--case-muted); font-size: 13px; line-height: 1.45; }

.query-board { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--case-line); border-radius: 22px; background: #fff; }
.query-board__col { padding: 32px; }
.query-board__col + .query-board__col { border-left: 1px solid var(--case-line); background: #f4f4f2; }
.query-board h3 { margin: 0 0 22px; font-size: 22px; }
.query-board ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.query-board li { padding: 13px 15px; border: 1px solid var(--case-line); border-radius: 10px; background: #fff; font-size: 15px; line-height: 1.35; }
.query-board__col:first-child li { border-color: color-mix(in srgb, var(--case-accent) 35%, white); }

.math-card { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: 22px; color: #fff; background: var(--case-dark); }
.math-card > div { padding: 35px; border-right: 1px solid rgba(255,255,255,.12); }
.math-card > div:last-child { border-right: 0; background: var(--case-accent); }
.math-card small { display: block; margin-bottom: 18px; color: rgba(255,255,255,.62); font-size: 13px; text-transform: uppercase; }
.math-card b { display: block; font-size: clamp(28px, 3vw, 43px); line-height: 1; letter-spacing: -.035em; }
.math-card span { display: block; margin-top: 11px; color: rgba(255,255,255,.66); font-size: 14px; line-height: 1.45; }
.math-card > div:last-child small,
.math-card > div:last-child span { color: rgba(255,255,255,.82); }

.case-cta-band { color: #fff; background: var(--case-accent); }
body.portfolio-case-page > main.portfolio-case > section.case-cta-band {
  --band-bg: var(--case-accent);
  background: var(--case-accent);
}
.case-cta-band__inner { display: flex; justify-content: space-between; gap: 40px; align-items: center; width: min(100% - 40px, 1180px); margin: 0 auto; padding: 55px 0; }
.case-cta-band h2 { max-width: 730px; margin: 0 0 9px; font-size: clamp(30px, 4vw, 48px); line-height: 1.04; letter-spacing: -.04em; }
.case-cta-band p { margin: 0; color: rgba(255,255,255,.82); font-size: 17px; }
.case-cta-band .btn { color: var(--case-accent); background: #fff; white-space: nowrap; }

.dashboard {
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  color: #e9f2ff;
  background: #0e1726;
  box-shadow: 0 35px 80px rgba(0,0,0,.28);
}
.dashboard__top { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 0 2px 18px; }
.dashboard__top b { font-size: 15px; }
.dashboard__account { filter: blur(5px); opacity: .55; user-select: none; }
.dashboard__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dashboard__stats div { padding: 17px; border-radius: 13px; background: #17253a; }
.dashboard__stats small { display: block; margin-bottom: 9px; color: #8fa2bd; font-size: 11px; }
.dashboard__stats b { font-size: 22px; letter-spacing: -.03em; }
.dashboard__table { margin-top: 12px; overflow-x: auto; border-radius: 13px; background: #132033; }
.dashboard__row { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(92px, 1fr)); min-width: 610px; border-bottom: 1px solid rgba(255,255,255,.07); }
.dashboard__row:last-child { border-bottom: 0; }
.dashboard__row span { padding: 14px; color: #c4d0e1; font-size: 12px; }
.dashboard__row--head span { color: #7f94b1; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dashboard__row b { color: #fff; }

.direct-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.direct-shot {
  overflow: hidden;
  min-height: 100%;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  color: #ecf3ff;
  background: #111c2d;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .2);
}

.direct-shot__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 50px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #8fa4c2;
  background: #0d1726;
  font-size: 12px;
}

.direct-shot__top b { color: #fff; font-size: 13px; }
.direct-shot__body { padding: 20px; }
.direct-shot figcaption { padding: 14px 18px 17px; color: #9bacc3; background: #0d1726; font-size: 12px; line-height: 1.45; }
.direct-shot--wide { grid-column: 1 / -1; }

.direct-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.direct-tags span {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid rgba(130, 170, 226, .2);
  border-radius: 7px;
  color: #dce9fb;
  background: #182842;
  font-size: 12px;
  line-height: 1.25;
}
.direct-tags--minus span { color: #ffd7ca; border-color: rgba(238, 133, 92, .22); background: #35201d; }

.direct-shot__group + .direct-shot__group { margin-top: 20px; }
.direct-shot__label { display: block; margin-bottom: 11px; color: #8fa4c2; font-size: 11px; font-weight: 800; text-transform: uppercase; }

.direct-ad-list { display: grid; gap: 12px; }
.direct-ad {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  background: #182842;
}
.direct-ad small { display: block; margin-bottom: 7px; color: #8fa4c2; font-size: 10px; text-transform: uppercase; }
.direct-ad b { display: block; color: #6fb0ff; font-size: 15px; line-height: 1.3; }
.direct-ad p { margin: 7px 0 0; color: #c8d5e7; font-size: 12px; line-height: 1.45; }

.tmc-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.tmc-gallery figure { position: relative; overflow: hidden; margin: 0; border-radius: 12px; background: #e9e9e6; }
.tmc-gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tmc-gallery span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 7px;
  border-radius: 5px;
  color: #fff;
  background: rgba(13, 20, 18, .78);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.tmc-gallery + .case-grid { margin-top: 34px; }

.portfolio-case .case-eyebrow,
.portfolio-case .case-stage,
.portfolio-case .case-card__num,
.portfolio-case .dashboard__row--head span,
.portfolio-case .site-shot__logo,
.portfolio-case .site-shot h3,
.portfolio-case .math-card b,
.portfolio-case .dashboard__stats b,
.portfolio-case .case-cta-band h2 { letter-spacing: 0; }

.creative-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.creative-card { overflow: hidden; border-radius: 20px; color: #fff; background: #111a28; }
.creative-card img { display: block; width: 100%; aspect-ratio: 9 / 14; object-fit: cover; }
.creative-card__copy { padding: 18px; }
.creative-card__copy b { display: block; min-height: 42px; font-size: 16px; line-height: 1.3; }
.creative-card__copy span { display: block; margin-top: 10px; color: #9dccff; font-size: 13px; }

.case-brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.case-brand-grid figure { overflow: hidden; margin: 0; border-radius: 20px; background: #111a28; }
.case-brand-grid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.case-brand-grid figcaption { padding: 14px 16px 16px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.4; }

.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: hidden; border: 1px solid var(--case-line); border-radius: 22px; background: #fff; }
.funnel article { position: relative; padding: 30px; border-right: 1px solid var(--case-line); }
.funnel article:last-child { border-right: 0; }
.funnel span { display: block; margin-bottom: 34px; color: var(--case-accent); font-size: 13px; font-weight: 850; }
.funnel h3 { margin: 0 0 10px; font-size: 21px; }
.funnel p { margin: 0; color: var(--case-muted); font-size: 15px; line-height: 1.55; }

.campaign-bars { display: grid; gap: 14px; }
.campaign-bar { display: grid; grid-template-columns: minmax(250px, 1.6fr) 1fr 100px; gap: 18px; align-items: center; }
.campaign-bar__name { font-size: 15px; line-height: 1.3; }
.campaign-bar__track { height: 12px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.campaign-bar__fill { height: 100%; width: var(--bar); border-radius: inherit; background: var(--case-accent); }
.campaign-bar b { text-align: right; font-size: 15px; }

.site-audit { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.12); }
.site-audit__image { min-height: 520px; overflow: hidden; background: #eee; }
.site-audit__image img { display: block; width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center; transform: scaleX(-1); }
.site-audit__copy { padding: 46px; }
.site-audit__copy h3 { margin: 0 0 22px; font-size: 32px; line-height: 1.05; }
.audit-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.audit-list li { padding: 14px 15px; border-left: 3px solid var(--case-accent); color: var(--case-muted); background: #f6f5f3; font-size: 15px; line-height: 1.45; }

.case-fashion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.case-fashion-grid figure { overflow: hidden; margin: 0; border: 1px solid var(--case-line); border-radius: 20px; background: #fff; }
.case-fashion-grid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; }
.case-fashion-grid figcaption { padding: 14px 16px 16px; color: var(--case-muted); font-size: 13px; line-height: 1.4; }

.case-note { padding: 28px 32px; border-left: 4px solid var(--case-accent); color: var(--case-muted); background: color-mix(in srgb, var(--case-accent) 7%, #fff); font-size: 17px; line-height: 1.65; }
.case-note b { color: var(--case-ink); }

.case-final { padding: 112px 0; color: #fff; background: var(--case-dark); }
body.portfolio-case-page > main.portfolio-case > section.case-final {
  --band-bg: var(--case-dark);
  background: var(--case-dark);
}
.case-final__inner { display: grid; grid-template-columns: 1.03fr .97fr; gap: 72px; align-items: start; width: min(100% - 40px, 1180px); margin: 0 auto; }
.case-final h2 { margin: 0; font-family: var(--heading-font); font-size: clamp(38px, 5vw, 66px); line-height: 1.01; letter-spacing: 0; }
.case-final__copy > p { max-width: 600px; margin: 24px 0 0; color: rgba(255,255,255,.66); font-size: 18px; line-height: 1.62; }
.case-final__person { display: flex; gap: 15px; align-items: center; margin-top: 34px; }
.case-final__person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.case-final__person b,
.case-final__person span { display: block; }
.case-final__person span { margin-top: 3px; color: rgba(255,255,255,.57); font-size: 13px; }
.case-final .form { color: var(--case-ink); background: #fff; }

/* iRetail: product-led hero and VK Ads evidence */
.theme-vk .case-hero {
  min-height: 760px;
}

.theme-vk .case-hero__inner {
  min-height: 760px;
  padding-top: 124px;
  padding-bottom: 72px;
}

.theme-vk .case-hero__copy {
  margin-top: 46px;
}

.theme-vk .case-hero h1 {
  max-width: 680px;
  font-size: clamp(48px, 5vw, 70px);
}

.theme-vk .case-hero h1 span {
  display: block;
}

.theme-vk .case-hero h1 span + span {
  margin-top: 5px;
  color: #f7b18c;
}

.theme-vk .case-hero__lead {
  max-width: 640px;
}

.theme-vk .case-hero .btn--primary {
  min-width: 190px;
  min-height: 58px;
  padding-inline: 31px;
  color: #101c18;
  border-color: rgba(255, 255, 255, .36);
  background: linear-gradient(105deg, #ff8a4d 0%, #ffb067 48%, #38d5a5 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.theme-vk .case-hero .btn--primary:hover,
.theme-vk .case-hero .btn--primary:focus-visible {
  color: #07130f;
  background: linear-gradient(105deg, #ff9a62 0%, #ffc07e 48%, #55e3b7 100%);
}

.iretail-hero-device {
  position: absolute;
  top: 116px;
  right: -18px;
  bottom: 52px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 43%;
  pointer-events: none;
}

.iretail-hero-device::before {
  position: absolute;
  right: 1%;
  bottom: 0;
  width: 94%;
  height: 76%;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 36px 90px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
  content: "";
}

.iretail-hero-device img {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  max-width: 86%;
  height: 100%;
  max-height: 590px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 34px 36px rgba(0, 0, 0, .34));
}

.iretail-hero-device__badge {
  position: absolute;
  right: 0;
  bottom: 42px;
  z-index: 3;
  display: block;
  width: min(230px, 58%);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 19, 15, .58);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
}

.iretail-hero-device__badge b,
.iretail-hero-device__badge small {
  display: block;
}

.iretail-hero-device__badge b { font-size: 15px; }
.iretail-hero-device__badge small { margin-top: 4px; color: rgba(255, 255, 255, .68); font-size: 11px; line-height: 1.35; }

.theme-vk .case-kpis {
  width: 100%;
  margin: 0;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  color: var(--case-ink);
  border-bottom: 1px solid #dfe6e2;
  background: #fff;
  box-shadow: none;
}

.theme-vk .case-kpis > div {
  min-height: 142px;
  padding: 29px 28px;
  border-right-color: #dfe6e2;
}

.theme-vk .case-kpis b { color: #0a7a5f; }
.theme-vk .case-kpis span { color: #4d5a55; opacity: 1; }

.iretail-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  margin-bottom: 44px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--case-line);
}

.iretail-intro p {
  margin: 0;
  color: var(--case-muted);
  font-size: 18px;
  line-height: 1.7;
}

.iretail-client-photo {
  max-width: 920px;
  margin: 0 auto 52px;
}

.iretail-client-photo--audience {
  margin-top: 52px;
  margin-bottom: 0;
}

.iretail-client-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #e7e9e8;
  box-shadow: 0 24px 60px rgba(25, 53, 43, .12);
}

.iretail-client-photo figcaption {
  margin-top: 12px;
  color: var(--case-muted);
  font-size: 13px;
  line-height: 1.45;
}

.iretail-start-grid .case-card { border-radius: 8px; }
.iretail-start-grid .case-card__num { margin-bottom: 25px; color: #0a7a5f; }

body.portfolio-case-page > main.portfolio-case > section.iretail-proof-section {
  --band-bg: #eef4f1;
  padding-bottom: 80px;
  background: #eef4f1;
}

body.theme-vk > main.portfolio-case > section.iretail-proof-section + #creatives {
  padding-top: 80px;
}

.vk-cabinet {
  overflow: hidden;
  border: 1px solid #d8dfdc;
  border-radius: 8px;
  color: #202529;
  background: #fff;
  box-shadow: 0 30px 80px rgba(25, 53, 43, .11);
}

.vk-cabinet__bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 66px;
  padding: 13px 20px;
  border-bottom: 1px solid #e3e7e5;
  background: #fafbfb;
}

.vk-cabinet__brand,
.vk-cabinet__tools { display: flex; gap: 12px; align-items: center; }
.vk-cabinet__brand span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: #fff; background: #2787f5; font-size: 12px; font-weight: 850; }
.vk-cabinet__brand b { font-size: 16px; }
.vk-cabinet__tools span { color: #6c7478; font-size: 12px; }
.vk-cabinet__blur { padding: 7px 10px; border-radius: 6px; filter: blur(2.5px); background: #e7ebed; user-select: none; }

.vk-cabinet__summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #e3e7e5;
}

.vk-cabinet__summary > div { min-height: 112px; padding: 23px 20px; border-right: 1px solid #e3e7e5; }
.vk-cabinet__summary > div:last-child { border-right: 0; }
.vk-cabinet__summary small { display: block; min-height: 31px; color: #727a7e; font-size: 11px; line-height: 1.35; }
.vk-cabinet__summary b { display: block; margin-top: 11px; font-size: clamp(21px, 2.4vw, 31px); letter-spacing: 0; }

.vk-cabinet__table { overflow-x: auto; }
.vk-cabinet__row { display: grid; grid-template-columns: minmax(310px, 2fr) repeat(3, minmax(120px, .72fr)); min-width: 810px; border-bottom: 1px solid #edf0ef; }
.vk-cabinet__row:last-child { border-bottom: 0; }
.vk-cabinet__row > span { position: relative; display: block; padding: 18px 20px; color: #31383b; font-size: 13px; }
.vk-cabinet__row > span + span { border-left: 1px solid #edf0ef; }
.vk-cabinet__row > span:first-child { padding-left: 43px; }
.vk-cabinet__row b,
.vk-cabinet__row small { display: block; }
.vk-cabinet__row small { margin-top: 4px; color: #7b8387; font-size: 11px; line-height: 1.35; }
.vk-cabinet__row--head { background: #f7f8f8; }
.vk-cabinet__row--head > span { padding-block: 12px; color: #7a8286; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.vk-cabinet__row--head > span:first-child { padding-left: 20px; }
.vk-status { position: absolute; top: 22px; left: 20px; width: 9px; height: 9px; border-radius: 50%; background: #20b980; box-shadow: 0 0 0 4px rgba(32, 185, 128, .12); }

.iretail-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.iretail-proof-card { padding: 26px; border: 1px solid #d8dfdc; border-radius: 8px; background: rgba(255, 255, 255, .72); }
.iretail-proof-card > span { display: block; color: #0a7a5f; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.iretail-proof-card > b { display: block; margin-top: 24px; font-family: var(--heading-font); font-size: 31px; line-height: 1; }
.iretail-proof-card p { margin: 14px 0 0; color: var(--case-muted); font-size: 14px; line-height: 1.55; }

.iretail-asset-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-top: 48px;
}

.iretail-asset-wall figure,
.iretail-community-grid figure { overflow: hidden; margin: 0; border: 1px solid var(--case-line); border-radius: 8px; background: #fff; }
.iretail-asset-wall img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.iretail-asset-wall figcaption,
.iretail-community-grid figcaption { padding: 11px 12px; color: var(--case-muted); font-size: 11px; line-height: 1.35; }

.iretail-community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 40px; }
.iretail-community-grid img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center; }

.iretail-scripts {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  overflow: hidden;
  margin-top: 42px;
  border: 1px solid var(--case-line);
  border-radius: 8px;
  background: #fff;
}

.iretail-scripts__image { position: relative; min-height: 390px; overflow: hidden; background: #eceeed; }
.iretail-scripts__image::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .12)); content: ""; }
.iretail-scripts__image img { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; filter: blur(1.35px); transform: scale(1.018); }
.iretail-scripts__copy { align-self: center; padding: 40px; }
.iretail-scripts__copy h3 { margin: 0; font-size: 29px; line-height: 1.08; }
.iretail-scripts__copy p { margin: 18px 0 0; color: var(--case-muted); font-size: 16px; line-height: 1.65; }
.iretail-scripts__caption { max-width: 920px; margin: 14px 0 0; color: var(--case-muted); font-size: 13px; line-height: 1.5; }

body.portfolio-case-page > main.portfolio-case > section.iretail-audience-section {
  --band-bg: #eef4f1;
  background: #eef4f1;
}

.iretail-audience-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: start; }
.vk-audience-card { overflow: hidden; border: 1px solid #d8dfdc; border-radius: 8px; background: #fff; box-shadow: 0 26px 60px rgba(25, 53, 43, .09); }
.vk-audience-card__top { display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid #e5e9e7; background: #fafbfb; }
.vk-audience-card__top span { color: #2787f5; font-size: 12px; font-weight: 750; }
.vk-audience-card dl { margin: 0; }
.vk-audience-card dl > div { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; padding: 16px 20px; border-bottom: 1px solid #edf0ef; }
.vk-audience-card dl > div:last-child { border-bottom: 0; }
.vk-audience-card dt { color: #777f83; font-size: 12px; }
.vk-audience-card dd { margin: 0; font-size: 13px; font-weight: 750; }

.portfolio-faq { display: grid; max-width: 920px; border-top: 1px solid var(--case-line); }
.portfolio-faq details { border-bottom: 1px solid var(--case-line); }
.portfolio-faq summary { position: relative; padding: 23px 52px 23px 0; cursor: pointer; font-size: 19px; font-weight: 800; line-height: 1.35; list-style: none; }
.portfolio-faq summary::-webkit-details-marker { display: none; }
.portfolio-faq summary::after { position: absolute; top: 19px; right: 0; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--case-line); border-radius: 50%; color: #0a7a5f; content: "+"; }
.portfolio-faq details[open] summary::after { content: "−"; }
.portfolio-faq p { max-width: 780px; margin: -3px 0 24px; color: var(--case-muted); font-size: 16px; line-height: 1.65; }

.portfolio-faq summary:focus-visible {
  outline: 3px solid #0a7a5f;
  outline-offset: 4px;
}

.theme-vk .case-final { position: relative; overflow: hidden; background: #06100d; }
.theme-vk .case-final::before { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(242, 118, 61, .12), transparent 40%, rgba(34, 211, 161, .1)); content: ""; pointer-events: none; }
.theme-vk .case-final__inner { position: relative; z-index: 1; }
.iretail-final-phone { position: absolute; bottom: -120px; left: 36%; z-index: -1; width: 230px; max-height: 480px; object-fit: contain; opacity: .42; transform: rotate(-8deg); filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .28)); pointer-events: none; }
.theme-vk .case-final .form { border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; box-shadow: 0 28px 80px rgba(0, 0, 0, .3); }
.theme-vk .case-final .form-slider { color: #0d1d17; background: linear-gradient(105deg, #ff8a4d 0%, #ffb067 46%, #38d5a5 100%); }
.theme-vk .case-final .form-slider__fill { background: linear-gradient(105deg, #ff9a62, #55e3b7); }

body.theme-vk > .footer {
  --footer-fog-surface: #07100d;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 52px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(255, 255, 255, .11);
  color: #f4f7f5;
  background: #07100d;
}

body.theme-vk > .footer a,
body.theme-vk > .footer small { color: rgba(255, 255, 255, .62); }
body.theme-vk > .footer a:hover,
body.theme-vk > .footer a:focus-visible { color: #fff; }

@media (max-width: 980px) {
  .theme-vk .case-hero__copy { width: min(610px, 59%); }
  .iretail-hero-device { right: -6%; width: 47%; }
  .iretail-proof-grid { grid-template-columns: 1fr; }
  .iretail-asset-wall { grid-template-columns: repeat(4, 1fr); }
  .iretail-community-grid { grid-template-columns: 1fr 1fr; }
  .iretail-scripts,
  .iretail-audience-layout { grid-template-columns: 1fr; }
  .iretail-scripts__image { min-height: 330px; }
}

@media (max-width: 680px) {
  .theme-vk .case-hero,
  .theme-vk .case-hero__inner { min-height: 810px; }
  .theme-vk .case-hero__inner { padding-top: 98px; padding-bottom: 270px; }
  .theme-vk .case-hero__copy { width: 100%; margin-top: 34px; }
  .theme-vk .case-hero h1 { font-size: clamp(39px, 11.6vw, 56px); }
  .theme-vk .case-hero h1 span + span { margin-top: 4px; }
  .theme-vk .case-hero__lead { font-size: 17px; line-height: 1.48; }
  .theme-vk .case-hero--vk::before {
    opacity: 1;
    background:
      linear-gradient(160deg, rgba(242, 118, 61, .14) 0 30%, rgba(34, 211, 161, .08) 30% 52%, transparent 52%),
      linear-gradient(145deg, #07130f, #123d31);
  }
  .iretail-hero-device { top: auto; right: 3%; bottom: 18px; width: 61%; height: 280px; }
  .iretail-hero-device::before { height: 74%; }
  .iretail-hero-device img { max-width: 82%; max-height: 275px; }
  .iretail-hero-device__badge { right: auto; bottom: 25px; left: -56%; width: 210px; }
  .theme-vk .case-kpis { grid-template-columns: 1fr; margin-top: 0; padding-inline: 14px; }
  .theme-vk .case-kpis > div { min-height: 0; padding: 21px 10px; border-right: 0; border-bottom: 1px solid #dfe6e2; }
  .theme-vk .case-kpis > div:last-child { border-bottom: 0; }
  .iretail-intro { grid-template-columns: 1fr; gap: 22px; }
  .vk-cabinet__bar { align-items: flex-start; }
  .vk-cabinet__tools { flex-wrap: wrap; justify-content: flex-end; }
  .vk-cabinet__summary { grid-template-columns: 1fr 1fr; }
  .vk-cabinet__summary > div:nth-child(2) { border-right: 0; }
  .vk-cabinet__summary > div:nth-child(-n+2) { border-bottom: 1px solid #e3e7e5; }
  .iretail-asset-wall { grid-template-columns: 1fr 1fr; }
  .iretail-community-grid { grid-template-columns: 1fr; }
  .iretail-scripts__image,
  .iretail-scripts__image img { min-height: 250px; }
  .iretail-scripts__copy { padding: 28px; }
  .portfolio-faq summary { font-size: 17px; }
  .iretail-final-phone { right: -28px; bottom: -155px; left: auto; width: 180px; opacity: .3; }
}

/* iRetail final visual pass: real materials, readable proof and product-led color. */
.theme-vk .case-stage {
  color: #0a7a5f;
  font-size: 14px;
}

.theme-vk .funnel article > span,
.theme-vk .case-card__num {
  color: #0a7a5f;
  font-size: 14px;
}

body.theme-vk .header__cta {
  color: #fff;
  border-color: #ef6b2e;
  background: #ef6b2e;
}

body.theme-vk .header__cta:hover,
body.theme-vk .header__cta:focus-visible {
  color: #fff;
  border-color: #d95520;
  background: #d95520;
}

.theme-vk .case-hero,
.theme-vk .case-hero__inner {
  min-height: 780px;
}

.case-hero--vk::before {
  background:
    linear-gradient(118deg, transparent 0 34%, rgba(255, 151, 83, .18) 47%, transparent 61%),
    conic-gradient(from 214deg at 73% 45%, #09261e 0deg, #166249 82deg, #ff8747 151deg, #0fa77b 224deg, #0a3328 294deg, #09261e 360deg);
  background-position: 18% 50%, 50% 50%;
  background-size: 165% 165%, 145% 145%;
  animation: iretail-hero-shift 16s ease-in-out infinite alternate;
}

@keyframes iretail-hero-shift {
  from { background-position: 12% 45%, 42% 55%; }
  to { background-position: 86% 55%, 58% 42%; }
}

.theme-vk .case-hero__inner {
  padding-top: 126px;
  padding-bottom: 72px;
}

.theme-vk .case-hero__copy {
  width: min(720px, 64%);
  margin-top: 42px;
}

.theme-vk .case-hero h1 {
  max-width: 720px;
  font-size: 66px;
  line-height: 1.01;
  letter-spacing: 0;
}

.theme-vk .case-hero h1 span + span {
  margin-top: 4px;
  color: #fff;
}

.theme-vk .case-hero h1 span:last-child {
  color: #ffc29f;
}

.theme-vk .case-hero .btn--primary {
  min-width: 228px;
  min-height: 60px;
  padding-inline: 36px;
  color: #fff;
  border-color: #ef6b2e;
  background: #ef6b2e;
  box-shadow: 0 18px 42px rgba(47, 18, 4, .28);
  font-size: 22px;
}

.theme-vk .case-hero .btn--primary:hover,
.theme-vk .case-hero .btn--primary:focus-visible {
  color: #fff;
  border-color: #d95520;
  background: #d95520;
}

.iretail-hero-device {
  --iretail-device-x: 0px;
  --iretail-device-y: 0px;
  --iretail-device-rotate-x: 0deg;
  --iretail-device-rotate-y: 0deg;
  top: 128px;
  right: 0;
  bottom: 28px;
  width: 36%;
  align-items: center;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  touch-action: manipulation;
  transform: perspective(1100px) translate3d(var(--iretail-device-x), var(--iretail-device-y), 0) rotateX(var(--iretail-device-rotate-x)) rotateY(var(--iretail-device-rotate-y));
  transform-origin: 50% 52%;
  user-select: none;
  will-change: transform;
}

.iretail-hero-device:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 8px;
}

.iretail-hero-device::before {
  content: none;
}

.iretail-hero-device img {
  width: 100%;
  max-width: 390px;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 34px 36px rgba(0, 0, 0, .34));
}

.iretail-proof-grid--facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.iretail-proof-grid--facts .iretail-proof-card > b {
  font-size: 29px;
  line-height: 1.08;
}

.iretail-vk-proof-intro {
  max-width: 780px;
  margin-top: 58px;
}

.iretail-vk-proof-intro--creatives {
  margin-top: 64px;
}

.iretail-vk-proof-intro > span,
.iretail-vk-proof-card figcaption > span {
  color: #0a7a5f;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.iretail-vk-proof-intro h3 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.iretail-vk-proof-intro p {
  margin: 18px 0 0;
  color: var(--case-muted);
  font-size: 17px;
  line-height: 1.65;
}

.iretail-vk-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.iretail-vk-proof-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--case-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 48, 40, .07);
}

.iretail-vk-proof-card__shot {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--case-line);
  background: #f0f3f5;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  appearance: none;
}

.iretail-vk-proof-card__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1143 / 646;
  object-fit: cover;
  object-position: top center;
  transition: transform .2s ease;
}

.iretail-vk-proof-card__shot:hover img,
.iretail-vk-proof-card__shot:focus-visible img {
  transform: scale(1.012);
}

.iretail-vk-proof-card__shot:focus-visible {
  outline: 3px solid #0a7a5f;
  outline-offset: -3px;
}

.iretail-vk-proof-card figcaption {
  padding: 24px 26px 26px;
}

.iretail-vk-proof-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.iretail-vk-proof-card p {
  margin: 12px 0 0;
  color: var(--case-muted);
  font-size: 15px;
  line-height: 1.55;
}

.iretail-proof-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.iretail-proof-action .btn {
  min-width: 220px;
  justify-content: center;
  color: #fff;
  border-color: #0a7a5f;
  background: #0a7a5f;
}

.iretail-proof-action .btn:hover,
.iretail-proof-action .btn:focus-visible {
  color: #fff;
  border-color: #ef6b2e;
  background: #ef6b2e;
}

.iretail-figma-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  overflow: hidden;
  margin: 42px 0 0;
  border: 1px solid var(--case-line);
  border-radius: 8px;
  background: #fff;
}

.iretail-figma-overview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center;
}

.iretail-figma-overview figcaption {
  align-self: center;
  padding: 42px;
}

.iretail-figma-overview figcaption > span,
.iretail-video-test span {
  color: #0a7a5f;
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.iretail-figma-overview h3,
.iretail-video-test h3,
.iretail-campaign-list h3 {
  margin: 12px 0 0;
  font-size: 25px;
  line-height: 1.15;
}

.iretail-figma-overview p,
.iretail-video-test p,
.iretail-campaign-list p {
  margin: 14px 0 0;
  color: var(--case-muted);
  font-size: 15px;
  line-height: 1.6;
}

.iretail-video-tests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.iretail-video-test {
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: 8px;
  background: #fff;
}

.iretail-video-test img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.iretail-video-test > div {
  padding: 28px;
}

.iretail-campaign-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.iretail-campaign-intro { max-width: 820px; margin-top: 54px; }
.iretail-campaign-intro h3 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }

.iretail-campaign-list figure {
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--case-line);
  border-radius: 8px;
  background: #fff;
}

.iretail-campaign-list img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.iretail-campaign-list figcaption {
  align-self: center;
  padding: 26px;
}

.iretail-campaign-list h3 {
  margin-top: 0;
  font-size: 21px;
}

.iretail-scripts__image::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04));
}

.iretail-scripts__image img {
  filter: blur(.25px);
  transform: scale(1.003);
}

body.theme-vk > main.portfolio-case > section.case-cta-band {
  --band-bg: #173f35;
  background: #173f35;
}

.theme-vk .case-cta-band .btn {
  min-width: 220px;
  justify-content: center;
  color: #173f35;
  border-color: #fff;
  background: #fff;
}

.theme-vk .case-cta-band .btn:hover,
.theme-vk .case-cta-band .btn:focus-visible {
  color: #fff;
  border-color: #ef6b2e;
  background: #ef6b2e;
}

.iretail-audience-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 42px;
}

.iretail-audience-notes article {
  padding-top: 24px;
  border-top: 3px solid #0a7a5f;
}

.iretail-audience-notes span {
  color: #0a7a5f;
  font-size: 14px;
  font-weight: 850;
}

.iretail-audience-notes h3 {
  margin: 18px 0 0;
  font-size: 24px;
  line-height: 1.18;
}

.iretail-audience-notes p {
  margin: 14px 0 0;
  color: var(--case-muted);
  font-size: 15px;
  line-height: 1.62;
}

.theme-vk .case-final {
  background: #173f35;
}

.theme-vk .case-final::before {
  background:
    linear-gradient(132deg, rgba(255, 142, 78, .24) 0 16%, transparent 34%),
    linear-gradient(36deg, #173f35 0%, #22604f 44%, #2c8469 71%, #183f36 100%);
}

.theme-vk .case-final__copy,
.theme-vk .case-final .form {
  position: relative;
  z-index: 2;
}

.iretail-final-phone {
  right: -105px;
  bottom: -105px;
  left: auto;
  z-index: 1;
  width: 250px;
  max-height: 470px;
  opacity: .84;
  transform: rotate(-7deg);
}

.theme-vk .case-final .form-slider,
.theme-vk .case-final .form-slider__fill {
  color: #07130f;
  background: #ef6b2e !important;
}

.theme-vk .case-final .form-slider::before,
.theme-vk .case-final .form-slider::after {
  display: none !important;
}

.theme-vk .case-final .form-slider__text b {
  font-size: 20px;
}

.theme-vk .case-final .form-slider__text small {
  font-size: 14px;
  color: #07130f;
}

body.theme-vk > .footer {
  --footer-fog-surface: #1c2824;
  background: #1c2824;
}

body.theme-vk > .footer .brand__logo {
  filter: invert(1);
}

body.theme-vk > .footer .footer__contacts span,
body.theme-vk > .footer .footer__contacts a {
  color: #c9d5d0;
}

html[data-iretail-hero="waves"] .case-hero--vk::before {
  background:
    radial-gradient(ellipse at 88% 28%, rgba(255, 135, 71, .72) 0%, rgba(255, 135, 71, .2) 24%, transparent 53%),
    radial-gradient(ellipse at 68% 94%, rgba(15, 167, 123, .9) 0%, rgba(15, 167, 123, .24) 42%, transparent 68%),
    linear-gradient(128deg, #07130f 0%, #0a3328 46%, #174c3d 100%);
  background-position: center;
  background-size: 135% 135%, 130% 130%, 100% 100%;
  animation: iretail-waves-base 15s ease-in-out infinite alternate;
}

html[data-iretail-hero="waves"] .case-hero--vk::after {
  position: absolute;
  inset: -28% -16%;
  z-index: -1;
  width: auto;
  background:
    repeating-radial-gradient(ellipse at 84% 52%, transparent 0 42px, rgba(255, 194, 159, .2) 44px 47px, transparent 49px 88px),
    repeating-radial-gradient(ellipse at 75% 48%, transparent 0 68px, rgba(56, 213, 165, .18) 70px 73px, transparent 75px 126px);
  opacity: .92;
  transform: rotate(-9deg) scale(1.08);
  -webkit-mask-image: linear-gradient(90deg, transparent 0 18%, #000 46% 100%);
  mask-image: linear-gradient(90deg, transparent 0 18%, #000 46% 100%);
  animation: iretail-waves-flow 13s ease-in-out infinite alternate;
  content: "";
}

html[data-iretail-hero="liquid"] .case-hero--vk::before {
  background:
    conic-gradient(from 212deg at 66% 48%, #07130f 0deg, #0a3328 58deg, #16a77b 112deg, #ff8747 168deg, #ffc29f 205deg, #166249 264deg, #07130f 360deg);
  background-position: center;
  background-size: 146% 146%;
  animation: iretail-liquid-base 11s cubic-bezier(.45, .05, .25, .95) infinite alternate;
}

html[data-iretail-hero="liquid"] .case-hero--vk::after {
  position: absolute;
  inset: -34% -18%;
  z-index: -1;
  width: auto;
  background:
    radial-gradient(circle at 77% 34%, rgba(255, 194, 159, .9) 0 8%, rgba(255, 135, 71, .55) 14%, transparent 34%),
    radial-gradient(circle at 58% 72%, rgba(56, 213, 165, .8) 0 10%, rgba(15, 167, 123, .38) 23%, transparent 44%),
    radial-gradient(circle at 92% 76%, rgba(22, 98, 73, .95) 0 12%, transparent 36%);
  opacity: .88;
  filter: blur(42px) saturate(1.18);
  mix-blend-mode: screen;
  transform: rotate(-7deg) scale(1.08);
  animation: iretail-liquid-flow 8s ease-in-out infinite alternate;
  content: "";
}

@keyframes iretail-waves-base {
  from { background-position: 44% 46%, 56% 58%, center; }
  to { background-position: 58% 54%, 44% 44%, center; }
}

@keyframes iretail-waves-flow {
  from { transform: rotate(-10deg) translate3d(-2%, -1%, 0) scale(1.08); }
  to { transform: rotate(-5deg) translate3d(3%, 2%, 0) scale(1.14); }
}

@keyframes iretail-liquid-base {
  from { background-position: 38% 42%; background-size: 142% 142%; }
  to { background-position: 62% 58%; background-size: 170% 170%; }
}

@keyframes iretail-liquid-flow {
  from { transform: rotate(-11deg) translate3d(-5%, 3%, 0) scale(1.04); }
  to { transform: rotate(7deg) translate3d(6%, -5%, 0) scale(1.16); }
}

@media (max-width: 760px) {
  html[data-iretail-hero="liquid"] .case-hero--vk::before {
    background:
      conic-gradient(from 212deg at 59% 72%, #07130f 0deg, #0a3328 58deg, #16a77b 112deg, #ff8747 168deg, #ffc29f 205deg, #166249 264deg, #07130f 360deg);
  }

  html[data-iretail-hero="liquid"] .case-hero--vk .case-hero__inner::before {
    position: absolute;
    top: 0;
    left: -20px;
    z-index: 0;
    width: calc(100% + 40px);
    height: 610px;
    background: linear-gradient(180deg, rgba(7, 19, 15, .62) 0%, rgba(7, 19, 15, .48) 62%, rgba(7, 19, 15, .16) 86%, transparent 100%);
    pointer-events: none;
    content: "";
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-hero--vk::before,
  html[data-iretail-hero="waves"] .case-hero--vk::before,
  html[data-iretail-hero="liquid"] .case-hero--vk::before,
  html[data-iretail-hero="waves"] .case-hero--vk::after,
  html[data-iretail-hero="liquid"] .case-hero--vk::after { animation: none; }

  .iretail-hero-device {
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 1100px) {
  .theme-vk .case-hero__copy { width: min(650px, 62%); }
  .theme-vk .case-hero h1 { font-size: 58px; }
  .iretail-hero-device { right: -2%; width: 38%; }
  .iretail-proof-grid--facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iretail-figma-overview { grid-template-columns: 1fr; }
  .iretail-figma-overview img { min-height: 0; aspect-ratio: 16 / 10; }
  .iretail-campaign-list figure { grid-template-columns: 38% 62%; }
}

@media (max-width: 760px) {
  .theme-vk .case-hero,
  .theme-vk .case-hero__inner { min-height: 860px; }
  .theme-vk .case-hero__inner { padding-top: 108px; padding-bottom: 320px; }
  .theme-vk .case-hero__copy { width: 100%; margin-top: 32px; }
  .theme-vk .case-hero h1 { max-width: 560px; font-size: 46px; }
  .theme-vk .case-hero__lead { max-width: 560px; font-size: 17px; }
  .iretail-hero-device { top: auto; right: 2%; bottom: 18px; width: 52%; height: 285px; }
  .iretail-hero-device img { width: auto; max-width: 100%; max-height: 280px; }
  .iretail-proof-grid--facts,
  .iretail-vk-proof-grid,
  .iretail-video-tests,
  .iretail-campaign-list,
  .iretail-audience-notes { grid-template-columns: 1fr; }
  .iretail-figma-overview figcaption { padding: 28px; }
  .iretail-campaign-list figure { grid-template-columns: 42% 58%; }
  .iretail-final-phone { right: -92px; bottom: -125px; width: 210px; opacity: .72; }
}

@media (max-width: 520px) {
  .theme-vk .case-hero,
  .theme-vk .case-hero__inner { min-height: 850px; }
  .theme-vk .case-hero__inner { padding-bottom: 300px; }
  .theme-vk .case-hero h1 { font-size: 40px; }
  .theme-vk .case-hero .btn--primary { width: 100%; }
  .iretail-hero-device { right: 4%; width: 58%; height: 265px; }
  .iretail-hero-device img { max-height: 260px; }
  .iretail-vk-proof-intro { margin-top: 44px; }
  .iretail-vk-proof-intro--creatives { margin-top: 52px; }
  .iretail-vk-proof-card figcaption { padding: 22px; }
  .iretail-vk-proof-card h3 { font-size: 20px; }
  .iretail-campaign-list figure { grid-template-columns: 1fr; }
  .iretail-campaign-list img { min-height: 0; aspect-ratio: 1 / 1; }
}

@media (max-width: 980px) {
  .case-hero__copy,
  .case-hero--sinatra .case-hero__copy { width: min(720px, 72%); }
  .case-hero--sinatra::before { left: 38%; opacity: .72; }
  .case-hero--vk::after { right: -6vw; width: 50vw; opacity: .72; }
  .case-kpis { grid-template-columns: 1fr 1fr; }
  .case-kpis > div:nth-child(2) { border-right: 0; }
  .case-kpis > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.22); }
  .case-card { grid-column: span 6; }
  .case-split,
  .case-final__inner { grid-template-columns: 1fr; gap: 48px; }
  .creative-grid { grid-template-columns: 1fr 1fr; }
  .case-brand-grid { grid-template-columns: 1fr 1fr; }
  .case-fashion-grid { grid-template-columns: 1fr 1fr; }
  .funnel { grid-template-columns: 1fr 1fr; }
  .funnel article:nth-child(2) { border-right: 0; }
  .funnel article:nth-child(-n+2) { border-bottom: 1px solid var(--case-line); }
  .dashboard__stats { grid-template-columns: 1fr 1fr; }
  .tmc-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .case-shell,
  .case-hero__inner,
  .case-kpis,
  .case-cta-band__inner,
  .case-final__inner { width: min(100% - 28px, 1180px); }
  .case-hero,
  .case-hero__inner { min-height: 650px; }
  .case-hero__inner { padding: 96px 0 115px; }
  .case-hero__copy,
  .case-hero--sinatra .case-hero__copy { width: 100%; margin-top: 30px; }
  .case-hero h1 { font-size: clamp(40px, 12.5vw, 64px); }
  .case-hero__lead { font-size: 18px; }
  .case-hero--photo { background-position: 67% center; }
  .case-hero--photo::before { background: linear-gradient(90deg, rgba(13,15,16,.96), rgba(13,15,16,.73)); }
  .case-hero--sinatra::before {
    opacity: .28;
    background:
      linear-gradient(90deg, rgba(244, 237, 226, .92), rgba(244, 237, 226, .58)),
      url("assets/cases/sinatra/hero-wide.webp") 70% center / cover no-repeat;
  }
  .case-hero--vk .case-hero__copy { width: 100%; }
  .case-hero--vk::before {
    opacity: .32;
    background:
      linear-gradient(90deg, rgba(5, 14, 11, .92), rgba(5, 14, 11, .72)),
      url("assets/cases/iretail/hero-orange-phone.webp") 72% center / cover no-repeat;
  }
  .case-kpis { grid-template-columns: 1fr; margin-top: -60px; }
  .case-kpis > div { min-height: 0; padding: 22px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .case-kpis > div:last-child { border-bottom: 0; }
  .case-section,
  .case-final { padding: 78px 0; }
  .case-section__head { margin-bottom: 36px; }
  .case-section__head > p { font-size: 17px; }
  .case-card,
  .case-card--wide { grid-column: 1 / -1; }
  .case-card { padding: 24px; }
  .query-board,
  .math-card,
  .creative-grid,
  .funnel,
  .site-audit { grid-template-columns: 1fr; }
  .query-board__col + .query-board__col { border-top: 1px solid var(--case-line); border-left: 0; }
  .math-card > div { padding: 26px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .math-card > div:last-child { border-bottom: 0; }
  .site-shot__body { min-height: 390px; padding: 28px; }
  .site-shot h3 { margin-top: 95px; }
  .creative-card img { aspect-ratio: 9 / 12; object-position: center 22%; }
  .case-brand-grid { grid-template-columns: 1fr; }
  .case-fashion-grid { grid-template-columns: 1fr; }
  .direct-evidence { grid-template-columns: 1fr; }
  .tmc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel article { border-right: 0; border-bottom: 1px solid var(--case-line); }
  .funnel article:last-child { border-bottom: 0; }
  .campaign-bar { grid-template-columns: 1fr 82px; gap: 10px; }
  .campaign-bar__track { grid-column: 1 / -1; grid-row: 2; }
  .site-audit__image { min-height: 380px; }
  .site-audit__copy { padding: 28px; }
  .case-photo-grid { grid-template-columns: 1fr; }
  .case-cta-band__inner { display: grid; }
  .case-cta-band .btn { justify-self: start; }
}

/* Sinatra: screenshots from the real Direct interface. */
.case-direct-section {
  background: #f6f7f8;
}

.case-direct-section .case-stage {
  color: #526052;
}

.direct-proof,
.direct-proof-grid {
  margin: 0;
}

.direct-proof {
  overflow: hidden;
  border: 1px solid #dfe3e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(41, 48, 56, .08);
}

.direct-proof--wide {
  margin-top: 42px;
}

.direct-proof img {
  display: block;
  width: 100%;
  height: auto;
  background: #f3f5f7;
}

.direct-proof figcaption {
  padding: 28px 30px 31px;
  border-top: 1px solid #e6e9ec;
}

.direct-proof figcaption > span {
  color: #526052;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.direct-proof h3 {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.18;
}

.direct-proof p {
  margin: 13px 0 0;
  color: var(--case-muted);
  font-size: 15px;
  line-height: 1.6;
}

.direct-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.direct-proof-grid .direct-proof img {
  height: 440px;
  padding: 18px;
  object-fit: contain;
}

.direct-proof-grid > .direct-proof:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 11px);
  justify-self: center;
}

.theme-sinatra .case-kpis {
  background: #566252;
}

@media (max-width: 820px) {
  .direct-proof-grid { grid-template-columns: 1fr; }
  .direct-proof-grid > .direct-proof:last-child { grid-column: auto; width: 100%; }
  .direct-proof-grid .direct-proof img { height: auto; max-height: 560px; }
}

@media (max-width: 680px) {
  .site-audit__image img { min-height: 380px; }
  .direct-proof figcaption { padding: 23px; }
  .direct-proof h3 { font-size: 21px; }
  .direct-proof-grid .direct-proof img { padding: 10px; }
}

@media (max-width: 680px) {
  .case-hero--vk::before {
    opacity: 1;
    background:
      linear-gradient(132deg, transparent 0 28%, rgba(255, 151, 83, .2) 44%, transparent 61%),
      conic-gradient(from 218deg at 72% 50%, #09261e 0deg, #176249 84deg, #ff8747 154deg, #0fa77b 225deg, #0a3328 296deg, #09261e 360deg);
    background-position: 18% 50%, 50% 50%;
    background-size: 165% 165%, 145% 145%;
  }
}
