/* factm1x — @factm1x Figma */

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

:root {
  --color-bg: #070707;
  --color-text: #ffffff;
  --color-text-muted: #f9f9f9;
  --color-border: #ffffff;
  --color-border-muted: #979797;
  --color-btn-glass: rgba(255, 255, 255, 0.1);
  --color-card-glass: rgba(7, 7, 7, 0.1);
  --color-footer-text: #f9f9f9;
  --color-logo-fill: #1e1e1e;

  --font-family: "Unbounded", system-ui, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;

  --radius: 10px;
  --site-max: 1920px;
  --container-max: 1160px;
  --frame-width: min(100vw, var(--site-max));
  --gutter: max(
    clamp(80px, calc(var(--frame-width) * 80 / 1920), 380px),
    calc((var(--frame-width) - var(--container-max)) / 2)
  );
  --container: min(var(--container-max), calc(var(--frame-width) - var(--gutter) * 2));
  --section-gap: 120px;

  --text-xs: 12px;
  --text-sm: 16px;
  --text-md: 24px;
  --text-lg: 64px;
  --text-email: clamp(48px, 7.2vw, 139px);

  --blur-sm: blur(10px);
  --blur-md: blur(20px);

  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-bg-hover: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  --glass-blur: blur(20px) saturate(1.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-light);
  font-size: var(--text-sm);
  line-height: 1.25;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.page {
  width: 100%;
  max-width: var(--site-max);
  margin-inline: auto;
  overflow-x: clip;
  background: var(--color-bg);
}

.container {
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
}

/* Header */
.header {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 20;
  width: min(100%, var(--site-max));
  transform: translateX(-50%);
  pointer-events: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding-inline: var(--gutter);
  pointer-events: auto;
}

.header__logo {
  display: block;
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.header__logo-img,
.header__logo img {
  display: block;
  height: 42px;
  width: auto;
}

.header__lang {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: 24px;
}

.header__lang-link {
  font-weight: var(--font-weight-light);
  font-size: var(--text-sm);
  opacity: 0.45;
  transition: opacity 0.2s;
}

.header__lang-link:hover {
  opacity: 0.85;
}

.header__lang-link--active {
  opacity: 1;
}

.header__menu-block {
  position: relative;
}

.header__menu {
  font-weight: var(--font-weight-light);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.header__menu:hover {
  opacity: 0.85;
}

.header__menu[aria-expanded="true"] {
  opacity: 1;
}

.header__nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 188px;
  padding: 4px;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 30;
}

.header__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: var(--font-weight-light);
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
}

.header__nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.header__nav-link--showreel {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.header__nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.header__nav-link--showreel .header__nav-icon {
  animation: showreel-icon-blink 1.8s ease-in-out infinite;
}

@keyframes showreel-icon-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header__nav-link--showreel .header__nav-icon {
    animation: none;
  }
}

.page--menu-open {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: var(--font-weight-light);
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn:hover:not(.btn--cta) {
  opacity: 0.85;
}

/* Glass UI — brighter than menu panel */
.btn--glass {
  position: relative;
  overflow: hidden;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.2);
  border: 0.5px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px) saturate(1.5) brightness(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.5) brightness(1.2);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.btn--glass .btn__glass-layer,
.btn--glass .btn__glass-chroma,
.btn--glass .btn__glass-edge {
  display: none;
}

.btn--glass .btn__label {
  position: relative;
  z-index: 1;
  text-shadow: none;
}

.btn--glass:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--glass:active {
  transform: translateY(0);
  box-shadow: var(--glass-shadow);
}

.cases__soon-btn.btn--cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn--glass,
  .header__nav {
    background: rgba(255, 255, 255, 0.12);
  }
}

.btn--outline {
  border: 1px solid var(--color-border);
}

.btn.btn--cta {
  position: relative;
  overflow: hidden;
  background: #070707;
  border: 1px solid #ffffff;
  color: #ffffff;
  box-shadow: none;
  opacity: 1;
  transition:
    background 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease;
}

.btn.btn--cta:hover,
.btn.btn--cta:focus-visible {
  background: #ffffff;
  color: #070707;
  border-color: #ffffff;
  opacity: 1;
  transform: none;
}

.btn--cta .btn__label {
  position: relative;
  z-index: 1;
  text-shadow: none;
}

.btn--wide {
  width: 100%;
  max-width: 293px;
}

.btn--footer {
  width: 100%;
  max-width: 560px;
  height: 58px;
}

/* Tag */
.tag {
  font-weight: var(--font-weight-light);
  font-size: var(--text-sm);
}

.tag--right {
  text-align: right;
}

