/* Мяу — 1:1 с design-explore/mockups/myau/check.html. Без эмодзи. */
:root {
  --bg: #FDF8F3;
  --card: #FFFFFF;
  --cat-orange: #F4A261;
  --cat-dark: #E76F51;
  --green: #22C55E;
  --blue: #38BDF8;
  --text: #1C1917;
  --muted: #78716C;
  --coral: #F87171;
  --shadow: 0 8px 30px rgba(28, 25, 23, 0.07);
  --radius: 20px;
}

html.dark {
  --bg: #1C1917;
  --card: #292524;
  --text: #FAFAF9;
  --muted: #A8A29E;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body.skin-myau {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
  padding: 20px 16px 60px;
  line-height: 1.5;
}

body.skin-myau .page { max-width: 900px; margin: 0 auto; }

/* Header as mockup */
body.skin-myau .top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
body.skin-myau .top a { color: inherit; text-decoration: none; }
body.skin-myau .top strong { color: var(--text); }
.logo-dot {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* Hero + cat */
body.skin-myau .hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 28px;
}
body.skin-myau .hero-myau-row {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}
body.skin-myau .hero-myau-row .vote-block {
  flex: 1 1 280px;
  min-width: 240px;
  width: auto;
}
.vote-fold-viz {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.vote-fold-viz .vote-block__buttons {
  flex: 1 1 auto;
  min-width: 0;
}
.chart-wrap--fold {
  width: 88px;
  height: 88px;
}
.chart-wrap--fold::after { inset: 18px; }
.chart-wrap--fold .vote-center { font-size: 15px; }
.chart-wrap.is-empty {
  background: conic-gradient(#D6D3D1 0 100%);
}
.vote-block__pulse:empty { display: none; }

/* Пузырь над котом, не поверх карточки голосов */
body.skin-myau .hero-myau-row .cat-container { margin-top: 40px; }
body.skin-myau .hero-myau-row .speech {
  top: -36px;
  left: 8px;
  right: auto;
  width: max-content;
  max-width: 168px;
  transform: none;
  animation: bubble-fade 0.4s ease;
}
body.skin-myau .hero-myau-row .speech::after {
  left: 28px;
  bottom: -8px;
  border: 8px solid transparent;
  border-top-color: var(--card);
  border-right-color: transparent;
  border-left-color: transparent;
}
@keyframes bubble-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.skin-myau .verdict-fold {
  width: 100%;
  margin-top: 4px;
}
.cat-side, .myau-side { position: relative; flex-shrink: 0; }
.cat-container {
  position: relative;
  width: 220px;
  height: 240px;
  animation: cat-float 3.8s ease-in-out infinite;
}
@keyframes cat-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.cat-svg {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(244, 162, 97, 0.25));
  transition: transform 0.35s ease;
}
.cat-container.react .cat-svg { animation: cat-react 0.7s ease; }
@keyframes cat-react {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-6deg); }
  50% { transform: scale(1.08) rotate(4deg); }
  75% { transform: scale(1.05) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.tail {
  transform-origin: 148px 148px;
  animation: tail-wag 2.4s ease-in-out infinite;
}
@keyframes tail-wag {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(14deg); }
}
.speech {
  position: absolute;
  top: 8px;
  left: 175px;
  background: var(--card);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 20px 20px 20px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  font-size: 15px;
  font-weight: 500;
  max-width: 180px;
  z-index: 5;
  margin: 0;
  line-height: 1.35;
  animation: bubble-in 0.4s ease;
}
.speech::after {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 12px;
  width: 0; height: 0;
  border: 8px solid transparent;
  border-right-color: var(--card);
  border-left: 0;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.status-side { flex: 1; min-width: 260px; }
body.skin-myau h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.verdict-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}
.verdict-card.ok { border-left: 5px solid var(--green); }
.verdict-card.partial { border-left: 5px solid #FBBF24; }
.verdict-card.down { border-left: 5px solid var(--coral); }

.status-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: breathe 2.2s ease-in-out infinite;
}
.status-dot.red { background: var(--coral); }
.status-dot.yellow { background: #FBBF24; }
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  50% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
.verdict-text strong { display: block; font-size: 16px; }
.verdict-text .meta { font-size: 13px; color: var(--muted); }
.latency-big {
  margin-left: auto;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.locations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.loc-card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.loc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.1);
}
.loc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.loc-latency { font-size: 13px; color: var(--muted); }
.loc-latency .num { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.loc-card.down .status-dot { background: var(--coral); }
.loc-card.down .num { color: var(--coral); }

.mid-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 16px;
  margin-bottom: 18px;
}
body.skin-myau .card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 0;
}
body.skin-myau .card h3 {
  font-size: 15px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vote-layout { display: flex; align-items: center; gap: 20px; }
.chart-wrap {
  width: 110px;
  height: 110px;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(#22C55E var(--vote-pct, 0%), #F87171 0);
  flex-shrink: 0;
}
.chart-wrap::after {
  content: "";
  position: absolute;
  inset: 22px;
  background: var(--card);
  border-radius: 50%;
}
.vote-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 18px;
  font-weight: 700;
}
.vote-center span { font-size: 11px; font-weight: 500; color: var(--muted); }
.vote-btns { display: flex; flex-direction: column; gap: 8px; flex: 1; }
body.skin-myau .vote-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
body.skin-myau .vote-btn--works,
body.skin-myau .vote-btn.works { background: #DCFCE7; color: #166534; }
body.skin-myau .vote-btn--broken,
body.skin-myau .vote-btn.broken { background: #FEE2E2; color: #991B1B; }
body.skin-myau .vote-btn:hover { transform: translateY(-1px); }
body.skin-myau .vote-btn:active { transform: scale(0.97); }
.vote-count, body.skin-myau .vote-btn__count {
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 12px;
}

.chart-container { min-height: 48px; }
.chart-container .check-spark svg { width: 100%; height: 48px; }

.uptime-bar {
  display: flex;
  gap: 2px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.uptime-seg { flex: 1; background: var(--green); transition: filter 0.2s; }
.uptime-seg.warn { background: #FBBF24; }
.uptime-seg.down { background: var(--coral); }
.uptime-seg:hover { filter: brightness(1.15); }
.uptime-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}
body.skin-myau .btn,
body.skin-myau .actions a.btn {
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #F5F5F4;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
html.dark body.skin-myau .btn:not(.btn-primary):not(.btn--primary) { background: #44403C; color: var(--text); }
body.skin-myau .btn:hover { transform: translateY(-2px); }
body.skin-myau .btn:active { transform: scale(0.97); }
body.skin-myau .btn-primary,
body.skin-myau .btn--primary {
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: white;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.3);
}
body.skin-myau .btn-primary:hover,
body.skin-myau .btn--primary:hover {
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.4);
}

.info { font-size: 13px; color: var(--muted); line-height: 1.6; }
body.skin-myau .faq-card + .faq-card { margin-top: 10px; }
body.skin-myau .faq-card h3 { font-size: 15px; margin: 0 0 6px; }
body.skin-myau .faq-card p { margin: 0; font-size: 14px; color: var(--muted); }
body.skin-myau .myau-foot {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}
body.skin-myau .myau-foot a { color: var(--cat-dark); }

@media (max-width: 700px) {
  /* кот и голоса в один ряд, один экран — не столбик */
  body.skin-myau { padding: 8px 12px 40px; }
  body.skin-myau .hero {
    flex-direction: column;
    text-align: left;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px !important;
  }
  body.skin-myau .hero-myau-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  body.skin-myau .hero-myau-row .vote-block,
  body.skin-myau .hero-myau-row .vote-block--fold {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 10px 10px 12px;
    gap: 8px;
  }
  body.skin-myau .h1-moved { display: none; }
  body.skin-myau .vote-block--compact .vote-block__meta,
  body.skin-myau .vote-block--compact .vote-block__pulse {
    display: none !important;
  }
  body.skin-myau .vote-block--compact .vote-block__title {
    font-size: 13px;
    min-width: 0;
    line-height: 1.25;
  }
  body.skin-myau .vote-block--compact .vote-block__head {
    gap: 4px 8px;
  }
  body.skin-myau .vote-fold-viz { gap: 8px; }
  body.skin-myau .chart-wrap--fold {
    width: 56px;
    height: 56px;
  }
  body.skin-myau .chart-wrap--fold::after { inset: 12px; }
  body.skin-myau .chart-wrap--fold .vote-center { font-size: 12px; }
  body.skin-myau .chart-wrap--fold .vote-center span { display: none; }
  body.skin-myau .vote-block--compact .vote-block__buttons {
    flex-direction: column;
    gap: 6px;
  }
  body.skin-myau .vote-block--compact .vote-btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
    flex: 1 1 auto;
  }
  .cat-side, .myau-side { margin: 0; flex: 0 0 auto; }
  body.skin-myau .hero-myau-row .cat-container,
  .cat-container {
    width: 118px;
    height: 128px;
    margin-top: 38px;
  }
  .cat-svg { width: 110px; }
  body.skin-myau .hero-myau-row .speech,
  .speech {
    left: 0;
    top: -38px;
    transform: none;
    max-width: 118px;
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 12px 12px 12px 4px;
  }
  body.skin-myau .hero-myau-row .speech::after,
  .speech::after {
    left: 22px; bottom: -6px;
    border: 6px solid transparent;
    border-top-color: var(--card);
    border-right-color: transparent;
    border-left-color: transparent;
  }
  .status-side { text-align: left; width: 100%; }
  .locations { grid-template-columns: 1fr; }
  .mid-row { grid-template-columns: 1fr; }
  .latency-big { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-container, .tail, .logo-dot, .status-dot, .speech,
  .cat-container.react .cat-svg,
  body.skin-myau .hero-myau-row .speech {
    animation: none !important;
  }
  .loc-card:hover, body.skin-myau .btn:hover { transform: none; }
}

/* ── Глобальные перекрытия: style.css + body.skin-myau → мокап Мяу ──
   Каскад ниже style.css. Hero/cat/keyframes не трогать. */
body.skin-myau {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg, #FDF8F3);
  color: var(--text, #1C1917);
}

/* .topbar как .top: без блюра и металлической пластины */
body.skin-myau .topbar {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-bottom: none;
  box-shadow: none;
  color: var(--muted);
  font-size: 14px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
body.skin-myau .topbar a { color: inherit; text-decoration: none; }
body.skin-myau .topbar .brand { color: var(--text); }
body.skin-myau .topbar .brand strong,
body.skin-myau .brand__plate {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-shadow: none;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
html.dark body.skin-myau .brand__plate {
  background: none;
  box-shadow: none;
  text-shadow: none;
  color: var(--text);
}
body.skin-myau .brand__idx {
  font-size: inherit;
  letter-spacing: 0;
  opacity: 0.55;
  margin-left: 0.25em;
  vertical-align: 0;
  text-transform: none;
}

/* CTA: pill orange */
body.skin-myau .btn,
body.skin-myau a.btn {
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #F5F5F4;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
html.dark body.skin-myau .btn:not(.btn-primary):not(.btn--primary) {
  background: #44403C;
  color: var(--text);
}
body.skin-myau .btn:hover { transform: translateY(-2px); }
body.skin-myau .btn:active { transform: scale(0.97); }
body.skin-myau .btn-primary,
body.skin-myau .btn--primary,
body.skin-myau a.btn--primary {
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.3);
}
body.skin-myau .btn-primary:hover,
body.skin-myau .btn--primary:hover,
body.skin-myau a.btn--primary:hover {
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #fff;
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.4);
}

/* Карточки: radius 20px + тень мокапа */
body.skin-myau .card,
body.skin-myau .block .card {
  background: var(--card, #fff);
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow, 0 8px 30px rgba(28, 25, 23, 0.07));
}

body.skin-myau .locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

body.skin-myau .footer,
body.skin-myau .footer--v2 {
  background: var(--bg, #FDF8F3);
  color: var(--muted);
  border-top: 1px solid rgba(28, 25, 23, 0.08);
}
body.skin-myau .footer a,
body.skin-myau .footer__col a { color: var(--muted); }
body.skin-myau .footer a:hover,
body.skin-myau .footer__col a:hover { color: var(--cat-dark, #E76F51); }
body.skin-myau .footer__col .footer__h,
body.skin-myau .footer__col h4 { color: var(--text); }
body.skin-myau .footer__bottom {
  border-top-color: rgba(28, 25, 23, 0.08);
}
html.dark body.skin-myau .footer,
html.dark body.skin-myau .footer--v2 {
  background: var(--bg);
  border-top-color: rgba(250, 250, 249, 0.1);
}
html.dark body.skin-myau .footer__bottom {
  border-top-color: rgba(250, 250, 249, 0.1);
}

body.skin-myau .tool-frame {
  max-width: 900px;
  background: transparent;
  border: none;
  box-shadow: none;
}
html.dark body.skin-myau .tool-frame {
  background: transparent;
  box-shadow: none;
}

/* Шапка: точка + поиск + Пульс/Инструменты + бургер (статика и Jinja) */
body.skin-myau header.topbar.top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
body.skin-myau header.topbar.top .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
body.skin-myau .nav-search {
  flex: 1;
  max-width: 440px;
  margin: 0 12px;
  position: relative;
  display: flex;
  align-items: center;
}
body.skin-myau .topnav--desktop { display: flex; align-items: center; gap: 4px; }
body.skin-myau .topnav--desktop a {
  padding: 7px 11px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
body.skin-myau header.topbar.top .theme-toggle {
  display: inline-flex;
  margin-left: auto;
  padding: 6px 8px;
  flex-shrink: 0;
}
body.skin-myau header.topbar.top .burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb);
  background: none;
  position: static;
}
body.skin-myau .drawer,
body.skin-myau .drawer__overlay { display: none; }
@media (max-width: 768px) {
  body.skin-myau .topnav--desktop { display: none; }
  body.skin-myau header.topbar.top .nav-search { display: none !important; }
  body.skin-myau header.topbar.top .burger {
    display: flex !important;
    position: static !important;
    width: 40px;
    height: 40px;
    background: var(--panel, #fff);
  }
  body.skin-myau .drawer__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
  }
  body.skin-myau .drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 80%;
    max-width: 320px;
    background: var(--panel, #fff);
    z-index: 100;
    padding: 64px 16px 16px;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  body.skin-myau .drawer a {
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 10px;
    text-decoration: none;
  }
  body.skin-myau .nav-toggle:checked ~ .drawer { transform: translateX(0); }
  body.skin-myau .nav-toggle:checked ~ .drawer__overlay { opacity: 1; pointer-events: auto; }
}
