/* IKAT PRO — демо-сайт. Монохромный интерфейс: цвет дают только кадры из роликов. */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --muted-2: #bdbdbd;
  --line: #222222;
  --line-2: #2a2a2a;
  --line-3: #333333;
  --pad: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Синий из капли логотипа — только мелкие акценты, цвет на сайте по-прежнему дают кадры. */
  --accent: #396894;
  --accent-hi: #5b8fbf;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.light :focus-visible {
  outline-color: #000;
}

.cap {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pill {
  border-radius: 999px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--fg);
  color: #000;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.ph {
  color: var(--muted);
}

/* ——— Кнопки ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .arr {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.btn:hover .arr {
  transform: translateX(4px);
}

.btn-white {
  background: #fff;
  color: #000;
}

.btn-white:hover {
  background: #e6e6e6;
}

.btn-line {
  border-color: currentColor;
}

.btn-line:hover {
  background: rgba(255, 255, 255, 0.1);
}

.light .btn-line:hover {
  background: rgba(0, 0, 0, 0.06);
}

.btn-black {
  background: #000;
  color: #fff;
}

.btn-black:hover {
  background: #222;
}

.btn-glass {
  background: rgba(20, 20, 20, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(40, 40, 40, 0.85);
}

/* ——— Шапка ——— */

.hdr {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 18px var(--pad);
}

.hdr-solid {
  position: sticky;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.light .hdr-solid {
  background: rgba(242, 240, 235, 0.88);
  border-bottom-color: #d9d6cf;
}

.nav {
  justify-self: start;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
}

.light .nav {
  background: rgba(0, 0, 0, 0.06);
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  transition: background-color 0.25s;
}

.light .nav a {
  color: #000;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
}

.light .nav a:hover,
.light .nav a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.08);
}

.logo {
  justify-self: center;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #fcfcfc;
}

.light .logo {
  color: #2b2a29;
}

.logo-svg {
  display: block;
  width: auto;
  height: 28px;
  transition: opacity 0.25s;
}

.logo:hover .logo-svg {
  opacity: 0.8;
}

.hdr-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
}

.light .lang {
  background: rgba(0, 0, 0, 0.06);
}

.lang button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  opacity: 0.55;
  transition: opacity 0.2s, background-color 0.2s;
}

.lang button[aria-pressed="true"] {
  opacity: 1;
  background: rgba(255, 255, 255, 0.14);
}

.light .lang button[aria-pressed="true"] {
  background: rgba(0, 0, 0, 0.08);
}

.lang button:hover {
  opacity: 1;
}

/* Нижняя плавающая плашка меню — только на телефонах. */
.dock {
  display: none;
}

/* Всплывающая подсказка (например, «[перевод позже]»). */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ——— Первый экран: карусель ——— */

