.main-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999999999999;
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.6);
}

.headertitle {
  display: none;
}

.page-nav {
  display: none;
}

.menu-btn {
  display: block;
  margin-left: auto;

  svg {
    stroke: #fff;
    transition: stroke 0.3s ease;
  }
}

.menu-btn:hover,
.menu-btn:focus {
  svg {
    stroke: #db323e;
  }
}

.list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.link {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: #fff;
  transition: color 0.3s ease;
}

.link:hover,
.link:focus {
  color: #db323e;
}

.active-link {
  color: #db323e;
}

.header-subscribe {
  display: none;
}

@media screen and (min-width: 1436px) {
  .main-section {
    padding: 12px 0;
  }

  .headercontainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .headertitle {
    display: flex;
    align-items: center;
    gap: 4px;

    span {
      font-family: var(--font-family);
      font-style: italic;
      font-weight: 900;
      font-size: 12px;
      line-height: 217%;
      color: #fff;
      transition: color 0.4s ease;
    }
  }

  .headertitle:hover,
  .headertitle:focus {
    span {
      color: #db323e;
    }
  }

  .header-subscribe {
    display: block;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 111%;
    color: #fff;
    text-transform: capitalize;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 8px;
    padding: 15px 32px;
    background: #db323e;
  }

  .header-subscribe:hover,
  .header-subscribe:focus {
    color: #db323e;
    background-color: #fff;
  }

  .page-nav {
    display: block;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  overflow: hidden;
  top: 0;
  left: 50%;
  padding: 40px;
  padding-top: 80px;
  z-index: 88888888;
  background: rgba(7, 7, 7, 0.95);
  transform: translateX(-50%) translateY(-130%);
  transition: transform 2s ease;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 999999;
  bottom: 20px;
  border-radius: 10px;
  padding: 20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 5px 15px 20px 0 rgba(0, 0, 0, 0.25);
  background: #fff;
  transition: transform 0.4s ease;
}

.popuptext {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 143%;
  color: #161616;
  margin-bottom: 24px;

  a {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #db323e;
  }
}

.popupbtn {
  font-family: var(--third-family);
  font-weight: 600;
  font-size: 18px;
  line-height: 143%;
  color: #db323e;

  border: 1px solid #db323e;
  border-radius: 8px;
  padding: 14px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.popupbtn:hover {
  background-color: #db323e;
  color: #fff;
}

.popupwrap {
  display: flex;
  justify-content: center;
  gap: 16px;
}

@media screen and (min-width: 1436px) {
  .page-popup {
    padding: 30px 88px;
  }

  .popuptext {
    font-size: 24px;
    margin: 0;
  }

  .popupcontainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
  }

  .popupwrap {
    flex-shrink: 0;
  }
}

/* hero  */

.dashboard {
  padding-top: 200px;
  padding-bottom: 100px;
  background-image: url(../images/hero.png);
  background-position: center;
  background-size: cover;
}

.page-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 42px;
  line-height: 119%;
  text-align: center;
  color: #fff;
  margin-bottom: 32px;
}

.page-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 111%;
  color: #fff;

  display: block;
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 200px;
  border-radius: 8px;
  padding: 15px 32px;
  background-color: #db323e;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.page-link:hover,
.page-link:focus {
  color: #db323e;
  background-color: #fff;
}

.hero-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  text-align: center;
  color: #fff;
}

@media screen and (min-width: 1436px) {
  .home-page {
    padding-top: 280px;
  }

  .page-title {
    font-size: 92px;
    text-align: start;
  }

  .page-link {
    margin: 0;
  }

  .hero-text {
    max-width: 579px;
    margin-left: auto;
    margin-top: 150px;
    text-align: start;
  }
}

/* about  */

.about-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  color: #fff;
}

.about-image {
  position: relative;
  margin-top: 32px;
}

.about-car1 {
  width: 100%;
}

.about-car2 {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
}

@media screen and (min-width: 1436px) {
  .about-container {
    flex-direction: row;
    align-items: center;
  }

  .about-image {
    margin: 0;
    width: 584px;
    flex-shrink: 0;
  }

  .about-car2 {
    left: 0;
  }
}

/* why  */

