body {
  font-family: 'Unbounded';
  margin: 0;
  padding: 0;
  background-color: #f1f3f4;
  color: #151515;
  box-sizing: border-box;
  }
  img {
  max-width: 100%;
  display: block;
  }
  a {
  text-decoration: none;
  color: inherit;
  }
  .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  }
  .section-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
  padding: 40px;
  margin-bottom: 25px;
  }
  .section-title {
  color: #2563eb;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 25px 0;
  font-weight: 500
  }
  .section-subtitle {
  color: #000000;
  font-size: 14px;
  text-align: center;
  margin: 0 auto 40px auto;
  line-height: 1.5;
  max-width: 800px;
  font-weight: 300;
  }
  .btn-primary {
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 6px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
  }
  .btn-primary:hover {
  background-color: #1d4ed8;
  }
  .btn-outline {
  border: 1px solid #ffffff;
  color: #ffffff;
  border-radius: 20px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  }
  .btn-outline:hover {
  background-color: #ffffff;
  color: #000000;
  }
  .show-more-btn {
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 40px auto 0 auto;
  width: fit-content;
  box-shadow: 0px 0px 15px 0px rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
  }
  .show-more-btn:hover {
  background-color: #1d4ed8;
  }
  /* === TOP BANNER === */
  .top-banner {
  width: 100%;
  margin: 0 auto;
  }
  .banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  }
  /* === HEADER === */
  .site-header {
  background-color: #2563eb;
  padding: 20px 0;
  box-shadow: 0px 10px 40px 0px rgba(109, 141, 173, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
  }

  #header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  }

  .main-nav ul {
    display: flex;
    gap: 30px;
    flex-grow: 1;
    color: white;
    list-style: none;
    font-weight: 400;
}

  .logo-wrapper {
  position: relative;
  width: 182px;
  height: 40px;
  }
  .logo-part {
  position: absolute;
  }
  .vertical-divider {
  width: 1px;
  height: 20px;
  background-color: #ffffff;
  margin: 0 20px;
  }
  .main-nav {
  display: flex;
  gap: 30px;
  flex-grow: 1;
  margin-left: 40px;
  }
  .nav-link {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.3s ease;
  }
  .nav-link:hover {
  opacity: 0.8;
  }
  .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  }
  .icon-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  }
  .icon-group img {
  width: 24px;
  height: 24px;
  }
  .mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  }
  .mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  }
  .mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  }
  /* === SEARCH NAV === */
  .search-nav-wrapper {
  background-color: #ffffff;
  padding: 20px 0;
  }
  .search-nav-content {
  display: flex;
  align-items: center;
  gap: 35px;
  }
  .categories {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  }
  .category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  }

  .cat-icon-circle {
    position: relative;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.cat-circle-bg {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.cat-circle-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover .cat-circle-img {
    
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.cat-text {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
  .search-bar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  }
  @media (max-width: 768px) {
  .tool-actions .btn-primary img {
  width: 20px;
  height: 20px;
  min-width: 20px;
  }
 
  .btn-primary img {
  width: 18px;
  height: 18px;
  min-width: 18px;
  }
  }

  @media (max-width: 480px) {
  .tool-actions .btn-primary img {
  width: 16px;
  height: 16px;
  min-width: 16px;
  }
  }
  .search-input-wrapper {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  height: 50px;
  display: flex;
  align-items: center;
  width: 542px;
  }
  @media (max-width: 768px) {
  .filter-btn-group {
  display: flex;
  gap: 10px;
  width: 100%;
  }
  }
  .filter-btn-group {
  display: flex;
  gap: 10px;
  }
  .search-icon {
  width: 13px;
  height: 13px;
  padding: 0 10px;
  opacity: 0.5;
  }
  .search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  font-family: 'Unbounded';
  color: rgba(0, 0, 0, 0.5);
  }
  .filter-dropdown {
    position: relative;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    height: 50px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #090909;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    flex-shrink: 0;
  }

  .filter-dropdown span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.filter-dropdown img {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

  .find-btn {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  height: 52px;
  padding: 0 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  font-family: 'Unbounded';
  }
  .find-btn:hover {
  background-color: #1d4ed8;
  }
 
  
  /* === TOOLS GRID === */
  .tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: 20px;
  }
  .tool-card {
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .tool-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  }
  .tool-card:hover .tool-image-wrapper img {
  transform: scale(1.05);
  }



  .news-card:hover .news-image img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }



  .tool-content {
    padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  }
  .tool-content h3 {
  margin: 0;
  font-size: 18px;
  color: #151515;
  }
  .tool-content p {
  font-size: 12px;
  color: #7f8c8d;
  margin: 0 0 20px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.6em;
  }
  .tool-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  }
  .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  }
  /* === NEWS GRID === */
  .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 30px;
  }
  .news-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  }

  .news-image {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 15px;
  }
  .news-image img {
  width: 100%;
  height: auto;
  display: block;
  }
  .news-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: #2563eb;
  color: #ffffff;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
  }
  .news-content h3 {
  font-size: 18px;
  color: #151515;
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  }
  .news-content p {
  font-size: 14px;
  color: #151515;
  margin: 0 0 15px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.6em;
  
  }
  .news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7f8c8d;
  }
  .meta-right {
  display: flex;
  gap: 15px;
  }
  .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  }
  .icon {
  font-family: 'FontAwesome', sans-serif;
  }
  .icon img {
  width: 15px;
  height: 15px;
  }
  /* === CATEGORIES GRID === */
  .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  }
  .cat-card {
  border-radius: 19px;
  padding: 30px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease;
  }
  
  .gradient-orange {
  background: linear-gradient(135deg, #f76a1f 0%, #f0493f 100%);
  }
  .gradient-purple {
  background: linear-gradient(135deg, #bb51dd 0%, #e249a5 100%);
  }
  .gradient-blue {
  background: linear-gradient(135deg, #2563eb 0%, #0243d2 100%);
  }
  .gradient-green {
  background: linear-gradient(135deg, #20c363 0%, #12ba7d 100%);
  }
  .cat-card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(217, 217, 217, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  }
  .cat-card-icon img {
  width: 24px;
  height: 24px;
  }
  .cat-card-content h3 {
  font-size: 24px;
  margin: 0 0 10px 0;
  font-weight: 500;
  }
  .cat-card-content p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 80%;
  font-weight: 300;
  }
  .cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  font-weight: 500;
  }
  .cat-link img {
  width: 16px;
  height: 16px;
  }
  /* === FAQ === */
  .faq-list {
  max-width: 1140px;
  margin: 0 auto;
  }
  .faq-item {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  }
  .faq-item:hover {
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.2);
  }
  .faq-header {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  }
  .faq-header h3 {
  margin: 0;
  color: #000000;
  transition: color 0.3s ease;
  font-weight: 500;
  }
  .faq-item.open .faq-header h3 {
  color: #2563eb;
  }
  .faq-toggle-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  }
  .faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
  color: #2563eb;
  }
  .faq-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 30px;
  }
  .faq-item.open .faq-body {
  max-height: 500px;
  opacity: 1;
  padding: 0 30px 30px 30px;
  }
  .faq-body p {
  margin: 0;
  line-height: 1.6;
  color: #555;
  font-weight: 300;
  }
  /* === FOOTER === */
  .site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 60px 0 20px 0;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr 0.8fr 1.2fr; 
    gap: 30px; 
    margin-bottom: 60px;
  }


