:root {
  --navy: #132447;
  --blue: #0f77c7;
  --red: #df2f32;
  --green: #1e9c68;
  --graphite: #20242b;
  --muted: #667085;
  --line: #e6eaf0;
  --paper: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(16, 24, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--graphite);
  background: var(--white);
  font-family: Inter, Manrope, Montserrat, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  color: var(--white);
  transition: background-color 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding: 12px 40px;
  color: var(--graphite);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(10px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo,
.footer-logo {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  background: var(--white);
}

.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.18);
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 7px;
}

.brand-copy {
  display: block;
  overflow-wrap: anywhere;
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: currentColor;
  font-size: 12px;
  opacity: 0.75;
}

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

.main-nav a {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 6px;
  color: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.main-nav .nav-portal {
  margin-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.12);
}

.main-nav .nav-portal:hover {
  background: rgba(255, 255, 255, 0.22);
}

.site-header.is-scrolled .main-nav a:hover,
.site-header.is-open .main-nav a:hover {
  background: var(--paper);
}

.site-header.is-scrolled .main-nav .nav-portal,
.site-header.is-open .main-nav .nav-portal,
.legal-page .main-nav .nav-portal {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.site-header.is-scrolled .main-nav .nav-portal:hover,
.site-header.is-open .main-nav .nav-portal:hover,
.legal-page .main-nav .nav-portal:hover {
  background: #1d3464;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

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

.hero-media {
  background-image: url("assets/photos/hero.jpg");
  background-size: cover;
  background-position: center 46%;
  transform: scale(1.01);
}

.hero-overlay {
  background: rgba(11, 24, 48, 0.54);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 90px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffffff;
  opacity: 0.82;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  font-weight: 850;
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 190px;
  padding: 14px 20px;
  border: 2px solid transparent;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
}

.scroll-cue {
  position: absolute;
  right: 40px;
  bottom: 34px;
  z-index: 2;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  opacity: 0.78;
}

.section {
  padding: 92px 0;
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.section h2 {
  max-width: 740px;
  margin: 0;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.08;
}

.section p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.about-grid,
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 54px;
  align-items: center;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.fact-row div {
  min-height: 124px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.fact-row strong,
.fact-row span {
  display: block;
}

.fact-row strong {
  color: var(--navy);
  font-size: 17px;
}

.fact-row span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.photo-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.photo-stack img,
.gallery-track img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.photo-stack img:first-child {
  aspect-ratio: 4 / 3;
}

.photo-stack img:last-child {
  width: 78%;
  aspect-ratio: 5 / 4;
  margin-top: -76px;
  margin-left: auto;
  border: 8px solid var(--white);
}

.section-directions,
.section-projects,
.section-gallery {
  background: var(--paper);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading-centered {
  justify-content: center;
  text-align: center;
}

.section-heading-centered h2 {
  margin-right: auto;
  margin-left: auto;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.direction-card {
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card-line {
  display: block;
  width: 44px;
  height: 5px;
  border-radius: 999px;
}

.card-line-red {
  background: var(--red);
}

.card-line-blue {
  background: var(--blue);
}

.card-line-green {
  background: var(--green);
}

.card-line-navy {
  background: var(--navy);
}

.direction-card h3 {
  margin: 28px 0 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}

.direction-card p {
  margin-top: 14px;
  font-size: 15px;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card.is-active {
  border-color: var(--red);
  transform: translateY(-2px);
}

.project-card:focus-visible {
  outline: 3px solid rgba(216, 37, 42, 0.35);
  outline-offset: 4px;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.project-card-body {
  display: grid;
  align-content: center;
  padding: 36px;
}

.project-card h3 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 32px;
  line-height: 1.1;
}

.project-card p {
  font-size: 17px;
}

.project-card .project-meta {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-project-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.gallery-project-heading h3 {
  width: 100%;
  margin: 0;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.1;
}

.gallery-project-heading .project-meta {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-project-heading span {
  color: var(--muted);
  font-weight: 800;
}

.gallery-carousel {
  position: relative;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 38vw);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery-track img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  scroll-snap-align: start;
}

.gallery-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-control:hover {
  color: var(--red);
}

.gallery-control-prev {
  left: -18px;
}

.gallery-control-next {
  right: -18px;
}

.cta-section {
  background: var(--white);
}

.contact-panel {
  display: grid;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.contact-list a {
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
}

.contact-list dt {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 750;
}

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

.site-footer {
  padding: 30px 0;
  color: var(--white);
  background: var(--graphite);
}

.footer-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-size: 14px;
}

.footer-inner a {
  text-decoration: none;
}

.contact-list-secondary {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-page .site-header {
  position: sticky;
  color: var(--graphite);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(10px);
}

.legal-page .main-nav a:hover {
  background: var(--paper);
}

.legal-main {
  background: var(--white);
}

.legal-hero {
  padding: 88px 0 56px;
  color: var(--white);
  background: var(--navy);
}

.legal-hero .section-inner {
  display: grid;
  gap: 18px;
}

.legal-hero h1 {
  max-width: 940px;
  font-size: 48px;
  line-height: 1.08;
}

.legal-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.legal-section {
  padding: 56px 0;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  max-width: 860px;
  margin-bottom: 22px;
}

.legal-section h3 {
  margin: 26px 0 10px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.22;
}

.legal-section p,
.legal-section li {
  max-width: 940px;
  color: var(--muted);
  font-size: 17px;
}

.legal-section p {
  margin: 14px 0 0;
}

.legal-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.info-card h3 {
  margin-top: 0;
}

.requisites-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.requisites-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  background: var(--white);
}

.requisites-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.requisites-row dd {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}

.legal-note {
  margin-top: 22px;
  padding: 20px;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--paper);
}

.legal-note p {
  margin: 0;
}

.template-box {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.template-box p {
  color: var(--graphite);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.inline-links a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.inline-links a:hover {
  color: var(--red);
}

@media (max-width: 1180px) {
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-open {
    padding: 12px 24px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 84px;
    left: 24px;
    right: 24px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--graphite);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    min-height: 44px;
  }

  .main-nav .nav-portal {
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 54px;
  }

  .hero-lead {
    font-size: 20px;
  }

  .about-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .gallery-track {
    grid-auto-columns: minmax(300px, 72vw);
  }

  .gallery-track img {
    height: 360px;
  }

  .legal-hero h1 {
    font-size: 40px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-open {
    gap: 16px;
    padding: 10px 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-copy {
    max-width: min(42vw, 190px);
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 11px;
  }

  .main-nav {
    top: 76px;
    left: 16px;
    right: 16px;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-content {
    width: min(100% - 32px, 560px);
    padding: 124px 0 62px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 66px 0;
  }

  .section-inner {
    width: calc(100% - 32px);
  }

  .section h2 {
    font-size: 32px;
  }

  .section p {
    font-size: 16px;
  }

  .fact-row,
  .direction-grid {
    grid-template-columns: 1fr;
  }

  .photo-stack img:last-child {
    width: 90%;
    margin-top: -34px;
  }

  .section-heading {
    display: block;
  }

  .project-card img {
    min-height: 260px;
  }

  .project-card-body {
    padding: 24px;
  }

  .gallery-project-heading h3 {
    font-size: 24px;
  }

  .gallery-track {
    grid-auto-columns: minmax(260px, 86vw);
    gap: 12px;
  }

  .gallery-track img {
    height: 280px;
  }

  .gallery-control {
    width: 40px;
    height: 40px;
  }

  .gallery-control-prev {
    left: -8px;
  }

  .gallery-control-next {
    right: -8px;
  }

  .footer-inner {
    width: calc(100% - 32px);
    display: grid;
    justify-items: start;
  }

  .legal-hero {
    padding: 62px 0 42px;
  }

  .legal-hero h1 {
    font-size: 34px;
  }

  .legal-section {
    padding: 42px 0;
  }

  .requisites-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
