/* начало обнуления */
* {
  padding: 0;
  margin: 0;
  border: 0;
}
*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
:focus,
:active {
  outline: none;
}
a:focus,
a:active {
  outline: none;
}

p {
  text-align: justify;
}

nav,
footer,
header,
aside {
  display: block;
}

html,
body {
  height: 100%;
  width: 100%;
  font-size: 100%;
  line-height: 1;
  font-size: 14px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  font-family: "Open Sans", sans-serif;
  color: #2f2e2e;
  font-size: 17px;
  line-height: 1.4;
}
input,
button,
textarea {
  font-family: inherit;
}

input::-ms-clear {
  display: none;
}
button {
  cursor: pointer;
}
button::-moz-focus-inner {
  padding: 0;
  border: 0;
}
a,
a:visited {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
ul li {
  list-style: none;
}
img {
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: 400;
}
html {
  scroll-behavior: smooth;
}

/* конец обнуления */

/*модальное окно*/
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

/* Изображение внутри модального окна */
.modal__content {
  display: block;
  margin: 0 auto;
  max-width: 80%;
  max-height: 80%;
  box-shadow: 0 0 5px #fff;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
}

.clickable-image {
  cursor: pointer;
  transition: transform 0.3s ease;
}
.clickable-image:hover {
  transform: scale(1.01);
}

.container {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto;
}

.link-container {
  margin-top: 20px;
  width: 100%;
}

.link {
  color: #a0a09f;
  text-decoration: none;
  font-size: 14px;
}

.italics {
  font-style: italic;
}

.bold {
  font-weight: bold;
}

/*header*/
.header__wrapper {
  background: #8b0000;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.header__text {
  color: white;
  padding: 20px 0;
  font-size: 50px;
  text-align: center;
  line-height: 1.2;
  font-family: "Playfair Display", sans-serif;
}

.header__menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.header__link {
  color: white;
  text-decoration: none;
  font-weight: semibold;
  cursor: pointer;
}

.header__link:hover {
  text-decoration: underline;
}

.burger {
  display: none;
  font-size: 32px;
  color: white;
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 1001;
}

/* Mobile full-screen menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: #8b0000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
  z-index: 1000;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu__list li {
  margin: 20px 0;
}

.mobile-link {
  font-size: 24px;
  color: white;
  text-decoration: none;
}

.mobile-link:hover {
  text-decoration: underline;
}

/*main*/
.main__bg {
  position: relative;
  z-index: 0;
}

.main__bg::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.5)
    ),
    url(/images/bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/*hero*/
.hero {
  padding-bottom: 60px;
  border-bottom: 1px solid #535353;
}

.hero__heading {
  text-align: center;
  font-size: 36px;
  padding: 40px 0;
  color: #8b0000;
  font-size: 50px;
  font-family: "Playfair Display", sans-serif;
}

.hero__images {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.hero__images img {
  width: auto;
  max-width: 700px;
  height: auto;
  max-height: 450px;
}

.hero__images img:first-child {
  border: 6px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.hero__text-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
}

.hero__text {
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.hero__docs {
  margin-top: 35px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__docs img {
  width: auto;
  max-width: 700px;
  height: auto;
  max-height: 400px;
}

.hero__link {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.hero__list {
  display: flex;
  justify-content: center;
  gap: 130px;
  flex-wrap: wrap;
}

.hero__list-heading {
  text-align: center;
  margin: 40px 0 30px;
}

.hero__list-img {
  width: auto;
  max-width: 700px;
  height: auto;
  max-height: 340px;
  border: 6px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

/*history*/
.history {
  padding-bottom: 60px;
  border-bottom: 1px solid #535353;
}

.history__heading {
  text-align: center;
  font-size: 36px;
  padding: 40px 0;
  color: #8b0000;
  font-size: 50px;
  font-family: "Playfair Display", sans-serif;
}

.history__images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.history__images img {
  margin-top: 30px;
  width: auto;
  max-width: 700px;
  height: auto;
  max-height: 350px;
  border: 6px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.history__text {
  margin-top: 25px;
}

.history__fact-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.history__fact {
  padding-top: 20px;
  padding-bottom: 10px;
  text-align: center;
  width: 100%;
  max-width: 420px;
  font-size: 15px;
  color: #605e5e;
}

/*pushka*/

.pushka {
  padding-bottom: 60px;
  border-bottom: 1px solid #535353;
}

.pushka__heading {
  text-align: center;
  font-size: 36px;
  padding: 40px 0;
  color: #8b0000;
  font-size: 50px;
  font-family: "Playfair Display", sans-serif;
}

.pushka__text {
  margin-top: 25px;
}

.pushka__img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border: 6px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pushka__textandimg {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 80px;
}

.pushka__textandimg-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  max-height: 320px;
  border: 6px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pushka__imgandlink {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*neverforgotten*/

.neverforgotten {
  padding-bottom: 60px;
  border-bottom: 1px solid #535353;
}

.neverforgotten__heading {
  text-align: center;
  font-size: 36px;
  padding: 40px 0;
  color: #8b0000;
  font-size: 50px;
  font-family: "Playfair Display", sans-serif;
}

.neverforgotten__text {
  margin-top: 25px;
}

.neverforgotten__img {
  display: block;
  margin: 20px auto;
  width: 100%;
  max-width: 500px;
  height: auto;
  max-height: 320px;
  border: 6px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: 25px;
}

/*neverforgotten slider*/
.neverforgotten__slider {
  position: relative;
  max-width: 1000px;
  margin: 30px auto;
  overflow: hidden;
}

.slider__wrapper {
  position: relative;
}

.slider__track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider__image {
  min-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 2;
}

.slider__arrow.left {
  left: 10px;
}

.slider__arrow.right {
  right: 10px;
}

.slider__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.slider__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background-color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider__dot.active {
  background-color: #333;
}

/*pamyatnik*/
.pamyatnik {
  padding-bottom: 60px;
  border-bottom: 1px solid #535353;
}

.pamyatnik__heading {
  text-align: center;
  font-size: 36px;
  padding-top: 40px;
  color: #8b0000;
  font-size: 50px;
  font-family: "Playfair Display", sans-serif;
}

.pamyatnik__text {
  display: flex;
  justify-content: center;
  margin-top: -25px;
  font-size: 15px;
  color: #605e5e;
}

.pamyatnik__poem {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 250px;
  margin-left: auto;
  margin-top: 30px;
  color: black;
}

.pamyatnik__poem-line {
  text-align: left;
  display: block;
  width: 100%;
}

.pamyatnik__poem-line:last-child {
  text-align: right;
  color: #323232;
}

/*pamyatnik slider*/
.pamyatnik__slider {
  position: relative;
  max-width: 1000px;
  margin: 30px auto;
  overflow: hidden;
}

.pamyatnik-slider__wrapper {
  position: relative;
}

.pamyatnik-slider__track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.pamyatnik-slider__image {
  min-width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pamyatnik-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 2;
}

.pamyatnik-slider__arrow.left {
  left: 10px;
}

.pamyatnik-slider__arrow.right {
  right: 10px;
}

.pamyatnik-slider__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.pamyatnik-slider__dot {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pamyatnik-slider__dot.active {
  background-color: #333;
}

/*blog*/
.blog {
  padding-bottom: 60px;
  border-bottom: 1px solid #535353;
}

.blog__heading {
  text-align: center;
  font-size: 36px;
  padding: 40px 0;
  color: #8b0000;
  font-size: 50px;
  font-family: "Playfair Display", sans-serif;
}

.blog__text {
  margin-top: 25px;
}

.blog__images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.blog__img {
  margin-top: 25px;
  width: auto;
  max-width: 700px;
  height: auto;
  max-height: 350px;
  border: 6px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.blog__slider {
  position: relative;
  max-width: 600px;
  margin: 30px auto;
  overflow: hidden;
}

.blog-slider__wrapper {
  position: relative;
}

.blog-slider__track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.blog-slider__image {
  min-width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 2;
}

.blog-slider__arrow.left {
  left: 10px;
}

.blog-slider__arrow.right {
  right: 10px;
}

.blog-slider__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.blog-slider__dot {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.blog-slider__dot.active {
  background-color: #333;
}

/*media queries*/

@media (max-width: 499px) {
  .hero__heading,
  .blog__heading,
  .history__heading,
  .pushka__heading,
  .neverforgotten__heading,
  .pamyatnik__heading {
    font-size: 40px;
  }
}

@media screen and (max-width: 955px) {
  .pushka__textandimg {
    flex-direction: column;
    gap: 25px;
  }
  .pushka__textandimg-img {
    align-self: center;
  }
}

@media screen and (max-width: 653px) {
  .history__images img {
    max-width: 100%;
    max-height: 300px;
  }
}

@media screen and (max-width: 669px) {
  .hero__list {
    gap: 20px;
  }
  .hero__images img {
    max-width: 100%;
    max-height: 400px;
  }
}

@media (max-width: 499px) {
  .burger {
    display: block;
    visibility: visible;
  }
  .header__menu {
    display: none;
  }

  .header__text {
    font-size: 40px;
    padding: 20px;
  }

  .header__wrapper {
    flex-direction: row;
    align-items: center;
  }
}

@media screen and (max-width: 400px) {
  .link {
    font-size: 12px;
  }
}