/* Для мобильных устройств */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
  .footer-logo {
  width: 186px;
  margin-bottom: 20px;
  }
  .footer-desc {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 320px;
  }
  .social-links {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  }
  .social-links img {
  width: 20px;
  height: 20px;
  }
  .email-link {
  display: flex;
  align-items: center;
  gap: 8px;
  }
  .footer-link {
  display: block;
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 16px;
  transition: color 0.3s ease;
  }
  .footer-link:hover {
  color: #2563eb;
  }
  .footer-link.sub-link {
  color: #d2d2d2;
  font-size: 14px;
  }
  .footer-link.sub-link:hover {
  color: #2563eb;
  }
  .footer-bottom {
  text-align: center;
  color: #7e7e7e;
  font-size: 14px;
  border-top: 1px solid #333;
  padding-top: 20px;
  }
  
  /* ============================================ */
  /* === RESPONSIVE / ADAPTIVE STYLES === */
  /* ============================================ */
  /* Tablet (max-width: 1024px) */
  @media (max-width: 1024px) {
  .section-card {
  padding: 30px;
  }
  .section-title {
  font-size: 26px;
  }
  .categories-grid {
  grid-template-columns: repeat(2, 1fr);
  }
  .cat-card-content h3 {
  font-size: 20px;
  }
  .cat-card-content p {
  font-size: 14px;
  }
  .footer-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  }
  }
  /* Tablet Small  */
  @media (max-width: 768px) {
  /* Header */
  .site-header {
  padding: 15px 0;
  }
  .header-content {
  flex-wrap: wrap;
  }
  .vertical-divider {
  display: none;
  }
  .main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #2563eb;
  flex-direction: column;
  padding: 20px;
  gap: 15px;
  margin-left: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  .main-nav.active {
  display: flex;
  }
  .main-nav .nav-link {
  font-size: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .mobile-menu-btn {
  display: flex;
  }
  .header-actions .icon-group {
  display: none;
  }
  /* Search Nav */
  .search-nav-content {
  flex-direction: column;
  gap: 20px;
  }
  .categories {
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  }
  .category-item {
  min-width: 80px;
  }
  .cat-icon-circle {
  width: 60px;
  height: 80px;
  }
  .cat-circle-bg {
  width: 60px;
  height: 60px;
  }
  .search-bar-group {
  width: 100%;
  flex-direction: column;
  }
  .search-input-wrapper {
  width: 100%;
  height: 45px;
  }
  .filter-dropdown {
  width: 100%;
  height: 45px;
  justify-content: space-between;
  min-width: 47%;
  }
  .find-btn {
  width: 100%;
  height: 45px;
  }
  /* Hero */
  #hero {
  padding: 20px 0;
  }

  .slider-controls {
  bottom: 10px;
  padding: 0 10px;
  }
  /* Section Cards */
  .section-card {
  padding: 20px;
  }
  .section-title {
  font-size: 22px;
  margin-bottom: 25px;
  }
  .section-subtitle {
  font-size: 13px;
  margin-bottom: 30px;
  }
  /* Tools Grid */
  .tools-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  }
  .tool-content h3 {
  font-size: 16px;
  }
  .tool-content p {
  font-size: 10px;
  }
  /* News Grid */
  .news-grid {
  grid-template-columns: 1fr;
  gap: 20px;
  }
  .news-content h3 {
  font-size: 16px;
  }
  /* Categories Grid */
  .categories-grid {
  grid-template-columns: 1fr;
  gap: 15px;
  }
  .cat-card {
  padding: 25px;
  }
  .cat-card-content h3 {
  font-size: 18px;
  }
  .cat-card-content p {
  font-size: 14px;
  }
  /* FAQ */
  .faq-header {
  padding: 20px;
  }
  .faq-header h3 {
  font-size: 18px;
  }
  .faq-item.open .faq-body {
  padding: 0 20px 20px 20px;
  }
  /* Footer */
  .footer-grid {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 30px;
  }
  .brand-col {
  align-items: center;
  display: flex;
  flex-direction: column;
  }
  .footer-logo {
  margin: 0 auto 20px auto;
  }
  .footer-desc {
  max-width: 100%;
  }
  .social-links {
  justify-content: center;
  }
  /* Stories Modal */
  .stories-modal-content {
  width: 95%;
  max-width: 400px;
  }
  .stories-slider {
  height: 560px;
  }
  .stories-slide-img {
  height: 360px;
  }
  .stories-slide-content {
  padding: 15px;
  }
  .stories-slide h3 {
  font-size: 18px;
  }
  .stories-slide p {
  font-size: 14px;
  }
  .stories-nav {
  width: 36px;
  height: 36px;
  }
  .stories-prev {
  left: 10px;
  }
  .stories-next {
  right: 10px;
  }
  .stories-actions {
  flex-direction: column;
  }
  }
  @media (max-width: 370px) { 
    .tools-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)) !important;
      gap: 20px !important;
  }

}


  /* Mobile  */
  @media (max-width: 480px) {
  .container {
  padding: 0 15px;
  }

  .tool-content {
  
      padding: 10px 0 10px;
  }

  #popular-tools .container {
    padding: 0;
  }

  #news .container {
    padding: 0;
  }

  #categories .container {
    padding: 0;
  }

  #faq .container {
    padding: 0;
  }


  

  /* Header */
  .site-header {
  padding: 10px 0;
  }
  .logo-wrapper {
  width: 140px;
  height: 35px;
  }
  /* Search Nav */
  .categories {
  gap: 10px;
  }

  .cat-icon-circle {
  width: 70px;
  height: 70px;
  display: contents;
  }
  .cat-circle-bg {
  width: 50px;
  height: 50px;
  }
  .cat-text {
  font-size: 10px;
  }
  .search-input-wrapper {
  height: 40px;
  padding: 0;
  }
  .search-input {
  font-size: 14px;
  }
  .filter-dropdown {
  height: 40px;
  font-size: 12px;
          min-width: 40%;
  }
  .find-btn {
  height: 40px;
  font-size: 14px;
  padding: 0 20px;
  }

  /* Section Cards */
  .section-card {
  padding: 15px;
  border-radius: 8px;
  }
  .section-title {
  margin-top: 20px;
  font-size: 20px;
  
  }
  .section-subtitle {
  font-size: 12px;
  }
  .tool-actions .btn-primary {
  width: 100%;
  
  }
  /* News */
  .news-content h3 {
  font-size: 15px;
  }
  .news-content p {
  font-size: 13px;
  }
  .news-meta {
  gap: 10px;
  }
  /* Categories */
  .cat-card {
  padding: 20px;
  border-radius: 15px;
  }
  .cat-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  }
  .cat-card-content h3 {
  font-size: 16px;
  }
  .cat-card-content p {
  font-size: 13px;
  max-width: 100%;
  }
  .cat-link {
  font-size: 14px;
  }
  /* FAQ */
  .faq-item {
  border-radius: 10px;
  }
  .faq-header {
  padding: 15px;
  }
  .faq-header h3 {
  font-size: 14px;
  }
  .faq-toggle-icon {
  width: 30px;
  height: 30px;
  }
  .faq-item.open .faq-body {
  padding: 0 15px 15px 15px;
  }
  .faq-body p {
  font-size: 12px;
  }
  /* Footer */
  .site-footer {
  padding: 40px 0 15px 0;
  }
  .footer-grid {
  gap: 25px;
  margin-bottom: 40px;
  }
  .footer-logo {
  width: 150px;
  }
  .footer-desc {
  font-size: 13px;
  }
  .footer-link {
  font-size: 14px;
  }
  .footer-link.sub-link {
  font-size: 13px;
  }
  /* Stories Modal */
  .stories-modal-content {
  width: 100%;
  max-width: 100%;
  margin: 10px;
  border-radius: 12px;
  }
  .stories-slider {
  height: 520px;
  }
  .stories-slide-img {
  height: 320px;
  }
  .stories-slide-content {
  padding: 12px;
  }
  .stories-tag {
  font-size: 10px;
  padding: 3px 10px;
  }
  .stories-slide h3 {
  font-size: 16px;
  }
  .stories-slide p {
  font-size: 13px;
  }
  .stories-close-btn {
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  }
  .stories-close-btn svg {
  width: 16px;
  height: 16px;
  }
  .stories-nav {
  width: 32px;
  height: 32px;
  }
  .stories-nav svg {
  width: 16px;
  height: 16px;
  }
  .stories-progress-bar {
  top: 8px;
  }
  .stories-progress-item {
  width: 25px;
  height: 2px;
  }
  /* Buttons */
  .btn-primary {
  padding: 8px 16px;
  font-size: 13px;
  }
  .btn-outline {
  padding: 8px 20px;
  font-size: 13px;
  }
  .show-more-btn {
  padding: 10px 25px;
  font-size: 14px;
  margin: 20px auto 0;
  }
  .btn-story-primary,
  .btn-story-secondary {
  padding: 10px 15px;
  font-size: 13px;
  }
  }
  @media (max-width: 360px) {
  .container {
  padding: 0 10px;
  }
  .section-title {
  font-size: 18px;
  }
  .section-subtitle {
  font-size: 11px;
  }
  .categories {
  gap: 5px;
  }

  .cat-circle-img {
    width: 60px;
    height: 60px;
  }


  .cat-circle-bg {
  width: 45px;
  height: 45px;
  }
  .cat-text {
  font-size: 9px;
  }
  .search-input-wrapper {
  height: 38px;
  }
  .filter-dropdown {
  height: 38px;
  }
  .find-btn {
  height: 38px;
  }

  .tool-image-wrapper {
  height: 160px;
  }
  .stories-slider {
  height: 480px;
  }
  .stories-slide-img {
  height: 280px;
  }
  }
  /* Print Styles */
  @media print {
  .site-header,
  .top-banner,
  #search-nav,
  #hero,
  .stories-modal,
  .show-more-btn,
  .header-actions {
  display: none !important;
  }
  .section-card {
  box-shadow: none;
  border: 1px solid #ccc;
  }
  body {
  background-color: #ffffff;
  }
  }
  /* High Contrast Mode Support */
  @media (prefers-contrast: high) {
  .btn-primary {
  border: 2px solid #ffffff;
  }
  .section-card {
  border: 2px solid #000000;
  }
  .nav-link {
  text-decoration: underline;
  }
  }
  /* Reduced Motion Support */
  @media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  }
  }


