* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #131313;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #131313;
}

.artboard {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.design,
.design img {
  display: block;
  width: 100%;
  height: auto;
}

.design {
  line-height: 0;
}

.hotspots {
  position: absolute;
  z-index: 10;
  inset: 0;
  pointer-events: none;
}

.hotspot,
.service-hit {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  cursor: pointer;
}

.section-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
}

.about-anchor { top: 35%; }
.services-anchor { top: 48%; }
.portfolio-anchor { top: 71%; }
.contact-anchor { top: 94%; }

.nav-about { left: 28%; top: 1%; width: 9%; height: 2%; }
.nav-services { left: 39%; top: 1%; width: 9%; height: 2%; }
.nav-portfolio { left: 49%; top: 1%; width: 11%; height: 2%; }
.nav-contact { left: 63%; top: 1%; width: 10%; height: 2%; }
.telegram { right: 5%; top: .5%; width: 4%; height: 2%; }
.external-project { left: 8%; top: 75%; width: 28%; height: 5%; }

/* Hero buttons: exact desktop SVG coordinates. */
.hero-order {
  left: 7.03125%;
  top: 11.221176%;
  width: 7.8125%;
  height: .811952%;
  border-radius: 16px;
  background: #229ed9;
}

.hero-more {
  left: 17.161458%;
  top: 11.229295%;
  width: 8.333333%;
  height: .795713%;
  border-radius: 16px;
  border: 1.5px solid #2aabee;
  background: #131313;
}

.hero-order,
.hero-more,
.portfolio-link,
.service-hit {
  transition:
    background-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}

.portfolio-link:hover,
.portfolio-link:focus-visible {
  box-shadow: 0 0 24px rgba(81, 203, 238, .9);
  transform: translateY(-3px);
}

.hero-order:hover,
.hero-order:focus-visible,
.hero-more:hover,
.hero-more:focus-visible {
  box-shadow: 0 0 24px rgba(81, 203, 238, .9);
  transform: translateY(-3px);
}

.hero-more:hover,
.hero-more:focus-visible {
  background: #2aabee;
}

.button-content {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font: 700 min(16px, .833333vw)/1 Arial, sans-serif;
  pointer-events: none;
}

.button-content img {
  width: 24px;
  height: 24px;
}

/* Service cards: each hit area matches one card and nothing else. */
.service-hit {
  z-index: 12;
  width: 42.447917%;
  height: 5.521273%;
  border-radius: 18px;
  background: transparent;
}

.service-hit-1 {
  left: 7.03125%;
  top: 48.944462%;
}

.service-hit-2 {
  left: 7.03125%;
  top: 54.790516%;
}

.service-hit-3 {
  left: 50.520833%;
  top: 48.944462%;
}

.service-hit-4 {
  left: 50.520833%;
  top: 54.790516%;
}

.service-hit:hover,
.service-hit:focus-visible {
  background: #2aabee;
  box-shadow: 0 0 26px rgba(81, 203, 238, .85);
  transform: translateY(-3px);
}

