:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --text: #1d243f;
  --muted: #5e6782;
  --primary: #16163f;
  --accent: #fc8c4f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 22, 63, 0.09);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.header-top {
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  align-items: center;
}

.header-socials {
  display: flex;
  gap: 1rem;
}

.header-socials a {
  color: #fff;
}

.header-main {
  background: var(--surface);
  border-bottom: 1px solid #ececf3;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-main-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 0;
}

.brand img {
  width: 130px;
  height: auto;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  border: 1px solid #d8d9e6;
  background: #fff;
  color: var(--primary);
  border-radius: 10px;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}

.menu-list,
.menu,
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav .menu-list {
  row-gap: 0.5rem;
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--accent);
  font-weight: 700;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
}

.button:hover {
  opacity: 0.92;
  text-decoration: none;
}

.button--small {
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
}

.button--ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid #c9ccdc;
}

.hero {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(252, 140, 79, 0.25), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(22, 22, 63, 0.13), transparent 40%),
    linear-gradient(180deg, #fff 0%, #f9f6f2 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font: 400 clamp(2.5rem, 6vw, 5.4rem)/1 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
}

.hero p {
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-video {
  width: 100%;
  min-width: 0;
}

.hero-video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.hero-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.75rem;
  margin: 0 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: #f2f3f9;
}