/* === SEARCH RESULTS PAGE === */
.search-results-page {
  padding: 40px 0;
  min-height: 60vh;
}

  

.search-results-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.back-to-home {
  color: #2563eb;
  font-weight: 500;
  transition: color 0.3s;
}

.back-to-home:hover {
  color: #1d4ed8;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}



.result-type-badge {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.tool-badge {
  background: #2563eb;
}

.promt-badge {
  background: #bb51dd;
}

.course-badge {
  background: #20c363;
}

.news-badge {
  background: #f76a1f;
}

.promt-category {
  font-size: 13px;
  color: #666;
  margin: 10px 0;
}

.course-price {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  margin: 10px 0;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.no-results-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  opacity: 0.3;
}

.no-results h3 {
  font-size: 24px;
  color: #151515;
  margin: 0 0 10px 0;
}

.no-results p {
  color: #666;
  margin: 0 0 20px 0;
}

/* Search Highlight */
.search-highlight {
  background: #fff3cd;
  padding: 0 2px;
  border-radius: 2px;
}

/* Pagination */
.search-pagination {
  margin-top: 40px;
}

.search-pagination .pagination,
.search-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #2563eb;
  font-weight: 500;
  transition: all 0.3s;
}

.search-pagination .page-numbers:hover,
.search-pagination .page-numbers.current {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Filter Dropdown Menu */
.filter-dropdown {
  position: relative;
}

.filter-dropdown-menu {
  position: absolute;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 5px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.filter-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
  color: #090909;
}

.filter-dropdown-item:hover {
  background: #f5f5f5;
}

.filter-dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.filter-dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}


.category-item.active .cat-circle-bg {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .search-results-grid {
      grid-template-columns: 1fr;
  }
  
  .search-results-info {
      flex-direction: column;
      gap: 15px;
      text-align: center;
  }
}



/* Фильтр категорий на странице ИИ инструментов */
.tools-categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #2563eb;
  background: #ffffff;
  color: #2563eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.filter-btn:hover {
  background: #eef4ff;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #2563eb;
  color: #ffffff;
}

