/* =========================
   FONT
========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* =========================
   VARIABLES (TYPOGRAPHY SYSTEM)
========================= */
:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* font sizes */
  --text-hero: 64px;
  --text-h1: 48px;
  --text-h2: 32px;
  --text-h3: 24px;
  --text-body: 18px;
  --text-small: 14px;

  /* weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* line height */
  --lh-tight: 1.1;
  --lh-normal: 1.4;
  --lh-loose: 1.6;

  /* letter spacing */
  --tracking-tight: -0.02em;

  /* colors */
  --color-bg: #0e0e0e;
  --color-surface: #1a1a1a;
  --color-muted: #a0a0a0;
  --color-soft: #777;
  --color-white: #eaeaea;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body {
  font-family: var(--font-main);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  font-weight: var(--weight-regular);
  color: var(--color-white);
  background: var(--color-bg);
}

/* =========================
   LAYOUT
========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 120px 0;
}

/* =========================
   HERO
========================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* ТЕКСТ */
.hero-content {
  width: 600px;
}

/* КАРТИНКА */
.hero-media {
  width: 400px;
  height: auto;

}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ФОН */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* контроль яркости */
  filter: brightness(0.6);
}

/* ГРАДИЕНТ ПОВЕРХ */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(14,14,14,0.85)
  );

  z-index: 1;
}

/* КОНТЕНТ ПОВЕРХ */
.hero .container {
  position: relative;
  z-index: 2;
}

/* =========================
   OVERLAP SYSTEM
========================= */
.overlap {
  position: relative;
  z-index: 2;
}

/* индивидуальные смещения */
.services {
  margin-top: -120px;
  z-index: 3;
}

.portfolio {
  margin-top: -100px;
  z-index: 2;
}

.cta {
  margin-top: -80px;
  z-index: 1;
}

/* =========================
   SERVICES
========================= */
.services .container {
  display: flex;
  gap: 10px;
}

.card {
  flex: 1;
  padding: 50px;
  background: var(--color-surface);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card {
  font-size: var(--text-h4);
  font-weight: var(--weight-medium);
}

/* =========================
   PORTFOLIO
========================= */
.portfolio .container {
  display: flex;
  gap: 20px;
}

.work {
  flex: 1;
  height: 240px;
  background: #373737;
  border-radius: 10px;
}

/* =========================
   CTA
========================= */
.cta {
  text-align: center;
  background: #181818;
}

.cta h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-medium);
}

/* =========================
   TEXT
========================= */
p {
  line-height: var(--lh-loose);
  color: var(--color-muted);
}

.text-small {
  font-size: var(--text-small);
  color: var(--color-soft);
}

/* =========================
   RESPONSIVE TYPOGRAPHY
========================= */
@media (max-width: 768px) {
  :root {
    --text-hero: 42px;
    --text-h1: 32px;
    --text-h2: 24px;
    --text-h3: 20px;
    --text-body: 16px;
  }

  .services .container,
  .portfolio .container {
    flex-direction: column;
  }

  .services {
    margin-top: -60px;
  }

  .portfolio {
    margin-top: -40px;
  }

  .cta {
    margin-top: -20px;
  }
}