* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #080808;
  color: #f2f2f2;
  font-family: 'Inter', sans-serif;
}

button,
a {
  font-family: inherit;
}

.site-header {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 34px 10px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: start;
}

.logo {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 5px;
  line-height: 1;
}

.role {
  margin-top: 7px;
  color: #8d8d8d;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav button,
.lang-btn {
  background: transparent;
  color: #9c9c9c;
  border: 1px solid #252525;
  padding: 7px 9px;
  cursor: pointer;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

nav button:hover,
.lang-btn:hover {
  color: #fff;
  border-color: #777;
}

main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 34px 70px;
}

.hero {
  min-height: 365px;
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 34px;
  align-items: center;
}

h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 0.88;
  letter-spacing: 2.2px;
  transform: scaleY(1.25);
  transform-origin: left center;
  text-transform: uppercase;
  margin: 0 0 24px;
  max-width: 500px;
}

.intro {
  max-width: 470px;
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.75;
}

.showreel {
  aspect-ratio: 16 / 9;
  background: #121212;
  border: 1px solid #252525;
}

.showreel iframe {
  width: 100%;
  height: 100%;
}

.section-label,
.label {
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #8f8f8f;
  font-size: 11px;
}

.categories-section {
  margin: 28px 0 80px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.category-card {
  cursor: pointer;
}

.category-image {
  aspect-ratio: 1 / 1;
  border: 1px solid #252525;
  background: #111;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.72;
  transition: 0.3s ease;
}

.category-card:hover .category-image img {
  opacity: 0.95;
  transform: scale(1.04);
}

.category-title {
  background: #050505;
  border: 1px solid #252525;
  border-top: none;
  padding: 9px 10px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.category-title h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin: 0;
}

.works-section,
.contacts-section {
  margin: 90px 0;
}

.works-section.hidden {
  display: none;
}

.works-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-works {
  background: transparent;
  color: white;
  border: 1px solid #333;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.close-works:hover {
  border-color: #777;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.video-card {
  cursor: pointer;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid #252525;
  background: #111;
}

.video-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 12px 0 5px;
}

.video-card p {
  margin: 0;
  color: #8f8f8f;
  font-size: 12px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid #252525;
  padding-top: 34px;
}

.contacts-grid h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.seo-note {
  margin-top: 18px;
  max-width: 560px;
  color: #777;
  font-size: 10px;
  letter-spacing: 0.8px;
  line-height: 1.8;
}

.contact-item {
  border-bottom: 1px solid #252525;
  padding: 20px 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.contact-actions a {
  color: #e7dfd2;
  text-decoration: none;
  border: 1px solid #333;
  padding: 9px 12px;
  font-size: 13px;
}

.contact-actions a:hover {
  border-color: #777;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px 34px 34px;
  z-index: 20;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(1280px, 95vw);
  background: #0d0d0d;
  border: 1px solid #333;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  position: relative;
  overflow: visible;
}

.close-modal {
  position: absolute;
  top: -52px;
  right: 0;
  background: none;
  color: white;
  border: none;
  font-size: 42px;
  cursor: pointer;
  z-index: 100;
}

.modal-video {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}

.modal-info {
  padding: 30px;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-info h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 32px;
  margin: 18px 0;
}

.modal-info p {
  color: #b8b8b8;
  line-height: 1.7;
  white-space: pre-line;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #444;
  background: #111;
  color: white;
  cursor: pointer;
  display: none;
  z-index: 10;
}

.to-top.show {
  display: block;
}

footer {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px;
  color: #666;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .categories {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 18px 22px 4px;
  }

  .role {
    font-size: 7px;
    letter-spacing: 1.05px;
    white-space: nowrap;
  }

  nav {
    display: none;
  }

  .lang-btn {
    display: inline-flex;
    justify-self: end;
    align-self: start;
  }

  main {
    padding: 0 22px 56px;
  }

  .hero {
    min-height: auto;
    padding: 24px 0 22px;
    gap: 22px;
  }

  h1 {
    line-height: 0.9;
    margin-bottom: 24px;
  }

.intro {
    font-size: 12px;
    line-height: 1.62;
    margin-bottom: 36px;
}

  .showreel {
    aspect-ratio: 4 / 3;
  }

  .showreel iframe {
    width: 100%;
    height: 100%;
  }

  .categories-section {
    margin: 16px 0 64px;
  }

  .categories {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
  }

  .category-image {
    aspect-ratio: 1 / 1;
  }

  .category-title {
    min-height: 34px;
    padding: 6px 6px;
  }

  .category-title h3 {
    font-size: 10px;
    letter-spacing: 0.8px;
    line-height: 1.15;
  }

  .works-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    align-items: flex-start;
    padding: 62px 18px 18px;
  }

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

  .modal-video {
    min-height: 220px;
  }

  .modal-video iframe {
    width: 100%;
    min-height: 220px;
  }

  .modal-info {
    max-height: none;
    padding-top: 22px;
  }
}