@import url(fonts.css);

html, body {
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0 auto;
  padding: 0;
  height: 100%;
  width: 100%;
}
/* Верхнее с права Меню на 4 кнопки Главная, О компании, Каталоги, Заказы */
#topmenu .wrap {
  display:flex;
  height: 80px;
  justify-content: space-between;
  background: linear-gradient(0deg, #d3e6fb, #fff);
}

.wrap .logo {
  float:left;
  margin-left: 100px;
  text-align: center;
}

@media (max-width: 680px) {
  .wrap .logo {
    margin-left: 0;
  }
}

#topmenu ul {
  float: right;
	list-style-type: none;
  margin: 0;
  padding: 0;
}

#topmenu li {
  float: left;
}

#topmenu a {
	color: #545454;
  display: inline-block;
	text-decoration: none;
	text-align: center;
  height: 46px;
	padding-top: 30px;
	width: 130px;
}

@media (max-width: 1200px) {
  #topmenu .wrap {
    flex-direction: column;
    padding: 0 0 70px 0;
  }
}

@media (max-width: 550px) {
  #topmenu a {
    width: 120px;
  }
}

@media (max-width: 480px) {
  #topmenu a {
    width: 110px;
  }
}

@media (max-width: 340px) {
  #topmenu a {
    width: 80px;
  }
}

#topmenu a:hover {
	background: linear-gradient(180deg, #d3e6fb, #fff);
	border-bottom: 4px solid #1818d0;
}

/* Информ-строка "Часы", "Тел.", "Эл.почта" и "Курсы валют" */

#infoline .linewrap {
  display: flex;
  justify-content: center;
  background: #d3e6fb;
  color:#545454;
  padding-left: 12px;
  width: 100%;
}
@media (max-width: 400px) {
  #infoline .linewrap {
    padding-left: 85px;
  }
}
#watch {
  margin: 3px;
  padding-left: 4%;
  height: 27px;
  width:32px;
}

#digital_watch {
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 5px 30px 0 0;
  padding:0;
  height: 28px;
}

#tel {
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin-top: 2px;
}

#hard_currency {
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: grid;
  float: right;
  grid-template-columns: repeat(3, 30%);
  gap: 30px;
  text-align: right;
  margin: 3px;
  margin-left: 30px;
}

#hard_currency .fa-long-arrow-alt-down {
	color: rgb(92, 68, 245);
}

#hard_currency .fa-long-arrow-alt-up {
	color: rgb(255, 17, 0);
}

/* Фото заставка с рекламой */

.flexbox {
  display: flex;
  flex-direction: row;
}

.container {
  max-height: 300px;
  display: block;
  text-align: center;
  position: relative;
}

.images-descrition {
  margin: 0;
  padding: 0;
  opacity: 0.6;
  max-width: 100%;
  overflow: hidden;
}

.description {
  position: absolute;
  color:#fafafb;
  font-family: "rb";
  font-size: 22px;
  top: 40%;
  left: 20%;
  transform: translate(-35%, 50%);
  opacity:0;
}

.container:hover .description {
  opacity:100; 
}

/* Основное поле страницы - grid разметка */

.grid * {
  font-family: Roboto, sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
}

/* Сетка grid */

.grid {
  height: auto;
  width: 100%;
  margin-bottom: 10px;
  display: grid;
  grid-gap: -10px;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 140px;
  grid-template-areas: 
    "main"
    "footer";
}

main {
  grid-area: main;  
  background: #d3e6fb;
  font-size: 16px;
  color:#545454;
  width: auto;
  text-align:justify;
  padding: 0 5% 0 5%;
}

main h1 {
  font-size: 20px;
  font-weight: 700;
  padding-left: 40px;
  padding-top: 10px;
}

.foto1 {
  padding-bottom: 5px;
}

@media (max-width: 1535px) {
  .foto1 {
    padding-bottom: 0;
  }
}

.foto1 img {
    height: auto;
    max-width: 380px;
    margin: -5px 30px 10px 0;
    float: left;
}

.foto2 {
  padding-bottom: 15px;
}
.foto2 img {
    height: auto;
    max-width: 380px;
    margin: 10px 30px 10px 0;
    float: left;
}

.grid a {
  text-align: center;
}

footer {
  grid-area: footer;
  padding: 3px;
  background: linear-gradient(180deg,#5d5dfe,#43d3f7);
  font-size: 16px;
  font-weight: 200;
  color:#fff;
  line-height: 0.4;
  width: auto;
  text-align: center;
}

footer .infor {
  display: flex;
  justify-content: space-between;
}

footer .infor1 {
  padding-top: 15px;
  padding-left: 5%;
  text-align: left;
}

footer .infor2 {
  padding-top: 15px;
  padding-right: 5%;
  text-align: right;
}

@media (max-width: 1100px) {
  footer {
    width: auto;
    height: 250px;
    line-height: 1.2;
    text-align: center;
    padding: 0 2% 0 2%;
  }
}