:root {
  --page-bg: #d6d6d6;
  --card-bg: #ffffff;
  --ink: #050505;
  --muted: #252525;
  --line: #dedede;
  --soft-line: #c7cbd0;
  --pattern: #9aa0a6;
  --accent-red: #e30613;
  --accent-green: #159447;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.45), transparent 34rem),
    var(--page-bg);
}

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

button {
  font: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 24px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 1680px);
  min-height: min(calc(100vh - 48px), 1120px);
  margin: 0 auto;
  padding: 54px 60px 50px;
  border-radius: 42px;
  background: var(--card-bg);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.site-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 28px;
}

.brand-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 218px;
  max-width: 100%;
  line-height: 0;
}

.brand-logo-main {
  display: block;
  width: 100%;
  height: auto;
}

.brand-descriptor {
  margin: 0;
  color: #111;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.18;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 66px;
  color: #080808;
  font-size: 19px;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a,
.header-button,
.header-messenger,
.primary-action,
.secondary-action,
.brand-card,
.carousel-arrow {
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.main-nav a:hover {
  opacity: 0.62;
}

.header-button {
  display: inline-flex;
  min-width: 178px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-red);
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  box-shadow:
    0 10px 24px rgba(227, 6, 19, 0.22),
    inset 0 -2px 0 rgba(255, 255, 255, 0.18);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-messenger {
  display: inline-flex;
  min-width: 118px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fff;
  color: #070707;
  font-size: 15px;
  font-weight: 760;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.header-messenger img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.header-messenger--max img {
  width: 34px;
  height: 24px;
}

.header-messenger:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.header-button:hover,
.primary-action:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(227, 6, 19, 0.28),
    inset 0 -2px 0 rgba(255, 255, 255, 0.16);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(430px, 0.77fr) minmax(620px, 1.23fr);
  min-width: 0;
  min-height: 690px;
  align-items: center;
  gap: 10px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  min-width: 0;
  padding-top: 28px;
}

.hero-copy h1 {
  max-width: 690px;
  margin: 0;
  font-size: 78px;
  font-weight: 850;
  line-height: 1.12;
}

.text-red {
  color: var(--accent-red);
}

.hero-copy p {
  max-width: 500px;
  margin: 34px 0 0;
  color: #202020;
  font-size: 24px;
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 28px;
  margin-top: 36px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-width: 220px;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 9px;
  font-size: 19px;
  font-weight: 650;
  white-space: nowrap;
}

.primary-action {
  background: var(--accent-red);
  color: #fff;
  box-shadow:
    0 12px 26px rgba(227, 6, 19, 0.22),
    inset 0 -2px 0 rgba(255, 255, 255, 0.14);
}

.secondary-action {
  border: 1px solid rgba(21, 148, 71, 0.72);
  color: var(--accent-green);
  background: rgba(255, 255, 255, 0.75);
}

.secondary-action:hover {
  border-color: var(--accent-green);
  color: #0f7438;
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  align-self: stretch;
  isolation: isolate;
  min-width: 0;
  min-height: 650px;
}

.tech-pattern {
  position: absolute;
  user-select: none;
  pointer-events: none;
}

.tech-pattern {
  top: 12px;
  right: 28px;
  z-index: 0;
  width: 760px;
  height: 760px;
  opacity: 0.62;
}

.tech-pattern .ring,
.tech-pattern .arc,
.tech-pattern .pattern-lines path {
  fill: none;
  stroke: var(--pattern);
  stroke-width: 1.2;
}

.tech-pattern .ring.solid {
  stroke-width: 1.4;
}

.tech-pattern .dashed {
  stroke-dasharray: 8 8;
}

.tech-pattern .dotted {
  stroke-dasharray: 1 9;
  stroke-linecap: round;
}

.tech-pattern .soft {
  opacity: 0.5;
}

.tech-pattern .pattern-lines {
  opacity: 0.58;
}

.tech-pattern .pattern-lines circle,
.orbit-node.filled {
  fill: #777c81;
  stroke: none;
}

.orbit-node.hollow {
  fill: #fff;
  stroke: #5f6469;
  stroke-width: 2;
}

.orbit-square {
  fill: #9fa3a8;
}

.spin {
  transform-box: view-box;
  transform-origin: 380px 380px;
}

.spin-one {
  animation: orbit-clockwise 18s linear infinite;
}

.spin-two {
  animation: orbit-counter 24s linear infinite;
}

.spin-three {
  animation: orbit-clockwise 31s linear infinite;
}

.generator-reveal {
  position: absolute;
  right: -104px;
  bottom: -46px;
  z-index: 2;
  width: 740px;
  max-width: none;
  cursor: pointer;
  outline: none;
  filter: contrast(1.03) saturate(1.02) drop-shadow(0 30px 24px rgba(17, 20, 24, 0.18));
}

.generator-reveal:focus-visible {
  border-radius: 32px;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.alternator-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

.alternator-image--cutaway {
  position: relative;
  z-index: 1;
}

.alternator-image--cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 1;
  transition: opacity 620ms cubic-bezier(0.2, 0.7, 0.18, 1);
}

.generator-reveal:hover .alternator-image--cover,
.generator-reveal:focus-visible .alternator-image--cover,
.generator-reveal.is-revealed .alternator-image--cover {
  opacity: 0;
}

.reveal-hint {
  position: absolute;
  right: 35%;
  top: 28%;
  z-index: 4;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
  animation: hint-float 2.2s ease-in-out infinite;
}

.reveal-hint svg {
  position: relative;
  z-index: 2;
  width: 27px;
  height: 27px;
  animation: hint-spark 1.8s ease-in-out infinite;
}

.reveal-hint path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.reveal-hint .cursor-icon {
  fill: currentColor;
  stroke: none;
}

.reveal-hint .cursor-click-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.reveal-hint-pulse,
.reveal-hint::before {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: inherit;
  content: "";
  animation: hint-pulse 1.9s ease-out infinite;
}

.reveal-hint-pulse {
  inset: -18px;
  animation-delay: 0.45s;
}

.generator-reveal:hover .reveal-hint,
.generator-reveal:focus-visible .reveal-hint,
.generator-reveal.is-revealed .reveal-hint {
  opacity: 0;
  transform: translateY(-8px) scale(0.9);
  pointer-events: none;
}

.brand-carousel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  min-width: 0;
  gap: 16px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.brand-track {
  display: grid;
  grid-template-columns: repeat(12, minmax(76px, 1fr));
  align-items: end;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 10px;
  scrollbar-width: none;
}

.brand-track::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  display: grid;
  width: 38px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #111;
  background: transparent;
  cursor: pointer;
}

.carousel-arrow:hover {
  background: #f2f2f2;
}

.carousel-arrow svg {
  width: 26px;
  height: 26px;
}

.carousel-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand-card {
  display: grid;
  min-width: 74px;
  min-height: 116px;
  grid-template-rows: 72px auto;
  place-items: center;
  gap: 9px;
  border: 0;
  color: #0e0e0e;
  background: transparent;
  cursor: pointer;
}

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

.brand-card.is-active {
  transform: translateY(-5px) scale(1.1);
}

.brand-mark {
  position: relative;
  display: block;
  width: 72px;
  height: 62px;
}

.brand-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
}

