:root {
  --editorial-bg: #efefed;
  --editorial-paper: #f7f7f5;
  --editorial-ink: #090a0a;
  --editorial-line: rgba(9, 10, 10, 0.28);
}

body {
  background: var(--editorial-bg);
}

.wrap,
.team-section .wrap,
.legal-layout {
  width: min(calc(100% - 64px), 1280px);
}

.topbar {
  border-top: 0;
  border-bottom: 1px solid rgba(9, 10, 10, 0.16);
  background: rgba(239, 239, 237, 0.97);
}

.nav {
  min-height: 96px;
  grid-template-columns: 270px minmax(0, 1fr);
}

.logo {
  width: 236px;
}

.menu {
  justify-content: center;
  gap: 52px;
  padding-right: 88px;
  font-size: 12px;
}

.menu a {
  min-height: 52px;
}

.hero.editorial-hero {
  min-height: 452px;
  background: var(--editorial-bg);
}

.hero.editorial-hero::before,
.hero.editorial-hero::after {
  content: none;
}

.hero-word {
  position: absolute;
  z-index: 0;
  top: 66px;
  left: 65%;
  width: max-content;
  margin: 0;
  color: var(--editorial-ink);
  font-size: clamp(160px, 18vw, 278px);
  line-height: 0.72;
  font-weight: 800;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.hero.editorial-hero .hero-visual {
  z-index: 1;
  top: 0;
  right: max(4vw, calc((100vw - 1280px) / 2));
  bottom: 0;
  width: clamp(390px, 36vw, 560px);
  height: 100%;
  overflow: visible;
}

.hero.editorial-hero .hero-visual::after {
  content: none;
}

.hero.editorial-hero .hero-visual img {
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: normal;
  transform: scale(1.08) translateY(var(--portrait-shift, 0));
  transform-origin: center bottom;
}

.hero.editorial-hero .hero-grid {
  min-height: 452px;
  grid-template-columns: minmax(0, 620px) 1fr;
  align-items: end;
  padding: 56px 0 8px;
}

.hero.editorial-hero .hero-grid > div {
  position: relative;
  z-index: 3;
  padding: 0;
  background: none;
}

.hero.editorial-hero h1 {
  max-width: 620px;
  margin-top: 104px;
  font-size: clamp(34px, 2.45vw, 40px);
  line-height: 0.98;
  -webkit-text-stroke: 4px var(--editorial-bg);
  paint-order: stroke fill;
}

.hero.editorial-hero .lead {
  max-width: 520px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.hero.editorial-hero .actions {
  margin-top: 22px;
}

.hero.editorial-hero .btn {
  min-height: 46px;
  padding-inline: 28px;
  font-size: 10px;
}

.home-services-band {
  color: #fff;
  background: var(--editorial-ink);
}

.service-strip {
  min-height: 152px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding: 30px 34px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}

.service-item:first-child {
  padding-left: 0;
}

.service-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.service-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item strong,
.service-item small {
  display: block;
}

.service-item strong {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.3;
}

.service-item small {
  max-width: 290px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.55;
}

.home-process.section {
  padding: 18px 0;
  border-bottom: 1px solid var(--editorial-line);
  background: var(--editorial-bg);
}

.home-process .split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 88px;
  align-items: center;
}

.home-process .photo,
.home-process .photo img {
  min-height: 0;
  height: 168px;
}

.home-process .photo img {
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
}

.home-process h2 {
  max-width: 490px;
  margin-top: 10px;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 0.96;
}

.home-process .statement {
  max-width: 530px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.55;
}

.home-metrics {
  border-bottom: 1px solid var(--editorial-line);
  background: var(--editorial-bg);
}

.home-metrics .metrics {
  min-height: 104px;
}

.home-metrics .metric {
  min-height: 104px;
  padding: 14px 34px;
  align-items: center;
  text-align: center;
}

.home-metrics .metric strong {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 400;
}

.home-metrics .metric span {
  max-width: 330px;
  margin-inline: auto;
  font-size: 10px;
  line-height: 1.45;
}

.team-hero,
.team-hero-inner {
  min-height: 548px;
}

.team-hero {
  background: var(--editorial-bg);
}

.team-kicker {
  top: 44px;
}

.team-word {
  top: 128px;
  font-size: clamp(126px, 14.2vw, 218px);
}

.team-hero-people {
  z-index: 2;
  right: 7%;
  left: 41%;
  height: 470px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.team-hero-person {
  position: relative;
  overflow: visible;
}

.team-hero-person picture {
  display: block;
  width: 100%;
  height: 100%;
}

.team-hero-person img,
.team-hero-person--sergey img {
  width: 116%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.06);
  mix-blend-mode: normal;
}

.team-hero-person--aziz {
  z-index: 3;
}

.team-hero-person--sergey {
  z-index: 2;
}

.team-hero-person--marat {
  z-index: 1;
}

.team-intro-inner {
  min-height: 92px;
}

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

.contact-hero {
  min-height: 460px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 0;
  background: var(--editorial-bg);
}

.contact-word {
  position: absolute;
  z-index: 0;
  top: 46px;
  left: 50%;
  width: max-content;
  margin: 0;
  color: var(--editorial-ink);
  font-size: clamp(122px, 15.3vw, 230px);
  line-height: 0.75;
  font-weight: 800;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.contact-person {
  position: absolute;
  z-index: 1;
  top: -12px;
  right: max(5vw, calc((100vw - 1200px) / 2));
  bottom: -6px;
  width: clamp(300px, 29vw, 430px);
  margin: 0;
  pointer-events: none;
}

.contact-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  filter: grayscale(1) contrast(1.06);
  mix-blend-mode: normal;
}

.contact-hero-content {
  min-height: 460px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding-bottom: 22px;
}

.contact-copy {
  max-width: 610px;
}

.contact-copy h1 {
  max-width: 610px;
  margin-top: 0;
  font-size: clamp(48px, 4.8vw, 72px);
  line-height: 0.98;
}

.contact-copy .section-copy {
  max-width: 560px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
}

.contact-actions-band {
  padding: 28px 0;
  color: #fff;
  background: var(--editorial-ink);
}

.contact-actions-band .smart-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-actions-band .smart-link {
  min-height: 116px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 28px;
  padding: 20px 42px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: transparent;
}

.contact-actions-band .smart-link:first-child {
  color: #fff;
  background: transparent;
}

.contact-actions-band .contact-icon {
  width: 62px;
  height: 62px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
  grid-row: 1 / span 2;
}

.contact-actions-band .smart-link strong {
  grid-column: 2;
  font-size: clamp(17px, 1.7vw, 24px);
  text-transform: uppercase;
}

.contact-actions-band .smart-link small {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.78);
}

