/**
 * BigBen CRM — Audit Section Styles
 * /audit/ — экспресс-диагностика школы
 * Extends tools.css quiz styles
 */

/* ============================================
   Hero Section
   ============================================ */

.audit-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d3142 50%, #3a3555 100%);
  padding: 6.5rem 0 3rem;
  color: #fff;
  overflow: hidden;
}

.audit-hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.audit-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.15;
  color: #fff;
}

.audit-hero__lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 2rem;
  line-height: 1.6;
  max-width: 540px;
}

.audit-hero__lead strong {
  color: #fff;
  font-weight: 600;
}

.audit-hero__stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.audit-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.audit-hero__stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
}

.audit-hero__stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

.audit-hero__note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.75rem;
}

.audit-hero__upsell {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.375rem;
  margin: 1.5rem 0 0;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.audit-hero__upsell a {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(237, 83, 138, 0.4);
  transition: color 0.2s, border-color 0.2s;
}

.audit-hero__upsell a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.audit-hero__upsell span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
}

.audit-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.audit-hero__img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}

/* ============================================
   Axis SVG Icons
   ============================================ */

.audit-icon {
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
}

.quiz-card__direction .audit-icon {
  vertical-align: -4px;
  margin-right: 2px;
}

/* ============================================
   6th Axis Color (extends tools.css 5 colors)
   ============================================ */

.quiz-card__direction--processes {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.quiz-card__direction--scaling {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}

/* ============================================
   Radar Chart (SVG, rendered by JS)
   ============================================ */

/* ============================================
   Results Section
   ============================================ */

.audit-results {
  max-width: 900px;
  margin: 0 auto;
  animation: auditFadeIn 0.5s ease forwards;
}

/* === Shared notice — открыли чужой результат === */
.audit-shared-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(237, 83, 138, 0.06), rgba(237, 83, 138, 0.02));
  border: 1px solid rgba(237, 83, 138, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.audit-shared-notice svg {
  flex-shrink: 0;
  color: var(--primary);
}

.audit-shared-notice__text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
}

.audit-shared-notice__text strong {
  color: var(--text);
}

.audit-shared-notice__btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.audit-shared-notice__btn:hover {
  background: var(--primary-dark, #d63d77);
}

@media (max-width: 600px) {
  .audit-shared-notice {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .audit-shared-notice__btn {
    width: 100%;
  }
}

@keyframes auditFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Two-column top: info + radar */
.audit-results__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid rgba(45, 49, 66, 0.08);
  border-radius: var(--radius-md);
}

.audit-results__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audit-results__label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  font-weight: 600;
  margin: 0;
}