.why-car {
  width: 100%;
  margin-bottom: 32px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 40px;

  li {
    padding-left: 32px;
    border-left: 2px solid transparent;
    transition: border-color 0.3s ease;
    cursor: pointer;
  }

  li:hover,
  li:focus {
    border-color: #db323e;

    p {
      color: #db323e;
    }
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 32px;
    line-height: 125%;
    color: #fff;
    margin-bottom: 16px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
    opacity: 0.7;
  }
}

@media screen and (min-width: 1436px) {
  .why-content {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
  }

  .why-car {
    width: calc((100% - 32px) / 2);
    margin: 0;
  }

  .why-list {
    width: calc((100% - 32px) / 2);
  }
}

/* what  */

.what-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;

  li {
    width: 280px;
    max-width: 100%;
    border-radius: 20px;
    padding: 28px 18px;
    background: #292929;
    transition: border-color 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
  }

  li:hover,
  li:focus {
    border-color: #db323e;

    p {
      color: #db323e;
    }
  }

  img {
    width: 64px;
    margin-bottom: 28px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 24px;
    line-height: 133%;
    color: #fff;
    margin-bottom: 8px;
    transition: color 0.3s ease;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: #fff;
    opacity: 0.5;
  }
}

@media screen and (min-width: 768px) {
  .what-list {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media screen and (min-width: 1436px) {
  .what-list {
    width: 888px;
    margin: 0 auto;
  }
}

/* disclaimer  */

.disclaimer-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 28px;
  line-height: 129%;
  color: #fff;
  span {
    color: #db323e;
  }
}

@media screen and (min-width: 1436px) {
  .disclaimer-container {
    padding: 0 170px;
  }

  .disclaimer-text {
    font-size: 48px;
  }
}

/* subscribe  */

.subscribe-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 144%;
  color: #fff;
  margin-bottom: 22px;
}

#consultation-form {
  display: flex;
  flex-direction: column;
  gap: 24px;

  input,
  textarea {
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    resize: none;
    outline: none;
    width: 100%;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #575757;
    transition: background-color 0.3s ease;
  }

  button {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 111%;
    color: #fff;

    display: block;
    border-radius: 8px;
    padding: 15px 32px;
    box-shadow: 0 4px 12px 0 rgba(34, 34, 34, 0.1);
    background: #db323e;
    transition: color 0.3s ease, background-color 0.3s ease;
    width: fit-content;
  }

  button:hover,
  button:focus {
    background-color: #fff;
    color: #db323e;
  }

  input::placeholder,
  textarea::placeholder {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #575757;
    opacity: 0.5;
  }
}

.modal-form {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222221;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-form.show {
  opacity: 1;
}

@media screen and (min-width: 1436px) {
  .subscribe-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;

    .title {
      margin: 0;
    }

    .subscribe-text {
      width: 342px;
      margin: 0;
    }
  }
}

/* page 2  */

/* art */

.art {
  background-image: url(../images/hero2.png);
  background-position: center;
  background-size: cover;
}

@media screen and (min-width: 1436px) {
  .art {
    padding-top: 167px;
  }

  .art-title {
    font-size: 80px;
  }
}

/*  articles  */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-item {
  border-radius: 15px;
  padding: 32px;
  background: #fff;
  transition: box-shadow 0.4s ease;
}

.thumb {
  display: flex;
  height: 100%;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.news-item:hover,
.news-item:focus {
  box-shadow: 2px 2px 10px #db323e;
}

.article-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.article-source {
  display: inline-block;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 133%;
  color: #fff;
  padding: 14px 16px;
  border: 1px solid #fff;
  border-radius: 100px;
  margin-bottom: 24px;
}

.article-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 24px;
  line-height: 133%;
  text-transform: capitalize;
  color: #292929;
  margin-bottom: 10px;
}

.article-desc {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #222;
  opacity: 0.5;
  margin-bottom: 10px;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #000;
  margin-bottom: 10px;
}

.article-author {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #222;
  text-align: center;
  opacity: 0.5;
}

.article-date {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #222;
  opacity: 0.5;
  text-align: center;
}

.article-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;

  li {
    display: flex;
    align-items: center;
    gap: 4px;

    span {
      font-family: var(--font-family);
      font-weight: 500;
      font-size: 10px;
      line-height: 165%;
      color: #171717;
      opacity: 0.7;
    }
  }
}

