:root {
  --font-title: "Outfit", sans-serif;
  --font-text: "Source Sans 3", "Source Sans Pro", sans-serif;
  --primary: #006262;
  --primary-400: #008282;
  --primary-300: #339b9b;
  --navy: #072534;
  --navy-2: #0f3549;
  --yellow: #ffcd18;
  --bg: #fdfdfd;
  --bg-2: #f3f7fc;
  --header-h: 5.5rem;
  --max: 1200px;
  --radius: 14px;
  --shadow: 0 8px 24px #091e4214;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: clip;
}

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

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

button {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bar,
.header-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(7, 37, 52, 0.08);
  box-shadow: 0 4px 18px #091e420a;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header.is-scrolled,
.header.is-open {
  background: #fff;
  border-bottom-color: #edf2f8;
  box-shadow: 0 8px 20px #091e4210;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: block;
  flex-shrink: 0;
}

.brand-box {
  width: 148px;
  height: 54px;
  border: 0;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--navy);
  position: relative;
}

.brand-box::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 72%;
  height: 2px;
  background: currentColor;
}

.brand-box small {
  position: absolute;
  right: 9px;
  bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-title);
  font-weight: 500;
}

.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  position: relative;
}

.lang-btn,
.menu-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--navy);
  padding: 8px 10px;
  border-radius: 999px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(7, 37, 52, 0.18);
  flex-shrink: 0;
  display: block;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 168px;
  overflow: hidden;
  z-index: 20;
}

.lang-menu.open {
  display: block;
}

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button.is-active {
  background: #d9ecec;
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-title);
  font-weight: 600;
}

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

.btn-primary:hover {
  background: var(--primary-400);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.menu-toggle {
  display: none;
  font-size: 1.4rem;
  min-width: 44px;
  min-height: 44px;
}

.hero {
  min-height: max(560px, 78vh);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 88px;
  background:
    linear-gradient(90deg, rgba(253, 253, 253, 0.88) 0%, rgba(253, 253, 253, 0.42) 42%, rgba(7, 37, 52, 0.12) 100%),
    url("../assets/hero.jpg") center 36% / cover no-repeat;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  display: block;
  max-width: none;
}

.title-line {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}

.hero h1 > span:last-child,
.inspect h2 > span:last-child {
  display: block;
  margin-top: 6px;
}

.pill {
  background: var(--yellow);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.08em 0.5em 0.14em;
  display: inline-block;
  white-space: nowrap;
}

.hero-lead {
  max-width: min(62ch, 100%);
  font-size: 1.12rem;
  color: var(--navy-2);
}

.hero-lead span {
  display: block;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.band {
  background: var(--navy);
  padding: 48px 0;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
  align-items: start;
}

.band-item {
  --d: 0ms;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 0 12px;
}

.js .band-item {
  opacity: 0;
  transform: translateY(18px);
}

.band-item:nth-child(1) { --d: 0ms; }
.band-item:nth-child(2) { --d: 90ms; }
.band-item:nth-child(3) { --d: 180ms; }
.band-item:nth-child(4) { --d: 270ms; }

.band-item.is-in {
  animation: band-rise 0.7s cubic-bezier(0.22, 0.8, 0.32, 1) both;
  animation-delay: var(--d);
}

.band h3 {
  color: var(--primary-300);
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0;
  max-width: 18ch;
  min-height: 2.7em;
  text-wrap: balance;
}

.icon-circle {
  position: relative;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--primary-400);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary-300);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  pointer-events: none;
}

.band-item.is-in .icon-circle {
  animation: icon-pop 0.55s cubic-bezier(0.22, 0.8, 0.32, 1);
  animation-delay: var(--d);
}

.icon-circle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.section,
.inspect,
.band {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section {
  padding: 64px 0 72px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}

.section-head-center {
  justify-content: center;
  text-align: center;
  margin-bottom: 12px;
}

.kicker {
  color: var(--primary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.section h2,
.inspect h2 {
  font-size: 1.7rem;
  color: var(--primary);
  line-height: 1.25;
  text-wrap: balance;
}

.services-orbit {
  --orbit-r: 322px;
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 1;
  margin: 0 auto;
  isolation: isolate;
}

.service-bubble {
  --size: 228px;
  --in-delay: calc(0.16s + var(--ang, 0deg) / 60deg * 0.07s);
  position: absolute;
  left: calc(50% + sin(var(--ang, 0deg)) * var(--orbit-r, 0px));
  top: calc(50% + cos(var(--ang, 0deg)) * var(--orbit-r, 0px) * -1);
  width: var(--size);
  height: var(--size);
  aspect-ratio: 1;
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--size) * 0.18);
  overflow: visible;
  color: var(--navy);
  background: none;
}

.service-bubble.is-core {
  --orbit-r: 0px;
  --size: 368px;
  --in-delay: 0.04s;
  padding: calc(var(--size) * 0.15);
}

.service-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z, 1);
  border-radius: 50%;
  background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--bg);
  pointer-events: none;
}