/* Section title */
.section-title {
  font-weight: var(--font-weight-regular);
  font-size: clamp(32px, 4.2vw, var(--text-lg));
  line-height: 1;
}

.section-title--cases {
  text-align: right;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding-bottom: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.hero__media {
  position: absolute;
  top: -92px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  min-height: calc(100% + 92px);
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero__bg--low,
.hero__bg--hd {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero__bg--low {
  z-index: 2;
}

.hero__bg--hd {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero__media--hd-ready .hero__bg--hd {
  visibility: visible;
}

.hero__media--hd-visible .hero__bg--hd {
  opacity: 1;
  pointer-events: auto;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  background: linear-gradient(
    180deg,
    rgba(7, 7, 7, 0) 0%,
    rgba(7, 7, 7, 0) 38%,
    rgba(7, 7, 7, 0.18) 55%,
    rgba(7, 7, 7, 0.45) 68%,
    rgba(7, 7, 7, 0.72) 78%,
    rgba(7, 7, 7, 0.9) 86%,
    var(--color-bg) 94%,
    var(--color-bg) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  background: transparent;
  padding-top: 551px;
  padding-inline: var(--gutter);
}

.hero__aside .btn--glass {
  z-index: 1;
}

.hero__inner {
  max-width: var(--container);
  margin-inline: auto;
}

.hero__title {
  font-weight: var(--font-weight-regular);
  font-size: clamp(36px, 4.2vw, var(--text-lg));
  line-height: 1;
  max-width: 1160px;
  margin-bottom: 20px;
}

/* RU/EN: кнопка и декор на уровне второй строки заголовка */
@media (min-width: 769px) {
  html[lang="ru"] .hero__inner,
  html[lang="en"] .hero__inner {
    position: relative;
  }

  html[lang="ru"] .hero__aside > .btn--wide {
    position: absolute;
    top: calc(clamp(36px, 4.2vw, var(--text-lg)) + 13px);
    right: 0;
    z-index: 2;
  }

  html[lang="en"] .hero__aside {
    position: absolute;
    top: calc(clamp(36px, 4.2vw, var(--text-lg)) + 13px);
    right: 0;
    z-index: 2;
  }

  html[lang="en"] .hero__decor {
    position: absolute;
    top: calc(clamp(36px, 4.2vw, var(--text-lg)) + 13px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
}

.hero__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
}

.hero__tagline {
  max-width: 435px;
}

.hero__decor {
  width: 100px;
  height: 40px;
  justify-self: center;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.hero__desc {
  max-width: 310px;
  text-align: right;
}

/* Showreel page */
.page--showreel {
  min-height: 100vh;
}

.showreel__hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 88px var(--gutter) 48px;
}

.showreel__head {
  position: relative;
  z-index: 2;
  width: min(var(--container), 100%);
  margin: 0 auto 28px;
}

.showreel__title {
  font-weight: var(--font-weight-regular);
  font-size: clamp(36px, 4.2vw, var(--text-lg));
  line-height: 1;
}

.showreel__media {
  position: relative;
  flex: 0 0 auto;
  width: min(var(--container), 100%);
  margin-inline: auto;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
}

.showreel__embed {
  position: relative;
  width: 100%;
}

.showreel__embed--ultrawide {
  aspect-ratio: 2520 / 1080;
}

.showreel__embed--ultrawide iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.showreel__video {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.showreel__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.showreel__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 7, 0.35) 0%,
    rgba(7, 7, 7, 0) 28%,
    rgba(7, 7, 7, 0) 72%,
    rgba(7, 7, 7, 0.5) 100%
  );
}

.page--showreel-ultrawide .showreel__hero {
  min-height: auto;
  padding-bottom: 24px;
}

.page--showreel-ultrawide .footer {
  padding-top: 36px;
}

/* Works page */
.page--works {
  min-height: 100vh;
}

.works {
  padding: 120px var(--gutter) 72px;
}

.works__head {
  width: min(var(--container), 100%);
  margin: 0 auto 36px;
}

.works__title {
  font-weight: var(--font-weight-regular);
  font-size: clamp(36px, 4.2vw, var(--text-lg));
  line-height: 1;
}

.works__grid {
  width: min(var(--container), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.works__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.works__media {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0b0b;
}

.works__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.works__media:hover .works__img,
.works__media:focus-visible .works__img {
  transform: scale(1.06);
}

.works__media--playdate .works__img {
  transform: scale(1.2);
}

.works__media--playdate:hover .works__img,
.works__media--playdate:focus-visible .works__img {
  transform: scale(1.28);
}

.works__media--degn .works__img {
  object-position: center 100%;
  transform: scale(1.1) translateY(6%);
  transform-origin: center 100%;
}

.works__media--degn:hover .works__img,
.works__media--degn:focus-visible .works__img {
  object-position: center 100%;
  transform: scale(1.16) translateY(6%);
  transform-origin: center 100%;
}

.works__name {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.25;
}

/* 404 page */
.page--404 {
  min-height: 100vh;
}

.page--404 .header {
  position: relative;
  z-index: 20;
}

.page--404 .page__main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 100px) var(--gutter);
  position: relative;
  overflow: hidden;
  font-family: var(--font-family);
}

.error-404 {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin-inline: auto;
}

.error-404__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}

.error-404__logo-bg {
  width: min(var(--container-max), calc(100vw - var(--gutter) * 2));
  max-width: 100%;
  height: auto;
  display: block;
  color: var(--color-logo-fill);
}

.error-404__content {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 4vw, 40px) 0;
  text-align: center;
}

.error-404__tag {
  font-family: var(--font-family);
  font-weight: var(--font-weight-light);
  color: var(--color-border-muted);
  margin-bottom: 20px;
}

.error-404__code {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: clamp(72px, 14vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  color: var(--color-text);
}

.error-404__title {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: clamp(28px, 3.5vw, var(--text-md));
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-404__text {
  font-family: var(--font-family);
  font-weight: var(--font-weight-light);
  max-width: 42ch;
  margin-inline: auto;
  color: var(--color-border-muted);
  line-height: 1.5;
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* Contacts page */
.page--contacts {
  min-height: 100vh;
}

.contacts__inner {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
  padding: 100px 0 80px;
}

.contacts__head {
  margin-bottom: 56px;
}

.contacts__title {
  font-weight: var(--font-weight-regular);
  font-size: clamp(36px, 4.2vw, var(--text-lg));
  line-height: 1;
  margin-bottom: 16px;
}

.contacts__tag {
  color: var(--color-border-muted);
}

.contacts__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 80px;
  align-items: start;
}

.contacts__subtitle {
  font-weight: var(--font-weight-regular);
  font-size: var(--text-md);
  line-height: 1.2;
  margin-bottom: 24px;
}

.contacts__subtitle.tag {
  color: var(--color-border-muted);
}

.contacts__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contacts__link:hover,
.contacts__link:focus-visible {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.28);
}

.contacts__link-label {
  color: var(--color-border-muted);
}

.contacts__link-value {
  font-size: clamp(14px, 1.6vw, 20px);
  word-break: break-word;
}

.contacts__form-note {
  color: var(--color-border-muted);
  margin-bottom: 28px;
  max-width: 42ch;
}

.contacts__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contacts__label {
  font-size: var(--text-xs);
  color: var(--color-border-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contacts__input {
  width: 100%;
  padding: 16px 18px;
  font: inherit;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contacts__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contacts__input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.contacts__input--area {
  resize: vertical;
  min-height: 140px;
}

.contacts__submit {
  margin-top: 8px;
  align-self: flex-start;
}

.contacts__back {
  margin-top: 64px;
}

.contacts__back-link {
  color: var(--color-border-muted);
  transition: color 0.2s ease;
}

.contacts__back-link:hover,
.contacts__back-link:focus-visible {
  color: var(--color-text);
}

/* Approach */
.approach {
  padding-top: 0;
  padding-bottom: var(--section-gap);
  padding-inline: var(--gutter);
}

.approach__gallery {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  align-items: center;
}

.approach__card,
.approach__icon {
  width: 100%;
  aspect-ratio: 1;
}

.approach__card {
  border-radius: var(--radius);
  overflow: hidden;
}

.approach__link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: inherit;
  overflow: hidden;
}

.approach__link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.approach__img,
.approach__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
  background: var(--color-bg);
}

.approach__video {
  pointer-events: none;
}

.approach__link:hover .approach__img,
.approach__link:hover .approach__video,
.approach__link:focus-visible .approach__img,
.approach__link:focus-visible .approach__video,
.approach__card--video:hover .approach__video {
  transform: scale(1.06);
}

.approach__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.approach__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.approach__bottom {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.approach__title {
  max-width: 900px;
}

.approach__text {
  max-width: 225px;
  text-align: left;
}

/* Services */
.services {
  padding-block: var(--section-gap);
  padding-inline: var(--gutter);
}

.services__grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.services__card {
  position: relative;
  min-height: 400px;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease;
}

.services__card:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.services__card:hover,
.services__card:focus-visible,
.services__card--featured {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.services__grid:hover .services__card--featured:not(:hover):not(:focus-visible) {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.services__card-title {
  position: relative;
  z-index: 2;
  font-weight: var(--font-weight-regular);
  font-size: var(--text-md);
  margin-bottom: auto;
}

.services__card-desc {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 2;
  max-width: 230px;
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.35;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.services__card:hover .services__card-desc,
.services__card:focus-visible .services__card-desc,
.services__card--featured .services__card-desc {
  opacity: 1;
  transform: translateY(0);
}

.services__grid:hover .services__card--featured:not(:hover):not(:focus-visible) .services__card-desc {
  opacity: 0;
  transform: translateY(12px);
}

.services__icon {
  position: absolute;
  left: 30px;
  bottom: 30px;
  z-index: 1;
  width: 125px;
  height: 125px;
  color: var(--color-text);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none;
}

.services__card:hover .services__icon,
.services__card:focus-visible .services__icon,
.services__card--featured .services__icon {
  opacity: 0;
  transform: scale(0.94);
}

.services__grid:hover .services__card--featured:not(:hover):not(:focus-visible) .services__icon {
  opacity: 1;
  transform: scale(1);
}

.services__arrow {
  position: absolute;
  width: 30px;
  height: 30px;
  opacity: 0.9;
}

.services__arrow--1 { right: 30px; top: 50%; transform: translateY(-50%); }
.services__arrow--2 { right: 30px; bottom: 30px; }

/* Cases */
.cases {
  position: relative;
  padding-block: var(--section-gap);
  padding-inline: var(--gutter);
}

.cases__head {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.cases__markers {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
  pointer-events: none;
}

.cases__marker {
  display: block;
  width: 60px;
  height: 60px;
}

.cases__layout {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 40px;
}

.cases__featured {
  grid-column: 1 / -1;
}

.cases__item:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.cases__item:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.cases__item:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
}

.cases__soon {
  grid-column: 2;
  grid-row: 3;
}

.cases__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cases__media-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.cases__media-link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.cases__media-link .cases__img,
.cases__media-link .cases__video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.45s ease;
  background: var(--color-bg);
}

.cases__video {
  pointer-events: none;
}

.cases__media-link:hover .cases__img,
.cases__media-link:hover .cases__video,
.cases__media-link:focus-visible .cases__img,
.cases__media-link:focus-visible .cases__video {
  transform: scale(1.06);
}

.cases__media-link .cases__img--sm,
.cases__media-link .cases__video.cases__img--sm {
  height: 240px;
  flex: none;
  min-height: 200px;
}

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

.cases__caption .tag:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.cases__caption .tag:last-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cases__soon-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.cases__soon-btn {
  flex: 1;
  min-height: 200px;
}

/* Process */
.process {
  --process-item: 460px;
  --process-gap: 40px;
  --process-slide: calc(var(--process-item) * 3 + var(--process-gap) * 2);
  --process-glass: rgba(7, 7, 7, 0.18);
  --process-glass-border: rgba(255, 255, 255, 0.12);
  --process-shift: 0px;
  position: relative;
  padding-block: 0;
  padding-bottom: clamp(72px, 10vw, 140px);
  padding-inline: 0;
  overflow: visible;
  scroll-margin-top: 0;
}

.process__scroller {
  position: relative;
  z-index: 1;
  height: auto !important;
}

.process__sticky {
  position: relative;
  top: auto;
  min-height: auto;
  box-sizing: border-box;
  padding-block: var(--section-gap);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}

.process__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.process__bg {
  width: min(1525px, 120%);
  height: auto;
  margin-top: 40px;
  opacity: 1;
  display: block;
}

.process__content {
  position: relative;
  z-index: 1;
}

.process__head {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
  margin-bottom: 80px;
}

.process__head .section-title {
  position: relative;
  z-index: 1;
}

.process__stage {
  position: relative;
  z-index: 2;
  width: 100%;
}

.process__viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: none;
  overflow: hidden;
}

.process__track {
  overflow-x: scroll;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.process__scrollbar {
  position: relative;
  flex-shrink: 0;
  height: 10px;
  margin-inline: var(--gutter);
  border-radius: 999px;
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
  cursor: pointer;
}

.process__scrollbar-thumb {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 72px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
  will-change: transform;
  cursor: grab;
}

.process__scrollbar-thumb:active {
  cursor: grabbing;
}

.process__scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.42);
}

.process__row {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--process-gap);
  width: max-content;
  min-height: 270px;
  padding-bottom: 16px;
  padding-left: max(var(--gutter), calc(50vw - var(--process-item) / 2));
  padding-right: max(var(--gutter), calc(50vw - var(--process-item) / 2));
  transform: none;
  transition: none;
}

.process__card {
  position: relative;
  flex: 0 0 var(--process-item);
  flex-shrink: 0;
  width: var(--process-item);
  height: 270px;
  border-radius: var(--radius);
}

.process__card-plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--process-glass);
  border: 1px solid var(--process-glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.process__card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 30px;
}

.process__card-title {
  font-weight: var(--font-weight-regular);
  font-size: var(--text-md);
}

.process__card-text {
  max-width: 100%;
}

.process__figure {
  position: relative;
  z-index: 2;
  flex: 0 0 var(--process-item);
  flex-shrink: 0;
  width: var(--process-item);
  height: 270px;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--process-glass-border);
  background: var(--color-bg);
}

.process__figure--video {
  cursor: default;
}

@media (hover: none) {
  .process__figure--video {
    cursor: pointer;
  }
}

.process__media,
.process__video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-bg);
}

