/* Quiet Index — home. Scoped, token-first, no decorative gradients. */
.home-v2 {
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 0 48px;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
}
.home-v2 *,
.home-v2 *::before,
.home-v2 *::after { box-sizing: border-box; }
.home-v2 :where(h1, h2, h3, p, ol) { margin-top: 0; }
.home-v2 :where(a, button, input, select, summary):focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 7px; }
.home-v2 .home-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--color-brand-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}
.home-v2 .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
  gap: 36px;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--color-border);
}
.home-v2 .home-hero-copy { min-width: 0; }
.home-v2 .home-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--color-text-primary);
  font-size: clamp(36px, 4.8vw, 62px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .98;
  text-wrap: balance;
}
.home-v2 .home-hero p {
  max-width: 590px;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}
.home-v2 .home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 24px; }
.home-v2 .home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.home-v2 .home-button-primary { background: var(--color-brand); color: #fff; }
.home-v2 .home-button-primary:hover { background: var(--color-brand-strong); }
.home-v2 .home-button-outline { border-color: var(--color-border-strong); background: var(--color-surface); color: var(--color-text-primary); }
.home-v2 .home-button-outline:hover { border-color: var(--color-brand-border); color: var(--color-link); }
.home-v2 .home-hero-note { margin-top: 17px !important; color: var(--color-text-tertiary) !important; font-size: 11px !important; }
.home-v2 .home-steps {
  align-self: end;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: var(--color-surface);
}
.home-v2 .home-steps-label { display: block; margin-bottom: 9px; color: var(--color-text-tertiary); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-v2 .home-steps ol { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.home-v2 .home-steps li { display: flex; align-items: flex-start; gap: 10px; }
.home-v2 .home-steps li > span { padding-top: 1px; color: var(--color-brand-strong); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.home-v2 .home-steps li div { display: grid; gap: 1px; }
.home-v2 .home-steps strong { color: var(--color-text-primary); font-size: 12px; }
.home-v2 .home-steps small { color: var(--color-text-tertiary); font-size: 10px; line-height: 1.35; }
.home-v2 .home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-border);
}
.home-v2 .home-metrics > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 15px 17px; background: var(--color-surface); }
.home-v2 .home-metrics strong { color: var(--color-text-primary); font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.home-v2 .home-metrics span { color: var(--color-text-secondary); font-size: 11px; line-height: 1.35; }
.home-v2 .home-calendar-section { padding-top: 32px; }
.home-v2 .home-calendar-area[hidden] { display: none; }
.home-v2 .home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.home-v2 .home-section-head h2 { margin: 0 0 3px; color: var(--color-text-primary); font-size: 25px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }
.home-v2 .home-section-head p { max-width: 570px; margin: 0; color: var(--color-text-secondary); font-size: 12px; line-height: 1.45; }
.home-v2 .home-filter { display: flex; align-items: center; gap: 9px; flex: none; }
.home-v2 .home-filter label { color: var(--color-text-tertiary); font-size: 11px; font-weight: 700; white-space: nowrap; }
.home-v2 .home-filter select {
  min-height: 38px;
  padding: 7px 29px 7px 10px;
  border: 1px solid #8E8E93;
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font: inherit;
  font-size: 12px;
}
.home-v2 .home-calendar-shell { border-color: var(--color-border); border-radius: 14px; overflow: hidden; background: var(--color-surface); }
.home-v2 .home-calendar-shell .gcal-shell { border: 0; }
.home-v2 .home-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-top: 24px;
  padding: 46px 24px;
  border: 1px dashed var(--color-border-strong);
  border-radius: 17px;
  background: var(--color-surface);
  text-align: center;
}
.home-v2 .home-empty-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-brand-strong); font-size: 24px; }
.home-v2 .home-empty .home-kicker { margin-bottom: 0; color: var(--color-text-tertiary); }
.home-v2 .home-empty h2 { margin: 0; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.04em; }
.home-v2 .home-empty p { max-width: 510px; margin: 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.5; }
.home-v2 .home-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 9px; }
.home-v2 .home-empty-actions .home-button { flex: 0 0 auto; min-height: 44px; }
.home-v2 .home-calendar-shell .gcal-drawer-toggle { background: var(--color-brand) !important; color: #fff !important; }
.home-v2 .home-calendar-shell .gcal-drawer-toggle::after { content: ""; }
[data-theme="dark"] .home-v2 .home-filter select { border-color: #6E6E73; }
[data-theme="dark"] .home-v2 .home-hero,
[data-theme="dark"] .home-v2 .home-empty { border-color: var(--color-border); }
@media (max-width: 900px) {
  .home-v2 .home-hero { grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; }
  .home-v2 .home-hero h1 { font-size: clamp(34px, 5.5vw, 48px); }
}
@media (max-width: 700px) {
  .home-v2 { padding-bottom: 32px; }
  .home-v2 .home-hero { display: block; padding: 21px 0 26px; }
  .home-v2 .home-hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .home-v2 .home-hero p { font-size: 13px; }
  .home-v2 .home-hero-actions { margin-top: 19px; }
  .home-v2 .home-button { flex: 1 1 150px; }
  .home-v2 .home-steps { display: none; }
  .home-v2 .home-metrics { grid-template-columns: 1fr; margin-top: 17px; }
  .home-v2 .home-metrics > div { padding: 12px 15px; }
  .home-v2 .home-metrics strong { font-size: 19px; }
  .home-v2 .home-calendar-section { padding-top: 23px; }
  .home-v2 .home-section-head { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 12px; }
  .home-v2 .home-section-head h2 { font-size: 22px; }
  .home-v2 .home-filter { width: 100%; justify-content: space-between; }
  .home-v2 .home-filter select { flex: 1 1 auto; }
  .home-v2 .home-empty { margin-top: 17px; padding: 34px 17px; }
  .home-v2 .home-empty h2 { font-size: 25px; }
  .home-v2 .home-empty-actions { flex-direction: column; width: 100%; }
  .home-v2 .home-empty-actions .home-button { width: 100%; flex: 0 0 auto; }
}

.home-faq { margin-top: 28px; }
.home-faq h2 { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 18px; }
.home-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.home-faq-grid .panel { margin: 0; padding: 18px 20px; }
.home-faq-grid h3 { font-size: 16px; margin: 0 0 8px; }
.home-faq-grid p { margin: 0; line-height: 1.6; }

/* С чего начать: четыре намерения посетителя */
.home-start { margin: 26px 0 8px; }
.home-start h2 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #5f6b7a); }
.home-start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.home-start-item { display: block; border: 1px solid var(--line, #d7dfe8); border-radius: 10px; background: var(--card, #fff); padding: 14px 16px; color: inherit; text-decoration: none; }
.home-start-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.home-start-item span { color: var(--muted, #5f6b7a); font-size: 13.5px; line-height: 1.45; }
.home-start-item:hover { border-color: var(--accent, #2f6fed); }
.home-start-item:focus-visible { outline: 2px solid var(--accent, #2f6fed); outline-offset: 2px; }
@media (max-width: 720px) {
  .home-start-grid { grid-template-columns: 1fr; }
}
