* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: "Raleway";
  font-weight: 700;
}

header {
  position: relative;
  /* height: 100vh; */
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* padding: 20px; */
  /*сделано для кружочков*/
}


.header-top {
  position: sticky;
  /* или fixed, если нужно */
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 40px 30px;
  z-index: 100;
  background-color: rgba(64, 64, 64, 1);
  /* тёмно-серый фон */
}

.menu-toggle {
  /* width: 30px;
            height: 5px; */
  width: 40px;
  height: 8px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin-left: 30px;
  margin-top: 20px;

}

.logo {
  max-width: 213px;
  /* Максимальная ширина */
  height: auto;
  /* Автоматическая высота для сохранения пропорций */
  /* margin-top: 40px;
            margin-right: 30px; */
}


/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -351px;
  width: 351px;
  height: 100vh;
  /* height: 55vh;*/
  background-color: #404040;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 30px 30px 20px;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}



.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  /* отступ от меню */
  width: 100%;
}




.close-btn {
  /* position: absolute; */
  /* top: 20px;
            left: 30px; left: 20px; */
  font-size: 3.5rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}

.image-menu {
  height: 50px;
  /* или как в макете */
  width: auto;
  display: block;
  transform: rotate(-139.37deg);
  margin-right: -24px;
  margin-top: -10px;

  /* Если нужно ограничить max-width — добавьте */
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  margin-bottom: 20px;
  /*15 px */
}

.mobile-menu a {
  font-family: "Raleway", sans-serif;
  /* font-optical-sizing: auto; */
  font-size: 20px;
  font-weight: 700;
  font-style: normal;


  color: #fff;
  text-decoration: none;


  display: flex;
  align-items: center;
  padding: 10px;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  color: #3498db;
  padding-left: 15px;
}

.mobile-menu a::before {
  content: "►►";
  margin-right: 10px;
  font-size: 20px;
}



main {
  /* = высота .header-top */
  position: relative;
  z-index: 1;
}


.fone {
  background-image: url('../img/pattern.png');
  background-repeat: repeat;
  /* узор будет повторяться по всей странице */
  background-size: auto;
  /* не масштабировать, если это бесшовный паттерн */
  background-position: top left;
  background-attachment: fixed;
  /* ← ЭТО КЛЮЧЕВОЕ СВОЙСТВО */
  margin: 0;
  padding: 0;

}


/* Общий стиль для любого раздела */
.lines-section {
  position: relative;
  /* min-height: 100vh;  */
  display: flex;
  justify-content: center;
  align-items: center;
  /*padding: 20px; */
  box-sizing: border-box;
  /* overflow: hidden; */
}



/* Контент-блок — белый/светлый прямоугольник поверх фона */
.content-wrapper {
  /* max-width: 1720px; */
  max-width: 92%;
  width: 100%;
  background-color: rgb(237, 242, 242);
  box-sizing: border-box;
  z-index: 1;
  min-height: 100vh;
  /* Экспериментально ЕСЛИ ЧТО, ТО МОЖНО УБРАТЬ */
}



