/* ============================================================
   ECDOZER — страница «Гид» (дополнение к style.css)
   ============================================================ */

.nav a.on { color: var(--ink); position: relative; }
.nav a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px;
  border-radius: 2px; background: var(--green);
}

/* ---------- Hero гида ---------- */
.gh-hero { position: relative; padding: clamp(70px, 9vw, 120px) 0 clamp(18px, 2.6vw, 34px); overflow: hidden; }
.gh-hero .hero-bg { position: absolute; inset: 0; pointer-events: none; }
.gh-hero .blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .5; }
.gh-hero .blob-1 { width: 500px; height: 500px; left: -180px; top: -200px; background: radial-gradient(circle, #D6F2E1, transparent 65%); }
.gh-hero .blob-2 { width: 560px; height: 560px; right: -220px; top: -120px; background: radial-gradient(circle, #DCEFFB, transparent 65%); }
.gh-hero-in { position: relative; }
.gh-kicker { color: var(--green-deep); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.gh-lead { max-width: 640px; margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); }
.gh-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.gh-toc a {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px;
  background: var(--white); border: 1px solid #C9DCD1; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.gh-toc a:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: #C6E2D2; }

.gh-sub { max-width: 660px; margin-top: 14px; color: var(--muted); }

/* ---------- Цикл мойки ---------- */
.gh-cycle { padding: clamp(34px, 4.6vw, 64px) 0 10px; }
.cycle-box {
  margin-top: 34px; background: var(--white); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-soft);
  padding: clamp(22px, 3vw, 40px);
}
.cycle-track { position: relative; margin: 4px 0 26px; }
.cycle-line { position: absolute; left: 12.5%; right: 12.5%; top: 23px; height: 4px; background: #E3EDE7; border-radius: 3px; }
.cycle-line i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #1CA64C, #2FBB67); border-radius: 3px; }
.cycle-dots { position: relative; display: flex; justify-content: space-between; }
.cycle-dot {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; padding: 0 4px; width: 25%;
  font: inherit; color: var(--muted);
}
.cycle-dot span {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 2px solid #D9E4DD; font-weight: 700; font-size: 17px; color: #62796C;
  transition: background .35s, border-color .35s, color .35s, transform .35s var(--ease);
}
.cycle-dot b { font-size: 14.5px; font-weight: 600; text-align: center; line-height: 1.25; }
.cycle-dot.passed span { background: #D9F0E4; border-color: #6BBA8B; color: transparent; position: relative; }
.cycle-dot.passed span::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--green-deep); font-size: 19px; font-weight: 800;
}
.cycle-dot.passed b { color: #7E9587; }
.cycle-dot.on span { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 5px rgba(28, 166, 76, .14), 0 10px 24px -10px rgba(28, 166, 76, .55); }
.cycle-dot.on b { color: var(--ink); }
.cycle-panes { position: relative; min-height: 150px; }
.cycle-pane { display: none; }
.cycle-pane.on { display: block; animation: ghFade .45s var(--ease); }
@keyframes ghFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cycle-pane h3 { margin-bottom: 10px; }
.cycle-pane p { color: var(--ink-soft); max-width: 860px; }
.cycle-note {
  display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 10px;
  background: var(--mint); color: var(--green-dark); font-size: 13.5px;
}

/* ---------- Соль: сцена ---------- */
.gh-salt { padding: clamp(44px, 6vw, 80px) 0 10px; }
.salt-scene {
  margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 52px); align-items: center;
}
.salt-stage {
  position: relative; background: linear-gradient(160deg, #F2FAF5, #E4F2FA);
  border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-soft);
  padding: 14px; min-height: 420px; display: flex; align-items: center; justify-content: center;
}
#saltCanvas { width: 100%; height: auto; display: block; border-radius: calc(var(--radius) + 2px); }
.salt-hud {
  position: absolute; left: 26px; right: 26px; bottom: 22px; display: flex; justify-content: space-between;
  align-items: center; font-size: 13px; color: var(--ink-soft); pointer-events: none;
}
.salt-hud-num b { color: var(--green-deep); font-size: 15px; }
.salt-steps { display: flex; flex-direction: column; gap: 14px; }
.salt-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.salt-step.on { border-color: #BCE3CC; box-shadow: var(--shadow-card); transform: translateX(6px); }
.salt-step .s-n {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px;
  color: var(--green-deep); background: var(--mint); padding: 4px 10px; border-radius: 8px; margin-bottom: 10px;
}
.salt-step b { display: block; font-size: 18px; margin-bottom: 6px; }
.salt-step p { font-size: 15.5px; color: var(--muted); }

/* ---------- Таблетки: сцена ---------- */
.gh-tabs { padding: clamp(44px, 6vw, 80px) 0 10px; }
.tabs-scene { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 52px); align-items: center; }
.tab-stage {
  position: relative; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-soft);
  background: linear-gradient(160deg, #F2FAF5, #E4F2FA); padding: 14px;
}
#tabAnim { width: 100%; height: auto; display: block; }
.tab-hud {
  position: absolute; left: 26px; right: 26px; bottom: 22px; text-align: center;
  font-size: 13px; color: var(--ink-soft);
}
.tabs-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tabs-steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.tabs-steps li .mono { color: var(--green-deep); font-size: 13px; }
.tabs-steps li b { display: block; font-size: 18px; margin: 6px 0; }
.tabs-steps li p { font-size: 15.5px; color: var(--muted); }

/* ---------- Темы ---------- */
.gh-topics { padding: clamp(44px, 6vw, 80px) 0 10px; }
.topics-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.topic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: #C6E2D2; }
.topic-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; }
.topic-ico svg { width: 26px; height: 26px; }
.topic-card b { font-size: 17.5px; line-height: 1.3; margin-top: 6px; }
.topic-card p { font-size: 15px; color: var(--muted); flex: 1; }
.topic-go { font-size: 12.5px; color: var(--green-deep); }

/* ---------- FAQ / CTA ---------- */
.gh-faq { padding: clamp(44px, 6vw, 80px) 0 10px; }
.gh-cta { padding: clamp(40px, 5vw, 70px) 0 clamp(60px, 7vw, 90px); }
.gh-cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, #0F6A31, #128A3F 55%, #0E5E2C);
  border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 4vw, 52px); color: #fff;
}
.gh-cta-box h2 { color: #fff; }
.gh-cta-box p { color: rgba(255,255,255,.85); margin-top: 10px; max-width: 520px; }
.gh-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.gh-cta .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Мобильная версия ---------- */
@media (max-width: 980px) {
  .salt-scene, .tabs-scene { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-dot b { font-size: 13px; }
}
@media (max-width: 640px) {
  .topics-grid { grid-template-columns: 1fr; }
  .cycle-dot b { display: none; }
  .cycle-dot span { width: 40px; height: 40px; }
  .cycle-line { top: 20px; }
  .salt-hud { left: 18px; right: 18px; }
}
