.page__history {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 400;
  padding: 28px 0 24px;
  color: brown;
  background-color: transparent;
  background-image:url('../images/oats__background.avif');
  background-size: 100%;
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  min-width: 320px;
  min-height: 100vh;
  margin: 0 auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%; 
}

@media screen and (max-width: 568px) {
  .page__history {
    padding-top: 16px;
  }
}

.page__content__history {
  margin: 56px auto 92px;
  /* margin-bottom: 92px; */
  background-color: wheat;
  padding: 5px;
  border-radius: 15px;
}
/* по замечанию ревьюера о приведении кода к принятому стандарту, сделал отступы в стилях медиа-запросов. других несоответствий не заметил */
@media screen and (max-width: 1124px) {
  .page__content__history {
    margin-top: 48px;

  }
}

@media screen and (max-width: 984px) {
  .page__content__history {
    margin-bottom: 88px;
  }
}

@media screen and (max-width: 568px) {
  .page__content__history {
    margin: 20px 0 64px;
    /* margin-bottom: 64px; */
  }
}

/* header section */

.header__history {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  display: flex;
  justify-content:left;
  align-items: center;
  margin: 0;
  padding: 5px 48px;
  background-color: transparent;
  border-radius: 15px;
}

@media screen and (max-width: 984px) {
  .header__history {
    padding: 0 24px;
  }
}  

@media screen and (max-width: 568px) {
  .header__history {
    padding: 0 16px;
  }
}  

.header__logo__history {
  max-width: 176px;
  max-height: 52px;
}

@media screen and (max-width: 568px) {
  .header__logo__history {
    max-width: 142px;
    max-height: 42px;
    object-fit: contain;
  }
}

.header__lang-links__history {
  display: flex;
  gap: 18px;
  margin-top: 15px;
}

@media screen and (max-width: 568px) {
  .header__lang-links__history {
    margin-top: 6px;
  }
}

.header__lang-link__history {
  text-decoration: none;
  color: brown;
  font-size: 24px;
  line-height: 28px;
}

.header__lang-link__history:hover {
  opacity: .5;
  color: #ffffff;
  background-color: brown;
}

@media screen and (max-width: 568px) {
  .header__lang-link__history {
    font-size: 18px;
    line-height: 20px;
  }
}

.header__links__history {
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  list-style: none;
  flex-wrap: nowrap;
  background-color: brown;
}

@media screen and (max-width: 760px) {
  .header__links__history {
    display:inline-block;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 20px;
    gap: 18px;
  }
}

@media screen and (max-width: 568px) {
  .header__links__history {
    align-items: stretch;
    padding-bottom: 20px;
    gap: 18px;
  }
}

.header__link__history {
  display: block;
  font-size: 22px;
  line-height: 26px;
  text-decoration: none;
  color: #ffffff;
  background-color: brown;
  cursor: pointer;
  text-transform: uppercase;
  /* text-wrap: pretty; */
  padding: 5px;;
}

.header__link__history:hover {
  /* opacity: .6; */
  color: brown;
  background-color: #ffffff;
}

@media screen and (max-width: 760px) {
  .header__link__history {
    font-size: 18px;
    line-height: 30px;
    word-break: keep-all;
  }
}

@media screen and (max-width: 568px) {
  .header__link__history {
    font-size: 16px;
    word-break: keep-all;
  }
}

.nav__header__history {
  display: flex;
  flex-direction: row;
  margin: 0 20px;
  background-color: brown;
}

/* content section */

.content__history {
  display: grid;
  grid-row-gap: 92px;
} 

@media screen and (max-width: 984px) {
  .content__history {
    grid-row-gap: 88px;
  }
}

@media screen and (max-width: 568px) {
  .content__history {
    grid-row-gap: 64px;
  }
}

.content__section__history {
  box-sizing: border-box;
  padding: 0 48px;
  width: 100%;
  margin: 0 auto;
}

@media screen and (max-width: 1124px) {
  .content__section__history {
    padding: 0;
  }
}

.nav__content__history {
  display: flex;
  flex-direction: row;
  margin: 0 20px;
  /* background-color: brown; */
}

@media screen and (max-width: 568px) {
  .nav__content__history {
    flex-direction: column;
  }
}

.content__links__history {
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  list-style: none;
  flex-wrap: wrap;
  background-color: brown;
}

@media screen and (max-width: 760px) {
  .content__links__history {
    display:inline-block;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 20px;
    gap: 18px;
  }
}

@media screen and (max-width: 568px) {
  .content__links__history {
    align-items: stretch;
    padding-bottom: 20px;
    gap: 18px;
  }
}