.brand-name {
  display: block;
  min-height: 24px;
  max-width: 116px;
  color: #111;
  font-size: 16px;
  line-height: 1.15;
  text-align: center;
}

.brand-card.is-active .brand-name {
  font-size: 17px;
  font-weight: 650;
}

.brand-logo-color {
  opacity: 0;
}

.brand-card.is-active .brand-logo-bw {
  opacity: 0;
}

.brand-card.is-active .brand-logo-color {
  opacity: 1;
}

.brand-card:not(.is-active) .brand-logo-bw {
  filter: contrast(1.05);
}

.work-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(620px, 1.22fr);
  width: min(100%, 1680px);
  min-height: 880px;
  margin: 28px auto 0;
  gap: 70px;
  overflow: hidden;
  padding: 78px 72px 58px;
  border-radius: 42px;
  background: var(--card-bg);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.work-circuit {
  position: absolute;
  top: 34px;
  left: 64px;
  width: 580px;
  height: 156px;
  color: var(--pattern);
  opacity: 0.32;
  pointer-events: none;
}

.work-circuit path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.work-circuit circle {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 2;
}

.work-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 590px;
  padding-top: 60px;
}

.section-kicker {
  margin: 0 0 24px;
  color: #858585;
  font-size: 17px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-copy h2 {
  max-width: 610px;
  margin: 0;
  font-size: 62px;
  font-weight: 850;
  line-height: 1.08;
}

.work-lead {
  max-width: 560px;
  margin: 32px 0 0;
  color: #222;
  font-size: 21px;
  line-height: 1.55;
}

.service-benefits {
  display: grid;
  gap: 0;
  margin-top: 48px;
}

.service-benefit {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  padding: 24px 0;
  border-top: 1px dashed #d7d7d7;
}

.service-benefit:first-child {
  border-top: 0;
  padding-top: 0;
}

.benefit-icon {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  color: #050505;
  background: rgba(255, 255, 255, 0.68);
}

.benefit-icon img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.service-benefit h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 780;
}