.hero {
  position: relative;
  height: 880px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.on {
  opacity: 1;
}

.hero-slide img,
.hero-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

/* Лёгкий наезд 1.0 → 1.05 за время показа слайда. */
.hero-slide.zoom img,
.hero-slide.zoom video {
  transform: scale(1.05);
  transition: transform 6.6s linear;
}

.hero-shade-b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 420px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.hero-shade-t {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.hero-bot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 0 var(--pad) var(--pad);
}

.badge {
  align-self: flex-start;
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(36px, 6vw, 92px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Заголовок появляется построчно снизу вверх. */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}

.lines-in .line > span {
  transform: none;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.nums {
  display: flex;
  gap: 6px;
}

.num {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 56px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.num-k {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.num[aria-pressed="true"] .num-k,
.num:hover .num-k {
  opacity: 1;
}

.bar {
  position: relative;
  display: block;
  width: 44px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.prog {
  position: absolute;
  inset: 0;
  background: var(--accent-hi);
  transform: scaleX(0);
  transform-origin: left;
}

.num[aria-pressed="true"] .prog.run {
  animation: fill 6s linear forwards;
}

@keyframes fill {
  to {
    transform: scaleX(1);
  }
}

.hcap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  transition: opacity 0.25s;
}

.hcap.fade {
  opacity: 0;
}

.hcap-name {
  font-size: 24px;
  font-weight: 700;
}

.hcap-meta {
  font-size: 12px;
  font-weight: 500;
}

.hcap:hover .hcap-meta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Бегущая строка клиентов ——— */

.clients {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.clients-label {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 26px var(--pad);
  border-right: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.mq {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.mq-track {
  display: flex;
  width: max-content;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: mq 50s linear infinite;
}

.mq:hover .mq-track {
  animation-play-state: paused;
}

.mq-group {
  display: flex;
  gap: 22px;
  padding-right: 22px;
}

.mq-group {
  align-items: center;
}

.mq-group .drop {
  flex-shrink: 0;
  width: 12px;
  height: 19px;
  fill: var(--accent-hi);
}

.client-logo img {
  display: block;
  width: auto;
  height: 32px;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.9;
}

.client-logo.sq img {
  height: 46px;
}

.client-name {
  white-space: nowrap;
}

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

/* ——— Работы ——— */

.works-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 64px var(--pad) 18px;
  font-size: 12px;
  font-weight: 600;
}

.works-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.chip:hover {
  border-color: #777;
}

.chip[aria-pressed="true"] {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.mosaic-row {
  display: grid;
}

.mosaic-row.r3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mosaic-row.r2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111;
}

.r3 .tile {
  aspect-ratio: 4 / 3;
}

.r2 .tile {
  aspect-ratio: 16 / 9;
}

.r1 .tile {
  aspect-ratio: 21 / 9;
}

.tile img,
.tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.4s;
}

.tile video {
  opacity: 0;
}

.tile.playing video {
  opacity: 1;
}

.tile:hover img,
.tile:hover video,
.tile:focus-visible img {
  transform: scale(1.04);
}

.tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.tile-pv {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.tile:hover .tile-pv,
.tile:focus-visible .tile-pv {
  opacity: 1;
  transform: none;
}

.tile-cap {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.tile-cap span {
  display: block;
  font-weight: 400;
}

.works-more {
  display: flex;
  justify-content: center;
  padding: var(--pad);
}

.works-empty {
  padding: 40px var(--pad);
  color: var(--muted);
}

/* ——— Два направления ——— */

.dirs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.dir {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 72px var(--pad);
}

.dir + .dir {
  border-left: 1px solid var(--line);
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.h2 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.dir p {
  max-width: 480px;
  margin: 0;
  color: var(--muted-2);
  line-height: 1.55;
}

.dir .btn {
  align-self: flex-start;
}

/* ——— Кому написать ——— */

.contacts {
  padding: 96px var(--pad);
  border-top: 1px solid var(--line);
}

.contacts .h2 {
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-3);
}

.light .contact-grid {
  border-top-color: #cfcbc2;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 24px 24px 0;
  font-size: 15px;
  line-height: 1.6;
}

.contact .eyebrow {
  margin-bottom: 8px;
}

.contact-name {
  font-size: 20px;
  font-weight: 700;
}

.contact a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact .note {
  color: var(--muted);
}

.jobs {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ——— Подвал ——— */

.ftr {
  border-top: 1px solid var(--line);
}

.light .ftr {
  border-top-color: #d9d6cf;
}

.ftr-big {
  display: block;
  padding: 80px var(--pad) 56px;
}

.ftr-big .eyebrow {
  display: block;
  margin-bottom: 20px;
}

.ftr-big-t {
  display: block;
  font-size: clamp(48px, 8.6vw, 140px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.ftr-big:hover .ftr-big-t {
  opacity: 0.75;
}

.ftr-bot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
}

.light .ftr-bot {
  border-top-color: #d9d6cf;
}

.ftr-soc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.ftr-soc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.ftr-soc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ftr-copy {
  display: flex;
  align-items: center;
  color: var(--muted);
}

.light .ftr-copy {
  color: #5f5d58;
}

/* ——— Форма заявки ——— */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0s;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 36px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: #0e0e0e;
  color: #fff;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s, transform 0.35s var(--ease);
}

.modal.open .modal-box {
  opacity: 1;
  transform: none;
}

.modal-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: background-color 0.2s;
}

.modal-x:hover {
  background: rgba(255, 255, 255, 0.1);
}

.form,
.thanks {
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: opacity 0.35s, transform 0.35s var(--ease);
}

.form.out,
.thanks.out {
  opacity: 0;
  transform: translateY(8px);
}

.form-title {
  margin: 0;
  padding-right: 44px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.form-lead {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.5;
}

.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.kinds .chip {
  border-color: #3a3a3a;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.kinds .chip[aria-pressed="true"] {
  font-weight: 600;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted-2);
  font-size: 13px;
}

.inp {
  width: 100%;
  height: 52px;
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid #3a3a3a;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 17px;
  transition: border-color 0.25s;
}

.inp:focus {
  outline: none;
  border-bottom-color: #fff;
}

.field.err .inp {
  border-bottom-color: #ff6b6b;
}

.field-err {
  min-height: 0;
  color: #ff8a8a;
  font-size: 12px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.form-actions .btn {
  min-height: 52px;
  padding: 0 24px;
  font-size: 13px;
}

.form-brief {
  align-self: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.form-brief:hover {
  color: #fff;
}

.thanks {
  align-items: flex-start;
  padding: 20px 0 6px;
}

.thanks-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.5s var(--ease) 0.1s, opacity 0.3s 0.1s;
}

.thanks.show .thanks-mark {
  transform: none;
  opacity: 1;
}

.thanks p {
  margin: 0;
  color: var(--muted-2);
}

/* ——— Появление при прокрутке ——— */

.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

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

/* ——— Страница работы ——— */

.wp-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--pad);
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.wp-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}

.wp-back span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-back .muted {
  color: var(--muted);
  font-weight: 500;
}

.wp-tools {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.icon-btn[aria-expanded="true"] {
  background: #fff;
  color: #000;
}

.credits {
  display: grid;
  grid-template-rows: 0fr;
  border-bottom: 1px solid transparent;
  transition: grid-template-rows 0.45s var(--ease), border-color 0.3s;
}

.credits.open {
  grid-template-rows: 1fr;
  border-bottom-color: var(--line);
}

.credits-in {
  overflow: hidden;
}

.credits dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0;
  padding: 24px var(--pad);
}

.credits dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.credits dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
}

/* Плеер */

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - 69px);
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

.player-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}

.player-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.4s;
}

.player-poster:hover img {
  transform: scale(1.02);
}

.play-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  transition: transform 0.3s var(--ease);
}

.play-ico::before {
  content: "";
  margin-left: 6px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #000;
}

.player-poster:hover .play-ico {
  transform: scale(1.06);
}

.player iframe,
.player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* Свои кнопки для mp4 */
.vc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 40px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.3s;
}

.player.idle .vc {
  opacity: 0;
}

.vc button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  font-size: 16px;
}