/* CTA */
.cta {
  padding-block: var(--section-gap);
  padding-inline: var(--gutter);
}

.cta__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 40px;
  align-items: center;
}

.cta__title {
  font-weight: var(--font-weight-regular);
  font-size: clamp(32px, 4.2vw, var(--text-lg));
  line-height: 1;
}

.cta__title-line--right {
  text-align: right;
}

.cta__note {
  margin-top: 48px;
  max-width: 219px;
}

.cta__actions {
  margin-top: 40px;
}

.cta__visual {
  position: relative;
  width: 460px;
  height: 460px;
  justify-self: end;
}

.cta__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.cta__media-link {
  position: absolute;
  inset: 30px;
  z-index: 3;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.cta__media-link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.cta__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
  will-change: transform;
}

.cta__media-link:hover .cta__img,
.cta__media-link:focus-visible .cta__img {
  transform: scale(1.08);
}

/* Philosophy */
.philosophy {
  position: relative;
  padding-block: 150px 200px;
  padding-inline: var(--gutter);
  min-height: 1300px;
  overflow: hidden;
}

.philosophy__ring {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 90vw);
  aspect-ratio: 1;
  border: 1px solid var(--color-logo-fill);
  border-radius: 50%;
  pointer-events: none;
}

.philosophy__decor {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1300px, 100%);
  height: auto;
  pointer-events: none;
  opacity: 1;
}

