@media (min-width: 1181px) {
  body.home .page { grid-template-columns: 292px minmax(0, 1fr); }
}

body.home .side-foot { gap: 14px; }
body.home .hm-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 6px 0 20px;
  border-radius: 30px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(31,91,255,.45);
}
body.home .hm-go i {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
body.home .hm-go svg { width: 16px; height: 16px; }
body.home .hm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}
body.home .hm-row a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.5); }
body.home .hm-row a:hover { color: #fff; }

.hm-hero {
  position: relative;
  height: 820px;
  background: #000;
  color: #fff;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
}
.hm-hero .bg {
  position: absolute;
  right: -60px;
  top: 0;
  height: 100%;
  width: auto;
  min-width: 115%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
}
.hm-hero .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.92) 30%, rgba(0,0,0,.35) 58%, transparent 75%);
}
.hm-hero .veil-b {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 320px;
  background: linear-gradient(0deg, #000 10%, transparent);
}
.hm-hero-in { position: absolute; inset: 0; }
.hm-pills { position: absolute; left: 56px; top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.hm-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}
.hm-pill.on { background: #fff; color: #0b0c0c; border-color: #fff; }
.hm-copy { position: absolute; left: 56px; bottom: 48px; width: min(660px, calc(100% - 112px)); }
.hm-copy h1 {
  font-size: 76px;
  font-weight: 700;
  line-height: .88;
  letter-spacing: -0.055em;
}
.hm-copy h1 span { color: #5b8cff; }
.hm-copy .lead {
  margin: 28px 0 0;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.38;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}
.hm-copy .sub {
  margin: 12px 0 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.38;
  color: rgba(255,255,255,.55);
}
.hm-actions { display: flex; align-items: center; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.hm-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
  padding: 0 12px 0 34px;
  background: var(--blue);
  color: #fff;
  border-radius: 36px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 14px 50px rgba(31,91,255,.55);
}
.hm-btn .orb {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.hm-btn .orb svg { width: 18px; height: 18px; }
.hm-btn.lite {
  padding: 0 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: none;
}
.hm-btn.lite:hover { background: rgba(255,255,255,.08); }
.hm-btn.light {
  height: 76px;
  padding: 0 12px 0 36px;
  border-radius: 38px;
  background: #fff;
  color: #0b0c0c;
  font-size: 18px;
  box-shadow: none;
}
.hm-btn.light .orb { width: 54px; height: 54px; background: var(--blue); color: #fff; }

.hm-cases {
  margin-top: -4px;
  background: #000;
  color: #fff;
  border-radius: 0 0 32px 32px;
  padding: 8px 40px 48px;
}
.hm-cases .hm-case-copy p { color: rgba(255,255,255,.62); }
.hm-head {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin: 0 16px 48px;
}
.hm-cases h2 { font-size: 108px; font-weight: 700; line-height: .84; letter-spacing: -0.045em; }
.hm-kicker { justify-self: end; margin: 0; font-size: 22px; font-weight: 600; line-height: 1.3; color: #66696c; }
.hm-case-list { display: grid; gap: 72px; }
.hm-case { display: flex; flex-direction: column; }
.hm-cover {
  position: relative;
  height: 640px;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.hm-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hm-badges { position: absolute; left: 24px; top: 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.hm-badge, .hm-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.hm-badge { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.18); backdrop-filter: blur(12px); }
.hm-tag { background: #fff; color: #0b0c0c; font-weight: 650; }
.hm-go-round {
  position: absolute;
  right: 16px; bottom: 16px;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--paper);
  color: #0b0c0c;
  display: grid;
  place-items: center;
}
.hm-go-round svg { width: 26px; height: 26px; }
.hm-case-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 28px;
  padding: 0 8px;
}
.hm-case-copy h3 { font-size: 40px; font-weight: 600; line-height: 1.02; letter-spacing: -0.05em; }
.hm-case-copy p { margin: 6px 0 0; font-size: 18px; line-height: 1.4; font-weight: 500; color: #66696c; }

.hm-services { background: #05060a; color: #fff; border-radius: 32px; padding: 96px 56px 56px; }
.hm-label { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #6d98ff; }
.hm-services h2, .hm-approach h2, .hm-clients h2 {
  margin-top: 20px;
  max-width: 900px;
  font-size: 72px;
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.05em;
}
.hm-services .intro, .hm-approach .intro {
  margin: 28px 0 0;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(255,255,255,.62);
}
.hm-svc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}
.hm-card {
  position: relative;
  min-height: 620px;
  padding: 32px;
  box-sizing: border-box;
  border-radius: 28px;
  background: #14161c;
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hm-card.blue { background: var(--blue); border-color: transparent; }
.hm-card .shot {
  position: relative;
  height: 260px;
  margin: -20px -20px 0;
  border-radius: 20px;
  overflow: hidden;
  background: #1c1e25;
}
.hm-card.blue .shot { background: rgba(255,255,255,.14); }
.hm-card .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hm-card .glow {
  position: absolute;
  right: -180px; top: -160px;
  width: 520px;
  max-width: none;
  mix-blend-mode: screen;
  opacity: .45;
  pointer-events: none;
}
.hm-card .n { margin-top: 32px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.4); }
.hm-card.blue .n { color: rgba(255,255,255,.7); }
.hm-card h3 { margin-top: 10px; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.hm-card .a { margin: 18px 0 0; font-size: 17px; line-height: 1.4; font-weight: 500; color: rgba(255,255,255,.85); }
.hm-card .b { margin: 10px 0 28px; font-size: 17px; line-height: 1.4; color: rgba(255,255,255,.55); }
.hm-card.blue .a { color: #fff; }
.hm-card.blue .b { color: rgba(255,255,255,.8); }
.hm-more {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.hm-card.blue .hm-more { background: #fff; color: #0b0c0c; }

.hm-projects { background: var(--paper); color: var(--ink); border-radius: 32px; padding: 96px 40px 40px; }
.hm-projects h2 { font-size: 84px; font-weight: 700; line-height: .88; letter-spacing: -0.045em; }
.hm-projects .aside { display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 1.4; font-weight: 500; color: #66696c; }
.hm-projects .aside p { margin: 0; }
.hm-projects .aside .ink { color: #0b0c0c; }
.hm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 16px 24px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #fff;
}
.hm-tab {
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #66696c;
}
.hm-tab span { opacity: .5; }
.hm-tab.on { background: #0b0c0c; color: #fff; }
.hm-proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-proj-grid.is-off { display: none; }
.hm-pin { display: none; columns: 3; column-gap: 12px; }
.hm-pin.on { display: block; }
.hm-pin img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 12px;
  border-radius: 22px;
  break-inside: avoid;
  background: #05060a;
}
.hm-proj {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 28px;
  padding: 10px;
  transition: transform .35s var(--ease);
}
.hm-proj:hover { transform: translateY(-6px); }
.hm-proj[hidden] { display: none; }
.hm-proj .pic { position: relative; height: auto; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; background: #05060a; }
.hm-proj .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hm-proj .pic .hm-tag { position: absolute; left: 14px; top: 14px; min-height: 34px; font-size: 13px; pointer-events: none; }
.hm-proj .cap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 8px 12px 12px;
}
.hm-proj h3 { font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.hm-proj .mini {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.hm-proj .mini svg { width: 16px; height: 16px; }
.hm-all { margin-top: 12px; display: flex; justify-content: center; }
.hm-all button {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 68px;
  padding: 0 10px 0 32px;
  border-radius: 34px;
  background: #0b0c0c;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.hm-all button i {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
}
.hm-all svg { width: 16px; height: 16px; }

.hm-approach {
  position: relative;
  overflow: hidden;
  background: #05060a;
  color: #fff;
  border-radius: 32px;
  padding: 96px 56px 56px;
}
.hm-approach .glow {
  position: absolute;
  left: -10%; right: -10%; bottom: -300px;
  height: 560px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(31,91,255,.45), transparent 70%);
  pointer-events: none;
}
.hm-approach h2 .dim { color: rgba(255,255,255,.42); }
.hm-principles {
  position: relative;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hm-principle {
  min-height: 420px;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 60%, rgba(31,91,255,.22) 100%);
  border: 1px solid rgba(255,255,255,.09);
  display: flex;
  flex-direction: column;
}
.hm-principle .row { display: flex; align-items: flex-start; justify-content: space-between; }
.hm-principle .ico {
  flex: none;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 50px rgba(31,91,255,.45);
}
.hm-principle .ico svg { width: 54px; height: 54px; }
.hm-principle .num { font-size: 15px; font-weight: 700; color: #8fb0ff; }
.hm-principle h3 { margin-top: 40px; font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.hm-principle p { margin: 16px 0 0; max-width: 460px; font-size: 17px; line-height: 1.4; color: rgba(255,255,255,.62); }

.hm-about { background: var(--paper); color: var(--ink); border-radius: 32px; padding: 56px; }
.hm-about-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 48px; align-items: stretch; }
.hm-portrait { position: relative; min-height: 560px; border-radius: 28px; overflow: hidden; background: #0b0c0c; }
.hm-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 32%; }
.hm-about h2 { font-size: 60px; font-weight: 700; line-height: .92; letter-spacing: -0.05em; }
.hm-about h2 span { color: var(--blue); }
.hm-about-copy {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  color: #3b3e41;
}
.hm-about-copy p { margin: 0; }
.hm-about-copy .wide { grid-column: 1 / -1; }
.hm-about-copy .lead { font-size: 22px; line-height: 1.3; font-weight: 600; color: #0b0c0c; }
.hm-about-copy .ink { color: #0b0c0c; }
.hm-stats { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hm-stat { padding: 26px; border-radius: 22px; background: #fff; }
.hm-stat b { display: block; font-size: 64px; font-weight: 300; line-height: .9; letter-spacing: -0.06em; }
.hm-stat span { display: block; margin-top: 14px; font-size: 16px; font-weight: 600; color: #66696c; }
.hm-stat.blue { background: var(--blue); color: #fff; }
.hm-stat.blue span { color: rgba(255,255,255,.8); }

.hm-clients { background: #05060a; color: #fff; border-radius: 32px; padding: 96px 56px 56px; }
.hm-logos { margin-top: 48px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.hm-logo { height: 110px; background: #14161c; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; }
.hm-reviews { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-review { display: flex; flex-direction: column; border-radius: 24px; background: #14161c; border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.hm-review .shot { position: relative; height: 240px; background: #1c1e25; }
.hm-review .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hm-review .body { padding: 28px; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.hm-review p { margin: 0; font-size: 18px; line-height: 1.4; color: rgba(255,255,255,.85); }
.hm-person { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.hm-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.hm-person b { display: block; font-size: 15px; }
.hm-person span { display: block; font-size: 13px; color: rgba(255,255,255,.5); }

.hm-final { background: var(--paper); border-radius: 32px; padding: 12px; }
.hm-final-in {
  position: relative;
  min-height: 620px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 40px;
}
.hm-final h2 { max-width: 900px; font-size: 72px; font-weight: 700; line-height: .92; letter-spacing: -0.05em; }
.hm-final .q { margin: 26px 0 0; max-width: 640px; font-size: 21px; line-height: 1.35; font-weight: 600; }
.hm-final .a { margin: 12px 0 0; max-width: 620px; font-size: 18px; line-height: 1.4; font-weight: 500; color: rgba(255,255,255,.85); }
.hm-final-actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.hm-textlink { font-size: 17px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 3px; }

body.home .foot-col { gap: 6px; }
body.home .foot-col a { font-size: 20px; line-height: 1.2; letter-spacing: -0.04em; white-space: nowrap; }
body.home .foot-col a.foot-mail { font-size: 16px; letter-spacing: -0.03em; white-space: normal; }
body.home .foot-bottom button { font: inherit; color: inherit; }

@media (max-width: 1180px) {
  .hm-hero { height: auto; min-height: 100svh; border-radius: 24px 24px 0 0; }
  .hm-cases { margin-top: -8px; border-radius: 0 0 24px 24px; padding: 8px 16px 32px; }
  .hm-hero .bg {
    left: 0;
    right: 0;
    top: 150px;
    width: 100%;
    min-width: 0;
    height: 440px;
    object-fit: cover;
    object-position: 80% 0%;
  }
  .hm-hero .veil {
    top: 150px;
    height: 440px;
    bottom: auto;
    background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 46%, rgba(0,0,0,.7) 72%, #000 100%);
  }
  .hm-hero .veil-b { display: none; }
  /* Лицо между пилюлями и заголовком: текст не опускается выше этой отметки */
  .hm-copy { margin-top: 180px; }
  .hm-copy h1 .br-pc { display: none; }
  .hm-pills { gap: 6px; }
  .hm-pill { padding: 8px 12px; font-size: 12px; letter-spacing: .01em; }
  .hm-hero-in {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 88px 20px 28px;
  }
  .hm-pills, .hm-copy { position: relative; left: auto; top: auto; bottom: auto; width: auto; }
  .hm-copy h1 { font-size: 40px; }
  .hm-copy .lead { font-size: 16px; }
  .hm-btn, .hm-btn.light { height: 60px; padding-left: 22px; font-size: 16px; }
  .hm-actions { gap: 20px; }
  .hm-actions .hm-btn { height: 66px; }
  .hm-projects { padding: 64px 16px 24px; }
  .hm-services, .hm-approach, .hm-clients { padding: 64px 16px 24px; }
  .hm-about { padding: 24px 16px; }
  .hm-head, .hm-case-copy, .hm-about-grid, .hm-about-copy, .hm-svc, .hm-principles, .hm-reviews { grid-template-columns: 1fr; }
  .hm-cases h2 { font-size: 48px; }
  .hm-kicker { justify-self: start; }
  .hm-cover { height: auto; aspect-ratio: 1056 / 640; }
  .hm-go-round { width: 38px; height: 38px; right: 10px; bottom: 10px; }
  .hm-go-round svg { width: 13px; height: 13px; }
  .hm-case-list { gap: 36px; }
  .hm-case-copy { gap: 10px; margin-top: 16px; }
  .hm-case-copy h3 { font-size: 28px; line-height: 1.02; letter-spacing: -0.05em; }
  .hm-case-copy p { font-size: 15px; }
  .hm-services h2, .hm-approach h2, .hm-clients h2, .hm-projects h2, .hm-final h2, .hm-about h2 { font-size: 40px; }
  .hm-card { min-height: 0; }
  .hm-card .shot { height: 200px; }
  .hm-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin: 0 0 20px;
    border-radius: 18px;
  }
  .hm-tab {
    padding: 12px 10px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
  }
  .hm-proj-grid { grid-template-columns: 1fr; }
  .hm-pin { columns: 2; }
  .hm-stats { grid-template-columns: 1fr 1fr; }
  .hm-logos { grid-template-columns: repeat(3, 1fr); }
  .hm-proj, .hm-card, .hm-stat { min-width: 0; }
  .hm-tag { white-space: normal; }
  .hm-proj .pic { height: auto; aspect-ratio: 3 / 2; }
  .hm-card .glow { width: 240px; right: -70px; }
  .hm-principle { min-height: 0; }
  .hm-portrait { min-height: 420px; }
  .hm-stat b { font-size: 48px; }
  .hm-final { padding: 8px; }
  .hm-final-in { min-height: 0; padding: 48px 20px; }
  body.home .foot-col a { font-size: 14px; }
}
