:root {
  --page-width: 1440px;
  --gutter: 12px;
  --gap: 24px;
  --paper: #f5f5f5;
  --ink: #000;
  --accent: #fd6735;
  --night: #0d0f0a;
  --radius: 24px;
  --radius-lg: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Onest", sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

body.modal-open {
  overflow: hidden;
}

button,
a,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

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

img {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  overflow-x: clip;
}

section[id],
footer[id] {
  scroll-margin-top: 84px;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  height: 57px;
  align-items: center;
  padding: 0 24px;
  background: var(--paper);
  gap: 28px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.brand,
.header-cta {
  font-weight: 600;
}

.navigation {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 24px;
}

.navigation a,
.brand,
.header-cta {
  transition: color 0.25s ease, opacity 0.25s ease;
}

.navigation a:hover,
.brand:hover,
.header-cta:hover {
  color: var(--accent);
}

.header-cta {
  margin-left: auto;
}

.button {
  display: inline-flex;
  width: max-content;
  min-width: 104px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

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

.button--light {
  background: #fff;
  color: #000;
}

.button--light:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.button--glass {
  min-width: 165px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(14px) saturate(160%);
}

.button--glass:hover {
  background: rgba(255, 255, 255, 0.18);
}

.section-title {
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
}

.hero {
  position: relative;
  z-index: 2;
  height: 720px;
  padding: 0 var(--gutter);
  overflow: visible;
}

.hero__media {
  position: relative;
  height: 720px;
  overflow: visible;
  border-radius: var(--radius);
  background: #171915;
  isolation: isolate;
}

.hero__image {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 49%;
  transform: scaleX(-1);
}

.hero__content {
  position: absolute;
  top: 324px;
  left: calc(8.333% + 12px);
  z-index: 7;
}

.hero__caption {
  margin: 0 0 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 100;
  line-height: 1.2;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero__caption span:first-child {
  color: var(--accent);
  font-weight: 600;
}

.hero__caption-text {
  color: #fff;
  font-weight: 400;
}

.liquid-filter {
  position: absolute;
  width: 0;
  height: 0;
}

.liquid-symbol {
  --glass-image: url("../assets/figma/hero-butterfly.png");
  --liquid-x: 0px;
  --liquid-y: 0px;
  --liquid-rotate: 0deg;
  --liquid-light-x: 34%;
  --liquid-light-y: 24%;
  --liquid-shift: 0px;
  position: absolute;
  z-index: 5;
  top: -42px;
  left: 50%;
  width: 474px;
  height: 802px;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: visible;
  opacity: 1;
  will-change: auto;
}

.liquid-symbol__body,
.liquid-symbol__glass,
.liquid-symbol__rim,
.liquid-symbol__shine {
  position: absolute;
  inset: 0;
}

.liquid-symbol__body {
  filter:
    drop-shadow(0 34px 64px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.16));
  transform: translate3d(var(--liquid-x), var(--liquid-y), 0) rotate(var(--liquid-rotate));
  transform-origin: 50% 48%;
  transition: filter 0.45s ease;
  will-change: filter;
}

.liquid-symbol__body::before {
  content: "";
  position: absolute;
  inset: 6% 0 7%;
  -webkit-mask: url("../assets/figma/liquid-symbol-mask.svg") center / contain no-repeat;
  mask: url("../assets/figma/liquid-symbol-mask.svg") center / contain no-repeat;
  background:
    radial-gradient(circle at var(--liquid-light-x) var(--liquid-light-y), rgba(255, 255, 255, 0.95), transparent 15%),
    radial-gradient(circle at 71% 68%, rgba(255, 255, 255, 0.34), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.04) 52%, rgba(255, 255, 255, 0.36));
  filter: blur(10px);
  mix-blend-mode: screen;
  opacity: 0.58;
  transform: scale(1.04);
}

.liquid-symbol__glass,
.liquid-symbol__rim,
.liquid-symbol__shine {
  -webkit-mask: url("../assets/figma/liquid-symbol-mask.svg") center / contain no-repeat;
  mask: url("../assets/figma/liquid-symbol-mask.svg") center / contain no-repeat;
}

.liquid-symbol__glass {
  background:
    radial-gradient(circle at var(--liquid-light-x) var(--liquid-light-y), rgba(255, 255, 255, 0.78), transparent 18%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.12) 32%, rgba(255, 255, 255, 0.4) 65%, rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(190%) contrast(118%);
  backdrop-filter: blur(14px) saturate(190%) contrast(118%);
  box-shadow:
    inset 3px 4px 8px rgba(255, 255, 255, 0.68),
    inset -12px -16px 28px rgba(255, 255, 255, 0.18),
    inset 16px 24px 42px rgba(0, 0, 0, 0.2);
  filter: url("#hero-liquid-refraction") saturate(1.2) contrast(1.1);
  opacity: 0.88;
  transform: scale(1.012);
}

.liquid-symbol__rim {
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.95), transparent 21%, rgba(255, 255, 255, 0.16) 51%, rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 77% 74%, rgba(255, 255, 255, 0.58), transparent 22%);
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.9),
    inset -14px -18px 32px rgba(255, 255, 255, 0.18),
    inset 14px 22px 34px rgba(0, 0, 0, 0.22);
  filter: url("#hero-liquid-specular");
  mix-blend-mode: screen;
  opacity: 0.86;
}