.section h2,
.page-hero h1 {
  font: 400 clamp(2rem, 5vw, 4rem)/1.05 'Bebas Neue', sans-serif;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.service-grid,
.team-grid,
.case-grid,
.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body {
  padding: 1rem 1rem 1.15rem;
}

.card h3,
.card h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.card-image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-image:hover img {
  transform: scale(1.04);
}

.member-card img {
  aspect-ratio: 1/1;
  object-fit: cover;
}

.member-card--expandable {
  display: flex;
  flex-direction: column;
}

.member-card--expandable .card-body {
  display: grid;
  gap: 0.55rem;
}

.member-role {
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

.member-summary {
  margin: 0;
}

.member-expanded {
  border-top: 1px solid #e7eaf6;
  margin-top: 0.4rem;
  padding-top: 0.7rem;
}

.member-full-bio p {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.member-full-bio p:last-child {
  margin-bottom: 0;
}

.member-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.cta-section {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.cta-box {
  background: linear-gradient(130deg, #16163f 0%, #2e315f 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
}

.cta-box .button {
  background: var(--accent);
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cta-box .button--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-box .button--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.page-hero {
  padding: 4rem 0 2rem;
}

.page-hero .lead {
  max-width: 75ch;
  color: var(--muted);
}

.page-article {
  padding-bottom: 4rem;
}

.section-narrow {
  margin-bottom: 2.8rem;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-grid a {
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.content-from-editor {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.content-from-editor .wp-block-gallery,
.content-from-editor .blocks-gallery-grid,
.content-from-editor .gallery {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.content-from-editor .wp-block-gallery.has-nested-images,
.content-from-editor .wp-block-gallery.columns-default {
  display: grid !important;
}

.content-from-editor .wp-block-gallery .wp-block-image,
.content-from-editor .blocks-gallery-grid .blocks-gallery-item,
.content-from-editor .gallery .gallery-item {
  grid-column: span 4;
  margin: 0 !important;
  width: 100% !important;
}

.content-from-editor .wp-block-gallery .wp-block-image:nth-child(1),
.content-from-editor .gallery .gallery-item:nth-child(1) {
  grid-column: span 6;
  grid-row: span 2;
}

.content-from-editor .wp-block-gallery .wp-block-image img,
.content-from-editor .blocks-gallery-grid .blocks-gallery-item img,
.content-from-editor .gallery .gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e4e8f5;
  box-shadow: 0 8px 20px rgba(18, 26, 67, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: zoom-in;
}

.content-from-editor .wp-block-gallery .wp-block-image:hover img,
.content-from-editor .blocks-gallery-grid .blocks-gallery-item:hover img,
.content-from-editor .gallery .gallery-item:hover img {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 14px 28px rgba(18, 26, 67, 0.15);
}

.bari-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 26, 0.88);
  padding: 2rem 1rem;
}

.bari-lightbox.is-open {
  display: flex;
}

.bari-lightbox-inner {
  position: relative;
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}

.bari-lightbox-image {
  max-width: 100%;
  max-height: calc(88vh - 56px);
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  user-select: none;
}

.bari-lightbox-caption {
  color: #e8eeff;
  text-align: center;
  margin: 0;
  font-size: 0.95rem;
}

.bari-lightbox-close,
.bari-lightbox-prev,
.bari-lightbox-next {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.bari-lightbox-close {
  top: -0.35rem;
  right: -0.15rem;
}

.bari-lightbox-prev {
  left: -0.15rem;
  top: 50%;
  transform: translateY(-50%);
}

.bari-lightbox-next {
  right: -0.15rem;
  top: 50%;
  transform: translateY(-50%);
}

.bari-lightbox-close:hover,
.bari-lightbox-prev:hover,
.bari-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.service-page {
  padding-bottom: 5rem;
}

.service-hero {
  padding: 4.2rem 0 3rem;
  background:
    radial-gradient(circle at 6% 10%, rgba(252, 140, 79, 0.18), transparent 35%),
    radial-gradient(circle at 92% 8%, rgba(22, 22, 63, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f2f5fb 100%);
}

.service-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(1.25rem, 2.4vw, 2.2rem);
  align-items: center;
}

.service-hero h1 {
  margin-bottom: 0.75rem;
}

.service-hero .lead {
  max-width: 62ch;
  color: #404b6a;
  font-size: 1rem;
}

.service-hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-hero-actions .button--ghost {
  background: rgba(255, 255, 255, 0.82);
}

.service-hero-metrics {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.service-hero-metrics li {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #eaedf6;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  display: grid;
  gap: 0.08rem;
  box-shadow: 0 8px 20px rgba(22, 22, 63, 0.06);
}

.service-hero-metrics strong {
  font: 600 1.2rem/1.2 'Poppins', sans-serif;
  color: var(--primary);
}

.service-hero-metrics span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6f7895;
}

.service-hero-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(22, 22, 63, 0.15);
  border: 1px solid #e6eaf6;
}

.service-hero-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-layout {
  margin-top: 2.3rem;
}

.service-block {
  background: #fff;
  border: 1px solid #e8ebf5;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(22, 22, 63, 0.08);
  padding: 1.35rem;
}

.service-block-head {
  margin-bottom: 1rem;
}

.service-block-head h2 {
  margin: 0;
  font: 400 clamp(1.8rem, 4.2vw, 3rem)/1 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
}

.service-block-head p {
  margin: 0.45rem 0 0;
  color: #54607f;
}

.service-method-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.service-method-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fe 100%);
  border: 1px solid #e8ebf8;
  border-radius: 14px;
  padding: 0.95rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.service-method-card p {
  margin: 0;
}

.service-method-index {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font: 600 0.78rem/1 'Poppins', sans-serif;
  color: #fff;
  background: linear-gradient(145deg, #202456 0%, #fc8c4f 100%);
}

.service-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.service-case-card {
  background: linear-gradient(180deg, #fff 0%, #f7f8fe 100%);
  border: 1px solid #e8ebf8;
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.service-case-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.service-case-card p {
  margin: 0;
  color: #4a5779;
}

.service-case-link {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #cdd3e8;
  padding: 0.42rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.service-case-link:hover {
  text-decoration: none;
  border-color: var(--primary);
}

.service-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-project-card {
  background: linear-gradient(180deg, #fff 0%, #f7f8fe 100%);
  border: 1px solid #e8ebf8;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(18, 26, 67, 0.07);
}

.service-project-cover {
  display: block;
  line-height: 0;
  border-bottom: 1px solid #e8ebf8;
}

.service-project-cover img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.service-project-card:hover .service-project-cover img {
  transform: scale(1.03);
}

.service-project-body {
  padding: 0.95rem 1rem 1.05rem;
  display: grid;
  gap: 0.6rem;
}

.service-project-body h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.35;
}

.service-project-body h3 a {
  color: inherit;
}

.service-project-body h3 a:hover {
  text-decoration: none;
}

.service-project-body p {
  margin: 0;
  color: #4a5779;
}

.service-project-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.service-video-block .video-wrap {
  border: 1px solid #e7ebf7;
}

.service-video-card-grid {
  display: grid;
  gap: 1rem;
}

.service-video-card {
  background: linear-gradient(180deg, #fff 0%, #f7f8fe 100%);
  border: 1px solid #e8ebf8;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(18, 26, 67, 0.07);
}

.service-video-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  line-height: 1.35;
}

.service-video-content .video-wrap {
  margin: 0;
}

.service-video-content iframe,
.service-video-content .wp-block-embed iframe {
  width: 100%;
  border: 0;
  aspect-ratio: 16/9;
  border-radius: 12px;
}

.service-video-content .wp-block-embed {
  margin: 0;
}

.service-video-content p {
  margin: 0.8rem 0 0;
  color: #4a5779;
}

.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 165px;
  gap: 0.85rem;
}

.service-gallery-grid a,
.service-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6ebf7;
  margin: 0;
}

.service-gallery-grid > :first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.service-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-gallery-grid a:hover img,
.service-gallery-item:hover img {
  transform: scale(1.04);
}

.service-gallery-group + .service-gallery-group {
  margin-top: 1.1rem;
}

.service-gallery-subtitle {
  margin: 0 0 0.7rem;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--heading);
}

.is-protected-media,
.content-from-editor img,
.service-gallery-grid img,
.acervo-grid img,
.acervo-video-grid img,
.service-project-grid img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.service-rich-content {
  border: 1px solid #e8ebf5;
}

.acervo-hero {
  background:
    radial-gradient(circle at 8% 12%, rgba(252, 140, 79, 0.18), transparent 44%),
    radial-gradient(circle at 94% 8%, rgba(22, 22, 63, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
}

.acervo-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 300px);
  gap: clamp(1.25rem, 2.2vw, 2.2rem);
  align-items: start;
}

.acervo-hero-content .lead {
  max-width: 65ch;
}

.acervo-hero-photo {
  margin: 0;
  width: clamp(220px, 28vw, 300px);
  max-width: 100%;
  justify-self: end;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.acervo-hero-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.acervo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.2rem;
}

.acervo-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid #ececf3;
  box-shadow: 0 10px 28px rgba(22, 22, 63, 0.08);
  overflow: hidden;
}

.acervo-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.acervo-card-body,
.acervo-card .card-body {
  padding: 1.45rem;
}

.acervo-card-head {
  display: flex;
  gap: 0.95rem;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.95rem;
}

.acervo-date {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  margin: 0;
}

.acervo-cover {
  margin: 0 0 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.acervo-cover img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.acervo-card:hover .acervo-cover img {
  transform: scale(1.02);
}

.acervo-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.acervo-card-summary {
  margin-bottom: 0.9rem;
}

.acervo-full-content {
  border-top: 1px solid #eaebf3;
  margin-top: 0.6rem;
  padding-top: 0.8rem;
}

.acervo-full-content p:first-child {
  margin-top: 0;
}

.acervo-full-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 0.6rem 0;
}

.acervo-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1rem;
}

.acervo-video-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e6e8f4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(18, 26, 67, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.acervo-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(18, 26, 67, 0.14);
}

.acervo-video-thumb {
  display: block;
  position: relative;
  border-bottom: 1px solid #e6e8f4;
  overflow: hidden;
}

.acervo-video-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.acervo-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 30, 0.05) 20%, rgba(8, 12, 30, 0.55) 100%);
}

.acervo-video-card:hover .acervo-video-thumb img {
  transform: scale(1.04);
}

.acervo-video-empty {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16/9;
  background: #10163a;
  color: #fff;
  font-weight: 600;
}

.acervo-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(22, 22, 63, 0.92);
  color: #fff;
  font-size: 1.1rem;
  z-index: 2;
}

.acervo-video-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.acervo-video-card-body,
.acervo-video-card .card-body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.acervo-video-card .acervo-date {
  margin-bottom: 0.5rem;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 16%, rgba(252, 140, 79, 0.2), transparent 36%),
    radial-gradient(circle at 90% 12%, rgba(111, 124, 181, 0.22), transparent 40%),
    linear-gradient(165deg, #0f1330 0%, #141a3f 55%, #1a214d 100%);
  color: #dce3f6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 38%, transparent 70%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 88px
    );
  pointer-events: none;
}

.footer-main,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.9fr 1fr;
  gap: 1.1rem;
  padding: 2.7rem 0 2.1rem;
}

