/* Critical CSS - Above the fold styles */

/* Font declarations with optimized font-display and system font fallback */
/* @font-face {
  font-family: "Montserrat Medium";
  font-style: normal;
  src: url("../themes/sto/fonts/Montserrat/Montserrat-Regular.ttf");
  font-display: swap;
} */

/* @font-face {
  font-family: -apple-system,"Montserrat Medium",BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;
  font-style: normal;
  src: url("../themes/sto/fonts/Furore/Furore.woff");
  src: url("../themes/sto/fonts/Furore/Furore.eot") format("embedded-opentype"),
    url("../themes/sto/fonts/Furore/Furore.woff") format("woff"),
    url("../themes/sto/fonts/Furore/Furore.ttf") format("truetype");
  font-display: swap;
} */

/* Используем системные шрифты как основные, Montserrat как enhancement */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif; */
}

/* Montserrat будет загружаться асинхронно */
/* .font-loaded * {
    font-family: "Montserrat Medium", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
} */

body {
  color: #fff;
  overflow-x: hidden;
}

/* Header critical styles */
.head {
  padding: 28px 0;
  z-index: 100;
  top: 0;
  width: 100%;
}

/* Navigation critical styles */
.main-menu {
  height: 62px;
  background: #232323;
}

/* Home hero section critical styles */
.home__container {
  height: 665px;
  width: 100%;
  background: url("../themes/sto/images/home.jpg") no-repeat 100% / cover;
  position: relative;
}

.home h1 {
  font-family: -apple-system,"Montserrat Medium",BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,sans-serif,-apple-system,"Montserrat Medium",BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 400;
  font-size: 80px;
  line-height: 92px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Wrapper and basic layout */
.wrapper {
  max-width: 1280px;
  margin: auto;
  color: #fff;
}

.df-container {
  display: flex;
}

.sb-container {
  justify-content: space-between;
}

.ai-container {
  align-items: center;
}

/* Critical button styles */
.btn {
  width: fit-content;
  height: 46px;
  border-radius: 4px;
  background: #333332;
  display: block;
  text-align: center;
  line-height: 46px;
  color: #111111;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 400;
  font-size: 15.6429px;
  padding: 0 15px;
  text-decoration: none;
  border:none;
}

.btn:hover {
  background: #7dbffa;
}

/* Mobile critical styles */
@media only screen and (max-width: 992px) {
  .head {
    flex-wrap: wrap;
    padding: 6px 20px;
  }

  .home h1 {
    font-size: 40px;
    margin-top: 40px;
    line-height: 50px;
    margin-bottom: 16px;
  }

  .wrapper {
    width: 90%;
  }
}

/* Visibility improvements */
.transition {
  transition: 0.3s;
}

/* Preload important images */
.home__container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  z-index: -1;
}
