/* === ОБЩИЕ СТИЛИ === */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #000;
  color: white;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === HEADER === */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
}

.logo {
  font-size: 32px;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

/* === INTRO BLOCK === */

.intro-block {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.intro-pic {
  flex: 1 1 300px;
  border-radius: 8px;
}

.intro-block > div {
  flex: 1 1 300px;
  font-size: 18px;
}

/* === BMW BLOCK === */

.h-bmw-block {
  font-size: 28px;
  font-weight: bold;
  margin: 30px 0 10px;
  text-align: center;
}

.bmw-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.bmw-block div {
  flex: 1 1 calc(33.333% - 20px);
  max-width: 300px;
}

.bmw-pic {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

/* === TEXT BLOCK === */

.h-text-block {
  font-size: 24px;
  font-weight: bold;
  margin-top: 40px;
  text-align: center;
}

.text-block {
  font-size: 18px;
  line-height: 1.7;
  margin: 20px 0;
  text-align: justify;
}

/* === FOOTER === */

.footer {
  margin-top: 40px;
  padding: 30px 0;
  border-top: 1px solid #ccc;
  text-align: center;
}

.footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 20px;
}

.footer h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.social_list {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}

.social_list a {
  text-decoration: none;
  color: inherit;
}

.social_list li {
  font-weight: 600;
}

/* === АДАПТИВНОСТЬ === */

/* Tablets and below */
@media (max-width: 1024px) {
  body {
    padding: 0 30px;
  }

  .intro-block {
    flex-direction: column;
    text-align: center;
  }

  .bmw-block div {
    flex: 1 1 calc(50% - 20px);
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  body {
    padding: 0 20px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav {
    justify-content: flex-start;
    gap: 15px;
  }

  .intro-block > div {
    text-align: center;
  }

  .bmw-block div {
    flex: 1 1 100%;
  }

  .h-bmw-block,
  .h-text-block {
    font-size: 20px;
  }

  .text-block {
    font-size: 16px;
    text-align: left;
  }

  .footer ul {
    flex-direction: column;
    gap: 10px;
  }

  .footer h2 {
    font-size: 18px;
  }
}