.js .service-bubble::before {
  transform: scale(0.84);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.32, 1), opacity 0.5s ease;
  transition-delay: var(--in-delay);
}

.services-orbit.is-in .service-bubble::before {
  transform: scale(1);
  opacity: 1;
}

.services-orbit.is-in .service-bubble:hover::before {
  z-index: 6;
  transform: scale(1.04);
}

.service-bubble svg,
.service-bubble h3,
.service-bubble p {
  position: relative;
  z-index: 10;
}

.js .service-bubble svg,
.js .service-bubble h3,
.js .service-bubble p {
  opacity: 0;
  transition: opacity 0.45s ease;
  transition-delay: calc(var(--in-delay) + 0.12s);
}

.services-orbit.is-in .service-bubble svg,
.services-orbit.is-in .service-bubble h3,
.services-orbit.is-in .service-bubble p {
  opacity: 1;
}

.service-bubble svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin-bottom: 10px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-bubble h3 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-bubble p {
  margin: 0;
  color: #3f5d6d;
  font-size: 0.76rem;
  line-height: 1.32;
}

.inspect {
  background: var(--navy);
  color: #c5d0de;
  padding: 64px 0;
}

.inspect h2 {
  color: #fff;
  display: block;
  margin-bottom: 16px;
  max-width: none;
}

.inspect .kicker {
  color: var(--yellow);
  margin-bottom: 22px;
}

.inspect p {
  max-width: 62ch;
  margin: 0;
  line-height: 1.55;
}

.contact-section {
  background: var(--bg-2);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

#contact h2 {
  max-width: 18ch;
}

.contact-place {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #d4dde4;
}

.contact-place .kicker {
  margin-bottom: 14px;
}

.contact-address {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--navy);
}

.contact-pin {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--primary-400);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-pin svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-address-text strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.contact-address-text span {
  display: block;
  margin-top: 2px;
  color: var(--navy-2);
  font-size: 0.95rem;
}

.contact-address:hover {
  color: var(--primary);
}

.contact-address:hover .contact-address-text span {
  color: var(--primary);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 14px;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d4dde4;
  background: #fff;
  padding: 13px;
  font: 0.95rem/1.4 var(--font-text);
  color: var(--navy);
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  justify-self: start;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  padding: 12px 22px;
  border-radius: 4px;
}

.form-note,
.form-success {
  margin: 0;
  font-size: 0.82rem;
  color: #66757d;
}

.form-success {
  color: var(--primary);
}

.footer {
  background: var(--navy);
  color: #dbe1e4;
  padding: 48px 0 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-copy {
  min-width: 0;
  flex: 1 1 20rem;
}

.footer-lead {
  margin: 0;
}

.footer-lead span {
  display: block;
  overflow-wrap: break-word;
}

.footer-contacts {
  flex: 0 0 auto;
  min-width: 240px;
}

.footer .brand-box {
  border-color: #fff;
  color: #fff;
  margin-bottom: 16px;
}

.footer h4 {
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer a {
  color: #c5d0de;
}

.footer a:hover {
  color: var(--yellow);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 5px 0;
  line-height: 1.3;
}

.footer-contact img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.footer-contact:hover img {
  filter: brightness(1.12);
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #3f5d6d;
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .band-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 980px) {
  .services-orbit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    aspect-ratio: auto;
    width: min(100%, 440px);
    padding: 8px 0 24px;
  }

  .service-bubble {
    position: relative;
    left: auto;
    top: auto;
    width: min(var(--size, 220px), 86vw);
    height: min(var(--size, 220px), 86vw);
    flex: 0 0 auto;
    margin: -16px;
    padding: calc(var(--size) * 0.18);
  }

  .service-bubble.is-core {
    order: -1;
    width: min(340px, 88vw);
    height: min(340px, 88vw);
    margin: 0 0 -10px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 4.6rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 8px;
    border-bottom: 1px solid #edf2f8;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .btn {
    display: none;
  }

  .brand-box {
    width: 124px;
    height: 46px;
    font-size: 18px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 32px) 0 52px;
    background-position: center 28%;
  }

  .band-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
    gap: 32px;
  }

  .header-inner,
  .bar {
    width: calc(100% - 32px);
  }

  .band-item {
    padding: 0;
  }

  .inspect h2,
  #contact h2 {
    max-width: none;
  }

  .services-orbit {
    width: 100%;
    gap: 12px;
    padding: 0 0 8px;
  }

  .service-bubble {
    margin: 0;
    width: min(var(--size, 220px), 78vw);
    height: min(var(--size, 220px), 78vw);
  }

  .service-bubble.is-core {
    width: min(292px, 86vw);
    height: min(292px, 86vw);
    margin: 0 0 4px;
  }
}

@keyframes band-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes icon-pop {
  0% {
    transform: scale(0.72);
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .band-item,
  .service-bubble svg,
  .service-bubble h3,
  .service-bubble p,
  .service-bubble::before {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
