/* ============================================
   PAROL.TOOLS — Main Stylesheet
   Dark cybersecurity theme, mobile-first
   ============================================ */

:root {
  --bg:           #080c14;
  --surface:      #0f1623;
  --surface2:     #1a2236;
  --surface3:     #222d44;
  --border:       #2a3550;
  --accent:       #00c896;
  --accent-dark:  #009e78;
  --accent2:      #7c3aed;
  --text:         #e8edf5;
  --text-muted:   #8899b4;
  --danger:       #ef4444;
  --warning:      #f59e0b;
  --success:      #10b981;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,.4);
  --transition:   .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { color: var(--text-muted); }
a  { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
strong { color: var(--text); }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 60px 0; }
.section-sm { padding: 40px 0; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,12,20,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--text); white-space: nowrap; text-decoration: none;
}
.nav-logo-icon { font-size: 1.4rem; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; flex-wrap: wrap; }
.nav-links a {
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text-muted); font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface2); }
.nav-links a.btn-nav { background: var(--accent); color: #000; font-weight: 700; padding: 6px 16px; }
.nav-links a.btn-nav:hover { background: var(--accent-dark); color: #000; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* HERO */
.hero { padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,200,150,.12), transparent);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,200,150,.1); border: 1px solid rgba(0,200,150,.25);
  color: var(--accent); font-size: .8rem; font-weight: 600;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 16px; }
.hero p  { font-size: 1.1rem; max-width: 560px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); color: #000; }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface3); transform: translateY(-1px); color: var(--text); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: rgba(0,200,150,.08); color: var(--accent); }
.btn-copy { background: var(--surface3); color: var(--text); border: 1px solid var(--border); min-width: 110px; }
.btn-copy:hover { border-color: var(--accent); color: var(--text); }
.btn-copy.copied { background: var(--success); color: #fff; border-color: var(--success); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

/* CARDS */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color var(--transition), transform var(--transition); position: relative;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px; background: rgba(0,200,150,.12); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.4rem;
}
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p  { font-size: .9rem; margin-bottom: 20px; }
.card-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: .7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.badge-new { background: rgba(0,200,150,.15); color: var(--accent); border: 1px solid rgba(0,200,150,.3); }
.badge-hot { background: rgba(239,68,68,.15); color: var(--danger); border: 1px solid rgba(239,68,68,.3); }

/* TOOL PAGE */
.tool-page { padding: 40px 0 80px; }
.tool-header { margin-bottom: 40px; }
.tool-header .subtitle { font-size: 1.05rem; color: var(--text-muted); margin-top: 8px; }
.breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }
.tool-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; }

/* RESULT */
.result-wrap {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 20px;
}
.result-output {
  flex: 1; font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
  word-break: break-all; min-height: 28px;
  background: none; border: none; outline: none; cursor: default; user-select: all;
}
.result-output.dim { color: var(--text-muted); font-weight: 400; font-family: inherit; font-size: .95rem; }

/* CONTROLS */
.controls { display: flex; flex-direction: column; gap: 20px; }
.control-group { display: flex; flex-direction: column; gap: 10px; }
.control-label { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; color: var(--text); }
.control-label .val { color: var(--accent); font-weight: 700; min-width: 32px; text-align: right; }

input[type="range"] {
  width: 100%; height: 6px; appearance: none;
  background: var(--surface3); border-radius: 3px; cursor: pointer; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px; background: var(--accent);
  border-radius: 50%; cursor: pointer; transition: transform var(--transition);
  box-shadow: 0 0 0 4px rgba(0,200,150,.15);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

.checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-item {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 14px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all var(--transition); font-size: .9rem; user-select: none;
}
.checkbox-item:hover { border-color: var(--accent); }
.checkbox-item input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 18px; height: 18px; flex-shrink: 0; border: 2px solid var(--border);
  border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.checkbox-item.checked .checkbox-custom { background: var(--accent); border-color: var(--accent); }
.checkbox-item.checked .checkbox-custom::after { content: '✓'; font-size: .75rem; color: #000; font-weight: 900; }
.checkbox-item.checked { border-color: var(--accent); background: rgba(0,200,150,.06); }

/* STRENGTH METER */
.strength-bars { display: flex; gap: 4px; margin-bottom: 8px; }
.strength-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--surface3); transition: background .4s; }
.strength-label-row { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.strength-text { font-weight: 700; }
.level-0 .strength-text { color: var(--danger); }
.level-1 .strength-text { color: #f97316; }
.level-2 .strength-text { color: var(--warning); }
.level-3 .strength-text { color: #84cc16; }
.level-4 .strength-text { color: var(--success); }
.level-0 .strength-bar:nth-child(1) { background: var(--danger); }
.level-1 .strength-bar:nth-child(-n+2) { background: #f97316; }
.level-2 .strength-bar:nth-child(-n+3) { background: var(--warning); }
.level-3 .strength-bar:nth-child(-n+4) { background: #84cc16; }
.level-4 .strength-bar { background: var(--success); }

/* PASSWORD CHECKER */
.checker-input-wrap { position: relative; margin-bottom: 20px; }
.checker-input {
  width: 100%; padding: 16px 50px 16px 18px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 1rem; font-family: 'Courier New', monospace; outline: none;
  transition: border-color var(--transition);
}
.checker-input:focus { border-color: var(--accent); }
.checker-input::placeholder { color: var(--text-muted); font-family: -apple-system, sans-serif; }
.toggle-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: var(--text-muted); background: none; border: none; font-size: 1.2rem; padding: 4px;
}
.toggle-eye:hover { color: var(--accent); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.stat-val { font-size: 1.5rem; font-weight: 800; color: var(--accent); display: block; }
.stat-lbl { font-size: .78rem; color: var(--text-muted); margin-top: 2px; display: block; }
.feedback-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feedback-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem;
}
.feedback-item.good { background: rgba(16,185,129,.08); color: #6ee7b7; }
.feedback-item.bad  { background: rgba(239,68,68,.08);  color: #fca5a5; }
.feedback-item.warn { background: rgba(245,158,11,.08); color: #fcd34d; }
.feedback-icon { flex-shrink: 0; }

/* SECURITY NOTICE */
.security-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(0,200,150,.06); border: 1px solid rgba(0,200,150,.2);
  border-radius: var(--radius-sm); padding: 14px 18px;
  font-size: .85rem; color: var(--text-muted); margin-bottom: 24px;
}
.security-notice-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* AD PLACEHOLDERS — замените содержимое на код блока РСЯ */
.ad-slot {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius); min-height: 90px;
  display: none;
  /* TODO: когда подключите РСЯ, замените display:none на display:flex */
}
.ad-slot-label { color: var(--border); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }

/* AFFILIATE */
.affiliate-block {
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin: 40px 0;
}
.affiliate-block h3 { margin-bottom: 8px; }
.affiliate-block > p { margin-bottom: 24px; }
.affiliate-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.aff-card {
  background: var(--surface3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.aff-card-name { font-weight: 700; font-size: .95rem; color: var(--text); }
.aff-card-desc { font-size: .82rem; color: var(--text-muted); flex: 1; }
.aff-card .btn { margin-top: 8px; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color var(--transition), transform var(--transition);
  display: flex; flex-direction: column; text-decoration: none;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.blog-card-img {
  height: 160px; background: linear-gradient(135deg, var(--surface2), var(--surface3));
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.blog-meta { display: flex; gap: 12px; font-size: .8rem; color: var(--text-muted); }
.blog-card h3 { font-size: 1.05rem; margin: 4px 0; color: var(--text); }
.blog-card p  { font-size: .88rem; flex: 1; }
.blog-card .read-more { color: var(--accent); font-size: .88rem; font-weight: 600; margin-top: 8px; }
.blog-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; text-transform: uppercase;
  background: rgba(124,58,237,.15); color: #a78bfa; border: 1px solid rgba(124,58,237,.25);
}

/* ARTICLE */
.article { max-width: 780px; margin: 0 auto; }
.article h1 { margin-bottom: 12px; }
.article-meta { color: var(--text-muted); font-size: .88rem; margin-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.article h2 { margin: 40px 0 16px; padding-top: 8px; border-top: 1px solid var(--border); }
.article h3 { margin: 24px 0 12px; color: var(--text); }
.article p  { margin-bottom: 16px; }
.article ul, .article ol { padding-left: 24px; margin-bottom: 16px; color: var(--text-muted); }
.article li { margin-bottom: 6px; }
.article blockquote {
  border-left: 3px solid var(--accent); padding: 12px 20px;
  background: rgba(0,200,150,.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}
.article .infobox { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 28px 0; }
.article .infobox h4 { margin-bottom: 12px; }

/* FAQ */
.faq { margin: 40px 0; }
.faq h2 { margin-bottom: 20px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.faq-q {
  padding: 16px 20px; cursor: pointer; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); user-select: none; transition: background var(--transition);
}
.faq-q:hover { background: var(--surface2); }
.faq-arrow { transition: transform .3s; color: var(--accent); font-size: 1.1rem; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease; background: var(--surface);
}
.faq-item.open .faq-a { max-height: 600px; padding: 16px 20px; border-top: 1px solid var(--border); }
.faq-a p { margin: 0; }

/* CTA */
.cta-strip {
  background: linear-gradient(135deg, rgba(0,200,150,.1), rgba(124,58,237,.08));
  border: 1px solid rgba(0,200,150,.2); border-radius: var(--radius);
  padding: 40px; text-align: center; margin: 60px 0;
}
.cta-strip h2 { margin-bottom: 8px; }
.cta-strip p  { margin-bottom: 24px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: .9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: .9rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .88rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--text-muted);
}

/* MISC */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 8px; }
.section-title p { max-width: 480px; margin: 0 auto; }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.text-accent { color: var(--accent); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.trust-row {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  padding: 28px 0; border-top: 1px solid var(--border); margin-top: 40px;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); }
.trust-icon { font-size: 1rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 20px; z-index: 99;
  }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .checkboxes { grid-template-columns: 1fr; }
  .affiliate-cards { grid-template-columns: 1fr; }
  .tool-box { padding: 20px; }
  .hero { padding: 50px 0 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 769px) { .nav-burger { display: none; } }