.contact-brief.section {
  padding: 34px 0;
  background: var(--editorial-bg);
}

.contact-brief .contact-layout {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: center;
}

.contact-brief h2 {
  max-width: 430px;
  margin-top: 10px;
  font-size: clamp(38px, 3.9vw, 58px);
  line-height: 0.98;
}

.contact-brief .contact-card {
  min-height: 128px;
  display: flex;
  align-items: center;
  padding: 26px 0 26px 64px;
  border: 0;
  border-left: 1px solid var(--editorial-line);
  background: transparent;
}

.footer {
  padding: 34px 0;
  background: var(--editorial-ink);
}

.footer-grid {
  align-items: center;
}

.footer-contact,
.footer-links {
  min-width: 0;
}

.footer-label {
  color: rgba(255, 255, 255, 0.55);
}

.footer-mail {
  font-size: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .service-item:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .service-item:active,
  .smart-link:active,
  .btn:active {
    transform: scale(0.98);
  }
}

@media (max-width: 980px) {
  .wrap,
  .team-section .wrap,
  .legal-layout {
    width: min(calc(100% - 40px), 820px);
  }

  .menu {
    padding-right: 0;
  }

  .hero.editorial-hero .hero-visual {
    right: 1%;
    width: 44vw;
  }

  .hero.editorial-hero .hero-grid {
    grid-template-columns: minmax(0, 60%) 1fr;
  }

  .service-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding-inline: 22px;
  }

  .service-item:first-child {
    padding-left: 0;
  }

  .service-icon {
    width: 38px;
    height: 38px;
  }

  .home-process .split {
    gap: 42px;
  }

  .team-hero-people {
    left: 22%;
  }

  .contact-copy {
    max-width: 54%;
  }

  .contact-person {
    right: 1%;
    width: 42vw;
  }
}

