* {
  margin: 0;
  padding: 0;
  box-sizing: content-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;

  background-image: url('../images/back.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  color: #222;
}

.content {
  display: flex;
  width: 40%;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(244, 246, 249);

  box-shadow: 0 0 150px 50px rgb(244, 246, 249);
}

header {
  height: 15vh;
}

main {
  height: 60vh;

}

footer {
  height: 10vh;
}

.box {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

@media (min-width: 769px) and (max-width: 1600px) {
  .content {
    width: 48%;
    box-shadow: 0 0 120px 38px rgb(244, 246, 249);
  }

  h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  h2 {
    font-size: 21px;
    line-height: 1.25;
    text-align: center;
  }

  h3 {
    font-size: 17px;
    line-height: 1.3;
    text-align: center;
  }

  main img {
    width: auto;
    max-width: 86%;
    max-height: 42vh;
  }
}

@media (min-width: 769px) and (max-width: 1366px),
  (min-width: 769px) and (max-height: 800px) {
  .content {
    width: 56%;
    box-shadow: 0 0 90px 28px rgb(244, 246, 249);
  }

  header {
    height: 13vh;
  }

  main {
    height: 58vh;
  }

  footer {
    height: 11vh;
  }

  h1 {
    font-size: 26px;
    line-height: 1.15;
  }

  h2 {
    font-size: 18px;
    line-height: 1.22;
  }

  h3 {
    font-size: 15px;
    line-height: 1.25;
  }

  main img {
    width: auto;
    max-width: 82%;
    max-height: 36vh;
    margin: 8px auto;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .content {
    width: 70%;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    /* Fixed может вызывать проблемы на iOS */
    background-position: center;
  }

  .content {
    width: 92%;
    height: auto;
    min-height: 100vh;
    box-shadow: 0 0 70px 25px rgb(244, 246, 249);
    justify-content: flex-start;
    /* Изменяем распределение */
  }

  header {
    height: auto;
    min-height: 12vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  main {
    height: auto;
    min-height: 70vh;
    width: 100%;
    padding: 15px 0;
  }

  footer {
    height: auto;
    min-height: 8vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .box {
    width: 95%;
    padding: 10px 0;
  }

  .box>* {
    margin: 8px 0;
  }
}

@media (max-width: 430px) {
  * {
    box-sizing: border-box;
  }

  body {
    min-width: 320px;
    padding: 0 10px;
    background-attachment: scroll;
  }

  .content {
    width: 100%;
    min-height: 100svh;
    padding: 14px 10px;
    box-shadow: 0 0 45px 16px rgb(244, 246, 249);
  }

  .box {
    width: 100%;
    gap: 10px;
    text-align: center;
  }

  header,
  main,
  footer {
    min-height: auto;
  }

  h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  h2 {
    font-size: 17px;
    line-height: 1.25;
  }

  h3 {
    font-size: 15px;
    line-height: 1.35;
  }

  main img {
    width: 100%;
    max-width: 340px;
    height: auto;
  }

  a {
    overflow-wrap: anywhere;
  }
}
