:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --text: #070707;
  --muted: #5f5f5f;
  --line: #111111;
  --accent: #1a56db;
  --accent-soft: #d6e4ff;
  --container: 1344px;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --display-font: "Bebas Neue", "Arial Narrow", sans-serif;
  --body-font: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --mono-font: "JetBrains Mono", monospace;
  --cursor-default: url("../assets/icons/cursor-50.png") 0 0;
  --cursor-hover: url("../assets/icons/cursor-56hover.png") 0 0;
}

@font-face {
  font-family: "Kommuna Narrow";
  src: url("../assets/fonts/Kommuna-Narrow.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.35;
  text-rendering: geometricPrecision;
}

@media (pointer: fine) {
  html,
  body,
  * {
    cursor: var(--cursor-default), auto !important;
  }

  :is(
      a,
      button,
      [role="button"],
      summary,
      input[type="button"],
      input[type="submit"],
      input[type="reset"],
      label[for]
    ):is(:hover, :focus-visible),
  :is(
      a,
      button,
      [role="button"],
      summary,
      input[type="button"],
      input[type="submit"],
      input[type="reset"],
      label[for]
    ):is(:hover, :focus-visible) * {
    cursor: var(--cursor-hover), pointer !important;
  }
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 88%, white 12%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 16%, transparent 84%);
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  max-width: 280px;
  font-size: clamp(20px, 1.75vw, 32px);
  line-height: 1;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.btn {
  border: 1px solid var(--line);
  min-height: 40px;
  padding: 10px 16px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

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

.btn--primary {
  background: var(--line);
  color: #ffffff;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: #ffffff;
}

.side-nav {
  position: fixed;
  left: max(24px, calc((100vw - var(--container)) / 2));
  top: 220px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav a {
  display: inline-block;
  font-family: var(--display-font);
  letter-spacing: 0.03em;
  font-size: 42px;
  line-height: 0.9;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  opacity: 1;
  transform: translateX(4px);
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  min-height: 760px;
  padding-top: 52px;
  display: grid;
  place-items: center;
}

.hero__word {
  font-family: var(--display-font);
  font-size: clamp(180px, 34vw, 560px);
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111111;
  user-select: none;
}

.hero__portrait {
  position: absolute;
  width: min(300px, 60vw);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--line) 35%, transparent 65%);
  background:
    radial-gradient(circle at 28% 30%, #a5b9ff 0%, #d2d9ff 36%, transparent 37%),
    radial-gradient(circle at 70% 70%, #6483ff 0%, #3f5ce5 35%, #11204f 90%);
  box-shadow: 0 20px 40px color-mix(in srgb, #0a0a0a 20%, transparent 80%);
}

.hero__portrait::before,
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 14% 14%;
  border: 1px dashed color-mix(in srgb, white 50%, transparent 50%);
}

.hero__portrait::after {
  inset: 24% 24%;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  padding: 90px 0;
}

.section-title {
  font-family: var(--display-font);
  text-transform: uppercase;
  font-size: clamp(78px, 14vw, 210px);
  line-height: 0.84;
  margin: 0;
  letter-spacing: 0.01em;
}

.about__intro {
  width: min(540px, 100%);
  margin: 0 auto;
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
}

.about__meta {
  margin: 26px auto 0;
  width: min(640px, 100%);
  display: grid;
  gap: 20px;
  justify-items: center;
}

.about__badge {
  border: 1px solid var(--line);
  font-family: var(--mono-font);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 10px 14px;
}

.about__visual {
  width: min(324px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--line) 20%, transparent 80%);
  background:
    repeating-radial-gradient(circle at center, transparent 0 18px, color-mix(in srgb, #2d6bff 20%, transparent 80%) 18px 20px),
    radial-gradient(circle at center, #d9e4ff, #aec6ff 45%, #6e8dff 75%, #1e2c61 100%);
  box-shadow: inset 0 0 70px color-mix(in srgb, #ffffff 45%, transparent 55%);
}

.projects {
  padding-top: 30px;
}

.projects-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 18%, transparent 82%);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 360px;
  display: grid;
  grid-template-rows: 220px auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px color-mix(in srgb, #000000 16%, transparent 84%);
  border-color: color-mix(in srgb, var(--line) 40%, transparent 60%);
}

.project-card__media {
  background-size: cover;
  background-position: center;
}

.project-card--marshall .project-card__media {
  background-image:
    linear-gradient(140deg, rgba(8, 16, 38, 0.8), rgba(26, 59, 131, 0.18)),
    linear-gradient(45deg, #2c468d, #8aa4f1 60%, #cfdbff);
}

.project-card--hios .project-card__media {
  background-image:
    radial-gradient(circle at 22% 26%, rgba(255, 245, 128, 0.8), transparent 35%),
    linear-gradient(45deg, #0c0c0c, #5f5f5f);
}

.project-card--sladonezh .project-card__media {
  background-image:
    radial-gradient(circle at 65% 22%, rgba(255, 255, 255, 0.5), transparent 32%),
    linear-gradient(40deg, #ff8100, #ffbf5f 50%, #ffd899);
}

.project-card--lori .project-card__media {
  background-image:
    radial-gradient(circle at 40% 35%, rgba(199, 221, 255, 0.5), transparent 38%),
    linear-gradient(30deg, #274c90, #7ea1ea);
}

.project-card__body {
  padding: 18px 20px 24px;
  display: grid;
  gap: 12px;
}

.project-card__title {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

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

.project-card__cta {
  margin-top: 4px;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contacts {
  padding-top: 40px;
}

.contacts-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  border-top: 1px solid color-mix(in srgb, var(--line) 22%, transparent 78%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 22%, transparent 78%);
  padding: 20px 0;
}

.contacts-row a {
  font-family: var(--display-font);
  text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 70px);
  line-height: 0.85;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contacts-row a:hover,
.contacts-row a:focus-visible {
  opacity: 0.8;
  transform: translateY(-2px);
}

.outro-visual {
  margin-top: 24px;
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 52%),
    linear-gradient(180deg, #9cc7ff 0%, #6fafeb 36%, #6aaa4f 37%, #81bd59 100%);
}

.outro-visual__word {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(160px, 28vw, 470px);
  line-height: 0.8;
  text-transform: uppercase;
  color: #0e0e0e;
}

.site-footer {
  padding: 16px 0 34px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  --reveal-base-transform: none;
  opacity: 1;
  transform: var(--reveal-base-transform);
}

.js .reveal {
  opacity: 0;
  transform: var(--reveal-base-transform) translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: var(--reveal-base-transform) translateY(0);
}

/* CASE PAGE */
.case {
  --accent: #255be4;
  --accent-soft: #d9e5ff;
}

.case--marshall {
  --accent: #335db8;
  --accent-soft: #d5e0ff;
}

.case--hios {
  --accent: #8f6d2a;
  --accent-soft: #f3e8cd;
}

.case--sladonezh {
  --accent: #d87400;
  --accent-soft: #ffe8cd;
}

.case--lori {
  --accent: #4f6bc6;
  --accent-soft: #dbe4ff;
}

.case-header {
  position: sticky;
  top: 0;
  z-index: 45;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 90%, white 10%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 14%, transparent 86%);
}

.case-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.case-header__links {
  display: flex;
  gap: 8px;
}

.case-hero {
  padding: 82px 0 42px;
}

.case-kicker {
  margin: 0;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-title {
  margin: 10px 0 14px;
  max-width: 1000px;
  font-family: var(--display-font);
  text-transform: uppercase;
  font-size: clamp(70px, 10vw, 156px);
  line-height: 0.84;
}

.case-lead {
  margin: 0;
  max-width: 800px;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.06;
}

.case-meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-meta__chip {
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent 50%);
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--line) 65%, var(--accent) 35%);
  padding: 8px 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.case-visual {
  margin-top: 38px;
  border-radius: var(--radius-lg);
  height: clamp(280px, 42vw, 560px);
  border: 1px solid color-mix(in srgb, var(--line) 14%, transparent 86%);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 22%, color-mix(in srgb, var(--accent) 30%, white 70%), transparent 30%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--accent) 44%, black 56%), transparent 40%),
    linear-gradient(130deg, color-mix(in srgb, var(--accent) 40%, white 60%), color-mix(in srgb, var(--accent) 48%, black 52%));
}

.case-visual::before,
.case-visual::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, white 70%, transparent 30%);
  border-radius: 24px;
}

.case-visual::before {
  width: min(55%, 520px);
  height: min(62%, 320px);
  left: 6%;
  top: 10%;
}

.case-visual::after {
  width: min(34%, 340px);
  height: min(52%, 280px);
  right: 8%;
  bottom: 10%;
}

.case-section {
  padding: 26px 0 10px;
}

.case-section__title {
  margin: 0 0 14px;
  font-family: var(--display-font);
  text-transform: uppercase;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.88;
}

.case-section__text {
  margin: 0;
  width: min(980px, 100%);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.1;
}

.case-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.case-panel {
  border: 1px solid color-mix(in srgb, var(--line) 14%, transparent 86%);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 20px;
}

.case-panel h3 {
  margin: 0 0 10px;
  font-family: var(--mono-font);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.case-panel p,
.case-panel li {
  font-size: clamp(18px, 2vw, 24px);
}

.case-panel ul {
  margin: 0;
  padding-left: 18px;
}

.metric-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  border-radius: 16px;
  padding: 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent 70%);
}

.metric strong {
  display: block;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 0.95;
}

.metric span {
  font-family: var(--mono-font);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.case-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.case-gallery__item {
  min-height: 140px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 12%, transparent 88%);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 45%, white 55%), color-mix(in srgb, var(--accent) 25%, black 75%));
  position: relative;
  overflow: hidden;
}

