:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f4f4f4;
  --gray-light: #e8e8e8;
  --gray: #999999;
  --gray-dark: #444444;
  --border: rgba(255,255,255,0.12);
  --border-dark: #dedede;
  --radius-card: 12px;
  --header-h: 62px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: auto; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}
#examples, #team, #faq {
  scroll-margin-top: calc(var(--header-h));
}

* { -webkit-user-select: none; user-select: none; }
.selectable { -webkit-user-select: text; user-select: text; }
img, video { -webkit-user-drag: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
  white-space: nowrap;
}

.btn--white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  opacity: 0.75;
}
.btn--white:hover { background: #e8e8e8; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--black {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--black:hover { background: #222; transform: translateY(-1px); }

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 2.5rem;
}
.section-title--black { color: var(--black); margin-bottom: 0; }
.section-title--white { color: var(--white); margin-bottom: 0.5rem; }

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 2rem;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}

.header.scrolled {
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(10px);
}

.header__logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: black;
  color: white;
  padding: 8px 18px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.header__logo:hover { opacity: 0.85; }

.header__nav {
  border-bottom: 1px solid #2e2e2e;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
}

.nav-link {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.header__burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--black);
  padding: 2rem 24px;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
  .mobile-nav { display: flex; }
  .header { padding: 0 20px; }
  .footer__links { display: none !important; }
}

@media (max-width: 944px) {
  .footer__links { display: none !important; }
}

.page-bg {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: -1;
}

.page-bg__slot { position: relative; overflow: hidden; }
.page-bg__slot--hero { height: 100vh; }

.page-bg__slot video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.page-bg__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: stretch;
}

.hero__content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 48px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero__block-top {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero__tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5.8vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--white);
  white-space: nowrap;
  opacity: 0.75;
}

.hero__block-bottom {
  max-width: 480px;
  align-self: flex-end;
}

.hero__subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 777px) {
  .hero__content { padding: calc(var(--header-h) + 32px) 20px 48px; }
  .hero__block-bottom { align-self: flex-start; }
  .hero__title { white-space: normal; font-size: clamp(2rem, 10vw, 3.5rem); }
}

.portfolio-preview {
  background: var(--white);
  padding-bottom: 15px;
  padding-top: 5px;
}

.videos__row {
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
}

.videos__row--one {
  justify-content: center;
  margin-bottom: 15px;
}

.videos__row--two .video-card { flex: 1; }

.videos__row--one .video-card {
  width: calc(50% - 10px);
}

@media (max-width: 768px) {
  .videos__row { flex-direction: column; }
  .videos__row--one .video-card { width: 100%; }
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-card__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--gray-light);
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-dark);
}

.video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-card__label {
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.services__more {
  display: flex;
  justify-content: center;
}

.team {
  background: var(--black);
  padding: 5px 0 20px;  
}

.team__header .section-title--white {margin-bottom: 0;}

.team__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 10px;
  grid-auto-flow: dense;
}

.team__photo {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.6s var(--ease), filter 0.4s;
  display: block;
}

.team__photo:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.team__photo--tall { grid-row: span 2; }
.team__photo--wide { grid-column: span 2; }

@media (max-width: 900px) {
  .team__gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 500px) {
  .team__gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }
  .team__photo--tall { grid-row: span 1; }
  .team__photo--wide { grid-column: span 2; }
}


.bottom-blocks {
  background: rgb(5, 5, 5);
  padding: 20px 0;
}

.bottom-blocks__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bottom-card {
  background: var(--white);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: 48px 44px;
}

.bottom-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.07em;
  color: var(--black);
  margin-bottom: 1.8rem;
}

.bottom-card__text {
  font-size: 0.82rem;
  color: var(--gray-dark);
  line-height: 1.85;
  margin-bottom: 0.9rem;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contacts-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.82rem;
}
.contacts-list__icon { color: var(--black); flex-shrink: 0; margin-top: 2px; }
.contacts-list a { color: var(--gray-dark); transition: color 0.2s; }
.contacts-list a:hover { color: var(--black); }

.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #229ED9;
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.4s var(--ease), transform 0.5s var(--ease);
}
.tg-link:hover {
  background: #1a8bbf;
  transform: translateY(-1px);
  color: var(--white) !important;
}
.tg-link__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.tg-link__text { flex: 1; }

@media (max-width: 800px) {
  .bottom-blocks__grid { grid-template-columns: 1fr; }
  .bottom-card { padding: 32px 24px; }
}

.footer {
  background: var(--black);
  padding: 26px 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.footer__logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: black;
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  justify-self: start;
}

.footer__copy {
  font-size: 0.62rem;
  color: #555;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
}

.footer__links {
  display: flex;
  gap: 1.8rem;
  justify-self: end;
}
.footer__links a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d3d3d3;
  transition: color 0.2s;
}
.footer__links a:hover { color: white; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }