
:root {
  --ink: #181818;
  --navy: #173c78;
  --blue: #315fe5;
  --muted: #71747a;
  --line: #dadde2;
  --paper: #fcfcfa;
  --white: #ffffff;
  --pale: #f2f5fb;
  --mono: "Courier New", monospace;
  --page: min(1450px, calc(100% - 112px));
  --btn-radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { max-width: 100%; }
.page-width { width: var(--page); margin-inline: auto; }
.section-label,
.kicker,
.archive-caption small,
.archive-caption > div span {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.section-label { margin: 0; color: var(--blue); font-size: 10px; }
.section-label,
.kicker { display: none; }

/* Header */
.site-header {
  height: 100px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; width: max-content; }
.brand img { width: 50px; height: 58px; object-fit: contain; }
.brand > span { display: flex; flex-direction: column; }
.brand strong { font-size: 21px; line-height: 1; letter-spacing: -.025em; }
.brand small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.site-header nav { display: flex; align-items: center; gap: 46px; font-size: 16px; }
.site-header nav a { transition: color .2s ease; }
.site-header nav a:hover { color: var(--blue); }
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-link {
  color: var(--navy);
  font-size: 14px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: color .2s ease, background .25s ease, border-color .2s ease;
}
.header-link span { margin-left: 10px; color: var(--blue); font-size: 17px; }
.header-link-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--navy);
  border-radius: var(--btn-radius);
  font-size: 12px;
}
.header-link-accent span { margin-left: 10px; color: #fff; font-size: 16px; }
.header-link-accent:hover {
  color: #fff;
  background: var(--blue);
}

/* Public contact links */
.site-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.site-contacts__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .2s ease, transform .2s ease;
}
.site-contacts__link:hover {
  color: var(--blue);
}
.site-contacts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  box-shadow: 0 1px 2px rgba(23, 60, 120, 0.18);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.site-contacts__icon svg {
  width: 20px;
  height: 20px;
}
.site-contacts__link:hover .site-contacts__icon {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 12px rgba(49, 95, 229, 0.28);
  transform: translateY(-1px);
}
.site-contacts--header {
  gap: 8px 14px;
}
.site-contacts--header .site-contacts__link {
  font-size: 12px;
  font-weight: 600;
}
.site-contacts--header .site-contacts__icon {
  width: 36px;
  height: 36px;
}
.site-contacts--header .site-contacts__icon svg {
  width: 18px;
  height: 18px;
}
.site-contacts--footer {
  gap: 10px 20px;
}
.site-contacts--footer .site-contacts__link {
  font-size: 13px;
  color: #3d4654;
}
.site-contacts--footer .site-contacts__icon {
  width: 42px;
  height: 42px;
}
.site-contacts--footer .site-contacts__icon svg {
  width: 21px;
  height: 21px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 28px 36px;
  padding: 30px 0 34px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
  padding: 12px 0 12px 8px;
}
.kicker { margin: 0 0 32px; color: var(--blue); font-size: 12px; }
h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(42px, 3.4vw, 57px);
  font-weight: 520;
  line-height: 1.06;
  letter-spacing: -.05em;
}
.hero-text {
  max-width: 480px;
  margin: 24px 0 30px;
  color: #5f6268;
  font-size: 17px;
  line-height: 1.65;
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.primary-button,
.offer-copy > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--btn-radius);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.primary-button {
  width: 206px;
  height: 56px;
  padding: 0 22px;
  color: #fff;
  background: var(--navy);
  font-size: 14px;
}
.primary-button:hover { background: var(--blue); transform: translateY(-2px); }
.primary-button span { font-size: 20px; }
.text-link {
  padding: 18px 20px;
  border: 1px solid #b9c2d4;
  border-radius: var(--btn-radius);
  color: var(--navy);
  font-size: 14px;
  transition: border-color .2s, color .2s;
}
.text-link:hover { color: var(--blue); border-color: var(--blue); }
.hero-visual {
  position: relative;
  min-width: 0;
  z-index: 1;
}
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1003 / 713;
  overflow: hidden;
  background: var(--paper);
}
.hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center right;
}
.hero-spec {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #dde0e6;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 1px 2px #0000000a;
  overflow: hidden;
}
.hero-chip .spec-icon {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

/* Services */
.services { padding: 72px 0 76px; border-bottom: 1px solid var(--line); }
.offer-head,
.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 30px;
}
.offer-head h2,
.archive-head h2,
.section-intro h2 {
  margin: 0;
  font-size: clamp(38px, 3.15vw, 46px);
  font-weight: 520;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.offer-head h2,
.archive-head h2 { white-space: nowrap; }
.offer-head > p:last-child,
.archive-head > p:last-child {
  max-width: 365px;
  margin: 0;
  padding-left: 26px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.offer-layout {
  display: grid;
  grid-template-columns: 29% 71%;
  min-height: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.offer-tabs {
  display: flex;
  flex-direction: column;
  align-self: start;
  border-left: 1px solid var(--line);
}
.offer-tabs button {
  appearance: none;
  flex: 0 0 auto;
  height: 176px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 72px 1fr 28px;
  align-items: center;
  padding: 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.offer-tabs button:last-child { border-bottom: 0; }
.offer-tabs button > span { font-size: 39px; font-weight: 450; letter-spacing: -.05em; }
.offer-tabs button strong {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-size: 17px;
  font-weight: 520;
  line-height: 1.25;
}
.offer-tabs button i { color: var(--blue); font-size: 22px; font-style: normal; text-align: right; }
.offer-tabs button:hover { background: #f4f6fa; }
.offer-tabs button.active { color: #fff; background: var(--navy); }
.offer-tabs button.active strong { border-left-color: #ffffff55; }
.offer-tabs button.active i { color: #fff; }
.offer-panel { min-width: 0; display: grid; grid-template-columns: 43% 57%; align-items: stretch; border-left: 1px solid var(--line); }
.offer-copy { min-width: 0; padding: 18px 22px 18px 26px; display: flex; flex-direction: column; }
.offer-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.offer-copy > i { display: block; width: 32px; margin-bottom: 10px; border-top: 2px solid var(--blue); }
.offer-copy > p { max-width: 430px; margin: 0; color: #5d6066; font-size: 14px; line-height: 1.45; }
.offer-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.offer-specs > div {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.offer-specs > div:last-child { border: 0; }
.offer-specs strong { font-size: 9px; font-weight: 600; line-height: 1.3; text-transform: uppercase; }
.spec-icon {
  width: 24px;
  height: 24px;
  margin-inline: auto;
  display: block;
  position: relative;
  overflow: hidden;
  color: var(--blue);
  flex: 0 0 auto;
  --spec-icon-fill: #fff;
}
.offer-specs .spec-icon { --spec-icon-fill: var(--paper); }
.spec-icon-1 {
  border: 0;
  transform: none;
}
.spec-icon-1::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
  box-sizing: border-box;
}
.spec-icon-1::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
  box-sizing: border-box;
}
.spec-icon-2 {
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-sizing: border-box;
  width: 16px;
  height: 18px;
  margin: 3px auto;
}
.spec-icon-2::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}
.spec-icon-3 {
  border: 0;
  transform: none;
  box-shadow: none;
}
.spec-icon-3::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border: 1px solid currentColor;
  background: var(--spec-icon-fill);
  box-sizing: border-box;
  transform: rotate(45deg);
  box-shadow:
    0 6px 0 -1px var(--spec-icon-fill),
    0 6px 0 0 currentColor,
    0 12px 0 -1px var(--spec-icon-fill),
    0 12px 0 0 currentColor;
}
.hero-chip .spec-icon {
  width: 18px;
  height: 18px;
  margin: 0;
  overflow: hidden;
}
.hero-chip .spec-icon-1::before { width: 11px; height: 11px; }
.hero-chip .spec-icon-1::after { width: 5px; height: 5px; }
.hero-chip .spec-icon-2 {
  width: 12px;
  height: 14px;
  margin: 2px auto;
}
.hero-chip .spec-icon-2::before {
  left: 2px;
  right: 2px;
  top: 3px;
  box-shadow: 0 3px 0 currentColor, 0 6px 0 currentColor;
}
.hero-chip .spec-icon-3::before {
  top: 1px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  box-shadow:
    0 4px 0 -1px var(--spec-icon-fill),
    0 4px 0 0 currentColor,
    0 8px 0 -1px var(--spec-icon-fill),
    0 8px 0 0 currentColor;
}
.offer-copy > a {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  padding: 0 18px;
  color: #fff;
  background: var(--navy);
  border-radius: var(--btn-radius);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.offer-copy > a:hover { background: var(--blue); }
.offer-copy > a span { font-size: 18px; }
.offer-art {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  aspect-ratio: 5 / 4;
  align-self: stretch;
}
.offer-art::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: linear-gradient(#173c780a 1px, transparent 1px), linear-gradient(90deg, #173c780a 1px, transparent 1px);
  background-size: 64px 64px;
}
.offer-art img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  animation: offer-in .4s ease both;
}
.offer-guides { position: absolute; z-index: 2; right: 22px; top: 20%; bottom: 18%; display: flex; flex-direction: column; justify-content: space-between; }
.offer-guides span { width: 8px; height: 8px; position: relative; border: 1px solid var(--blue); border-radius: 50%; background: #fff; }
.offer-guides span::before { content: ""; position: absolute; right: 7px; top: 3px; width: 60px; border-top: 1px dashed #315fe577; }
@keyframes offer-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Projects */
.archive-projects { padding: 72px 0 88px; overflow: hidden; border-bottom: 1px solid var(--line); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.archive-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .35s, box-shadow .35s;
}
.archive-card:hover { transform: translateY(-6px); box-shadow: 0 20px 46px #18233d10; }
.archive-card.featured { transform: none; }
.archive-card.featured:hover { transform: translateY(-6px); }
.archive-image { height: 360px; position: relative; overflow: hidden; background: #f2f3f4; flex-shrink: 0; display: block; color: inherit; }
.archive-card.featured .archive-image { height: 360px; }
.archive-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 64%, #0f1a2e36); pointer-events: none; }
.archive-image img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.35) contrast(1.02); transition: filter .4s, transform .6s; }
.archive-card:hover .archive-image img { filter: saturate(.7); transform: scale(1.015); }
.archive-image > span { position: absolute; z-index: 2; left: 20px; bottom: 18px; padding: 7px 9px; color: #fff; background: var(--navy); font: 12px var(--mono); }
.archive-empty { grid-column: 1 / -1; color: var(--muted); padding: 24px 0; }
.archive-caption {
  flex: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  padding: 24px;
}
.archive-caption small { color: var(--blue); font-size: 9px; }
.archive-caption h3 {
  margin: 13px 0 14px;
  min-height: calc(1.05em * 2);
  font-size: clamp(22px, 1.75vw, 27px);
  font-weight: 540;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.archive-caption > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.archive-caption > div { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.archive-caption > div span { color: #6b6e74; font-size: 9px; }
.archive-caption > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding: 14px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  color: var(--navy);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: border-color .2s, color .2s;
}
.archive-caption > a:hover { color: var(--blue); border-color: var(--blue); }
.archive-caption > a span { color: var(--blue); font-size: 18px; }


/* Process */
.process { padding: 72px 0 76px; border-bottom: 1px solid var(--line); }
.section-intro { margin-bottom: 48px; }
.section-intro h2 { margin: 0; white-space: nowrap; }
.process ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process li {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.process li:last-child { border-right: 0; }
.process-icon {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  height: 72px;
  max-width: 96px;
  margin: 0;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  opacity: .92;
}
.process-copy {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.process-copy strong {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.25;
}
.process-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Footer */
.footer {
  min-height: 142px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px 32px;
  margin-top: 28px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.footer-meta p,
.footer-meta a { color: #74777d; font-size: 10px; }
.footer-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  margin-bottom: 4px;
}
.footer-services a {
  color: #5a5e66;
  font-size: 11px;
  letter-spacing: .02em;
  text-decoration: none;
}
.footer-services a:hover { color: var(--navy); }
.footer-brand img { width: 43px; height: 49px; }

@media (max-width: 1050px) {
  :root { --page: min(100% - 40px, 860px); }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .site-contacts--header .site-contacts__text { display: none; }
  .site-contacts--header { gap: 6px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 0 28px;
  }
  .hero-copy { padding: 8px 0 0; }
  .hero-visual { order: -1; }
  .hero-spec { position: static; justify-content: flex-start; padding: 0; margin-top: 12px; }
  .offer-head h2,
  .archive-head h2,
  .section-intro h2 { white-space: normal; }
  .offer-head,
  .archive-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .offer-layout { grid-template-columns: 1fr; }
  .offer-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 0; }
  .offer-tabs button { height: 142px; min-height: 0; grid-template-columns: 1fr 22px; padding: 20px; border-right: 1px solid var(--line); }
  .offer-tabs button > span { grid-column: 1 / -1; font-size: 30px; }
  .offer-tabs button strong { padding: 0; border: 0; font-size: 14px; }
  .offer-tabs button:last-child { border-right: 0; }
  .offer-panel { min-height: 0; grid-template-columns: 44% 56%; border-left: 0; }
  .offer-copy { padding: 18px 20px; }
  .offer-head > p:last-child,
  .archive-head > p:last-child { max-width: 430px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card.featured { grid-column: auto; }
  .archive-card.featured .archive-image,
  .archive-image { height: 350px; }
}

@media (max-width: 620px) {
  :root { --page: calc(100% - 28px); }
  .site-header { height: 88px; }
  .brand img { width: 42px; height: 48px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 7px; }
  .header-link-accent {
    height: 40px;
    padding: 0 12px;
    font-size: 10px;
  }
  .header-link-accent span { font-size: 14px; }
  .site-contacts--header .site-contacts__text { display: none; }
  .site-contacts--header { gap: 6px; }
  .hero { padding: 18px 0 22px; }
  .hero-copy { padding: 0; }
  .hero-art { aspect-ratio: 1003 / 713; }
  h1 { font-size: 39px; line-height: 1.07; }
  .hero-text { margin: 22px 8px 26px 0; font-size: 15px; line-height: 1.55; }
  .hero-actions { gap: 10px; }
  .primary-button { width: 54%; padding: 0 16px; }
  .text-link { padding: 18px 12px; }
  .hero-chip { font-size: 10px; padding: 7px 10px; }
  .services,
  .archive-projects,
  .process { padding: 50px 0; }
  .offer-head h2,
  .archive-head h2,
  .section-intro h2 { font-size: 36px; }
  .offer-head,
  .archive-head { margin-bottom: 22px; }
  .offer-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .offer-tabs button { flex: 0 0 82%; height: 132px; min-height: 0; scroll-snap-align: start; }
  .offer-panel { min-height: 0; display: flex; flex-direction: column; }
  .offer-copy { padding: 20px 0 22px; }
  .offer-copy h3 { margin: 0 0 10px; font-size: 28px; }
  .offer-copy > p { font-size: 14px; }
  .offer-specs { margin-top: 14px; }
  .offer-art { aspect-ratio: 5 / 4; height: auto; border-top: 1px solid var(--line); }
  .offer-art img { width: 100%; height: 100%; margin-left: 0; }
  .offer-head > p:last-child,
  .archive-head > p:last-child { padding-left: 0; border-left: 0; }
  .archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: visible;
    padding-bottom: 0;
  }
  .archive-card,
  .archive-card.featured {
    width: 100%;
    max-width: 100%;
    flex: none;
    transform: none;
  }
  .archive-card:hover,
  .archive-card.featured:hover { transform: none; }
  .archive-card.featured .archive-image,
  .archive-image { height: 310px; }
  .archive-caption h3 { font-size: 24px; }
  .process ol { grid-template-columns: 1fr; }
  .process li {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    min-height: 0;
  }
  .process li:last-child { border-bottom: 0 !important; }
  .process-icon { height: 68px; max-width: 90px; }
  .footer { min-height: 0; padding: 40px 0; flex-wrap: wrap; gap: 20px; }
  .footer-meta { order: 3; width: 100%; align-items: flex-start; text-align: left; }
  .site-contacts--footer { order: 2; width: 100%; }
}

/* Project detail */
.project-detail { padding: 28px 0 100px; }
.project-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #74777d;
  font-size: 12px;
  letter-spacing: .02em;
}
.project-crumbs a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.project-crumbs a:hover { color: var(--blue); }
.project-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  margin-bottom: 28px;
  color: #fff;
  background: var(--navy);
  border-radius: var(--btn-radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .2s ease, transform .2s ease;
}
.project-back:hover {
  color: #fff;
  background: var(--blue);
  transform: translateY(-1px);
}
.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px 40px;
  align-items: start;
  margin-bottom: 48px;
}
.project-hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 520;
  line-height: 1.06;
  letter-spacing: -.04em;
}
.project-title-divider {
  display: block;
  width: min(100%, 400px);
  max-width: 100%;
  height: 1px;
  background: var(--line);
}
.project-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.project-hero-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f3f4;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
}
.project-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.project-image-tag {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 10px 14px;
  color: #fff;
  background: rgba(23, 60, 120, 0.92);
  border-radius: var(--btn-radius);
  font: 11px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-image-tags {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 220px);
}
.project-image-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dde0e6;
  border-radius: 6px;
  box-shadow: 0 1px 2px #0000000a;
  font: 600 11px Inter, Arial, "Helvetica Neue", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.project-body { max-width: 920px; }
.project-description {
  max-width: 560px;
  color: #5f6268;
  font-size: 17px;
  line-height: 1.7;
}
.project-description p:first-child { margin-top: 0; }
.project-description p:last-child { margin-bottom: 0; }
.project-gallery {
  margin-top: 56px;
  width: 100%;
  max-width: none;
}
.project-gallery h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 2.2vw, 34px);
  font-weight: 520;
  letter-spacing: -.03em;
}
.project-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: 100%;
}

@media (min-width: 992px) {
  .project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .project-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project-gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  overflow: hidden;
  background: #fff;
  min-width: 0;
  width: 100%;
}

.project-gallery-item img {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #f5f7f9;
  transition: transform .35s ease, filter .35s ease;
}

.project-gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}
.project-gallery-trigger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.project-gallery-item:hover .project-gallery-trigger img {
  transform: scale(1.02);
  filter: saturate(.92);
}

.project-gallery-item figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

/* Project gallery lightbox */
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.project-lightbox[hidden] { display: none !important; }
.project-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(90, 94, 102, 0.82);
  backdrop-filter: blur(2px);
}
.project-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 32px));
  max-width: 100%;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(24, 35, 61, 0.22);
  overflow: hidden;
  animation: projectLightboxIn .28s ease;
}
@keyframes projectLightboxIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.project-lightbox__stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 56px 12px;
  background: #f3f4f6;
}
.project-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, calc(100vh - 160px));
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.project-lightbox__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.project-lightbox__caption {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 520;
  letter-spacing: -.01em;
}
.project-lightbox__caption:empty { display: none; }
.project-lightbox__counter {
  margin: 0;
  flex-shrink: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-lightbox__close,
.project-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: var(--navy);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.project-lightbox__close:hover,
.project-lightbox__nav:hover {
  background: var(--blue);
}
.project-lightbox__close {
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: var(--btn-radius);
  font-size: 24px;
  line-height: 1;
}
.project-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: var(--btn-radius);
  font-size: 18px;
}
.project-lightbox__nav:hover { transform: translateY(-50%); }
.project-lightbox__nav--prev { left: 10px; }
.project-lightbox__nav--next { right: 10px; }
.project-lightbox__nav:disabled {
  opacity: .35;
  cursor: default;
  background: #8a8e96;
}

body.project-lightbox-open { overflow: hidden; }

@media (max-width: 720px) {
  .project-lightbox { padding: 10px; }
  .project-lightbox__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
  .project-lightbox__stage { padding: 48px 12px 10px; }
  .project-lightbox__nav {
    top: auto;
    bottom: 64px;
    transform: none;
  }
  .project-lightbox__nav:hover { transform: none; }
  .project-lightbox__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.related-projects {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.related-projects h2 {
  margin: 0 0 22px;
  font-size: 28px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.related-card .archive-image { height: 220px; }
.related-card .archive-caption h3 { font-size: 20px; }
.related-card .archive-caption p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-landing {
  padding: 36px 0 90px;
  max-width: 720px;
}
.service-landing h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.12;
}
.service-landing__lead,
.service-landing__body {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.service-landing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 28px;
}
.service-landing__more {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.service-landing__more ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.service-landing__more a {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
}
.service-landing__more a:hover { color: var(--blue); }

@media (max-width: 1050px) {
  .project-hero { grid-template-columns: 1fr; }
  .project-hero-copy { gap: 18px; }
  .project-image-tags {
    max-width: calc(100% - 36px);
    bottom: 64px;
  }
  .related-grid { grid-template-columns: 1fr; }
  .footer-services { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
