:root {
  --bg: #0b1118;
  --bg-soft: #111a24;
  --surface: #151f2a;
  --surface-light: #f3f5f7;
  --text: #f7f9fb;
  --muted: #a8b4c0;
  --ink: #17212b;
  --accent: #2f9fef;
  --accent-2: #67b9f6;
  --line: rgba(255, 255, 255, 0.13);
  --container: 1180px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

html.tawk-launcher-hidden #tawk-bubble-container,
html.tawk-launcher-hidden #tawkchat-container,
html.tawk-launcher-hidden iframe[src*="tawk.to"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(47, 159, 239, 0.65);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--accent);
  color: #10151b;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 24, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo-frame {
  width: 260px;
  height: 64px;
  display: flex;
  align-items: center;
  overflow: visible;
  background: transparent;
}

.brand-logo-image {
  position: static;
  width: 260px;
  max-width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  color: #c7d0d9;
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

.mobile-nav-contact {
  display: none;
}

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

.menu-toggle {
  width: 42px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-button {
  min-width: 35px;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #97a4b1;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.lang-button.is-active {
  background: var(--accent);
  color: #111820;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: #10161c;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 850;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

.button-small {
  min-height: 40px;
  padding: 9px 15px;
  font-size: 0.85rem;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--accent);
  background: rgba(47, 159, 239, 0.08);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding: 78px 0 68px;
  background:
    radial-gradient(circle at 72% 14%, rgba(25, 106, 158, 0.25), transparent 31%),
    linear-gradient(110deg, #0b1118 0%, #0d141c 53%, #111e29 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to right, black, transparent 74%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 22px;
  font-size: clamp(2.85rem, 4.6vw, 4.2rem);
  font-weight: 680;
  line-height: 1;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 12px;
  color: #bdc7d0;
  font-size: 1.06rem;
}

.service-mode {
  display: inline-flex;
  margin: 0 0 24px;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-mode::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: flex;
  min-height: 82px;
  min-width: 0;
  padding: 10px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.1;
}

.hero-facts span {
  min-height: 2.6em;
  color: #8f9ba8;
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: pre-line;
}

.hero-facts .hero-experience {
  grid-column: 1 / -1;
  min-height: 70px;
  padding: 11px 18px;
  flex-direction: row;
  gap: 18px;
  border-color: rgba(46, 165, 247, 0.34);
  background: rgba(46, 165, 247, 0.055);
}

.hero-experience strong {
  margin: 0;
  font-size: 1.65rem;
}

.hero-experience div {
  display: flex;
  padding-left: 18px;
  flex-direction: column;
  align-items: flex-start;
  border-left: 1px solid var(--line);
}

.hero-facts .hero-experience span {
  min-height: 0;
  text-align: left;
}

.hero-facts .hero-experience [data-i18n="factYears"] {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-facts .experience-scope {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.machine-summary {
  display: flex;
  min-height: 68px;
  margin-top: 12px;
  padding: 9px 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.machine-summary strong,
.machine-summary span {
  display: block;
}

.machine-summary strong {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.1;
}

.machine-summary span {
  color: #8f9ba8;
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: pre-line;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.image-frame {
  position: absolute;
  inset: 0 0 42px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1e2934;
  box-shadow: var(--shadow);
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 8, 12, 0.92), transparent 54%);
}

.image-frame img {
  height: 100%;
  object-fit: cover;
}

.image-label {
  position: absolute;
  z-index: 2;
  right: 36px;
  bottom: 34px;
  left: 36px;
}

.image-label span,
.image-label strong {
  display: block;
}

.image-label span {
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.image-label strong {
  font-size: 1.45rem;
}

.precision-card {
  position: absolute;
  z-index: 3;
  right: -22px;
  bottom: 0;
  width: min(300px, 72%);
  padding: 22px 24px;
  background: var(--accent);
  color: #121920;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.precision-card p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.4;
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: #0e161f;
}

.trust-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 20px;
  color: #778592;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-align: center;
}

.section {
  padding: 112px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading > p {
  margin-bottom: 4px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 330px;
  padding: 34px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 180ms ease, background 180ms ease;
}

.service-card:last-child {
  border-right: 0;
}

.service-card:hover {
  z-index: 2;
  background: #17222d;
  transform: translateY(-5px);
}

.service-card-accent {
  background: #17222d;
}

.card-number {
  display: inline-block;
  margin-bottom: 70px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card h3 {
  max-width: 250px;
  margin-bottom: 14px;
}

.service-card p {
  margin-bottom: 24px;
  color: #9fadb9;
  font-size: 0.95rem;
}

.card-line {
  position: absolute;
  right: 34px;
  bottom: 27px;
  left: 34px;
  height: 2px;
  background: linear-gradient(to right, var(--accent) 26%, rgba(255, 255, 255, 0.1) 26%);
}

.capability-section {
  color: var(--ink);
  background: var(--surface-light);
}

.capability-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 96px;
  align-items: center;
}

.capability-copy h2 {
  max-width: 710px;
}

.capability-lead {
  max-width: 630px;
  margin: 26px 0 30px;
  color: #586675;
  font-size: 1.08rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 720;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 16px;
  height: 7px;
  border-bottom: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
  transform: rotate(-45deg);
}

.machine-panel {
  position: relative;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    #111a23;
  background-size: 42px 42px;
  color: var(--text);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 0 100%);
}

.machine-panel::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 260px;
  height: 260px;
  border: 45px solid rgba(47, 159, 239, 0.12);
  border-radius: 50%;
}

.machine-topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #81909d;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.machine-visual {
  position: relative;
  z-index: 2;
  height: 225px;
  display: grid;
  place-items: center;
  margin: 4px 0;
}

.machine-visual img {
  width: min(360px, 94%);
  max-height: 225px;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.42));
}

.dimension-display {
  position: relative;
  z-index: 2;
  display: grid;
}

.dimension-label {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dimension-display strong {
  font-size: clamp(2.35rem, 4vw, 3.55rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.dimension-unit {
  margin-top: 8px;
  font-weight: 800;
}

.dimension-display small {
  margin-top: 18px;
  color: #8e9aa5;
  font-size: 0.84rem;
}

.material-note {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.material-note p {
  margin: 0;
  color: #a7b2bd;
  font-size: 0.88rem;
}

.material-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(47, 159, 239, 0.14);
}

.projects-section {
  background: #0e151d;
}

.section-heading.compact {
  margin-bottom: 46px;
}

.gallery-heading {
  grid-template-columns: 1fr;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-gallery:not(.is-expanded) .gallery-item:not(.gallery-featured) {
  display: none;
}

.gallery-item {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: #18222d;
  color: inherit;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.gallery-toggle {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid rgba(47, 159, 239, 0.65);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.gallery-toggle:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #081019;
}

.gallery-toggle-icon {
  color: var(--accent-2);
  font-size: 1.1rem;
  transition: transform 220ms ease, color 180ms ease;
}

.gallery-toggle:hover .gallery-toggle-icon {
  color: #081019;
}

.gallery-toggle.is-expanded .gallery-toggle-icon {
  transform: rotate(180deg);
}

.gallery-item-machine {
  padding: 28px 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #111a23;
  background-size: 30px 30px;
}

.gallery-item:hover img {
  filter: brightness(1.06);
  transform: scale(1.025);
}

.gallery-dialog {
  width: min(1180px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: #080d12;
  color: var(--text);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.68);
}

.gallery-dialog::backdrop {
  background: rgba(2, 5, 8, 0.9);
  backdrop-filter: blur(8px);
}

.gallery-dialog-shell {
  position: relative;
  min-height: min(760px, calc(100dvh - 30px));
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
  padding: 62px 20px 24px;
}

.gallery-stage {
  min-width: 0;
  display: grid;
  place-items: center;
}

.gallery-stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
}

.gallery-counter {
  position: absolute;
  top: 24px;
  left: 50%;
  color: #9ba7b3;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.gallery-close-form {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
}

.gallery-close,
.gallery-nav {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 160ms ease, background 160ms ease;
}

.gallery-close {
  width: 42px;
  height: 42px;
}

.gallery-close span {
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
}

.gallery-nav {
  width: 54px;
  height: 54px;
}

.gallery-nav span {
  margin-top: -4px;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
}

.gallery-close:hover,
.gallery-nav:hover {
  border-color: var(--accent);
  background: rgba(47, 159, 239, 0.14);
}

.expertise-section {
  overflow: hidden;
}

.expertise-layout {
  display: grid;
  grid-template-columns: 0.55fr 1.2fr 0.75fr;
  gap: 58px;
  align-items: center;
}

.experience-number {
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(6rem, 12vw, 11rem);
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: -0.1em;
}

.experience-number span {
  color: var(--accent);
  font-size: 0.32em;
  vertical-align: top;
}

.expertise-copy h2 {
  margin-bottom: 28px;
}

.expertise-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.expertise-quote {
  padding: 30px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.035);
}

.expertise-quote > span {
  display: block;
  height: 40px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
}

.expertise-quote blockquote {
  margin: 8px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.contact-section {
  padding: 78px 0;
  background: var(--accent);
  color: #111820;
}

.contact-section .eyebrow {
  color: #10283b;
}

.contact-section h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
}

.contact-project-note {
  max-width: 690px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 3px solid #10283b;
  background: rgba(255, 255, 255, 0.18);
  color: #10283b;
  font-size: 1rem;
  line-height: 1.65;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.contact-actions {
  display: grid;
  gap: 18px;
}

.button-light {
  min-height: 78px;
  display: grid;
  justify-content: start;
  border-color: #fff;
  background: #fff;
  color: #121a22;
  text-align: left;
}

.button-light:hover {
  border-color: #fff;
  background: #f3f5f7;
}

.button-light span,
.contact-link span {
  color: #68737e;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button-light strong {
  font-size: 1.25rem;
}

.contact-link {
  padding: 18px 20px;
  border: 1px solid rgba(17, 24, 32, 0.28);
}

.contact-link span,
.contact-link strong {
  display: block;
}

.contact-link span {
  color: #17354b;
}

.contact-link strong {
  margin-top: 4px;
  line-height: 1.35;
}

.contact-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #111a24;
  color: var(--text);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.62);
}

.contact-dialog::backdrop {
  background: rgba(3, 7, 11, 0.8);
  backdrop-filter: blur(8px);
}

.contact-dialog-panel {
  position: relative;
  padding: 42px;
}

.contact-dialog-close-form {
  position: absolute;
  top: 18px;
  right: 18px;
}

.contact-dialog-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.contact-dialog-close:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.contact-dialog-close span {
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
}

.contact-dialog .eyebrow {
  margin-right: 54px;
  margin-bottom: 12px;
}

.contact-dialog h2 {
  max-width: 500px;
  margin: 0 54px 30px 0;
  font-size: clamp(1.8rem, 5vw, 2.55rem);
  font-weight: 680;
  line-height: 1.08;
}

.contact-dialog-options {
  display: grid;
  gap: 10px;
}

.contact-dialog-option {
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.contact-dialog-option:hover {
  border-color: rgba(47, 159, 239, 0.55);
  background: rgba(47, 159, 239, 0.08);
  transform: translateY(-1px);
}

.contact-dialog-option-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #0c151c;
}

.contact-dialog-option-primary:hover {
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.contact-dialog-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.contact-dialog-option-copy {
  min-width: 0;
}

.contact-dialog-option-copy strong,
.contact-dialog-option-copy small {
  display: block;
}

.contact-dialog-option-copy strong {
  font-size: 1rem;
  line-height: 1.3;
}

.contact-dialog-option-copy small {
  margin-top: 3px;
  color: #94a3b1;
  font-size: 0.8rem;
  line-height: 1.35;
}

.contact-dialog-option-primary .contact-dialog-option-copy small {
  color: rgba(12, 21, 28, 0.72);
}

.contact-dialog-arrow {
  font-size: 1.25rem;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #080d12;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  color: #7f8b96;
  font-size: 0.8rem;
}

.footer-inner p:nth-child(2) {
  text-align: center;
}

.footer-brand .brand-logo-frame {
  width: 230px;
  height: 57px;
}

.footer-brand .brand-logo-image {
  width: 230px;
}

.custom-chat-button {
  position: fixed;
  z-index: 2147482999;
  right: 24px;
  bottom: 22px;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.42));
  transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
}

.custom-chat-button::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(47, 159, 239, 0.38);
  animation: chat-pulse 2.8s ease-out infinite;
}

.custom-chat-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.custom-chat-button:hover,
.custom-chat-button:focus-visible {
  transform: translateY(-3px) scale(1.04);
}

.custom-chat-button.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
}