.section-title {
  font-family: Raleway;
  font-weight: 700;
  font-style: Bold;
  font-size: 30px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: left;
  padding-left: 100px;
  margin-bottom: 60px;
  padding-top: 60px;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 120px;
  transform: rotate(0deg);
  width: 82.5px;
  height: 186px;

  background-image: url('../img/history_lines/attention_blue.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Lines */

.lines-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.line-card {
  display: flex;
  justify-content: center;
  min-width: 80%;
  max-width: 80%;
  margin-bottom: 37px;
}


.card-image {
  height: 192px;
  background-color: #780001;
  border: solid #780001;
  border-width: 21px 25px;
  border-radius: 20px 0 0 20px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 150px;
  height: 150px;
  border-radius: 20px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 50px;

  min-width: 70%;
  max-width: 70%;
  min-height: 222px;

  border: 10px solid #780001;
  border-radius: 20px;
  border-top-left-radius: 0;
}

.line-card:nth-child(even) {
  align-items: flex-end;
}

.line-card:nth-child(even) .card-content {
  border-bottom-left-radius: 0;
  border-top-left-radius: 20px;
}

.card-content-top {
  display: flex;
  gap: 15px;
}

/* .line-link {
  text-decoration: none;
  color: black;
} */

h3 {
  font-family: "Raleway";
  font-weight: 700;
  font-style: Bold;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 0%;
}

.line-view-link {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: black;
}

.line-view-link:hover {
  color: #C2121F;
}

.line-view-link:hover .card-view-icon {
  transform: scale(1.25); /* Увеличение на 25% */
}

.card-view-icon {
  color: #C2121F;
}

.card-view-text {
  font-family: "Exo 2";
  font-weight: 300;
  font-style: Light;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0%;
}

.card-description {
  font-family: Exo 2;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0%;
}

.dotted-line {
  width: 100%;
  height: 24px;
  margin-bottom: 37px;
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-image: url('../img/main-page/line.svg');
}

/* FOOTER */

.site-footer {
  position: relative;
  background-color: #404040;
  /* тёмно-серый фон */
  padding: 100px 0px;
  text-align: center;
  color: white;
  font-family: Raleway, sans-serif;
  z-index: 40;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  max-width: 213px;
  width: 100%;
  height: auto;
  /* если логотип не белый — можно сделать ярче */
}

.footer-copyright {
  font-family: Raleway;
  font-weight: 500;
  font-style: Medium;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;

  margin: 0;
}









@media (max-width: 1280px) and (min-width: 1025px) {
  .hero-content {
    width: 100%;
    max-width: none;
    /* сбрасываем возможные ограничения */
    padding: 20px;
    /* если нужно — оставляем отступы */
    box-sizing: border-box;
    /* чтобы padding не увеличивал ширину */
  }

}

@media (max-width: 1024px) and (min-width: 769px) {
  .hero-content {
    width: 100%;
    max-width: none;
    /* сбрасываем возможные ограничения */
    padding: 20px;
    /* если нужно — оставляем отступы */
    box-sizing: border-box;
    /* чтобы padding не увеличивал ширину */
  }

  .section-title::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 80px;
    transform: rotate(0deg);
    width: 66px;
    height: 148.8px;
    /* скрываем декорации на мобильных */
  }

}


/* Адаптивность — мобильные устройства */
@media (max-width: 768px) {
  .hero-content {
    width: 100%;
    max-width: none;
    /* сбрасываем возможные ограничения */
    padding: 20px;
    /* если нужно — оставляем отступы */
    box-sizing: border-box;
    /* чтобы padding не увеличивал ширину */
  }


  /* header */
  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
    line-height: 1.3;
    /* немного увеличьте для читаемости */
  }



  .mobile-menu {
    width: 100%;
    left: -100%;
  }

  /* .header-top {
                padding: 10px 0;
            } */

  /* .logo {
                height: 40px;
            } */

  .section-title {
    font-size: 2rem;
  }

  .menu-toggle {
    margin-left: 30px;
    margin-top: 20px;
  }

  .logo {
    max-width: 170px;
    /* min-width: 140px;
    min-height: 50px; */
    margin-top: 15px;
  }

  .content-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
    max-width: 95%;
  }

  .section-title {
    padding-left: 0;
    padding-bottom: 40px;
    padding-top: 40px;
    text-align: center;
  }

  .section-title::before {
    display: none;
    /* скрываем декорации на мобильных */
  }

  .fone {
    background-image: none;
    background-color: rgb(237, 242, 242);
  }

  .section-title {
    margin-bottom: 0;
  }

  .line-card {
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    padding-left: 0;
  }

  .card-image {
    height: 162px;
    border-width: 16px 20px;
    border-bottom-left-radius: 0;
    border-top-right-radius: 20px;
    align-self: flex-start;
  }

  .card-image img {
    width: 130px;
    height: 130px;
  }

  .card-content {
    padding: 25px;
    max-width: 100%;
  }

  .line-card:nth-child(even) .card-content {
    border-top-left-radius: 0;
    border-bottom-left-radius: 20px;
  }
}



/* маленькие экраны */
@media (max-width: 480px) {
  .hero-content {
    width: 100%;
    max-width: none;
    /* сбрасываем возможные ограничения */
    padding: 10px;
    /* если нужно — оставляем отступы */
    box-sizing: border-box;
    /* чтобы padding не увеличивал ширину */
  }

  .hero-title {
    position: relative;
    font-size: 2.8rem;

  }

  .hero-subtitle {
    font-size: 1.2rem;
    /* ≈ 21px */
    line-height: 1.4;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-content p {
    font-size: 1rem;
  }


  .fone {
    background-image: none;
    background-color: rgb(237, 242, 242);
  }


  .site-footer {
    padding: 50px 0px;
  }

  .footer-logo {
    max-width: 180px;
  }

  .footer-copyright {
    font-size: 16px;
  }

  .card-image {
    height: 146px;
    border-width: 13px 17px;
  }

  .card-image img {
    width: 120px;
    height: 120px;
  }
}