:root {
  --background-color: #fff;
  --background-secondary-color: #fff3f3;
  --text-color: #000;
  --text-accent-color: #d13438;
  --border-color: #ccc;
  --border-radius: 10px;
  --page-padding-x: 3vw;
  --page-padding-y: 3vh;
}

html {
  font-family: sans-serif;
  font-size: 12px;
  font-size: clamp(14px, 1.2vw, 20px);
}

html,
body {
  height: 100%;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
  font-weight: 100;
  overflow-x: clip;
}

body {
  font-size: 1.5rem;
  margin: 0 !important;
}

.slide {
  scroll-snap-align: start;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  transform: scale(0.95);
  transition: all 0.8s ease;
  background: no-repeat;
  background-position: center !important;
  background-size: cover;
  padding: var(--page-padding-y) var(--page-padding-x);
  box-sizing: border-box;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.container {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: start;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
}

li {
  list-style-type: "→";
  list-style-position: outside;
  padding-left: 2rem;
}

::marker {
  color: var(--text-accent-color);
}

.images {
  display: flex;
  gap: 4%;
  justify-content: space-around;
  padding: 2%;
  box-sizing: border-box;
}

.image-container img {
  width: 100%;
}

.page1,
.page3,
.page9 {
  color: white;
}

.page1 {
  background-image: url("/img/background-01.jpg");
}

.page1 h1 {
  font-size: 4rem;
}

.page1 h2 {
  font-size: 2.25rem;
  font-weight: 500 !important;
}

.first-part {
  margin-bottom: auto;
  text-align: right;
  padding: 1rem;
  margin-inline: calc(-1 * var(--page-padding-x));
  background: #00000070;
  background: linear-gradient(
    45deg,
    rgba(19, 19, 19, 0.06) 0%,
    rgba(14, 68, 68, 0.72) 75%,
    rgba(14, 68, 68, 0.78) 100%
  );
  margin-top: calc(-1 * var(--page-padding-y));
}

.second-part {
  margin-top: auto;
  text-align: start;
  margin-inline: calc(-1 * var(--page-padding-x));
  background: #00000070;
  padding: 1rem;
  background: linear-gradient(
    90deg,
    rgba(14, 68, 68, 0.78) 0%,
    rgba(14, 68, 68, 0.72) 25%,
    rgba(14, 68, 68, 0.06) 100%
  );
  margin-bottom: calc(-1 * var(--page-padding-y));
}

h2 {
  font-weight: 100;
  font-size: 3rem;
  margin: 1.5rem 0;
}

h3 {
  font-size: 2rem;
  font-weight: 100;
}

.schemes {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  row-gap: 4%;
  column-gap: 2%;
}

.schemes > div {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.schemes > div:nth-child(1) {
  flex: 1 100%;
  width: 40%;
  padding: 0;
}

.schemes > div:nth-child(2) {
  flex: 1 1 60%;
}

.schemes > div:nth-child(3) {
  flex: 1 1 30%;
}

.image-container {
  height: 100%;
}

.schemes > div:nth-child(1) .image-container {
  background-image: url("/img/Mechanism.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  height: 100%;
  width: 100%;
}

.schemes > div:nth-child(2) .image-container,
.schemes > div:nth-child(3) .image-container {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-mode: luminance;
  -webkit-mask-mode: luminance;
  mask-position: center;
  -webkit-mask-position: center;
  height: 30vh;
  width: 50%;
}

.schemes > div:nth-child(2) .image-container {
  background-image: url("/img/Schema.jpg");
  -webkit-mask-image: url("/img/schema-mask.png");
  mask-image: url("/img/schema-mask.png");
}

.schemes > div:nth-child(3) .image-container {
  background-image: url("/img/Console.jpg");
  -webkit-mask-image: url("/img/console-mask.png");
  mask-image: url("/img/console-mask.png");
  transform: rotate(-90deg);
  height: 150%;
}

.top-right,
.bottom-left {
  max-width: 30% !important;
  height: fit-content !important;
  position: absolute;
}

.top-right {
  text-align: right;
  top: 3%;
  right: 5%;
}

.bottom-left {
  bottom: 3%;
  left: 5%;
}

.page3 {
  background-image: url("/img/background-03.jpg");
}

.slide.page3 {
  font-size: 1.75rem;
  line-height: 1.25;
}

ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.applications {
  max-width: 50%;
  padding-left: 1rem;
}

.applications ul {
  display: flex;
  flex-direction: column;
  row-gap: 0.25rem;
}

.page5 p {
  font-size: clamp(1.5rem, 2vw, 3rem);
}

.page5 .container .images .image-container {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-mode: luminance;
  -webkit-mask-mode: luminance;
  mask-position: center;
  -webkit-mask-position: center;
  height: 25vh;
  width: 22%;
}

.page5 .container .images .image-container:nth-child(1) {
  background-image: url("/img/Sample-01.jpg");
  -webkit-mask-image: url("/img/sample-01-mask.png");
  mask-image: url("/img/sample-01-mask.png");
}

.page5 .container .images .image-container:nth-child(2) {
  background-image: url("/img/Sample-02.jpg");
  -webkit-mask-image: url("/img/sample-02-mask.png");
  mask-image: url("/img/sample-02-mask.png");
}

.page5 .container .images .image-container:nth-child(3) {
  background-image: url("/img/Sample-03.jpg");
  -webkit-mask-image: url("/img/sample-03-mask.png");
  mask-image: url("/img/sample-03-mask.png");
}

.page5 .container .images .image-container:nth-child(4) {
  background-image: url("/img/Sample-04.jpg");
  -webkit-mask-image: url("/img/sample-04-mask.png");
  mask-image: url("/img/sample-04-mask.png");
  transform: scale(130%);
}

.page9 {
  background-image: url("/img/background-09.jpg");
}

.slide.page9 {
  padding-bottom: 0;
}

.page9 h2 {
  width: 100%;
  margin-top: 0;
  padding-top: 8%;
  padding-inline: 8%;
  box-sizing: border-box;
  padding-bottom: 8%;
  background: var(--background-color);
}

.contacts,
.contacts a {
  min-width: fit-content;
  max-width: 250px;
  margin: auto 10% 0 auto;
  background: #fff;
  color: #000 !important;
  width: 30%;
  padding: 0 0 3% 0;
  opacity: 90%;
  text-decoration-thickness: 0.5px;
}

.contacts .contact-name {
  color: var(--text-accent-color);
  font-weight: 400;
}

.contact-data {
  padding-inline: 8%;
}

h4 .marker {
  color: var(--text-accent-color);
}

.text-container {
  display: flex;
  flex-direction: column !important;
  justify-content: center;
  font-size: calc(10px + 1vw);
  font-size: clamp(1.25rem, calc(12px + 1vw), 2.5rem);
  max-width: 50%;
  height: 100%;
}

.text-container > div {
  margin-top: auto;
  margin-bottom: auto;
}

.specifications-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  column-gap: 6%;
  row-gap: 3%;
  max-height: 85%;
  justify-content: start;
  margin-top: 2rem;
  margin-bottom: auto;
}

.specifications {
  max-width: 45%;
  flex: 0 0 auto;
  font-size: clamp(1.25rem, 1vw, 2rem);
}

h4 {
  margin: 0;
}

.table-container {
  overflow: auto;
}

table {
  font-size: clamp(1.25rem, 1.75vw, 2rem);
  text-align: center;
  border-collapse: collapse;
}

thead {
  font-weight: bolder;
}

tbody tr {
  border-top: 1px solid #ccc !important;
  background: transparent;
}

tr:nth-child(2n + 1) {
  background-color: #f2f2f2;
}

tbody tr:last-child {
  background: var(--background-secondary-color);
}

thead span {
  font-size: 1rem;
  font-weight: lighter;
  width: 100%;
  display: block;
}

thead td,
tbody td {
  padding: 8px 5px;
}

.advantages {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  height: auto;
  margin-bottom: auto;
  margin-top: 2rem;
  column-gap: 1rem;
  row-gap: 1rem;
  font-size: clamp(1.5rem, 2.5vw, 3rem);
}

.advantages > div {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2%;
  background: var(--background-color);
  box-sizing: border-box;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  text-align: center;
}

.advantages h4 {
  font-weight: bolder;
  color: var(--text-accent-color);
  justify-content: center;
}

.cards-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  column-gap: 3%;
  row-gap: 6%;
  max-height: 80%;
  font-size: clamp(1.1rem, 3vw, 2.75vh);
}

.certification.content {
  display: flex;
  flex-direction: column;
  height: 70%;
}

.card.about-dates {
  margin-bottom: 0;
  margin-top: auto;
  background: var(--background-secondary-color);
  text-align: justify;
  margin-bottom: calc(-1 * var(--page-padding-y));
  margin-inline: calc(-1 * var(--page-padding-x));
  padding-bottom: var(--page-padding-y);
  padding-inline: var(--page-padding-x) !important;
  padding: 1rem;
}

.page8 > h3 {
  max-height: 15%;
}

p {
  margin: 0.5rem 0;
}

#slides {
  width: 100vw;
}

