/* «Дуа и дело»: светлая тема Syndicate Investments, сначала телефон. */

:root {
  --bg: #f7f9f8;
  --surface: #ffffff;
  --tint: #e8f5ef;
  --tint-strong: #d6ece2;
  --primary: #06764e;
  --primary-hover: #055c3d;
  --accent: #089160;
  --ink: #0b1a14;
  --muted: #5b6360;
  --line: rgba(11, 26, 20, 0.12);
  --warn-bg: #fff8e6;
  --warn-line: #e6cf8a;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 26, 20, 0.04), 0 8px 24px rgba(11, 26, 20, 0.06);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --arabic: 'Geeza Pro', 'Noto Naskh Arabic', 'Amiri', 'Scheherazade New', 'Traditional Arabic', 'Times New Roman', serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 8.5vw, 2.75rem);
}

h1:focus {
  outline: none;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

#app {
  padding-top: 8px;
  padding-bottom: 40px;
  outline: none;
}

/* Шапка */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 20px 8px;
}

.top__brand {
  display: inline-flex;
  line-height: 0;
}

.top__name {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

/* Общие элементы */
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.5;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.stack > * + * {
  margin-top: 16px;
}

.block {
  margin-top: 40px;
}

.block > h2 {
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: 700 1.05rem/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--lg {
  width: 100%;
  min-height: 58px;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--primary);
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-size: 0.98rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 24px;
}

.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card > h2 {
  margin-bottom: 10px;
}

.card--warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  box-shadow: none;
}

.card--warn h3 {
  margin-top: 14px;
}

.card--warn h3 + p {
  margin-top: 4px;
}

.banner {
  padding: 10px 14px;
  background: var(--warn-bg);
  border: 1px dashed var(--warn-line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.9rem;
}

/* Первый экран */
.hero {
  padding-top: 20px;
}

.hero h1 {
  margin-top: 12px;
}

.hero .lead {
  margin-top: 14px;
}

.hero .btn {
  margin-top: 24px;
}

.hero .note {
  margin-top: 10px;
  text-align: center;
}

.how,
.ladder,
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.how li,
.steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: item;
}

.how li + li,
.steps li + li {
  margin-top: 16px;
}

.how li::before,
.steps li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.how strong {
  display: block;
}

.how span {
  color: var(--muted);
}

.ladder li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ladder li:last-child {
  border-bottom: 0;
}

