/* font */
@import url("https://fonts.googleapis.com/css2?family=Literata:wght@200;300;400&family=Montserrat:ital,wght@0,200;0,500;0,600;1,500&display=swap");

* {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  scroll-padding-top: 2rem;
  scroll-behavior: smooth;
  list-style: none;
  text-decoration: none;
}
/* променливи */
:root {
  --main-color: #9e050f;
  --secondary-color: #4e5257;
  --text-color: black;
  --gradient: linear-gradient(#9e050f, #e6e3e5);
}
/* scrolling bar */
html::-webkit-scrollbar {
  width: 0.5rem;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 2rem;
}
body {
  background-color: #e6e3e5;
}
section {
  padding: 50 100px;
}
.bx {
  visibility: hidden;
}
header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  background: var(--main-color);
  padding: 15px 100px;
}

.logo img {
  width: 5rem;
}
.navbar {
  display: flex;
}
.navbar li {
  position: relative;
}
.navbar a {
  font-size: 1rem;
  padding: 10px 20px;
  color: black;
  font-weight: 600;
}
.navbar a::after {
  content: "";
  width: 0;
  height: 3px;
  background: var(--gradient);
  position: absolute;
  bottom: -4px;
  left: 0;
  transition: 0.5s;
}
.navbar a:hover::after {
  width: 100%;
}
.home {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(2, 1fr);
}
.text h1 {
  font-size: 5rem;
  letter-spacing: 2px;
  margin-left: 6rem;
  margin-bottom: 1rem;
  user-select: none;
}
.text span {
  color: var(--main-color);
  -webkit-text-stroke: 1px black;
}
.text p {
  margin: 00.5rem 0 1rem;
  display: flex;
  margin-left: 6rem;
  font-size: 1.2rem;
  letter-spacing: 0.8px;
  user-select: none;
}
.teslasnimka {
  width: 55rem;
  user-select: none;
  margin-left: 1rem;
}
.heading {
  margin-left: 2rem;
  text-align: center;
  margin-top: 4rem;
}
.heading span {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 4rem;
  text-shadow: 1px 1px #9e050f;
  user-select: none;
}
/* история */
.istoria-container {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, auto));
  gap: 1rem;
  margin-top: 0;
}
.istoria-container .box {
  text-align: center;
  padding: 20px;
  user-select: none;
}
.istoria-container .box .h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 1rem 0 0.5rem;
  margin-bottom: 1rem;
}

.istoria-container .box img {
  width: 15rem;
  align-items: center;
}
/* 21век */
.dpvek-container {
  display: flex;
}
.dpvek-container p {
  margin-top: 6rem;
  letter-spacing: 0.05rem;
  font-weight: 500;
  margin-left: 2rem;
}
.dpvek-container img {
  margin-top: 5rem;
}
.dpvek {
  margin-top: 4rem;
}
/* бъдеще */
.budeshte-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, auto));
  gap: 1rem;
  margin-top: 2rem;
}
.budeshte-container .box {
  padding: 10px;
  border-radius: 1rem;
  box-shadow: 1px 3px 41px rgba(0, 0, 0, 0.1);
}
.budeshte-container .box .box-img {
  width: 100%;
  height: 200px;
}
.budeshte-container .box .box-img img {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  object-fit: cover;
  object-position: center;
}
.budeshte-container .box p {
  padding: 0 10px;
  border: 1px solid var(--secondary-color);
  border-radius: 0.5rem;
  margin: 1rem 0 1rem;
  text-align: center;
}
.budeshte-container .box h5 {
  font-weight: 500;
  color: var(--text-color);
}
/* контакти */
.contacts-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
  align-items: center;
  gap: 1rem;
}
.contacts-img img {
  width: 100%;
  user-select: none;
}
.contacts-text span {
  font-weight: bolder;
  font-size: 1.5rem;
  color: var(--main-color);
  text-transform: uppercase;
  user-select: none;
}
.contacts-text p {
  margin: 0.5rem 0 1.4rem;
  letter-spacing: 0.1rem;
  user-select: none;
}
/* форма */
.form-style-6 {
  font: 95% Arial, Helvetica, sans-serif;
  max-width: 600px;
  margin: auto;
  padding: 16px;
  background: #f7f7f7;
}
.form-style-6 h1 {
  background: var(--main-color);
  padding: 20px 0;
  font-size: 140%;
  font-weight: 300;
  text-align: center;
  color: #fff;
  margin: -16px -16px 16px -16px;
  user-select: none;
}
.form-style-6 input[type="text"],
.form-style-6 input[type="date"],
.form-style-6 input[type="datetime"],
.form-style-6 input[type="email"],
.form-style-6 input[type="number"],
.form-style-6 input[type="search"],
.form-style-6 input[type="time"],
.form-style-6 input[type="url"],
.form-style-6 textarea,
.form-style-6 select {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  outline: none;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  width: 100%;
  background: #fff;
  margin-bottom: 4%;
  border: 1px solid #ccc;
  padding: 3%;
  color: #555;
  font: 95% Arial, Helvetica, sans-serif;
}
.form-style-6 input[type="text"]:focus,
.form-style-6 input[type="date"]:focus,
.form-style-6 input[type="datetime"]:focus,
.form-style-6 input[type="email"]:focus,
.form-style-6 input[type="number"]:focus,
.form-style-6 input[type="search"]:focus,
.form-style-6 input[type="time"]:focus,
.form-style-6 input[type="url"]:focus,
.form-style-6 textarea:focus,
.form-style-6 select:focus {
  box-shadow: 0 0 5px var(--secondary-color);
  padding: 3%;
  border: 1px solid var(--main-color);
}

