* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --bcgDark: #272626;
  --bcgLight: #333333;
  --logoMainColor: #c80e23;
  --colorAlternativeRed: #d23738;
  --textWhiteColor: whitesmoke;
  --textGreyColor: grey;
  --ellipseColor: #fce35c;
  --fontFamilyUbuntu: "Ubuntu", sans-serif;
  --fontFamilyNotoSans: "Noto Sans", sans-serif;
  --afterRedLineWidth: 30%;
  /* clip-path */
  --circleSize: 16%;
  --ellipseX: 77%;
  --ellipseY: 12%;
  --xPosition: 100%;
  --yPosition: 0%;
}

body {
  /* font-family: Helvetica, sans-serif; */
  font-family: var(--fontFamilyNotoSans);
  font-weight: 300;
  font-size: 16px;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

/* typography */

h1,
h2,
h3 {
  /* font-family: Helvetica, Arial, sans-serif; */
  font-family: var(--fontFamilyDongle);
  font-weight: 300;
}

.contactItem h2 {
  font-size: 1rem;
}

nav h1,
nav a {
  font-weight: 700;
  text-transform: uppercase;
}

nav h1 {
  color: #000;
}

nav a:hover,
nav a:focus {
  color: var (--logoMainColor);
}

.strong {
  font-weight: 700;
}

/* Layout */

.container {
  max-width: 90%;
  margin: 0 auto;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.relative {
  position: relative;
}

/* yellow-orange background */
.circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--ellipseColor);
  background: linear-gradient(45deg, var(--ellipseColor) 80%, #f39c1a 100%);
  clip-path: circle(var(--circleSize) at right top);
  z-index: -1;
}

.circle1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  clip-path: circle(calc(var(--circleSize) + 0.5%) at right top);
  z-index: -1;
}

.circle1border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  clip-path: circle(calc(var(--circleSize) + 0.55%) at right top);
  z-index: -2;
}

/* header */

header {
  text-align: center;
  margin-bottom: 4em;
}

/* .fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
} */