.audit-results__grade-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.audit-results__grade {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.audit-results__grade--A { background: linear-gradient(135deg, #22c55e, #16a34a); }
.audit-results__grade--B { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.audit-results__grade--C { background: linear-gradient(135deg, #f59e0b, #d97706); }
.audit-results__grade--D { background: linear-gradient(135deg, #ef4444, #dc2626); }

.audit-results__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.2;
}

.audit-results__score-text {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: 0.125rem 0 0;
}

.audit-results__desc {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.audit-results__radar svg {
  max-width: 100%;
  height: auto;
}

/* Axis Breakdown */
.audit-axes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.audit-axis {
  background: var(--card-bg);
  border: 1px solid rgba(45, 49, 66, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.audit-axis__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.audit-axis__name {
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audit-axis__pct {
  font-weight: 700;
  font-size: 0.9375rem;
}

.audit-axis__pct--high { color: #22c55e; }
.audit-axis__pct--mid { color: #f59e0b; }
.audit-axis__pct--low { color: #ef4444; }

.audit-axis__bar {
  height: 6px;
  background: rgba(45, 49, 66, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.audit-axis__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.audit-axis__bar-fill--finance { background: #3b82f6; }
.audit-axis__bar-fill--team { background: #a855f7; }
.audit-axis__bar-fill--students { background: #22c55e; }
.audit-axis__bar-fill--processes { background: #6366f1; }
.audit-axis__bar-fill--marketing { background: #f59e0b; }
.audit-axis__bar-fill--scaling { background: #14b8a6; }

.audit-axis__text {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Recommendations */
.audit-recs {
  margin: 2.5rem 0;
}

.audit-recs__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
}

.audit-rec {
  background: var(--card-bg);
  border: 1px solid rgba(45, 49, 66, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}

.audit-rec__axis {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audit-rec__text {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.audit-rec__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.audit-rec__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--primary-pale);
  color: var(--primary-dark);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.audit-rec__link:hover {
  background: rgba(237, 83, 138, 0.15);
}

/* Share / Actions */
.audit-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.audit-actions .btn {
  min-width: 180px;
}

/* Full Audit CTA */
.audit-full-cta {
  background: var(--primary-pale);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.audit-full-cta__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.audit-full-cta__text {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
  .audit-hero {
    padding: 6.5rem 0 2rem;
  }

  .audit-hero__content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .audit-hero__lead {
    max-width: none;
  }

  .audit-hero__stats {
    justify-content: center;
  }

  .audit-hero__visual {
    order: -1;
  }

  .audit-hero__radar-preview {
    width: 200px;
    height: 200px;
  }

  .audit-results__top {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }

  .audit-results__grade-row {
    justify-content: center;
  }

  .audit-axes {
    grid-template-columns: 1fr;
  }

  .audit-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .audit-hero__stats {
    gap: 1.25rem;
  }

  .audit-hero__stat-value {
    font-size: 1.5rem;
  }

  .audit-hero__img {
    max-width: 100%;
  }
}

/* ============================================
   Full Audit — Hero variant (centered)
   ============================================ */

.audit-hero--full .audit-hero__content--centered {
  grid-template-columns: 1fr;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.audit-hero--full .audit-hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

.audit-hero--full .audit-hero__lead,
.audit-hero--full .audit-hero__text {
  max-width: none;
}

.audit-hero--full .audit-hero__lead {
  font-size: 1.1875rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.audit-hero--full .audit-hero__stats {
  justify-content: center;
}

/* ============================================
   Quiz Meta Bar — back to hub + cross-level link
   Lets a user inside a running quiz return to /audit/ or jump
   to another level (express ↔ full). Lives at the top of the
   express quiz container and inside the full audit sticky bar.
   ============================================ */

.audit-quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.audit-quiz-meta__back,
.audit-quiz-meta__upgrade {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  transition: color 0.2s;
}

.audit-quiz-meta__back {
  color: var(--text-light);
}

.audit-quiz-meta__back:hover {
  color: var(--text);
}

.audit-quiz-meta__upgrade {
  color: var(--primary);
  font-weight: 600;
}

.audit-quiz-meta__upgrade:hover {
  color: var(--primary-dark);
}

.audit-quiz-meta__upgrade-hint {
  color: var(--text-light);
  font-weight: 400;
  margin-right: 0.25rem;
}

/* On the express page the meta bar lives at the top of the quiz container,
   so it needs its own bottom margin and a soft separator. */
#auditQuizContainer > .audit-quiz-meta {
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(45, 49, 66, 0.08);
}

/* Inside the sticky bar on the full audit page, the meta bar is its own
   compact strip above the section tabs. */
#auditFullNav .audit-quiz-meta {
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(45, 49, 66, 0.08);
}

/* ============================================
   Full Audit — Section Tabs Navigation
   ============================================ */

.audit-sections {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(45, 49, 66, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

/* Sticky compact navigation during quiz.
   Glued under fixed .nav (~72px). Quiz section gets reduced padding
   so the question card sits right under the tabs without big gaps. */
#auditFullNav.section {
  padding: 0;
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 49, 66, 0.08);
  box-shadow: 0 2px 12px rgba(45, 49, 66, 0.04);
  margin-top: 0;
}

#auditFullNav .container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

#auditFullNav .audit-sections {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 0.25rem;
}

#auditFullNav .audit-section-tab {
  padding: 0.5rem 0.5rem;
}

/* padding-top must clear the sticky bar (meta strip + section tabs).
   The bar's full height drives this value — recalculate if you add rows. */
#auditFullQuizSection.section {
  padding: 6rem 0 4rem;
}

.audit-section-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-align: left;
}

.audit-section-tab:hover {
  background: rgba(237, 83, 138, 0.04);
}

.audit-section-tab--active {
  background: rgba(237, 83, 138, 0.08);
  border-color: rgba(237, 83, 138, 0.2);
}

.audit-section-tab--done .audit-section-tab__progress {
  color: #22c55e;
  font-weight: 700;
}

.audit-section-tab__icon {
  flex-shrink: 0;
  display: inline-flex;
}

.audit-section-tab__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.audit-section-tab__title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-section-tab__progress {
  font-size: 0.6875rem;
  color: var(--text-light);
  margin-top: 0.125rem;
}

/* ============================================
   Full Audit — Email Gate
   ============================================ */

.audit-email-gate {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--card-bg);
  border: 1px solid rgba(45, 49, 66, 0.08);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 24px rgba(45, 49, 66, 0.06);
}

.audit-email-gate__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary-pale);
  margin-bottom: 1.25rem;
}

.audit-email-gate__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.audit-email-gate__text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 0 2rem;
}

.audit-email-gate__form {
  margin: 0;
}

.audit-email-gate__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.audit-email-gate__input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(45, 49, 66, 0.15);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
}

.audit-email-gate__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(237, 83, 138, 0.1);
}

.audit-email-gate__btn {
  width: 100%;
}

.audit-email-gate__note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

.audit-email-gate__skip {
  display: inline-block;
  margin-top: 1.5rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.audit-email-gate__skip:hover {
  color: var(--primary);
}

/* ============================================
   Full Audit — Detailed Recommendations
   ============================================ */

.audit-recs--full {
  margin-top: 3rem;
}

.audit-recs__subtitle {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: -0.75rem 0 1.5rem;
}

.audit-rec--detailed {
  padding: 1.75rem;
  margin-bottom: 1rem;
}

.audit-rec__head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}

.audit-rec__priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.audit-rec--detailed .audit-rec__axis {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.audit-rec__score {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.audit-rec__score--high {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.audit-rec__score--mid {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.audit-rec__score--low {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.audit-rec--detailed .audit-rec__text {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.audit-rec__action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--primary-pale);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.audit-rec__action-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.audit-rec__action-text {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

.audit-rec__links-wrap {
  margin-top: 0.75rem;
}

.audit-rec__links-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ============================================
   Full Audit — Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
  .audit-sections {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
    padding: 0.5rem;
  }

  .audit-section-tab {
    padding: 0.5rem 0.375rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
  }

  .audit-section-tab__title {
    font-size: 0.6875rem;
  }

  /* Sticky bar on mobile: horizontal scroll instead of grid rows
     so the bar stays compact (single row, ~50px tall). */
  #auditFullNav.section {
    top: 64px;
  }

  #auditFullNav .audit-sections {
    display: flex;
    overflow-x: auto;
    gap: 0.375rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #auditFullNav .audit-sections::-webkit-scrollbar {
    display: none;
  }

  #auditFullNav .audit-section-tab {
    flex: 0 0 auto;
    flex-direction: row;
    min-width: 150px;
    text-align: left;
    scroll-snap-align: start;
  }

  #auditFullNav .audit-section-tab__title {
    font-size: 0.75rem;
  }

  .audit-email-gate {
    padding: 2rem 1.25rem;
  }

  .audit-email-gate__title {
    font-size: 1.375rem;
  }

  .audit-email-gate__icon {
    width: 72px;
    height: 72px;
  }

  .audit-email-gate__icon svg {
    width: 48px;
    height: 48px;
  }

  .audit-rec--detailed {
    padding: 1.25rem;
  }

  .audit-rec__head {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .audit-rec--detailed .audit-rec__axis {
    font-size: 0.9375rem;
    order: 1;
    width: calc(100% - 40px);
  }

  .audit-rec__score {
    order: 2;
    margin-left: auto;
    font-size: 0.875rem;
  }

  .audit-rec__action {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }
}

@media (max-width: 480px) {
  .audit-sections {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   3 уровня диагностики (audit-levels)
   ============================================ */

.audit-levels {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  background: linear-gradient(180deg, #faf9f7 0%, #ffffff 100%);
}

.audit-levels__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.audit-levels__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ed538a;
  background: rgba(237, 83, 138, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.audit-levels__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.875rem;
  color: #1a1a2e;
  line-height: 1.2;
}

.audit-levels__lead {
  font-size: 1.0625rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.audit-levels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.audit-level {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.audit-level:hover:not(.audit-level--coming) {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(237, 83, 138, 0.12);
  border-color: rgba(237, 83, 138, 0.2);
}

.audit-level--express {
  background: linear-gradient(180deg, #fef3f7 0%, #ffffff 50%);
}

.audit-level--full {
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 50%);
  border-color: rgba(192, 132, 252, 0.25);
}

.audit-level--full::before {
  content: 'Популярный';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(90deg, #ed538a, #c084fc);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.audit-level--admin {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 50%);
}

.audit-level--coming {
  opacity: 0.7;
}

.audit-level__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
}

.audit-level__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.audit-level__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 83, 138, 0.08);
  color: #ed538a;
  flex-shrink: 0;
}

.audit-level--full .audit-level__icon {
  background: rgba(192, 132, 252, 0.1);
  color: #9333ea;
}

.audit-level--admin .audit-level__icon {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.audit-level__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.audit-level__tier {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a2e;
}

.audit-level__time {
  font-size: 0.8125rem;
  color: #64748b;
}

.audit-level__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.625rem;
  line-height: 1.3;
  color: #1a1a2e;
}

.audit-level__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.audit-level__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  flex: 1;
}

.audit-level__features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.audit-level__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.audit-level__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.audit-level__btn--primary {
  background: linear-gradient(135deg, #ed538a, #c084fc);
  color: #fff;
}

.audit-level__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(237, 83, 138, 0.3);
}

.audit-level__btn--ghost {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .audit-levels__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}