.service-content {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  color: #fff;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.service-hit:hover .service-content,
.service-hit:focus-visible .service-content {
  opacity: 1;
}

.service-icon {
  position: absolute;
  left: 5.52%;
  top: 12.35%;
  width: 6.63%;
  height: 15.88%;
  object-fit: contain;
}

.service-content strong {
  position: absolute;
  left: 15.1%;
  top: 15.2%;
  margin: 0;
  color: #fff;
  font: 700 min(40px, 2.083333vw)/1.05 Arial, sans-serif;
  white-space: nowrap;
}

.service-description {
  position: absolute;
  left: 5.52%;
  top: 38.2%;
  width: 88.5%;
  color: #fff;
  font: 400 min(24px, 1.25vw)/1.28 Arial, sans-serif;
}

.service-more {
  position: absolute;
  left: 5.52%;
  bottom: 12.2%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font: 700 min(22px, 1.145833vw)/1 Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.service-more img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

/* Behance CTA: only the visible 150 x 50 button is clickable. */
.portfolio-link {
  z-index: 14;
  left: 7.03125%;
  top: 90.289055%;
  width: 7.8125%;
  height: .811952%;
  border-radius: 16px;
  background: #229ed9;
}

/* Real form precisely covers the static form drawn in the SVG. */
.contact-form {
  position: absolute;
  z-index: 14;
  left: 29.583333%;
  top: 98.051315%;
  width: 33.958333%;
  height: .811952%;
  margin: 0;
}

.contact-form input,
.contact-form button {
  position: absolute;
  min-width: 0;
  font: 16px/1 Arial, sans-serif;
}

.contact-form input {
  left: 0;
  top: 2%;
  width: 74.846626%;
  height: 96%;
  padding: 0 20px;
  border: 2px solid #229ed9;
  border-radius: 16px;
  outline: 0;
  background: #131313;
  color: #fafafa;
  caret-color: #fafafa;
}

.contact-form input::placeholder {
  color: #a9a9a9;
  opacity: 1;
}

.contact-form input:focus {
  box-shadow: 0 0 16px rgba(81, 203, 238, .65);
}

.contact-form button {
  left: 79.907975%;
  top: 0;
  width: 20.092025%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #229ed9;
  color: #fafafa;
  cursor: pointer;
  transition: box-shadow .22s ease, transform .22s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  box-shadow: 0 0 24px rgba(81, 203, 238, .85);
  transform: translateY(-2px);
}

.mobile-menu,
.mobile-panel {
  display: none;
}

@media (max-width: 767px) {
  .artboard {
    max-width: 440px;
  }

  .nav-about,
  .nav-services,
  .nav-portfolio,
  .nav-contact,
  .external-project {
    display: none;
  }

  .about-anchor { top: 17.2%; }
  .services-anchor { top: 51%; }
  .portfolio-anchor { top: 63.4%; }
  .contact-anchor { top: 91%; }

  .telegram {
    right: 16%;
    top: 0;
    width: 9%;
    height: .740853%;
  }

  .mobile-menu {
    display: block;
    right: 2%;
    top: .181433%;
    width: 10%;
    height: .559419%;
  }

  .mobile-panel {
    position: fixed;
    z-index: 30;
    inset: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    background: #191919;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .mobile-panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-panel a {
    color: #fafafa;
    font: 32px/1.2 Arial, sans-serif;
  }

  .hero-order {
    left: 3.636364%;
    top: 5.034775%;
    width: 34.090909%;
    height: .755972%;
  }

  .hero-more {
    left: 42.840909%;
    top: 5.042334%;
    width: 36.363636%;
    height: .740853%;
  }

  .service-hit {
    left: 3.636364%;
    width: 92.727273%;
    height: 2.570305%;
  }

  .service-hit-1 { top: 51.375869%; }
  .service-hit-3 { top: 54.309041%; }
  .service-hit-2 { top: 57.242213%; }
  .service-hit-4 { top: 60.175386%; }

  .button-content {
    font-size: 16px;
  }

  .service-icon {
    left: 3.92%;
    top: 11.76%;
    width: 9.8%;
    height: 23.53%;
  }

  .service-content strong {
    left: 15.2%;
    top: 14.7%;
    font-size: 20px;
  }

  .service-description {
    left: 3.92%;
    top: 40%;
    width: 92.16%;
    font-size: 12px;
    line-height: 1.3;
  }

  .service-more {
    left: 3.92%;
    bottom: 11.76%;
    gap: 8px;
    font-size: 12px;
  }

  .service-more img {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .portfolio-link {
    left: 3.636364%;
    top: 91.427275%;
    width: 34.090909%;
    height: .755972%;
  }

  .contact-form {
    left: 3.181818%;
    top: 97.218022%;
    width: 93.636364%;
    height: 1.844572%;
  }

  .contact-form input {
    left: .728155%;
    top: 0;
    width: 98.543689%;
    height: 39.344262%;
  }

  .contact-form button {
    left: 0;
    top: 59.016393%;
    width: 100%;
    height: 40.983607%;
  }
}

@media (hover: none) {
  .service-hit:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .service-hit:hover .service-content {
    opacity: 0;
  }

  .service-hit:active,
  .service-hit.is-active {
    z-index: 13;
    background: #2aabee;
    box-shadow: 0 0 26px rgba(81, 203, 238, .85);
    transform: translateY(-3px);
  }

  .service-hit:active .service-content,
  .service-hit.is-active .service-content {
    opacity: 1;
  }

  .hero-order:hover {
    background: #229ed9;
    box-shadow: none;
    transform: none;
  }

  .hero-more:hover {
    background: #131313;
    box-shadow: none;
    transform: none;
  }

  .hero-order:active,
  .hero-more:active {
    background: #2aabee;
    box-shadow: 0 0 24px rgba(81, 203, 238, .9);
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
