:root {
  --red: #ed1c24;
  --red-dark: #c4161d;
  --black: #0e0e0e;
  --ink: #161616;
  --gray: #3a3a3a;
  --muted: #8a8a8a;
  --line: #ececec;
  --fog: #f3f3f3;
  --white: #fff;
  --header-h: 90px;
  --pad: clamp(16px, 2.2vw, 40px);
  --max: 1880px;
  --radius: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Golos Text", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  font-weight: 400;
}

.display {
  font-family: Unbounded, "Golos Text", sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.container {
  width: min(100% - var(--pad) * 2, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s var(--ease), backdrop-filter .3s;
}

.site-header.is-solid,
.site-header.theme-light {
  background: rgba(14, 14, 14, .92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 58px;
  width: auto;
  max-width: none;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  color: #fff;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.06em;
  transition: color .2s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--red);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 12px 20px;
  transition: background .2s, color .2s, transform .2s;
  white-space: nowrap;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: #fff;
  color: var(--gray);
}

.btn-white {
  background: #fff;
  color: var(--gray);
}

.btn-white:hover {
  background: var(--red);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}

.btn-ghost:hover {
  border-color: #fff;
}

.btn-dark {
  background: var(--black);
  color: #fff;
}

.btn-dark:hover {
  background: var(--red);
}

.icon-btn {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  background: #fff;
  color: var(--red);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: .2s;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 60;
  display: none;
  flex-direction: column;
  padding: 28px 24px;
  color: #fff;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  font-size: 28px;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid #222;
}

.mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.close-menu {
  background: none;
  border: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  color: #fff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #111;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - var(--pad) * 2, var(--max));
  margin: 0 auto 56px;
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 92px);
  max-width: 16ch;
  text-transform: lowercase;
}

.hero-lead {
  max-width: 46ch;
  margin-top: 18px;
  color: rgba(255,255,255,.82);
  font-size: 18px;
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.director-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(14,14,14,.72);
  border-radius: 12px;
  padding: 10px 14px 10px 10px;
  backdrop-filter: blur(12px);
}

.director-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.director-card strong {
  display: block;
  font-weight: 500;
}

.director-card span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.director-card .btn {
  margin-left: 8px;
  padding: 8px 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Marquee */
.marquee {
  background: var(--black);
  color: #fff;
  overflow: hidden;
  border-top: 1px solid #222;
}

.marquee-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: marquee 70s linear infinite;
  padding: 8px 0;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee a {
  width: 280px;
  height: 180px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

.marquee a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.marquee a:hover img {
  transform: scale(1.06);
}

.marquee a span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  font-size: 13px;
  text-shadow: 0 1px 8px #000;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 56px);
  max-width: 18ch;
}

.page-hero {
  padding: calc(var(--header-h) + 48px) 0 48px;
  background: var(--black);
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 72px);
  max-width: 16ch;
  margin-top: 12px;
}

.crumbs {
  color: var(--muted);
}

.crumbs a:hover {
  color: #fff;
}

/* Projects grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
  color: #fff;
  min-height: 280px;
}

.project-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card figcaption {
  padding: 16px 4px 8px;
  color: var(--ink);
}

.project-card .meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.project-card.overlay figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
}

.project-card.overlay .meta {
  color: rgba(255,255,255,.75);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  text-transform: lowercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.more-link:hover {
  color: var(--red);
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.fact {
  padding: 20px;
  background: var(--fog);
  border-radius: 8px;
}

.fact b {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 6px;
}

.fact span {
  color: var(--muted);
  font-size: 15px;
}

/* Services */
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.chip {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: .2s;
}

.chip.is-active,
.chip:hover {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.service-card {
  background: var(--fog);
  border-radius: 10px;
  padding: 22px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform .25s var(--ease), background .2s;
}

.service-card:hover {
  background: var(--black);
  color: #fff;
  transform: translateY(-3px);
}

.service-card h3 {
  font-size: 22px;
  font-weight: 500;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

.service-card:hover p {
  color: rgba(255,255,255,.7);
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 220px;
}

.step .num {
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 500;
}

.step p {
  color: var(--muted);
  font-size: 16px;
}

.section-dark {
  background: var(--black);
  color: #fff;
}

.section-dark .mono {
  color: #8a8a8a;
}

.section-dark .step {
  border-color: #2a2a2a;
  background: #161616;
}

.section-dark .step p {
  color: #9a9a9a;
}

/* Partners */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.partner {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  min-width: 180px;
}

.partner b {
  display: block;
}

.partner span {
  color: var(--muted);
  font-size: 13px;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.blog-card {
  display: block;
}

.blog-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

.blog-card h3 {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 500;
}

.blog-card .mono {
  margin-top: 8px;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: #fff;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer .logo img {
  height: 52px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,.72);
  margin: 8px 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #222;
  color: var(--muted);
  font-size: 14px;
}

/* Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  background: var(--fog);
  border-radius: 12px;
  padding: 32px;
  min-height: 180px;
}

.contact-card a.big {
  font-size: 28px;
  font-weight: 500;
  display: inline-block;
  margin-top: 12px;
}

.contact-card a.big:hover {
  color: var(--red);
}

.map {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 380px;
  background: #ddd;
}

.map iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.person {
  background: var(--fog);
  border-radius: 10px;
  overflow: hidden;
}

.person img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: grayscale(.2);
}

.person div {
  padding: 16px;
}

.person h3 {
  font-size: 18px;
  font-weight: 500;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 8px;
  padding-left: 28px;
}

.tl-item {
  padding: 0 0 32px;
  position: relative;
}

.tl-item::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
  position: absolute;
  left: -33px;
  top: 6px;
}

.tl-item h3 {
  font-size: 22px;
  margin: 4px 0 8px;
}

.docs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.doc {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  min-height: 160px;
}

/* Project page: one huge + two stacked small */
.gallery {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: min(86vh, 920px);
  min-height: 560px;
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
}

.gallery .main {
  grid-column: 1;
  grid-row: 1 / -1;
}

.gallery .side {
  min-height: 0;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  margin-top: 16px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 16px;
}

.spec-row span {
  color: var(--muted);
}

.article {
  max-width: 760px;
}

.article p {
  margin: 0 0 16px;
  color: #333;
}

.article h2 {
  font-size: 28px;
  margin: 32px 0 12px;
}

.policy ol {
  padding-left: 20px;
}

.policy li {
  margin: 10px 0;
  color: #333;
}

/* Filters */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.modal-card {
  position: relative;
  width: min(920px, calc(100% - 32px));
  margin: 8vh auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.modal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 24px;
}

body.no-scroll {
  overflow: hidden;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal .7s var(--ease) forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1199px) {
  :root { --header-h: 80px; }
  .logo img { height: 48px; }
  .nav { gap: 16px; }
  .nav a { font-size: 12px; }
  .project-grid,
  .service-grid,
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .team-grid,
  .docs { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    min-height: 0;
  }
  .gallery .main {
    grid-column: auto;
    grid-row: auto;
    height: min(70vh, 420px);
  }
  .gallery .side {
    height: 200px;
  }
  .nav,
  .header-cta .btn-red { display: none; }
  .burger { display: grid; place-items: center; }
  .hero h1 { font-size: 34px; }
  .split,
  .contact-grid,
  .project-grid,
  .service-grid,
  .blog-grid,
  .process,
  .team-grid,
  .docs,
  .facts,
  .modal-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .split img { height: 280px; }
  .project-card img { height: 240px; }
  .marquee a { width: 220px; height: 140px; }
  .section { padding: 56px 0; }
  .icon-btn { width: 40px; height: 40px; }
}