.service-benefit p {
  margin: 10px 0 0;
  color: #464646;
  font-size: 17px;
  line-height: 1.42;
}

.works-carousel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: 26px;
  min-width: 0;
  padding-top: 34px;
}

.case-list {
  display: grid;
  max-height: 660px;
  gap: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 2px 2px;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.case-list::-webkit-scrollbar {
  display: none;
}

.case-card {
  min-height: 218px;
  padding: 28px 32px 24px;
  border: 1px solid #dedede;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.055);
  scroll-snap-align: start;
}

.case-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
}

.case-card h3 {
  max-width: 520px;
  margin: 0;
  font-size: 25px;
  font-weight: 780;
  line-height: 1.18;
}

.case-open {
  display: inline-flex;
  min-width: 168px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #000;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.case-open:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.14),
    inset 0 -2px 0 rgba(255, 255, 255, 0.18);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  color: #383838;
  font-size: 18px;
}

.case-meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.case-meta svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.case-meta path,
.case-meta circle,
.case-meta rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.case-gallery .case-photo:nth-child(3):last-child {
  grid-column: span 2;
}

.case-photo {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #eeeeee;
  cursor: zoom-in;
}

.case-photo img {
  display: block;
  width: 100%;
  height: 126px;
  object-fit: cover;
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

.case-photo.is-hidden {
  display: none;
}

.case-photo:hover img {
  transform: scale(1.045);
  filter: contrast(1.04);
}

.case-photo-more::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  content: "";
}

.case-photo-more span {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 32px;
  font-weight: 720;
}

.case-scroll-controls {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.case-scroll-button {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid #dddddd;
  border-radius: 999px;
  color: #080808;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.case-scroll-button:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.case-scroll-button svg {
  width: 28px;
  height: 28px;
}

.case-scroll-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-progress {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.case-progress-line {
  display: block;
  width: 3px;
  height: 104px;
  border-radius: 999px;
  background: #d9d9d9;
}

.case-progress-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d3d3d3;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.case-progress-dot.is-active {
  width: 13px;
  height: 13px;
  background: #000;
}

.case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 18px;
  padding: 38px;
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(14px);
}

.case-lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  display: grid;
  max-width: 1040px;
  min-width: 0;
  margin: 0 auto;
  gap: 18px;
}

.lightbox-image {
  display: block;
  width: min(100%, 1040px);
  max-height: 76vh;
  object-fit: contain;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 30px;
  width: 54px;
  height: 54px;
}

.lightbox-nav {
  width: 68px;
  height: 68px;
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 28px;
  height: 28px;
}

.lightbox-close path,
.lightbox-nav path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-lightbox-open {
  overflow: hidden;
}

.contacts-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: min(100%, 1680px);
  margin: 28px auto 0;
  gap: clamp(34px, 3.6vw, 58px);
  overflow: hidden;
  padding: 64px 62px 62px;
  border-radius: 42px;
  background: var(--card-bg);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.contacts-circuit {
  position: absolute;
  top: 34px;
  left: 78px;
  width: 660px;
  height: 192px;
  color: var(--pattern);
  opacity: 0.24;
  pointer-events: none;
}

.contacts-circuit path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.contacts-circuit circle {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 2;
}

