/* ─── ШРИФТ BOUNDED ──────────────────────────────────────── */
@font-face {
  font-family: 'Bounded';
  src: url('fonts/Bounded-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bounded';
  src: url('fonts/Bounded-ExtraLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bounded';
  src: url('fonts/Bounded-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bounded';
  src: url('fonts/Bounded.ttf') format('truetype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* ══════════════════════════════════════════════════════════
   ПЕРЕМЕННЫЕ
══════════════════════════════════════════════════════════ */
:root {
  --blue:      #4C8DD0;
  --blue-dark: #217BD1;
  --black:     #000000;
  --white:     #ffffff;
  --gray:      #7e7e7e;
  --gray-lt:   #999999;
  --card-bg:   #f5f6f7;
  --card-alt:  rgba(69,82,99,0.05);
  --footer:    #222222;
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 20px;

  --bg-primary:    #ffffff;
  --bg-surface:    #f5f6f7;
  --text-primary:  #0f172a;
  --text-secondary:#334155;
  --text-muted:    #64748b;
  --text-dim:      #94a3b8;
  --border:        #e2e8f0;
  --border-light:  #f1f5f9;
  --accent:        #4C8DD0;
  --accent-light:  #4C8DD0;
  --accent-glow:   rgba(76,141,208,0.08);
  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;
}

/* ══════════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Bounded', sans-serif; }
p, li, span, a, input, button, label, td, th { font-family: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #c7c7c7; border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   СЕТКА
══════════════════════════════════════════════════════════ */
.page-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ══════════════════════════════════════════════════════════
   NAVBAR (index.html)
══════════════════════════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-text {
  font-family: 'Bounded', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo-text .blue { color: var(--blue); }
.logo-text .dark { color: var(--black); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 16px;
  font-weight: 400;
  transition: color .2s;
}
.nav-links a:hover { color: var(--black); }
.nav-actions { display: flex; gap: 16px; align-items: center; }

.btn-ghost {
  padding: 10px 28px;
  border: 1px solid var(--gray);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--gray);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Bounded', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--black); color: var(--black); }

.btn-primary {
  padding: 10px 28px;
  background: var(--blue);
  border: none;
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Bounded', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════
   HERO (index.html)
══════════════════════════════════════════════════════════ */
.hero-section {}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-top: 80px;
  padding-bottom: 60px;
}
.hero-left {
  flex: 0 0 696px;
  display: flex;
  flex-direction: column;
  gap: 46px;
  text-align: left;
}
.hero-heading-block { display: flex; flex-direction: column; gap: 20px; }
.hero-title {
  font-family: 'Bounded', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
}
.hero-title .accent { color: var(--blue); }
.hero-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.6;
  max-width: 622px;
}
.hero-controls { display: flex; flex-direction: column; gap: 20px; }

/* Чекбоксы */
.module-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.mod-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  gap: 7px;
  height: 31px;
  background: var(--card-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: #222;
  font-family: 'Bounded', sans-serif;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
  white-space: nowrap;
}
.mod-tab:hover { border-color: var(--blue); }
.mod-check {
  width: 15px; height: 15px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid #7E7E7E;
  background: transparent;
  transition: all .2s;
}
.mod-check svg { display: none; width: 9px; height: 9px; }
.mod-tab.active .mod-check { background: var(--blue); border-color: var(--blue); }
.mod-tab.active .mod-check svg { display: block; }

/* Форма */
.hero-form { display: flex; flex-direction: column; gap: 14px; }
.url-input-wrap {
  width: 100%; height: 50px;
  border: 1px solid #C8C8C8;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex; align-items: center;
  background: var(--white);
}
.url-input-wrap input {
  flex: 1; border: none; outline: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; font-weight: 500;
  color: var(--black); background: transparent;
}
.url-input-wrap input::placeholder { color: #C8C8C8; font-weight: 500; }
.btn-launch {
  width: 250px; height: 50px;
  background: var(--blue);
  border: none;
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 16px; font-weight: 500;
  font-family: 'Bounded', sans-serif;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-launch:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-launch--full { width: 100%; }

/* Макбук */
.hero-right {
  flex: 1;
  display: flex; align-items: center; justify-content: flex-end;
  min-width: 0;
}
.macbook-svg-wrap {
  width: 100%; max-width: 680px;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.18));
}
.macbook-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ══════════════════════════════════════════════════════════
   СЕКЦИИ (index.html)
══════════════════════════════════════════════════════════ */
.section-wrap { padding: 60px 0; }
.section-wrap + .section-wrap { padding-top: 0; }
.section-wrap.alt-bg { background: var(--card-bg); }
.section-wrap.no-top { padding-top: 0; }
.section-label {
  font-size: 24px; font-weight: 700;
  color: var(--gray);
  margin-bottom: 40px;
  font-family: 'Bounded', sans-serif;
}

/* Как работает */
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.step-card {
  background: var(--card-alt);
  border-radius: var(--radius-lg);
  padding: 24px; height: 260px;
  display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-end;
  transition: transform .25s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.07); }
.step-num { font-size: 24px; font-weight: 700; color: #999; font-family: 'Bounded', sans-serif; }
.step-body { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.step-title { font-size: 22px; font-weight: 600; line-height: 1.1; font-family: 'Bounded', sans-serif; }
.step-title .accent { color: var(--blue); }
.step-title .dark   { color: var(--black); }
.step-desc { font-size: 14px; font-weight: 500; color: var(--gray); line-height: 1.5; }

/* Что получите */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4,260px);
  gap: 32px;
}
.benefit-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex; align-items: center; gap: 40px;
  transition: transform .25s;
}
.benefit-card:hover { transform: translateY(-3px); }
.benefit-num { font-size: 40px; font-weight: 700; color: #999; font-family: 'Bounded', sans-serif; flex-shrink: 0; }
.benefit-body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.benefit-title { font-size: 22px; font-weight: 700; font-family: 'Bounded', sans-serif; line-height: 1.15; }
.benefit-title .accent { color: var(--blue); }
.benefit-title .dark   { color: var(--black); }
.benefit-desc { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 500; color: #999; line-height: 1.6; max-width: 400px; }
.benefit-photo {
  height: 260px;
  border-radius: var(--radius-lg);
  background-size: cover; background-position: center top;
  background-repeat: no-repeat; background-color: var(--card-bg);
}

/* CTA */
.cta-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.heading { font-family: 'Bounded', sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.cta-heading { font-size: 40px; margin-bottom: 20px; }
.cta-black { color: var(--black); }
.cta-blue  { color: var(--blue); }
.cta-sub { font-size: 16px; color: var(--gray); margin-bottom: 40px; }
.cta-form { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 600px; margin: 0 auto; }
.cta-input-wrap {
  width: 100%; height: 50px;
  border: 1px solid #ddd; border-radius: var(--radius-md);
  padding: 10px 16px; display: flex; align-items: center; background: var(--white);
}
.cta-input-wrap input { flex: 1; border: none; outline: none; font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 500; color: var(--black); background: transparent; }
.cta-input-wrap input::placeholder { color: #c7c7c7; }

/* Footer */
.footer-wrap { background: var(--footer); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; padding-top: 80px; padding-bottom: 0; }
.footer-logo { font-size: 36px; font-weight: 800; font-family: 'Bounded', sans-serif; text-transform: uppercase; letter-spacing: -1px; }
.footer-logo .dark   { color: var(--white); }
.footer-logo .accent { color: var(--blue); }
.footer-cols { display: flex; gap: 80px; flex: 1; justify-content: flex-end; }
.footer-col  { display: flex; flex-direction: column; gap: 20px; }
.footer-col-title { font-size: 20px; font-weight: 600; color: var(--gray); font-family: 'Bounded', sans-serif; }
.footer-links { display: flex; flex-direction: column; gap: 14px; }
.footer-links a { font-size: 15px; font-weight: 500; color: var(--white); text-decoration: none; transition: color .2s; font-family: 'Montserrat', sans-serif; }
.footer-links a:hover { color: var(--blue); }
.footer-links span { font-size: 15px; font-weight: 500; color: var(--white); font-family: 'Montserrat', sans-serif; }
.footer-bottom { padding-top: 24px; padding-bottom: 32px; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom span { font-size: 12px; color: var(--gray); font-family: 'Bounded', sans-serif; }

/* Как мы работаем с данными */
.data-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.data-card { background: var(--card-alt); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 24px; transition: transform .25s, box-shadow .25s; }
.data-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.07); }
.data-icon { width: 45px; height: 45px; background: var(--blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 0; }
.data-body { display: flex; flex-direction: column; gap: 20px; }
.data-title { font-family: 'Bounded', sans-serif; font-weight: 600; font-size: 22px; color: var(--black); line-height: 1.1; }
.data-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.data-list li { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 500; color: var(--gray); line-height: 1.5; padding-left: 26px; position: relative; }
.data-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 12px; background-image: url("data:image/svg+xml,%3Csvg width='15' height='12' viewBox='0 0 15 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 1.5L4.5506 10.5L1.5 7.43215' stroke='%234C8DD0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; }

/* Для кого */
.audience-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.audience-card { background: var(--card-alt); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 280px; transition: transform .25s, box-shadow .25s; }
.audience-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.07); }
.audience-icon { width: 45px; height: 45px; background: var(--blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 0; }
.audience-title { font-family: 'Bounded', sans-serif; font-weight: 600; font-size: 22px; color: var(--blue); line-height: 1.2; }
.audience-desc { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 500; color: var(--gray); line-height: 1.55; flex: 1; }

/* Когда не подойдёт */
.limits-card { background: var(--card-alt); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 0; }
.limits-row { display: flex; align-items: flex-start; gap: 20px; padding: 24px 0; border-bottom: 1px solid #E5E5E5; }
.limits-row:last-child { border-bottom: none; }
.limits-icon { width: 30px; height: 30px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 0; margin-top: 2px; }
.limits-body { display: flex; flex-direction: column; gap: 10px; }
.limits-title { font-family: 'Bounded', sans-serif; font-weight: 600; font-size: 20px; color: var(--black); line-height: 1.1; }
.limits-desc { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 500; color: var(--gray-lt); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════
   HEADER AUDIT.HTML
══════════════════════════════════════════════════════════ */
.header {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}

/* ══════════════════════════════════════════════════════════
   MAIN AUDIT.HTML
══════════════════════════════════════════════════════════ */
.main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px 80px;
}

/* ── Кнопка «Запущено» ── */
#startBtn.launched,
.btn-launch.launched {
  background: #999 !important;
  cursor: default; transform: none !important; pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   SCORE OVERVIEW
══════════════════════════════════════════════════════════ */
.score-overview-panel {
  display: flex; align-items: stretch;
  padding: 32px 0; border-bottom: 1px solid #e2e8f0; margin-bottom: 8px;
}
.score-overview-left {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding-right: 40px; min-width: 160px;
}
.score-overview-left .ring-label { font-family: 'Bounded', sans-serif; font-size: 13px; font-weight: 500; color: #64748b; }
.score-overview-divider { width: 1px; background: #e2e8f0; flex-shrink: 0; }
.score-overview-right {
  flex: 1; display: grid;
  grid-template-columns: repeat(3,1fr); grid-auto-rows: 1fr;
}
.score-metric-cell {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px;
  border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
}
.score-metric-cell:nth-child(3n) { border-right: none; }
.score-metric-cell:nth-last-child(-n+3) { border-bottom: none; }
.score-metric-info .metric-name { font-family: 'Bounded', sans-serif; font-size: 12px; font-weight: 500; color: #64748b; margin-bottom: 4px; }
.score-metric-info .metric-value { font-family: 'Bounded', sans-serif; font-size: 20px; font-weight: 700; color: #0f172a; line-height: 1; }
.score-metric-info .metric-value span { font-size: 12px; color: #94a3b8; font-weight: 400; }

/* ══════════════════════════════════════════════════════════
   RESULTS
══════════════════════════════════════════════════════════ */
.results-section {
  animation: fadeUp 0.5s ease-out;
  max-width: 1440px; margin: 0 auto;
  padding: 60px 40px; width: 100%;
}
.results-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.results-header h2 { font-family: 'Bounded', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; line-height: 1.1; }
.results-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; font-size: 0.85rem; color: var(--text-muted); }
.results-meta a { color: var(--accent-light); text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   MODULES TITLE
══════════════════════════════════════════════════════════ */
.modules-title {
  font-family: 'Bounded', sans-serif;
  font-size: 24px; font-weight: 700;
  color: #999;
  text-align: left;
  margin-bottom: 40px; margin-top: 60px;
}

/* ══════════════════════════════════════════════════════════
   CWV
══════════════════════════════════════════════════════════ */
.cwv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 0.75rem; margin-bottom: 2rem;
}
.cwv-card { background: rgba(70,83,99,0.05); border-radius: 20px; padding: 25px; text-align: left; }
.cwv-card .label { font-family: 'Bounded', sans-serif; font-size: 16px; color: #595959; font-weight: 566; margin-bottom: 10px; }
.cwv-card .value { font-family: 'Bounded', sans-serif; font-size: 24px; font-weight: 566; margin-bottom: 8px; }
.cwv-card .unit { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }
.cwv-bar { height: 4px; border-radius: 2px; margin-top: 0.5rem; }
.cwv-hint { font-size: 10px; color: #94a3b8; margin-top: 6px; line-height: 1.4; }
.cwv-good { color: var(--success); }
.cwv-warn { color: var(--warning); }
.cwv-bad  { color: var(--danger); }

/* ══════════════════════════════════════════════════════════
   SCORE RING
══════════════════════════════════════════════════════════ */
.score-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.score-ring-wrap svg { transform: rotate(-90deg); }
.score-value { font-family: 'Montserrat', sans-serif; font-weight: 700; fill: var(--text-primary); }

/* ══════════════════════════════════════════════════════════
   DETAIL SECTIONS
══════════════════════════════════════════════════════════ */
.detail-section { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 0.75rem; background: var(--bg-primary); box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.detail-header { padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; cursor: pointer; transition: background 0.2s; }
.detail-header:hover { background: var(--bg-surface); }
.detail-header .name { font-family: 'Bounded', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.detail-header .tag { font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 4px; background: var(--bg-surface); color: var(--text-muted); font-family: 'Bounded', sans-serif; }
.detail-header .arrow { margin-left: auto; color: var(--text-muted); transition: transform 0.2s; }
.detail-header.open .arrow { transform: rotate(90deg); }
.detail-body { padding: 0 1.25rem 1rem; display: none; }
.detail-body.open { display: block; }

/* ══════════════════════════════════════════════════════════
   КНОПКИ ДЕЙСТВИЙ
══════════════════════════════════════════════════════════ */
.action-btns { display: flex; gap: 12px; margin-top: 40px; padding-top: 32px; border-top: 1px solid #e2e8f0; }
.share-btn {
  background: rgba(76,141,208,0.08); border: 1px solid rgba(76,141,208,0.25);
  color: var(--accent); padding: 0.5rem 1rem; border-radius: 8px;
  font-family: 'Bounded', sans-serif; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: all 0.2s;
}
.share-btn:hover { background: var(--accent); color: white; }
.pdf-btn {
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-primary); padding: 0.5rem 1rem; border-radius: 8px;
  font-family: 'Bounded', sans-serif; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: all 0.2s;
}

/* ══════════════════════════════════════════════════════════
   PROGRESS
══════════════════════════════════════════════════════════ */
.progress-section { max-width: 1440px; margin: 0 auto; padding: 60px 40px; animation: fadeUp 0.4s ease-out; }
.progress-card { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.progress-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.progress-header h3 { font-family: 'Bounded', sans-serif; font-weight: 700; color: var(--text-primary); }
.progress-url { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); }
.progress-bar { height: 6px; background: var(--bg-surface); border-radius: 3px; overflow: hidden; margin-bottom: 1.5rem; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.5s ease; }
.spinner { width: 16px; height: 16px; border: 2px solid #e2e4e7; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* ══════════════════════════════════════════════════════════
   MARKETING
══════════════════════════════════════════════════════════ */
.marketing-section { background: #f5f6f7; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; margin-bottom: 3rem; }
.marketing-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; border-radius: 999px; background: var(--accent); color: white; font-family: 'Bounded', sans-serif; font-size: 0.75rem; margin-bottom: 1.5rem; font-weight: 700; }
.marketing-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.marketing-score-card { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem; text-align: center; }
.marketing-score-num { font-family: 'Bounded', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 2px; }
.marketing-score-label { font-size: 0.65rem; color: var(--text-muted); font-family: 'Bounded', sans-serif; font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   AI CONTENT
══════════════════════════════════════════════════════════ */
.ai-content { line-height: 1.8; color: var(--text-primary); font-family: 'Montserrat', sans-serif; }
.ai-content h3 { color: var(--accent); margin: 1.5rem 0 0.5rem; font-family: 'Bounded', sans-serif; font-size: 1rem; font-weight: 700; border-left: 3px solid var(--accent); padding-left: 10px; }
.ai-content li { margin-bottom: 0.6rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════
   MISC
══════════════════════════════════════════════════════════ */
.error-banner { max-width: 700px; margin: 0 auto 2rem; padding: 1rem; border-radius: 12px; background: rgba(231,76,60,0.06); border: 1px solid rgba(231,76,60,0.2); color: var(--danger); display: flex; align-items: center; gap: 0.75rem; }
.check-hint { font-size: 10px; color: #94a3b8; margin-top: 2px; line-height: 1.3; }
.fz153-grid { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 8px; }
.raw-toggle { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-dim); cursor: pointer; margin-top: 0.5rem; }
.raw-data { margin-top: 0.5rem; padding: 0.75rem; background: var(--bg-surface); border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); overflow-x: auto; max-height: 300px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; border: 1px solid var(--border); }
.pages-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; margin-top: 0.5rem; }
.pages-table th { text-align: left; padding: 0.5rem 0.4rem; font-family: 'Bounded', sans-serif; font-size: 0.65rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border); }
.pages-table td { padding: 0.4rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); font-family: 'Montserrat', sans-serif; font-size: 0.8rem; }
.pages-table td:first-child { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pages-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }

/* AI Chat */
.ai-chat-block { background: #222; border-radius: 20px; padding: 32px 40px; margin-top: 40px; }
.ai-chat-logo { font-family: 'Bounded', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.ai-chat-logo .dark { color: #fff; }
.ai-chat-logo .blue { color: #4C8DD0; }
.ai-chat-form { display: flex; gap: 10px; align-items: center; }
.ai-chat-input { flex: 1; height: 46px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 0 16px; color: #fff; font-family: 'Montserrat', sans-serif; font-size: 14px; outline: none; }
.ai-chat-input::placeholder { color: rgba(255,255,255,0.35); }
.ai-chat-btn { height: 46px; padding: 0 24px; background: #4C8DD0; border: none; border-radius: 10px; color: #fff; font-family: 'Bounded', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; }
.ai-chat-messages { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; max-height: 400px; overflow-y: auto; }
.ai-chat-msg { padding: 12px 16px; border-radius: 12px; font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 1.6; }
.ai-chat-msg.user      { background: rgba(76,141,208,0.2); color: #fff; align-self: flex-end; max-width: 80%; }
.ai-chat-msg.assistant { background: rgba(255,255,255,0.06); color: #e0e0e0; align-self: flex-start; max-width: 90%; }

/* ══════════════════════════════════════════════════════════
   АНИМАЦИИ
══════════════════════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.hero-left > * { animation: fadeUp .6s ease both; }
.hero-left > *:nth-child(1) { animation-delay: .05s; }
.hero-left > *:nth-child(2) { animation-delay: .15s; }
.hero-left > *:nth-child(3) { animation-delay: .25s; }
.hero-right { animation: fadeUp .8s .2s ease both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ══════════════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════════════ */
@media print {
  .header, .hero, .action-btns, .share-btn, .raw-toggle, .arrow, .spinner { display: none !important; }
  body { background: white !important; color: black !important; }
  .score-value { fill: #222 !important; }
  .detail-body { display: block !important; }
}

/* ══════════════════════════════════════════════════════════
   АДАПТИВ — 1200px (планшет landscape)
══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .page-container, .nav-inner, .header-inner, .main { padding-left: 40px; padding-right: 40px; }
  .hero { flex-direction: column; gap: 40px; padding-top: 60px; padding-bottom: 40px; }
  .hero-left { flex: none; width: 100%; }
  .hero-right { flex: none; width: 100%; max-width: 560px; margin: 0 auto; }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .benefits-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .data-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: repeat(2,1fr); }
  .score-overview-right { grid-template-columns: repeat(2,1fr); }
  .cwv-grid { grid-template-columns: repeat(3,1fr); }
}

/* ══════════════════════════════════════════════════════════
   АДАПТИВ — 900px (планшет portrait)
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .page-container, .nav-inner, .header-inner, .main { padding-left: 28px; padding-right: 28px; }
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 14px; }
  .hero { gap: 32px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .btn-launch { width: 100%; }
  .benefit-card { flex-direction: column; height: auto; padding: 28px; }
  .audience-card { min-height: auto; padding: 24px; }
  .footer-inner { flex-direction: column; gap: 40px; padding-top: 60px; }
  .footer-cols { flex-wrap: wrap; gap: 40px; }
  .results-section { padding: 40px 28px; }
  .progress-section { padding: 40px 28px; }
  .score-overview-panel { flex-direction: column; gap: 24px; }
  .score-overview-left { padding-right: 0; padding-bottom: 24px; border-bottom: 1px solid #e2e8f0; }
  .score-overview-divider { display: none; }
  .cwv-grid { grid-template-columns: repeat(2,1fr); }
}

/* ══════════════════════════════════════════════════════════
   АДАПТИВ — 640px (мобильный)
══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .page-container, .nav-inner, .header-inner, .main { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; }
  .nav-actions { gap: 8px; }
  .btn-ghost { padding: 8px 16px; font-size: 11px; }
  .btn-primary { padding: 8px 16px; font-size: 11px; }
  .hero { padding-top: 32px; padding-bottom: 24px; gap: 20px; }
  .hero-title { font-size: 28px; line-height: 1.15; }
  .hero-sub { font-size: 14px; }
  .hero-left { gap: 20px; }
  .hero-right { display: none; }
  .module-tabs { gap: 8px; }
  .mod-tab { font-size: 11px; padding: 6px 8px; height: auto; min-height: 32px; }
  .url-input-wrap { height: 46px; }
  .url-input-wrap input { font-size: 14px; }
  .btn-launch { width: 100%; height: 46px; font-size: 14px; }
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .step-card { height: auto; min-height: 160px; padding: 20px; }
  .step-title { font-size: 18px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card { padding: 20px; gap: 16px; }
  .benefit-photo { display: none; }
  .benefit-title { font-size: 18px; }
  .benefit-num { font-size: 32px; }
  .data-grid { grid-template-columns: 1fr; gap: 12px; }
  .data-card { padding: 20px; gap: 16px; }
  .data-title { font-size: 18px; }
  .audience-grid { grid-template-columns: 1fr; gap: 12px; }
  .audience-card { padding: 20px; }
  .audience-title { font-size: 18px; }
  .audience-desc { font-size: 13px; }
  .limits-row { gap: 12px; padding: 16px 0; }
  .limits-title { font-size: 16px; }
  .limits-desc { font-size: 13px; }
  .section-label { font-size: 20px; margin-bottom: 20px; }
  .section-wrap { padding: 32px 0; }
  .cta-heading { font-size: 26px; }
  .cta-sub { font-size: 13px; margin-bottom: 20px; }
  .footer-logo { font-size: 26px; }
  .footer-cols { flex-direction: column; gap: 28px; }
  .footer-col-title { font-size: 15px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding-bottom: 20px; margin-top: 24px; }
  .footer-bottom span { font-size: 10px; }
  .results-section { padding: 20px 16px; }
  .progress-section { padding: 20px 16px; }
  .results-header { flex-direction: column; gap: 6px; }
  .results-header h2 { font-size: 1.4rem; }
  .results-meta { flex-wrap: wrap; font-size: 0.72rem; }
  .results-meta a { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
  .modules-title { font-size: 16px; margin-top: 32px; margin-bottom: 16px; }
  .score-overview-panel { flex-direction: column; padding: 16px 0; }
  .score-overview-left { padding-right: 0; padding-bottom: 16px; min-width: unset; }
  .score-overview-right { grid-template-columns: 1fr 1fr; margin-top: 8px; }
  .score-metric-cell { padding: 10px 12px; gap: 8px; }
  .score-metric-cell:nth-child(2n) { border-right: none; }
  .score-metric-info .metric-name { font-size: 10px; }
  .score-metric-info .metric-value { font-size: 15px; }
  .cwv-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cwv-card { padding: 14px; }
  .cwv-card .label { font-size: 11px; }
  .cwv-card .value { font-size: 18px; }
  .marketing-section { padding: 12px; }
  .marketing-scores { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .marketing-score-num { font-size: 1.1rem; }
  .marketing-score-label { font-size: 0.55rem; }
  .action-btns { flex-direction: column; gap: 8px; margin-top: 24px; padding-top: 20px; }
  .share-btn, .pdf-btn { width: 100%; justify-content: center; min-height: 44px; }
  .progress-card { padding: 14px; }
  .progress-header h3 { font-size: 13px; }
  .progress-url { display: none; }
  .detail-header { padding: 10px 12px; }
  .detail-header .name { font-size: 0.75rem; }
  .error-banner { padding: 12px; font-size: 12px; }
  .ai-chat-block { padding: 18px 14px; }
  .ai-chat-form { flex-direction: column; }
  .ai-chat-input, .ai-chat-btn { width: 100%; min-height: 44px; }
  button, .btn-primary, .btn-ghost, .btn-launch, .share-btn, .pdf-btn { min-height: 44px; }
  .mod-tab { min-height: 32px; }
}
/* ══════════════════════════════════════════════════════════
   ФИКС НАВИГАЦИИ НА МОБИЛКЕ
   Добавить в самый конец styles.css
   (заменяет предыдущий блок с nav если уже добавляли)
══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {

  /* Nav — фиксированная высота, не растягивается */
  .nav-inner {
    height: 56px !important;
    padding: 0 16px !important;
    gap: 0 !important;
  }

  /* Логотип — в одну строку, не переносится */
  .logo-text {
    font-size: 18px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .nav-actions {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  /* «Войти» — компактная, возвращаем */
  .nav-actions .btn-ghost {
    display: flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    height: 32px !important;
    border-radius: 10px !important;
    min-height: unset !important;
    white-space: nowrap !important;
  }

  /* «Регистрация» — синяя, такого же размера */
  .nav-actions .btn-primary {
    display: flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    height: 32px !important;
    border-radius: 10px !important;
    min-height: unset !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 400px) {
  .nav-inner { padding: 0 12px !important; }
  .logo-text { font-size: 16px !important; }
  .nav-actions { gap: 5px !important; }
  .nav-actions .btn-ghost,
  .nav-actions .btn-primary {
    padding: 5px 10px !important;
    font-size: 10px !important;
    height: 30px !important;
  }
}

/* ══════════════════════════════
   ФИКС: отступ сверху CTA секции
   Добавить в конец styles.css
══════════════════════════════ */

.section-wrap.alt-bg {
  padding-top: 80px;
}

@media (max-width: 640px) {
  .section-wrap.alt-bg {
    padding-top: 48px;
  }
}
/* ══════════════════════════════════════════════════════════
   CONSULTATION FORM (audit.html)
══════════════════════════════════════════════════════ */
.consultation-section {
    padding: 80px 0;
    background: var(--card-bg);
    margin-top: 60px;
    border-radius: 30px;
}

.consultation-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.consultation-heading {
    font-family: 'Bounded', sans-serif;
    font-weight: 700;
    font-size: 40px;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.consultation-black {
    color: var(--black);
}

.consultation-blue {
    color: var(--blue);
}

.consultation-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 40px;
    font-weight: 400;
}

.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.consultation-input-group {
    width: 100%;
    height: 50px;
    border: 1px solid #C8C8C8;
    border-radius: var(--radius-md);
    padding: 0 16px;
    background: var(--white);
    display: flex;
    align-items: center;
}

.consultation-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    background: transparent;
}

.consultation-input::placeholder {
    color: #C8C8C8;
    font-weight: 500;
}

.btn-consultation {
    width: 100%;
    height: 50px;
    background: var(--blue);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    font-family: 'Bounded', sans-serif;
    cursor: pointer;
    transition: background .2s, transform .15s;
    margin-top: 10px;
}

.btn-consultation:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

/* Адаптив для формы консультации */
@media (max-width: 640px) {
    .consultation-section {
        padding: 48px 0;
        margin-top: 40px;
    }
    
    .consultation-heading {
        font-size: 28px;
    }
    
    .consultation-sub {
        font-size: 14px;
        margin-bottom: 28px;
    }
    
    .consultation-input-group,
    .btn-consultation {
        height: 46px;
    }
    
    .consultation-input {
        font-size: 14px;
    }
}

.logo-badge { font-family:'Montserrat',sans-serif; font-size:10px; font-weight:600; color:#94a3b8; background:rgba(148,163,184,0.1); border:1px solid rgba(148,163,184,0.2); border-radius:4px; padding:2px 6px; vertical-align:middle; margin-left:6px; display:inline-block; position:relative; top:-1px; }