:root {
  --blue: #066aab;
  --blue-dark: #055a91;
  --navy: #0b1f33;
  --ink: #121417;
  --muted: #4a5560;
  --line: #d9dee4;
  --paper: #f4f7fa;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.12);
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
p { margin: 0 0 0.9em; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 0.6em; }
button, input, select, textarea { font: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(6, 106, 171, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}
.logo img { width: min(800px, 78vw); height: auto; }
.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.nav a { color: var(--ink); }
.nav a:hover { color: var(--blue); }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.hero {
  padding: 56px 0 28px;
  background:
    radial-gradient(1200px 280px at 80% -40px, rgba(6,106,171,0.10), transparent 60%),
    linear-gradient(#fff, var(--paper));
}
.kicker {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero h1 { font-size: clamp(22px, 3.6vw, 42px); white-space: nowrap; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
}
.hero-card {
  background: var(--navy);
  color: #d7e6f2;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card strong { color: #fff; font-weight: 600; }
.hero-card a { color: #8ec8ef; }
.hero-card p:last-child { margin-bottom: 0; }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0 8px;
}
.jump a {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
}
.jump a:hover { border-color: var(--blue); color: var(--blue); }

.machine {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.machine h2 { font-size: clamp(22px, 3vw, 28px); }
.machine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.video {
  aspect-ratio: 16 / 9;
  background: #0b1f33;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video iframe,
.video video {
  width: 100%;
  height: 100%;
  border: 0;
}
.video video {
  display: block;
  object-fit: cover;
  background: #0b1f33;
}
.machine-copy p:last-child { margin-bottom: 0; }

.contact {
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact h2 { font-size: 28px; }
.phone { font-weight: 600; color: var(--navy); }

form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
label { font-size: 14px; font-weight: 500; }
.req { color: #c0392b; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.22);
  border-radius: 4px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(6,106,171,0.28);
  border-color: var(--blue);
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  height: 1px; width: 1px;
  overflow: hidden;
}
.btn {
  appearance: none;
  border: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
}
.btn:hover { background: var(--blue-dark); }
.btn[disabled] { opacity: 0.65; cursor: wait; }
.form-status {
  min-height: 1.4em;
  font-size: 14px;
  font-weight: 500;
}
.form-status.ok { color: #157347; }
.form-status.err { color: #c0392b; }

.gallery-section {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}
.gallery-section h2 { font-size: clamp(22px, 3vw, 28px); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery a {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #e8eef3;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery a:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 51, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1400px, 92vw);
  max-height: 88vh;
  border-radius: 8px;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 28px 0;
  font-size: 15px;
}
.site-footer a { color: #8ec8ef; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .hero-grid,
  .machine-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 96px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--shadow);
  }
  .menu-toggle { display: block; }
}

@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .gallery { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
}
