/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

.hero {
  padding-top: 80px;
  position: relative;
}

.hero::after {
  position: absolute;
  bottom: 106px;
  z-index: -1;
  content: "";
  width: 100%;
  height: 48px;
  background: url("../materials/decor-index.svg") repeat-x;
}

.hero-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 28px;
}

.hero h1 {
  margin-bottom: 40px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 62px;
  line-height: 115%;
  text-transform: uppercase;
  color: #2c332f;
}

.hero h1 strong {
  color: #3596ed;
  font-weight: 600;
}

.hero-info {
  max-width: 492px;
}

.hero-info .text {
  margin-bottom: 140px;
  max-width: 440px;
}

.hero a {
  display: inline-block;
  padding: 19px 32px;
  width: 270px;
  height: 57px;
  background: #3596ed;
  font-family: "Ubuntu", sans-serif;;
  font-weight: 500;
  font-size: 15px;
  line-height: 130%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  -webkit-transition: opacity 0.2s;
  -o-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.hero a:hover {
  opacity: 0.85;
}

.hero-images {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.hero-choose {
  position: absolute;
  top: 40px;
  left: 50%;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #535755;
  max-width: 161px;
  text-align: center;
}

.news-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 28px
}

.news-article {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: hidden;
  max-width: 284px;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 25%;
          flex: 1 1 25%;
  background-color: #fff;
  border: 1px solid #d3cbd9;
}

.news-article img {
  display: block;
}

.news-date {
  display: inline-block;
  margin-bottom: 8px;
}

.news-info {
  padding: 20px 20px 0;
  margin-bottom: 12px;
}

.news-info-text {
  color: #2c332f;
}

.news-article footer {
  padding: 0 20px 20px;
  margin-top: auto;
}

.news-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  color: #3596ed;
}

.news-link::after {
  display: inline-block;
  content: "";
  width: 22px;
  height: 9px;
  background-image: url("../materials/arrow-right.svg");
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  -o-transition: transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
}

.news-link:hover::after {
  -webkit-transform: translateX(5px);
      -ms-transform: translateX(5px);
          transform: translateX(5px);
}

.faq {
  position: relative;
}

.faq::before {
  content: "";
  position: absolute;
  top: 215px;
  z-index: -1;
  content: "";
  width: calc(50% - 250px);
  height: 48px;
  background: url("../materials/decor-index.svg") repeat-x;
}

.faq-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 28px;
}

details {
  margin-bottom: 20px;
  border-block: 1px solid #d3cbd9;
}

details[open] summary::after {
  -webkit-transform: rotate(180deg);
      -ms-transform: rotate(180deg);
          transform: rotate(180deg);
}

details:last-child {
  margin-bottom: 0px;
}

summary {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 10px;
  list-style: none;
  padding: 20px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

/* Чтобы убрать треугольники во всех браузерах */
summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  display: inline-block;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 17px;
  height: 22px;
  background: url("../materials/arrow-down.svg") no-repeat center / cover;
}

details > p {
  padding: 0 20px 20px;
}

@media (width <= 1440px) {
  .hero-images img{
    width: 50%;
  }
}

@media (width <= 992px) {
  .hero::after {
    display: none;
  }
  
  .hero-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .hero-info {
    text-align: center;
  }

  .hero h1 {
    font-size: 52px;
    margin-bottom: 30px;
  }

  .hero-info .text {
    max-width: inherit;
    margin-bottom: 30px;
  }

  .news-container {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 20px;
  }

  .news-article {
    -ms-flex-preferred-size: 50%;
        flex-basis: 50%;
    max-width: 350px;
  }

  .news-article img {
    width: 100%;
  }

  .faq::before {
    display: none;
  }

  .faq-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
            flex-direction: column-reverse;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}

@media (width <= 768px) {
  .hero h1 {
    font-size: 50px;
  }

  .news-article {
    -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
    max-width: 400px;
  }
}

@media (width <= 576px) {
  .hero {
    padding-top: 60px;
  }
  
  .hero-info {
    max-width: 410px;
  }
  
  .hero h1 {
    font-size: 42px;
  }

  .hero-choose {
    max-width: 125px;
    padding: 10px;
    font-size: 14px;
  }
}