.card-breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: calc(var(--header-height) + var(--utility-bar-height) + 2.4rem) 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.card-breadcrumb a:hover {
  color: var(--white);
}

.card-breadcrumb span {
  opacity: 0.45;
}

.card-traits-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 3.4rem;
}

.card-traits-head h2 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.card-traits-head p {
  max-width: 32rem;
  color: #5a666a;
  font-size: 1.02rem;
  line-height: 1.7;
}

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }

.doc-hero {
  position: relative;
  overflow: hidden;
  min-height: 32rem;
  color: var(--white);
  background: var(--blue-deep);
}

.doc-hero::before,
.doc-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.doc-hero::before {
  left: -14rem;
  top: -10rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(130, 201, 191, 0.42), transparent 68%);
  filter: blur(36px);
}

.doc-hero::after {
  right: -8rem;
  bottom: -12rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}

.doc-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
  padding: 3.2rem 0 5.5rem;
}

.doc-hero h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.doc-hero-lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: #d7e5f4;
  font-size: 1.08rem;
  line-height: 1.75;
}

.doc-needed {
  padding: 5.5rem 0;
  background: var(--white);
}

.doc-needed-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.doc-needed-visual {
  margin: 0;
  padding: 0;
  background: none;
}

.doc-needed-visual img {
  width: min(100%, 22rem);
  margin: 0 auto;
}

.doc-needed h2 {
  max-width: 16ch;
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.doc-needed-lead {
  max-width: 32rem;
  margin-bottom: 1.8rem;
  color: #5a666a;
  font-size: 1.02rem;
  line-height: 1.7;
}

.doc-download-list {
  display: grid;
}

.doc-download-list a {
  min-height: 6.4rem;
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.doc-download-list a:last-child {
  border-bottom: 1px solid var(--line);
}

.doc-download-list a:hover {
  padding-left: 0.6rem;
}

.doc-download-list span {
  color: var(--green);
  font-size: 0.55rem;
  font-weight: 800;
}

.doc-download-list small {
  display: block;
  color: #667071;
  font-size: 0.68rem;
}

.doc-download-list strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.2rem;
}

.doc-download-list b {
  color: var(--blue);
  font-size: 1.4rem;
}

.doc-needed-contacts {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.doc-needed-contacts a {
  color: inherit;
  text-decoration: none;
}

.doc-needed-contacts small {
  display: block;
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-needed-contacts strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.05rem;
}

.doc-decrees {
  padding: 5.5rem 0 6.5rem;
  background: var(--paper);
}

.doc-grid {
  display: grid;
  gap: 1.2rem;
}

.doc-card {
  display: grid;
  gap: 1.4rem;
  min-height: 22rem;
  padding: 1.8rem 1.6rem 1.6rem;
  background: var(--white);
  border: 1px solid #dce6ea;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.doc-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.doc-card.has-files {
  text-decoration: none;
}

.doc-card-files {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  width: 100%;
}

.doc-card-files a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

.doc-card-files a span {
  flex: none;
}

.doc-card-files a:hover {
  color: var(--green);
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  overflow: auto;
}

.lightbox:not([open]) {
  display: none;
}

.lightbox::backdrop {
  background: rgba(10, 22, 34, 0.86);
}

.lightbox-frame {
  position: relative;
  width: max-content;
  max-width: min(44rem, calc(100vw - 2rem));
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(44rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2.4rem);
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(4, 18, 32, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(4, 18, 32, 0.22);
}

.lightbox-close:hover {
  color: var(--blue);
}

.doc-card small {
  color: var(--green);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.doc-card p {
  color: #5a666a;
  font-size: 0.95rem;
  line-height: 1.65;
}

.doc-card img {
  width: min(100%, 11rem);
  margin-top: auto;
  justify-self: center;
  filter: drop-shadow(0 16px 28px rgba(15, 55, 85, 0.18));
}

.doc-card b {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue);
  font-size: 0.82rem;
}

.doc-note {
  max-width: 40rem;
  margin-top: 2.4rem;
  color: #667071;
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (min-width: 48rem) {
  .doc-needed-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
  }

  .doc-needed-contacts {
    grid-template-columns: 1fr 1fr;
  }

  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .doc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