.vc button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.vc input[type="range"] {
  flex: 1;
  min-width: 60px;
  accent-color: #fff;
  cursor: pointer;
}

.episodes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px var(--pad) 0;
}

.wp-under {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px var(--pad);
  color: var(--muted);
  font-size: 13px;
}

.wp-under a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.wp-under a:hover {
  color: #fff;
}

/* Кейс */

.case {
  padding: 72px var(--pad) 0;
  border-top: 1px solid var(--line);
}

.case-title {
  max-width: 1100px;
  margin: 14px 0 0;
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid var(--line-3);
}

.stat {
  padding: 24px 24px 24px 0;
}

.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid var(--line-3);
}

.stat-v {
  display: block;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
}

.stat-l {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-3);
}

.step {
  padding: 24px 24px 24px 0;
}

.step + .step {
  padding-left: 24px;
  border-left: 1px solid var(--line-3);
}

.step-n {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

.step p {
  margin: 0;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.55;
}

.frames {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 72px calc(var(--pad) * -1) 0;
}

.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

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

.frame-ph {
  display: grid;
  place-items: center;
  border: 1px dashed #444;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 calc(var(--pad) * -1);
  padding: 72px var(--pad);
  border-top: 1px solid var(--line);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.next {
  position: relative;
  display: block;
  margin: 0 calc(var(--pad) * -1);
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.next img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.next:hover img {
  transform: scale(1.04);
}

.next::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
}

.next-cap {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: var(--pad);
  z-index: 1;
}

.next-cap .eyebrow {
  color: #ddd;
}

.next-cap strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(32px, 5vw, 76px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.notfound {
  padding: 160px var(--pad);
}

/* ——— Команда ——— */

.team {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.team-bg {
  position: absolute;
  inset: 0;
}

.team-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.team-bg img.on {
  opacity: 1;
}

.team-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.team-in {
  position: relative;
  z-index: 1;
  padding: 120px var(--pad) 64px;
}

.team-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  opacity: 0.4;
  transition: opacity 0.4s;
}

.person.on,
.person:hover,
.person:focus-visible {
  opacity: 1;
}

.person-name {
  font-size: clamp(22px, 2vw, 40px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.person-role {
  margin-top: 6px;
  color: #cfcfcf;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-credit {
  margin-top: 40px;
  color: #cfcfcf;
  font-size: 13px;
}

/* ——— О нас (светлая) ——— */

.light {
  --bg: #f2f0eb;
  --fg: #000000;
  --muted: #5f5d58;
  --muted-2: #3f3d39;
  --line: #d9d6cf;
  --line-3: #cfcbc2;
  background: var(--bg);
  color: var(--fg);
}

.about-hero {
  padding: 140px var(--pad) 72px;
}

.about-hero h1 {
  max-width: 1200px;
  margin: 14px 0 0;
  font-size: clamp(36px, 5.4vw, 84px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.about-hero p {
  max-width: 720px;
  margin: 32px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted-2);
}

.about-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 var(--pad);
  border-top: 1px solid var(--line-3);
}

.about-col {
  padding: 28px 24px 56px 0;
}

.about-col + .about-col {
  padding-left: 24px;
  border-left: 1px solid var(--line-3);
}

.about-col h2 {
  margin: 10px 0 14px;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
}

.about-col p,
.about-col li {
  margin: 0;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.6;
}

.about-col ul {
  margin: 0;
  padding-left: 18px;
}

.about-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-wide {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.about-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.light .ftr-big .eyebrow,
.light .eyebrow {
  color: var(--muted);
}

/* ——— Адаптив ——— */

@media (max-width: 1024px) {
  .mosaic-row.r3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r3 .tile:nth-child(3):last-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .step:nth-child(n + 3) {
    border-top: 1px solid var(--line-3);
  }

  .credits dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .dirs,
  .contact-grid,
  .about-cols {
    grid-template-columns: 1fr;
  }

  .dir + .dir {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .contact {
    padding-right: 0;
    border-bottom: 1px solid var(--line-3);
  }

  .about-col,
  .about-col + .about-col {
    padding: 28px 0 40px;
    border-left: 0;
  }

  .about-col + .about-col {
    border-top: 1px solid var(--line-3);
  }

  .team-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --pad: 16px;
  }

  .hdr {
    display: flex;
    justify-content: space-between;
    padding: 14px var(--pad);
  }

  .hdr .nav,
  .hdr .lang,
  .ctx {
    display: none;
  }

  .logo-svg {
    height: 22px;
  }

  /* Меню уходит в нижнюю плавающую плашку. */
  .dock {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 30;
    display: flex;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .dock a,
  .dock button {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: #fff;
    cursor: pointer;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
  }

  .dock a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.14);
  }

  .dock .dock-lang {
    color: #bdbdbd;
  }

  body {
    padding-bottom: 76px;
  }

  .hero {
    height: 100svh;
    min-height: 560px;
  }

  .hero-bot {
    gap: 20px;
    padding-bottom: 92px;
  }

  /* Подпись работы — над цифрами, а не под ними. */
  .hero-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 18px;
  }

  .hcap {
    text-align: left;
  }

  .hcap-name {
    font-size: 20px;
  }

  .nums {
    justify-content: space-between;
    gap: 0;
  }

  .num {
    min-width: 40px;
  }

  .bar {
    width: 32px;
  }

  .clients-label {
    padding: 20px var(--pad);
  }

  .mq-track {
    font-size: 17px;
  }

  .works-head {
    padding-top: 48px;
  }

  .filters {
    flex-wrap: nowrap;
    width: calc(100% + var(--pad) * 2);
    margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex-shrink: 0;
  }

  .mosaic-row.r3,
  .mosaic-row.r2 {
    grid-template-columns: 1fr;
  }

  .r3 .tile:nth-child(3):last-child {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .r1 .tile {
    aspect-ratio: 16 / 9;
  }

  .tile-pv {
    opacity: 1;
    transform: none;
  }

  .dir {
    padding: 56px var(--pad);
  }

  .contacts {
    padding: 72px var(--pad);
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box {
    max-width: none;
    padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    transform: translateY(24px);
  }

  .form-title {
    font-size: 26px;
  }

  .stats,
  .frames {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line-3);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step,
  .step + .step {
    padding: 24px 0;
    border-left: 0;
  }

  .step + .step {
    border-top: 1px solid var(--line-3);
  }

  .credits dl {
    grid-template-columns: 1fr 1fr;
  }

  .next {
    aspect-ratio: 4 / 3;
  }

  .play-ico {
    width: 72px;
    height: 72px;
  }

  .team-in {
    padding-top: 96px;
  }

  .person-name {
    font-size: clamp(18px, 5.6vw, 34px);
  }

  .about-hero {
    padding-top: 110px;
  }

  .about-wide {
    aspect-ratio: 4 / 3;
  }

  .ftr-big-t {
    font-size: 11vw;
  }
}

/* ——— Меньше движения ——— */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mq-track {
    animation: none;
  }

  .hero-slide.zoom img,
  .hero-slide.zoom video {
    transform: none;
    transition: none;
  }

  .num[aria-pressed="true"] .prog.run {
    animation: none;
    transform: scaleX(1);
  }

  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .line > span {
    transform: none;
    transition: none;
  }
}

/* ——— Правки для светлой страницы ——— */

/* Главная кнопка на светлом фоне — чёрная. */
.light .btn-white {
  background: #000;
  color: #fff;
}

.light .btn-white:hover {
  background: #2b2a29;
}

/* Окно заявки всегда тёмное, даже на светлой странице. */
.modal {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --muted-2: #bdbdbd;
  --line: #222222;
  --line-3: #333333;
}

.light .modal .btn-white {
  background: #fff;
  color: #000;
}

.light .modal :focus-visible {
  outline-color: #fff;
}

/* ——— Команда: список и портрет ——— */

.team-title {
  margin: 0 0 40px;
  color: #cfcfcf;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 48px;
  align-items: start;
}

.team-photo {
  position: sticky;
  top: 100px;
  aspect-ratio: 324 / 516;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: #111;
}

.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.8s var(--ease);
}

.team-photo img.on {
  opacity: 1;
  transform: none;
}

.person {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.person-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Маленькое фото у имени — только на телефоне, где нет большого портрета. */
.person-ava {
  display: none;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 20%;
}

/* Языки в нижней плашке меню на телефоне. */
.dock-lang {
  display: flex;
  margin-left: 4px;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.dock .dock-lang button {
  padding: 0 9px;
  color: #9a9a9a;
}

.dock .dock-lang button[aria-pressed="true"] {
  color: #fff;
}

@media (max-width: 1024px) {
  .team-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-photo {
    display: none;
  }

  .person-ava {
    display: block;
  }

  .person {
    opacity: 0.75;
  }

  .dock {
    padding-right: 4px;
  }

  .dock a {
    padding: 0 10px;
  }
}

/* ——— Обложки работ в стиле продакшн-студий ——— */

/* Кадр чуть приглушён, при наведении — полная яркость и лёгкий наезд. */
.tile img {
  filter: brightness(0.78) saturate(0.92);
  transition: transform 1.2s var(--ease), filter 0.6s ease, opacity 0.4s;
}

.tile:hover img,
.tile:focus-visible img {
  filter: brightness(1) saturate(1);
}

.tile::after {
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0));
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.tile-top {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
}

.tile-n {
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.tile-n::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.5s var(--ease);
}

.tile:hover .tile-n::after {
  width: 48px;
}

.tile-tag {
  color: rgba(255, 255, 255, 0.75);
}

.tile-cap {
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-shadow: none;
}

.tile-client {
  display: block;
  font-size: clamp(20px, 1.9vw, 32px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease);
}

.r2 .tile-client {
  font-size: clamp(24px, 2.6vw, 44px);
}

.r1 .tile-client {
  font-size: clamp(30px, 4.4vw, 72px);
}

.tile-cap .tile-meta {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.tile:hover .tile-client {
  transform: translateY(-3px);
}

/* «Превью» — справа снизу, напротив подписи. */
.tile-pv {
  top: auto;
  bottom: 18px;
  z-index: 2;
  background: #fff;
  color: #000;
}

@media (max-width: 760px) {
  .tile-pv {
    display: none;
  }
}

@media (max-width: 760px) {
  .client-logo img {
    height: 24px;
  }

  .client-logo.sq img {
    height: 34px;
  }
}

/* ——— Логотипы клиентов: цветные при наведении ——— */

.client-logo {
  position: relative;
  display: block;
  padding: 10px 16px;
  border-radius: 14px;
  transition: background-color 0.35s ease;
}

.client-logo img {
  transition: opacity 0.35s ease;
}

.client-logo .cl-c {
  position: absolute;
  top: 10px;
  left: 50%;
  opacity: 0;
  transform: translateX(-50%);
}

.client-logo:hover {
  background: #f2f0eb;
}

.client-logo:hover .cl-w {
  opacity: 0;
}

.client-logo:hover .cl-c {
  opacity: 1;
}

.client-logo.np:hover {
  background: transparent;
}