@media (max-width: 768px) {
  .tools-categories-filter {
      gap: 8px;
  }
  
  .filter-btn {
      padding: 8px 16px;
      font-size: 13px;
  }
}




/* === КНОПКА AI АССИСТЕНТ === */
.ai-assistant-btn {
  position: fixed;
  bottom: 95px; 
 right: 30px;
  width: 50px;
  height: 50px;
  background-color: #2563eb;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1; 
  visibility: visible; 
  transform: translateY(0); 
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.ai-assistant-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.ai-assistant-btn:active {
  transform: translateY(-1px);
}




.ai-assistant-btn img {
  width: 30px !important;
 
}

/* КНОПКА НАВЕРХ  */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #2563eb;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; 
  visibility: hidden; 
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}


@media (max-width: 768px) {
  .ai-assistant-btn {
      bottom: 80px; 
      right: 20px;
      width: 45px;
      height: 45px;
  }
  
  .ai-assistant-btn img {
      width: 20px;
      height: 20px;

  }
  
  .scroll-to-top {
      bottom: 20px;
      right: 18px;
      width: 50px;
      height: 50px;
  }
}


@media (max-width: 380px) {
  .category-item {
      min-width: 70px;
  }
} 






/* === STORIES MODAL === */
.stories-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stories-modal[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.stories-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.stories-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background: transparent;
  border-radius: 16px;
  overflow: visible;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stories-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.stories-close-btn:hover {
  background: #ffffff;
  transform: rotate(90deg);
}

.stories-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: #333;
}