.ladder__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.ladder li.is-current .ladder__n {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.ladder li.is-current .ladder__t {
  font-weight: 700;
}

.ladder li.is-past .ladder__t {
  color: var(--muted);
}

.about p {
  color: var(--ink);
}

.privacy {
  margin-top: 28px;
  padding: 14px 16px;
  background: var(--tint);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.choose {
  margin-top: 24px;
}

.choose h2 {
  margin-bottom: 4px;
}

.choose .btn {
  margin-top: 12px;
}

.choose .note {
  margin-top: 12px;
  text-align: left;
}

.choose .link {
  margin-top: 4px;
}

/* Аудит */
.audit {
  padding-top: 12px;
}

.progress {
  height: 6px;
  overflow: hidden;
  background: var(--tint-strong);
  border-radius: 999px;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.audit__count {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.audit__q {
  margin-top: 8px;
  font-size: clamp(1.6rem, 6.5vw, 2.1rem);
}

.audit .hint {
  margin-top: 10px;
  color: var(--muted);
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.option {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: 400 1.02rem/1.35 var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.option:hover {
  border-color: var(--primary);
}

.option.is-selected {
  border-color: var(--primary);
  background: var(--tint);
  font-weight: 700;
}

.audit .link {
  margin-top: 14px;
}

/* Результат */
.result,
.plan,
.day {
  padding-top: 16px;
}

.badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.result h1,
.day h1,
.plan h1 {
  margin-top: 12px;
}

.rungs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.rungs li {
  height: 8px;
  background: var(--tint-strong);
  border-radius: 999px;
}

.rungs li.is-past {
  background: var(--accent);
  opacity: 0.45;
}

.rungs li.is-current {
  background: var(--primary);
}

.result .card,
.day .card,
.plan .card {
  margin-top: 16px;
}

.result .card:first-of-type {
  margin-top: 22px;
}

.cta-block {
  margin-top: 24px;
}

.cta-block .note {
  margin-top: 10px;
  text-align: center;
}

/* 7 дней */
.meta {
  margin-top: 8px;
  color: var(--muted);
}

.plan .banner {
  margin-top: 14px;
}

.days {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.day-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
}

a.day-chip:hover {
  border-color: var(--primary);
}

.day-chip__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--primary);
  font-weight: 700;
}

.day-chip__t {
  flex: 1;
  font-weight: 700;
}

.day-chip__s {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.day-chip.is-done .day-chip__n {
  background: var(--primary);
  color: #fff;
}

.day-chip.is-done .day-chip__s {
  color: var(--primary);
  font-weight: 700;
}

.day-chip.is-locked {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
}

.day-chip.is-locked .day-chip__n {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.day-chip.is-locked .day-chip__t {
  font-weight: 400;
}

/* День */
.day .lead {
  margin-top: 12px;
}

.dua__ar {
  margin: 4px 0 0;
  font-family: var(--arabic);
  font-size: 1.75rem;
  line-height: 2.05;
  text-align: right;
}

.dua__tr {
  margin-top: 12px;
  color: var(--muted);
  font-style: italic;
}

.dua__ru {
  margin-top: 12px;
  font-size: 1.08rem;
}

.dua__src {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.deed__text {
  font-size: 1.08rem;
}

.field {
  display: block;
  margin-top: 16px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.field textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  /* 16px и больше: иначе iOS увеличивает страницу при вводе. */
  font-size: 1rem;
  resize: vertical;
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.deed .btn {
  margin-top: 18px;
}

.done-msg {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--tint);
  border-radius: var(--radius-sm);
  color: var(--primary-hover);
  font-weight: 700;
}

.done-msg span {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 400;
}

.day .btn--next {
  margin-top: 16px;
}

/* Предложение подписки */
.offer {
  margin-top: 24px;
  padding: 22px 20px;
  background: var(--tint);
  border: 1px solid var(--tint-strong);
  border-radius: var(--radius);
}

.offer > p {
  margin-top: 10px;
}

.offer .btn {
  margin-top: 18px;
}

.terms {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.92rem;
}

.terms li + li {
  margin-top: 4px;
}

.offer .note {
  margin-top: 10px;
  color: var(--muted);
}

.foreign {
  margin-top: 12px;
  font-size: 0.95rem;
}

.foreign summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}

.foreign summary::-webkit-details-marker {
  display: none;
}

/* Личная ссылка */
.keep {
  margin-top: 24px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.keep p {
  margin-top: 8px;
  color: var(--muted);
}

.keep .btn {
  margin-top: 14px;
  width: 100%;
}

.keep .btn + .btn {
  margin-top: 10px;
}

.keep .keep__on {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--tint);
  border-radius: var(--radius-sm);
  color: var(--primary-hover);
  font-weight: 700;
}

/* Подвал */
.foot {
  padding-top: 20px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.foot p + p {
  margin-top: 8px;
}

.foot a {
  color: var(--muted);
}

/* Сводка для владельца */
.stats {
  max-width: 780px;
  padding-top: 28px;
  padding-bottom: 48px;
}

.stats h1 {
  margin-top: 10px;
}

.stats > .note {
  margin-top: 12px;
}

.stats table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.stats th,
.stats td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.stats th {
  color: var(--muted);
  font-weight: 700;
}

.stats th:not(:first-child),
.stats td:not(:first-child) {
  text-align: right;
}

@media (min-width: 720px) {
  body {
    font-size: 18px;
  }

  .top {
    padding-top: 24px;
  }

  .hero {
    padding-top: 36px;
  }

  .btn--lg {
    width: auto;
    min-width: 320px;
  }

  .hero .note,
  .cta-block .note {
    text-align: left;
  }

  .keep .btn {
    width: auto;
  }

  .keep .btn + .btn {
    margin-top: 14px;
    margin-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
