@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Light.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  color: #2D5F7A;
  -webkit-tap-highlight-color: transparent;
}

html.pre-translated body {
  visibility: hidden;
}

html {
  font-size: 16px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 10px;
}

.navbar {
  display: block;
  text-align: center;
  padding-top: 10px;
}

.logo img {
  height: 60px;
  cursor: pointer;
}

.logo {
  cursor: default;
}

.dropdown {
  margin: 0 10px 0;
}

.menu-button {
  display: block;
  width: 100%;
  border: none;
  padding: 10px;
  margin-top: 5px;
  background-color: #f2f2f257;
  border: 0.4px solid #cfcfcf82;
  text-align: center;
  cursor: pointer;
  font-size: 0.8rem;
}

.drop-list {
  display: none;
}

.drop-list li {
  padding: 15px;
  border-block-end: 1px solid rgba(203, 201, 201, 0.161);
  cursor: default;
}

.drop-list a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
}

.drop-list li:hover {
  background-color: rgba(203, 201, 201, 0.161);
}


.nav-link.active {
  color: #6db17a;
}

.has-submenu {
  position: relative;
}

.icon-caret {
  position: absolute;
  text-align: center;
  padding: 19px;
  right: 0;
  top: 1px;
  width: 50px !important;
  height: 50px;
  transition: transform 0.3s ease;
  transform-origin: center;
  transition: transform 0.3s ease;
  transform: rotate(-90deg);
}

.icon-caret.open {
  transform: rotate(0deg);
}

.submenu {
  display: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  top: 100%;
  left: 0;
  background-color: none;
}

.submenu.open {
  display: block;
  z-index: 1;
}

.submenu a {
  margin: 0;
  padding: 5px;
  color: #7a807db3;
  font-size: 0.875rem;
}

.submenu li {
  margin: 5px;
  padding: 0;
  color: #7a807db3;
  border-block-end: none;
  transition: transform 0.2s ease;
}


.head-nav {
  display: flex;
  padding: 30px 0 10px 14px;
  align-items: center;
  cursor: default;
}

.head-nav a {
  display: flex;
  cursor: pointer;
  width: 30px;
  height: 30px;
  margin-right: 5px;
}

.head-nav span {
  font-size: 1.75rem;
}

.head-nav .material-symbols-outlined {
  transition: transform 0.2s ease, color 0.2s ease;
}

.headersubport {
  font-size: 1.25rem !important;
  margin-left: 5px;
}


.head-nav .material-symbols-outlined:hover {
  transform: scale(1.15);
  color: #333;
}

.head-nav i {
  color: #827777;
  font-size: 1rem;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 10px;
}

.share-btn-content {
  padding-left: 8px;
}

.share-btn {
  width: 40px;
  height: 40px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
}

.sort-container {
  margin-top: 20px;
}

.sort-cat span {
  color: #827777;
  font-size: 1rem;
}

.sort-cat span:hover {
  color: #6db17a;
}

.active_sort span {
  color: #6db17a;
}


#active-indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 23px;
  background-color: #6db17989;
  clip-path: inset(0 round 15px);
  transition: all 0.3s ease;
  z-index: -1;
}


.sort-cat {
  position: relative;
  display: flex;
  gap: 20px;
  justify-content: center;
}


.sort-cat a {
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}


.categories-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 20px auto;
  padding: 10px;
}

/* .left-text span {
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: block;
} */

.right-text {
  text-align: justify;
  font-size: 1rem;
  margin-top: 15px;
}

.right-text span {
  /* font-size: 1rem;
  margin-top: 15px; */
  display: inline;
  /* text-align: justify; */
}

.category {
  max-width: 400px;
  margin: 0 auto;
}

.category img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.section-nav {
  align-items: end;
  position: relative;
  display: flex;
  justify-content: center;
  text-decoration: none;
  color: white;
  overflow: hidden;
}

.section-nav span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: 3rem;
  font-weight: bolder;
  background-color: #f7f7f750;
  padding: 10px;
  transition: opacity 0.3s;
  box-shadow: 0 0 20px 20px #f7f7f750;
}

.section-nav:hover span {
  opacity: 0;
}

/* Десктопная версия */
@media (min-width: 768px) {
  .categories-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    max-width: 800px;
    text-align: center;
    align-items: end;
  }

  .left-text span {
    font-size: 2rem;
    /* text-align: justify; */
  }

  .right-text span {
    font-size: 1rem;
    text-align: justify;
    cursor: default;
  }
}

.intro-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  animation: fadeIn 1.2s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.brand-name {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  /* color: #111; */
  margin-bottom: 10px;
  animation: slideUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
  cursor: default;

}

