:root {
  --canvas: #fff;
  --ink: #111;
  --muted: #6d6c6c;
  --muted-soft: #8c8c8c;
  --accent: #f3761a;
  --chip: #ececec;
  --max: 1160px;
  --r-btn: 30px;
  --r-card: 20px;
  --r-pill: 32px;
  --r-field: 16px;
  --header: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 20; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s ease, background .2s ease;
  min-height: 44px; padding: 10px 28px;
  border: 0; border-radius: var(--r-btn);
  background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); }
.hero__slide { opacity: 0; transition: opacity .45s ease; }
.hero__slide.is-active { opacity: 1; }
.cap, .card, .case, .tile { transition: transform .25s ease; }
.card:hover, .case:hover, .tile:hover { transform: translateY(-4px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 14px 0 4px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 16px;
}
.eyebrow b {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-weight: 400; font-size: 14px;
}

.header {
  position: relative; z-index: 5;
  height: var(--header);
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  width: 100%; padding-inline: clamp(24px, 4vw, 72px);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { width: 42px; height: 42px; object-fit: contain; }
.logo__name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: nowrap; gap: clamp(12px, 1.5vw, 22px); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 16px; font-weight: 700; white-space: nowrap; }
.nav a:hover { text-decoration: underline; }
.header__side { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.header__meta { text-align: right; font-size: 14px; line-height: 1.3; }
.header__meta a { text-decoration: none; font-weight: 600; }
.header__meta span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; text-decoration: none; font-size: 12px;
}
.socials svg { width: 19px; height: 19px; }
.header__side .btn { padding-inline: 16px; font-size: 14px; white-space: nowrap; }
.menu-btn {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0;
}
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }

.hero { position: relative; min-height: calc(100vh - var(--header)); }
.hero__slide {
  display: none;
  min-height: calc(100vh - var(--header));
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  gap: 40px;
}
.hero__slide.is-active { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.hero__title {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.03em;
  text-transform: uppercase; max-width: 14ch;
}
.hero__lead { margin-top: 18px; font-size: 20px; max-width: 36ch; }
.hero__lead a { text-decoration: underline; }
.hero__slide .btn { margin-top: 28px; }
.hero__visual img { width: 100%; height: auto; object-fit: contain; }
.hero__nav {
  position: absolute; inset: 40% 12px auto; display: flex; justify-content: space-between; pointer-events: none;
}
.hero__nav button, .dots button, .filters button {
  pointer-events: auto; border: 0; background: transparent; cursor: pointer; font-size: 28px;
}
.dots { display: flex; justify-content: center; gap: 8px; padding-bottom: 28px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; background: #ccc; font-size: 0; }
.dots button[aria-current="true"] { background: var(--ink); }

.section { padding: 72px 0; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.display {
  font-size: clamp(40px, 4.5vw, 70px);
  font-weight: 500; line-height: 0.95; letter-spacing: -0.03em;
  text-transform: uppercase; max-width: 8ch;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.card {
  border: 1px solid var(--ink); border-radius: var(--r-card); overflow: hidden; background: #fff;
}
.card img { width: 100%; height: 210px; object-fit: cover; }
.card__body { padding: 18px 18px 22px; }
.card h3 { font-size: 25px; font-weight: 400; }
.card p { margin-top: 8px; color: var(--muted-soft); font-size: 18px; }

.marquee { overflow: hidden; margin-top: 28px; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: slide 28s linear infinite; }
.mark {
  width: 120px; height: 48px; border-radius: 8px;
  display: grid; place-items: center; color: #444; font-weight: 700; letter-spacing: 0.08em;
}
@keyframes slide { to { transform: translateX(-50%); } }

.caps { display: grid; gap: 12px; }
.cap {
  display: grid; grid-template-columns: 48px 1fr; gap: 8px 14px;
  align-items: center;
  border: 1px solid var(--ink); border-radius: var(--r-pill);
  padding: 16px 22px;
}
.cap svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cap h3 { font-size: 30px; font-weight: 500; grid-column: 2; }
.cap p { grid-column: 2; color: var(--muted); font-size: 14px; margin: 0; }
.cap--step { grid-template-columns: 36px 180px 1fr; }
.cap--step h3, .cap--step p { grid-column: auto; }
.cap--step span { font-size: 14px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: space-between; gap: 24px; margin-top: 28px; }
.tile {
  border: 1px solid var(--ink); border-radius: var(--r-card);
  min-height: 420px; padding: 28px 24px 72px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
}
.tile h3 {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 30px; font-weight: 500; margin: 0 0 16px;
  transition: transform .3s ease;
}
.tile p {
  margin: 0; max-width: 30ch; font-size: 14px;
  opacity: 0; transform: translateX(28px);
  transition: opacity .3s ease, transform .3s ease;
}
.tile .plus { position: absolute; top: 24px; right: 24px; font-size: 28px; }
.tile .btn { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap; }
.tile:hover h3, .tile:focus-within h3 { transform: rotate(180deg) translateY(10px); }
.tile:hover p, .tile:focus-within p { opacity: 1; transform: translateX(0); }
.tile:hover { transform: none; }

.bar {
  background: var(--ink); color: #fff; border-radius: 28px;
  display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 24px; align-items: center;
  padding: 28px 32px;
}
.bar p, .fine { font-size: 12px; color: #cfcfcf; }
.bar .fine a, .lead .fine a, .popup .fine a { color: inherit; }
.fields { display: flex; gap: 16px; }
.field {
  background: transparent; border: 0; border-bottom: 1px solid #fff;
  color: #fff; padding: 8px 0; min-width: 140px;
}
.field::placeholder { color: #ddd; }

.filters { display: flex; justify-content: flex-end; gap: 8px; margin: 8px 0 20px; }
.filters button {
  border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  display: block; text-decoration: none;
  border-radius: 22px; padding: 16px 16px 22px;
  box-shadow: inset 0 0 0 1px #eee;
}
.case img { height: 180px; object-fit: contain; margin: 8px auto; }
.chip {
  display: inline-block; background: var(--chip); color: #555;
  font-size: 11px; letter-spacing: 0.04em; border-radius: 6px; padding: 4px 8px; margin-right: 4px;
}
.case h3 { font-size: 18px; font-weight: 400; margin-top: 8px; }
.center { display: flex; justify-content: center; margin-top: 28px; }

.lead-intro { max-width: 520px; }
.lead-intro p { margin-top: 16px; max-width: 46ch; }
.lead {
  background: var(--ink); color: #fff; padding: 48px 0 72px;
}
.lead form, .popup form { width: min(520px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lead .field, .popup .field {
  background: #fff; color: var(--ink); border: 0; border-radius: var(--r-field);
  padding: 16px 18px; width: 100%;
}
.lead textarea.field { min-height: 110px; resize: vertical; }
.file {
  color: #fff; background: none; border: 0; text-align: left; cursor: pointer; padding: 8px 0;
}
.file input { max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #ddd; }
.lead .btn, .popup .btn { justify-self: center; background: transparent; color: #fff; }

.site-footer { border-top: 1px solid #eee; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 64px; }
.footer-info { display: grid; justify-items: start; gap: 8px; }
.footer-contact { font-size: 26px; font-weight: 600; text-decoration: none; }
.footer-info .addr { margin-top: 8px; font-size: 16px; }
.footer-info .socials { margin-top: 8px; }
.footer-logo img { width: 120px; height: 120px; object-fit: contain; }

.popup[hidden] { display: none; }
.popup {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(0,0,0,.45);
  display: grid; place-items: center; padding: 24px;
}
.popup__card {
  background: #fff; color: var(--ink); width: min(440px, 100%);
  border-radius: 16px; padding: 28px 24px; position: relative;
}
.popup__card h2 { font-size: 26px; font-weight: 500; text-align: center; }
.popup__card .lead-copy { text-align: center; color: var(--muted); margin: 8px 0 16px; }
.popup .field { border: 0; border-bottom: 1px solid #ddd; border-radius: 0; }
.popup .btn { background: var(--ink); width: 100%; }
.popup__close {
  position: absolute; top: 8px; right: 8px; border: 0; background: transparent;
  font-size: 28px; cursor: pointer; width: 44px; height: 44px;
}

.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 6;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.chat svg { width: 24px; height: 24px; }

.hero-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center;
  padding: 48px 0 24px;
}
.hero-split h1 { font-size: clamp(32px, 3vw, 47px); font-weight: 500; letter-spacing: -0.03em; max-width: 18ch; }
.hero-split .sub { margin: 16px 0 22px; font-size: 20px; max-width: 46ch; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-bottom: 22px; }
.points h3 { font-size: 20px; font-weight: 400; }
.points p { font-size: 14px; color: var(--muted); }

.prose { width: min(760px, calc(100% - 48px)); margin: 48px auto 72px; }
.prose h1 { font-size: 40px; font-weight: 500; margin-bottom: 24px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: #333; }
.prose ul { padding-left: 18px; }

.article { width: min(760px, calc(100% - 48px)); margin: 24px auto 72px; }
.article h1 { font-size: 36px; font-weight: 500; }
.article h2 { font-size: 22px; font-weight: 500; margin: 28px 0 8px; }
.article p, .article li { margin: 0 0 8px; }
.article ul { padding-left: 18px; }
.kicker { letter-spacing: 0.08em; font-size: 12px; color: var(--muted); margin: 8px 0 24px; }
.gallery { position: relative; min-height: 380px; }
.gallery .hero__slide.is-active { display: block; min-height: 0; width: 100%; }
.gallery img { width: 100%; height: 360px; object-fit: contain; }
.slim {
  display: flex; align-items: center; justify-content: center;
  height: 64px; border-bottom: 1px solid #eee; position: relative;
}
.slim a.back { position: absolute; left: 24px; text-decoration: none; font-size: 24px; }

.acc { border-top: 1px solid #ddd; }
.acc button {
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #ddd;
  padding: 18px 0; font-size: 20px; cursor: pointer;
}
.acc .panel { display: none; padding: 0 0 16px; color: var(--muted); }
.acc .panel.is-open { display: block; }

.equip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.equip article img { height: 240px; object-fit: contain; }
.equip h3 { font-size: 25px; font-weight: 400; margin-top: 12px; }
.equip p { color: var(--muted-soft); font-size: 18px; }

.poster {
  width: min(1000px, calc(100% - 48px)); margin: 0 auto;
  background: #f4f4f4; border-radius: 16px; overflow: hidden;
}
.poster img { width: 100%; height: 420px; object-fit: cover; }
.poster--scan { width: min(680px, calc(100% - 48px)); background: transparent; }
.poster--scan img { height: auto; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
  .hero__slide, .cap, .card, .case, .tile, .btn { transition: none; }
  .tile h3, .tile p { transition: none; }
}

@media (max-width: 1250px) {
  .header { position: sticky; top: 0; background: #fff; }
  .nav, .header__side { display: none; }
  .header.is-open .nav {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header); left: 0; right: 0;
    background: #fff; padding: 16px 24px 24px; border-bottom: 1px solid #eee;
  }
  .header.is-open .header__side {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: calc(var(--header) + 220px); left: 0; right: 0;
    background: #fff; padding: 0 24px 24px;
  }
  .menu-btn { display: grid; place-items: center; }
  .hero__slide.is-active, .hero-split, .split, .cards, .tiles, .case-grid, .equip, .bar, .contacts, .cap--step {
    grid-template-columns: 1fr;
  }
  .tile { min-height: 220px; }
  .tile p { opacity: 1; transform: none; }
  .fields { flex-direction: column; }
  .hero__title, .display { max-width: none; }
}

@media (max-width: 640px) {
  .split > * { min-width: 0; }
  .cap:not(.cap--step) { grid-template-columns: 36px minmax(0, 1fr); gap: 8px 10px; padding: 14px; }
  .cap:not(.cap--step) h3 { font-size: 22px; overflow-wrap: anywhere; }
  .footer-inner { align-items: flex-start; }
  .footer-logo img { width: 64px; height: 64px; }
  .footer-contact { font-size: 20px; }
}

@media (hover: none) {
  .tile p { opacity: 1; transform: none; }
}