.liquid-symbol__shine {
  background:
    linear-gradient(103deg, transparent 24%, rgba(255, 255, 255, 0.92) 37%, transparent 50%),
    conic-gradient(from 155deg at 51% 47%, transparent, rgba(255, 255, 255, 0.32), transparent 28%),
    radial-gradient(circle at 42% 52%, rgba(255, 255, 255, 0.3), transparent 26%);
  filter: blur(1px);
  mix-blend-mode: screen;
  opacity: 0.5;
  transform: translateX(calc(-10% + var(--liquid-shift))) translateY(1%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.reveal {
  animation: reveal-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js-reveal {
  opacity: 0;
  translate: 0 28px;
  filter: blur(8px);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

@keyframes reveal-in {
  from {
    opacity: 0;
    translate: -18px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.stats {
  display: flex;
  gap: var(--gap);
  margin-top: 24px;
  padding: 0 var(--gutter);
}

.stat-card {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  height: 224px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px 40px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: rgba(0, 0, 0, 0.15);
  transition: color 0.25s ease;
}

.stat-card:hover {
  color: var(--accent);
}

.stat-card__value {
  margin: 0 0 8px;
  font-size: 80px;
  font-weight: 100;
  line-height: 90px;
  letter-spacing: 0;
}

.stat-card:first-child .stat-card__value {
  letter-spacing: 0;
}

.stat-card__label {
  max-width: 256px;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.28;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services {
  display: flex;
  gap: 144px;
  margin-top: 100px;
  padding: 0 132px;
}

.services__title {
  width: 216px;
  flex: 0 0 216px;
  color: var(--accent);
  font-weight: 500;
}

.services__list {
  width: 816px;
  flex: 0 1 816px;
}

.service-row {
  position: relative;
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: min-height 0.28s ease, padding 0.28s ease;
}

.service-row--open {
  min-height: 0;
  align-items: flex-start;
  padding-bottom: 26px;
}

.service-row h3 {
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
}

.service-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.24s ease, transform 0.3s ease;
}

.service-row--open .service-row__chips {
  max-height: 120px;
  margin-top: 26px;
  opacity: 1;
  transform: translateY(0);
}

.chip,
.case-popup__tags span {
  display: inline-flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 40px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.service-row__icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.service-row--open .service-row__icon {
  margin-top: 3px;
}

.service-row__icon:hover {
  transform: rotate(90deg);
  opacity: 0.75;
}

.service-row--open .service-row__icon:hover {
  transform: none;
}

.service-row__icon img {
  width: 100%;
  height: 100%;
}

.clients {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: center;
  margin-top: 120px;
  padding: 0 132px;
}

.client-card {
  display: flex;
  width: 216px;
  height: 216px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: #fff;
}

.client-card img {
  width: 100px;
  height: auto;
  opacity: 1;
}

.cases {
  margin-top: 111px;
}

.cases .section-title,
.team .section-title {
  margin-left: 132px;
}

.case-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: center;
  margin-top: 31px;
  padding: 0 132px;
}

.case-card {
  position: relative;
  width: 216px;
  height: 216px;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.case-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease;
}

.case-card:hover .case-card__image {
  filter: saturate(1.12) contrast(1.05);
}

.case-card__overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  min-height: 82px;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  transition: opacity 0.3s ease;
}

.case-card:hover .case-card__overlay,
.case-card:focus-visible .case-card__overlay {
  opacity: 1;
}

.case-card__name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-align: left;
  text-transform: uppercase;
}

.cases__more {
  display: flex;
  width: min(1176px, calc(100% - 264px));
  margin: 24px auto 0;
}

.team {
  margin-top: 111px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  margin-top: 31px;
  padding: 0 var(--gutter);
}

.team-card {
  position: relative;
  width: calc((100% - 72px) / 4);
  height: 336px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  transition: transform 0.25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.team-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 168px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.52) 100%);
  content: "";
}

.team-card__info {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 28px;
  left: 30px;
  color: #fff;
}

.team-card__info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.team-card__info p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.team__join {
  width: 336px;
  margin-left: 0;
  padding-top: 0;
}

.team__join p {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.footer {
  margin-top: 120px;
  padding: 0 var(--gutter) 20px;
}

.footer__panel {
  position: relative;
  height: 720px;
}

.footer__panel::before {
  position: absolute;
  inset: 0 0 0 16.6%;
  border-radius: var(--radius);
  background: var(--night);
  content: "";
}

.footer__image-wrap {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 600px;
  height: 720px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.footer__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 50%;
}

.footer__circle {
  position: absolute;
  z-index: 2;
  left: calc(33.333% + 26px);
  width: 214px;
  height: 214px;
  pointer-events: none;
}

.footer__circle--top {
  top: 146px;
}

.footer__circle--bottom {
  top: 285px;
}

.footer__contacts {
  position: absolute;
  z-index: 2;
  top: 245px;
  left: calc(50% + 0px);
  color: #fff;
}

.footer__label {
  margin: 0 0 26px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.footer__phone,
.footer__mail {
  display: block;
  font-size: 36px;
  font-weight: 100;
  line-height: 1.18;
}

.footer__button {
  margin-top: 46px;
}

.footer__legal {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 18px 12px 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.footer__address {
  width: 330px;
  font-weight: 600;
}

.footer__legal a {
  margin-left: auto;
  font-weight: 600;
  text-align: right;
}

.footer__legal span:last-child {
  min-width: 120px;
  text-align: right;
}

.legal-page {
  min-height: 100vh;
  padding-bottom: 96px;
}

.legal-page__header {
  position: sticky;
  top: 0;
}

.legal-document {
  width: min(920px, calc(100% - 48px));
  margin: 92px auto 0;
  padding: 54px;
  border-radius: var(--radius);
  background: #fff;
}

.legal-document__eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.legal-document h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

.legal-document__lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.38;
}

.legal-document__date {
  margin: 18px 0 52px;
  color: rgba(0, 0, 0, 0.44);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.legal-document section + section {
  margin-top: 42px;
}

.legal-document h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.legal-document p,
.legal-document li {
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.58;
}

.legal-document p + p {
  margin-top: 12px;
}

.legal-document ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.legal-document a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  width: min(960px, calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 18px 18px 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
  animation: cookie-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cookie-banner--hidden {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.cookie-banner p {
  max-width: 680px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.36;
}

.cookie-banner a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__button {
  flex: 0 0 auto;
  background: #000;
  color: #fff;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 30px 24px;
}

.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  animation: fade-in 0.24s ease both;
}

.case-popup {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 48px));
  height: min(840px, calc(100vh - 60px));
  min-height: 640px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: #000;
  animation: modal-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.case-popup__media {
  position: absolute;
  top: 6px;
  right: 6px;
  left: 6px;
  height: min(642px, calc(100% - 198px));
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
}

.case-popup__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-popup__arrow {
  position: absolute;
  top: calc(50% - 27px);
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.case-popup__arrow:hover {
  transform: scale(1.08);
  opacity: 0.85;
}

.case-popup__arrow:disabled {
  cursor: default;
  opacity: 0.35;
  pointer-events: none;
}

.case-popup__arrow--prev {
  left: 24px;
}

.case-popup__arrow--next {
  right: 24px;
}

.case-popup__arrow img {
  width: 100%;
  height: 100%;
}

.case-popup__dots {
  position: absolute;
  bottom: 28px;
  left: 30px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.case-popup__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.case-popup__dot.is-active {
  background: #fff;
  transform: scale(1.18);
}

.case-popup__tags {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}

.case-popup__content {
  position: absolute;
  right: 36px;
  bottom: 27px;
  left: 36px;
}

.case-popup__client {
  margin: 0 0 13px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.case-popup__content h2 {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.18;
}

.case-popup__content p:last-child {
  max-width: 792px;
  margin: 0;
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.28;
}

.case-popup__close {
  position: absolute;
  top: 0;
  right: -62px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.case-popup__close img {
  width: 100%;
  height: 100%;
}

.case-popup__case-arrow {
  position: absolute;
  top: calc(50% - 27px);
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.case-popup__case-arrow:hover {
  transform: scale(1.08);
  opacity: 0.85;
}

.case-popup__case-arrow--prev {
  left: -78px;
}

.case-popup__case-arrow--next {
  right: -78px;
}

.case-popup__case-arrow img {
  width: 100%;
  height: 100%;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1320px) {
  .navigation {
    gap: 17px;
  }

  .services {
    gap: 8vw;
    padding: 0 8.8vw;
  }

  .clients,
  .case-grid {
    padding: 0 8.8vw;
  }

  .client-card,
  .case-card {
    width: calc((100vw - 17.6vw - 96px) / 5);
    height: calc((100vw - 17.6vw - 96px) / 5);
  }

  .footer__image-wrap {
    width: 42%;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 60px;
    padding: 0 16px;
  }

  .navigation {
    display: none;
  }

  .header-cta {
    max-width: 150px;
    text-align: right;
  }

  .hero {
    height: 560px;
    padding: 0 8px;
  }

  .hero__media {
    height: 560px;
  }

  .hero__content {
    top: 50%;
    bottom: auto;
    left: 24px;
    transform: translateY(-50%);
  }

  .liquid-symbol {
    top: -58px;
    width: 344px;
    height: 582px;
  }

  .liquid-symbol__glass {
    background-size: 100% 100%, 100% 100%, auto 590px;
  }

  .stats {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 8px;
  }

  .stat-card {
    height: 178px;
    flex: 1 1 calc(50% - 6px);
    padding: 16px 22px;
    color: #000;
  }

  .stat-card__value {
    font-size: 56px;
    line-height: 64px;
  }

  .stat-card__label {
    font-size: 15px;
  }

  .services {
    display: block;
    margin-top: 72px;
    padding: 0 16px;
  }

  .services__title,
  .services__list {
    width: 100%;
  }

  .services__title {
    margin-bottom: 22px;
  }

  .service-row,
  .service-row--open {
    min-height: 96px;
  }

  .service-row--open {
    display: block;
    padding-bottom: 22px;
  }

  .service-row h3 {
    font-size: 30px;
  }

  .service-row__icon {
    position: absolute;
    top: 21px;
    right: 0;
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .service-row--open .service-row__icon {
    top: 0;
  }

  .service-row__chips {
    max-width: calc(100% - 54px);
    margin-top: 18px;
  }

  .chip,
  .case-popup__tags span {
    height: 38px;
    padding: 0 14px;
    font-size: 10px;
  }

  .clients {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 72px;
    overflow-x: auto;
    padding: 0 16px 10px;
    scroll-padding-left: 16px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .case-grid {
    gap: 12px;
    margin-top: 72px;
    padding: 0 16px;
  }

  .client-card {
    width: 216px;
    height: 216px;
    flex: 0 0 216px;
    scroll-snap-align: start;
  }

  .case-card {
    width: calc((100% - 12px) / 2);
    height: auto;
    aspect-ratio: 1;
  }

  .cases,
  .team {
    margin-top: 72px;
  }

  .cases .section-title,
  .team .section-title {
    margin-left: 16px;
  }

  .case-grid,
  .team-grid {
    margin-top: 24px;
  }

  .cases__more {
    width: calc(100% - 32px);
  }

  .team-grid {
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px;
    scroll-padding-left: 16px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .team-card {
    width: min(336px, 78vw);
    flex: 0 0 min(336px, 78vw);
    height: auto;
    aspect-ratio: 1;
    scroll-snap-align: start;
  }

  .team-card::after {
    height: 50%;
  }

  .team-card__info {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .team-card__info h3 {
    font-size: 15px;
  }

  .team-card__info p {
    font-size: 9px;
  }

  .team__join {
    width: min(336px, 78vw);
    flex: 0 0 min(336px, 78vw);
    min-height: min(336px, 78vw);
    margin-left: 0;
    padding-top: min(52vw, 218px);
    scroll-snap-align: start;
  }

  .footer {
    margin-top: 72px;
    padding: 0 8px 20px;
  }

  .footer__panel {
    height: clamp(340px, 55vw, 520px);
    min-height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--night);
  }

  .footer__panel::before {
    display: none;
  }

  .footer__image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 48%;
    height: 100%;
    border-radius: var(--radius);
  }

  .footer__circle {
    display: none;
  }

  .footer__contacts {
    position: absolute;
    top: 50%;
    left: 52%;
    width: 44%;
    padding: 0;
    transform: translateY(-50%);
  }

  .footer__phone,
  .footer__mail {
    font-size: 31px;
  }

  .footer__legal {
    flex-direction: column;
    gap: 10px;
    padding: 18px 8px 0;
  }

  .footer__address,
  .footer__legal a,
  .footer__legal span:last-child {
    width: auto;
    min-width: 0;
    margin-left: 0;
    text-align: left;
  }

  .legal-page {
    padding-bottom: 56px;
  }

  .legal-document {
    width: calc(100% - 32px);
    margin-top: 48px;
    padding: 30px 22px 34px;
  }

  .legal-document h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .legal-document__lead {
    font-size: 17px;
  }

  .legal-document section + section {
    margin-top: 32px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px;
  }

  .cookie-banner p {
    max-width: none;
    font-size: 13px;
  }

  .cookie-banner__button {
    width: 100%;
  }

  .modal {
    padding: 0;
  }

  .case-popup {
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    border-radius: 0;
  }

  .case-popup__media {
    position: relative;
    top: 8px;
    right: auto;
    left: 8px;
    width: calc(100% - 16px);
    height: 54vh;
    min-height: 360px;
  }

  .case-popup__tags {
    right: 16px;
    bottom: 18px;
    left: 16px;
    justify-content: flex-start;
  }

  .case-popup__dots {
    bottom: 18px;
    left: 18px;
  }

  .case-popup__arrow {
    top: calc(50% - 23px);
    width: 46px;
    height: 46px;
  }

  .case-popup__content {
    position: static;
    padding: 34px 24px 48px;
  }

  .case-popup__content h2 {
    font-size: 32px;
  }

  .case-popup__content p:last-child {
    font-size: 16px;
  }

  .case-popup__close {
    top: 18px;
    right: 18px;
    z-index: 3;
  }

  .case-popup__case-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 520px;
  }

  .hero__media {
    height: 520px;
  }

  .liquid-symbol {
    top: -42px;
    width: 304px;
    height: 514px;
  }

  .stats {
    flex-direction: column;
  }

  .stat-card {
    flex-basis: auto;
    height: 154px;
  }

  .section-title,
  .service-row h3,
  .footer__phone,
  .footer__mail {
    font-size: 30px;
  }

  .legal-document h1 {
    font-size: 34px;
  }

  .legal-document h2 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