.case-gallery__item::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 10px;
  border: 1px dashed color-mix(in srgb, white 50%, transparent 50%);
}

.case-gallery__item:nth-child(1) {
  grid-column: span 5;
  min-height: 220px;
}

.case-gallery__item:nth-child(2) {
  grid-column: span 7;
  min-height: 220px;
}

.case-gallery__item:nth-child(3),
.case-gallery__item:nth-child(4),
.case-gallery__item:nth-child(5) {
  grid-column: span 4;
}

.case-nav {
  margin: 48px 0 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-nav a {
  border: 1px solid color-mix(in srgb, var(--line) 22%, transparent 78%);
  padding: 8px 12px;
  text-transform: uppercase;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.case-nav a:hover,
.case-nav a:focus-visible {
  background: var(--line);
  color: #ffffff;
}

@media (max-width: 1439px) {
  .side-nav {
    left: 24px;
  }

  .hero__word {
    font-size: clamp(160px, 30vw, 460px);
  }
}

@media (max-width: 1199px) {
  .container {
    width: min(var(--container), calc(100% - 56px));
  }

  .side-nav {
    position: static;
    padding: 18px 0 8px;
    flex-direction: row;
    justify-content: center;
    gap: 18px;
  }

  .side-nav a {
    font-size: 34px;
  }

  .site-header {
    position: relative;
  }

  .hero {
    min-height: 640px;
    padding-top: 22px;
  }

  .hero__word {
    font-size: clamp(120px, 28vw, 330px);
  }

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

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

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

  .case-gallery__item:nth-child(1),
  .case-gallery__item:nth-child(2),
  .case-gallery__item:nth-child(3),
  .case-gallery__item:nth-child(4),
  .case-gallery__item:nth-child(5) {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(var(--container), calc(100% - 30px));
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 12px;
    gap: 12px;
  }

  .brand {
    max-width: 200px;
    font-size: 22px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1;
    min-height: 44px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }

  .side-nav {
    gap: 10px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .side-nav a {
    font-size: 30px;
    flex: 0 0 auto;
  }

  .hero {
    min-height: 430px;
    margin-top: 8px;
  }

  .hero__word {
    font-size: clamp(80px, 26vw, 176px);
  }

  .hero__portrait {
    width: min(220px, 64vw);
  }

  .section {
    padding: 58px 0;
  }

  .section-title {
    font-size: clamp(68px, 24vw, 116px);
  }

  .about__intro {
    font-size: clamp(28px, 9.6vw, 42px);
  }

  .contacts-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contacts-row a {
    text-align: left;
  }

  .outro-visual {
    min-height: 300px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .outro-visual__word {
    font-size: clamp(100px, 30vw, 170px);
  }

  .case-header__inner {
    min-height: 64px;
  }

  .case-header__links {
    width: 100%;
    justify-content: space-between;
  }

  .case-header__links .btn {
    flex: 1;
  }

  .case-title {
    font-size: clamp(58px, 20vw, 88px);
  }

  .case-lead {
    font-size: clamp(22px, 8.5vw, 34px);
  }

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

  .case-gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .case-gallery__item:nth-child(1),
  .case-gallery__item:nth-child(2),
  .case-gallery__item:nth-child(3),
  .case-gallery__item:nth-child(4),
  .case-gallery__item:nth-child(5) {
    grid-column: span 6;
  }
}

/* HOME REFINEMENT (FIGMA-ALIGNED) */
.home {
  font-family: "Arial Narrow", "IBM Plex Sans Condensed", sans-serif;
  background: #ffffff;
}

.home .site-header {
  position: relative;
  top: auto;
  backdrop-filter: none;
  background: transparent;
  border-bottom: 0;
}

.home .site-header__inner {
  min-height: 86px;
  padding-top: 32px;
  align-items: flex-start;
}

.home .brand {
  max-width: 220px;
  font-family: "Arial Narrow", sans-serif;
  font-size: 32px;
  line-height: 1.1;
}

.home .header-actions {
  align-items: center;
  gap: 8px;
}

.home .btn {
  border: 1px solid #070707;
  min-height: 40px;
  padding: 8px 14px;
  font-family: "Arial Narrow", sans-serif;
  font-size: 14px;
}

.home .btn--primary {
  background: #070707;
}

.home .side-nav {
  left: max(20px, calc((100vw - var(--container)) / 2));
  top: 635px;
  gap: 8px;
}

.home .side-nav a {
  font-family: "Times New Roman", "Kommuna", serif;
  font-size: 53px;
  line-height: 0.74;
  letter-spacing: -0.02em;
  opacity: 1;
}

.home .hero {
  min-height: 736px;
  padding-top: 30px;
  place-items: center;
}

.home .hero__word-art {
  width: min(664px, 88vw);
  height: auto;
}

.home .hero__portrait {
  position: absolute;
  width: min(300px, 56vw);
  aspect-ratio: 1;
  object-fit: cover;
  border: 0;
  box-shadow: none;
}

.home .hero__scroll-hint {
  display: none;
}

.home .section {
  padding: 84px 0;
}

.home .about {
  padding: 0;
}

.home .about__accent {
  color: #1400ff;
}

.home .about__canvas {
  position: relative;
  width: min(1440px, 100%);
  height: 1120px;
  margin: 0 auto;
}

.home .about__lead,
.home .about__sublead {
  position: absolute;
  left: 50%;
  --reveal-base-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 540px;
  margin: 0;
  color: #070707;
  font-family: "Kommuna Narrow", "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
}

.home .about__lead {
  top: 168px;
}

.home .about__sublead {
  top: 927px;
}

.home .about__line {
  display: block;
  white-space: nowrap;
}

.home .about__line-chunk {
  display: inline-block;
}

.home .about__line--with-logo,
.home .about__line--with-pc {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.home .about__line--with-logo {
  gap: 0.14ch;
}

.home .about__line--with-pc {
  gap: 0.08ch;
}

.home .about__globe {
  position: absolute;
  top: 571px;
  left: 50%;
  --reveal-base-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 324px;
  height: 324px;
  object-fit: cover;
}

.home .about__pc-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin: 0 0.04ch;
  transform: translateY(-0.03em);
}

.home .about__pc-icon img {
  width: 36px;
  height: 36px;
}

.home .about__logo-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58.5px;
  height: 36px;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 3.12px;
  margin: 0 0.06ch;
  transform: translateY(-0.12em);
  background: #fff;
}

.home .about__logo-inline img {
  width: 42.048px;
  height: 22.905px;
}

.home .projects {
  padding-top: 60px;
}

.home .section-title {
  font-size: 0;
  line-height: 1;
}

.home .section-title img {
  display: block;
  width: min(664px, 100%);
  margin: 0 auto;
}

.home .projects-grid {
  margin-top: 44px;
  grid-template-columns: 1fr;
  gap: 44px;
  justify-items: center;
}

.home .project-card {
  width: min(540px, 100%);
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  grid-template-rows: auto auto;
}

.home .project-card:hover,
.home .project-card:focus-visible {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.home .project-card__media {
  height: 300px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(7, 7, 7, 0.08);
}

.home .project-card--marshall .project-card__media {
  background:
    linear-gradient(180deg, rgba(7, 15, 38, 0.06), rgba(7, 15, 38, 0.32)),
    linear-gradient(120deg, #a7c0d8 0%, #5577a9 54%, #18305f 100%);
}

.home .project-card--hios .project-card__media {
  position: relative;
  background: linear-gradient(130deg, #f4eee3 0%, #d8d0c3 100%);
}

.home .project-card--hios .project-card__media::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 146px;
  height: 122px;
  border-radius: 14px;
  background: linear-gradient(150deg, #f6f2e8 0%, #c9c0b2 100%);
}

.home .project-card--sladonezh .project-card__media {
  position: relative;
  background: linear-gradient(140deg, #ff9e2e 0%, #ff7f0e 60%, #ff6f00 100%);
}

.home .project-card--sladonezh .project-card__media::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd280, #f6a52b 62%, #d26b00 100%);
}

.home .project-card--lori .project-card__media {
  background-image: url("../assets/images/figma/cc41b954-3c62-45f6-951f-1e7c5f1511a8.png");
  background-size: cover;
  background-position: center;
}

.home .project-card__mock-time {
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: "Arial Narrow", sans-serif;
  font-size: 36px;
  line-height: 1;
  color: #111;
}

.home .project-card__mock-chip {
  position: absolute;
  left: 18px;
  top: 16px;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home .project-card__body {
  padding: 8px 0 0;
  display: block;
}

.home .project-card__title {
  margin: 0;
  width: 220px;
  font-family: "Arial Narrow", sans-serif;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 400;
  text-transform: none;
}

.home .project-card__desc,
.home .project-card__cta {
  display: none;
}

.home .contacts {
  padding-top: 70px;
}

.home .contacts-radio {
  width: 120px;
  margin: 0 auto 28px;
}

.home .contacts-row {
  border: 0;
  padding: 0;
  gap: 0;
}

.home .contacts-row a {
  font-family: "Times New Roman", "Kommuna", serif;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.home .outro-visual {
  margin-top: 8px;
  min-height: auto;
  border-radius: 0;
  background: transparent;
}

.home .outro-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.home .site-footer {
  display: none;
}

@media (max-width: 1199px) {
  .home .site-header__inner {
    padding-top: 24px;
  }

  .home .brand {
    font-size: 28px;
  }

  .home .side-nav {
    position: static;
    padding: 10px 0 24px;
    justify-content: flex-start;
  }

  .home .side-nav a {
    font-size: 42px;
  }

  .home .hero {
    min-height: 580px;
    margin-top: 0;
  }

  .home .project-card {
    width: min(640px, 100%);
  }
}

@media (max-width: 767px) {
  .home .site-header__inner {
    padding-top: 12px;
    gap: 10px;
  }

  .home .brand {
    font-size: 24px;
    max-width: 100%;
  }

  .home .side-nav a {
    font-size: 34px;
  }

  .home .hero {
    min-height: 360px;
  }

  .home .hero__word-art {
    width: min(420px, 96vw);
  }

  .home .hero__portrait {
    width: min(205px, 64vw);
  }

  .home .about {
    padding: 56px 0 64px;
  }

  .home .about__canvas {
    height: auto;
    width: min(540px, calc(100% - 56px));
    display: grid;
    justify-items: center;
    gap: 22px;
  }

  .home .about__lead,
  .home .about__sublead,
  .home .about__globe {
    position: static;
    left: auto;
    top: auto;
    --reveal-base-transform: none;
    transform: none;
  }

  .home .about__lead,
  .home .about__sublead {
    width: 100%;
    font-size: clamp(28px, 9.5vw, 40px);
  }

  .home .about__line {
    white-space: normal;
  }

  .home .about__line--with-logo,
  .home .about__line--with-pc {
    gap: 0.08ch;
  }

  .home .about__logo-inline {
    width: 56px;
    height: 34px;
    padding: 3px;
    margin: 0 0.04ch;
    transform: translateY(-0.1em);
  }

  .home .about__logo-inline img {
    width: 40px;
    height: auto;
  }

  .home .about__globe {
    width: min(324px, 78vw);
    height: min(324px, 78vw);
    margin: 6px 0 0;
  }

  .home .about__pc-icon {
    width: 28px;
    height: 28px;
    margin: 0 0.04ch;
    transform: translateY(-0.03em);
  }

  .home .about__pc-icon img {
    width: 28px;
    height: 28px;
  }

  .home .projects {
    padding-top: 34px;
  }

  .home .project-card {
    width: 100%;
  }

  .home .project-card__media {
    height: 220px;
  }

  .home .contacts-radio {
    width: 92px;
    margin-bottom: 18px;
  }

  .home .contacts-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .home .contacts-row a {
    text-align: left;
    font-size: clamp(38px, 13vw, 52px);
  }
}

/* HOME HERO (FIGMA NODE 4:7892) */
.home {
  background: #ffffff;
}

.home .hero--figma {
  min-height: 800px;
  padding: 0;
}

.home .hero--figma .hero__canvas {
  position: relative;
  height: 800px;
}

.home .hero--figma .hero__brand {
  position: fixed;
  top: 32px;
  left: 32px;
  right: auto;
  width: 204px;
  margin: 0;
  color: #070707;
  font-family: "Arial Narrow", "Arial", sans-serif;
  font-size: 32px;
  line-height: 1.1;
  z-index: 70;
}

.home .hero--figma .hero__actions {
  position: fixed;
  top: 32px;
  right: 32px;
  left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 70;
}

.home .hero--figma .btn {
  min-height: 48px;
  border: 1px solid #070707;
  padding: 8px 24px;
  font-family: "Arial Narrow", "Arial", sans-serif;
  font-size: 16px;
  line-height: 1;
  transform: none;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.home .hero--figma .btn:hover,
.home .hero--figma .btn:focus-visible {
  transform: none;
}

.home .hero--figma .btn--ghost {
  background: transparent;
  color: #070707;
}

.home .hero--figma .btn--primary {
  background: #070707;
  color: #ffffff;
}

.home .hero--figma .btn--ghost:hover,
.home .hero--figma .btn--ghost:focus-visible {
  background: transparent;
  opacity: 0.6;
}

.home .hero--figma .btn--primary:hover,
.home .hero--figma .btn--primary:focus-visible {
  background: transparent;
  color: #070707;
  border-color: #070707;
}

.home .hero--figma .btn__icon-cv {
  width: 9px;
  height: 12.764px;
  flex: 0 0 auto;
}

.home .hero--figma .hero__word-art {
  position: absolute;
  top: 31px;
  left: 340px;
  width: 664px;
  height: 736px;
  z-index: 1;
}

.home .hero--figma .hero__portrait {
  position: absolute;
  top: 249px;
  left: 522px;
  width: 300px;
  height: 300px;
  z-index: 2;
  border: 0;
  box-shadow: none;
  object-fit: cover;
}

.home .hero--figma .hero__side-nav {
  position: fixed;
  bottom: 32px;
  left: 32px;
  top: auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 70;
}

.home .hero--figma .hero__side-nav a {
  position: relative;
  display: inline-flex;
  width: max-content;
  color: #070707;
  font-family: "Kommuna Narrow", "Times New Roman", serif;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  opacity: 1;
  text-decoration: none;
}

.home .hero--figma .hero__side-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.home .hero--figma .hero__side-nav a:hover::after,
.home .hero--figma .hero__side-nav a:focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 1199px) {
  .home .hero--figma {
    min-height: 0;
    padding-top: 24px;
  }

  .home .hero--figma .hero__canvas {
    height: auto;
    min-height: 640px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: 12px;
    row-gap: 18px;
  }

  .home .hero--figma .hero__brand {
    position: fixed;
    top: 24px;
    left: 24px;
    right: auto;
    width: 204px;
    font-size: 28px;
  }

  .home .hero--figma .hero__actions {
    position: fixed;
    top: 24px;
    right: 24px;
    left: auto;
    justify-self: auto;
  }

  .home .hero--figma .hero__word-art {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1 / -1;
    width: min(664px, 100%);
    height: auto;
    margin: 0 auto;
  }

  .home .hero--figma .hero__portrait {
    top: 52%;
    left: 50%;
    --reveal-base-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: min(300px, 40vw);
    height: auto;
  }

  .home .hero--figma .hero__side-nav {
    position: fixed;
    left: 24px;
    bottom: 24px;
    top: auto;
    grid-column: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    width: max-content;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  .home .hero--figma {
    padding-top: 12px;
  }

  .home .hero--figma .hero__canvas {
    min-height: 0;
    display: block;
    padding-bottom: 8px;
  }

  .home .hero--figma .hero__brand {
    position: static;
    width: min(204px, 100%);
    font-size: 24px;
    line-height: 1.1;
    z-index: auto;
  }

  .home .hero--figma .hero__actions {
    position: static;
    margin-top: 12px;
    width: 100%;
    z-index: auto;
  }

  .home .hero--figma .hero__actions .btn {
    flex: 1;
    min-height: 44px;
  }

  .home .hero--figma .hero__word-art {
    position: relative;
    width: min(420px, 95vw);
    margin: 22px auto 0;
  }

  .home .hero--figma .hero__portrait {
    top: 58%;
    width: min(205px, 58vw);
  }

  .home .hero--figma .hero__side-nav {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 22px;
    gap: 12px;
    z-index: auto;
  }

  .home .hero--figma .hero__side-nav a {
    font-size: 24px;
  }
}

/* HOME PROJECTS (FIGMA NODE 22:11727) */
.home .projects--figma.section {
  padding-top: 32px;
  padding-bottom: 120px;
}

.home .projects--figma .projects__canvas {
  width: min(664px, calc(100% - 56px));
  margin: 0 auto;
}

.home .projects--figma .projects__head {
  position: relative;
  width: 664px;
  max-width: 100%;
  height: 400px;
  margin: 0 auto 80px;
}

.home .projects--figma .projects__word {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home .projects--figma .projects__sticker {
  position: absolute;
  left: 165px;
  top: 28px;
  width: 333px;
  height: 333px;
  object-fit: cover;
}

.home .projects--figma .project-item {
  display: block;
  width: 664px;
  max-width: 100%;
  color: #070707;
  text-decoration: none;
}

.home .projects--figma .project-item + .project-item {
  margin-top: 120px;
}

.home .projects--figma .project-item__cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.home .projects--figma .project-item__title {
  margin: 16px 0 0;
  width: 220px;
  font-family: "Arial Narrow", "Arial", sans-serif;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 400;
}

.home .block-spacer {
  width: 100%;
  height: 120px;
  background: #ffffff;
}

@media (max-width: 1199px) {
  .home .projects--figma.section {
    padding-top: 24px;
    padding-bottom: 92px;
  }

  .home .projects--figma .projects__head {
    margin-bottom: 56px;
  }

  .home .projects--figma .projects__sticker {
    left: 24.85%;
    top: 7%;
    width: 50.15%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .home .projects--figma .project-item + .project-item {
    margin-top: 82px;
  }
}

@media (max-width: 767px) {
  .home .projects--figma.section {
    padding-top: 16px;
    padding-bottom: 72px;
  }

  .home .projects--figma .projects__canvas {
    width: min(664px, calc(100% - 30px));
  }

  .home .projects--figma .projects__head {
    height: auto;
    aspect-ratio: 664 / 400;
    margin-bottom: 34px;
  }

  .home .projects--figma .projects__sticker {
    left: 24.85%;
    top: 7%;
    width: 50.15%;
    height: auto;
  }

  .home .projects--figma .project-item + .project-item {
    margin-top: 54px;
  }

  .home .projects--figma .project-item__cover {
    height: auto;
  }

  .home .projects--figma .project-item__title {
    margin-top: 12px;
    width: min(220px, 78%);
    font-size: 18px;
  }
}

/* HOME CONTACTS (FIGMA NODE 23:15985) */
.home .contacts--figma.section {
  padding: 0 0 32px;
}

.home .contacts--figma .contacts__canvas {
  position: relative;
  width: min(1440px, 100%);
  height: 1130px;
  margin: 0 auto;
}

.home .contacts--figma .contacts__phone {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  object-fit: cover;
}

.home .contacts--figma .contacts__link {
  position: absolute;
  display: inline-flex;
  width: max-content;
  top: 664px;
  transform: translateX(-50%);
  color: #070707;
  font-family: "Kommuna Narrow", "Times New Roman", serif;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 1;
}

.home .contacts--figma .contacts__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.home .contacts--figma .contacts__link:hover::after,
.home .contacts--figma .contacts__link:focus-visible::after {
  transform: scaleX(1);
}

.home .contacts--figma .contacts__link--telegram {
  left: calc(50% - 282.5px);
}

.home .contacts--figma .contacts__link--linkedin {
  left: calc(50% + 18.5px);
}

.home .contacts--figma .contacts__link--email {
  left: calc(50% + 301px);
}

.home .contacts--figma .contacts__banner {
  position: absolute;
  top: 715px;
  left: calc(50% - 332px);
  width: 664px;
  height: 415px;
  overflow: hidden;
}

.home .contacts--figma .contacts__banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home .contacts--figma .contacts__banner-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 328.048px;
  height: 363.619px;
  object-fit: contain;
}

.home .contacts--figma .contacts__link:hover,
.home .contacts--figma .contacts__link:focus-visible {
  opacity: 0.72;
}

.js .home .contacts--figma .contacts__phone.reveal {
  --reveal-base-transform: translateX(-50%);
}

.js .home .contacts--figma .contacts__link.reveal {
  --reveal-base-transform: translateX(-50%);
}

@media (max-width: 1199px) {
  .home .contacts--figma.section {
    padding-bottom: 32px;
  }

  .home .contacts--figma .contacts__canvas {
    width: min(664px, calc(100% - 56px));
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 24px;
    align-items: center;
  }

  .home .contacts--figma .contacts__phone,
  .home .contacts--figma .contacts__link,
  .home .contacts--figma .contacts__banner {
    position: static;
    left: auto;
    top: auto;
    transform: none;
  }

  .home .contacts--figma .contacts__phone {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(480px, 72vw);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .home .contacts--figma .contacts__link {
    font-size: 30px;
    justify-self: center;
    --reveal-base-transform: none;
    transform: none;
  }

  .home .contacts--figma .contacts__link--telegram {
    grid-column: 1;
  }

  .home .contacts--figma .contacts__link--linkedin {
    grid-column: 2;
  }

  .home .contacts--figma .contacts__link--email {
    grid-column: 3;
  }

  .home .contacts--figma .contacts__banner {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    aspect-ratio: 664 / 415;
  }

  .home .contacts--figma .contacts__banner-word {
    width: 49.41%;
    height: 87.62%;
  }

  .js .home .contacts--figma .contacts__phone.reveal {
    --reveal-base-transform: none;
  }
}

@media (max-width: 767px) {
  .home .contacts--figma.section {
    padding-bottom: 32px;
  }

  .home .contacts--figma .contacts__canvas {
    width: min(664px, calc(100% - 30px));
    column-gap: 10px;
    row-gap: 14px;
  }

  .home .contacts--figma .contacts__phone {
    width: min(420px, 84vw);
  }

  .home .contacts--figma .contacts__link {
    font-size: 22px;
  }
}