.contacts-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  padding-top: 8px;
}

.contacts-copy h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 850;
  line-height: 1.06;
}

.contacts-lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: #252525;
  font-size: 21px;
  line-height: 1.52;
}

.contact-stack {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.contact-info-card {
  border: 1px solid #dedede;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
}

.contact-info-card--address,
.contact-info-card--route,
.contact-info-card--phone {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
}

.contact-icon-box {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  background: #fff;
}

.contact-icon-box img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.contact-label {
  margin: 0 0 8px;
  color: #858585;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-info-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 760;
  line-height: 1.25;
}

.contact-info-card p {
  margin: 6px 0 0;
  color: #252525;
  font-size: 17px;
  line-height: 1.45;
}

.contact-address-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.contact-address-link:hover {
  transform: translateY(-2px);
  border-color: #cfcfcf;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
}

.contact-address-link:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.34);
  outline-offset: 3px;
}

.contact-info-card .contact-label {
  margin: 0 0 8px;
  color: #858585;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-info-card--metro {
  padding: 20px 18px 10px;
}

.metro-list {
  display: grid;
}

.metro-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #eeeeee;
}

.metro-row:first-child {
  border-top: 0;
}

.metro-icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.metro-text h3 {
  font-size: 18px;
}

.metro-text p {
  margin-top: 4px;
  color: #696969;
  font-size: 14px;
}

.walk-time {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #252525;
  font-size: 16px;
  line-height: 1.24;
}

.walk-time img {
  width: 24px;
  height: 24px;
  opacity: 0.78;
}

.contact-info-card--route {
  align-items: start;
  padding-top: 20px;
  padding-bottom: 20px;
}

.contact-info-card--route .contact-icon-box {
  margin-top: 2px;
}

.contact-bottom {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
}

.contact-info-card--phone {
  align-items: start;
  align-content: start;
  column-gap: 20px;
  row-gap: 6px;
  min-height: 158px;
  padding: 18px 20px 20px;
}

.contact-phone {
  display: inline-block;
  font-size: clamp(18px, 1.18vw, 20px);
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: normal;
}

.messenger-links {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.messenger-links a {
  display: inline-flex;
  min-height: 50px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  font-size: clamp(13px, 0.92vw, 15px);
  font-weight: 650;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.messenger-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.messenger-links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.messenger-links img[src$="/max.png"] {
  width: 34px;
  height: 24px;
}

.hours-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  min-height: 126px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  color: #fff;
  background: #050505;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.hours-card p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hours-card h3 {
  margin: 0;
  font-size: clamp(16px, 1.15vw, 20px);
  font-weight: 820;
  line-height: 1.08;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
}

.hours-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(46px, 3.65vw, 60px);
  font-weight: 850;
  line-height: 0.95;
}

.hours-note {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.1;
}

.hours-clock {
  width: clamp(72px, 7.2vw, 96px);
  height: clamp(72px, 7.2vw, 96px);
  object-fit: contain;
  flex: 0 0 auto;
}

.contact-map-frame {
  position: relative;
  z-index: 2;
  align-self: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1097 / 1434;
  border: 0;
  border-radius: 30px;
  background: transparent;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.075);
}

.contact-map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.contact-map-image {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: none;
}

.map-route-link {
  position: absolute;
  bottom: 18px;
  display: inline-flex;
  min-height: 74px;
  min-width: 0;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #151515;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.map-route-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.11);
}

.map-route-link img {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.map-route-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.map-route-link--maps {
  left: 5%;
  width: 42.5%;
}

.map-route-link--navigator {
  right: 5%;
  width: 42.5%;
}

.map-route-link:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.42);
  outline-offset: -5px;
}

.site-credit {
  display: flex;
  width: min(100%, 1680px);
  justify-content: center;
  margin: -8px auto 0;
  padding: 0 24px 18px;
}

.site-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(5, 5, 5, 0.54);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.2;
  opacity: 0.82;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.site-credit-link:hover {
  color: rgba(5, 5, 5, 0.78);
  opacity: 1;
}

.site-credit-link img {
  display: block;
  width: 42px;
  height: 24px;
  object-fit: contain;
  opacity: 0.78;
}

