/* Dr.Web CureIt! — светлая тема в стиле Доктор Веб */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-card: #ffffff;
  --bg-elevated: #f0f2f5;
  --text: #1a1a1a;
  --text-muted: #5a6c7d;
  --accent: #00a86b;
  --accent-hover: #008f5a;
  --border: #e1e6eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-card: 0 4px 20px rgba(0,0,0,.06);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container { max-width: 1140px; margin: 0 auto; padding-inline: clamp(1rem, 5vw, 20px); }

/* Skip link — только при фокусе */
.skip-link {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform .2s;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header — светлая шапка как на drweb.ru */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-logo { display: block; flex-shrink: 0; }
.brand-text { white-space: nowrap; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--accent); }
.ghost-btn {
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
}
.ghost-btn:hover { background: rgba(0, 168, 107, .08); }
.ghost-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.primary-btn:focus-visible,
a.primary-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.secondary-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav a:focus-visible,
.footer-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-btn:focus-visible,
.faq-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }

/* Hero — светлый блок, справа карточка статуса */
.hero {
  padding: 48px 0 64px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}
.lead {
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.primary-btn:hover { background: var(--accent-hover); }
.primary-btn.full { width: 100%; }
.primary-btn.small { padding: 10px 20px; font-size: 0.95rem; }
.primary-btn, .secondary-btn, .ghost-btn { min-height: 44px; }
.secondary-btn {
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.secondary-btn:hover { border-color: var(--accent); color: var(--accent); }
.secondary-btn.full { width: 100%; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Hero card — интерактивная (hover + прогресс при появлении) */
.hero-card {
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: default;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}
.hero-card .card-body .primary-btn {
  transition: transform .15s, box-shadow .15s;
}
.hero-card:hover .card-body .primary-btn {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0, 168, 107, .4);
}
.hero-card.hero-card--ready .progress-bar {
  width: 100%;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; opacity: 1; }
}
.card-body {
  padding: 24px;
}
.card-body h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--text); }
.card-body > p { margin: 0 0 16px; font-size: 0.9rem; color: var(--text-muted); }
.progress {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-elevated);
  overflow: hidden;
  margin-bottom: 20px;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 4px;
  transition: width .8s ease-out;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stats > div {
  text-align: center;
  padding: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.stat-number { display: block; font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }
.card-body .primary-btn { width: 100%; }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}

/* Trust strip — светлая полоска */
.trust {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Download — белая карточка */
.download {
  padding: 48px 0;
  background: var(--bg-alt);
}
.download-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.download h2 { margin: 0 0 12px; font-size: 1.75rem; color: var(--text); }
.download p { margin: 0 0 16px; color: var(--text-muted); }
.download-list { margin: 0 0 24px; padding: 0; list-style: none; }
.download-list li { margin-bottom: 6px; color: var(--text-muted); }
.download-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.download-card h3 { margin: 0 0 16px; font-size: 1.15rem; color: var(--text); }
.download-card .primary-btn { margin-bottom: 10px; }
.download-meta { display: flex; gap: 12px; margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); }
.download-support { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.download-support h4 { margin: 0 0 8px; font-size: 1rem; color: var(--text); }
.download-support p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.download-support a { color: var(--accent); text-decoration: none; }
.download-support a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .download-grid { grid-template-columns: 1fr; }
}

/* Sections common */
.section { padding: 48px 0; background: var(--bg); }
.section:nth-of-type(even) { background: var(--bg-alt); }
.section-head { margin-bottom: 32px; }
.section-head h2 { margin: 0 0 8px; font-size: 1.75rem; color: var(--text); }
.section-head p { margin: 0; color: var(--text-muted); }
.section-lead { max-width: 720px; color: var(--text-muted); margin: 0; }

/* Compat / tech */
.compat-box, .tech .compat-box {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.compat-box p { margin: 0; color: var(--text-muted); }
.compat h2, .tech h2 { margin: 0 0 16px; color: var(--text); }
.compat-extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.compat-extra {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.compat-extra h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--accent); }
.compat-extra p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* About */
.about .container { max-width: 720px; }
.about h2 { color: var(--text); }

/* Features — карточки на белом/сером фоне */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--text); }
.feature-card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* Card grids */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
/* Альтернативы — ровно 2 колонки, 4 карточки = 2×2, без пустых ячеек */
.section.alternatives .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) {
  .section.alternatives .card-grid-2 { grid-template-columns: 1fr; }
}
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.why-card, .audience-card, .tip-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card-icon { font-size: 1.75rem; margin-bottom: 12px; }
.why-card h3, .audience-card h3, .tip-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--text); }
.why-card p, .audience-card p, .tip-card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* Licenses */
.license-notice {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(0, 168, 107, .1);
  border: 1px solid rgba(0, 168, 107, .3);
  font-size: 1rem;
  color: var(--text);
}
.license-intro { margin: 0 0 20px; font-size: 0.95rem; color: var(--text-muted); }
.license-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.license-card--single { width: 100%; }
.license-card h3 { margin: 0 0 12px; font-size: 1.1rem; color: var(--text); }
.license-card p, .license-card ul { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.license-card ul { padding-left: 20px; }
.license-card li { margin-bottom: 6px; }

/* System requirements */
.sysreq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.sysreq-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.sysreq-card h3 { margin: 0 0 12px; font-size: 1.1rem; color: var(--text); }
.sysreq-card ul { margin: 0; padding-left: 20px; color: var(--text-muted); }
.sysreq-card li { margin-bottom: 6px; }

/* Screenshots */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.screen-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.screen-link {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.screen-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.screen-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.screen-card figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
@media (max-width: 600px) {
  .screens-grid { grid-template-columns: 1fr; }
}

/* Tabs */
.tabs-head {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  padding: 12px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 1rem;
  cursor: pointer;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.step {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--text); }
.step p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-top: 16px; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
}
.compare-table th { background: var(--bg-elevated); font-weight: 600; color: var(--text); }
.compare-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.compare-table td { color: var(--text-muted); }

/* Alternatives */
.alt-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.alt-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--text); }
.alt-card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* Pros/cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.pros-col h3, .cons-col h3 { margin: 0 0 12px; font-size: 1.2rem; }
.pros-col h3 { color: var(--accent); }
.cons-col ul, .pros-col ul { margin: 0; padding-left: 20px; color: var(--text-muted); }
.pros-col li, .cons-col li { margin-bottom: 8px; }

/* Reviews */
.review-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.review-card p { margin: 0 0 12px; font-size: 0.95rem; color: var(--text); }
.review-author { font-size: 0.85rem; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-group { border-bottom: 1px solid var(--border); }
.faq-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border: none;
  background: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}
.faq-item:hover { color: var(--accent); }
.faq-icon { font-size: 1.25rem; color: var(--accent); flex-shrink: 0; margin-left: 12px; }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease-out; }
.faq-panel p { margin: 0 0 16px; padding: 0 0 16px; color: var(--text-muted); font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact h2 { margin: 0 0 8px; color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: 0.9rem; color: var(--text); }
.contact-form input,
.contact-form textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  background: var(--bg-card);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 0.95rem;
  z-index: 1000;
  opacity: 0;
  box-shadow: var(--shadow-card);
  transition: transform .3s, opacity .3s;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Lightbox — скрыт по умолчанию, показывается только при открытии */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .85);
  padding: 40px;
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}
