@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

:root {
  --red: #bf0b09;
  --lightRed: #b94743;
  --darkRed: #720a0a;
  --grey: #888888;
  --darkerGrey: #5e4f78;
}

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

html {
  overflow-x: hidden;
}

body {
  font-family: "Lato", sans-serif;
  text-align: center;
  overflow-x: hidden;
  background-color: #f3f3f3;
}

a {
  text-decoration: none;
  color: var(--darkerGrey);
  transition: 0.2s ease-in-out all;
}

header {
  border-top: 3px solid var(--red);
  background: #fff url(./grafika/tlo_gora.png) no-repeat 50% 0px;
}

header h1 {
  color: var(--red);
  font-size: 30px;
  font-weight: 700;
}

#innerHeader {
  width: 80%;
  margin: 0 auto;
}

.topLine {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px;
  color: var(--darkerGrey);
}

.topLine a:hover {
  color: var(--red);
}

.middleLine {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#logo img {
  width: 100%;
}

.bottomLine {
  color: #ffffff;
  background: url(./grafika/tlo_gora.png) var(--red) no-repeat 50% bottom;
  font-size: 20px;
  line-height: 50px;
}

.bottomLine ul {
  display: flex;
  justify-content: center;
  list-style-type: none;
  gap: 25px;
}

.bottomLine a {
  color: #fff;
}

.bottomLine a:hover {
  color: #d8d8d8;
}

main {
  background-color: rgba(243, 243, 243, 1);
  background-image: linear-gradient(
    360deg,
    rgba(243, 243, 243, 1) 0%,
    rgb(230, 230, 230) 100%
  );
}

section h2 {
  border-bottom: 1px solid var(--grey);
  color: var(--red);
  width: 15ch;
  font-size: 24px;
  padding-bottom: 5px;
  margin-bottom: 5px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 900;
}

.about {
  width: 50%;
  margin: 0 auto;
  text-align: left;
  font-size: 18px;
  padding: 20px;
}

#service {
  margin-top: 5px;
}

#service h2 {
  width: 22ch;
}

.brandsWrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
  place-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px 40px 20px 40px;
}

.phoneBrand {
  background-color: #fff;
  border-radius: 10px;
  width: 175px;
  min-height: 200px;
  padding: 15px;

  transition: 0.3s ease-in-out all;
}

.phoneBrand:hover {
  -webkit-box-shadow: -1px 1px 100px -50px rgba(0, 0, 0, 1);
  -moz-box-shadow: -1px 1px 100px -50px rgba(0, 0, 0, 1);
  box-shadow: -1px 1px 100px -50px rgba(0, 0, 0, 1);
}

.phoneBrand img {
  width: 100%;
}

#map{
  margin-top: 35px;
  margin-bottom: 35px;
}

#map iframe {
  border-radius: 10px;
  margin: 5px;
  width: 60%;
}

#footer-main{
  position: static !important;
}

footer {
  background-color: var(--darkRed);
  left: 0;
  bottom: 0;
  width: 100%;
  color: #fff;
  text-align: left;
  margin-top: 10px;
}

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

footer img {
  border-right: 1px solid whitesmoke;
  padding: 5px 5px 5px 0px;
  margin-right: 5px;
}

.top-footer-wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px;
}

.copyright {
  background-color: var(--red);
  width: 100%;
  padding: 12px;
  font-weight: 300;
}

/* ----- Marki ----- */
#aboutInBrand {
  text-align: center;
  padding: 20px 0px 20px 0px;
}
/* ----- Components w markach, modelach etc. ----- */
.componentsWrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
  place-items: center;
  justify-content: center;
  gap: 11px;
  row-gap: 25px;
  padding: 10px 35px 10px 35px;
}

.component {
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
  line-height: 25px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.component:hover h3 {
  color: var(--red);
}

/* ----- Uslugi -----  */
.servicesWrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
  place-items: center;
  justify-content: center;
  gap: 11px;
  row-gap: 25px;
  padding: 20px;
}

.service {
  background-color: #fff;
  height: 100%;
  width: 100%;
  border-radius: 10px;
}

.service h3 {
  background-color: var(--darkRed);
  color: #fff;
  padding: 5px;
}

.service .description {
  padding: 10px;
  border-top: 1px solid black;
  width: 30ch;
  margin: 0 auto;
}

.service .price {
  padding: 10px;
  font-size: 34px;
  font-weight: 400;
}

/* ----- Media queries ----- */
@media screen and (min-width: 1921px) {
  footer {
    position: fixed;
  }
}

@media screen and (max-width: 1200px) {
  .bottomLine {
    background: url(./grafika/tlo_menu.png) var(--red) no-repeat 100% 50%;
  }
  .about {
    width: 70%;
  }
  #map iframe {
    width: 80%;
  }
  .bottomLine ul {
    gap: 20px;
  }
}

@media screen and (max-width: 600px) {
  header h1 {
    font-size: 24px;
  }
  .componentsWrapper {
    grid-template-columns: repeat(auto-fit, minmax(200px, 210px));
  }
  .about {
    width: 90%;
  }
  .bottomLine ul {
    display: none;
  }
}