@media only screen and (max-width: 768px) {
  .slide.page1 .container {
    margin-bottom: auto;
    margin-bottom: auto;
  }

  .slide {
    background-position: center;
  }

  .page1 h1 {
    text-align: center;
  }

  .page1 h2 {
    margin: 0.75rem 0;
  }

  .page1 h3 {
    margin: 0.5rem 0;
    margin-top: auto;
  }

  section.slide:nth-child(1) > div:nth-child(1) > p:nth-child(3) {
    text-align: end;
  }

  .text-container {
    font-size: calc(12px + 1vw);
    max-width: 50%;
    height: 100%;
  }

  .schemes > div:nth-child(2) .image-container,
  .schemes > div:nth-child(3) .image-container {
    width: 50%;
  }

  .schemes {
    flex-wrap: nowrap;
    row-gap: 4%;
    column-gap: 2%;
    height: 100%;
  }

  .schemes > div {
    align-items: center;
  }

  .schemes > div:nth-child(1) {
    width: auto;
    height: 50%;
  }

  .slide.page3 {
    font-size: 1.5rem;
  }

  .slide.page3 .container {
    background: #131313bb;
    margin-top: calc(-1 * var(--page-padding-y));
    margin-bottom: calc(-1 * var(--page-padding-y));
    margin-inline: calc(-1 * var(--page-padding-x));
    height: 100vh;
    width: 100vw;
  }

  .applications {
    max-width: 80%;
  }

  .specifications-container {
    flex-wrap: nowrap;
    font-size: 1.35rem;
    max-width: none;
    margin-top: 0;
  }

  .specifications {
    max-width: none;
  }

  .specifications ul {
    margin: 0.65rem 0;
  }

  .specifications ul li {
    padding-left: 1rem;
  }

  .images {
    flex-wrap: wrap;
  }

  .page5 .container .images .image-container {
    width: 46%;
  }

  .advantages {
    height: 100%;
    row-gap: 3%;
    margin-bottom: 2rem;
  }

  h2 {
    margin: 1rem 0;
  }

  .slide.page8 .container {
    justify-content: start;
  }

  .slide.page8 h2 {
    font-size: 2rem;
    margin: 0.5rem 0;
  }

  .slide.page8 h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0 1.5rem;
  }

  .slide.page8 h4 {
    font-size: 1.2rem;
  }

  .slide.page8 p {
    margin: 0.25rem 0;
    font-size: 1.1rem;
  }

  .cards-container {
    flex-wrap: nowrap;
    column-gap: 0%;
    row-gap: 2%;
    max-height: 85%;
  }

  .card.certification {
    max-width: none;
  }

  .card.about-dates {
    width: 100%;
    margin-left: calc(var(--page-padding-x) * -1);
    margin-right: calc(var(--page-padding-x) * -1);
    margin-top: auto !important;
  }

  .slide.page9 {
    background-position-x: -90px !important;
  }

  .contacts {
    margin: auto 0% 0 auto;
    width: 80%;
    padding: 0 0 8vw 0;
  }
}