.load-more {
  display: block;
  width: fit-content;
  margin: 0 auto;
  margin-top: 40px;

  border-radius: 8px;
  padding: 15px 32px;
  background: #db323e;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 111%;
  color: #fff;
  transition: background-color 0.3s ease;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.load-more:hover,
.load-more:focus {
  background-color: #fff;
  color: #db323e;
  box-shadow: 2px 4px 8px #db323e;
}

@media screen and (min-width: 768px) {
  .news-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .news-item {
    width: calc((100% - 18px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  .news-item {
    width: calc((100% - 36px) / 3);
  }
}

/* page 3  */

/* about  */

.about-us {
  padding-top: 200px;
  padding-bottom: 280px;
}

@media screen and (min-width: 1436px) {
  .about-us {
    padding: 240px 0;
  }
}

/* who  */

.who-img {
  border-radius: 15px;
  height: 500px;
  width: 100%;
  background-image: url(../images/who.png);
  background-size: cover;
  background-position: center;
}

.who-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #fff;
  margin-top: 16px;
}

/* value  */

.value-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  text-align: center;
  color: #fff;
  margin-bottom: 22px;
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 22px;

  li {
    display: flex;
    align-items: center;
    gap: 24px;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: #fff;
  }
}

.value-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  line-height: 136%;
  color: #fff;

  span {
    color: #db323e;
  }
}

@media screen and (min-width: 1436px) {
  .value-container {
    padding: 0 170px;
  }

  .value-list {
    flex-direction: row;
    justify-content: center;
    margin-bottom: 100px;
  }

  .value-title {
    font-size: 48px;
  }
}

/* page 4  */

/* contact-hero  */

.contact-hero {
  background-image: url(../images/contact.jpg);
}

/* contact */

/* важно: у контейнера карты должна быть высота */
.map-frame {
  border-radius: 6px;
  overflow: hidden;
  height: 436px;
  margin-bottom: 20px;
}

.leaflet-container {
  background: #000;
}

.contat-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  color: #fff;
  margin-bottom: 40px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;

  li {
    display: flex;
    align-items: center;
    gap: 24px;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: #fff;
  }

  a {
    transition: color 0.3s ease;
  }

  a:hover,
  a:focus {
    color: #db323e;
  }
}

.social-list {
  display: flex;
  align-items: center;
  gap: 22px;

  a {
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }

  a:hover,
  a:focus {
    opacity: 1;
  }
}

.red {
  width: 100%;
  border-radius: 15px;
  height: 300px;
  background-color: #db323e;

  position: absolute;
  top: -80px;
  left: 0;
  z-index: 1;
}

@media screen and (min-width: 1436px) {
  .contact-container {
    padding: 0 220px;
    display: flex;
    gap: 40px;
    align-items: center;
  }

  .map-frame {
    width: 480px;
    height: 436px;
    flex-shrink: 0;
    margin: 0;
  }

  .red {
    width: 600px;
    top: auto;
    bottom: -80px;
    left: 0;
  }
}

/* footer */

.footer {
  padding: 40px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;

  span {
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 900;
    font-size: 9px;
    line-height: 217%;
    color: #fff;
    transition: color 0.3s ease;
  }
}

.footer-logo:hover,
.footer-logo:focus {
  span {
    color: #db323e;
  }
}

.footer-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 162%;
  color: #fff;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #fff;
  margin-bottom: 18px;
}

.footerlist {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 162%;
  color: #fff;

  a {
    transition: color 0.3s ease;
  }

  a:hover {
    color: #db323e;
  }
}

.footertext {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 162%;
  color: #fff;
  text-align: center;
}

@media screen and (min-width: 1436px) {
  .footer-logo {
    span {
      font-size: 12px;
    }
  }
  .footerlist {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }
}

/* loader */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(94, 95, 147, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  /* display: none; */
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #f8f8f8;
  border-top-color: #db323e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* scroll */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999999999999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;

  svg {
    stroke: #fff;
  }
}

#scrollTopBtn.show {
  opacity: 0.5;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  opacity: 1;
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateX(-50%) translateY(0);
}

.click {
  background-image: url(../img/minus.png);
  transform: rotate(180deg);
}

.popupclick {
  transform: translateY(130%) translateX(-50%);
}

.overflow {
  overflow: hidden;
}
