/* ── Audit page custom styles ── */

/* Промо: увеличить высоту и добавить воздух */
.prm { min-height: 420px; }
.prm .prm__dsc small { font-size: 0.85em; opacity: .8; margin-top: 12px; display: block; line-height: 1.5; }

/* Hero: главный заголовок и блоки условий (по макету) */
.audit-hero-lead { font-size: 1.15em; font-weight: 700; line-height: 1.3; margin: 0; }
.audit-hero-values {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 16px 0 20px;
}
.audit-hero-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: rgba(255,235,59,.95);
    border: 1px solid rgba(0,0,0,.35);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95em;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
@media (max-width: 520px) {
    .audit-hero-values { gap: 8px 12px; margin: 12px 0 16px; }
    .audit-hero-value { padding: 8px 14px; font-size: 0.88em; }
    .audit-hero-lead { font-size: 1em; }
}

/* Секция «Проблемы» */
.audit-problems { background: #f9f9fb; }
.audit-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 22px 20px 22px 18px;
    border-left: 4px solid #e53935;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow .2s, transform .2s;
}
.audit-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-2px); }
.audit-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #fff0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e53935;
    font-size: 20px;
}
.audit-card p { margin: 0; font-size: 0.91em; line-height: 1.6; }
.audit-card p b { display: block; margin-bottom: 5px; font-size: 0.97em; color: #1a1a2e; }

/* Секция «Как добиваемся» */
.audit-step {
    background: rgba(255,255,255,.13);
    border-radius: 10px;
    padding: 28px 24px;
    border: 1px solid rgba(255,255,255,.2);
    height: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
}
.audit-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e53935;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 14px;
}
.audit-step h3 { margin: 0 0 10px; font-size: 1.05em; color: #fff; font-weight: 700; }
.audit-step p { margin: 0; font-size: 0.9em; color: rgba(255,255,255,.85); line-height: 1.6; }

/* Секция «Услуги» */
.audit-service-card {
    border-radius: 12px;
    padding: 36px 28px;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow .2s, transform .2s;
}
.audit-service-card:hover { transform: translateY(-3px); }
.audit-service-card--default {
    border: 1px solid #e8e8e8;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.audit-service-card--default:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.audit-service-card--featured {
    border: 2px solid #e53935;
    background: #fff;
    box-shadow: 0 10px 32px rgba(229,57,53,.18);
    position: relative;
}
.audit-service-card--featured:hover { box-shadow: 0 16px 40px rgba(229,57,53,.25); }
.audit-service-card--featured::before {
    content: '★ Популярный выбор';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #e53935;
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .03em;
}
.audit-service-card__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff0f0, #ffe5e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #e53935;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(229,57,53,.15);
}
.audit-service-card h4 { margin: 0 0 8px; font-size: 1.08em; color: #1a1a2e; line-height: 1.35; }
.audit-service-card .audit-price {
    font-size: 1.25em;
    font-weight: 800;
    color: #e53935;
    margin: 10px 0 24px;
    letter-spacing: -.01em;
}
.audit-service-card .pg__btn { margin-top: auto; width: 100%; }
/* все кнопки в карточках услуг — единый стиль */
.audit-service-card .btn { width: 100%; justify-content: center; }

/* Секция «Результаты прошлого года» */
.audit-year-stats {
    background: #fff;
    padding: 64px 0;
}
.audit-year-stats .pg__ttl p { max-width: 560px; margin-left: auto; margin-right: auto; }
.audit-year-stats__nums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 48px;
    margin-top: 40px;
}
.audit-year-stats__num {
    text-align: center;
    min-width: 140px;
}
.audit-year-stats__num-val {
    font-size: 2.5em;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.audit-year-stats__num-dsc {
    font-size: 0.88em;
    color: #555;
    line-height: 1.4;
    margin-top: 8px;
}
.audit-year-stats__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}
.audit-year-stats__cta p { margin: 0; font-size: 1.05em; color: #333; }
@media (max-width: 760px) {
    .audit-year-stats__nums { gap: 24px 32px; margin-top: 28px; }
    .audit-year-stats__num-val { font-size: 2em; }
    .audit-year-stats__cta { flex-direction: column; margin-top: 36px; padding-top: 24px; }
}

/* Секция «Результаты» */
.audit-result-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    height: 100%;
    box-sizing: border-box;
}
.audit-result-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: linear-gradient(90deg, #e53935 0%, #ff7043 100%);
}
.audit-result-card h4 { margin: 0 0 10px; font-size: 1.05em; color: #1a1a2e; }
.audit-result-card p { color: #555; font-size: 0.92em; line-height: 1.6; }
.audit-result-card .audit-saving {
    font-size: 2em;
    font-weight: 800;
    color: #e53935;
    margin: 16px 0 4px;
    display: block;
    letter-spacing: -.02em;
}
.audit-result-card small { color: #999; font-size: 0.82em; }

/* Секция «Схема работы» */
.audit-scheme-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding: 0 0 8px;
}
/* горизонтальная линия между шагами */
.audit-scheme-steps::before {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(12.5% + 26px);
    right: calc(12.5% + 26px);
    height: 2px;
    background: linear-gradient(90deg, #e53935, #ff7043);
    opacity: .25;
    z-index: 0;
}
.audit-scheme-step {
    flex: 1;
    text-align: center;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}
.audit-scheme-step__num {
    width: 52px;
    height: 52px;
    background: #e53935;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 1.3em;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(229,57,53,.3);
}
.audit-scheme-step__label {
    font-size: 0.88em;
    line-height: 1.55;
    color: #444;
    max-width: 160px;
    margin: 0 auto;
}

/* Секция «Компетенции» */
.audit-competency {
    background: #fff;
    border-radius: 10px;
    padding: 22px 24px;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
    height: 100%;
    box-sizing: border-box;
}
.audit-competency__brand {
    flex-shrink: 0;
    font-size: 1.05em;
    font-weight: 800;
    color: #1a1a2e;
    width: 88px;
    line-height: 1.2;
    letter-spacing: .01em;
}
.audit-competency p { margin: 0; font-size: 0.875em; color: #555; line-height: 1.6; }

/* Гарантийный баннер */
.audit-guarantee {
    background: linear-gradient(135deg, #fff8f8 0%, #fff1f1 100%);
    border-left: 4px solid #e53935;
    border-radius: 8px;
    padding: 20px 28px;
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(229,57,53,.08);
}
.audit-guarantee i { color: #e53935; font-size: 1.6em; flex-shrink: 0; }
.audit-guarantee p { margin: 0; font-size: 0.95em; line-height: 1.5; }

/* CTA-секция: читаемый текст поверх фото */
.audit-cta-overlay {
    position: relative;
}
.audit-cta-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,.75) 0%, rgba(15,23,42,.50) 100%);
    z-index: 0;
}
.audit-cta-overlay > .arn { position: relative; z-index: 1; }
.audit-cta-overlay h2,
.audit-cta-overlay p { color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* FAQ accordion */
.audit-faq .itm { border-bottom: 1px solid #e8e8e8; }
.audit-faq .itm:last-child { border-bottom: none; }
.audit-faq .ttl { padding: 18px 40px 18px 0; cursor: pointer; position: relative; font-weight: 600; font-size: 1em; color: #1a1a2e; transition: color .2s; }
.audit-faq .ttl:hover { color: #e53935; }
.audit-faq .ttl::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(0deg); width: 12px; height: 12px; border-right: 2px solid #999; border-bottom: 2px solid #999; transition: transform .25s; }
.audit-faq .itm.open .ttl::after { transform: translateY(-30%) rotate(-135deg); }
.audit-faq .dsc { padding: 0 0 20px 0; font-size: 0.92em; line-height: 1.65; color: #555; display: none; }
.audit-faq .itm.open .dsc { display: block; }

/* Форма «Остались вопросы» */
.audit-questions-form .frm__inpts { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.audit-questions-form .frm__inpts input,
.audit-questions-form .frm__inpts textarea { flex: 1 1 200px; min-width: 0; }
.audit-questions-form .frm__inpts textarea { flex: 1 1 100%; min-height: 80px; resize: vertical; }

/* Audit: responsive typography */
@media (max-width: 768px) {
    .audit-card { padding: 18px 16px; }
    .audit-card__icon { width: 40px; height: 40px; font-size: 18px; }
    .audit-card p { font-size: 0.88em; }
    .audit-step { padding: 22px 18px; }
    .audit-step__num { width: 36px; height: 36px; font-size: 1em; }
    .audit-step h3 { font-size: 0.98em; }
    .audit-step p { font-size: 0.85em; }
    .audit-service-card { padding: 28px 20px; }
    .audit-service-card__icon { width: 56px; height: 56px; font-size: 24px; }
    .audit-service-card h4 { font-size: 1em; }
    .audit-service-card .audit-price { font-size: 1.15em; }
    .audit-result-card { padding: 24px 20px; }
    .audit-result-card h4 { font-size: 0.98em; }
    .audit-result-card p { font-size: 0.88em; }
    .audit-result-card .audit-saving { font-size: 1.7em; }
    .audit-scheme-step__num { width: 44px; height: 44px; font-size: 1.05em; }
    .audit-scheme-step__label { font-size: 0.82em; }
    .audit-competency { padding: 18px 20px; }
    .audit-competency__brand { font-size: 0.98em; }
    .audit-competency p { font-size: 0.82em; }
    .audit-guarantee { padding: 16px 20px; }
    .audit-guarantee p { font-size: 0.88em; }
    .audit-faq .ttl { padding: 14px 36px 14px 0; font-size: 0.95em; }
    .audit-faq .dsc { font-size: 0.88em; padding-bottom: 16px; }
}
@media (max-width: 520px) {
    .audit-card { padding: 16px 14px; gap: 12px; }
    .audit-card__icon { width: 36px; height: 36px; font-size: 16px; }
    .audit-card p { font-size: 0.85em; }
    .audit-step { padding: 18px 16px; }
    .audit-step__num { width: 32px; height: 32px; font-size: 0.9em; }
    .audit-step h3 { font-size: 0.92em; }
    .audit-step p { font-size: 0.82em; }
    .audit-service-card { padding: 28px 20px; }
    .audit-service-card__icon { width: 56px; height: 56px; font-size: 24px; }
    .audit-service-card h4 { font-size: 0.98em; }
    .audit-service-card .audit-price { font-size: 1.1em; }
    .audit-result-card { padding: 20px 16px; }
    .audit-result-card h4 { font-size: 0.95em; }
    .audit-result-card p { font-size: 0.85em; }
    .audit-result-card .audit-saving { font-size: 1.5em; }
    .audit-scheme-step__num { width: 40px; height: 40px; font-size: 0.95em; }
    .audit-scheme-step__label { font-size: 0.78em; }
    .audit-competency { padding: 16px 18px; gap: 12px; }
    .audit-competency__brand { font-size: 0.92em; width: 72px; }
    .audit-competency p { font-size: 0.8em; }
    .audit-guarantee { padding: 14px 18px; }
    .audit-guarantee p { font-size: 0.85em; }
    .audit-faq .ttl { padding: 12px 32px 12px 0; font-size: 0.9em; }
    .audit-faq .dsc { font-size: 0.85em; padding-bottom: 14px; }
}

@media (max-width: 900px) {
    .audit-scheme-steps::before { display: none; }
}
@media (max-width: 768px) {
    .audit-scheme-steps { flex-wrap: wrap; gap: 24px; }
    .audit-scheme-step { flex: 0 0 48%; }
    .audit-service-card--featured::before { font-size: 0.68em; padding: 3px 12px; }
    .prm { min-height: 340px; }
}
@media (max-width: 480px) {
    .audit-scheme-step { flex: 0 0 100%; }
}

/* ── Попапы: фиксированный оверлей поверх viewport ── */
.popup_background {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100vw !important; height: 100vh !important;
}
[id$="_wrapper"] {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}
[id$="_wrapper"].popup_wrapper_visible {
    pointer-events: auto;
    visibility: visible !important;
    opacity: 1 !important;
}