.stories-progress-bar {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.stories-progress-item {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}

.stories-progress-item.active {
  background: rgba(255, 255, 255, 0.8);
}

.stories-slider {
  position: relative;
  width: 100%;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.stories-slide-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories-slide {
  position: absolute;
  width: 400px;
  height: 650px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.8) translateX(0);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  left: 50%;
  margin-left: -200px;
}

.stories-slide.prev {
  opacity: 0.35;
  transform: scale(0.75) translateX(-180%) rotateY(15deg);
  filter: blur(2px);
  z-index: 1;
}

.stories-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0) rotateY(0);
  z-index: 3;
  pointer-events: all;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.stories-slide.next {
  opacity: 0.35;
  transform: scale(0.75) translateX(180%) rotateY(-15deg);
  filter: blur(2px);
  z-index: 1;
}

.stories-slide-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  pointer-events: none;
}

.stories-slide-content {
  background: #ffffff;
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stories-slide-info {
  margin-bottom: 10px;
}

.stories-tag {
  display: inline-block;
  background: #dde9ff;
  color: #0050ff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.stories-slide h3 {
  font-size: 22px;
  font-weight: 700;
  color: #151515;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.stories-slide p {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.stories-actions {
  display: flex;
  gap: 6px;
  width: 100%;
}

.btn-story-primary {

  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Unbounded';
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-story-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-story-secondary {
  flex: 1;
  background: #ffffff;
  color: #2563eb;
  border: 2px solid #2563eb;
  border-radius: 10px;
  padding: 14px 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Unbounded';
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-story-secondary:hover {
  background: #eef4ff;
  transform: translateY(-2px);
}

.stories-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.stories-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.stories-nav svg {
  width: 22px;
  height: 22px;
  stroke: #333;
}

.stories-prev {
  left: 20px;
}

.stories-next {
  right: 20px;
}

.stories-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 500;
  z-index: 10;
}

/* Responsive */
@media (max-width: 1024px) {
  .stories-slide {
      width: 392px;
      height: 600px;
      margin-left: -175px;
  }
  
  .stories-slide.prev {
      transform: scale(0.75) translateX(-160%) rotateY(15deg);
  }
  
  .stories-slide.next {
      transform: scale(0.75) translateX(160%) rotateY(-15deg);
  }
  
  .stories-slider {
      height: 650px;
  }
  
  .stories-slide-img {
      height: 400px;
  }
}

@media (max-width: 768px) {
  .stories-modal-content {
      width: 95%;
  }
  
  .stories-slide {
      width: 300px;
      height: 550px;
      margin-left: -150px;
  }
  
  .stories-slide.prev {
      opacity: 0.25;
      transform: scale(0.7) translateX(-140%) rotateY(15deg);
  }
  
  .stories-slide.next {
      opacity: 0.25;
      transform: scale(0.7) translateX(140%) rotateY(-15deg);
  }
  
  .stories-slider {
      height: 600px;
  }
  
  .stories-slide-img {
      height: 350px;
  }
  
  .stories-nav {
      width: 40px;
      height: 40px;
  }
  
  .stories-prev {
      left: 10px;
  }
  
  .stories-next {
      right: 10px;
  }
  
  .stories-slide-content {
      padding: 20px;
  }
  
  .stories-slide h3 {
      font-size: 18px;
  }
}



/* Улучшенный адаптив для мобильных */
@media (max-width: 768px) {
  .stories-modal-content {
      width: 95%;
      max-height: 90vh;
  }
  
  .stories-slide {
      width: 300px;
      height: 610px;
      margin-left: -150px;
  }
  
  .stories-slide-img {
      height: 380px;
  }
  
  .stories-slide-content {
      padding: 15px;
  }
  
  .stories-slide h3 {
      font-size: 16px;
      margin-bottom: 8px;
  }
  
  .stories-slide p {
      font-size: 13px;
      margin-bottom: 12px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }
  
  .stories-actions {
      gap: 8px;
  }
  
  .btn-story-primary,
  .btn-story-secondary {
      padding: 12px 16px;
      font-size: 13px;
      text-align: center;
      width: auto;
  }
}







.tool-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.tool-card-link h3 {
  transition: color 0.3s ease;
}


.news-content h3:hover {
  color: #2563eb;
  transition: color 0.3s ease;
}

.tool-content-bottom {
  padding: 0 20px 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tool-content-bottom p {
  font-size: 12px;
  color: #7f8c8d;
  margin: 0 0 20px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.6em;

}





/* === FIX FOR 1024px === */
@media (max-width: 1300px) and (min-width: 769px) {
  .search-nav-content {
      gap: 20px;
  }
  
  .categories {
      flex-shrink: 0;
      min-width: auto;
  }
  
  .category-item {
      min-width: 70px;
  }
  
  .cat-icon-circle {
      width: 60px;
  }
  
  .cat-circle-bg,
  .cat-circle-img {
      width: 60px;
      height: 60px;
  }
  
  .cat-text {
      font-size: 11px;
      max-width: 70px;
  }
  
  .search-bar-group {
      flex-grow: 1;
      min-width: 0;
  }
  

  

  
  
  .main-nav {
      margin-left: 20px;
      gap: 20px;
  }
  
  .main-nav ul {
      gap: 20px;
  }
  
  .nav-link {
      font-size: 14px;
  }
  
  .vertical-divider {
      margin: 0 15px;
  }
  
  .logo-wrapper {
      width: 160px;
      height: 38px;
  }
}

@media (max-width: 880px) {
  .main-nav,
  .vertical-divider,
  .header-actions {
      display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
}
.tools-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 0 5px;
}
}

@media (max-width: 1044px) {

.tools-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 0 5px;
}

.news-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}



  
  /* Контейнер поиска */
  .search-nav-content {
      padding: 0 15px;
  }
  
  .categories {
      gap: 10px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding-bottom: 5px;
  }
  
  .categories::-webkit-scrollbar {
      display: none;
  }
  
  .category-item {
      min-width: 65px;
      flex-shrink: 0;
  }
  
  .cat-icon-circle {
      width: 65px;
      height: 85px;
  }
  
  .cat-circle-bg,
  .cat-circle-img {
      width: 55px;
      height: 55px;
  }
  
  .cat-text {
      font-size: 11px;
      margin-top: 6px;
  }
  

  


  
 
  

  
  /* Хедер */
  .site-header {
      padding: 12px 0;
  }
  
  .header-content {
      padding: 0 15px;
  }
  
  .logo-wrapper {
      width: 140px;
      height: 35px;
  }
  
 
  

  
  /* Секции */
  .section-card {
      padding: 20px 15px;
      margin-bottom: 20px;
     
  }
  
  .section-title {
      font-size: 22px;
      margin-bottom: 20px;
      padding: 0 10px;
  }
  
  .section-subtitle {
      font-size: 13px;
      margin-bottom: 25px;
      padding: 0 10px;
  }
  
  /* Популярные инструменты */

  
  .tool-card {
      margin-bottom: 0;
  }
  
  .tool-content h3 {
      font-size: 14px;
  }
  
  .tool-content p,
  .tool-content-bottom p {
      font-size: 11px;
  }
  
  .tool-actions {
      flex-direction: row;
      gap: 8px;
  }
  
  .tool-actions .btn-primary {
      flex: 1;
      font-size: 12px;

  }
  
  
  /* Категории */
  .categories-grid {
      grid-template-columns: 1fr;
      gap: 15px;
  }
  
  .cat-card {
      padding: 20px;
  }
  
  /* FAQ */
  .faq-header {
      padding: 15px 20px;
  }
  
  .faq-header h3 {
      font-size: 15px;
  }
  
  .faq-item.open .faq-body {
      padding: 0 20px 20px;
  }
  
  /* Футер */
  .footer-grid {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 25px;
  }
  
  .brand-col {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
  
  .footer-logo {
      margin: 0 auto 15px;
  }
  
  .footer-desc {
      max-width: 100%;
  }
  
  .footer-social {
      justify-content: center;
  }
}


/* Ограничение высоты dropdown для показа 9 категорий */
.filter-dropdown-menu {
  max-height: 396px; 
  overflow-y: auto;
  overflow-x: hidden;
  position: absolute;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 5px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}


.filter-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.filter-dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
  margin: 4px;
}