.brand-subtitle {
  font-size: 1.2rem;
  color: #2d5f7aaf;
  max-width: 600px;
  line-height: 1.6;
  animation: slideUp 1.2s ease-out 0.2s forwards;
  opacity: 0;
  transform: translateY(30px);
  cursor: default;

}

/* Анимации */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.scroll-to-top-btn {
  display: flex;
  position: fixed;
  bottom: 30px;
  right: -60px;
  width: 50px;
  height: 50px;
  border: none;
  background-color: rgba(215, 230, 230, 0.415);
  color: rgba(0, 0, 0, 0.579);
  font-size: 1.625rem;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s, transform 0.6s;

}

.scroll-to-top-btn:hover {
  background-color: #cdcfce;
  color: #7a797995;
  transform: scale(1.1);
}

.scroll-to-top-btn.visible {
  display: flex;
  opacity: 1;
  transform: translateX(-90px);
}

.scroll-to-top-btn.hidden {
  opacity: 0;
  transform: translateX(0);
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 70px;
  padding-bottom: 20px;
}


.inst-you-link a {
  display: block;
  line-height: 0;
  align-content: center;
}

.bi-youtube {
  padding-top: 3px;
}

.container-link-policy {
  position: relative;
  display: flex;
  flex: 1;
  margin-left: 15px;
}

.link-policy {
  position: absolute;
  display: none;
  flex-direction: column;
  align-content: center;
  bottom: 120%;
  padding-bottom: 10px;
}

.link-policy span {
  white-space: nowrap;
  color: #959595;
  transition: color 0.2s;
  font-size: 14px;
}

.link-policy span:hover {
  color: #292929;
}

.link-policy a {
  padding-bottom: 5px;
}

.toggle-icon-document {
  cursor: pointer;
  width: 28px;
  height: 28px;
}

.icon-container {
  cursor: pointer;
  width: 32px;
  height: 32px;
}

.icon-container svg path {
  transition: fill 0.3s ease;
}

.icon-container:hover svg path {
  fill: #4A90E2;
}


.share-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

.share-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 350px;
  position: relative;
}

.url-block {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 20px;
}

#current-url {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.copy-icon-container {
  position: relative;
  margin-left: 10px;
  cursor: pointer;
}

#copy-icon {
  font-size: 1.3rem;
  color: #2D5F7A;
  transition: color 0.2s;
}

#copy-icon:hover {
  color: #6db179;
}

.tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}


.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  color: #2D5F7A;
  font-size: 1.3rem;
  text-decoration: none;
}

.social-links a:hover {
  color: #6db179;
}

.share-modal-content h3 {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.indent {
  margin: 10px 0 0;
}

.social-indent-container {
  margin-top: auto;
}

@media (min-width: 768px) {
  /* .navbar {
    all: unset;
  }

  .menu-button {
    display: none;
  }

  .has-submenu {
    margin-right: 15px;
}

  .navbar {
    display: grid;
    grid-template-areas:
      'logo drop-list';
    padding-top: 10px;
    padding-right: 80px;
    margin-left: 20px;
    align-items: center;
  }

  .drop-list li {
    border-block-end: none;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .drop-list li:hover {
    background-color: transparent;
  } */

  .logo img {
    transition: transform 0.3s ease;
  }

  .logo :hover {
    transform: scale(1.2);
  }

  /* .share-btn-content {
    padding: 0 15px 0;
  } */

  .head-nav {
    padding-left: 23px;
  }

  /* .icon-caret {
    transform: unset;
    transition: unset;
    right: -20px;
  }
  
  .icon-caret.open {
    transform: rotate(180deg);
  }
  
  .submenu {
    position: absolute;
    list-style-type: none;
    margin: 0;
    padding: 0;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fcfbfb;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2),
        
        0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .submenu a {
    text-align: center;
  }
  
  .submenu li {
    margin: 0;
    padding: 0;
    color: #7a807db3;
    border-block-end: none;
    transition: none;
  }
  
  .submenu li :hover {
    background-color: #f1f0f0d4;
  } */


  /* .nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
  }


  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #6db17a;
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
  }


  .nav-link:hover::after {
    width: 100%;
    left: 50%;
  }

  .sort-cat {
    gap: 25px;
  }

  .sort-cat span {
    font-size: 1rem;
  }

  .sort-container {
    margin-top: 0;
  }

  .section-nav {
    margin-bottom: 0px;
  } */

  /* .categories-section {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 25px;
  } */

}

/* @media (min-width: 1024px) {
  .categories-section {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 25px;
  }
} */