/* ===== "Нормативные документы" — тот же язык, что Услуги/Оборудование =====
   namespace .geo-doc-*, переиспользует double-bezel/tabs/cta-form паттерны. */

.geo-page-documents .main-wrapper {
  background: var(--geo-paper);
  overflow-x: clip;
}

.geo-doc-section {
  position: relative;
  padding: clamp(2.75rem, 5.5vw, 5rem) 0;
  overflow: hidden;
}
.geo-doc-section.is-dark { background: var(--geo-ink); color: #fff; }
.geo-doc-section.is-light { background: var(--geo-paper); color: var(--geo-ink); }
.geo-doc-section.is-light .geo-doc-body { color: rgba(6, 22, 38, 0.55); }

.geo-doc-glow {
  position: absolute;
  width: 42rem;
  height: 42rem;
  top: -16rem;
  right: -10rem;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle, rgba(211, 231, 255, 0.16), transparent 70%);
  pointer-events: none;
}
/* Hero — тот же фон, что у первого блока на "О компании": реактивная
   точечная сетка (canvas 2D) + 2 амбиентных блика вместо одного плоского. */
.geo-doc-glow-a {
  width: 46rem; height: 46rem; top: -14rem; right: -10rem;
  filter: blur(80px); opacity: 0.5;
  background: radial-gradient(circle, rgba(211, 231, 255, 0.4), transparent 70%);
}
.geo-doc-glow-b {
  width: 34rem; height: 34rem; top: auto; right: auto; bottom: -12rem; left: -8rem;
  filter: blur(80px); opacity: 0.5;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}
.geo-doc-dotgrid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.geo-doc-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 400; color: var(--geo-accent, #d3e7ff);
  margin-bottom: 1.4rem;
}
.geo-doc-eyebrow::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--geo-accent, #d3e7ff); flex-shrink: 0;
}
.is-light .geo-doc-eyebrow { color: rgba(6, 22, 38, 0.55); }
.is-light .geo-doc-eyebrow::before { background: rgba(6, 22, 38, 0.4); }

.geo-doc-h1 { font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.08; margin: 0 0 1.4rem; max-width: 46rem; }
.geo-doc-h2 { font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; margin: 0 0 1rem; max-width: 40rem; }
.geo-doc-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; max-width: 36rem; margin: 0; color: rgba(255, 255, 255, 0.78); }
.geo-doc-body { font-size: 1rem; line-height: 1.6; max-width: 44rem; margin: 0 0 1.6rem; }
.geo-doc-subhead { margin: 2rem 0 1rem; font-size: 1.02rem; font-weight: 600; }

.geo-doc-hero { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; }
.geo-doc-hero-inner { position: relative; z-index: 2; max-width: 46rem; }

