/* Sukun — значения перенесены из design/mockup.html, экран «2 · Bugun». */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin-wght.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('../fonts/noto-naskh-arabic-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
[data-action] { touch-action: manipulation; }
html, body { margin: 0; background: #F3F7F3; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: #112620;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
a { text-decoration: none; color: inherit; }

.screen {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: var(--tg-viewport-stable-height, 100vh);
  background: #F3F7F3;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pad { padding: 0 20px; }
.card { background: #fff; border: 1px solid #E3EBE5; border-radius: 22px; }
.sq { display: flex; align-items: center; justify-content: center; flex: none; }
.row { display: flex; align-items: center; gap: 12px; }
.ringwrap { position: relative; display: block; }
.rl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.iconbtn { width: 42px; height: 42px; border-radius: 14px; border: 1px solid #E3EBE5; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.pill { border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; background: #E7F1EB; color: #0A4D38; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 16px; background: #0E6B4E; color: #fff; font-size: 14.5px; font-weight: 700; }

/* шапка */
.hdr { padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hdr-hello { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5B7268; }
.hdr-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 700; line-height: 1.1; margin-top: 2px; min-height: 31px; }

/* неделя */
.week { margin: 16px 20px 0; padding: 14px 10px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; border-radius: 14px; background: transparent; }
.day-l { font-size: 10px; font-weight: 700; color: #5B7268; }
.day.today { background: #E7F1EB; }
.day.today .day-l { color: #0A4D38; }

/* карточка задач */
.tasks { margin: 12px 20px 0; padding: 16px 16px 8px; }
.tasks-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tasks-h { margin: 0; font-size: 15px; font-weight: 800; }
.tasks-date { font-size: 11.5px; font-weight: 600; color: #5B7268; margin-top: 3px; }
.prog { margin-top: 12px; height: 7px; border-radius: 999px; background: #EDF2EE; overflow: hidden; }
.prog > span { display: block; height: 100%; background: linear-gradient(90deg, #0E6B4E, #2E9B6E); transition: width .25s ease; }
.namoz { margin: 10px 0 0; padding: 0; }
.namoz li { padding: 9px 0; border-top: 1px solid #F0F4F1; list-style: none; cursor: pointer; user-select: none; }
.nm-ic { width: 32px; height: 32px; border-radius: 11px; background: #F2F6F3; }
.nm-ic svg { stroke: #86A095; }
.nm-name { flex: 1; font-size: 14.5px; font-weight: 600; }
.nm-time { font-size: 11.5px; font-weight: 600; color: #5B7268; }
.nm-chk { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1.5px solid #D7E2DA; }
.nm-chk svg { stroke: #D7E2DA; }
.namoz li.done .nm-ic { background: #E7F1EB; }
.namoz li.done .nm-ic svg { stroke: #0E6B4E; }
.namoz li.done .nm-name { font-weight: 700; }
.namoz li.done .nm-chk { background: #0E6B4E; border-color: #0E6B4E; }
.namoz li.done .nm-chk svg { stroke: #fff; }

/* зикры */
.zikr { margin: 12px 20px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.zk { background: #fff; border: 1px solid #E3EBE5; border-radius: 18px; padding: 12px 13px; cursor: pointer; user-select: none; }
.zk-top { display: flex; align-items: center; justify-content: space-between; }
.zk-name { font-size: 11.5px; font-weight: 700; color: #5B7268; }
.zk-go { width: 22px; height: 22px; border-radius: 8px; background: #E7F1EB; }
.zk-num { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.zk-v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.zk-g { font-size: 11px; font-weight: 600; color: #5B7268; }
.zk-bar { margin-top: 8px; height: 5px; border-radius: 999px; background: #EDF2EE; overflow: hidden; }
.zk-bar > span { display: block; height: 100%; }

.add { margin: 14px 20px 0; }
.add .btn { opacity: 1; cursor: default; }

/* нижнее меню */
.tabbar {
  margin-top: auto;
  position: sticky; bottom: 0;
  background: #fff; border-top: 1px solid #E3EBE5;
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.spacer { height: 14px; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border-radius: 14px; font-size: 10.5px; font-weight: 700; color: #5B7268; }
.tab svg { stroke: #5B7268; }
.tab.on { background: #E7F1EB; font-weight: 800; color: #0A4D38; }
.tab.on svg { stroke: #0A4D38; }
.tab[aria-disabled="true"] { pointer-events: none; }

/* тасбех — design/mockup.html, «5 · Tasbeh» */
body[data-route="zikr"] .tabbar,
body[data-route="zikr"] .spacer { display: none; }
.tb {
  position: relative; flex: 1; display: flex; flex-direction: column;
  min-height: 100vh; min-height: var(--tg-viewport-stable-height, 100vh);
  background: linear-gradient(180deg, #F3F7F3 0%, #E7F0EA 100%); overflow: hidden;
}
.tb-glow {
  position: absolute; top: 150px; left: 50%; transform: translateX(-50%);
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,107,78,.10) 0%, rgba(14,107,78,0) 70%);
}
.tb-hdr { padding-top: 20px; display: flex; align-items: center; gap: 12px; position: relative; }
.tb-ib { width: 40px; height: 40px; border-radius: 13px; }
.tb-title { flex: 1; text-align: center; }
.tb-name { font-size: 15.5px; font-weight: 800; }
.tb-date { font-size: 11px; font-weight: 600; color: #5B7268; }
.tb-text { margin: 16px 20px 0; padding: 16px; text-align: center; position: relative; }
.tb-ar { margin: 0; font-family: 'Noto Naskh Arabic', serif; font-size: 27px; font-weight: 600; line-height: 1.7; color: #0A4D38; }
.tb-tr { margin: 6px 0 0; font-size: 13.5px; font-weight: 700; }
.tb-mn { margin: 3px 0 0; font-size: 12px; font-weight: 600; color: #5B7268; }
.tb-counter { position: relative; margin-top: 18px; display: flex; flex-direction: column; align-items: center; }
.tb-ring { position: relative; width: 228px; height: 228px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.tb-ring svg { display: block; }
.tb-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.tb-lbl { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5B7268; }
.tb-val { font-size: 62px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #0A4D38; font-variant-numeric: tabular-nums; }
.tb-sub { font-size: 13px; font-weight: 700; color: #5B7268; margin-top: 4px; }
.tb-goal-done { color: #0E6B4E; }
.tb-beads { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 0 20px; }
.tb-bead { width: 9px; height: 9px; border-radius: 50%; background: #CFDDD4; }
.tb-bead.on { background: #0E6B4E; }
.tb-beads-l { font-size: 11.5px; font-weight: 700; color: #5B7268; margin-left: 4px; }
.tb-bottom { position: relative; margin: auto 20px 0; padding-top: 20px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
.tb-big {
  width: 100%; height: 86px; border-radius: 26px; background: #0E6B4E; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  box-shadow: 0 10px 24px rgba(14,107,78,.28); user-select: none; -webkit-user-select: none;
  transition: transform .06s;
}
.tb-big:active { transform: scale(.985); }
.tb-big-t { font-size: 17px; font-weight: 800; }
.tb-big-s { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.8); }
.tb-row { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tb-btn {
  height: 48px; border-radius: 15px; border: 1px solid #E3EBE5; background: #fff;
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 700;
}
.tb-save { border: 0; background: #E7F1EB; color: #0A4D38; font-weight: 800; }

/* скелетон */
.sk { background: #E6EEE8; border-radius: 8px; position: relative; overflow: hidden; }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%); animation: sk 1.3s infinite;
}
@keyframes sk { to { transform: translateX(100%); } }
.sk-ring { width: 30px; height: 30px; border-radius: 50%; }

/* тост */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 40px); text-align: center;
  background: #112620; color: #F4F1E8; border-radius: 14px; padding: 12px 16px;
  font-size: 13px; font-weight: 700; box-shadow: 0 10px 30px rgba(8,45,32,.25);
  transition: opacity .2s, transform .2s; z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