.filter-dropdown-menu::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.filter-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #555;
}


.filter-dropdown-menu {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}


.filter-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.filter-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
  color: #090909;
  border-radius: 0;
}

.filter-dropdown-item:hover {
  background: #f5f5f5;
}

.filter-dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.filter-dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}


@media (max-width: 768px) {
  .filter-dropdown-menu {
      max-height: 350px; 
  }
}

@media (max-width: 480px) {
  .filter-dropdown-menu {
      max-height: 300px; 
  }
}



.tool-card:hover {
  box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gradient-orange:hover {
box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gradient-purple:hover {
  box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .gradient-blue:hover {
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .gradient-green:hover {
      box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      }
      

      .search-input-wrapper:hover,
      .search-input-wrapper:focus-within {
        border: 1px solid #2563eb;;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }



      .filter-dropdown:hover,
.filter-dropdown:focus-within {
    border: 1px solid #2563eb !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


@media (max-width: 900px) {
.search-bar-group {
  width: 100%;
  flex-direction: column;
  gap: 10px;
}
.search-input-wrapper {
  width: 100%;
  height: 45px;
}
.filter-btn-group {
  display: flex;
  gap: 10px;
  width: 100%;
}
.search-nav-content {
  padding: 0 15px;
}
.search-nav-content {
  flex-direction: column;
  gap: 20px;
}
.find-btn {
  width: 100%;
  height: 47px;
}
.filter-dropdown {
  width: 100%;
  height: 45px;
  justify-content: space-between;
  min-width: 47%;
}
.categories {
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 5px;
}
}

@media (max-width: 1300px) and (min-width: 900px) {
  .search-nav-content {
      gap: 20px;
  }
  .categories {
    flex-shrink: 0;
    min-width: auto;
}
}







@media (max-width: 480px) {
  .no-padding {
    padding: 0;
    border-radius: 0;
  }
  
  .no-border {
    border-radius: 0 !important;
  }
  

  
  }
  @media (min-width: 500px) and (max-width: 900px) {
    .filter-dropdown-menu {
        min-width: 372px;
    }
}



 /* === HERO SLIDER === */
 #hero {
  padding: 30px 0;
  }
  .hero-slider {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  }
  .hero-img {
  width: 100%;
  height: 100%;
  
  transition: opacity 0.5s ease-in-out;
  aspect-ratio: 4 / 1; 
  }
  /* Стрелки по центру вертикально */
  .slider-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  }
  .slider-arrows .arrow-box {
  pointer-events: auto;
  }
  /* Точки внизу */
  .slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  pointer-events: auto;
  }
  .dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  }
  .dot.active {
  background: #007bff;
  transform: scale(1.2);
  }
  .arrow-box {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.3s, transform 0.2s;
  }

@media (max-width: 480px) {
.hero-img {
        aspect-ratio: 5 / 4;
}

#hero {
  padding: 20px 0;
}
}


@media (min-width: 480px) and (max-width: 768px) {
    .hero-img {
        aspect-ratio: 3 / 2;
    }
}



/* === FIX FOR iOS SWIPE === */
.stories-slider {
  touch-action: pan-y; 
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0); 
}