.philosophy__content {
  position: relative;
  z-index: 2;
  max-width: 819px;
  margin-inline: auto;
  text-align: center;
  padding-top: 300px;
}

.philosophy__label {
  color: var(--color-footer-text);
  margin-bottom: 40px;
}

.philosophy__quote {
  font-weight: var(--font-weight-regular);
  font-size: var(--text-md);
  color: var(--color-footer-text);
  margin-bottom: 70px;
}

.philosophy__img {
  width: 700px;
  max-width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-inline: auto;
  margin-bottom: 40px;
}

.philosophy__text {
  color: var(--color-footer-text);
  font-size: var(--text-sm);
  max-width: 693px;
  margin-inline: auto;
}

/* Footer */
.footer {
  padding: 68px var(--gutter) 80px;
}

.footer__top {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 260px 260px 260px 1fr;
  grid-template-rows: auto auto;
  gap: 34px 40px;
  margin-bottom: 60px;
}

.footer__social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer__social-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}

.footer__social:nth-child(1) { grid-column: 1; grid-row: 1; }
.footer__social:nth-child(2) { grid-column: 2; grid-row: 1; }
.footer__social:nth-child(3) { grid-column: 1; grid-row: 2; }
.footer__social:nth-child(4) { grid-column: 2; grid-row: 2; }