.footer-brand-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.1rem 1.1rem 1.2rem;
  backdrop-filter: blur(2px);
}

.footer-logo {
  width: 140px;
  margin-bottom: 0.8rem;
}

.footer-kicker {
  margin: 0;
  color: #ffb383;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.footer-lead {
  margin: 0.5rem 0 1rem;
  color: #ecf1ff;
  font-size: 0.94rem;
  max-width: 40ch;
}

.footer-cta {
  background: var(--accent);
  color: #fff;
}

.footer-col {
  background: rgba(12, 16, 43, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 1rem;
}

.footer-col h3 {
  color: #fff;
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.46rem;
}

.footer-list a {
  color: #dce3f6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
}

.footer-list a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.footer-contact-line {
  margin: 0 0 0.45rem;
}

.footer-contact-line a {
  color: #ffffff;
  text-decoration: none;
}

.footer-social-list {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-social-list a {
  display: inline-block;
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #f6f8ff;
  font-size: 0.83rem;
  text-decoration: none;
}

.footer-social-list a:hover {
  background: rgba(252, 140, 79, 0.18);
  border-color: rgba(252, 140, 79, 0.55);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1rem 0 1.15rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
}

.footer-top-link {
  color: #e7ecff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-top-link:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .hero-video {
    max-width: 640px;
  }

  .header-main-inner {
    grid-template-columns: auto auto 1fr auto;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    display: grid;
    gap: 0.6rem;
    padding: 0.65rem 0;
  }

  .service-grid,
  .team-grid,
  .case-grid,
  .gallery-grid,
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .service-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-hero-media {
    max-width: 560px;
  }

  .service-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-method-grid,
  .service-case-grid,
  .service-project-grid {
    grid-template-columns: 1fr;
  }

  .service-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-gallery-grid > :first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .content-from-editor .wp-block-gallery .wp-block-image,
  .content-from-editor .blocks-gallery-grid .blocks-gallery-item,
  .content-from-editor .gallery .gallery-item {
    grid-column: span 6;
  }

  .content-from-editor .wp-block-gallery .wp-block-image:nth-child(1),
  .content-from-editor .gallery .gallery-item:nth-child(1) {
    grid-column: span 12;
  }

}

@media (max-width: 700px) {
  .header-top-inner,
  .header-main-inner {
    gap: 0.6rem;
  }

  .header-main-inner {
    grid-template-columns: auto auto;
  }

  .header-main-inner .button--small {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .service-grid,
  .team-grid,
  .case-grid,
  .gallery-grid,
  .post-list {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-col,
  .footer-brand-block {
    padding: 0.95rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-hero {
    padding-top: 3.2rem;
  }

  .service-hero-metrics {
    grid-template-columns: 1fr;
  }

  .service-hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .cta-actions .button {
    width: 100%;
    text-align: center;
  }

  .service-block {
    padding: 1.05rem;
  }

  .service-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 140px;
  }

  .service-gallery-grid > :first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .content-from-editor .wp-block-gallery,
  .content-from-editor .blocks-gallery-grid,
  .content-from-editor .gallery {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .content-from-editor .wp-block-gallery .wp-block-image,
  .content-from-editor .blocks-gallery-grid .blocks-gallery-item,
  .content-from-editor .gallery .gallery-item,
  .content-from-editor .wp-block-gallery .wp-block-image:nth-child(1),
  .content-from-editor .gallery .gallery-item:nth-child(1) {
    grid-column: span 1;
    grid-row: auto;
  }

  .bari-lightbox-inner {
    max-height: 92vh;
  }

  .bari-lightbox-image {
    max-height: calc(92vh - 72px);
  }

  .bari-lightbox-prev,
  .bari-lightbox-next {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .acervo-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .acervo-hero-layout {
    grid-template-columns: 1fr;
  }

  .acervo-hero-photo {
    width: min(280px, 100%);
    justify-self: start;
  }

  .acervo-video-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }
}
