/* ─────────────────────────────────────────────────────────────────────────
   Противодействие коррупции — page-specific styles
   Базовые переменные, хедер, футер и mobile-menu определены в home/styles.css
───────────────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────────────
   BREADCRUMB
────────────────────────────────────────────────────────────────────── */
.page-crumb-wrap {
  padding-top: 20px;
  padding-left: var(--px);
  padding-right: var(--px);
  padding-bottom: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--text-muted);
  flex-shrink: 0;
}
.breadcrumb-current { color: var(--text-light); }

/* ──────────────────────────────────────────────────────────────────────
   PAGE HERO
────────────────────────────────────────────────────────────────────── */
.ac-page-hero {
  padding: 32px var(--px) 48px;
}
.ac-page-title {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}

/* ──────────────────────────────────────────────────────────────────────
   ACCORDION SECTIONS
────────────────────────────────────────────────────────────────────── */
.ac-sections {
  padding: 0 0 64px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ac-section {
  border-top: 1px solid rgba(86,113,143,0.5);
}
.ac-section:last-child { border-bottom: 1px solid rgba(86,113,143,0.5); }

/* Header row */
.ac-section-header {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px var(--px);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  list-style: none;
}
.ac-section-header::-webkit-details-marker { display: none; }

.ac-section-num {
  font-family: 'Play', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 32px;
}

.ac-section-title {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(18px, 2vw, 36px);
  font-weight: 400;
  color: #fff;
  flex: 1;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.ac-toggle-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform 0.3s;
}
.ac-section[open] .ac-toggle-icon {
  transform: rotate(45deg);
  color: var(--text-light);
}

/* Body */
.ac-section-body {
  padding: 0 var(--px) 32px;
}

/* ──────────────────────────────────────────────────────────────────────
   DOCUMENT CARDS — link style (секции 01, 02)
────────────────────────────────────────────────────────────────────── */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-link-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(1,22,43,1) 0%, rgba(54,66,84,1) 100%);
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: filter 0.2s;
}
.doc-link-card:hover { filter: brightness(1.15); }

.doc-link-title {
  /* названия документов из админки — длинное слово/URL иначе распирает карточку */
  overflow-wrap: anywhere;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
  flex: 1;
}

.doc-link-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ──────────────────────────────────────────────────────────────────────
   DOCUMENT CARDS — download style (секция 03)
────────────────────────────────────────────────────────────────────── */
.doc-download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.doc-download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(90deg, rgba(3,23,44,1) 0%, rgba(54,66,84,1) 100%);
  border-radius: 8px;
  transition: filter 0.2s;
}
.doc-download-card:hover { filter: brightness(1.15); }

.doc-download-title {
  overflow-wrap: anywhere;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.44;
  color: #fff;
  flex: 1;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border: 1px solid #56718F;
  border-radius: 5px;
  padding: 12px 24px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  align-self: flex-start;
  white-space: nowrap;
}
.btn-download:hover { border-color: var(--accent); background: rgba(255,131,104,0.08); }

/* ──────────────────────────────────────────────────────────────────────
   SUB-ACCORDION — вложенные года (секция 04)
────────────────────────────────────────────────────────────────────── */
.ac-sub-section {
  border-top: 1px solid rgba(86,113,143,0.5);
}

.ac-sub-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px var(--px);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  list-style: none;
}
.ac-sub-header::-webkit-details-marker { display: none; }

.ac-sub-num {
  font-family: 'Play', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 28px;
}

.ac-sub-year {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  color: #fff;
  flex: 1;
}

.ac-sub-toggle {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform 0.3s;
}
.ac-sub-section[open] .ac-sub-toggle {
  transform: rotate(45deg);
  color: var(--text-light);
}