.stories-slide-container,
.stories-slide {
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.stories-modal-overlay {
  overscroll-behavior: none; 
}

/*  */

.news-tags-container {
  position: absolute; 
  bottom: 10px;
  left: 10px;
  display: flex;   
  flex-wrap: wrap;    
  gap: 5px;         
  z-index: 2;     
  pointer-events: none; 
}


.news-tag {
  position: static; 
  display: inline-block;
  background-color: #2563eb;
  color: #ffffff;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
  text-decoration: none;
  pointer-events: auto; 
}


.news-tag:hover {
  background-color: #1d4ed8;
  color: #fff;
}



.pum-theme-5535 .pum-content + .pum-close, .pum-theme-default-theme .pum-content + .pum-close {
     background-color: #2563eb !important;
         width: 35px  !important;
}

form.fluent_form_4 .ff-btn-submit:not(.ff_btn_no_style) {
     background-color: #2563eb !important;
 
}





/* Tooltip для кнопок на главной странице */
.btn-primary,
.btn-icon {
    position: relative;
}

.btn-primary::after {
    content: "Читать обзор";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f1f3f4;;
    color: #000000;
    border: 1px solid black;
    font-weight: 300;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin-bottom: 8px;
    z-index: 9999;
    pointer-events: none;
}

.btn-primary:hover::after {
    opacity: 1;
    visibility: visible;
}

.btn-icon::after {
    content: "Перейти в нейросеть";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f1f3f4;;
    color: #000000;
    border: 1px solid black;
    font-weight: 300;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin-bottom: 8px;
    z-index: 9999;
    pointer-events: none;
}

.btn-icon:hover::after {
    opacity: 1;
    visibility: visible;
}


.tool-card {
  overflow: visible !important;
}


.tool-image-wrapper {
  overflow: hidden;
  border-radius: 5px 5px 0 0; 
}

.btn-icon::after {
  z-index: 9999;
}

/* Tooltip для кнопок на главной странице  конец*/










/* ============================================ */
/* === INSTAGRAM-STYLE STORIES HIGHLIGHTS === */
/* ============================================ */

.stories-highlights {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  padding: 10px 0;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}

.highlight-item:hover {
  transform: scale(1.05);
}

.highlight-circle {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.highlight-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  display: block;
}

.highlight-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #2563eb;
  animation: highlight-rotate 3s linear infinite;
}

