/* Дневникът на жената, която пламна отново */
:root {
  --cream: #faf3ea;
  --cream-2: #f3e7d4;
  --ink: #2b1d14;
  --ink-soft: #5a4435;
  --terracotta: #b8543a;
  --terracotta-deep: #8a3a25;
  --gold: #c8964a;
  --rose: #d99b8a;
  --line: rgba(90, 68, 53, 0.18);
  --shadow: 0 12px 40px rgba(90, 40, 20, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: "Cormorant Garamond", Georgia, serif; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* HERO */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(184, 84, 58, 0.08), transparent 60%),
    var(--cream);
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 18px;
}
.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero-title em { font-style: italic; color: var(--terracotta-deep); }
.hero-sub {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 auto 32px;
  max-width: 620px;
}
.hero-quote {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 32px auto 0;
  padding: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* PROGRESS */
.progress-card {
  margin: 40px auto 0;
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.progress-card .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  line-height: 1;
  color: var(--terracotta-deep);
}
.progress-card .label { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.12em; }
.progress-bar {
  flex: 1 1 200px;
  height: 8px;
  background: var(--cream-2);
  border-radius: 99px;
  overflow: hidden;
  min-width: 180px;
}
.progress-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  border-radius: 99px;
  transition: width .4s;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 99px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(138,58,37,.3); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--cream-2); }

/* SECTION */
.section { padding: 60px 0; }
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  margin: 0 0 8px;
  text-align: center;
}
.section-lede {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 auto 40px;
  max-width: 580px;
  font-size: 16px;
}

/* CHAKRA WEEKS GRID */
.weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.week-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 20px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-align: left;
  font-family: inherit;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.week-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--rose); }
.week-card .chakra-dot {
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-block; vertical-align: middle; margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 0 12px currentColor;
}
.week-card .week-num {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.week-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px; font-weight: 500; margin: 8px 0 6px;
}
.week-card .week-mantra {
  font-style: italic; color: var(--ink-soft); font-size: 14px; margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif; font-size: 17px;
}
.week-progress {
  display: flex; gap: 6px; margin-top: 14px;
}
.week-progress span {
  flex: 1; height: 4px; background: var(--cream-2); border-radius: 99px;
}
.week-progress span.done { background: var(--terracotta); }
.week-card.locked { opacity: .55; cursor: default; }
.week-card.locked:hover { transform: none; box-shadow: none; border-color: var(--line); }
.lock-badge {
  position: absolute; top: 14px; right: 16px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* MODAL */
.modal {
  position: fixed; inset: 0;
  display: none;
  z-index: 100;
}
.modal.is-open { display: block; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(43, 29, 20, 0.55);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(620px, 100%);
  background: var(--cream);
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0,0,0,.2);
  padding: 30px 36px 60px;
}
.modal-close {
  position: sticky; top: 0; float: right;
  background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--ink-soft);
  line-height: 1; padding: 4px 10px; z-index: 2;
}
.modal-close:hover { color: var(--terracotta); }
.modal h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500; font-size: 32px; margin: 0 0 4px;
}
.modal .kicker { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 14px; }
.modal .mantra {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 19px; color: var(--ink-soft); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 18px 0 26px; text-align: center;
}

/* DAY NAV (within week) */
.day-nav {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px;
}
.day-pill {
  padding: 8px 14px; border-radius: 99px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; cursor: pointer; font-family: inherit;
}
.day-pill.active { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.day-pill.done { background: var(--cream-2); }
.day-pill.done.active { background: var(--terracotta); color: #fff; }

/* DAY CONTENT */
.day-block { margin: 0 0 22px; }
.day-block h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px; font-weight: 500; margin: 0 0 8px; color: var(--terracotta-deep);
}
.day-block .q {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 18px; color: var(--ink); margin: 0 0 10px;
}
.day-block p { margin: 8px 0; }
.day-block textarea {
  width: 100%; min-height: 90px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,.7); font-family: inherit; font-size: 15px; line-height: 1.55;
  color: inherit; resize: vertical;
}
.day-block textarea:focus { outline: none; border-color: var(--terracotta); background: #fff; }
.checklist { list-style: none; padding: 0; margin: 8px 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 0;
  border-bottom: 1px dashed var(--line); cursor: pointer;
}
.checklist li:last-child { border-bottom: 0; }
.checklist input[type="checkbox"] {
  margin-top: 4px; accent-color: var(--terracotta);
  width: 18px; height: 18px; cursor: pointer;
}
.checklist li.checked span { text-decoration: line-through; color: var(--ink-soft); }

.energy-rating { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.energy-rating button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-family: inherit; font-size: 14px;
}
.energy-rating button.active {
  background: var(--terracotta); color: #fff; border-color: var(--terracotta);
}

.status-line {
  font-size: 12px; color: var(--ink-soft); margin-top: 6px; font-style: italic;
}

.day-actions {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 30px;
  padding-top: 20px; border-top: 1px solid var(--line);
}

.coming-soon {
  text-align: center; padding: 40px 20px; color: var(--ink-soft);
  font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 18px;
}

footer {
  text-align: center; padding: 40px 20px;
  color: var(--ink-soft); font-size: 14px;
  border-top: 1px solid var(--line); margin-top: 40px;
}

@media (max-width: 600px) {
  .modal-panel { padding: 20px 22px 50px; }
  .hero { padding: 50px 0 30px; }
  .section { padding: 40px 0; }
}
