/* ═══════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  color: #f0f0f0;
  background: #0a0a0a;
  line-height: 1.6;
  overflow-x: hidden;
}

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

em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}


/* ═══════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ─── Навигация ─── */

.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.nav__pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 6px 6px 6px 10px;
}

.nav__logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 18px;
  color: #fff;
  margin-right: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 100px;
  transition: color 0.3s;
}

.nav__link:hover,
.nav__link--active {
  color: #fff;
}

.nav__btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 400;
  color: #111;
  background: #fff;
  border-radius: 100px;
  transition: background 0.3s, transform 0.2s;
}

.nav__btn:hover {
  background: #e8e8e8;
  transform: scale(1.02);
}

/* ─── Контент героя ─── */

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__label {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  margin-bottom: 8px;
}

.hero__title {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 10vw, 120px);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.hero__subtitle em {
  color: rgba(255, 255, 255, 0.45);
}

.hero__desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 420px;
  margin-top: 4px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}


/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  border-radius: 100px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn--light {
  background: #fff;
  color: #111;
}

.btn--light:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn--large {
  padding: 16px 40px;
  font-size: 16px;
  background: #fff;
  color: #111;
}

.btn--large:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════════════
   SECTIONS — ОБЩИЕ
   ═══════════════════════════════════════════════════════════════════════ */

.section {
  padding: 140px 0;
}

.section__header {
  margin-bottom: 80px;
}

.section__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
  font-weight: 400;
}

.section__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f0f0f0;
}

.section__title em {
  color: rgba(255, 255, 255, 0.5);
}


/* ═══════════════════════════════════════════════════════════════════════
   WORK — BENTO GRID
   ═══════════════════════════════════════════════════════════════════════ */

.section--work {
  background: #0a0a0a;
}

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bento__card {
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.bento__card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
}

.bento__card--wide {
  grid-column: span 2;
}

.bento__img {
  position: relative;
  height: 280px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  background: #0c0d16;
  overflow: hidden;
}

.bento__mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bento__tag {
  position: relative;
  z-index: 2;
}

.bento__card--wide .bento__img {
  height: 360px;
}

.bento__tag {
  font-size: 12px;
  font-weight: 400;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bento__info {
  padding: 28px 32px;
}

.bento__info h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.bento__info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  max-width: 520px;
}

.bento__year {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-family: 'Geist Mono', monospace;
}


/* ═══════════════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════════════ */

.section--about {
  background: #0e0e10;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin-top: 24px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.stats__item {
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.stats__number {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  font-style: italic;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stats__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  transition: border-color 0.3s, color 0.3s;
}

.skill-tag:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════════════ */

.section--services {
  background: #0a0a0a;
}

.services {
  max-width: 800px;
}

.service {
  padding: 40px 0;
}

.service__num {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
}

.service__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.service__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 560px;
}

.service__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}


/* ═══════════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════════ */

.section--contact {
  background: #0e0e10;
}

.contact {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.contact__title em {
  color: rgba(255, 255, 255, 0.5);
}

.contact__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact__links {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}

.contact__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s;
}

.contact__links a:hover {
  color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0a0a;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}


/* ═══════════════════════════════════════════════════════════════════════
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ═══════════════════════════════════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════════════
   АДАПТИВ
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .section { padding: 100px 0; }

  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: span 1; }
  .bento__img { height: 220px; }
  .bento__card--wide .bento__img { height: 240px; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .nav__pill {
    gap: 2px;
    padding: 4px 4px 4px 8px;
  }
  .nav__link { padding: 8px 10px; font-size: 13px; }
  .nav__btn { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }

  .hero__title { font-size: 48px; }
  .hero__desc { font-size: 13px; }

  .hero__actions { flex-direction: column; gap: 10px; }

  .stats { grid-template-columns: 1fr; gap: 16px; }

  .contact__links { flex-wrap: wrap; justify-content: center; gap: 20px; }

  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }

  .nav__pill { gap: 0; }
  .nav__link { padding: 6px 8px; font-size: 12px; }
  .nav__btn { padding: 6px 12px; font-size: 12px; }
  .nav__logo { width: 28px; height: 28px; font-size: 16px; margin-right: 4px; }
}
