/* pdaudit — стили лендинга v2 (с визуальными акцентами) */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --critical: #991b1b;
  --critical-bg: #fee2e2;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow: 0 4px 6px -1px rgba(15,23,42,0.07), 0 2px 4px -2px rgba(15,23,42,0.05);
  --shadow-md: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -4px rgba(15,23,42,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(15,23,42,0.1), 0 8px 10px -6px rgba(15,23,42,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --gradient-hero: linear-gradient(180deg, #eff6ff 0%, #ffffff 60%, #f8fafc 100%);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; font-family: var(--font); font-size:16px; line-height:1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-hover); }
img, svg { max-width: 100%; height: auto; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* === HEADER === */
.site-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top:0; z-index:100; }
.site-header .container { display:flex; align-items:center; justify-content:space-between; padding:14px 22px; }
.logo { font-weight:700; font-size:22px; color: var(--text); display:flex; align-items:center; gap:10px; }
.logo-mark { width:34px; height:34px; background: var(--gradient-primary); border-radius:8px; display:inline-flex; align-items:center; justify-content:center; box-shadow: 0 4px 8px rgba(37,99,235,0.25); }
.logo-mark svg { width:20px; height:20px; color: white; }
.nav-main { display:flex; gap:30px; list-style:none; padding:0; margin:0; align-items:center; }
.nav-main a { color: var(--text); font-weight:500; font-size:15px; }
.nav-main a:hover { color: var(--primary); }
/* кнопки внутри шапки — переопределяем цвет ссылок */
.nav-main a.btn-primary,
a.btn-primary { color: white; }
.nav-main a.btn-primary:hover,
a.btn-primary:hover { color: white; }
.nav-main a.btn-secondary,
a.btn-secondary { color: var(--text); }
.nav-main a.btn-secondary:hover,
a.btn-secondary:hover { color: var(--primary); }
@media (max-width: 880px) { .nav-main { display:none; } }

/* === BUTTONS === */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 24px; border-radius:var(--radius-sm); font-weight:600; font-size:15px; border:1px solid transparent; cursor:pointer; transition: all .15s; text-decoration:none; line-height:1; white-space: nowrap; }
.btn-primary { background: var(--gradient-primary); color: white; box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.btn-primary:hover { color:white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-alt); border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 17px 32px; font-size: 17px; }

/* === HERO === */
.hero { padding: 90px 0 70px; background: var(--gradient-hero); text-align:center; position:relative; overflow:hidden; }
.hero::before { content:""; position:absolute; top:-100px; right:-100px; width:400px; height:400px; background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%); pointer-events:none; }
.hero::after { content:""; position:absolute; bottom:-150px; left:-150px; width:500px; height:500px; background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%); pointer-events:none; }
.hero .container { position: relative; z-index:1; }

.hero-badge { display:inline-flex; align-items:center; gap:6px; padding: 7px 14px; background: var(--warning-bg); color: #92400e; border:1px solid #fde68a; border-radius:999px; font-size:13px; font-weight:600; margin-bottom:24px; }

.hero h1 { font-size:48px; font-weight:800; line-height:1.1; margin:0 0 22px; color: var(--text); letter-spacing:-0.02em; }
.hero h1 span.accent { color: var(--primary); }
.hero .lead { font-size:19px; color: var(--text-muted); max-width: 720px; margin: 0 auto 40px; }

.scan-form { max-width:680px; margin:0 auto 16px; display:flex; gap:10px; background: white; padding:10px; border-radius: var(--radius); box-shadow: var(--shadow-lg); border:1px solid var(--border); }
.scan-form input[type="text"], .scan-form input[type="url"] { flex:1; border:0; outline:none; padding:14px 16px; font-size:16px; border-radius: var(--radius-sm); font-family: var(--font); color: var(--text); }
.scan-form input::placeholder { color: var(--text-light); }
.scan-form button { border:0; background: var(--gradient-primary); color:white; font-weight:600; font-size:15px; padding:14px 28px; border-radius: var(--radius-sm); cursor:pointer; transition: all .15s; }
.scan-form button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,0.4); }

.hero-micro { font-size:14px; color: var(--text-muted); max-width: 560px; margin: 0 auto 30px; }
.hero-stats { display:flex; gap:36px; justify-content:center; margin-top:36px; flex-wrap:wrap; }
.hero-stat { text-align:center; }
.hero-stat-num { font-size: 28px; font-weight: 800; color: var(--primary); display:block; line-height:1; }
.hero-stat-label { font-size:13px; color: var(--text-muted); text-transform: uppercase; letter-spacing:0.05em; margin-top:4px; }

@media (max-width: 640px) {
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 16px; }
  .scan-form { flex-direction: column; padding:12px; gap: 8px; }
  .scan-form button { padding: 14px; }
}

/* === SECTIONS === */
section.block { padding: 80px 0; position: relative; }
section.block + section.block { border-top: 1px solid var(--border); }
section.block-alt { background: var(--bg-alt); }
section.block h2 { font-size:36px; font-weight: 800; text-align:center; margin: 0 0 16px; letter-spacing:-0.02em; }
section.block .section-lead { text-align:center; font-size:18px; color: var(--text-muted); max-width:740px; margin: 0 auto 56px; }
.section-eyebrow { display:block; text-align:center; color: var(--primary); font-weight:700; font-size:14px; text-transform: uppercase; letter-spacing:0.1em; margin-bottom:12px; }

