.cookie-alert {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  border-radius: 0;
}

.brand-name {
  color: #4c3ff2;
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-name:hover,
.brand-name:focus {
  color: #4c3ff2;
}

.brand-name-footer {
  color: #ffffff;
}

.brand-name-footer:hover,
.brand-name-footer:focus {
  color: #ffffff;
}

@media only screen and (max-width: 575px) {
  .brand-name {
    font-size: 24px;
  }
}

.home-modern {
  --home-ink: #111827;
  --home-muted: #5b6472;
  --home-line: rgba(17, 24, 39, 0.1);
  --home-violet: #4c3ff2;
  --home-green: #16a36f;
  --home-amber: #f59e0b;
  padding-bottom: 10px;
}

.home-modern .home-hero {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  margin-bottom: 28px;
}

.home-modern .home-hero h1 {
  font-size: 44px;
  line-height: 1.18;
  margin-bottom: 18px;
  max-width: 660px;
}

.home-hero-text {
  color: var(--home-muted);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 620px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-primary-action,
.home-secondary-action {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  text-decoration: none;
}

.home-primary-action {
  background: var(--home-ink);
  color: #ffffff;
}

.home-primary-action:hover,
.home-primary-action:focus {
  color: #ffffff;
}

.home-secondary-action {
  background: #ffffff;
  border: 1px solid var(--home-line);
  color: var(--home-ink);
}

.home-secondary-action:hover,
.home-secondary-action:focus {
  color: var(--home-ink);
}

.home-hero-visual {
  background: #101827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 22px 45px rgba(17, 24, 39, 0.2);
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.home-hero-visual::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  bottom: 0;
  content: "";
  left: 0;
  opacity: 0.6;
  position: absolute;
  right: 0;
  top: 42px;
}

.home-visual-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.home-visual-topbar span {
  background: #ffffff;
  border-radius: 50%;
  display: block;
  height: 10px;
  opacity: 0.78;
  width: 10px;
}

.home-visual-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.home-visual-tile {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  min-height: 92px;
  padding: 18px;
}

.home-visual-tile.wide {
  grid-column: span 2;
}

.home-visual-tile.accent {
  background: rgba(22, 163, 111, 0.2);
}

.home-visual-tile span,
.home-visual-tile strong {
  display: block;
}

.home-visual-tile span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.home-visual-tile strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.1;
}

.home-search-wrap {
  background: #ffffff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
  margin-bottom: 22px;
  padding: 12px;
}

.home-modern .main-search-sec {
  margin-bottom: 0;
  max-width: none;
}

.home-modern .main-search-sec input {
  border-color: transparent;
  border-radius: 8px;
  height: 58px;
  padding: 0 20px;
}

.home-modern .main-search-sec input:focus {
  box-shadow: 0 0 0 4px rgba(22, 163, 111, 0.18);
}

.home-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.home-stats div,
.home-featured-tool {
  background: #ffffff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
}

.home-stats div {
  padding: 18px;
}

.home-stats strong,
.home-stats span {
  display: block;
}

.home-stats strong {
  color: var(--home-ink);
  font-size: 30px;
  line-height: 1;
  margin-bottom: 6px;
}

.home-stats span {
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 700;
}

.home-featured-tools {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 42px;
}

.home-featured-tool {
  color: var(--home-ink);
  min-height: 132px;
  padding: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-featured-tool:hover,
.home-featured-tool:focus {
  border-color: rgba(76, 63, 242, 0.34);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.1);
  color: var(--home-ink);
  transform: translateY(-4px);
}

.home-featured-tool span {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.home-featured-tool p {
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
}

.home-tool-sections .home-category-block {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--home-line);
  border-radius: 8px;
  margin-bottom: 24px;
  padding: 22px;
}

.home-tool-sections .content-title-sec {
  position: sticky;
  top: 20px;
}

.home-tool-sections .content-title-sec .content-title-icon {
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(76, 63, 242, 0.2);
}

.home-tool-sections .content-title-sec .main-subtitle {
  font-size: 30px;
  line-height: 1.12;
}

.home-category-count {
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
}

.home-tool-sections .content-cats-sec {
  margin: 0 -8px;
}

.home-tool-sections .content-cats-sec .content-cats-col {
  margin-bottom: 16px;
  padding: 0 8px;
}

.home-tool-sections .content-cats-sec .content-cats-col .content-cats-inner {
  border: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: none;
  height: 100%;
  padding: 22px;
  top: 0;
}

.home-tool-sections .content-cats-sec .content-cats-col .content-cats-inner:hover {
  border: 1px solid rgba(76, 63, 242, 0.32);
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.09);
  top: -5px;
}

.home-tool-sections .content-cats-sec .content-cats-col .content-cats-inner .content-cats-icon {
  border-radius: 8px;
  height: 58px;
  margin-bottom: 16px;
  width: 58px;
}

.home-tool-sections .content-cats-sec .content-cats-col .content-cats-inner h2 {
  font-size: 19px;
  font-weight: 800;
}

.home-tool-sections .content-cats-sec .content-cats-col .content-cats-inner p {
  height: 42px;
  line-height: 21px;
  max-height: 42px;
}

.dark .home-modern {
  --home-ink: #f8fafc;
  --home-muted: #b8c0cc;
  --home-line: rgba(255, 255, 255, 0.12);
}

.dark .home-hero-text,
.dark .home-featured-tool p,
.dark .home-category-count,
.dark .home-stats span {
  color: var(--home-muted);
}

.dark .home-search-wrap,
.dark .home-stats div,
.dark .home-featured-tool,
.dark .home-tool-sections .home-category-block {
  background: rgba(35, 36, 38, 0.82);
  border-color: var(--home-line);
}

.dark .home-secondary-action {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--home-line);
  color: #ffffff;
}

.dark .home-featured-tool,
.dark .home-featured-tool:hover,
.dark .home-featured-tool:focus,
.dark .home-stats strong {
  color: #ffffff;
}

@media only screen and (max-width: 1199px) {
  .home-modern .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-visual {
    max-width: 640px;
  }

  .home-tool-sections .content-title-sec {
    position: static;
  }
}

@media only screen and (max-width: 767px) {
  .home-modern .home-hero {
    gap: 24px;
  }

  .home-modern .home-hero h1 {
    font-size: 32px;
    line-height: 1.22;
  }

  .home-hero-text {
    font-size: 16px;
  }

  .home-stats,
  .home-featured-tools {
    grid-template-columns: 1fr;
  }

  .home-tool-sections .home-category-block {
    padding: 16px;
  }
}

@media only screen and (max-width: 575px) {
  .home-primary-action,
  .home-secondary-action {
    width: 100%;
  }

  .home-hero-visual {
    min-height: 260px;
  }

  .home-visual-grid {
    gap: 10px;
    padding: 18px;
  }

  .home-visual-tile {
    min-height: 78px;
    padding: 14px;
  }

  .home-visual-tile strong {
    font-size: 20px;
  }

  .home-tool-sections .content-cats-sec {
    margin: 0;
  }

  .home-tool-sections .content-cats-sec .content-cats-col {
    padding: 0;
  }
}
