:root {
  --ink: #14201c;
  --navy: #1e4038;
  --steel: #4a635c;
  --gold: #2f8f7b;
  --text: #1a2421;
  --muted: #5d6f69;
  --line: #d5e0dc;
  --paper: #eef4f1;
  --white: #ffffff;
  --max: 1140px;
  --radius: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}
.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.logo small {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  font-size: 0.92rem;
}
.nav__links a:hover { color: var(--gold); }
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn--line {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.btn--line:hover { background: #fff; color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 0.42rem 0.85rem; font-size: 0.8rem; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 5.8rem 0 4.8rem;
  background: #14201c;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-pan 18s ease-in-out infinite alternate;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 22, 18, 0.94) 0%, rgba(14, 28, 24, 0.88) 46%, rgba(18, 40, 34, 0.78) 100%),
    radial-gradient(circle at 82% 18%, rgba(47, 143, 123, 0.22), transparent 42%);
}
.hero .btn--line {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}
.hero .btn--line:hover {
  background: #fff;
  color: var(--ink);
}
.hero__content {
  animation: hero-rise 0.9s ease both;
}
.hero__brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.55rem;
  line-height: 1.12;
}
.hero__brand::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 2px;
  margin-top: 0.75rem;
  background: var(--gold);
}
.hero h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  max-width: 34ch;
  margin: 0.95rem 0 0.75rem;
  font-weight: 500;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.9);
}
.hero p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  max-width: 44ch;
}
.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-pan {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.4%, -0.8%, 0); }
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.cta-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 0.35rem;
}
.cta-band p { color: var(--muted); }

.section { padding: 4.2rem 0; }
.section--paper { background: var(--paper); }
.section__head { margin-bottom: 1.9rem; max-width: 620px; }
.section__head h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
.section__head p { color: var(--muted); margin-top: 0.55rem; }

.product-block + .product-block { margin-top: 2.5rem; }
.product-block__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.product-block__title h3 { font-size: 1.25rem; }
.product-block__title span { color: var(--muted); font-size: 0.84rem; }

.grid { display: grid; gap: 0.95rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e4ece8;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card .card__media img { object-fit: contain; background: #e4ece8; }
.case-card .card__media img,
.solution .card__media img { object-fit: cover; }

.card__body { padding: 0.95rem 1rem 1.05rem; }
.card__body h3, .card__body h4 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.card__meta {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 0.8rem;
}
.card__body .btn { width: 100%; }
.solution .card__media { aspect-ratio: 16 / 10; }
.solution .card__body p { color: var(--muted); font-size: 0.9rem; }
.case-card .card__media { aspect-ratio: 16 / 11; }
.case-card .card__body { display: flex; justify-content: space-between; gap: 0.5rem; }
.case-card strong { font-size: 0.95rem; }
.case-card span { color: var(--muted); font-size: 0.84rem; }

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 2.7rem 0;
}
.page-hero h1 { font-size: clamp(1.85rem, 3vw, 2.5rem); }
.page-hero p { color: rgba(255, 255, 255, 0.7); margin-top: 0.4rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.84rem;
  cursor: pointer;
}
.chip.is-active,
.chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.contact-form {
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.contact-form label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; }

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  padding: 2.1rem 0;
  font-size: 0.9rem;
}
.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer a:hover { color: var(--gold); }
.site-footer small {
  display: block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 960px) {
  .grid--4,
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 20px 1.1rem;
  }
  .nav__links.is-open { display: flex; }
  .nav { position: relative; }
  .grid--4,
  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }
  .hero {
    min-height: auto;
    padding: 4.2rem 0 3.6rem;
    align-items: center;
  }
  .hero__brand { font-size: 1.45rem; }
  .cta-band__inner { align-items: flex-start; }
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg img,
  .hero__content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