.content__link__history {
  display: block;
  font-size: 22px;
  line-height: 26px;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  text-transform: uppercase;
  /* text-wrap: pretty; */
  padding: 5px;
}

.content__link__history:hover {
  /* opacity: .6; */
  color: brown;
  background-color: #ffffff;
}

@media screen and (max-width: 760px) {
  .content__link__history {
    font-size: 18px;
    line-height: 30px;
    word-break: keep-all;
  }
}

@media screen and (max-width: 568px) {
  .content__link__history {
    font-size: 16px;
    word-break: keep-all;
  }
}

/* end of content */

.description {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  max-width: 984px;
}


@media screen and (max-width: 1124px) {
  .description {
    max-width: 928px;
  }
}

@media screen and (max-width: 984px) {
  .description {
    max-width: 768px;
  }
}

@media screen and (max-width: 568px) {
  .description {
    min-width: 320px;
  }
}

.description__title {
  max-width: 720px;
  width: 100%;
  font-size: 36px;
  line-height: 48px;
  font-weight: 900;
  text-align: center;
  margin: 0 auto 16px;
}

@media screen and (max-width: 750px) {
  .description__title {
    max-width: 488px;
    font-size: 30px;
    line-height: 40px;
    margin: 0 auto 8px;

  }
}

@media screen and (max-width: 568px) {
  .description__title {
    max-width: 288px;
    font-size: 28px;
    line-height: 36px;
  }
}

.description__subtitle {
  max-width: 640px;
  width: 100%;
  font-size: 30px;
  line-height: 36px;
  text-align: center;
  margin: 16px auto 64px auto;
}

@media screen and (max-width: 1124px) {
  .description__subtitle {
    margin-bottom: 56px;
  }
}

@media screen and (max-width: 750px) {
  .description__subtitle {
    width: 288px;
    font-size: 20px;
    line-height: 20px;
    margin-bottom: 40px;
    margin-top: 8px;
  }
}

.description__image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 984px;
  aspect-ratio: 3 / 2;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 1124px) {
  .description__image {
    max-width: 925px;
    width: 100%;
  }
}

@media screen and (max-width: 984px) {
  .description__image {
    max-width: 984px;
    width: 100%;
    aspect-ratio: 16/10;
  }
}

@media screen and (max-width: 568px) {
  .description__image {
    max-width: 100%;
  }
}

.description__aside {
  padding-left: 0.5rem;
  margin-left: 0.5rem;
  float: right;
  box-shadow: inset 5px 0 5px -5px brown;
  font-style: italic;
  color: #29627e;
}

.description__caption {
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 8px 0 0 0;
  max-width: 160px;
}

@media screen and (max-width: 984px) {
  .description__caption {
    margin-left: 24px;
  }
}

@media screen and (max-width: 568px) {
  .description__caption {
    margin-left: 16px;
  }
}

.description__figure {
  font-size: smaller;
  margin: 0 auto 0;
  padding: 0;
}

/* end of description */

/* start of copacker classes */

.copacker__def {
  /* width: inherit; */
  margin: 0 auto 0;
  max-width: calc(100% - 10px);
}

/* end of copacker classes */

/* start of food-safety */

.food-safety {
  display: block;
  margin: 0 auto 20px;
}

.safety__text {
  display: block;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  color: brown;
  margin: 0 auto 20px;
  max-width: 90vw;
  /* text-shadow: #ffffff 2px 2px 3px; */
  text-align: start;
}

.safety__text:last-child {
  margin-bottom: 50px;
}

@media screen and (max-width: 984px) {
  .safety__text {
    line-height: 1.3;
    margin-bottom: 10px;
  }
}
/* end of food-safety */


/* start of lead */

.lead__history {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  max-width: 984px;
  background-color: wheat;
}

@media screen and (max-width: 1124px) {
  .lead__history {
    max-width: 928px;
  }
}

@media screen and (max-width: 984px) {
  .lead__history {
    max-width: 768px;
  }
}

@media screen and (max-width: 568px) {
  .lead__history {
    min-width: 320px;
  }
}

.lead__title__history {
  max-width: 720px;
  width: 100%;
  font-size: 76px;
  line-height: 96px;
  font-weight: 900;
  text-align: center;
  margin: 0 auto 16px;
}

