:root {
  --navy: #1f2a44;
  --navy-deep: #151c2e;
  --gold: #c4a35a;
  --accent: #8b2942;
  --text: #1a1f2c;
  --muted: #5c6578;
  --line: #e2e6ee;
  --paper: #f5f6f8;
  --white: #ffffff;
  --max: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
}
.logo small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}
.logo div:last-child {
  font-size: 0.95rem;
  line-height: 1.25;
  max-width: 18ch;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.94rem;
}
.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.7rem 1.15rem;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--line {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--line:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: 0.45rem 0.8rem; font-size: 0.82rem; }

.hero {
  background:
    linear-gradient(115deg, rgba(21, 28, 46, 0.92), rgba(31, 42, 68, 0.78)),
    radial-gradient(circle at 80% 20%, rgba(196, 163, 90, 0.22), transparent 40%),
    #151c2e;
  color: #fff;
  padding: 5.5rem 0 5rem;
}
.hero__eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  max-width: 14ch;
  margin: 0.7rem 0 0.85rem;
}
.hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 40ch;
}
.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.section { padding: 4rem 0; }
.section--paper { background: var(--paper); }
.section__head {
  margin-bottom: 1.8rem;
  max-width: 640px;
}
.section__head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
}
.section__head p {
  color: var(--muted);
  margin-top: 0.55rem;
}

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

.grid {
  display: grid;
  gap: 0.9rem;
}
.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: #e8ecf2;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__body { padding: 0.9rem 0.95rem 1rem; }
.card__body h3, .card__body h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.card__meta {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 0.75rem;
}
.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(--navy-deep);
  color: #fff;
  padding: 2.6rem 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-hero p { color: rgba(255, 255, 255, 0.72); margin-top: 0.4rem; }

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

.contact-form {
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.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(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 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.5);
}

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .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 { padding: 4rem 0 3.5rem; }
}