@keyframes orbit-clockwise {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-counter {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes hint-pulse {
  0% {
    opacity: 0.52;
    transform: scale(0.78);
  }

  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

@keyframes hint-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes hint-spark {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(45deg) scale(0.92);
  }
}

@media (min-width: 1600px) {
  .tech-pattern {
    right: 86px;
  }

  .generator-reveal {
    right: -35px;
  }
}

@media (max-width: 1380px) {
  .hero-card {
    padding: 46px 48px 44px;
  }

  .work-card {
    grid-template-columns: minmax(330px, 0.72fr) minmax(560px, 1.28fr);
    gap: 42px;
    padding: 64px 48px 46px;
  }

  .contacts-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
    padding: 56px 48px;
  }

  .work-copy h2 {
    font-size: 54px;
  }

  .contacts-copy h2 {
    font-size: 54px;
  }

  .work-lead {
    font-size: 19px;
  }

  .contacts-lead {
    font-size: 19px;
  }

  .contact-info-card--address,
  .contact-info-card--route,
  .contact-info-card--phone {
    grid-template-columns: 68px minmax(0, 1fr);
    column-gap: 16px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .contact-icon-box {
    width: 58px;
    height: 58px;
  }

  .contact-info-card--phone {
    min-height: 164px;
  }

  .hours-card {
    min-height: 126px;
  }

  .case-card {
    padding: 24px 24px 22px;
  }

  .case-photo img {
    height: 112px;
  }

  .brand-descriptor {
    font-size: 16px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-messenger {
    min-width: 108px;
    min-height: 46px;
    font-size: 14px;
  }

  .hero-content {
    grid-template-columns: minmax(390px, 0.74fr) minmax(520px, 1.26fr);
  }

  .hero-copy h1 {
    font-size: 66px;
  }

  .hero-copy p {
    font-size: 21px;
  }

  .generator-reveal {
    right: -118px;
    bottom: -34px;
    width: 680px;
  }

  .tech-pattern {
    right: -88px;
    width: 690px;
    height: 690px;
  }

  .brand-track {
    gap: 12px;
  }
}

@media (min-width: 1121px) and (max-width: 1140px) {
  .hero-actions {
    max-width: 390px;
    gap: 12px;
  }

  .primary-action,
  .secondary-action {
    flex: 1 1 0;
    min-width: 0;
    min-height: 60px;
    padding: 0 12px;
    font-size: 14px;
  }
}

@media (max-width: 1120px) {
  .page-shell {
    padding: 18px;
  }

  .hero-card {
    min-height: auto;
    border-radius: 34px;
    padding: 34px 34px 38px;
  }

  .work-card {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 42px;
    padding: 54px 34px 38px;
    border-radius: 34px;
  }

  .contacts-card {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 54px 34px 38px;
    border-radius: 34px;
    justify-items: stretch;
  }

  .work-circuit {
    left: 34px;
    width: 500px;
  }

  .contacts-circuit {
    left: 34px;
    width: 520px;
  }

  .work-copy {
    max-width: 760px;
    padding-top: 58px;
  }

  .contacts-copy {
    width: 100%;
    max-width: none;
    padding-top: 58px;
  }

  .work-copy h2 {
    max-width: 720px;
  }

  .contacts-copy h2 {
    max-width: 720px;
  }

  .contact-map-frame {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .works-carousel {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 18px;
  }

  .case-list {
    max-height: 700px;
  }

  .case-scroll-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .case-progress {
    display: flex;
    align-items: center;
  }

  .case-progress-line {
    width: 82px;
    height: 3px;
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }

  .brand {
    width: 200px;
  }

  .brand-descriptor {
    font-size: 15px;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .hero-content {
    grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
    gap: 0;
    min-height: 565px;
    align-items: center;
  }

  .hero-copy {
    max-width: 520px;
    padding-top: 46px;
  }

  .hero-copy h1 {
    max-width: 520px;
    font-size: clamp(48px, 5.4vw, 60px);
    line-height: 1.08;
  }

  .hero-copy p {
    max-width: 470px;
    margin-top: 26px;
    font-size: 19px;
    line-height: 1.48;
  }

  .hero-actions {
    max-width: 520px;
    gap: 14px;
    margin-top: 30px;
  }

  .primary-action,
  .secondary-action {
    flex: 1 1 0;
    min-width: 0;
    min-height: 60px;
    padding: 0 18px;
    font-size: 16px;
  }

  .hero-visual {
    min-height: 520px;
    margin-top: 0;
  }

  .tech-pattern {
    top: 0;
    right: -104px;
    width: 520px;
    height: 520px;
  }

  .generator-reveal {
    right: -220px;
    bottom: -22px;
    width: 640px;
  }

  .brand-carousel {
    margin-top: 8px;
  }

  .brand-track {
    display: flex;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 10px;
  }

  .hero-card {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    border-radius: 26px;
    padding: 24px 18px 26px;
  }

  .work-card {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    margin-top: 10px;
    padding: 42px 18px 28px;
    border-radius: 26px;
  }

  .contacts-card {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    margin-top: 10px;
    gap: 30px;
    padding: 42px 18px 28px;
    border-radius: 26px;
  }

  .work-circuit {
    top: 20px;
    left: 18px;
    width: 360px;
    opacity: 0.22;
  }

  .contacts-circuit {
    top: 18px;
    left: 18px;
    width: 370px;
    opacity: 0.18;
  }

  .work-copy {
    padding-top: 56px;
  }

  .contacts-copy {
    padding-top: 56px;
  }

  .section-kicker {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .work-copy h2 {
    font-size: 38px;
    line-height: 1.1;
  }

  .contacts-copy h2 {
    font-size: 38px;
    line-height: 1.1;
  }

  .work-lead {
    margin-top: 22px;
    font-size: 17px;
  }

  .contacts-lead {
    margin-top: 22px;
    font-size: 17px;
  }

  .contact-stack {
    gap: 12px;
    margin-top: 28px;
  }

  .contact-info-card--address,
  .contact-info-card--route,
  .contact-info-card--phone {
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 14px;
    padding: 16px 14px;
  }

  .contact-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
  }

  .contact-icon-box img {
    width: 31px;
    height: 31px;
  }

  .contact-info-card h3 {
    font-size: 17px;
  }

  .contact-info-card p {
    font-size: 15px;
  }

  .contact-info-card--metro {
    padding: 16px 14px 6px;
  }

  .metro-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
  }

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

  .metro-text h3 {
    font-size: 16px;
  }

  .metro-text p {
    font-size: 13px;
  }

  .walk-time {
    grid-column: 2;
    justify-content: flex-start;
    gap: 8px;
    font-size: 14px;
  }

  .walk-time img {
    width: 20px;
    height: 20px;
  }

  .contact-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-phone {
    font-size: 19px;
  }

  .messenger-links {
    gap: 10px;
    margin-top: 0;
  }

  .messenger-links a {
    min-height: 50px;
  }

  .hours-card {
    min-height: 116px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px;
  }

  .hours-card h3 {
    font-size: 19px;
  }

  .hours-card strong {
    font-size: 52px;
  }

  .hours-clock {
    width: 74px;
    height: 74px;
  }

  .contact-map-frame {
    aspect-ratio: 1097 / 1434;
    border-radius: 22px;
  }

  .contact-map-canvas {
    inset: 0;
  }

  .contact-map-image {
    width: 100%;
    height: 100%;
    transform: none;
  }

  .map-route-link {
    left: 14px;
    right: 14px;
    width: auto;
    min-height: 58px;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
  }

  .map-route-link img {
    width: 32px;
    height: 32px;
  }

  .map-route-link--maps {
    bottom: 86px;
  }

  .map-route-link--navigator {
    bottom: 14px;
  }

  .service-benefits {
    margin-top: 34px;
  }

  .service-benefit {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
  }

  .benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 10px;
  }

  .benefit-icon img {
    width: 60px;
    height: 60px;
  }

  .service-benefit h3 {
    font-size: 17px;
  }

  .service-benefit p {
    font-size: 15px;
  }

  .case-list {
    max-height: 720px;
    gap: 14px;
    padding-right: 0;
  }

  .case-card {
    min-height: auto;
    padding: 20px 16px 18px;
    border-radius: 14px;
  }

  .case-card-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-card h3 {
    font-size: 20px;
  }

  .case-open {
    width: 100%;
    min-height: 48px;
  }

  .case-meta {
    gap: 16px;
    font-size: 15px;
  }

  .case-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .case-gallery .case-photo:nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  .case-photo,
  .case-photo img {
    min-height: 118px;
    height: 118px;
  }

  .case-scroll-button {
    width: 54px;
    height: 54px;
  }

  .case-progress {
    gap: 10px;
  }

  .case-progress-line {
    width: 38px;
  }

  .case-lightbox {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 8px;
    padding: 22px 10px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
  }

  .lightbox-nav {
    width: 48px;
    height: 48px;
  }

  .lightbox-caption {
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .brand {
    width: 160px;
  }

  .brand-group {
    width: 100%;
    gap: 12px;
  }

  .brand-descriptor {
    font-size: 13px;
    line-height: 1.16;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .header-messenger {
    min-width: 92px;
    min-height: 46px;
    gap: 5px;
    font-size: 13px;
  }

  .header-messenger--whatsapp {
    min-width: 106px;
  }

  .header-messenger img {
    width: 19px;
    height: 19px;
  }

  .header-messenger--max img {
    width: 29px;
    height: 20px;
  }

  .header-button {
    min-width: 120px;
    min-height: 46px;
    font-size: 15px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }

  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 56px);
    padding-top: 42px;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: calc(100vw - 56px);
    font-size: 43px;
    line-height: 1.08;
  }

  .hero-copy p {
    width: 100%;
    max-width: calc(100vw - 56px);
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.5;
    overflow-wrap: break-word;
  }

  .hero-actions {
    width: max-content;
    max-width: calc(100vw - 36px);
    gap: 8px;
    margin-top: 26px;
  }

  .primary-action,
  .secondary-action {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 58px;
    padding: 0 18px;
    font-size: 13px;
  }

  .hero-visual {
    min-height: 420px;
    margin-top: 24px;
  }

  .tech-pattern {
    top: 12px;
    right: auto;
    left: 50%;
    width: 410px;
    height: 410px;
    transform: translateX(-50%);
  }

  .generator-reveal {
    right: auto;
    left: 50%;
    bottom: 10px;
    width: 380px;
    transform: translateX(-50%);
  }

  .reveal-hint {
    right: 29%;
    top: 22%;
    width: 48px;
    height: 48px;
  }

  .reveal-hint svg {
    width: 23px;
    height: 23px;
  }

  .brand-carousel {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 8px;
    padding-top: 20px;
  }

  .carousel-arrow {
    width: 32px;
    height: 42px;
  }

  .brand-track {
    gap: 18px;
  }

  .brand-card {
    min-width: 82px;
    min-height: 106px;
    grid-template-rows: 64px auto;
  }

  .brand-card.is-active {
    transform: translateY(-3px) scale(1.06);
  }

  .brand-mark {
    width: 62px;
    height: 56px;
  }

  .brand-name {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .hero-copy,
  .hero-copy h1,
  .hero-copy p,
  .hero-actions {
    max-width: calc(100vw - 36px);
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: 38px;
  }

  .work-copy h2 {
    font-size: 34px;
  }

  .contacts-copy h2 {
    font-size: 34px;
  }

  .hero-actions {
    gap: 6px;
  }

  .primary-action,
  .secondary-action {
    min-height: 54px;
    padding: 0 12px;
    font-size: 12px;
  }

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

  .contact-info-card .contact-label {
    font-size: 11px;
  }

  .messenger-links a {
    gap: 7px;
    font-size: 14px;
  }

  .messenger-links img {
    width: 22px;
    height: 22px;
  }

  .messenger-links img[src$="/max.png"] {
    width: 34px;
    height: 24px;
  }

  .hours-card strong {
    font-size: 46px;
  }

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .tech-pattern {
    right: auto;
    left: 50%;
    width: 370px;
    height: 370px;
    transform: translateX(-50%);
  }

  .generator-reveal {
    right: auto;
    left: 50%;
    bottom: 8px;
    width: 350px;
    transform: translateX(-50%);
  }
}

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