/*обнулення */

*,*::before,*::after {  
  margin: 0;  
  padding: 0;  
  border: 0;  
  box-sizing: border-box;
}
  
a {  
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

ul,ol,li {  
  list-style: none;
}

button {  
  cursor: pointer;
}

img {  
  vertical-align: top;
}

h1,h2,h3,h4,h5,h6 {  
  font-weight: inherit;  
  font-size: inherit;}
  
/*-------------------------------------*/

html,body {
  height: 100%;
  line-height: 1;
  letter-spacing: 3px;
  font-size: 24px;
  font-family: Garamond, serif;
  background: radial-gradient(#000 15%, transparent 16%) 0 0,
              radial-gradient(#000 15%, transparent 16%) 8px 8px,
              radial-gradient(rgba(255, 255, 255, 0.1) 15%, transparent 20%) 0 1px,
              radial-gradient(rgba(255, 255, 255, 0.1) 15%, transparent 20%) 8px 9px;
  background-color: #0f252a;
  background-size: 16px 16px;
}

body._lock {
  overflow: hidden;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/*-------------------------------------header*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10; /*щоб нависала*/
  background-color: #081918;
  border-bottom: 1px solid #02f2f9;
}

.header__container {
  max-width: 1500px;
  margin: 0px auto;
  display: flex;
  padding: 10px 30px;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.header__logo {
  position: relative;
  z-index: 5;
}

.menu__list > li {
  position: relative;
  margin: 0px 0px 0px 20px;
}

.menu__link {
  color: #02f2f9;
}

.menu__link:hover {
  font-weight: bold;
}

.menu__sub-list {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #081918;
  padding: 15px;
  min-width: 100%;
  max-height: 80vh;
  overflow: hidden auto;
}

.menu__sub-list li {
  margin: 0 0 10px 0;
}

.menu__sub-list li:last-child {
  margin: 0;
}

.menu__sub-link {
  color: #02f2f9;
}

.menu__sub-link:hover {
  font-weight: bold;
}

.menu__arrow {
  display: none;
}

/*---------------------------------------------main*/

h1 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2%;
}

h2 {
  text-decoration: underline;
  text-align: center;
  margin-top: 1%;
  margin-bottom: 1%;
}

p {	
text-align: center;
}	

.policy {
   text-align: justify;
}

.page {
  flex: 1 1 auto;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page__container {
  position: relative;
  z-index: 2;
  width: 1800px;
  margin: 15vh 5vh;
  color: #02f2f9;
  background-color: #0f252a;
}

.page__title {
  margin-top: 2%;
}

.page__text {
  margin: 3% 5%;
  line-height: 2;
  text-align: center;
}

.article {
  width: 80%;
  margin: 2% auto;
  padding: 3% 5%;
  border-radius: 30px;
  font-size: 20px;
  color: #000;
  background-color: #2bdde3;
}

/*--------------------------------------------категорії*/

.categories__items {
  display: grid;
  column-gap: 30px;
  row-gap: 0px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.categories__item {
  display: grid;
  grid-auto-flow: row;
  grid-template: auto 1fr minmax(40px, auto) / 1fr;
}

.categories__image {
  position: relative;
  padding: 0px 0px 90% 0px;
  margin: 0px 0px 20px 0px;
}

.categories__image img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  border: 2px solid #02f2f9;
}

.categories__name {
  margin: 0px 0px 30px 0px;
  justify-self: center;
}

.categories__button {
   background-image: linear-gradient(to top, #009095 5%, #01bcc3 15%, #02f2f9, #02f2f9, #01bcc3 85%, #009095 95%);
  padding: 5px 30px;
  border-radius: 15px;
  color: #081918;
  font-weight: bold;
}

.categories__button:hover {
	transition: 1s linear;
  background-image: linear-gradient(to top, #009095 5%, #02f2f9 10%, #02f2f9 90%, #009095 95%);
}

/*----------------------------------wallpaper-container */

.page__container .wallpaper-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px 30px;
  margin-top: 30px;
}

.page__container .wallpaper-container .wallpaper {
  width: 350px;
  height: 250px;
  border: 2px solid #02f2f9;
  overflow: hidden;
  cursor: pointer;
  object-fit: cover;
  transition: 0.2s;
}

.page__container .wallpaper-container .wallpaper:hover {
  transform: scale(1.1);
}

.page__container .wallpaper-container .wallpaper-smart {
  width: 250px;
  height: 350px;
  border: 2px solid #02f2f9;
  overflow: hidden;
  cursor: pointer;
  object-fit: cover;
  transition: 0.2s;
}

.page__container .wallpaper-container .wallpaper-smart:hover {
  transform: scale(1.1);
}

.page__container .top {
	margin-top: 2%;
	margin-bottom:1%;
	text-align: center;
}

.button {
	margin: 2% 1% 1% 0;
    padding: 0.3% 1%;
    font-family: cursive;
	font-size: 18px;
    border: 2px solid #02f2f9;
    border-radius: 20px;
}
/*-------------------------------------------footer */

.footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  z-index: 2;
  padding: 1% 3%;
  color: #02f2f9;
  font-size: 20px;
  background-color: #081918;
  border-top: 1px solid #02f2f9;
}

.small_letters{
   font-size: 16px;
  }

.go-top {
  position: fixed;
  right: 0.5%;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: none;
  font-size: 20px;
  color: #02f2f9;
}

.go-top:hover {
  font-size: 22px;
}

.go-top--show {
  display: block;
}

/*--------------------------------------для тач */

body._pc .menu__list > li:hover .menu__sub-list {
  opacity: 1;
  visibility: visible;
  transform: translate(0px, 0px);
  pointer-events: all;
}

body._touch .menu__list > li {
  display: flex;
  align-items: center;
}

body._touch .menu__link {
  flex: 1 1 auto;
}

body._touch .menu__arrow {
  display: block;
  width: 0;
  height: 0;
  margin: 0px 0px 0px 5px;
  transition: transform 0.3s ease 0s;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid #02f2f9;
}

body._touch .menu__list > li._active .menu__sub-list {
  opacity: 1;
  visibility: visible;
  transform: translate(0px, 0px);
  pointer-events: all;
}

body._touch .menu__list > li._active .menu__arrow {
  transform: rotate(-180deg);
}

/*---------------------------------------медіа-запити----------------------------------------- */

/*якщо більше ------------------------767*/

@media (min-width: 767px) {
  .menu__list {
    display: flex;
    align-items: center;
  }
  .menu__list > li {
    padding: 10px 0;
  }
  .menu__sub-list {
    transform: translate(0px, 10%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease 0s;
  }
}

/*-----------------------якщо менше 767*/

@media (max-width: 767px) {
   html, body {
    font-size: 18px;
  }
  .menu__icon {
    z-index: 5;
    display: block;
    position: relative;
    width: 30px;
    height: 18px;
    cursor: pointer;
  }
  .menu__icon span,
  .menu__icon::before,
  .menu__icon::after {
    left: 0;
    position: absolute;
    height: 10%;
    width: 100%;
    transition: all 0.3s ease 0s;
    background-color: #02f2f9;
  }
  .menu__icon::before,
  .menu__icon::after {
    content: "";
  }
  .menu__icon::before {
    top: 0;
  }
  .menu__icon::after {
    bottom: 0;
  }
  .menu__icon span {
    top: 50%;
    transform: scale(1) translate(0px, -50%);
  }
  .menu__icon._active span {
    transform: scale(0) translate(0px, -50%);
  }
  .menu__icon._active::before {
    top: 50%;
    transform: rotate(-45deg) translate(0px, -50%);
  }
  .menu__icon._active::after {
    bottom: 50%;
    transform: rotate(45deg) translate(0px, 50%);
  }
  .menu__body {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #081918;
    padding: 100px 30px 30px 30px;
    transition: left 0.3s ease 0s;
    overflow: auto;
  }
  .menu__body._active {
    left: 0;
  }
  .menu__body::before {
    content: "";
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 70px;
    background-color: #081918;
    z-index: 2;
  }
  .menu__list > li {
    flex-wrap: wrap;
    margin: 0px 0px 30px 0px;
  }
  .menu__list > li:last-child {
    margin-bottom: 0;
  }
  .menu__list > li._active .menu__sub-list {
    display: block;
  }
  .menu__link {
    font-size: 26px;
  }
  .menu__sub-list {
    position: relative;
    flex: 1 1 100%;
    border: 2px solid #02f2f9;
    border-radius: 20px;
    margin: 20px 0px 0px 0px;
    display: none;
  }
  .menu__sub-link {
    font-size: 24px;
    color: #02f2f9;
  }
  .page__container {
    margin: 15vh 4vh 5vh 4vh;
  }
  h1 {
    font-size: 22px;
  }
  h2 {
    font-size: 18px;
  }
  .page__text {
    margin: 7% 5%;
    line-height: 1;
  }
  .categories__item {
    grid-template: auto 1fr minmax(0px, auto) / 1fr;
  }
  .article {
    width: 95%;
	font-size: 16px;
  }
  .footer {
  font-size: 12px;  
  }
  .small_letters{
   font-size: 10px;
  }
}