/* =========================================================
   VCHERA — public/assets/css/style.css
   ---------------------------------------------------------
   Новый тёмный дизайн.
   Источник визуала: актуальный монолит из диалога.
   ========================================================= */


/* ============ tokens ============ */
:root {
  --bg: #0c0c0e;
  --bg-2: #121215;
  --bg-3: #1a1a1f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f0ec;
  --muted: #9a9aa2;
  --accent: #2777d8;
  --accent-ink: #ffffff;
  --radius: 16px;
  --font: "Onest", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1420px;
  --header-h: 68px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2 {
  font-weight: 500;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0;
}


/* ============ reveal on scroll ============ */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}


/* ============ header ============ */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(12, 12, 14, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hdr .wrap {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo em {
  color: var(--accent);
  font-style: normal;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14.5px;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}






.nav-dd {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dd::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 19;
  width: 236px;
  height: 18px;
  opacity: 0;
  pointer-events: none;
}

.nav-dd:hover::after,
.nav-dd:focus-within::after {
  pointer-events: auto;
}

.nav-dd__summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  cursor: default;
  transition: color 0.2s ease;
}

.nav-dd__summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.75;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-dd:hover .nav-dd__summary,
.nav-dd:focus-within .nav-dd__summary {
  color: var(--text);
}

.nav-dd:hover .nav-dd__summary::after,
.nav-dd:focus-within .nav-dd__summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.nav-dd__menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  z-index: 20;
  display: grid;
  min-width: 236px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 18, 21, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.nav-dd:hover .nav-dd__menu,
.nav-dd:focus-within .nav-dd__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dd__link {
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav-dd__link:hover,
.nav-dd__link.is-active {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}






.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.burger svg {
  width: 24px;
  height: 24px;
}


/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-a {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-a:hover {
  background: #3d8ae2;
}

.btn-g {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-g:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.hdr .btn {
  padding: 11px 18px;
  font-size: 14px;
}

/* ============ hero: одно фото, full-bleed ============ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(56px, 9vh, 96px);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 14, 0.55) 0%,
      rgba(12, 12, 14, 0.15) 40%,
      rgba(12, 12, 14, 0.92) 100%
    );
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.hero .wrap {
  width: 100%;
  text-align: left;
}

.hero .kicker {
  color: rgba(255, 255, 255, 0.75);
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 46ch;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15.5px, 1.25vw, 17.5px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .btn-g {
  background: rgba(12, 12, 14, 0.35);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero .btn-g:hover {
  border-color: rgba(255, 255, 255, 0.8);
}


/* ============ ticker ============ */
.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 34s linear infinite;
}

.ticker span {
  position: relative;
  padding: 0 34px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span::after {
  content: "•";
  position: absolute;
  right: -6px;
  color: var(--accent);
}

@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}


/* ============ sections ============ */
section {
  padding: clamp(68px, 10vh, 116px) 0;
}

.sec-h {
  margin-bottom: clamp(34px, 4.5vh, 50px);
}

.sec-h h2 {
  max-width: 22ch;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.sec-h p {
  max-width: 56ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}


/* ============ statement ============ */
.statement {
  padding: clamp(78px, 12vh, 136px) 0;
  border-bottom: 1px solid var(--line);
}

.statement-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.9fr);
  column-gap: clamp(34px, 6vw, 78px);
  row-gap: clamp(22px, 3vw, 34px);
  padding: clamp(34px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 255, 255, 0.025);
}

.statement-eyebrow {
  margin-bottom: 18px;
  color: rgba(154, 154, 162, 0.7);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.statement h2 {
  max-width: 19ch;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.statement h2 em {
  color: var(--accent);
  font-style: normal;
}

.statement-lead {
  max-width: 54ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16.5px;
}

.statement-proof {
  display: grid;
  align-content: start;
  margin-top: 0;
}

.proof-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  padding: 15px 0 16px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
}

.proof-item:last-child {
  border-bottom: 1px solid var(--line);
}

.proof-index {
  display: block;
  width: 58px;
  color: rgba(154, 154, 162, 0.7);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.proof-body h3 {
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.proof-body p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.statement-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat {
  min-height: 154px;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.032);
}

.stat-num {
  color: var(--text);
  font-size: clamp(46px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.stat-num small {
  margin-left: 6px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-label {
  max-width: 23ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}



/* ============ before / after ============ */
#ba {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ba-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
}

.ba-card--plan {
  grid-column: 1 / -1;
}

.ba {
  position: relative;
  height: clamp(260px, 32vw, 420px);
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.ba .after {
  clip-path: inset(0 0 0 50%);
}

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  transform: translateX(-1px);
  pointer-events: none;
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ba-knob svg {
  width: 20px;
  height: 20px;
}

.ba-lbl {
  position: absolute;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.6);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.ba-lbl.l {
  left: 14px;
}

.ba-lbl.r {
  right: 14px;
}

.ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 20px;
}

.ba-meta h3 {
  font-size: 17px;
  font-weight: 600;
}

.ba-meta small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.ba-meta p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.ba-tag {
  padding: 6px 11px;
  border: 1px solid rgba(39, 119, 216, 0.45);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-case {
  padding: 14px 14px 0;
}

.plan-case__plan {
  position: relative;
  min-height: clamp(220px, 26vw, 340px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.04);
}

.plan-case__plan img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  padding: 18px;
}

.plan-pin {
  position: absolute;
  top: var(--pin-y, 50%);
  left: var(--pin-x, 50%);
  z-index: 2;
  transform: translate(-50%, -50%);
}

.plan-pin__line {
  position: absolute;
  top: var(--line-y, 0);
  left: var(--line-x, 0);
  width: var(--line-length, 88px);
  height: 2px;
  background: rgba(39, 119, 216, 0.72);
  transform-origin: 0 50%;
  transform: rotate(var(--line-angle, -90deg));
}

.plan-pin__dot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid #2777d8;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(39, 119, 216, 0.18);
  transform: translate(-50%, -50%);
}

.plan-pin__bubble {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(39, 119, 216, 0.72);
  border-radius: 999px;
  background: rgba(37, 44, 60, 0.96);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transform: translate(var(--bubble-x, -18px), var(--bubble-y, -100px));
}

.plan-pin__bubble b,
.plan-render figcaption span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(39, 119, 216, 0.72);
  border-radius: 50%;
  background: rgba(39, 119, 216, 0.34);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.plan-pin__bubble b {
  font-style: normal;
}

.plan-pin__bubble span {
  display: block;
}

.plan-case__renders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.plan-render {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.03);
}

.plan-render__img {
  position: relative;
  height: clamp(180px, 18vw, 260px);
  overflow: hidden;
}

.plan-render__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-render figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--text);
  font-size: 14px;
}




/* ============ directions ============ */
#dirs {
  padding-top: clamp(68px, 10vh, 116px);
}

.dirs-showcase {
  display: grid;
  gap: 14px;
}

.dir-stage {
  position: relative;
  display: flex;
  min-height: clamp(520px, 60vh, 720px);
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
  isolation: isolate;
}

.dir-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 14, 0.08) 0%,
      rgba(12, 12, 14, 0.12) 42%,
      rgba(12, 12, 14, 0.9) 100%
    );
}