/* Medium devices (landscape tablets, 768px and up) */

@media only screen and (min-width: 768px) {
  h2 {
    font-weight: 400;
    font-size: 4rem;
  }

  .page1 h1 {
    font-size: 5rem;
  }

  .page1 h2 {
    font-size: 3.25rem;
  }

  .page1 p {
    font-size: 2rem;
  }

  .schemes > div:nth-child(2) {
    width: 57%;
  }
  .schemes > div:nth-child(3) {
    width: 57%;
  }

  .page9 {
    background-position: -110px !important;
  }

  .contacts,
  .contacts a {
    max-width: 400px;
    width: 50%;
  }
}

/* Large devices (laptops/desktops, 992px and up) */

@media only screen and (min-width: 992px) {
  .page9 {
    background-position: left !important;
  }

  .page1 h1 {
    font-size: 4.75rem;
    margin: 1rem 0;
  }

  .page1 h2 {
    font-weight: 100;
    font-size: 3.25rem;
  }

  .page1 p {
    font-size: 2rem;
  }

  .schemes {
    gap: 1rem;
  }

  h2 {
    margin: 1.5rem 0;
  }

  .first-part {
    text-align: left;
    background: none !important;
    max-width: 40%;
    margin-top: 1vh !important;
    margin-inline: 0 !important;
  }

  .second-part {
    background: none !important;
    max-width: 40%;
    margin-bottom: 1vh;
    margin-inline: 0 !important;
  }
}

