.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 0 0 rgba(13, 20, 23, 0);
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--color-surface) 97%, transparent);
  border-bottom-color: color-mix(in srgb, var(--color-ink) 15%, transparent);
  box-shadow: 0 10px 28px rgba(13, 20, 23, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: clamp(24px, 2.2vw, 42px);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: clamp(212px, 15.3vw, 240px);
  position: relative;
  z-index: 2;
  transform-origin: left center;
  transition: transform 120ms cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-image {
  width: 100%;
  height: auto;
}

@media (min-width: 1181px) {
  .js .home-page .site-header:not(.is-logo-ready) .logo {
    transform: translateY(18px) scale(1.85);
  }

  .site-header.has-intro-logo .logo {
    transform: translateY(var(--intro-logo-shift, 0px)) scale(var(--intro-logo-scale, 1));
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo {
    transition: none;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(30px, 3.2vw, 58px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-ink-soft);
  font-size: clamp(0.94rem, 0.82rem + 0.16vw, 1.04rem);
  font-weight: 700;
}

.nav-list a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-red);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--color-red);
  border-color: var(--color-red);
  box-shadow: 0 10px 28px rgba(var(--color-red-rgb), 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #ffffff;
  background: var(--color-red-strong);
  border-color: var(--color-red-strong);
  box-shadow: 0 14px 34px rgba(var(--color-red-rgb), 0.26);
  transform: translateY(-2px);
}

.btn-arrow {
  display: inline-block;
  margin-left: 18px;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 180ms ease;
}

.btn-arrow--red {
  color: var(--color-red);
}

.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow {
  transform: translateX(4px);
}

.header-cta {
  min-width: 176px;
}

.btn-secondary {
  color: var(--color-ink);
  background: transparent;
  border-color: var(--color-line-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--color-red);
  background: var(--color-surface);
  border-color: var(--color-red);
  transform: translateY(-2px);
}

.nav-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--color-ink);
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--color-red);
  background: var(--color-surface-soft);
  border-color: var(--color-red);
}

.nav-toggle,
.mobile-project-link {
  display: none;
}

.site-footer {
  color: #bac5cb;
  background: linear-gradient(115deg, #18262d, #101a1f);
  border-top: 1px solid #334148;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(270px, 1.5fr) minmax(150px, .8fr) minmax(150px, .8fr) minmax(185px, 1fr);
  gap: clamp(28px, 3.5vw, 64px);
  padding-block: 56px 44px;
}

.footer-brand {
  max-width: 340px;
}

.footer-logo-wrap {
  display: inline-flex;
  width: 224px;
  padding: 10px 12px;
  margin-bottom: 22px;
  background: #ffffff;
  border-radius: 4px;
}

.footer-logo {
  width: 100%;
  height: auto;
}

.footer-brand p,
.footer-contact address {
  margin: 0;
  font-size: .875rem;
  font-style: normal;
  line-height: 1.65;
}
.footer-brand .footer-brand-title { margin-bottom: 8px; color: #f5f8fa; font-size: 1.12rem; font-weight: 700; line-height: 1.35; }
.footer-project-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 12px; color: #f5f8fa; font-size: .875rem; font-weight: 700; }
.footer-project-link > span { color: var(--color-red); font-size: 1.2rem; transition: transform 160ms ease; }
.footer-project-link:hover > span { transform: translateX(4px); }

.footer-label {
  margin: 0 0 14px;
  color: #f5f8fa;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-contact,
.footer-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-top: 4px;
  font-size: .875rem;
  line-height: 1.5;
}
.footer-contact > a, .footer-navigation > a { display: inline-flex; align-items: center; min-height: 36px; }

.footer-contact a,
.footer-navigation a,
.footer-bottom a {
  transition: color 160ms ease;
  text-underline-offset: 5px;
}

.footer-contact a:hover,
.footer-contact a:focus-visible,
.footer-navigation a:hover,
.footer-navigation a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.footer-contact address {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(205, 221, 230, .16);
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 36px;
  padding-block: 18px;
  border-top: 1px solid rgba(205, 221, 230, .16);
  color: #a8b7bf;
  font-size: .76rem;
  line-height: 1.6;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-bottom a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-back-top { gap: 12px; color: #dce5ea; white-space: nowrap; }
.footer-back-top span { font-size: 1.1rem; }

@media (max-width: 1080px) {
  .nav-list {
    gap: 20px;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: fixed;
    z-index: -1;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: calc(100svh - var(--header-height));
    padding: 28px 24px 40px;
    color: var(--color-ink);
    background: var(--color-surface);
    border-top: 1px solid var(--color-line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
  }

  .main-nav.is-open {
    z-index: 1001;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    justify-content: space-between;
    min-height: 58px;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--color-line);
  }

  .nav-list a::after {
    display: none;
  }

  .mobile-project-link {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 32px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle span:nth-child(1) {
    transform: translateY(-6px);
  }

  .nav-toggle span:nth-child(3) {
    transform: translateY(6px);
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .footer-main {
    grid-template-columns: 1.1fr 1fr;
    gap: 32px 56px;
  }

  .footer-brand {
    grid-column: auto;
  }
  .footer-bottom { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; }
  .footer-bottom > p { grid-column: 1 / -1; }
  .footer-back-top { justify-self: end; }
}

@media (max-width: 620px) {
  .logo {
    width: 200px;
  }

  .header-actions {
    gap: 8px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
    padding-block: 36px 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-contact { grid-column: 1 / -1; }
  .footer-logo-wrap { margin-bottom: 18px; }
  .footer-label { font-size: .7rem; margin-bottom: 8px; }
  .footer-navigation { font-size: .8rem; }

  .footer-bottom {
    align-items: flex-start;
    gap: 10px 16px;
    font-size: .72rem;
  }
  .footer-legal { gap: 18px; }

  .footer-contact a,
  .footer-navigation a,
  .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
@media (max-width: 1280px) {
  .header-cta {
    display: none;
  }

  .nav-list {
    gap: 20px;
  }
}

@media (max-width: 1080px) and (min-width: 1041px) {
  .logo {
    width: 212px;
  }
}

@media (max-width: 360px) {
  .header-inner {
    gap: 8px;
  }

  .logo {
    width: 198px;
  }
}
