/* Quick Nanny — общий стиль для статического прототипа */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500;600&family=Noto+Sans+Thai:wght@400;500;600&display=swap');

:root {
  --navy: #0B1F5B;
  --navy-soft: #12296E;
  --green: #65D313;
  --coral: #FF6163;
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --border: #DDE3F2;
  --border-soft: #EDEFF7;
  --text: #0B1F5B;
  --text-secondary: #5B6584;
  --text-muted: #93A0C2;
  --green-tint: #EAF8DC;
  --green-tint-text: #3F8A00;
  --coral-tint: #FFECEC;
  --coral-tint-border: #FFD3D4;
  --coral-tint-text: #E14547;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', 'Noto Sans Thai', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.app-shell {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header */
.header {
  background: var(--navy);
  color: #FFFFFF;
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header .left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header .titles { display: flex; flex-direction: column; min-width: 0; }
.header .titles .eyebrow { font-size: 12.5px; color: rgba(255,255,255,0.66); }
.header .titles .title { font-size: 16px; font-weight: 600; color: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header .big-title { font-size: 19px; font-weight: 600; color: #FFFFFF; }
.header a.back { display: flex; color: #FFFFFF; flex-shrink: 0; }

/* Language switch */
.lang-switch { display: flex; gap: 3px; background: rgba(255,255,255,0.12); border-radius: 100px; padding: 3px; flex-shrink: 0; }
.lang-switch.onlight { background: #E7EBF7; }
.lang-switch button {
  padding: 5px 10px;
  border: none;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  color: rgba(255,255,255,0.6);
}
.lang-switch.onlight button { color: var(--text-secondary); }
.lang-switch button.active { background: var(--green); color: var(--navy); }

/* Buttons */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  border: none;
}
.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary[disabled], .btn-primary.disabled { background: #E1E5F0; color: var(--text-muted); cursor: default; }
.btn-outline { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); font-weight: 600; }
.btn-outline.muted { color: var(--text-muted); }
.btn-danger-outline { background: transparent; color: var(--coral-tint-text); border: 1.5px solid var(--coral-tint-border); font-weight: 600; }
.btn-coral { background: var(--coral); color: #FFFFFF; }
.btn-sm { padding: 13px; font-size: 13.5px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.card-lg { border-radius: 18px; padding: 18px; }

/* Content wrappers */
.content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content.with-nav-space { padding-bottom: 104px; }
.footer-bar { padding: 14px 20px 28px; border-top: 1px solid var(--border); }

/* Badges */
.badge { font-size: 10.5px; font-weight: 600; color: var(--navy); background: var(--green-tint); padding: 3px 8px; border-radius: 100px; display: inline-block; }

/* Rows */
.row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); gap: 10px; }
.row:last-child { border-bottom: none; }
.row span:first-child { color: var(--text-secondary); }
.row span:last-child { font-weight: 500; text-align: right; }

/* Forms */
label { font-size: 12.5px; color: var(--text-secondary); font-weight: 500; display: block; margin-bottom: 6px; }
input, select, textarea {
  font-family: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-sizing: border-box;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

/* Avatar */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

/* Stars */
.star-btn { background: none; border: none; padding: 0; }
.star-btn svg { display: block; }

/* Bottom nav */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 8px 6px 20px;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255,255,255,0.55);
}
.nav-item svg { stroke: currentColor; }
.nav-item span { font-size: 11px; font-weight: 400; }
.nav-item.active { color: var(--green); }
.nav-item.active span { font-weight: 600; }

/* Utility */
.center-text { text-align: center; }
.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }
.hero-title { font-family: 'Fraunces', serif; font-weight: 600; }