@media (max-width: 700px) {
  .nav {
    min-height: 110px;
    grid-template-columns: 1fr;
    grid-template-rows: 62px 44px;
  }

  .logo {
    width: 190px;
    margin-inline: auto;
  }

  .menu {
    gap: 8px;
  }

  .hero.editorial-hero {
    min-height: 920px;
  }

  .hero.editorial-hero::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 430px;
    right: 0;
    left: 0;
    height: 36px;
    background: var(--editorial-ink);
  }

  .hero-word {
    top: 260px;
    left: 50%;
    font-size: 22vw;
  }

  .hero.editorial-hero .hero-visual {
    top: 54px;
    right: 0;
    left: 0;
    width: min(78vw, 320px);
    height: 392px;
    margin-inline: auto;
    transform: none;
  }

  .hero.editorial-hero .hero-visual img {
    transform: scale(1.02) translateY(var(--portrait-shift, 0));
  }

  .hero.editorial-hero .hero-grid {
    min-height: 920px;
    grid-template-columns: 1fr;
    align-items: end;
    padding: 320px 0 26px;
  }

  .hero.editorial-hero .hero-grid > div {
    padding: 24px 0 0;
    background: rgba(239, 239, 237, 0.94);
  }

  .hero.editorial-hero h1 {
    margin-top: 24px;
    font-size: clamp(36px, 10vw, 42px);
    -webkit-text-stroke: 0;
  }

  .hero.editorial-hero .actions {
    grid-template-columns: 1fr 1fr;
  }

  .service-strip {
    grid-template-columns: 1fr;
  }

  .service-item,
  .service-item:first-child,
  .service-item:last-child {
    min-height: 136px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .service-item:last-child {
    border-bottom: 0;
  }

  .home-process.section {
    padding: 28px 0 36px;
  }

  .home-process .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-process .photo,
  .home-process .photo img {
    height: 220px;
  }

  .home-metrics .metrics {
    grid-template-columns: 1fr;
  }

  .home-metrics .metric {
    min-height: 132px;
    border-right: 0;
    border-bottom: 1px solid var(--editorial-line);
  }

  .team-hero,
  .team-hero-inner {
    min-height: 430px;
  }

  .team-kicker {
    top: 32px;
  }

  .team-word {
    z-index: 1;
    top: 260px;
    font-size: 19vw;
  }

  .team-hero-people {
    z-index: 3;
    right: -4%;
    bottom: 0;
    left: -4%;
    height: 420px;
  }

  .team-hero-person {
    overflow: visible;
  }

  .team-hero-person img,
  .team-hero-person--sergey img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .team-hero-person--aziz img {
    width: 100%;
    height: 100%;
    transform: scale(1.39);
    transform-origin: center bottom;
  }

  .team-hero-person--sergey img {
    width: 100%;
    max-width: none;
    margin-left: 0;
    transform: scale(1.23);
    transform-origin: center bottom;
  }

  .team-intro-inner {
    padding-block: 24px;
  }

  .contact-hero {
    min-height: 720px;
  }

  .contact-hero::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 430px;
    right: 0;
    left: 0;
    height: 36px;
    background: var(--editorial-ink);
  }

  .contact-word {
    top: 260px;
    font-size: 18vw;
  }

  .contact-person {
    top: 70px;
    right: 0;
    left: 0;
    width: min(84vw, 360px);
    height: 390px;
    margin-inline: auto;
  }

  .contact-hero-content {
    min-height: 720px;
    align-items: end;
    padding-bottom: 34px;
  }

  .contact-copy {
    max-width: none;
    padding-top: 20px;
    background: rgba(239, 239, 237, 0.94);
  }

  .contact-copy h1 {
    font-size: clamp(42px, 12.5vw, 54px);
  }

  .contact-actions-band .smart-links {
    grid-template-columns: 1fr;
  }

  .contact-actions-band .smart-link {
    min-height: 112px;
    padding: 20px 24px;
  }

  .contact-brief.section {
    padding: 48px 0;
  }

  .contact-brief .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .contact-brief .contact-card {
    min-height: 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--editorial-line);
    border-left: 0;
  }
}

@media (max-width: 420px) {
  .wrap,
  .team-section .wrap,
  .legal-layout {
    width: calc(100% - 28px);
  }

  .hero.editorial-hero .actions {
    grid-template-columns: 1fr;
  }

  .contact-actions-band .smart-link {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 16px;
    padding-inline: 18px;
  }

  .contact-actions-band .contact-icon {
    width: 50px;
    height: 50px;
  }

  .contact-actions-band .smart-link strong {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-item,
  .smart-link,
  .btn {
    transition: none;
  }
}
