/* =============================================
   DOKUMENTY PAGE — ЭКОРУБЕРОИД
   Бело-зелёная тема + геометрический фон
   ============================================= */

:root {
  --primary: #1b5e30;
  --primary-dark: #134523;
  --primary-light: #eaf5ec;
  --accent: #2ecc71;
  --white: #ffffff;
  --bg-warm: #f2f7f3;
  --bg-soft: #f7faf8;
  --text: #1a2a1c;
  --text-secondary: #4a5b4d;
  --border: #dcebe0;
  --shadow-sm: 0 4px 10px rgba(20, 70, 30, 0.06);
  --shadow-md: 0 12px 28px rgba(20, 70, 30, 0.1);
  --shadow-lg: 0 20px 40px rgba(20, 70, 30, 0.12);
  --radius: 20px;
  --radius-lg: 28px;
  --transition: all 0.25s ease;
}

/* ========= ХЛЕБНЫЕ КРОШКИ ========= */
.breadcrumbs {
  background: linear-gradient(160deg, #f2faf5 0%, #eaf4ee 100%);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary-dark);
}

.breadcrumbs span {
  color: var(--text-secondary);
}

/* ========= PAGE HERO С ГЕОМЕТРИЧЕСКИМ ФОНОМ ========= */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, #edf7f0 0%, #d7ecdd 40%, #b8f5d8 100%);
  padding: 5rem 2rem;
  overflow: hidden;
}

/* Геометрическая сетка (решёточки) */
.page-hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 94, 48, 0.092) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 94, 48, 0.092) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Декоративные круги */
.page-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(27, 94, 48, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero-content {
  max-width: 700px;
}

.page-hero-content .section-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.78rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(27, 94, 48, 0.1);
  color: var(--primary);
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.page-hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  line-height: 1.15;
  font-family: 'Unbounded', sans-serif;
}

.page-hero-content h1 span {
  color: var(--primary);
}

.page-hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

/* ========= ОБЩИЕ СЕКЦИИ ========= */
.section {
  padding: 5rem 0;
  background: linear-gradient(160deg, #f2faf5 0%, #eaf4ee 100%);
}

.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2.5rem;
  line-height: 1.2;
  font-family: 'Unbounded', sans-serif;
}

/* ========= ТАБЫ ========= */
.tabs-nav {
  display: flex;
  gap: 4px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 5px;
  width: fit-content;
  margin-bottom: 48px;
}

.tabs-nav button {
  padding: 12px 28px;
  border-radius: 12px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
}

.tabs-nav button.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(27, 94, 48, 0.25);
}

.tabs-nav button:hover:not(.active) {
  background: rgba(27, 94, 48, 0.06);
  color: var(--primary-dark);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ========= КАРТОЧКИ ДОКУМЕНТОВ ========= */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background: linear-gradient(180deg, #f9fdfa 0%, #f2f7f3 100%);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

.doc-card::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0.4;
  transition: var(--transition);
}

.doc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.doc-card:hover::after {
  opacity: 0.7;
  transform: scale(1.2);
}

.doc-card__icon {
  font-size: 2.2rem;
  position: relative;
  z-index: 1;
}

.doc-card__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  position: relative;
  z-index: 1;
}

.doc-card__desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  position: relative;
  z-index: 1;
}

.doc-card__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding: 10px 16px;
  background: rgba(27, 94, 48, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(27, 94, 48, 0.15);
  transition: var(--transition);
  text-decoration: none;
  width: fit-content;
  position: relative;
  z-index: 1;
}

.doc-card__download:hover {
  background: rgba(27, 94, 48, 0.12);
  border-color: var(--primary);
  gap: 12px;
}

/* ========= ЮРИДИЧЕСКОЕ УВЕДОМЛЕНИЕ ========= */
.legal-notice {
  margin-top: 48px;
  padding: 28px 32px;
  background: rgba(27, 94, 48, 0.04);
  border: 1px solid rgba(27, 94, 48, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.legal-notice__icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(27, 94, 48, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-notice__title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1rem;
  font-family: 'Unbounded', sans-serif;
}

.legal-notice p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-notice p strong {
  color: var(--text);
}

/* ========= РЕКВИЗИТЫ ========= */
.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.req-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.req-block {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.req-block__header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.req-table {
  width: 100%;
  border-collapse: collapse;
}

.req-table tr {
  border-bottom: 1px solid var(--border);
}

.req-table tr:last-child {
  border-bottom: none;
}

.req-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  vertical-align: top;
}

.req-table td:first-child {
  width: 40%;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
}

.req-table td:last-child {
  color: var(--text);
  font-weight: 600;
}

.req-table a {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.req-table a:hover {
  color: var(--primary-dark);
}

/* Кнопка копирования */
.btn-copy {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(27, 94, 48, 0.08);
  border: 1px solid rgba(27, 94, 48, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Golos Text', sans-serif;
}

.btn-copy:hover {
  background: rgba(27, 94, 48, 0.15);
  border-color: var(--primary);
}

.btn-copy.copied {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Кнопка скачать всё */
.btn-download-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.btn-download-all:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========= CTA ========= */
.cta-section {
  background: transparent;
  padding: 3rem 2rem 6rem;
}

.cta-banner {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1b5e30 0%, #1a6b33 50%, #236b38 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner::before {
  content: "";
  position: absolute;
  left: -30px;
  top: -30px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.cta-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  opacity: 0.85;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  font-family: 'Unbounded', sans-serif;
}

.cta-sub {
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-block;
  text-align: center;
}

.btn-white:hover {
  background: #eaf5ec;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-ghost-white {
  background: transparent;
  color: white;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-block;
  text-align: center;
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: white;
  transform: translateY(-3px);
}

/* ========= АДАПТИВНОСТЬ ========= */
@media (max-width: 1024px) {
  .page-hero-content h1 {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .req-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .page-hero {
    padding: 4rem 1.5rem;
  }

  .page-hero-content h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }

  .docs-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 3rem 1rem;
  }

  .page-hero-content h1 {
    font-size: 1.8rem;
  }

  .page-hero-content p {
    font-size: 0.95rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-wrap {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .tabs-nav {
    width: 100%;
    justify-content: center;
  }

  .tabs-nav button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .docs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .req-grid {
    grid-template-columns: 1fr;
  }

  .legal-notice {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
  }

  .cta-section {
    padding: 1.5rem 1rem 3rem;
  }

  .cta-banner {
    padding: 2rem 1.5rem;
  }

  .cta-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 2.5rem 0.8rem;
  }

  .page-hero__grid-overlay {
    background-size: 40px 40px;
  }

  .page-hero-content h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .tabs-nav button {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .doc-card {
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius);
  }

  .req-table td {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-white,
  .btn-ghost-white {
    width: 100%;
    text-align: center;
  }
}