﻿* {
  margin: 0;
  padding: 0;
  outline: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Verdana, sans-serif;
  font-size: 12px;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

nav {
  display: flex;
  max-width: 1000px;
  width: 100%;
  justify-content: flex-end;
  padding: 10px 0;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
}

nav li {
  margin: 0 3px;
  width: 17px;
}

nav li a {
  text-decoration: none;
  color: gray;
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav li a span {
  padding-top: 5px;
}

nav li:hover a {
  color: black;
  font-weight: 600;
}

.active {
  color: black;
  font-weight: 600;
}

.header_section {
  width: 100%;
  background-color: #f7f7f7;
  border: 1px solid #ebebeb;
}

.header_section>div {
  display: flex;
  margin: 0 auto;
  max-width: 1000px;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}

.more_info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.inline_flex>img {
  padding: 10px 0 8px 0;
}

.more_info span {
  font-size: 12px;
  color: rgb(129, 129, 129);
}

.more_info a {
  margin-top: 2px;
  text-transform: lowercase;
  font-size: 16px;
  text-decoration: none;
  color: #eac035;
  font-weight: 600;
}

main {
  display: flex;
  flex-direction: column;
}

main h1 {
  color: rgb(54, 50, 50);
  background-color: #fbfbfb;
  text-align: center;
  padding: 10px 0;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.slider {
  max-width: 1000px;
  margin: 0 auto;
}

main section {
  width: 100%;
}

main section div {
  padding: 0 10px;
  max-width: 1000px;
  margin: 0 auto;
  font-size: medium;
  text-align: justify;
}

section div p {
  margin: 10px 0;
}

h2 {
  padding: 10px 0;
  background-color: #fbfbfb;
  text-align: center;
  text-transform: uppercase;
}


.offer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  padding-bottom: 10px;
  padding-top: 10px;
}

.offer-item {
  display: flex;
  max-width: 465px;
  height: 284px;
  width: 100%;
  border-radius: 10px;
  background-position: center;
  background-size: cover !important;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: 0.3s ease-out;
}

.offer-item:hover {
  transform: scale(1.05);
}

.offer a span {
  color: white;
  font-weight: 600;
  font-size: 28px;
}

.grabo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.middle-text {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  text-align: center;
  font-weight: 500;
}

.header_section img {
  order: 1;
}

.header_section .middle-text {
  order: 2;
}

.header_section .more_info {
  order: 3;
}

.grabo img {
  width: 100%;
  margin: 0 auto;
  max-height: 320px;
  object-fit: contain;
}

.grabo>p {
  margin: 0 auto;
  padding-top: 10px;
}

.buttonik {
  margin-top: 10px;
  background-color: #011a43;
  color: white;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s all ease-out;
  display: block;
  width: 170px;
  text-align: center;
}

.buttonik:hover {
  background-color: #0143b1;
  transform: scale(1.1);
}

.cols4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid lightgray;
  border-radius: 10px;
  padding: 10px;
  overflow: hidden;
  transition: 0.3s ease-out;
  row-gap: 5px;
}

.item img {
  transition: 0.3s ease-out;
  max-width: 200px;
  min-height: 200px;
  object-fit: cover;
  margin: 0 auto;
}

.item:hover img {
  transform: scale(1.1);
}

.offer .item span {
  color: black;
  font-size: 14px;
  font-weight: normal;
  padding-top: 5px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.offer .item .name {
  font-size: 16px;
  font-weight: 600;
}

.kontakt {
  text-align: center;
  margin-bottom: 10px;
}

@media (max-width: 940px) {

  .offer,
  .grabo {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  section div {
    max-width: 700px !important;
  }

  .grabo img {
    max-width: 465px;
    padding-left: 0;
  }

  .buttonik {
    margin: 0 auto;
  }

  .cols4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item img {
    max-width: 300px;
  }
}

iframe {
  max-width: 1000px;
  width: 100%;
}

.kontakt a {
  text-decoration: none;
  color: black;
}


@media (max-width: 450px) {
  nav {
    justify-content: center;
  }

  .cols4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .item img {
    max-width: 300px;
  }
}

#author {
  margin: 0px auto;
  text-align: center;
  padding: 10px 20px;
  font-size: 11px;
  color: #999;
  background-color: #eee;
  width: 100%;
  max-width: 100%;
}

#author img {
  border: none;
  vertical-align: middle;
}

#author a {
  color: #555;
}

.center {
  margin: 0 auto !important;
}

.fb-cont {
  text-align: center;
  margin: 10px 0;
}

.inline {
  display: none;
}

@media (max-width: 791px) {
  .header_section>div {
    flex-direction: column;
  }

  .header_section .middle-text {
    order: 4;
  }

  .header_section .more_info {
    display: none;
  }

  .inline {
    display: flex !important;
  }

  .inline_flex>img {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .middle-text {
    padding-bottom: 10px;
  }

  .more_info {
    align-items: center;
    margin: 5px 0 10px 0;
  }

  .middle-text span:last-of-type {
    display: none;
  }
}

@media (max-width: 413px) {
  ul {
    justify-content: center;
    row-gap: 5px;
  }
}