/* ===== БАЗА ===== */

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

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

/* ===== ТИПОГРАФИКА ===== */

h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 36px;
  margin-bottom: 50px;
}

/* ===== СЕКЦИИ ===== */

section {
  padding: 120px 0;
}

/* ===== HERO ===== */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: url("images/hero.jpg") center/cover no-repeat;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.2) 30%,
    rgba(0,0,0,0.5) 60%,
    rgba(0,0,0,0.45) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
  margin-top: 18vh;
}

.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 96px;
  line-height: 0.95;
  letter-spacing: -1px;
  color: #FFFFFF;
  margin: 0;
  max-width: 600px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.subtitle {
  font-size: 18px;
  margin: 25px 0;
  color: #EAE8E5;
  max-width: 320px;
  line-height: 1.4;
  opacity: 0.9;
}

/* ===== КНОПКА ===== */

.btn {
  display: inline-block;
  padding: 16px 32px;
  background: #FFFFFF;
  color: #0E0E0F;
  text-decoration: none;
  margin-top: 35px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

/* ===== ЛОГО ===== */

.logo {
  position: absolute;
  top: 40px;
  left: 6%;
  width: 60px;
  z-index: 3;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

/* ===== УСЛУГИ ===== */

.services .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.card {
  border-top: 1px solid #0E0E0F;
  padding-top: 15px;
}

.card h3 {
  font-family: 'Manrope', sans-serif;
}

.card p {
  color: #3B3A38;
  line-height: 1.5;
}

/* ===== ПРОЕКТЫ ===== */

.projects {
  padding: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 2px;
}

.project {
  position: relative;
  overflow: hidden;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

/* затемнение */

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}

/* hover */

.project:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* overlay */

.project .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: 0.4s;
}

.project:hover .overlay {
  opacity: 1;
}

.project span {
  color: #FFFFFF;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
}

/* размеры */

.project.big {
  grid-column: span 4;
  grid-row: span 2;
}

.project.small {
  grid-column: span 2;
}

.project.wide {
  grid-column: span 4;
}

/* ===== ABOUT ===== */

.about {
  padding-top: 80px; /* фикс лишнего отступа */
}

.about .container {
  max-width: 1000px;
}

.about h2 {
  font-size: 40px;
  margin-bottom: 25px;
}

.about p {
  font-size: 18px;
  color: #3B3A38;
  line-height: 1.6;
}

/* сетка */

.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
}

/* фото */

.about-photo img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(0.98);
  box-shadow: 0 30px 80px rgba(0,0,0,0.08);
}

/* текст */

.about-text {
  position: relative;
  padding-left: 30px;
}

.about-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 1px;
  height: 140px;
  background: #0E0E0F;
  opacity: 0.2;
}

.about-text p {
  margin-bottom: 25px;
  max-width: 420px;
}

/* ===== CONTACT ===== */

.contact {
  text-align: center;
  padding: 140px 0;
}

.contact h2 {
  margin-bottom: 20px;
}

.contact p {
  color: #3B3A38;
}

.contact .btn {
  margin-top: 30px;
}

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

@media (max-width: 900px) {

  /* услуги */
  .services .grid {
    grid-template-columns: 1fr;
  }

  /* проекты */
  .projects-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .project.big,
  .project.small,
  .project.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* about */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-photo img {
    height: 350px;
  }

  .about-text {
    padding-left: 0;
  }

  .about-text::before {
    display: none;
  }

  /* hero */
  .hero {
    height: 90vh;
  }

  .hero .container {
    margin-top: 0;
    padding-top: 55vh;
  }

  .hero h1 {
    font-size: 56px;
  }

  .subtitle {
    font-size: 16px;
    max-width: 280px;
    margin-top: 15px;
  }

  .btn {
    margin-top: 25px;
    padding: 14px 26px;
    font-size: 12px;
  }

  .logo {
    width: 44px;
    top: 20px;
  }

}