@media screen and (max-width: 750px) {
  .lead__title__history {
    max-width: 488px;
    font-size: 60px;
    line-height: 68px;
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 568px) {
  .lead__title__history {
    max-width: 288px;
    font-size: 40px;
    line-height: 44px;
  }
}

.lead__subtitle__history {
  max-width: 640px;
  width: 100%;
  font-size: 30px;
  line-height: 36px;
  text-align: center;
  margin: 16px auto 64px auto;
}

@media screen and (max-width: 1124px) {
  .lead__subtitle__history {
    margin-bottom: 56px;
  }
}

@media screen and (max-width: 750px) {
  .lead__subtitle__history {
    width: 288px;
    font-size: 20px;
    line-height: 20px;
    margin-bottom: 40px;
    margin-top: 8px;
  }
}

.lead__figure__history {
  margin: 20px auto 0;
  padding: 0;
}

.lead__image__history {
  display: flex;
  flex-direction: column;
  justify-content: center;
  object-fit: contain;
  max-width: 100%;
  padding: 0;
  margin: 0 auto 0;
  border-radius: 15px;
}

@media screen and (max-width: 1124px) {
  .lead__image__history {
    max-width: 925px;
    width: 100%;
  }
}

@media screen and (max-width: 984px) {
  .lead__image__history {
    max-width: 984px;
  }
}

@media screen and (max-width: 568px) {
  .lead__image__history {
    width: calc(100% - 10px);
  }
}

.lead__aside__history {
  padding-left: 0.5rem;
  margin-left: 0.5rem;
  float: right;
  box-shadow: inset 5px 0 5px -5px brown;
  font-style: italic;
  color: #29627e;
}

.lead__caption__history {
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 8px 0;
  max-width: calc(100% - 10px);
}

@media screen and (max-width: 984px) {
  .lead__caption__history {
     margin-left: 24px;
  }
}

  @media screen and (max-width: 568px) {
  .lead__caption__history {
    margin-left: 16px; 
  }
} 

/* lead-hist */

.lead-hist {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  max-width: 984px;
}

@media screen and (max-width: 1124px) {
  .lead-hist {
    max-width: 928px;
  }
}

@media screen and (max-width: 984px) {
  .lead-hist {
    max-width: 768px;
  }
}

@media screen and (max-width: 568px) {
  .lead-hist {
    min-width: 320px;
  }
}

.lead-hist__title {
  max-width: 720px;
  width: 100%;
  font-size: 76px;
  line-height: 96px;
  font-weight: 900;
  text-align: center;
  margin: 0 auto 16px;
}

@media screen and (max-width: 750px) {
  .lead-hist__title {
    max-width: 488px;
    font-size: 60px;
    line-height: 68px;
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 568px) {
  .lead-hist__title {
    max-width: 288px;
    font-size: 40px;
    line-height: 44px;
  }
}

.lead-hist__subtitle {
  max-width: 640px;
  width: 100%;
  font-size: 30px;
  line-height: 36px;
  text-align: center;
  margin: 16px auto 64px auto;
}

@media screen and (max-width: 1124px) {
  .lead-hist__subtitle {
    margin-bottom: 56px;
  }
}

@media screen and (max-width: 750px) {
  .lead-hist__subtitle {
    width: 288px;
    font-size: 20px;
    line-height: 20px;
    margin-bottom: 40px;
    margin-top: 8px;
  }
}

.lead-hist__image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 984px;
  aspect-ratio: 3 / 2;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 1124px) {
  .lead-hist__image {
    max-width: 925px;
    width: 100%;
  }
}

@media screen and (max-width: 984px) {
  .lead-hist__image {
    max-width: 984px;
    width: 100%;
    aspect-ratio: 16/10;
  }
}

@media screen and (max-width: 568px) {
  .lead-hist__image {
    max-width: 100%;
  }
}


/* cover section */

.cover__history {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  margin: 0 auto 0;
}

.cover__title__history {
  text-align: center;
  font-size: 72px;
  line-height: 76px;
  font-weight: 900;
  margin: 0 auto 0;
  max-width: 560px;
}

@media screen and (max-width: 568px) {
  .cover__title__history {
    font-size: 32px;
    line-height: 35px;
    margin: 0;
    max-width: 288px;
  }
}

.cover__subtitle__history {
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  margin: 16px 0 0 0;
  text-align: center;
  max-width: 360px;
}

@media screen and (max-width: 984px) {
  .cover__subtitle__history {
    max-width: 50%;
  }
}

@media screen and (max-width: 568px) {
  .cover__subtitle__history {
    max-width: none;
    font-size: 14px;
    line-height: 16px;
    margin: 8px 0 0 0;
  }
}

.cover__history__text {
  font-size: 16px;
  line-height: 1.63;
  margin: 40px auto 33px;
  max-width: 90%;
}

.cover__history__text:last-child {
  font-size: 16px;
  line-height: 1.63;
  margin-bottom: 100px;
}


.details__history__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.63;
  margin: 40px auto 33px;
  max-width: 100%;
}