.footer__cta-wrap {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
  align-self: start;
}

.footer__logo-wrap {
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: 40px;
}

.footer__logo-link {
  display: block;
}

.footer__logo-img {
  width: 100%;
  max-width: var(--container);
  height: auto;
  display: block;
  margin-inline: auto;
}

.footer__logo-img path {
  fill: var(--color-logo-fill);
}

.footer__email {
  max-width: var(--container);
  margin-inline: auto;
  font-weight: var(--font-weight-regular);
  font-size: var(--text-email);
  line-height: 1;
  margin-bottom: 40px;
  word-break: break-word;
}

.footer__nav {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer__nav-link {
  font-size: var(--text-xs);
  color: var(--color-footer-text);
  opacity: 0.9;
}

.footer__nav-link:hover {
  opacity: 1;
}

.footer--home {
  padding-top: 40px;
}

.footer--home .footer__top {
  margin-top: 0;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.footer--home .footer__logo-wrap {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.footer--page .footer__logo-wrap {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.footer--page .footer__email {
  margin-bottom: 28px;
}

.footer--home .footer__email {
  margin-bottom: 28px;
}

.footer--home .footer__nav {
  margin-bottom: 0;
}

/* Arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-arrow::after {
  content: "";
  width: 24px;
  height: 24px;
  background: url("../assets/images/hero-decor.svg") center / contain no-repeat;
  transform: rotate(-90deg);
}

/* Full HD (1920×1080): текст и кнопка ниже по экрану */
@media (min-width: 769px) and (max-width: 1920px) {
  .hero {
    min-height: 1080px;
  }

  .hero__content {
    padding-top: 640px;
  }
}

/* Шире 1920px: тот же вид, что Full HD, масштаб на всю ширину экрана (без чёрных полей) */
@media (min-width: 1921px) {
  body.page {
    width: var(--site-max);
    max-width: var(--site-max);
    margin-inline: auto;
    zoom: calc(100vw / var(--site-max));
  }

  .hero {
    min-height: 1080px;
    padding-bottom: 0;
  }

  .hero__content {
    padding-top: 680px;
  }
}

@supports not (zoom: 1) {
  @media (min-width: 1921px) {
    body.page {
      transform: scale(calc(100vw / var(--site-max)));
      transform-origin: top center;
    }
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .approach__gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach__icon {
    grid-column: 1 / -1;
    width: calc((100% - 40px) / 2);
    margin-inline: auto;
  }

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

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

  .cta__visual {
    justify-self: start;
    width: 100%;
    max-width: 460px;
    height: auto;
    aspect-ratio: 1;
  }

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

  .footer__cta-wrap {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }

  .works {
    padding-top: 96px;
    padding-bottom: 52px;
  }

  .works__head {
    margin-bottom: 24px;
  }

  .works__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .showreel__hero {
    padding-top: 72px;
  }

  .showreel__media {
    min-height: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-top: calc(20px + 42px + 18px);
    padding-inline: max(20px, env(safe-area-inset-left, 0px));
    padding-inline-end: max(20px, env(safe-area-inset-right, 0px));
  }

  .hero__title {
    font-size: clamp(32px, 8.5vw, 40px);
    line-height: 1.08;
    max-width: none;
    margin-bottom: 16px;
  }

  html[lang="ru"] .hero__aside > .btn--wide {
    position: static;
  }

  html[lang="en"] .hero__aside {
    position: static;
  }

  html[lang="en"] .hero__decor {
    position: static;
    transform: none;
  }

  .hero__row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero__aside {
    align-items: flex-start;
  }

  .hero__desc {
    text-align: left;
  }

  .process {
    padding-block: var(--section-gap);
    overflow: hidden;
  }

  .process__sticky {
    padding-block: 0;
  }

  .process__head {
    margin-bottom: 40px;
  }

  .process__track {
    scroll-padding-inline: max(20px, env(safe-area-inset-left, 0px));
  }

  .process__row {
    padding-left: max(20px, env(safe-area-inset-left, 0px), calc(50vw - var(--process-item) / 2));
    padding-right: max(20px, env(safe-area-inset-right, 0px), calc(50vw - var(--process-item) / 2));
  }

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

  .approach__icon {
    grid-column: auto;
  }

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

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

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

  .cases__item:nth-child(2),
  .cases__item:nth-child(3),
  .cases__item:nth-child(4),
  .cases__soon {
    grid-column: 1;
    grid-row: auto;
  }

  .philosophy__content {
    padding-top: 120px;
  }

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

  .contacts__inner {
    padding-top: 80px;
  }

  .contacts__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

}

/* ============================================================
   MOBILE ADAPTATION (≤768px)
   Полностью изолирована media-запросами: десктоп не затронут.
   ============================================================ */

/* --- Touch devices: no sticky hover-zoom, native press feedback --- */
@media (hover: none) {
  .works__media:hover .works__img,
  .cases__media-link:hover .cases__img,
  .cases__media-link:hover .cases__video,
  .approach__link:hover .approach__img,
  .approach__link:hover .approach__video,
  .cta__media-link:hover .cta__img {
    transform: none;
  }

  .works__media--playdate:hover .works__img {
    transform: scale(1.2);
  }

  .works__media--degn:hover .works__img {
    transform: scale(1.1) translateY(6%);
  }

  .works__media:active .works__img,
  .cases__media-link:active .cases__img,
  .cases__media-link:active .cases__video {
    transform: scale(0.985);
    transition: transform 0.18s ease;
  }

  .btn:active {
    transform: scale(0.97);
    transition: transform 0.12s ease;
  }
}

@media (max-width: 768px) {
  /* --- Tokens --- */
  :root {
    --gutter: max(20px, env(safe-area-inset-left, 0px));
    --section-gap: 72px;
    --text-email: clamp(40px, 11.5vw, 64px);
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }

  .tag {
    font-size: 13px;
    letter-spacing: 0.01em;
  }

  .section-title {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.05;
  }

  .btn {
    min-height: 48px;
    padding: 14px 26px;
  }

  /* --- Header: fixed, with scrim for readability --- */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* transform создаёт containing block для fixed-меню — убираем */
    transform: none;
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
  }

  .header::before {
    content: "";
    position: absolute;
    inset: 0 0 -40px;
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.6) 0%, rgba(7, 7, 7, 0) 100%);
    pointer-events: none;
  }

  .header__inner {
    position: relative;
  }

  .header__logo,
  .header__logo-img,
  .header__logo img {
    height: 34px;
  }

  .header__lang {
    margin-right: 20px;
  }

  /* anchors under fixed header */
  #approach {
    scroll-margin-top: 76px;
  }

  .process {
    scroll-margin-top: 76px;
  }

  /* --- Fullscreen overlay menu --- */
  .header__menu {
    position: relative;
    z-index: 31;
    padding: 10px 0 10px 14px;
  }

  .header__nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    min-width: 0;
    padding: calc(max(14px, env(safe-area-inset-top, 0px)) + 76px) var(--gutter)
      max(40px, env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 0;
    background: rgba(7, 7, 7, 0.9);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    animation: ns-menu-fade 0.3s ease both;
  }

  .header__nav[hidden] {
    display: none !important;
  }

  .header__nav-list {
    margin-top: auto;
    margin-bottom: auto;
    gap: 4px;
    counter-reset: ns-menu;
  }

  .header__nav-list > li {
    counter-increment: ns-menu;
    animation: ns-rise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  }

  .header__nav-list > li:nth-child(1) { animation-delay: 0.06s; }
  .header__nav-list > li:nth-child(2) { animation-delay: 0.12s; }
  .header__nav-list > li:nth-child(3) { animation-delay: 0.18s; }
  .header__nav-list > li:nth-child(4) { animation-delay: 0.24s; }

  .header__nav-link {
    padding: 14px 0;
    border-radius: 0;
    font-size: clamp(28px, 8.4vw, 36px);
    font-weight: var(--font-weight-light);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    white-space: normal;
  }

  .header__nav-link::before {
    content: counter(ns-menu, decimal-leading-zero);
    display: inline-block;
    margin-right: 14px;
    font-size: 12px;
    vertical-align: super;
    opacity: 0.4;
  }

  .header__nav-link:hover {
    background: none;
  }

  .header__nav-icon {
    width: 28px;
    height: 28px;
  }

  /* --- Hero: fullscreen video, content pinned to bottom --- */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
  }

  .hero__content {
    width: 100%;
    padding-top: 0;
    padding-bottom: max(30px, env(safe-area-inset-bottom, 0px));
  }

  .hero__title {
    font-size: clamp(33px, 10.2vw, 42px);
    line-height: 1.06;
    margin-bottom: 18px;
  }

  .hero__row {
    gap: 18px;
  }

  .hero__decor,
  .hero__desc {
    display: none;
  }

  .hero__tagline {
    max-width: 34ch;
    opacity: 0.85;
  }

  .hero__aside {
    width: 100%;
  }

  .hero__aside .btn--wide {
    width: 100%;
    max-width: 100%;
  }

  /* --- Approach: swipeable snap carousel --- */
  .approach__gallery {
    display: flex;
    gap: 14px;
    /* сбрасываем десктопный max-width, иначе карусель обрезается раньше края экрана */
    max-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    margin-bottom: 36px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .approach__card {
    flex: 0 0 74%;
    max-width: 340px;
    scroll-snap-align: center;
  }

  .approach__icon {
    flex: 0 0 96px;
    width: 96px;
    margin-inline: 0;
    align-self: center;
    scroll-snap-align: center;
    /* сглаженная звезда без ступеньки на лучах (только мобильные) */
    background: url("../assets/images/approach-star-mobile.svg") center / contain no-repeat;
  }

  .approach__icon .approach__icon-img {
    visibility: hidden;
  }

  .approach__bottom {
    gap: 20px;
  }

  .approach__text {
    max-width: 40ch;
  }

  /* --- Services: descriptions always visible on touch --- */
  .services__grid {
    gap: 16px;
  }

  .services__card {
    min-height: 0;
    padding: 24px 22px;
  }

  .services__card-title {
    margin-bottom: 14px;
    font-size: 20px;
    padding-right: 56px;
  }

  .services__card-desc {
    position: static;
    max-width: none;
    opacity: 1;
    transform: none;
    font-size: 14px;
    line-height: 1.45;
  }

  .services__icon {
    left: auto;
    right: 18px;
    top: 16px;
    bottom: auto;
    width: 44px;
    height: 44px;
    opacity: 0.3;
  }

  .services__card:hover .services__icon,
  .services__card:focus-visible .services__icon,
  .services__card--featured .services__icon {
    opacity: 0.3;
    transform: none;
  }

  .services__grid:hover .services__card--featured:not(:hover):not(:focus-visible) {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
  }

  .services__grid:hover .services__card--featured:not(:hover):not(:focus-visible) .services__card-desc {
    opacity: 1;
    transform: none;
  }

  /* --- Cases: fluid media heights --- */
  .cases__head {
    margin-bottom: 28px;
  }

  .cases__marker {
    width: 42px;
    height: 42px;
  }

  .cases__markers {
    gap: 20px;
  }

  .cases__layout {
    gap: 32px;
  }

  .cases__item {
    gap: 14px;
  }

  .cases__media-link .cases__img,
  .cases__media-link .cases__video {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .cases__media-link .cases__img--sm,
  .cases__media-link .cases__video.cases__img--sm {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .cases__soon-btn {
    min-height: 150px;
  }

  /* --- Process: cards sized to viewport --- */
  .process {
    --process-item: min(78vw, 330px);
    --process-gap: 14px;
  }

  .process__card,
  .process__figure {
    height: 250px;
  }

  .process__card-body {
    padding: 22px;
  }

  .process__card-title {
    font-size: 19px;
  }

  .process__bg {
    width: 200%;
  }

  /* --- CTA --- */
  .cta__visual {
    max-width: 100%;
  }

  .cta__note {
    margin-top: 28px;
  }

  /* --- Philosophy: trimmed vertical air --- */
  .philosophy {
    min-height: 0;
    padding-block: 80px 96px;
  }

  .philosophy__ring {
    top: 80px;
  }

  .philosophy__content {
    padding-top: clamp(140px, 42vw, 220px);
  }

  .philosophy__quote {
    font-size: 18px;
    margin-bottom: 44px;
  }

  .philosophy__img {
    height: 110px;
  }

  /* --- Works page: numbered list, large title --- */
  .works {
    padding-top: 104px;
  }

  .works__title {
    font-size: clamp(38px, 12vw, 52px);
  }

  .works__grid {
    gap: 28px;
    counter-reset: work;
  }

  .works__item {
    counter-increment: work;
    gap: 10px;
  }

  .works__name::before {
    content: "[ " counter(work, decimal-leading-zero) " ]";
    margin-right: 10px;
    font-size: 12px;
    opacity: 0.45;
  }

  /* --- Showreel / case pages: player centered on screen --- */
  .showreel__hero {
    min-height: 100svh;
    justify-content: center;
    padding-top: 96px;
    padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  }

  .showreel__head {
    margin-bottom: 20px;
  }

  .showreel__title {
    font-size: clamp(30px, 9vw, 40px);
  }

  .showreel__media {
    border-radius: 12px;
  }

  .page--showreel-ultrawide .showreel__hero {
    min-height: auto;
    justify-content: flex-start;
  }

  /* --- Contacts --- */
  .contacts__inner {
    padding-top: 104px;
    padding-bottom: 56px;
  }

  .contacts__title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .contacts__head {
    margin-bottom: 40px;
  }

  .contacts__input {
    font-size: 16px; /* предотвращает авто-зум iOS при фокусе */
  }

  .contacts__input--area {
    min-height: 120px;
  }

  .contacts__submit {
    width: 100%;
    max-width: none;
  }

  .contacts__back {
    margin-top: 48px;
  }

  /* --- 404 --- */
  .error-404__actions {
    flex-direction: column;
  }

  .error-404__actions .btn {
    width: 100%;
  }

  /* --- Footer: 2-col socials, giant email --- */
  .footer {
    padding-top: 56px;
    padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    margin-bottom: 44px;
  }

  .footer__social {
    grid-column: auto;
    grid-row: auto;
    padding-block: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer__social-icon {
    width: 18px;
    height: 18px;
  }

  .footer__cta-wrap {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 24px;
  }

  .btn--footer {
    max-width: 100%;
  }

  .footer__email {
    margin-bottom: 32px;
  }

  .footer__nav {
    justify-content: flex-start;
    gap: 4px 22px;
  }

  .footer__nav-link {
    padding-block: 8px;
  }
}

/* --- Entrance motion (mobile only, respects reduced motion) --- */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero__title {
    animation: ns-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s backwards;
  }

  .hero__tagline {
    animation: ns-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.24s backwards;
  }

  .hero__aside {
    animation: ns-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.38s backwards;
  }
}

@keyframes ns-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ns-menu-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* --- Compact phones --- */
@media (max-width: 400px) {
  .hero__title {
    font-size: clamp(30px, 9.8vw, 36px);
  }

  .works__grid {
    gap: 24px;
  }

  .process {
    --process-item: 84vw;
  }
}