[data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.32, 0.72, 0, 1), transform 0.9s cubic-bezier(0.32, 0.72, 0, 1), filter 0.9s cubic-bezier(0.32, 0.72, 0, 1);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---------- buttons ---------- */
.geo-doc-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.geo-doc-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.4rem 0.4rem 0.4rem 1.6rem; border-radius: 999px;
  font-size: 0.94rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.geo-doc-btn-primary { background: var(--geo-accent, #d3e7ff); color: var(--geo-ink); padding-top: 0.9rem; padding-bottom: 0.9rem; }
.geo-doc-btn-primary .geo-doc-btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(6, 22, 38, 0.12);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.geo-doc-btn:hover { transform: scale(1.03) translateY(-2px); }
.geo-doc-btn-primary:hover .geo-doc-btn-icon { transform: translate(2px, -2px) scale(1.08); }

/* ---------- double-bezel shell + core ---------- */
.geo-doc-shell {
  position: relative; padding: 0.4rem; border-radius: 1.4rem;
  background: rgba(127, 127, 127, 0.05); border: 1px solid rgba(127, 127, 127, 0.12);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), border-color 0.5s ease;
}
.is-dark .geo-doc-shell { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
.geo-doc-shell:hover { transform: translateY(-4px); border-color: rgba(211, 231, 255, 0.4); }
.geo-doc-core {
  position: relative; width: 100%; height: 100%; box-sizing: border-box;
  padding: 1.5rem 1.6rem 1.7rem; border-radius: calc(1.4rem - 0.4rem);
  background: var(--geo-paper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
.is-dark .geo-doc-core { background: #0c2233; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.geo-doc-core h3 { margin: 0 0 0.6rem; font-size: 1.05rem; font-weight: 600; }
.geo-doc-core p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.5; }
.is-light .geo-doc-core p { color: rgba(6, 22, 38, 0.6); }

.geo-doc-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; margin-bottom: 0.9rem; border-radius: 0.55rem;
  background: rgba(211, 231, 255, 0.14); color: var(--geo-blue); flex-shrink: 0;
}
.geo-doc-icon svg { width: 1.15rem; height: 1.15rem; }

.geo-doc-badge {
  display: inline-block; padding: 0.35rem 0.8rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; border: 1px solid var(--geo-line); opacity: 0.75;
}
.geo-doc-file-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--geo-blue); text-decoration: none; }
.geo-doc-file-link:hover { text-decoration: underline; }

.geo-doc-cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.geo-doc-file-card .geo-doc-core { display: flex; flex-direction: column; align-items: flex-start; }

.geo-doc-empty-note { font-size: 0.95rem; opacity: 0.6; font-style: italic; }

/* ---------- вкладки ---------- */
.geo-doc-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.6rem; }
.geo-doc-tab {
  padding: 0.7rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--geo-line); background: transparent; color: inherit;
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.geo-doc-tab:hover { border-color: var(--geo-blue); }
.geo-doc-tab.is-active { background: var(--geo-blue); border-color: var(--geo-blue); color: #fff; }
.geo-doc-tab:focus { outline: none; }
.geo-doc-tab:focus-visible { outline: 2px solid var(--geo-accent, #d3e7ff); outline-offset: 4px; }

.geo-doc-panel {
  transition: opacity 0.35s cubic-bezier(0.32, 0.72, 0, 1), transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.geo-doc-panel.is-entering { opacity: 0; transform: translateY(10px); }

/* ---------- таблица руководящих документов ---------- */
.geo-doc-table-wrap { overflow-x: auto; }
.geo-doc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 40rem; }
.geo-doc-table td { padding: 0.75rem 0.9rem; border-top: 1px solid var(--geo-line); vertical-align: top; }
.is-dark .geo-doc-table td { border-color: rgba(255, 255, 255, 0.1); }
.geo-doc-table td:first-child { font-weight: 600; white-space: nowrap; width: 1%; }
.geo-doc-table td:last-child { white-space: nowrap; width: 1%; }
.geo-doc-table a { color: var(--geo-blue); text-decoration: none; font-weight: 600; }
.geo-doc-table a:hover { text-decoration: underline; }

/* ---------- final cta ---------- */
.geo-doc-cta-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.geo-doc-cta-copy .geo-doc-h2 { color: #fff; }
.geo-doc-cta-direct { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.geo-doc-cta-direct p { margin: 0 0 0.3rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.5); }
.geo-doc-cta-direct a { color: #fff; text-decoration: none; font-weight: 600; }
.geo-doc-cta-direct a:hover { color: var(--geo-accent, #d3e7ff); }

.geo-doc-form-core { background: #0c2233; }
.geo-doc-form { display: flex; flex-direction: column; gap: 1rem; }
.geo-doc-form label { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); }
.geo-doc-form input, .geo-doc-form textarea {
  font: inherit; padding: 0.75rem 0.9rem; border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04);
  color: #fff; resize: vertical; transition: border-color 0.3s ease;
}
.geo-doc-form input:focus, .geo-doc-form textarea:focus { outline: none; border-color: var(--geo-accent, #d3e7ff); }
.geo-doc-form button { align-self: flex-start; margin-top: 0.3rem; }
.geo-doc-form-note { font-size: 0.74rem; color: rgba(255, 255, 255, 0.42); margin: 0; }
.geo-doc-form.is-sent .geo-doc-form-note { color: var(--geo-accent, #d3e7ff); font-size: 0.9rem; }
.geo-doc-form.is-sent label, .geo-doc-form.is-sent button { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .geo-doc-cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo-doc-cta-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .geo-doc-section { padding: 3.5rem 0; }
  .geo-doc-cert-grid { grid-template-columns: 1fr; }
  .geo-doc-tabs { flex-direction: column; }
  .geo-doc-tab { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: opacity 0.3s ease; transform: none !important; filter: none !important; }
  .geo-doc-shell, .geo-doc-btn, .geo-doc-panel { transition: none; }
}

/* ---------- Поиск по документам ---------- */
.geo-doc-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 42rem;
  margin: 0 0 1rem;
}

.geo-doc-search-icon {
  position: absolute;
  left: 0.95rem;
  width: 1.15rem;
  height: 1.15rem;
  opacity: 0.55;
  pointer-events: none;
}

.geo-doc-search-icon svg {
  width: 100%;
  height: 100%;
}

.geo-doc-search input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem 0.7rem 2.85rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 34, 51, 0.2);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
}

.geo-doc-search input:focus-visible {
  outline: 2px solid #0c2233;
  outline-offset: 2px;
}

.geo-doc-search-count {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  opacity: 0.75;
}

.geo-doc-search-count[hidden] {
  display: none;
}

/* Во время поиска показываем совпадения из всех разделов сразу. */
.geo-doc-searching [data-doc-panel] {
  display: block;
}

.geo-doc-searching [data-doc-panel][hidden] {
  display: none;
}

/* ---------- Таблицы документов ---------- */
.geo-doc-table-caption {
  text-align: left;
  padding-bottom: 0.6rem;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.geo-doc-code {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 500;
}

.geo-doc-accred {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.85rem);
}

.geo-doc-accred p {
  margin: 0 0 0.7rem;
  line-height: 1.6;
  max-width: 92ch;
}

.geo-doc-accred p:last-child {
  margin-bottom: 0;
}

.geo-doc-note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.72;
  max-width: 88ch;
}

.geo-doc-tab.is-muted {
  opacity: 0.72;
}

[data-doc-row][hidden],
.geo-doc-cert-card[hidden],
.geo-doc-file-card[hidden] {
  display: none;
}