.dir-stage__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 0.45s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dir-stage__image.is-active {
  opacity: 1;
  transform: scale(1);
}

.dir-stage:hover .dir-stage__image.is-active,
.dir-stage:focus-visible .dir-stage__image.is-active {
  transform: scale(1.04);
}

.dir-stage__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  padding: clamp(24px, 4vw, 38px);
}

.dir-num {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.dir-stage h3 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.dir-stage__text {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease,
    transform 0.35s ease;
}

.dir-stage:hover .dir-stage__text,
.dir-stage:focus-visible .dir-stage__text,
.dir-stage:focus-within .dir-stage__text {
  max-height: 150px;
  opacity: 1;
  transform: translateY(0);
}

.dir-stage__text p {
  max-width: 42ch;
  margin-bottom: 16px;
  color: rgba(242, 240, 236, 0.84);
  font-size: 15.5px;
}

.dir-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.dir-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.dir-stage:hover .dir-link svg,
.dir-stage:focus-visible .dir-link svg {
  transform: translateX(4px);
}

.dir-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}



.dir-tab {
  position: relative;
  display: grid;
  min-height: 132px;
  align-content: end;
  gap: 12px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.15s ease;
}

.dir-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  opacity: 0.34;
  filter: saturate(0.9);
  transform: scale(1.02);
  transition:
    opacity 0.22s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.dir-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 14, 0.2) 0%,
      rgba(12, 12, 14, 0.72) 100%
    );
}

.dir-tab[data-dir-key="predmety"]::before {
  background-image: url("/assets/img/1page/Predmety-01.png");
}