/* === GRID === */
.grid { display:grid; gap:24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* === CARDS === */
.card { background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.card-icon { width:48px; height:48px; border-radius: var(--radius-sm); background: var(--primary-light); color: var(--primary); display:inline-flex; align-items:center; justify-content:center; margin-bottom:16px; }
.card-icon svg { width:26px; height:26px; }
.card-icon.danger { background: var(--danger-bg); color: var(--danger); }
.card-icon.warning { background: var(--warning-bg); color: var(--warning); }
.card-icon.success { background: var(--success-bg); color: var(--success); }
.card h3 { margin: 0 0 12px; font-size:19px; font-weight:700; }
.card p { margin:0; color: var(--text-muted); font-size:15px; }

.card-step { text-align:center; }
.card-step .num { width:44px; height:44px; border-radius:50%; background: var(--gradient-primary); color:white; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:18px; margin-bottom:18px; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }

/* === FINES TABLE === */
.fines-wrap { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fines-table { width:100%; border-collapse:collapse; font-size:15px; }
.fines-table th, .fines-table td { padding: 16px 20px; text-align:left; }
.fines-table thead th { background: var(--bg-alt); font-weight: 600; color: var(--text); border-bottom: 2px solid var(--border); }
.fines-table tbody tr { border-bottom: 1px solid var(--border); }
.fines-table tbody tr:last-child { border-bottom: 0; }
.fines-table tbody tr:hover { background: var(--bg-alt); }
.fines-table td.fine { font-weight: 600; white-space: nowrap; }
.fines-table .sev-low { color: #92400e; background: var(--warning-bg); padding: 4px 10px; border-radius: 6px; display: inline-block; }
.fines-table .sev-mid { color: var(--danger); background: var(--danger-bg); padding: 4px 10px; border-radius: 6px; display: inline-block; }
.fines-table .sev-high { color: var(--critical); background: var(--critical-bg); padding: 4px 10px; border-radius: 6px; display: inline-block; font-weight: 700; }
.fines-note { text-align:center; margin-top:24px; font-size:14px; color: var(--text-muted); }

/* === PRICING === */
.pricing-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }

.tariff { background: var(--bg); border:1px solid var(--border); border-radius: var(--radius); padding:32px 24px; display:flex; flex-direction:column; position:relative; transition: transform .2s, box-shadow .2s; }
.tariff:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tariff.popular { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); transform: scale(1.04); }
.tariff.popular:hover { transform: scale(1.04) translateY(-4px); }
.tariff.popular::before { content: "⭐ Популярный"; position:absolute; top:-14px; left:50%; transform: translateX(-50%); background: var(--gradient-primary); color:white; padding:6px 16px; border-radius:999px; font-size:12px; font-weight:700; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.tariff h3 { font-size: 17px; font-weight:600; margin: 0 0 8px; color: var(--text-muted); }
.tariff .price { font-size:32px; font-weight:800; margin-bottom: 4px; color: var(--text); }
.tariff .price small { font-size:14px; font-weight:400; color: var(--text-muted); }
.tariff .desc { color: var(--text-muted); font-size:14px; margin-bottom: 22px; }
.tariff ul { list-style:none; padding:0; margin: 0 0 24px; flex:1; }
.tariff ul li { font-size:14px; padding: 7px 0 7px 24px; position:relative; color: var(--text); }
.tariff ul li::before { content: "✓"; position:absolute; left:0; color: var(--success); font-weight:700; }

/* === FAQ === */
.faq { max-width:820px; margin: 40px auto 0; }
.faq details { background: var(--bg); border:1px solid var(--border); border-radius: var(--radius-sm); margin-bottom:12px; padding: 0; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--primary-light); }
.faq summary { font-weight:600; font-size:17px; cursor:pointer; list-style: none; position:relative; padding: 20px 60px 20px 24px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; position:absolute; right:24px; top:50%; transform: translateY(-50%); font-size:24px; color: var(--text-light); transition: transform .2s; }
.faq details[open] summary { color: var(--primary); border-bottom: 1px solid var(--border); }
.faq details[open] summary::after { content:"−"; color: var(--primary); }
.faq p { margin: 0; padding: 16px 24px 22px; color: var(--text-muted); font-size:16px; }

/* === FOOTER === */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 60px 0 30px; margin-top: 80px; font-size:14px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: white; }
.site-footer .grid { gap:40px; margin-bottom:40px; }
.site-footer h4 { color: white; font-size:14px; text-transform: uppercase; letter-spacing:0.08em; margin: 0 0 16px; }
.site-footer ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.site-footer .legal { border-top: 1px solid #1e293b; padding-top: 24px; font-size:13px; color: #64748b; text-align:center; line-height:1.7; }

/* === ALERT === */
.alert-info { background: var(--primary-light); border-left: 4px solid var(--primary); padding: 18px 24px; border-radius: var(--radius-sm); margin: 24px 0; color: var(--primary-dark); }

/* === RESULT BLOCK === */
#scan-result { max-width:860px; margin: 36px auto 0; display:none; }
#scan-result.visible { display:block; }
#scan-result .status { background: var(--bg-alt); padding:24px; border-radius: var(--radius); text-align:center; font-weight:500; border:1px solid var(--border); }

/* === DEMO REPORT (mock) === */
.demo-report { max-width: 900px; margin: 50px auto 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.demo-report-header { display:flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.demo-report-title { font-weight: 700; font-size: 18px; color: var(--text); }
.demo-report-score { display:flex; gap: 14px; flex-wrap: wrap; }
.demo-score-chip { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.demo-score-chip.ok { background: var(--success-bg); color: var(--success); }
.demo-score-chip.fail { background: var(--danger-bg); color: var(--danger); }
.demo-finding { display:flex; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; align-items: flex-start; }
.demo-finding.ok { background: var(--success-bg); border-left: 4px solid var(--success); }
.demo-finding.fail { background: var(--danger-bg); border-left: 4px solid var(--danger); }
.demo-finding-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.demo-finding-icon.ok { color: var(--success); }
.demo-finding-icon.fail { color: var(--danger); }
.demo-finding-body { flex: 1; }
.demo-finding-title { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.demo-finding-desc { font-size: 13px; color: var(--text-muted); }
.demo-finding-fine { font-size: 12px; color: var(--danger); font-weight: 600; margin-top: 6px; }

/* Анимации */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero h1, .hero .lead, .scan-form, .hero-micro, .hero-stats { animation: fadeUp .6s ease-out backwards; }
.hero .lead { animation-delay: .08s; }
.scan-form { animation-delay: .16s; }
.hero-micro { animation-delay: .24s; }
.hero-stats { animation-delay: .32s; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.pulse-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background: var(--success); animation: pulse 1.6s ease-in-out infinite; margin-right:8px; vertical-align: middle; }

/* === TRUST BADGES === */
.trust-row { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; margin-top:30px; }
.trust-badge { display:inline-flex; align-items:center; gap:8px; padding:10px 16px; background:var(--bg); border:1px solid var(--border); border-radius:999px; font-size:13px; font-weight:600; color: var(--text); box-shadow: var(--shadow-sm); }
.trust-badge svg { width:16px; height:16px; }
.trust-badge.ok { color: var(--success); }
.trust-badge.info { color: var(--primary); }

/* === SELF-AUDIT === */
.self-audit { max-width: 900px; margin: 0 auto; background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 100%); border: 2px solid var(--success); border-radius: var(--radius-lg); padding: 36px; }
.self-audit-header { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.self-audit-header svg { width:36px; height:36px; color: var(--success); flex-shrink:0; }
.self-audit-header h3 { margin:0; font-size:22px; font-weight:700; color: var(--text); }
.self-audit-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
@media (max-width: 640px) { .self-audit-grid { grid-template-columns: 1fr; } }
.self-audit-item { display:flex; gap:10px; align-items:flex-start; font-size:14px; color: var(--text); }
.self-audit-item svg { width:18px; height:18px; color: var(--success); flex-shrink:0; margin-top:1px; }

/* === COMPARE TABLE === */
.compare-wrap { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); margin-top: 40px; }
.compare-table { width:100%; border-collapse:collapse; font-size:14px; min-width:760px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: center; border-right: 1px solid var(--border); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table th:last-child, .compare-table td:last-child { border-right: 0; }
.compare-table thead th { background: var(--bg-alt); font-weight: 600; border-bottom: 2px solid var(--border); position: relative; }
.compare-table thead th.us { background: var(--primary-light); color: var(--primary-dark); }
.compare-table tbody tr { border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child { border-bottom: 0; }
.compare-table tbody td.us { background: #f0f9ff; font-weight: 600; }
.yes { color: var(--success); font-size: 18px; font-weight: 700; }
.no { color: var(--danger); font-size: 18px; font-weight: 700; }
.partial { color: var(--warning); font-size: 18px; font-weight: 700; }

/* === LIVE TICKER === */
.ticker { background: #0f172a; color: #cbd5e1; padding: 12px 0; overflow: hidden; position: relative; border-top: 1px solid #1e293b; border-bottom: 1px solid #1e293b; font-size: 13px; }
.ticker-track { display: flex; gap: 40px; animation: ticker-scroll 60s linear infinite; white-space: nowrap; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; }
.ticker-item .pulse-dot { background: var(--danger); }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === LEAD MAGNETS === */
.lead-magnets { display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
@media (max-width: 700px) { .lead-magnets { grid-template-columns: 1fr; } }
.lead-magnet { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: center; transition: border-color .2s, transform .2s; }
.lead-magnet:hover { border-color: var(--primary); transform: translateY(-2px); }
.lead-magnet-icon { width: 48px; height: 48px; flex-shrink: 0; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; }
.lead-magnet-icon svg { width: 26px; height: 26px; }
.lead-magnet-body h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--text); }
.lead-magnet-body p { margin: 0; font-size: 13px; color: var(--text-muted); }
