.section-head {
  text-align: center;
  margin-bottom: 5rem;
}
.section-head__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0B49B9;
  background: rgba(11, 73, 185, 0.1);
  padding: 0.5rem 1.4rem;
  border-radius: 10rem;
  margin-bottom: 1.6rem;
}
.section-head__title {
  font-size: 3rem;
  font-weight: 700;
  color: #0f0f1a;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
@media only screen and (min-width: 768px) {
  .section-head__title {
    font-size: 3.8rem;
  }
}
.section-head__desc {
  font-size: 1.6rem;
  color: #6b7280;
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.6;
}
.section-head--light .section-head__title {
  color: #fff;
}
.section-head--light .section-head__desc {
  color: rgba(255, 255, 255, 0.65);
}
.section-head--light .section-head__label {
  color: #a5b4fc;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10rem 0 8rem;
  background: #09090f;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero__orb--1 {
  width: 60rem;
  height: 60rem;
  background: radial-gradient(circle, #3730a3 0%, transparent 70%);
  top: -15rem;
  left: -15rem;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero__orb--2 {
  width: 50rem;
  height: 50rem;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  bottom: -10rem;
  right: -10rem;
  animation: orbFloat 16s ease-in-out infinite reverse;
}
.hero__orb--3 {
  width: 35rem;
  height: 35rem;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat 20s ease-in-out infinite 2s;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero__container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1.6rem;
  border-radius: 10rem;
  margin-bottom: 2.8rem;
  letter-spacing: 0.04em;
}
.hero__badge-dot {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}
.hero__title {
  font-size: 4.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
@media only screen and (min-width: 768px) {
  .hero__title {
    font-size: 7rem;
  }
}
@media only screen and (min-width: 1400px) {
  .hero__title {
    font-size: 8.4rem;
  }
}
.hero__title-accent {
  background: linear-gradient(135deg, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 4.8rem;
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}
@media only screen and (min-width: 768px) {
  .hero__sub {
    font-size: 1.8rem;
  }
}
@media only screen and (max-width: 768px) {
  .hero__sub-br {
    display: none;
  }
}
.hero__search-wrap {
  max-width: 70rem;
  margin: 0 auto 5rem;
}
.hero__search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border-radius: 1.4rem;
  padding: 0.6rem 0.6rem 0.6rem 2rem;
  gap: 1.2rem;
  transition: border-color 0.2s;
}
.hero__search:focus-within {
  border-color: rgba(129, 140, 248, 0.6);
  background: rgba(255, 255, 255, 0.08);
}
.hero__search-ico {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
}
.hero__search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.6rem;
  color: #fff;
  padding: 1rem 0;
}
.hero__search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.hero__search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 1.2rem 2.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
.hero__search-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
@media only screen and (max-width: 576px) {
  .hero__search-btn {
    padding: 1.2rem;
  }
  .hero__search-btn span {
    display: none;
  }
}
.hero__search-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
  justify-content: center;
}
.hero__search-tags-label {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.4);
}
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 0;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 0 3rem;
}
.hero__stat-sep {
  width: 1px;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.12);
}
.hero__stat-num {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: block;
}
@media only screen and (min-width: 768px) {
  .hero__stat-num {
    font-size: 4rem;
  }
}
.hero__stat-label {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.3);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 1;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10rem;
  padding: 0.5rem 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
}
.search-tag:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.cats {
  padding: 10rem 0;
  background: #f8f9fe;
}
.cats__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media only screen and (min-width: 768px) {
  .cats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 992px) {
  .cats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cat-card {
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(15, 15, 26, 0.06);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  border: 1px solid #f0f0f6;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 15, 26, 0.12);
}
.cat-card:hover .cat-card__img {
  transform: scale(1.05);
}
.cat-card:hover .cat-card__arrow {
  transform: translateX(4px);
}
@media only screen and (min-width: 992px) {
  .cat-card--featured {
    grid-row: span 2;
  }
}
.cat-card--featured .cat-card__img-wrap {
  height: 28rem;
}
.cat-card__img-wrap {
  position: relative;
  height: 18rem;
  overflow: hidden;
  flex-shrink: 0;
}
.cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.cat-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(9, 9, 15, 0.5) 100%);
}
.cat-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2.4rem;
  gap: 1.2rem;
}
.cat-card__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  background: linear-gradient(135deg, rgba(11, 73, 185, 0.1), rgba(6, 178, 227, 0.1));
  border-radius: 1.2rem;
  color: #0B49B9;
  flex-shrink: 0;
}
.cat-card__text {
  flex: 1;
}
.cat-card__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0f0f1a;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.cat-card__desc {
  font-size: 1.4rem;
  color: #6b7280;
  line-height: 1.5;
}
.cat-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid #f0f0f6;
}
.cat-card__count {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0B49B9;
}
.cat-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  background: rgba(11, 73, 185, 0.08);
  border-radius: 50%;
  color: #0B49B9;
  transition: transform 0.25s ease;
}