.dir-tab[data-dir-key="exteriors"]::before {
  background-image: url("/assets/img/1page/exteriors-03.jpg");
}

.dir-tab[data-dir-key="interiors"]::before {
  background-image: url("/assets/img/1page/Interior_vis_04_2.jpg");
}

.dir-tab[data-dir-key="developers"]::before {
  background-image: url("/assets/img/1page/developers_04_r2.jpg");
}

.dir-tab:hover,
.dir-tab:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  outline: none;
}

.dir-tab:hover::before,
.dir-tab:focus-visible::before {
  opacity: 0.5;
  transform: scale(1.06);
}

.dir-tab:active {
  transform: scale(0.99);
}

.dir-tab.is-active {
  border-color: rgba(39, 119, 216, 0.78);
  background: rgba(39, 119, 216, 0.14);
  color: var(--text);
}

.dir-tab.is-active::before {
  opacity: 0.62;
}

.dir-tab__num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.dir-tab__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

.dir-tab__text {
  display: none;
}


/* ============ cases ============ */
#cases {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.case {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
}

.case-img {
  position: relative;
  height: clamp(210px, 22vw, 320px);
  overflow: hidden;
}

.case-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.45s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-img img.alt {
  opacity: 0;
}

.case:hover .case-img img.alt {
  opacity: 1;
}

.case:hover .case-img img {
  transform: scale(1.03);
}

.case-meta {
  display: grid;
  flex: 1;
  align-content: space-between;
  gap: 14px;
  padding: 18px 20px 20px;
}

.case-meta h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.case-meta small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.case-price {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
}



/* ============ formats ============ */
.fmts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.fmt {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.fmt:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.fmt-num {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
}

.fmt h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.fmt p {
  color: var(--muted);
  font-size: 14.5px;
}

.fmt-hl {
  background: var(--accent);
  border-color: var(--accent);
}

.fmt-hl .fmt-num,
.fmt-hl p {
  color: rgba(255, 255, 255, 0.78);
}

.fmt-hl h3 {
  color: #ffffff;
}


/* ============ contact / form ============ */
#contact {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.ct {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 90px);
}

.ct h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.ct-lead {
  max-width: 44ch;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 17px;
}

.ct-steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.ct-step {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.ct-step b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.ct-step span {
  color: var(--text);
  font-size: 15.5px;
}

.ct-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 30px;
  font-size: 15.5px;
}

.ct-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.ct-links a:hover {
  color: var(--text);
}

.ct-links b {
  color: var(--text);
  font-weight: 600;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.fld {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fld label {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}

.fld input,
.fld textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.fld textarea {
  min-height: 96px;
  resize: vertical;
}

.fld input::placeholder,
.fld textarea::placeholder {
  color: #77777f;
}

.fld input:focus,
.fld textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form .btn-a {
  justify-content: center;
  margin-top: 6px;
}

.form-note {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.form-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}



/* ============ inner pages ============ */
#dirs,
#ba,
#cases,
#formats,
#contact {
  scroll-margin-top: var(--header-h);
}

.inner-hero {
  position: relative;
  min-height: 76dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 64px) 0 clamp(56px, 9vh, 94px);
  isolation: isolate;
}

.inner-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.inner-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 14, 0.72) 0%,
      rgba(12, 12, 14, 0.34) 42%,
      rgba(12, 12, 14, 0.96) 100%
    );
}

.inner-hero .wrap {
  width: 100%;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.36);
}

.inner-hero h1 {
  max-width: 13ch;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.inner-hero p {
  max-width: 58ch;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.35vw, 18px);
}

.inner-section {
  background: var(--bg);
}