@keyframes highlight-rotate {
  to { transform: rotate(360deg); }
}

.highlight-label {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.highlight-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Stories Modal */
.stories-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stories-modal[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.stories-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.stories-modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: transparent;
  border-radius: 16px;
  overflow: visible;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stories-close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.stories-close-btn:hover {
  background: #ffffff;
  transform: rotate(90deg);
}

.stories-close-btn svg {
  width: 20px;
  height: 20px;
  stroke: #333;
}

/* Progress Bars */
.stories-progress-container {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 450px;
  z-index: 10;
}

.stories-progress-bars {
  display: flex;
  gap: 4px;
  width: 100%;
}

.story-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.story-progress-bar.completed {
  background: rgba(255, 255, 255, 0.9);
}

.story-progress-bar.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: #ffffff;
  border-radius: 2px;
  transition: width 0.05s linear;
}

/* Category Navigation Arrows */
.stories-category-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 5;
}

.stories-category-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.stories-category-nav svg {
  width: 24px;
  height: 24px;
  stroke: #333;
}

.stories-category-prev {
  left: -70px;
}

.stories-category-next {
  right: -70px;
}

/* Story Slider */
.stories-slider {
  position: relative;
  width: 100%;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories-slide-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories-slide {
  position: absolute;
  width: 100%;
  max-width: 400px;
  height: 600px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.8) translateX(0);
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.stories-slide.prev {
  opacity: 0.3;
  transform: scale(0.85) translateX(-120%);
  filter: blur(2px);
  z-index: 1;
}

.stories-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  z-index: 3;
  pointer-events: all;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.stories-slide.next {
  opacity: 0.3;
  transform: scale(0.85) translateX(120%);
  filter: blur(2px);
  z-index: 1;
}

.stories-slide-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  pointer-events: none;
}

.stories-slide-content {
  background: #ffffff;
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stories-slide-info {
  margin-bottom: 15px;
}

.stories-tag {
  display: inline-block;
  background: #dde9ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.stories-slide h3 {
  font-size: 20px;
  font-weight: 700;
  color: #151515;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.stories-slide p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stories-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}

.btn-story-primary {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Unbounded';
  flex: 1;
  min-width: 120px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.btn-story-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-story-secondary {
  background: #ffffff;
  color: #2563eb;
  border: 2px solid #2563eb;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Unbounded';
  flex: 1;
  min-width: 120px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.btn-story-secondary:hover {
  background: #eef4ff;
  transform: translateY(-2px);
}

.btn-story-copy {
  background: #f8f9fa;
  color: #333;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Unbounded';
  flex: 1;
  min-width: 120px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-story-copy:hover {
  background: #e9ecef;
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
}

.btn-story-copy.copied {
  background: #d4edda;
  border-color: #28a745;
  color: #28a745;
}

.btn-story-copy svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Navigation Arrows */
.stories-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.stories-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.stories-nav svg {
  width: 20px;
  height: 20px;
  stroke: #333;
}

.stories-prev {
  left: 15px;
}

.stories-next {
  right: 15px;
}

/* Counter */
.stories-counter {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
  .stories-highlights {
      gap: 15px;
      overflow-x: auto;
      padding: 10px 5px;
      scrollbar-width: none;
  }
  
  .stories-highlights::-webkit-scrollbar {
      display: none;
  }
  
  .highlight-circle {
      width: 70px;
      height: 70px;
  }
  
  .highlight-label {
      font-size: 11px;
      max-width: 70px;
  }
  
  .stories-modal-content {
      width: 95%;
      max-width: 100%;
  }
  
  .stories-slider {
      height: 550px;
  }
  
  .stories-slide {
      max-width: 320px;
      height: 500px;
  }
  
  .stories-slide-img {
      height: 280px;
  }
  
  .stories-category-nav {
      width: 40px;
      height: 40px;
  }
  
  .stories-category-prev {
      left: -50px;
  }
  
  .stories-category-next {
      right: -50px;
  }
  
  .stories-actions {
      flex-direction: column;
  }
  
  .btn-story-primary,
  .btn-story-secondary,
  .btn-story-copy {
      width: 100%;
      min-width: auto;
  }
}

@media (max-width: 480px) {
  .highlight-circle {
      width: 60px;
      height: 60px;
  }
  
  .highlight-label {
      font-size: 10px;
  }
  
  .stories-slider {
      height: 500px;
  }
  
  .stories-slide {
      max-width: 280px;
      height: 450px;
  }
  
  .stories-slide-img {
      height: 240px;
  }
  
  .stories-slide-content {
      padding: 15px;
  }
  
  .stories-slide h3 {
      font-size: 16px;
  }
  
  .stories-slide p {
      font-size: 12px;
  }
  
  .stories-category-nav {
      display: none;
  }
}