@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
}

.wrapper {}

.logo {
    background: #383847;
    text-align: left;
    padding-left: 5px;
}

nav {
    background: #0ea5e9;
    color: #fff;
}

.a_page {
    display: inline-block;
    color: #fff;
    padding: 15px;
    font-weight: 450;
    text-decoration: none;
    transition: transform 0.2s ease; /* Плавный переход для трансформации */
}

.a_page:hover {
    color: #fff;
    transform: scale(1.2); /* Увеличение размера без изменения пространства */
}

ul, li {
    display: inline;
    margin: 0;
    padding: 0;
}

.cat_content {
	display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  /*  grid-column-gap: 10px;*/
    grid-row-gap: 25px;
    padding: 20px;
}

.content {
	display: grid;
    padding: 20px;
}

.a_link_cat {
    color: #000;
	text-decoration: none;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.nav-list li a {
  color: white;
  text-decoration: none;
}

/* Адаптация для мобильных */
@media screen and (max-width: 768px) {
  nav {
  /*  padding-left: 10px; */
  }
  
  .a_page {
    padding: 0px 0px 0px 15px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    border: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    font-size: 30px;
    margin-left: 10px;
    height: 50px;
    -webkit-tap-highlight-color: transparent;
  }


  .nav-list {
   /* display: none;*/
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    background-color: #444;
    width: 100%;
   /* padding: 10px 0;*/
    transition: max-height 0.3s linear;
  }

  .nav-list.active {
    display: flex;
    padding: 10px 0;
    max-height: 500px;
  }

  .nav-list li {
    padding: 10px 0;
  }
}