.custom-chat-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  width: max-content;
  max-width: 210px;
  padding: 9px 13px;
  border: 1px solid rgba(47, 159, 239, 0.4);
  border-radius: 5px;
  background: #111a24;
  color: var(--text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.custom-chat-button:hover .custom-chat-label,
.custom-chat-button:focus-visible .custom-chat-label {
  opacity: 1;
  transform: translate(0, -50%);
}

@keyframes chat-pulse {
  0%, 58% {
    box-shadow: 0 0 0 0 rgba(47, 159, 239, 0.34);
  }
  82%, 100% {
    box-shadow: 0 0 0 14px rgba(47, 159, 239, 0);
  }
}

@media (max-width: 1080px) {
  section[id] {
    scroll-margin-top: 86px;
  }

  .main-nav {
    display: none;
    position: absolute;
    z-index: 10;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    max-height: calc(100dvh - 88px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    overflow-y: auto;
    border: 1px solid var(--line);
    background: rgba(11, 17, 24, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
  }

  .main-nav a::after {
    color: var(--accent);
    content: "›";
    font-size: 1.35rem;
    line-height: 1;
  }

  .mobile-nav-contact {
    min-height: 48px;
    display: inline-flex;
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .hero-layout {
    gap: 44px;
  }

  .capability-layout {
    gap: 55px;
  }

  .expertise-layout {
    grid-template-columns: 0.45fr 1.2fr;
  }

  .expertise-quote {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  .custom-chat-button {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 66px;
    height: 66px;
  }

  .custom-chat-label {
    display: none;
  }

  .header-inner {
    min-height: 70px;
  }

  .header-actions .button-small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-layout,
  .section-heading,
  .capability-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 54px;
  }

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

  .image-frame {
    left: 0;
  }

  .precision-card {
    right: 10px;
  }

  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 22px 0;
    row-gap: 16px;
  }

  .section {
    padding: 84px 0;
  }

  .section-heading {
    gap: 24px;
  }

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

  .service-card {
    min-height: 270px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .card-number {
    margin-bottom: 42px;
  }

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

  .expertise-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .experience-number {
    font-size: 7rem;
  }

  .expertise-quote {
    grid-column: auto;
  }

  .contact-layout {
    gap: 38px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-chat-button::before {
    animation: none;
  }
}

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

  .brand-header .brand-logo-frame {
    width: 138px;
    height: 34px;
  }

  .brand-header .brand-logo-image {
    width: 138px;
  }

  .header-inner {
    min-height: 64px;
    gap: 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .language-switcher {
    padding: 2px;
  }

  .lang-button {
    min-width: 28px;
    min-height: 30px;
  }

  .menu-toggle {
    width: 38px;
    height: 36px;
  }

  .main-nav {
    top: 100%;
    right: 0;
    left: 0;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 14px 16px;
    border-right: 0;
    border-left: 0;
  }

  .main-nav a {
    min-height: 46px;
    padding-inline: 12px;
  }

  .hero {
    padding: 42px 0 50px;
  }

  .hero-layout {
    gap: 40px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 10vw, 2.9rem);
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    margin-top: 26px;
  }

  .hero-skill-modeler {
    grid-column: 1 / -1;
  }

  .hero-visual {
    min-height: 0;
    display: grid;
    gap: 12px;
  }

  .image-frame {
    position: relative;
    inset: auto;
    height: clamp(300px, 82vw, 350px);
  }

  .image-label {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .image-label strong {
    font-size: 1.2rem;
  }

  .precision-card {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 18px 20px;
  }

  .precision-card p {
    font-size: 0.9rem;
  }

  .trust-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 14px 0;
  }

  .trust-inner span {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 0.66rem;
    text-align: center;
  }

  .service-card,
  .machine-panel {
    padding: 26px;
  }

  .machine-panel {
    min-height: 510px;
  }

  .machine-visual {
    height: 190px;
  }

  .machine-visual img {
    width: min(315px, 94%);
    max-height: 190px;
  }

  .project-gallery {
    gap: 10px;
  }

  .gallery-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
  }

  .gallery-dialog-shell {
    min-height: calc(100dvh - 14px);
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 4px;
    padding: 58px 6px 18px;
  }

  .gallery-nav {
    width: 38px;
    height: 46px;
    border-radius: 4px;
  }

  .gallery-nav span {
    font-size: 2rem;
  }

  .contact-section {
    padding: 64px 0;
  }

  .contact-dialog {
    width: min(100% - 20px, 620px);
    max-height: calc(100dvh - 20px);
  }

  .contact-dialog-panel {
    padding: 34px 20px 20px;
  }

  .contact-dialog-close-form {
    top: 12px;
    right: 12px;
  }

  .contact-dialog h2 {
    margin-right: 36px;
    margin-bottom: 24px;
  }

  .contact-dialog-option {
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    padding: 14px;
  }

  .contact-dialog-icon {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
