:root {
  --anthracite: #25282b;
  --nav-glass: #25282b;
  --black: #050505;
  --white: #ffffff;
  --muted: #6b7280;
  --light: #f5f7fa;
  --accent: #0e7490;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--white);
}

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

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(38px, 8vw, 132px);
  min-height: 58px;
  padding: 10px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--nav-glass);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.nav-links {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: clamp(24px, 5vw, 78px);
}

.nav-links a {
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
}

.nav-brand {
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 8px;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--white);
}

.nav-links a:hover,
.nav-brand:hover,
.footer a:hover {
  color: #67e8f9;
}

.section {
  min-height: 100vh;
  padding: 96px clamp(20px, 6vw, 92px);
}

.hero {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  min-height: 100vh;
  color: var(--white);
  text-align: center;
  background: radial-gradient(circle at 50% 35%, #3b4146 0, var(--anthracite) 42%, #17191b 100%);
}

.hero-logo {
  width: min(330px, 64vw);
  margin-bottom: -12px;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.3));
}

.hero h1 {
  margin: 0;
  opacity: 0;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: heroTitleIn 900ms ease forwards;
}

.hero-intro {
  max-width: 880px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.65;
  text-wrap: balance;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  background: var(--light);
}

.about-image-wrap img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 48px 12px 48px 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.about-content h2,
.section-heading h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.05;
}

.about-content p:not(.eyebrow) {
  max-width: 680px;
  color: #374151;
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.works {
  min-height: calc(100vh + var(--works-scroll-distance, 0px));
  background: var(--white);
}

.works-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 92px clamp(20px, 6vw, 92px) 58px;
  overflow: hidden;
  background: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  margin: -8px 0 0;
  color: #4b5563;
  font-size: 1.05rem;
}

.works-gallery {
  display: flex;
  gap: 8vw;
  overflow: visible;
  overflow-y: hidden;
  width: max-content;
  padding: 0 0 24px;
  transform: translateX(0);
  will-change: transform;
}

.work-card {
  flex: 0 0 min(78vw, 980px);
  overflow: hidden;
  border-radius: 28px;
}

.work-card img {
  width: 100%;
  height: min(64vh, 620px);
  object-fit: cover;
}

.contacts {
  display: grid;
  align-content: center;
  background: #eef2f7;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(980px, 100%);
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list li {
  padding: 24px;
  border: 1px solid #d9e0ea;
  border-radius: 22px;
  background: var(--white);
}

.contact-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list a,
.contact-list address,
.contact-list p {
  margin: 0;
  font-style: normal;
  font-weight: 700;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 54px clamp(20px, 6vw, 92px);
  color: var(--white);
  background: var(--black);
}

.footer > div {
  justify-self: center;
  min-width: 180px;
  text-align: center;
}

.footer h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  color: #d1d5db;
  list-style: none;
}

.footer a {
  text-underline-offset: 5px;
}

.footer a:hover {
  text-decoration: underline;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .navbar {
    flex-wrap: wrap;
    min-height: 58px;
    padding: 10px 20px;
    border-bottom: 0;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    width: 100%;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    opacity: 0;
    background: var(--nav-glass);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    gap: 18px;
    justify-items: center;
    transition: max-height 280ms ease, padding 280ms ease, opacity 220ms ease;
  }

  .nav-links.is-open {
    max-height: 220px;
    padding: 18px 20px 20px;
    opacity: 1;
  }

  .nav-links a {
    padding: 8px 4px;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.is-open a:nth-child(1) {
    transition-delay: 80ms;
  }

  .nav-links.is-open a:nth-child(2) {
    transition-delay: 140ms;
  }

  .nav-links.is-open a:nth-child(3) {
    transition-delay: 200ms;
  }

  .nav-links:not(.is-open) a:nth-child(1) {
    transition-delay: 120ms;
  }

  .nav-links:not(.is-open) a:nth-child(2) {
    transition-delay: 60ms;
  }

  .nav-links:not(.is-open) a:nth-child(3) {
    transition-delay: 0ms;
  }

  .menu-toggle {
    display: block;
  }

  .section {
    min-height: auto;
    padding: 72px 20px;
  }

  .works {
    min-height: auto;
  }

  .works-sticky {
    position: static;
    height: auto;
    min-height: auto;
    padding: 72px 20px 12px;
    overflow: visible;
  }

  .hero {
    min-height: 100vh;
  }

  .about,
  .contact-list,
  .footer {
    grid-template-columns: 1fr;
  }

  .about-image-wrap img {
    min-height: 300px;
    border-radius: 32px 10px 32px 10px;
  }

  .works-gallery {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 18px;
    margin-right: -20px;
    padding: 0 20px 0 0;
    -webkit-overflow-scrolling: touch;
  }

  .work-card {
    flex-basis: 86vw;
    box-shadow: none;
    scroll-snap-align: start;
  }

  .work-card img {
    height: 320px;
  }
}
