:root {
  --navy: #0a1a4a;
  --navy-soft: #132456;
  --ink: #0c1226;
  --fog: #e8ecf4;
  --paper: #f7f8fb;
  --muted: rgba(12, 18, 38, 0.62);
  --line: rgba(10, 26, 74, 0.12);
  --accent: #c4a574;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 165, 116, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(10, 26, 74, 0.08), transparent 55%),
    linear-gradient(180deg, #fbfcfe 0%, var(--paper) 40%, #eef1f7 100%);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 0.75rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  color: #fff;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    box-shadow 0.4s var(--ease), color 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(247, 248, 251, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--navy);
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: inherit;
}

.brand-mark span {
  opacity: 0.45;
  font-weight: 500;
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: inherit;
  opacity: 0.82;
}

.nav a:hover {
  opacity: 1;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.phone {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
}

.msg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0 0.55rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.msg-link:hover {
  opacity: 1;
}

.site-header:not(.is-scrolled) .btn {
  background: #fff;
  color: var(--navy);
}

.site-header:not(.is-scrolled) .msg-link {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.site-header.is-scrolled .msg-link {
  border-color: var(--line);
  color: var(--navy);
}

.site-header.is-scrolled .nav {
  color: var(--muted);
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(10, 26, 74, 0.28);
}

.btn-outline:hover {
  background: rgba(10, 26, 74, 0.05);
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

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

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

.hero-fallback {
  transform: scale(1.06);
  animation: kenburns 28s var(--ease) infinite alternate;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  transform: scale(1.02);
}

.hero.has-video .hero-video {
  display: block;
}

.hero.has-video .hero-fallback {
  opacity: 0;
  animation: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(4, 8, 24, 0.55) 0%, rgba(4, 8, 24, 0.18) 38%, rgba(4, 8, 24, 0.78) 100%),
    radial-gradient(120% 80% at 18% 78%, rgba(4, 8, 24, 0.72), transparent 55%);
}

@keyframes kenburns {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.2%, -0.8%, 0);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto 5rem;
  padding-top: 7rem;
  max-width: 34rem;
  justify-self: start;
  margin-left: max(1.25rem, calc((100% - 1120px) / 2));
}

.hero-logo {
  width: min(340px, 78vw);
  height: auto;
  margin-bottom: 1.35rem;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) 0.15s forwards;
}

.hero h1 {
  max-width: 14ch;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) 0.35s forwards;
}

.hero-h1-kicker {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero-lead {
  max-width: 32ch;
  margin: 0 0 1.6rem;
  font-size: clamp(0.98rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.84);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) 0.65s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--navy);
}

.section-lead {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.about-intro .section-title {
  margin-bottom: 0.85rem;
}

.about-rest p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-figure {
  position: relative;
  overflow: hidden;
  background: #0a0c12;
  aspect-ratio: 4 / 5;
}

.about-figure picture,
.about-figure img,
.about-figure .photo-open,
.mosaic picture,
.mosaic .photo-open,
.cta-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transition: transform 1.2s var(--ease);
}

.about-figure:hover img {
  transform: scale(1.03);
}

.pillars {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.pillar h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.services {
  background:
    linear-gradient(180deg, rgba(10, 26, 74, 0.03), transparent 30%),
    transparent;
}

.service-list {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.service-item h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.gallery {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  width: 100%;
  overflow: hidden;
}

.mosaic figure {
  margin: 0;
  overflow: hidden;
  background: #e6e9f0;
  aspect-ratio: 3 / 4;
}

.photo-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.photo-open:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.mosaic img,
.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 1.1s var(--ease), filter 0.6s ease;
  filter: saturate(0.94);
}

.mosaic figure:hover img,
.about-figure:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 20, 0.92);
  padding: 4rem 3.5rem 2rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 92vw);
  max-height: min(82svh, 85vh);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
  top: 0.85rem;
  right: 0.85rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
}

.lightbox-prev {
  left: 0.6rem;
}

.lightbox-next {
  right: 0.6rem;
}

body.lightbox-open {
  overflow: hidden;
}

.process-steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.team {
  background:
    linear-gradient(180deg, transparent, rgba(10, 26, 74, 0.035) 40%, transparent);
}

.team-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.team-photo {
  margin: 0;
  overflow: hidden;
  background: #111;
  aspect-ratio: 1;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.05);
}

.team-copy p {
  color: var(--muted);
  font-size: 1.02rem;
}

.team-role {
  margin: -0.35rem 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent) !important;
}

.team-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.team-phone {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.cta-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.cta-or {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.step {
  position: relative;
  padding-left: 3.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 0;
}

.cta-shell {
  display: grid;
  min-height: 560px;
}

.cta-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #0a0c12;
}

.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  min-height: 280px;
}

.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 36, 0.2), rgba(8, 14, 36, 0.55));
}

.cta-panel {
  background: var(--navy);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta-panel > p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36ch;
}

.form {
  display: grid;
  gap: 0.75rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.form input,
.form select {
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

.form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form input:focus,
.form select:focus {
  border-color: rgba(196, 165, 116, 0.7);
}

.form select option {
  color: var(--ink);
}

.form-note {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.form-status {
  min-height: 1.25rem;
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.form-status.ok {
  color: #b8e0c2;
}

.form-status.err {
  color: #ffb4b4;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}

.footer-meta,
.footer-links {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .nav,
  .phone {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto 1fr;
    gap: 1.5rem 3.5rem;
    align-items: start;
  }

  .about-intro {
    grid-column: 1;
    grid-row: 1;
  }

  .about-rest {
    grid-column: 1;
    grid-row: 2;
  }

  .about-figure {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
  }

  .about-figure img {
    object-position: center 32%;
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .team-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
  }

  .service-item {
    grid-template-columns: 4rem 1fr 1.2fr;
    align-items: baseline;
    gap: 1.5rem;
  }

  .mosaic {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }

  .cta-shell {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .cta-media,
  .cta-media img {
    min-height: 100%;
  }

  .cta-media img {
    object-position: center 38%;
  }

  .hero-media img,
  .hero-media video {
    object-position: center 45%;
  }

  .footer-grid {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.nowrap {
  white-space: nowrap;
}