.cover__item__history {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 740px;
  background-color: beige;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-decoration: none;
  box-sizing: border-box;
  padding: 20px;
  color: #ffffff;
  cursor: pointer;
  z-index: 1;
}

.cover__item__history::before {
  content: '';
  position: absolute;
  background: #2A2C2F;
  opacity: .3;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: -1;
  transition: .5s;
}

@media screen and (max-width: 1124px) {
  .cover__item__history {
    min-height: 640px;
  }
}

@media screen and (max-width: 984px) {
  .cover__item__history {
    min-height: 480px;
  }
}

@media screen and (max-width: 568px) {
  .cover__item__history {
    min-height: 200px;
  }
} 

.cover__item__history:hover::before {
  opacity: .8;
}

/* end fo cover */

/* start of intro */

.intro__history {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  max-width: 984px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: wheat;
}

@media screen and (max-width: 1124px) {
  .intro__history {
    max-width: 928px;
  }  
}

@media screen and (max-width: 984px) {
  .intro__history {
    width: calc(100% - 48px);
  }  
}

@media screen and (max-width: 568px) {
  .intro__history {
    width: calc(100% - 32px);
  }  
}

.intro__title__history {
  font-size: 48px;
  line-height: 1.07;
  font-weight: 900;
  margin: 0;
}

@media screen and (max-width: 568px) {
  .intro__title__history {
    font-size: 28px;
    line-height: 1.093;
  }
}

.intro__text__history {
  font-size: 16px;
  line-height: 1.63;
  margin: 40px 0 33px 0;
  max-width: 690px;
}

.details__text__history {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.63;
  margin: 40px auto 33px;
  max-width: 100%;
}

.summary__details-title__history {
  font-weight: 800;
}

.intro__content__history {
  max-width: 690px;
}

@media screen and (max-width: 984px) {
  .intro__content__history {
    max-width: 720px;
    width: 100%;
  }
}

