:root {
  --accent: #4e97d9;
  --ink: #2f3338;
  --muted: #7f8891;
  --line: #e8edf0;
  --soft: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(47, 51, 56, 0.08);
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; letter-spacing: .04em; }
.brand img { height: 34px; width: auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2f6fad);
}
.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .95rem; color: var(--ink); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-toggle {
  display: none; border: 0; background: transparent; width: 42px; height: 42px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; margin: 6px 8px; background: var(--ink); transition: .2s;
}
.hero {
  position: relative; min-height: min(78vh, 720px); overflow: hidden; background: #111;
}
.hero-track { display: flex; height: 100%; transition: transform .7s ease; }
.hero-slide {
  position: relative; min-width: 100%; min-height: min(78vh, 720px);
  background-size: cover; background-position: center;
}
.hero-card {
  position: absolute; inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 2rem));
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.18);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.hero-card h1 {
  margin: 0 0 .35rem; font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: .12em; font-weight: 700;
}
.hero-card p { margin: 0; color: var(--ink); font-weight: 400; }
.hero-nav {
  position: absolute; inset: auto 1rem 1.2rem auto;
  display: flex; gap: .5rem; z-index: 2;
}
.hero-nav button, .hero-arrow {
  border: 0; background: rgba(255,255,255,.9); color: var(--ink);
  width: 36px; height: 36px; border-radius: 999px; cursor: pointer;
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
}
.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }
.section { padding: 4.5rem 0; }
.section.soft { background: var(--soft); }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 {
  margin: 0 0 .4rem; font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2rem); color: #9aa3ab;
}
.section-head p { margin: 0; color: var(--muted); }
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin: 0 0 1.8rem; padding: 0; list-style: none;
}
.filters button {
  border: 0; background: transparent; color: var(--muted);
  padding: .55rem 1rem; cursor: pointer; font-size: .95rem;
}
.filters button[aria-selected="true"] {
  background: var(--accent); color: #fff;
}
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0;
}
.product-card {
  background: var(--white); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(47,51,56,.12); }
.product-card.is-hidden { display: none; }
.product-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover img { transform: scale(1.05); }
.product-card h3 {
  margin: 0; padding: .9rem 1rem 1.05rem; font-size: 1rem; font-weight: 500; text-align: center;
}
.news-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.news-card {
  display: grid; grid-template-columns: 160px 1fr; gap: 1rem;
  background: var(--white); box-shadow: var(--shadow); padding: .75rem;
}
.news-card img { width: 160px; height: 120px; object-fit: cover; }
.news-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 600; }
.news-card p { margin: 0 0 .55rem; color: var(--muted); font-size: .92rem; }
.meta { color: #a0a8b0; font-size: .85rem; }
.page-hero {
  padding: 3.5rem 0 2.5rem; background: linear-gradient(180deg, #f7fafc, #fff);
  border-bottom: 1px solid var(--line); text-align: center;
}
.page-hero h1 { margin: 0 0 .4rem; font-weight: 500; }
.page-hero p { margin: 0; color: var(--muted); }
.about-layout {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
}
.about-layout img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.team-grid, .case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.case-grid { grid-template-columns: repeat(4, 1fr); }
.team-card, .case-card {
  background: var(--white); box-shadow: var(--shadow); overflow: hidden;
}
.team-card img, .case-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.team-card .body { padding: 1rem 1.1rem 1.2rem; }
.team-card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.team-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.form-card {
  max-width: 720px; margin: 0 auto; background: var(--white); box-shadow: var(--shadow); padding: 1.5rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .35rem; font-size: .92rem; color: var(--muted); }
input, textarea {
  border: 1px solid var(--line); padding: .75rem .8rem; font: inherit; color: var(--ink); background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.full { grid-column: 1 / -1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: var(--accent); color: #fff; padding: .75rem 1.25rem;
  cursor: pointer; font: inherit;
}
.btn:hover { filter: brightness(.96); }
.form-status { margin: .75rem 0 0; color: var(--accent); }
.site-footer {
  background: #2f3338; color: #c7ced4; padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem;
}
.site-footer h3 { margin: 0 0 .8rem; color: #fff; font-size: 1rem; font-weight: 600; }
.site-footer a { color: #c7ced4; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-note { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; font-size: .85rem; }
.reveal {
  opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
html[data-motion-mode="off"] .reveal { opacity: 1; transform: none; transition: none; }
html[data-motion-mode="off"] .product-card img,
html[data-motion-mode="off"] .hero-track { transition: none; }
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout, .news-grid, .footer-grid, .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: .75rem 1rem 1rem;
  }
  .nav-links.is-open { display: flex; }
  .news-card { grid-template-columns: 1fr; }
  .news-card img { width: 100%; height: 180px; }
  .form-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}
