/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pad-x);
  padding-bottom: 0;
  position: relative;
  z-index: 102;
}

.logo {
  font-size: 1.9vw;
  letter-spacing: -0.038vw;
  line-height: 1;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-bold { font-weight: 600; }
.logo-light { font-weight: 400; color: #797979; }

.nav {
  display: flex;
  align-items: center;
  gap: 3.44vw;
}

.nav a {
  font-size: 1.26vw;
  line-height: 1.95;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 0.6; }

.cta-link {
  display: flex;
  align-items: center;
  gap: 0.86vw;
  font-size: 1.26vw;
  line-height: 1.95;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.cta-link:hover { opacity: 0.6; }
.cta-link svg { width: 0.8vw; height: 0.8vw; flex-shrink: 0; }

.burger {
  display: none;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 101;
}

.burger span {
  display: block;
  height: 2px;
  background: #000;
  position: absolute;
  left: 0;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.3s ease,
              top 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.burger span:nth-child(1) { top: 2px;  width: 100%; }
.burger span:nth-child(2) { top: 16px; width: 50%; }
.burger span:nth-child(3) { display: none; }

/* open → cross */
.burger.is-open span { background: #fff; width: 100%; }
.burger.is-open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 9px; transform: rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100;
  flex-direction: column;
  justify-content: center;
  padding: 0 30px;
  opacity: 0;
  visibility: hidden;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu__link {
  display: block;
  font-size: 48px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: -1.5px;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              color 0.2s ease;
}
.mobile-menu__link:hover { color: #797979; }
.mobile-menu.is-open .mobile-menu__link { transform: translateY(0); opacity: 1; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.29s; }

.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 50px;
  font-size: 19px;
  color: #797979;
  text-decoration: none;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.36s,
              opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.36s,
              color 0.2s ease;
}
.mobile-menu__cta:hover { color: #fff; }
.mobile-menu.is-open .mobile-menu__cta { transform: translateY(0); opacity: 1; }
.mobile-menu__cta svg { width: 12px; height: 12px; }

body.menu-open .header { z-index: auto; }

.mobile-menu__logo {
  position: absolute;
  top: 26px;
  left: 30px;
  color: #fff;
}
.mobile-menu__logo .logo-light { color: #fff; }

/* ===== DARK PAGE ===== */
body.page-dark { background: #000; color: #fff; }
body.page-dark .logo { color: #fff; }
body.page-dark .logo-light { color: rgba(255, 255, 255, 0.5); }
body.page-dark .nav a { color: #fff; }
body.page-dark .cta-link { color: #fff; }
body.page-dark .burger span { background: #fff; }

/* ===== FOOTER ===== */
.footer {
  background: #000;
  background-color: #000;
  color: #fff;
  padding: var(--section-gap) var(--pad-x) 20vw;
  padding-bottom: calc(20vw + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  background-image: url('/footer-bg.png');
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--grid-gap);
  row-gap: 10vw;
}

.footer-heading {
  font-weight: 400;
  line-height: 1.21;
  letter-spacing: -0.167vw;
}

.footer-description {
  font-size: 1.32vw;
  font-weight: 400;
  line-height: 1.63;
  opacity: 0.7;
  letter-spacing: -0.054vw;
  max-width: 33vw;
}

.footer-nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav a {
  font-size: 1.81vw;
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  letter-spacing: -0.036vw;
  line-height: 2.1;
  transition: opacity 0.2s;
}
.footer-nav a:hover { opacity: 1; }
.footer a { color: inherit; text-decoration: none; }

.footer-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  row-gap: 4vw;
}

.footer-contact__label {
  display: block;
  font-size: 1.32vw;
  opacity: 0.7;
  letter-spacing: -0.054vw;
  line-height: 1.63;
}

.footer-contact__value {
  display: block;
  font-size: 1.32vw;
  letter-spacing: -0.054vw;
  line-height: 1.63;
}

.messenger-icons {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.39vw, 20px);
}

.messenger-icons__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  color: #fff;
}

.messenger-icons__item svg {
  display: block;
  width: 36px;
  height: 36px;
}

a.messenger-icons__item {
  transition: opacity 0.2s ease;
}

a.messenger-icons__item:hover { opacity: 0.6; }

a.messenger-icons__item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 6px;
}

.footer-watermark {
  font-size: 27.83vw;
  font-weight: 600;
  text-align: center;
  opacity: 0.1;
  letter-spacing: -0.56vw;
  line-height: 0.85;
  white-space: nowrap;
  margin-top: 4vw;
}
.footer-watermark__light { font-weight: 400; font-style: italic; }

/* ================================================
   TABLET — max-width: 1100px
   ================================================ */
@media (max-width: 1100px) {
  /* Header */
  .header { padding-top: 2vw; }
  .logo { font-size: 2.61vw; letter-spacing: -0.052vw; }
  .nav { gap: 4.73vw; }
  .nav a { font-size: 1.73vw; }
  .cta-link { font-size: 1.73vw; gap: 1.18vw; }
  .cta-link svg { width: 1.12vw; height: 1.05vw; }

  /* Footer */
  .footer { padding-bottom: 20vw; }
  .footer-heading { line-height: 1.19; }
  .footer-nav a { font-size: 2.36vw; }
  .footer-contact__label,
  .footer-contact__value { font-size: 1.45vw; }
  .messenger-icons__item { flex-basis: 44px; width: 44px; height: 44px; }
  .messenger-icons__item svg { width: 28px; height: 28px; }
}

/* ================================================
   MOBILE — max-width: 576px
   ================================================ */
@media (max-width: 576px) {
  /* Header */
  .header { padding-top: 26px; }
  .logo { font-size: 28.752px; letter-spacing: -0.575px; }
  .nav { display: none; }
  .cta-link { display: none; }
  .burger {
    display: block;
    position: fixed;
 
    right: 30px;
    z-index: 103;
  }
  .mobile-menu {
    display: flex;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  /* Footer */
  .footer {
    padding-top: 20vw;
    padding-bottom: calc(20vw + env(safe-area-inset-bottom, 0px));
    position: relative;
    background-image: url('/footer-bg-mobile.png');
    background-position: bottom right;
    background-size: auto 100%;
  }
  .footer-content { grid-template-columns: 1fr; row-gap: 30px; max-width: 70%; }
  .footer-heading { letter-spacing: -1.69px; line-height: 1.1; }
  .footer-description { font-size: 16px; line-height: 1.56; letter-spacing: -0.78px; max-width: 100%; }
  .footer-nav { display: none; }
  .footer-contacts { grid-template-columns: 1fr; grid-auto-flow: row; row-gap: 20px; }
  .footer-contact__label,
  .footer-contact__value { font-size: 16px; letter-spacing: -0.78px; line-height: 1.94; }
  .footer-watermark {
    position: absolute;
    right: 0;
    top: 38%;
    font-size: 75px;
    margin: 0;
    transform: rotate(90deg);
    transform-origin: right top;
    opacity: 0.08;
    letter-spacing: -1.5px;
    line-height: 1;
  }
}

/* ===== SHOW MORE BUTTON (projects) ===== */
.projects-more {
  position: relative;
  overflow: hidden;
  margin-top: 1.53vw;
  width: 100%;
  height: 5.35vw;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 1.46vw;
  letter-spacing: -0.052vw;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  font-family: 'Google Sans', sans-serif;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.projects-more__label {
  position: relative;
  z-index: 1;
}
.projects-more__fill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 50%;
  background: #000;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.35s ease;
  pointer-events: none;
}
.projects-more.is-hover .projects-more__fill {
  transform: translate(-50%, -50%) scale(1);
}
.projects-more.is-hover {
  color: #fff;
  border-color: #000;
}
.projects-more.is-hidden { display: none; }

@media (max-width: 1100px) {
  .projects-more { height: 8.78vw; font-size: 2.39vw; }
}

@media (max-width: 576px) {
  .projects-more { height: 67px; font-size: 18px; margin-top: 20px; }
}