.intro__list__history {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  max-width: 690px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro__list-facts__history {
  font-weight: 700;
}

.intro__list-figures__history {
  font-style: normal;
  font-weight: 900;
}

/* end of intro */

/* start of service */

.service__history {
  display: grid;
  grid-template-columns: minmax(440px, 460px) 1fr;
  grid-template-rows: repeat(2, min-content);
  box-sizing: border-box;
  gap: 48px 40px;
}

@media screen and (max-width: 1124px) {
  .service__history {
    gap: 48px 12px;
  }
}

@media screen and (max-width: 984px) {
  .service__history {
    grid-template-columns: 340px 1fr;
    gap: 48px 28px;
  }
}

@media screen and (max-width: 750px) {
  .service__history {
    grid-template-columns: auto;
    margin: 0;
  }
}

@media screen and (max-width: 568px) {
  .service__history {
    gap: 32px;
  }
}

.service__website__history {
  max-width: 456px;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

@media screen and (max-width: 750px) {
  .service__website__history {
    grid-column: 1;
    grid-row: 2;
    margin: 0 16px;
  }
} 

.service__url-heading__history {
  color: #aaaaaa;
  font-size: 12px;
  line-height: 12px;
  display: block;
  margin: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.service__title__history {
  font-weight: 900;
  font-size: 56px;
  line-height: 76px;
  margin: 0;
}

@media screen and (max-width: 984px) {
  .service__title__history {
    font-size: 42px;
    line-height: 46px;
  }
}

@media screen and (max-width: 750px) {
  .service__title__history {
    margin: 0 16px;
  }
}

@media screen and (max-width: 568px) {
  .service__title__history {
    font-size: 32px;
    line-height: 35px;
  }
}

.service__paragraphs__history {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

@media screen and (max-width: 750px) {
  .service__paragraphs__history {
    margin: 0 16px;
  }
}

.service__paragraph__history {
  font-size: 18px;
  line-height: 163%;
  margin: 0;
}

@media screen and (max-width: 984px) {
  .service__paragraph__history {
    font-size: 16px;
  }
} 

.service__link__history {
  font-size: 18px;
  line-height: 22px;
  margin: 0;
  text-decoration: none;
  text-underline-offset: 3px;
  color: #fff;
  text-decoration-line: underline;
}

.service__link__history:hover {
  opacity: .8;
  transition: .5s;
  cursor: pointer;
}

.service__image__history {
  max-width: 460px;
  aspect-ratio: 1/1;
  object-fit: cover;
  grid-column: 1;
  grid-row: 2;
}

@media screen and (max-width: 1124px) {
  .service__image__history {
    max-width: 440px;
    aspect-ratio: 1/1;
  }
}

@media screen and (max-width: 984px) {
  .service__image__history {
    max-width: 340px;
  }
} 

@media screen and (max-width: 750px) {
  .service__image__history {
    max-width: 100%;
    aspect-ratio: 1/1;
    grid-row: 3;
  }
} 

.services__history {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  display: grid;
  flex-direction: column;
  max-width: 984px;
  margin: 0 auto;
  box-sizing: content-box;
  gap: 80px;
  background-color: wheat;
}

@media screen and (max-width: 1124px) {
  .services__history {
    max-width: 928px;
  }
}
@media screen and (max-width: 984px) {
  .services__history {
    max-width: 720px;
    gap: 73px;
  }
}
@media screen and (max-width: 568px) {
  .services__history {
    min-width: 320px;
    gap: 50px;
  }
}

.service__figure__history {
  margin: 0 auto 0;
  padding: 0;
}

.service__caption__history {
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 8px 0 0 0;
  max-width: 160px;
}

@media screen and (max-width: 984px) {
  .service__caption__history {
    margin-left: 24px;
  }
}

@media screen and (max-width: 568px) {
  .service__caption__history {
    margin-left: 16px;
  }
}

/* end of services */

.photo-grid__history {
  display: grid;
  box-sizing: border-box;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  justify-items: center;
  /* align-items: center; */
  margin: 0 auto 10px;
}

@media screen and (max-width: 984px) {
  .photo-grid__history {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 0 auto 20px;
  }
}

@media screen and (max-width: 568px) {
  .photo-grid__history {
    min-width: 288px;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 auto 0;
  }
}

.photo-grid__item__history {
  object-fit: cover;
  width: 100%;
  height: auto;
  border-radius: 15px;
}



.footer__history {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  max-width: 1184px;
  display: flex;
  justify-content: space-between;
  margin: 0 48px;
  background-color: brown;
  padding: 10px;;
}

@media screen and (max-width: 984px) {
  .footer__history {
    margin: 0 24px;
  }
}

@media screen and (max-width: 750px) {
  .footer__history {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 18px;
    gap: 48px;
  }
}

.footer__link__history {
  font-size: 16px;
  line-height: 18px;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
}

.footer__link__history:hover {
  opacity: .8;
}

@media screen and (max-width: 750px) {
  .footer__link__history {
    font-size: 24px;
    line-height: 24px;
  }
}

.footer__links__history {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  list-style: none;
}

@media screen and (max-width: 750px) {
  .footer__links__history {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
} 

.footer__copyright__history {
  margin: 0;
  font-size: 14px;
  line-height: 16px;
 }
 
 @media screen and (max-width: 568px) {
   .footer__copyright__history {
     line-height: 14px;
   }
 }
   
/* closing */

.closing__history {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  max-width: 984px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: wheat;
}

@media screen and (max-width: 1124px) {
  .closing__history {
    max-width: 928px;
  }  
}

@media screen and (max-width: 984px) {
  .closing__history {
    width: calc(100% - 48px);
  }  
}

@media screen and (max-width: 568px) {
  .closing__history {
    width: calc(100% - 32px);
  }  
}

.closing__title {
  font-size: 48px;
  line-height: 1.07;
  font-weight: 900;
  margin-top: 50px;
}

@media screen and (max-width: 568px) {
  .closing__title {
    font-size: 28px;
    line-height: 1.093;
    margin-top: 20px;
  }
}

.closing__text__history {
  font-size: 16px;
  line-height: 1.63;
  margin: 40px 0 33px 0;
  max-width: 690px;
}

.closing__details__text__history {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.63;
  margin: 40px auto 33px;
  max-width: 100%;
}

.closing__figure__history {
  margin: 0 auto 0;
  padding: 0;
}

.closing__image__history {
  display: flex;
  flex-direction: column;
  justify-content: center;
  object-fit: contain;
  max-width: 100%;
  aspect-ratio: 5 / 2;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 568px) {
  .closing__image__history {
    object-fit: cover;
  }
}

.video__iframes {
  margin: 50px auto;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
}

.video__iframe {
  margin: 0;
  padding: 0;
  width: 515px;
  height: 316px;
  border: none;
  transition: opacity 1s, visibility 1s, transform 1s ease-in-out;
}

.video__iframe:hover {
  opacity: .3;
  visibility:visible;
  transition: opacity 1s, visibility 1s, transform 1s ease-in-out;
}

.video {
  background-color: white;
  display: none;
  flex-direction: column;
  position: relative;
  margin: 0;
  padding: 0;
}