.form-style-6 input[type="submit"],
.form-style-6 input[type="button"] {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  width: 100%;
  padding: 3%;
  background: var(--secondary-color);
  border-bottom: var(--secondary-color);
  border-top-style: none;
  border-right-style: none;
  border-left-style: none;
  color: #fff;
}
.form-style-6 input[type="submit"]:hover,
.form-style-6 input[type="button"]:hover {
  background: var(--main-color);
}
.contacts-container iframe {
  margin-left: 6rem;
}
.copyright {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.socials a {
  color: #444;
  padding: 10px;
  font-size: 21px;
}
/* RESPONSIVE */
@media only screen and (max-width: 1300px) {
  .teslasnimka {
    width: 40rem;
    margin-left: -2rem;
  }
  .text h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-left: 1rem;
    margin-bottom: 2rem;
  }
  .text p {
    margin-left: 1rem;
  }
  .dpvek-container p {
    width: 40rem;
  }
  .dpvek-container img {
    width: 40rem;
  }
}
@media only screen and (max-width: 1035px) {
  .teslasnimka {
    width: 30rem;
  }
  .heading span {
    font-size: 3rem;
  }
  .budeshte-container .box .box-img {
    height: 180px;
  }
  .dpvek-container img {
    width: 30rem;
  }
  .dpvek-container p {
    width: 29rem;
  }
  .contacts-container iframe {
    margin-left: 3rem;
    width: 450px;
  }
  .contacts-img img {
    width: 80%;
  }
  .contacts-text p {
    margin: 0.3rem 0 1rem;
    letter-spacing: 0rem;
  }
}
@media only screen and (max-width: 880px) {
  .dpvek-container img {
    display: none;
  }
  .teslasnimka {
    width: 27rem;
  }
  .dpvek-container p {
    text-align: center;
    margin-top: 0rem;
    width: 50rem;
    margin-left: 0rem;
  }
  .bx {
    visibility: visible;
  }
  header .navbar {
    position: absolute;
    top: -500px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    transition: 0.2s ease;
    text-align: center;
  }
  .navbar a:hover {
    color: #fff;
    background: var(--main-color);
    border: none;
  }
  .navbar a::after {
    display: none;
  }
  .navbar.active {
    top: 100%;
  }
  .navbar a {
    padding: 1rem;
    border-left: 2px solid var(--main-color);
    margin: 1rem;
    display: block;
  }
}
@media only screen and (max-width: 750px) {
  .teslasnimka {
    width: 22rem;
  }
  .budeshte-container .box {
    padding: 5px;
    border-radius: 0.6rem;
  }
  .contacts-container iframe {
    margin-left: 2rem;
    width: 300px;
  }
}
@media only screen and (max-width: 700px) {
  .heading {
    margin-left: 0rem;
  }
  .heading span {
    font-size: 2.5rem;
  }
}
@media only screen and (max-width: 645px) {
  .teslasnimka {
    width: 19rem;
  }
}
@media only screen and (max-width: 610px) {
  .teslasnimka {
    width: 16rem;
  }
}
@media only screen and (max-width: 560px) {
  .teslasnimka {
    width: 14rem;
  }
}
@media only screen and (max-width: 520px) {
  .teslasnimka {
    display: none;
  }
}
@media only screen and (max-width: 520px) {
  .budeshte-container {
    grid-template-columns: repeat(auto-fit, minmax(400px, auto));
  }
  .contacts-container iframe {
    margin-left: 0rem;
  }
  .contacts-img {
    display: none;
  }
  .contacts-container {
    grid-template-columns: repeat(1, auto);
  }
}
@media only screen and (max-width: 400px) {
  .budeshte-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
  }
  .logo {
    width: 2rem;
  }
}
@media only screen and (max-width: 360px) {
  .text h1 {
    font-size: 2.4rem;
    letter-spacing: 1px;
    margin-left: 1rem;
    margin-bottom: 2rem;
  }
  .heading {
    margin-top: 1rem;
  }
}