@media (min-width: 992px) and (min-aspect-ratio: 2/1) {
  .first-part {
    flex-wrap: nowrap;
    height: auto !important;
    flex-wrap: nowrap !important;
    align-content: start;
  }

  .page1 h1 {
    max-width: none !important;
    margin-left: 0;
    text-align: left !important;
  }

  .page1 h2 {
    max-width: none !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

  .page1 .first-part p {
    max-width: none !important;
    margin-left: 0 !important;
  }

  .page1 p {
    font-size: 4vh !important;
  }
}

@media only screen and (min-width: 1200px) {
  .contacts,
  .contacts a {
    max-width: 600px;
  }
}

@media only screen and (min-width: 1200px) {
  h2 {
    font-size: 260%;
  }

  .contacts .contact-name {
    font-size: 200%;
    margin-top: 0;
  }

  .contacts,
  .contacts a {
    font-size: 120%;
  }
}

@media only screen and (min-width: 1600px) {
  .page9 {
    background-position: center !important;
  }
}

@media (max-aspect-ratio: 1/1) {
  .schemes > div:nth-child(1) {
    flex: 1 1 40%;
    width: 100%;
  }

  .schemes {
    flex-wrap: nowrap;
    row-gap: 2%;
    height: 100%;
  }

  .schemes > div:nth-child(2) {
    width: 100%;
  }
  .schemes > div:nth-child(3) {
    width: 100%;
    height: 20vh;
  }

  .schemes > div:nth-child(2) {
    flex: 1 1 40%;
  }

  .schemes > div:nth-child(3) {
    flex: 1 1 20%;
  }

  .specifications {
    font-size: clamp(1.25rem, 3vw, 2rem);
  }
}

@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 2/1) {
  .specifications {
    font-size: clamp(1.25rem, 2vw, 2.5rem);
  }
}

@media (min-aspect-ratio: 2/1) {
  .page1 h1 {
    text-align: start;
    font-size: 12vh;
    display: block;
    max-width: 49%;
    height: 100%;
    margin-top: 0.5rem;
    line-height: 10vh;
  }

  .page1 h2 {
    margin: 0.5rem 0;
    font-size: 7.5vh;
    display: block;
    max-width: 49%;
    line-height: 10vh;
    margin-left: auto;
  }

  .first-part {
    padding: var(--page-padding-x);
    background: linear-gradient(
      0deg,
      rgba(19, 19, 19, 0.06) 0%,
      rgba(14, 68, 68, 0.72) 75%,
      rgba(14, 68, 68, 0.78) 100%
    );
    margin-top: calc(-1 * var(--page-padding-y));
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 36vh;
  }

  .second-part {
    padding: 0;
    background: transparent;
    margin-bottom: calc(-1 * var(--page-padding-y));
    display: flex;
    justify-content: space-between;
    line-height: 10vh;
    flex-direction: column;
    margin-left: 0 !important;
  }

  .page1 .first-part p {
    display: block;
    max-width: 49%;
    margin-left: auto;
  }

  .second-part h2 {
    text-align: left;
    margin-right: auto;
    line-height: 10vh;
    margin-left: 0;
  }

  .page1 p {
    margin-top: 0;
  }

  .schemes {
    flex-wrap: wrap;
  }

  .schemes > div:nth-child(1) {
    width: 45%;
    flex: 1 1 100%;
  }

  .schemes > div:nth-child(2) {
    max-width: 53%;
  }

  .schemes > div:nth-child(3) {
    max-width: 53%;
  }

  .applications {
    height: 100vh;
    margin-top: calc(-1 * var(--page-padding-y));
    margin-bottom: calc(-1 * var(--page-padding-y));
    margin-inline: calc(-1 * var(--page-padding-x));
    background: #0000000c;
    width: 100vw;
    max-width: 100vw;
    padding: 2rem;
  }

  .applications ul {
    flex-wrap: wrap;
    max-height: 70%;
  }

  li {
    padding-left: 0.5rem;
  }

  .applications li {
    max-width: 44%;
  }

  .specifications {
    max-width: 45% !important;
    font-size: clamp(1.1rem, 3vh, 2.5rem);
  }

  .specifications-container {
    flex-wrap: wrap !important;
    max-width: 100%;
    margin-top: 1rem;
  }

  .page4 h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .specifications ul {
    margin-top: ;
    margin: 1vh 0;
  }

  .page5 .container .images .image-container {
    width: 22% !important;
  }

  .advantages {
    margin-top: 0;
    column-gap: 1vh;
    row-gap: 1vh;
    font-size: clamp(1rem, 5vh, 3rem);
  }

  h2 {
    font-size: 10vh;
    margin-bottom: 1rem;
  }

  .page8 h3 {
    font-size: clamp(1.1rem, 4vh, 2rem) !important;
    margin-top: 0;
    margin-bottom: 1vh;
  }

  .page8 h2 {
    font-size: clamp(1.1rem, 12vh, 2rem) !important;
    margin-bottom: 1vh !important;
    margin-top: 1vh !important;
  }

  .cards-container h4 {
    font-size: clamp(1.1rem, 4vh, 2rem) !important;
  }

  .card.about-dates {
    padding: 1vh;
    font-size: clamp(1.1rem, 4vh, 2rem) !important;
  }

  .cards-container {
    max-height: 95%;
    font-size: clamp(1rem, 2.5vh, 3rem) !important;
    max-width: 49% !important;
    flex-wrap: wrap !important;
  }

  .certification.content {
    height: 70vh !important;
  }

  .slide.page9 {
    background-position-x: left !important;
  }
}