.adv-search {
  padding: 10rem 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 60%, #0c1a3a 100%);
}
.adv-search__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  padding: 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
@media only screen and (min-width: 768px) {
  .adv-search__card {
    padding: 4rem;
  }
}
.adv-search__main-row {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.adv-search__field {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
  min-width: 20rem;
}
.adv-search__field--main {
  flex: 1 1 100%;
}
@media only screen and (min-width: 768px) {
  .adv-search__field--main {
    flex: 1 1 auto;
  }
}
.adv-search__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.adv-search__input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 1rem !important;
  padding: 1.4rem 1.8rem !important;
  font-size: 1.5rem !important;
  color: #fff !important;
}
.adv-search__input::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}
.adv-search__input:hover, .adv-search__input:focus {
  border-color: rgba(129, 140, 248, 0.5) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}
.adv-search__filters-row {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
@media only screen and (min-width: 576px) {
  .adv-search__filters-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 992px) {
  .adv-search__filters-row {
    grid-template-columns: repeat(4, 1fr);
  }
}
.adv-search__select-wrap {
  position: relative;
}
.adv-search__select-wrap::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}
.adv-search__select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.2rem 3.5rem 1.2rem 1.4rem;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}
.adv-search__select:focus {
  border-color: rgba(129, 140, 248, 0.5);
  outline: none;
}
.adv-search__select option {
  background: #1e1b4b;
  color: #e5e7eb;
}
.adv-search__go {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 1.4rem 3rem;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
  align-self: flex-end;
}
.adv-search__go:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
@media only screen and (max-width: 768px) {
  .adv-search__go {
    width: 100%;
    justify-content: center;
  }
}
.adv-search__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.adv-search__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.4);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.adv-search__reset:hover {
  color: rgba(255, 255, 255, 0.7);
}
.adv-search__note {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.3);
}

.new-docs {
  padding: 10rem 0;
  background: #f8f9fe;
}
.new-docs__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.new-docs__top .section-head {
  text-align: left;
  margin-bottom: 0;
}
.new-docs__all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0B49B9;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.new-docs__all-link:hover {
  border-color: #0B49B9;
}
.new-docs__grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
@media only screen and (min-width: 576px) {
  .new-docs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 992px) {
  .new-docs__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border-radius: 1.6rem;
  padding: 2.4rem;
  text-decoration: none;
  border: 1px solid #f0f0f6;
  box-shadow: 0 2px 8px rgba(15, 15, 26, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}
.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 15, 26, 0.1);
}
.doc-card:hover .doc-card__link {
  transform: translateX(3px);
}
.doc-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.doc-card__type {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 10rem;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-card__year {
  font-size: 1.3rem;
  font-weight: 600;
  color: #9ca3af;
}
.doc-card__title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f0f1a;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-card__author {
  font-size: 1.35rem;
  color: #6b7280;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f6;
  margin-top: auto;
}
.doc-card__dept {
  font-size: 1.25rem;
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.doc-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: #9ca3af;
}
.doc-card--blue .doc-card__type {
  background: #eff6ff;
  color: #1d4ed8;
}
.doc-card--green .doc-card__type {
  background: #f0fdf4;
  color: #15803d;
}
.doc-card--purple .doc-card__type {
  background: #faf5ff;
  color: #7e22ce;
}
.doc-card--orange .doc-card__type {
  background: #fff7ed;
  color: #c2410c;
}
.doc-card--teal .doc-card__type {
  background: #f0fdfa;
  color: #0f766e;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, -4%) scale(1.05);
  }
  66% {
    transform: translate(-2%, 3%) scale(0.97);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px #22c55e;
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 16px #22c55e;
  }
}
@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(2.4rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}