:root {
  --white: #fff;
  --black: #000;

  --primary: #A80018;
  --gray-200: #D9D9D9;
  --gray-50: #F6F6F6;

  --mobile-margin-x: 15px;
  --desktop-margin-x: 150px;

  --max-width: 1512px;
}

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  background: var(--gray-50);
  font-family: Inter, sans-serif;
  color: var(--black);
}

.mainContainer {
  position: relative;
  max-width: var(--max-width);
  width: calc(100% - var(--mobile-margin-x));
  margin: 27px auto 0;
}

.logotype {
  width: 50px;
  height: 50px;
}

.signRight {
  display: none;
}

.signLeft {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 250px;
}

.headerWrapper {
  position: relative;
  display: flex;
  column-gap: 15px;
  z-index: 1;
}

.logotypeTitle {
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}

.subTitleLogotype {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.elementsWrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 24px;
  padding: 25px 0 80px;
}

.singleElementLink {
  color: var(--black);
  text-decoration: none;
  transition: .5s;
}

.singleElementLink:hover {
  box-shadow: 5px 0px 20px 0px rgba(0, 0, 0, 0.15);
}

.singleElement {
  position: relative;
  z-index: 1;
}

.elementImageWrapper {
  height: 142px;
  border-radius: 15px 15px 0px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.elementImageWrapper.kursyRatownictwa {
  background-image: url('./assets/courses.jpg');
}

.elementImageWrapper.kursyRatownictwa img {
  max-width: 80%;
}

.elementImageWrapper.apteczkiRatownicze {
  background-image: url('./assets/shop.jpg');
}

.elementImageWrapper.apteczkiRatownicze img {
  max-width: 85%;
}

.elementImageWrapper.proMedaid {
  background-image: url('./assets/platform.jpg');
}

.elementImageWrapper.proMedaid img {
  max-width: 192px;
  height: auto;
}

.elementImageWrapper img {
  margin: 0 auto;
}

.elementContentWrapper {
  background-color: var(--white);
  padding: 20px;
}

.elementTitle {
  font-size: 22px;
  font-weight: 600;
  line-height: 31px;
  margin-bottom: 15px;
}

.elementTitle span {
  display: block;
}

.elementText {
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  margin-bottom: 20px;
}

.elementLink {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  column-gap: 5px;
}

@media (min-width: 768px) {
  .signRight {
    display: block;
    position: absolute;
    top: -27px;
    right: 0;
  }

  .signLeft,
  .signRight {
    width: 330px;
  }

  .logotype {
    width: 79px;
    height: 79px;
  }

  .headerWrapper {
    column-gap: 30px;
  }

  .logotypeTitle {
    font-size: 32px;
    line-height: 1;
  }

  .subTitleLogotype {
    font-size: 16px;
    line-height: 35px;
  }

  .singleElementLink {
    border-radius: 15px;
    overflow: hidden;
  }

  .singleElement {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .elementImageWrapper {
    height: auto;
    border-radius: 0;
  }

  .elementImageWrapper.proMedaid img {
    max-width: 602px;
  }

  .elementContentWrapper {
    border-radius: 0;
  }

  .elementTitle span {
    display: inline;
  }
}

@media (min-width: 992px) {
  .mainContainer {
    width: calc(100% - var(--desktop-margin-x));
  }

  .elementContentWrapper {
    padding: 28px 42px;
  }
}

@media (min-width: 1200px) {
  .mainContainer {
    width: calc(100% - var(--desktop-margin-x));
  }

  header > div {
    position: relative;
    top: -5px;
  }

  .logotypeTitle {
    font-size: 50px;
    line-height: 59px;
  }

  .subTitleLogotype {
    font-size: 26px;
    line-height: 35px;
  }

  .elementsWrapper {
    padding: 40px 0 145px;
  }

  .elementContentWrapper {
    padding: 28px 42px;
  }
}

@media (min-width: 1600px) {
  body {
    height: 100vh;
    overflow: hidden;
  }

  .mainContainer {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
  }

  .elementsWrapper {
    padding-bottom: 0;
  }

  .elementText {
    max-width: 80%;
  }
}