.inner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.inner-grid--four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.inner-card {
  min-height: 220px;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.inner-card span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.inner-card h3 {
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.inner-card p {
  color: var(--muted);
  font-size: 14.5px;
}

.inner-band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inner-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}

.inner-split h2 {
  max-width: 14ch;
  margin-bottom: 18px;
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.inner-split p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 16.5px;
}

.metric-list {
  display: grid;
  gap: 12px;
}

.metric-list div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.metric-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.metric-list span {
  color: var(--muted);
  font-size: 14.5px;
}

.inner-cta {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.inner-cta__box {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
}

.inner-cta__box h2 {
  max-width: 18ch;
  margin-bottom: 12px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.inner-cta__box p {
  max-width: 58ch;
  color: var(--muted);
}




@media (max-width: 900px) {
  .inner-split,
  .inner-cta__box {
    grid-template-columns: 1fr;
  }

  .inner-split {
    display: grid;
  }

  .inner-cta__box {
    display: grid;
    align-items: start;
  }
}




/* ============ portfolio direction pages ============ */
.portfolio-hero {
  min-height: 100dvh;
  padding-bottom: clamp(48px, 7vh, 76px);
}

.portfolio-hero::before {
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 14, 0.58) 0%,
      rgba(12, 12, 14, 0.22) 38%,
      rgba(12, 12, 14, 0.94) 100%
    );
}

.portfolio-hero .wrap {
  width: 100%;
}

.portfolio-hero .breadcrumbs {
  margin-bottom: 24px;
}

.portfolio-hero h1 {
  max-width: 17ch;
  font-size: clamp(38px, 5.4vw, 72px);
}

.portfolio-hero p {
  max-width: 54ch;
}

.portfolio-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.portfolio-hero__badges span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(39, 119, 216, 0.18);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.portfolio-hero__badges span:first-child {
  background: #c6ff00;
  color: #050505;
}

.portfolio-hero__strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: clamp(42px, 8vh, 82px);
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(18, 18, 21, 0.82);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portfolio-hero__strip .btn {
  padding: 11px 18px;
  background: #050505;
  color: #ffffff;
}

.portfolio-hero__spark {
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.case-strip {
  padding: clamp(54px, 7.5vh, 88px) 0;
  background: var(--bg);
}

.case-strip + .case-strip {
  padding-top: clamp(24px, 4vh, 48px);
}

.case-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.case-strip__head h2 {
  color: #ffffff;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.case-strip__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.case-strip__arrow {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #050505;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.case-strip__arrow:first-child {
  background: rgba(255, 255, 255, 0.42);
}

.case-strip__arrow:hover {
  background: #ffffff;
}

.case-strip__arrow:active {
  transform: scale(0.94);
}

.case-strip__arrow svg {
  width: 18px;
  height: 18px;
}

.case-carousel {
  position: relative;
}

.case-carousel__viewport {
  height: clamp(320px, 42.6vh, 560px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.case-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.case-carousel__track {
  display: flex;
  min-width: 100%;
  height: 100%;
  gap: 14px;
}

.case-slide {
  position: relative;
  flex: 0 0 calc((100% - 14px) / 2);
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transform: translateZ(0);
}

.case-carousel--commercial .case-slide {
  flex-basis: calc((100% - 28px) / 3);
}

.case-carousel--ugc .case-slide {
  flex-basis: calc((100% - 42px) / 4);
}

.case-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.35s ease;
}

.case-slide:hover img {
  transform: scale(1.035);
  filter: brightness(1.04);
}

.case-slide:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.inner-cta {
  padding: clamp(58px, 8vh, 92px) 0 clamp(74px, 10vh, 116px);
  background: var(--bg);
}

.inner-cta__box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: var(--bg-2);
}

.inner-cta__box h2 {
  max-width: 16ch;
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.inner-cta__box p {
  max-width: 58ch;
  color: var(--muted);
}













/* ============ footer ============ */
.ftr {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.ftr .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.ftr small {
  color: var(--muted);
  font-size: 13.5px;
}

.ftr-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13.5px;
}

.ftr-nav a:hover {
  color: var(--text);
}


/* ============ cookies / analytics consent ============ */
.cookie-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 100;
  pointer-events: none;
}

.cookie-bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(18, 18, 21, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

.cookie-bar__text strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
}

.cookie-bar__text p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.cookie-bar__text a,
.cookie-modal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-bar__btn,
.cookie-modal__btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--bg-2);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
}

.cookie-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal__head {
  padding-right: 44px;
}

.cookie-modal__head h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 4vw, 34px);
}

.cookie-modal__head p {
  max-width: 620px;
  color: var(--muted);
  font-size: 14.5px;
}

.cookie-modal__list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.cookie-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.cookie-item__text strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
}

.cookie-item__text p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.toggle {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle__ui {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-3);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.toggle__ui::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle__ui {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle input:checked + .toggle__ui::before {
  transform: translateX(22px);
  background: var(--accent-ink);
}

.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cookie-modal__btn.is-active {
  border-color: var(--accent);
}

.cookie-modal__btn--danger {
  color: #ffb4b4;
  border-color: rgba(255, 120, 120, 0.28);
}