:root {
  --primary: #83cc61;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
img {
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
}
:focus {
  outline: none;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
body {
  font-family: Poppins, sans-serif;
}
.container {
  max-width: 1430px;
  margin: auto;
  padding: 0 15px;
}

/* ------------------------------------------------------------- */

.header{
  position: absolute;
  width: 100%;
}

.header .container {
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: url(../images/container-line.png) no-repeat;
  background-position: bottom center;
}

.header-nav {
  display: flex;
  align-items: center;
  column-gap: 50px;
}

.header-nav li a {
  color: #4d4d4d;
  display: inline-block;
  transition: color 0.4s ease-in-out, background 0.4s ease-in-out;
}
.header-nav li a:hover {
  color: var(--primary);
}
.header-nav li:last-child a {
  padding: 15px 43px;
  color: #fffafa;
  background-color: var(--primary);
  border-radius: 100px;
}
.header-nav li:last-child a:hover {
  background: #467c2d;
}

/* ------------------------------------------------------------- */
main{
  padding-top: 125px;
  height: 100vh;
  display: flex;
  align-items: flex-end;
}

.wrap{
  width:100%;
}

.banner .container {
  display: grid;
  grid-template-columns: 750px 1fr;
  align-items: center;
  min-height: 627px;
  position: relative;
}

.banner-content h1 {
  font-size: 56px;
  line-height: 68px;
  margin-bottom: 15px;
}
.banner-content h1 span {
  color: var(--primary);
}
.banner-content p {
  font-size: 16px;
  color: #333333;
}
.banner-content ul {
  display: flex;
  align-items: center;
  margin-top: 55px;
  column-gap: 15px;
}

.banner-image {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  height: 100%;
  align-items: center;
}

.group-image {
  position: absolute;
  bottom: 0;
}

.pattern-image {
  margin-right: 88px;
}

/* ------------------------------------------------------------- */

.bottom-section {
  padding: 50px 0;
  background: linear-gradient(90deg, #78c556 0%, #509471 100%);
  border-radius: 40px 40px 0 0;
  position: relative;
  z-index: 1;
}
.bottom-section .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* column-gap: 20px; */
}

.bottom-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  color: #ffffff;
  position: relative;
}

.bottom-item:not(:last-child):after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: url(../images/grd-line.png) no-repeat;
}

.bottom-item:not(:first-child) {
  padding-left: 40px;
}

.bottom-item h4 {
  font-size: 20px;
  font-weight: 500;
}
.bottom-item p {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.8;
  margin-top: 7px;
}

@media (max-width: 1550px) {
  .container {
    max-width: 1250px;
  }
  .banner .container {
    min-height: 491px;
  }
  .banner-content h1 {
    font-size: 46px;
    line-height: 58px;
  }
  .pattern-image {
    max-width: 430px;
  }
  .group-image {
    max-width: 600px;
  }
  .pattern-image {
    margin-right: 48px;
  }
  .banner-content ul {
    margin-top: 40px;
  }
}

@media (max-width: 1200px) {
  main{
    height: auto;
  }
  .banner .container {
    grid-template-columns: 500px 1fr;
  }
  .group-image {
    max-width: 500px;
  }
  .banner-content h1 {
    font-size: 37px;
    line-height: 50px;
  }
  .bottom-item:not(:first-child) {
    padding-left: 20px;
  }
  .bottom-item {
    padding-right: 6px;
  }
  .bottom-item h4 {
    font-size: 17px;
  }
  .bottom-item p {
    font-size: 13px;
  }
  .bottom-section {
    padding: 40px 0;
  }
  .bottom-item {
    grid-template-columns: 1fr;
    justify-content: center;
    text-align: center;
    row-gap: 12px;
}
}

@media (max-width: 860px) {
  .header-nav {
    column-gap: 30px;
  }
  .banner .container {
    min-height: auto;
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
  .header-nav li:last-child a {
    padding: 10px 33px;
  }
  .banner-image {
    justify-content: center;
  }
  .banner-content {
    text-align: center;
  }
  .banner-content ul {
    justify-content: center;
    margin-top: 30px;
  }
  .bottom-section .container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }
  .bottom-item:nth-child(3) {
    padding-left: 0;
  }
  .bottom-item:nth-child(2):after {
    display: none;
  }
}

@media (max-width: 600px) {
  .group-image {
    max-width: 340px;
  }
  .pattern-image {
    max-width: 320px;
  }
  .banner-content h1 {
    font-size: 30px;
    line-height: 43px;
  }
  .banner-content p br,
  .banner-content h1 br {
    display: none;
  }
  .bottom-section .container {
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
    column-gap: 10px;
}
  .bottom-item:after {
    display: none;
  }
  .bottom-item {
    padding: 0 !important;
  }
  .bottom-section {
    border-radius: 10px 10px 0 0;
  }
  .pattern-image {
    margin: auto;
  }
  .header-nav {
    column-gap: 10px;
  }
  .header-nav li:last-child a {
    padding: 6px 12px;
  }
  .banner-content ul {
    column-gap: 7px;
  }
  .bottom-item {
    row-gap: 6px;
  }
  .bottom-item h4{
    font-size: 15px;
  }
  .header .container {
    padding-block: 14px;
  }
  .site-logo{
    max-width: 95px;
  }
}