.ac-sub-body {
  padding: 0 var(--px) 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ac-sub-note {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 820px;
}
.ac-sub-note a { color: var(--accent); text-decoration: underline; }

/* ──────────────────────────────────────────────────────────────────────
   CONTACT BLOCK
────────────────────────────────────────────────────────────────────── */
.ac-contacts-section {
  padding: 48px var(--px);
}
.ac-contacts-title {
  font-family: Arial, sans-serif;
  font-size: clamp(16px, 1.8vw, 22px);
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.3;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.contact-card {
  padding: 20px 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card--person  { background: linear-gradient(90deg, rgba(4,24,45,1) 0%, rgba(53,65,83,1) 100%); }
.contact-card--address { background: linear-gradient(90deg, rgba(4,24,45,1) 0%, rgba(52,64,82,1) 100%); }

.contact-card-name {
  font-family: 'Play', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
}
.contact-card-value {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}
.contact-card-value:hover { text-decoration: underline; }
.contact-card-label {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}

/* ──────────────────────────────────────────────────────────────────────
   FEEDBACK FORM
────────────────────────────────────────────────────────────────────── */
.ac-form-section {
  padding: 48px var(--px) 80px;
  margin: 0 0 64px;
}

.ac-form-title {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
}
.ac-form-hint {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.5;
  max-width: 680px;
}

.report-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.report-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.report-form-full {
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #fff;
}
.form-field label .req { color: var(--accent); }

.form-field input,
.form-field textarea {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 10px 14px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field .errorlist {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--accent-red);
}

/* Privacy checkbox */
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
}
.form-privacy input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
  margin-top: 2px;
  cursor: pointer;
}
.form-privacy a { color: var(--accent); text-decoration: underline; }
.form-privacy-error {
  font-size: 12px;
  color: var(--accent-red);
  margin-top: -16px;
  margin-bottom: 12px;
}

/* Submit button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  padding: 12px 32px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-submit:hover { border-color: var(--accent); background: rgba(255,131,104,0.08); }

/* Success message */
.form-success {
  padding: 16px 20px;
  background: rgba(255,131,104,0.1);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 24px;
}

/* ──────────────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET
────────────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .doc-download-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .doc-download-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .report-form-grid { grid-template-columns: 1fr 1fr; }
}

/* ──────────────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE (≤768px)
────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Все размеры ниже сняты с макета Figma «Моб / Противодействие» (302-8146),
     базовая ширина 360px, боковые поля var(--px) = 20px. */

  /* ── Хлебные крошки + hero ─────────────────────────────────────────── */
  .page-crumb-wrap { padding-top: 32px; }
  .breadcrumb { gap: 12px; font-size: 12px; line-height: 18px; }

  .ac-page-hero { padding: 32px var(--px) 48px; }
  .ac-page-title {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.02em;
  }

  /* ── Шапка аккордеона ──────────────────────────────────────────────── */
  /* Колонки макета: 20 | номер 30 | 10 | заголовок 246 | 10 | иконка 24 | 20 */
  .ac-section-header {
    align-items: flex-start;
    gap: 10px;
    padding: 32px var(--px);
  }
  .ac-section-num {
    min-width: 30px;
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    letter-spacing: -0.025em;
  }
  .ac-section-title {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.025em;
  }
  .ac-toggle-icon { width: 24px; height: 24px; }

  /* ── Тело секции + карточки-ссылки ─────────────────────────────────── */
  .ac-section-body { padding: 0 var(--px) 32px; }
  .doc-list { gap: 16px; }
  .doc-link-card { padding: 20px 16px; }
  .doc-link-title { font-size: 16px; line-height: 24px; }
  /* В макете карточка — просто текстовый блок, стрелки нет */
  .doc-link-arrow { display: none; }

  /* ── Секция 03 — карточки со скачиванием ───────────────────────────── */
  .doc-download-grid { grid-template-columns: 1fr; gap: 16px; }
  .doc-download-card { gap: 20px; padding: 20px 16px; }
  .doc-download-title { font-size: 16px; line-height: 24px; }
  .btn-download { padding: 10px 20px; font-size: 14px; line-height: 20px; }

  /* ── Вложенные аккордеоны (1.1, 4.1 …) ─────────────────────────────── */
  .ac-sub-header { gap: 10px; padding: 20px 0; }
  .ac-sub-num { min-width: 30px; font-size: 16px; font-weight: 400; }
  .ac-sub-year { font-size: 16px; line-height: 24px; }
  .ac-sub-body { padding: 0 0 20px; }

  /* ── Контакты ──────────────────────────────────────────────────────── */
  .ac-contacts-section { padding: 32px var(--px); }
  .ac-contacts-title {
    margin-bottom: 32px;
    font-family: 'Play', Arial, sans-serif;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.01em;
  }
  .contact-cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-card { gap: 12px; padding: 16px; }
  .contact-card-name,
  .contact-card-label { font-size: 16px; line-height: 24px; color: #fff; }
  .contact-card-value { font-size: 16px; line-height: 24px; }

  /* ── Форма ─────────────────────────────────────────────────────────── */
  .ac-form-section {
    border-radius: 0;
    margin: 0 0 40px;
    padding: 0 var(--px) 48px;
  }
  .ac-form-title {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.01em;
  }
  .ac-form-hint { margin-bottom: 32px; font-size: 16px; line-height: 24px; }

  .report-form-grid,
  .report-form-row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
  .report-form-full { margin-bottom: 20px; }

  .form-field { gap: 8px; }
  .form-field label { font-size: 14px; line-height: 20px; }
  .form-field input,
  .form-field textarea {
    box-sizing: border-box;
    padding: 16px 20px;
    font-size: 16px;
    line-height: 24px;
  }
  .form-field input { height: 56px; }
  .form-field textarea { height: 168px; }

  .form-privacy {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 20px;
  }
  .form-privacy input[type="checkbox"] { width: 24px; height: 24px; margin-top: 0; }

  .btn-submit {
    box-sizing: border-box;
    justify-content: center;
    width: 100%;
    height: 56px;
    padding: 0 20px;
    font-size: 16px;
    line-height: 24px;
  }
}