.contact {
  position: relative;
  padding: 0.5em 0 1em 0;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contactItem {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

img.imgHeader {
  display: inline-block;
  height: 1rem;
  padding-right: 0.5em;
}

/* nav and logo */

nav.navigation {
  display: block;
}

nav.navigation ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

nav.navigation li {
  padding: 0.5em 0.5em;
}

nav.navigation a {
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  display: inline-block;
  color: #000;
  text-transform: uppercase;
  transition: 0.1s;
  letter-spacing: 1px;
}

nav.navigation a:hover:not(.active),
nav.navigation a:focus:not(.active) {
  color: var(--logoMainColor);
  border-bottom: 2px solid var(--logoMainColor);
}

/* .current_page {
    border-bottom: 2px solid var(--logoMainColor)
} */

.logoName {
  font-size: 1.2rem;
  text-align: center;
}

.logoName img {
  height: 3.1rem;
}

/* to musi byc bo sie samo podkresla */
nav .logoName a.logo:hover,
nav .logoName a.logo:focus {
  border-bottom: 0;
}

/* main */

main {
  color: #000;
  position: relative;
}

.mainMessage {
  width: 100%;
  text-align: center;
  padding: 1em 0;
  line-height: 2em;
}

.mainMessage-textContainer {
  width: 100%;
}

.mainMessage h1 {
  position: relative;
  text-transform: uppercase;
  font-size: 1.6rem;
  text-align: left;
  margin-bottom: 0.3em;
}

.mainMessage h1::after {
  position: absolute;
  content: "";
  width: var(--afterRedLineWidth);
  height: 3px;
  top: -0.6em;
  left: 0;
  background-color: var(--logoMainColor);
}

.mainMessage h2 {
  font-size: 1.4rem;
  text-align: left;
  margin-bottom: 1em;
}

.rotateImg {
  box-shadow: 0px 0px 8px -1px black;
  border-radius: 5px;
  margin-bottom: 1em;
}

/* pricelist */
#pricelist {
  background-color: #ededed;
}

.section_title {
  text-align: left;
  position: relative;
  font-size: 1.6rem;
  padding: 1.5em 0 0.8em 0;
  text-transform: uppercase;
}

.section_title::after {
  position: absolute;
  content: "";
  width: var(--afterRedLineWidth);
  height: 3px;
  position: absolute;
  top: 1em;
  left: 0;
  background-color: var(--logoMainColor);
}

.section_list {
  display: flex;
  justify-content: center;
  flex-direction: column;
  list-style: none;
  width: 100%;
  padding-bottom: 2em;
}

.section_list_item {
  padding: 0.3em 0;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
}

/* advantages */
.advantages {
  background-color: #fff;
}

.advantage_list {
  padding-block: 1em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.advantage_item {
  height: 10em;
  border-radius: 3%;
  flex-basis: 24%;
  padding-block: 0.2em;
  text-align: center;
}

.advantage_item h3 {
  padding-block: 1em;
}

.iconBcg {
  position: relative;
  width: 5em;
  height: 5em;
  background-color: var(--ellipseColor);
  border-radius: 50%;
  display: inline-block;
}

img.advantage_img {
  width: 2.5em;
  height: 2.5em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.advantage_item:nth-child(3) img.advantage_img {
  height: 2.8em;
}

/* location and contact */

#location {
  background-color: var(--bcgLight);
  color: var(--textWhiteColor);
  padding: 2em 0;
}

.location_logo {
  display: flex;
  flex-flow: column nowrap;
}

.logoName_location {
  width: 14rem;
}

.location_element {
  flex-basis: 20%;
}

.location_element:first-child p {
  padding: 1em 0;
  font-size: 1.1rem;
  font-weight: lighter;
  letter-spacing: 1px;
  width: 100%;
}

.location_element:nth-child(2) {
  padding-bottom: 1em;
}

.iframe-rwd {
  position: relative;
  padding-bottom: 65.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.iframe-rwd iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.contactEl {
  padding: 0.5em 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  transition: 0.1s;
}

.contactEl:hover {
  color: var(--logoMainColor);
}

.contactEl img {
  height: 1.8rem;
}

.contactEl h2 {
  font-size: 1.1em;
}

/* footer */

footer {
  background-color: var(--bcgDark);
  padding: 1.8em 0;
  color: var(--textWhiteColor);
}

.footer-flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

footer a {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--textGreyColor);
}

footer span {
  color: var(--logoMainColor);
}

footer span:hover {
  /* arrow's color */
  color: #fe4343;
}

footer .container.flex {
  justify-content: space-around;
}

.moveTop img {
  height: 50px;
  width: 50px;
}

/* 320px — 480px: Mobile devices */
/* 481px — 768px: iPads, Tablets */
/* 769px — 1024px: Small screens, laptops */
/* 1025px — 1200px: Desktops, large screens */
/* 1201px and more —  Extra large screens, TV */

@media (min-width: 321px) {
  .contactEl span {
    display: block;
  }
}

@media (min-width: 341px) {
  header {
    margin-bottom: 5em;
  }

  :root {
    --xPosition: 80%;
  }

  .circle {
    clip-path: circle(var(--circleSize) at var(--xPosition) var(--yPosition));
  }

  .circle1 {
    clip-path: circle(
      calc(var(--circleSize) + 0.5%) at var(--xPosition) var(--yPosition)
    );
  }

  .circle1border {
    clip-path: circle(
      calc(var(--circleSize) + 0.55%) at var(--xPosition) var(--yPosition)
    );
  }
}

@media (min-width: 481px) {
  :root {
    --xPosition: 90%;
  }

  .circle {
    clip-path: ellipse(
      var(--ellipseX) var(--ellipseY) at var(--xPosition) var(--yPosition)
    );
  }

  .circle1 {
    clip-path: ellipse(
      calc(var(--ellipseX) + 0.5%) calc(var(--ellipseY) + 0.5%) at
        var(--xPosition) var(--yPosition)
    );
  }

  .circle1border {
    clip-path: ellipse(
      calc(var(--ellipseX) + 0.55%) calc(var(--ellipseY) + 0.55%) at
        var(--xPosition) var(--yPosition)
    );
  }

  .contactEl span {
    display: inline-block;
  }

  .footer-flex {
    justify-content: space-between;
  }
}

@media (min-width: 561px) {
  header {
    margin-bottom: 4em;
  }

  .advantage_list {
    flex-direction: row;
    justify-content: space-between;
  }

  .advantage_list .section1 {
    padding-right: 1em;
  }

  .advantage_list .section2 {
    padding-left: 1em;
  }

  .advantage_item {
    margin-bottom: 1em;
  }
}

@media (min-width: 671px) {
  /* red-line */
  :root {
    --afterRedLineWidth: 180px;
  }

  .advantage_list .section1 {
    padding-right: 0.5em;
  }

  .advantage_list .section2 {
    padding-left: 0.5em;
  }
}

@media (min-width: 769px) {
  header {
    padding-top: 3em;
  }

  .container {
    max-width: 80%;
  }

  .contact {
    margin: 1em 0;
  }

  nav.navigation {
    padding-top: 1.5em;
    padding-bottom: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  nav.navigation ul {
    flex-direction: row;
  }

  nav.navigation a {
    font-size: 1.4rem;
  }

  .logoName img {
    height: 3.5rem;
  }

  .contact .wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .contactItem h2 {
    font-size: 0.9rem;
  }

  .rotateImg {
    align-self: center;
    margin: 0 auto;
  }

  .mainMessage {
    padding-top: 0;
    margin-bottom: 1em;
  }

  :root {
    --ellipseX: 50%;
    --ellipseY: 11%;
  }
}

@media (min-width: 992px) {
  :root {
    --xPosition: 100%;
    --yPosition: 0%;
    --ellipseX: 59%;
    --ellipseY: 20%;
  }

  .contactItem h2 {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .mainMessage {
    display: flex;
    justify-content: space-around;
    padding-bottom: 4em;
  }

  .rotateImg {
    width: 60%;
    transform: rotate(-9deg);
  }

  .mainMessage-textContainer {
    width: 30%;
  }

  header {
    padding-top: 1em;
    margin-top: 0;
    padding-bottom: 1em;
    margin-bottom: 1em;
  }

  nav.navigation {
    padding-top: 1em;
  }

  .contact {
    padding-bottom: 0;
  }

  .advantage_list {
    margin-bottom: 0.5em;
  }

  .advantage_list .section1 {
    display: flex;
    width: 50%;
    justify-content: space-between;
  }

  .advantage_list .section2 {
    justify-content: space-between;
    display: flex;
    width: 50%;
  }

  .advantage_item {
    flex-basis: auto;
  }

  .location-flex {
    display: flex;
    justify-content: space-between;
  }

  .location_element {
    flex-basis: 30%;
  }
}

/* @media (min-width:1025px) {} */

@media (min-width: 1200px) {
  .container {
    max-width: 70%;
  }

  .mainMessage {
    padding-top: 2em;
  }

  .mainMessage .mainMessage-textContainer {
    line-height: 2.3em;
    letter-spacing: 1px;
  }

  .mainMessage h1 {
    font-size: 2rem;
  }

  .mainMessage h2 {
    font-size: 1.8rem;
  }

  /* main shape */
  :root {
    --xPosition: 100%;
    --yPosition: 0%;
    --ellipseX: 59%;
    --ellipseY: 30%;
  }

  /* location */
  .location_element {
    flex-basis: 33%;
  }
}

@media (min-width: 1600px) {
  .contactItem h2 {
    font-size: 1.2rem;
  }

  .container {
    max-width: 65%;
  }

  .mainMessage-textContainer {
    padding-top: 4em;
  }
}
