:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --text: #f4f3f0;
  --muted: #939398;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #d7f86a;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.shell { max-width: 1180px; margin: 0 auto; padding: 0 34px; }
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand em { color: var(--muted); font-style: normal; font-weight: 400; }
.brand-mark {
  color: var(--accent);
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  transform: rotate(-35deg);
}
.program-section { padding: 72px 0 100px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
}
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.section-head h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.95;
  margin: 0;
}
.section-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  text-align: right;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.program-card {
  min-height: 348px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 12px;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.program-card:hover {
  background: #19191b;
  border-color: rgba(215, 248, 106, 0.48);
  transform: translateY(-5px);
}
.card-image {
  background-position: center;
  background-size: cover;
  border-radius: 17px;
  filter: saturate(0.72);
  height: 160px;
  transition: filter 0.35s ease, transform 0.6s ease;
}
.program-card:hover .card-image { filter: saturate(1); transform: scale(1.03); }
.card-meta {
  color: var(--muted);
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  letter-spacing: 0.08em;
  margin: 16px 4px 8px;
  text-transform: uppercase;
}
.card-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0 4px;
}
.card-effect, .card-when { font-size: 11px; margin: 6px 4px 0; }
.card-effect { color: var(--text); }
.card-when { color: var(--muted); line-height: 1.45; }
.card-arrow { align-self: flex-end; color: var(--accent); font-size: 19px; margin: 0 5px 1px; }

.session {
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  visibility: hidden;
  z-index: 10;
}
.session.active { opacity: 1; visibility: visible; }
.session-backdrop {
  backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.76);
  inset: 0;
  position: absolute;
}
.session-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 34px;
  position: relative;
}
.session-top {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 11px;
  height: 88px;
  justify-content: space-between;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.session-brand { color: var(--text); letter-spacing: 0; text-transform: none; }
.icon-button {
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-size: 30px;
  font-weight: 200;
  line-height: 1;
  padding: 0 10px 4px 0;
}
.session-content {
  align-items: center;
  display: grid;
  flex: 1;
  gap: 70px;
  grid-template-columns: 1.1fr 0.9fr;
  padding: 42px 0 70px;
}
.pose-visual {
  background: var(--surface);
  border-radius: 30px;
  height: min(62vh, 580px);
  overflow: hidden;
  position: relative;
}
.pose-visual img { filter: saturate(0.72); height: 100%; object-fit: cover; width: 100%; }
.pose-shade {
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.6));
  inset: 0;
  position: absolute;
}
.pose-label {
  bottom: 23px;
  font-size: 11px;
  left: 25px;
  letter-spacing: 0.13em;
  position: absolute;
  text-transform: uppercase;
}
.session-info { max-width: 390px; }
.session-info h2 {
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.95;
  margin: 0 0 18px;
}
.session-info > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  min-height: 47px;
}
.timer {
  font-size: 72px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.08em;
  margin: 42px 0 13px;
}
.progress { background: #2d2d30; height: 2px; margin-bottom: 32px; width: 100%; }
.progress span { background: var(--accent); display: block; height: 100%; transition: width 0.3s linear; width: 0; }
.session-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; }
.primary-button {
  background: var(--accent);
  border: 0;
  border-radius: 100px;
  color: #10110b;
  cursor: pointer;
  font: 600 13px Inter;
  padding: 14px 27px;
  transition: transform 0.2s;
}
.primary-button:hover { transform: scale(1.03); }
.mode-button, .skip-button {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: 500 12px Inter;
  padding: 0;
}
.mode-button { color: var(--text); }
.skip-button span { color: var(--accent); font-size: 17px; margin-left: 9px; }
.session.free-mode .timer, .session.free-mode .progress { display: none; }
.session.free-mode .session-info > p:not(.eyebrow) { min-height: 0; }

@media (max-width: 900px) {
  .program-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .shell, .session-panel { padding-left: 20px; padding-right: 20px; }
  .topbar, .session-top { height: 72px; }
  .program-section { padding-top: 48px; }
  .section-head { align-items: start; gap: 20px; }
  .section-hint { display: none; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card { min-height: 320px; }
  .card-image { height: 135px; }
  .session-content { gap: 28px; grid-template-columns: 1fr; overflow: auto; padding: 25px 0 35px; }
  .pose-visual { height: 35vh; min-height: 210px; }
  .session-info { max-width: none; }
  .session-info h2 { font-size: 46px; }
  .timer { font-size: 56px; margin: 24px 0 12px; }
}
@media (max-width: 460px) {
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 340px; }
  .card-image { height: 170px; }
}
