@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: #2a2a2a;
  background: #ffffff;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: relative;
  display: flex;
  min-height: 87px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 38px 70px 0 50px;
  background: #ffffff;
}

.site-title h1 {
  margin: 0;
  color: #282828;
  font-size: 24px;
  font-weight: 600;
  line-height: 18px;
}

.site-nav {
  position: absolute;
  top: 43px;
  right: 75px;
  display: flex;
  align-items: center;
  gap: 45px;
}

.site-nav a {
  display: block;
  padding: 0 5px;
  color: #555555;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.site-nav a:hover {
  color: #000000;
}

.menu-button {
  display: none;
}

main {
  background: #ffffff;
}

.main-header {
  padding: 60px 0 35px;
}

.main-header-content {
  width: 722px;
  margin-left: 113px;
}

.main-header h4 {
  margin: 0;
  color: #282828;
  font-size: 50px;
  font-weight: 500;
  line-height: 70px;
}

.hero-image {
  height: 800px;
  margin: 0 8px;
  background-image: url("assets/banner-image.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.news-section {
  padding: 60px 0 105px;
}

.news-intro {
  width: min(1096px, calc(100% - 120px));
  margin: 0 auto;
}

.news-intro h2 {
  margin: 10px 0;
  color: #282828;
  font-size: 36px;
  font-weight: 700;
  line-height: 43px;
}

.news-intro p {
  max-width: 658px;
  margin: 0;
  color: #282828;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  width: min(1096px, calc(100% - 120px));
  margin-top: 25px;
  margin-right: auto;
  margin-left: auto;
}

.news-card {
  width: 100%;
}

.news-card a {
  display: block;
  color: inherit;
}

.news-card a:hover h3 {
  text-decoration: underline;
}

.news-card-featured {
  grid-column: 1 / -1;
  justify-self: center;
  width: 518px;
}

.news-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.news-card h3 {
  margin: 15px 0;
  color: #282828;
  font-size: 18px;
  font-weight: 700;
  line-height: 21.6px;
}

.news-card p {
  margin: 0;
  color: #282828;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.news-card-text-only a {
  min-height: 190px;
  padding: 34px 38px;
  border: 1px solid #d9d9d9;
  background: #f7f8f4;
}

.news-card-text-only h3 {
  margin-top: 0;
}

.post-page {
  padding: 76px 24px 110px;
}

.post-article {
  width: min(760px, 100%);
  margin: 0 auto;
}

.post-back {
  display: inline-block;
  margin-bottom: 28px;
  color: #555555;
  font-size: 14px;
  line-height: 21px;
}

.post-back:hover {
  color: #000000;
  text-decoration: underline;
}

.post-article h1 {
  margin: 0 0 34px;
  color: #282828;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.18;
}

.post-cover-image {
  width: 100%;
  height: auto;
  margin: 0 0 34px;
}

.post-body {
  color: #282828;
  font-family: "Roboto", "Microsoft YaHei", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 2;
}

.post-body p {
  margin: 0 0 22px;
}

footer {
  min-height: 286px;
  background: #282828;
  color: #ffffff;
}

.footer-inner {
  display: flex;
  gap: 15px;
  padding: 70px 0 0 66px;
}

.footer-column {
  width: 176px;
}

.footer-column p {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.footer-column a {
  color: #ffffff;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .site-header {
    display: block;
    min-height: 89px;
    padding: 0;
  }

  .site-title {
    width: 345px;
    padding-top: 40px;
    text-align: center;
  }

  .site-title h1 {
    font-size: 24px;
    font-weight: 500;
    line-height: 29px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 74px;
    right: 18px;
    z-index: 3;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
    padding: 10px 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .menu-button {
    position: absolute;
    top: 20px;
    right: 17px;
    display: flex;
    width: 29px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .menu-button span {
    display: block;
    width: 29px;
    height: 5px;
    background: #000000;
  }

  .main-header {
    padding: 15px 0;
  }

  .main-header-content {
    width: 315px;
    margin-left: 30px;
  }

  .main-header h4 {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
  }

  .hero-image {
    height: 300px;
    margin: 0;
    background-position: center center;
  }

  .news-section {
    padding: 50px 0 54px;
  }

  .news-intro {
    width: 315px;
    margin-left: 30px;
  }

  .news-intro h2 {
    margin: 10px 0;
    font-size: 18px;
    line-height: 22px;
  }

  .news-intro p {
    font-size: 14px;
    line-height: 21px;
  }

  .news-grid {
    display: block;
    width: 100%;
    margin: 42px 0 0;
  }

  .news-card {
    width: 100%;
    margin-bottom: 24px;
  }

  .news-card-featured {
    width: 100%;
  }

  .news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }

  .news-card h3 {
    width: 315px;
    margin: 15px 0 15px 30px;
    font-size: 18px;
    line-height: 21.6px;
  }

  .news-card p {
    width: 315px;
    margin-left: 30px;
    font-size: 14px;
    line-height: 21px;
  }

  .news-card-text-only a {
    min-height: 160px;
    padding: 28px 0;
  }

  .post-page {
    padding: 44px 30px 70px;
  }

  .post-article h1 {
    margin-bottom: 24px;
    font-size: 32px;
    line-height: 1.25;
  }

  .post-body {
    font-size: 16px;
    line-height: 1.9;
  }

  footer {
    min-height: 334px;
  }

  .footer-inner {
    display: block;
    padding: 45px 0 0 30px;
  }

  .footer-column {
    width: 315px;
  }

  .footer-column + .footer-column {
    margin-top: 36px;
  }

  .footer-column p {
    font-size: 14px;
    line-height: 21px;
  }
}
