:root {
  /* TOFAN design system (tofandesignui) */
  --bg: #060606;
  --bg-elevated: #111111;
  --bg-soft: #181818;
  --border-subtle: #222222;
  --text: #F5F5F5;
  --muted: #888888;
  --accent: #ffffff;
  --accent-soft: #333333;
  --gold: #C5A46D;
  --bronze: #8F6B3C;
  --accent-gradient: linear-gradient(135deg, #C5A46D 0%, #8F6B3C 100%);
  --danger: #ff4d4d;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --nav-height: 64px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 24px rgba(197, 164, 109, 0.2);
  --duration-fast: 180ms;
  --duration-med: 260ms;
  --ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
  --outline: 0 0 0 1px #ffffff, 0 0 0 4px rgba(255, 255, 255, 0.12);
}

html {
  color-scheme: dark;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elevated: #f5f5f5;
  --bg-soft: #eeeeee;
  --border-subtle: rgba(0, 0, 0, 0.12);
  --text: #0b0b0b;
  --muted: rgba(0, 0, 0, 0.62);
  --accent: #0b0b0b;
  --accent-soft: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.12);
  --outline: 0 0 0 1px #0b0b0b, 0 0 0 4px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

.i18n-preline {
  white-space: pre-line;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Layout */

.section {
  padding: 96px 20px;
}

.section-dark {
  background: radial-gradient(circle at top left, #111111 0, #080808 50%, #060606 100%);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.grid-two {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .grid-two {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
  }
}

.section-title {
  font-size: clamp(1.9rem, 2.6vw, 2.25rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}

.section-subtitle {
  margin-top: 12px;
  /* max-width: 520px; */
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.text-block p {
  margin: 0 0 12px;
  line-height: 1.7;
  color: var(--text);
}

.section-question {
  margin-top: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #111111, #0a0a0a);
  border: 1px solid rgba(197, 164, 109, 0.12);
  box-shadow: var(--shadow-soft);
}

.image-block img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.intro-image-wrap {
  position: relative;
  display: block;
}

.intro-image-wrap .intro-image {
  display: block;
  width: 100%;
  height: auto;
}

html[data-theme="dark"] .intro-image--light {
  display: none;
}

html[data-theme="light"] .intro-image--dark {
  display: none;
}

.image-caption {
  padding: 16px 20px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border-subtle);
}

/* Header / Nav */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 40;
  backdrop-filter: blur(26px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 40px;
  width: 60px;
  border-radius: 0;
  border: none;
  padding: 0;
  background: none;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 20px;
}

.lang-toggle {
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.9);
  color: #f5f5f5;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.theme-select-wrap {
  display: inline-flex;
}

.theme-select {
  margin-left: 8px;
  padding: 6px 28px 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.9);
  color: #f5f5f5;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.theme-select:focus-visible {
  outline: none;
  box-shadow: var(--outline);
}

html[data-theme="light"] .lang-toggle,
html[data-theme="light"] .theme-select {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #0b0b0b;
}

.nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  color: #d5d5d5;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent-gradient);
  transition: width var(--duration-fast) var(--ease-standard);
}

html[data-theme="light"] .nav-link {
  color: rgba(0, 0, 0, 0.72);
}

html[data-theme="light"] .nav-link::after {
  background-color: #0b0b0b;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 18, 18, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: background var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

.nav-toggle-line {
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background-color: #ffffff;
  transition: transform var(--duration-fast) var(--ease-standard),
    opacity var(--duration-fast) var(--ease-standard),
    translate var(--duration-fast) var(--ease-standard);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: rotate(42deg);
  translate: 0 3px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
  transform: rotate(-42deg);
  translate: 0 -3px;
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--outline);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Mobile nav sheet */

.mobile-nav-sheet {
  position: fixed;
  inset-inline: 0;
  top: var(--nav-height);
  background: rgba(4, 4, 4, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
  z-index: 30;
}

.mobile-nav-sheet.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px 16px;
  display: grid;
  gap: 4px;
}

.mobile-nav-link {
  padding: 10px 4px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.88rem;
  border-radius: 8px;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .mobile-nav-sheet {
    display: none;
  }
}

/* Hero */

.hero {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 40px) 20px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-logo {
  width: 120px;
  height: 75px;
  border-radius: 50px;
  padding: 8px;
  border: 1px solid rgba(197, 164, 109, 0.4);
  background: radial-gradient(circle at 20% 0, rgba(197, 164, 109, 0.12), #060606 70%);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.85), 0 0 40px rgba(197, 164, 109, 0.06);
}

.hero-title {
  font-size: clamp(2.2rem, 3.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 auto 32px;
  max-width: 580px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-3d {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.viewer-360 {
  width: min(360px, 80vw);
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  border: 1px solid rgba(197, 164, 109, 0.2);
  background: radial-gradient(circle at top, #1a1a1a 0, #0a0a0a 60%, #060606 100%);
  position: relative;
  overflow: hidden;
  cursor: grab;
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-med) var(--ease-standard),
    box-shadow var(--duration-med) var(--ease-standard),
    border-color var(--duration-med) var(--ease-standard);
}

.viewer-360:hover {
  border-color: rgba(197, 164, 109, 0.35);
  box-shadow: var(--shadow-soft), 0 0 30px rgba(197, 164, 109, 0.08);
}

.viewer-model {
  width: 100%;
  height: 100%;
}

.viewer-360:active {
  cursor: grabbing;
}

.viewer-360-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-silhouette {
  width: 46%;
  height: 70%;
  border-radius: 999px;
  background: conic-gradient(
      from 210deg,
      #ffffff 0deg,
      #dddddd 60deg,
      #222222 160deg,
      #000000 220deg,
      #ffffff 360deg
    );
  mask-image: radial-gradient(circle at 50% 15%, transparent 0, transparent 20%, black 34%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85), 0 22px 45px rgba(0, 0, 0, 0.85);
  animation: viewer-auto-rotate 16s linear infinite;
  transform-origin: center bottom;
}

.viewer-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

@keyframes viewer-auto-rotate {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.hero-scroll-link {
  display: inline-flex;
  justify-content: center;
  margin-top: 4px;
}

.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(197, 164, 109, 0.5));
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--gold);
  border-radius: 999px;
  animation: scroll-indicator 1.7s ease-in-out infinite;
}

@keyframes scroll-indicator {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(200%);
    opacity: 0;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #060606;
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(197, 164, 109, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(197, 164, 109, 0.12);
  box-shadow: 0 0 20px rgba(197, 164, 109, 0.15);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--outline);
}

.track-records-notice {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm, 6px);
  max-width: 420px;
}

/* Get plan */

.get-plan {
  border-top: 1px solid rgba(197, 164, 109, 0.1);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.plan-grid {
  display: grid;
  gap: 24px;
}

.plan-card {
  background: linear-gradient(145deg, #111111, #0a0a0a);
  border-radius: var(--radius-lg);
  padding: 24px 24px 28px;
  border: 1px solid rgba(197, 164, 109, 0.15);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-med) var(--ease-standard), box-shadow var(--duration-med) var(--ease-standard), border-color var(--duration-fast);
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 164, 109, 0.28);
  box-shadow: var(--shadow-soft), 0 0 28px rgba(197, 164, 109, 0.08);
}

.plan-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.plan-tagline {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.plan-body {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

@media (min-width: 768px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Workout page */

.page-hero {
  padding: calc(var(--nav-height) + 40px) 20px 56px;
  background:
    linear-gradient(
      to bottom,
      #050505 0,
      #050505 40%,
      #050505bb 60%,
      #000 100%
    );
}

.page-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.page-kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.page-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-subtitle {
  margin: 0;
  text-align: center;
  /* max-width: 520px; */
  color: #d2d2d2;
  font-size: 0.96rem;
}

.hero-grid-bg {
  margin-top: 32px;
  padding: 22px 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: #050505;
}

.level-choice-grid {
  display: grid;
  gap: 18px;
}

.level-card {
  padding: 18px 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, #171717, #050505);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.level-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.86rem;
  margin: 0 0 4px;
}

.level-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.level-tag {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-warrior-visual {
  margin-top: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: radial-gradient(circle at 0 0, #202020, #050505);
}

.hero-warrior-visual img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.hero-warrior-copy {
  font-size: 0.84rem;
  color: #cccccc;
}

@media (min-width: 768px) {
  .hero-grid-bg {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
  }

  .hero-warrior-visual {
    margin-top: 0;
    align-self: center;
  }
}

.workout-main {
  padding: 36px 20px 96px;
}

.workout-main-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.split-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .split-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

.subsection-title {
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.subsection-copy {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Accordion */

.accordion {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, #101010, #050505);
  overflow: hidden;
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--border-subtle);
}

.accordion-header {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.accordion-header-label {
  display: flex;
  flex-direction: column;
}

.accordion-day {
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.accordion-focus {
  font-size: 0.98rem;
  margin-top: 2px;
  color: white;
}

.accordion-chevron {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transform: rotate(0);
  transition: transform var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
  color: white;
}

.accordion-item.open .accordion-chevron {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.08);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms var(--ease-standard), opacity 220ms var(--ease-standard);
  opacity: 0;
}

.accordion-item.open .accordion-panel {
  opacity: 1;
}

.accordion-body {
  padding: 0 18px 16px;
  font-size: 0.9rem;
  color: #d0d0d0;
}

.workout-line-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.workout-list {
  margin: 6px 0 10px;
  padding-left: 0;
  list-style: none;
}

.workout-list li {
  margin-bottom: 4px;
}

.workout-day-visual {
  margin: 6px 0 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
}

.workout-day-image {
  width: 100%;
  height: auto;
  display: block;
}

.exercise-item {
  list-style: none;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.exercise-thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
}

.exercise-text {
  color: #e6e6e6;
  line-height: 1.4;
}

/* Code / Discipline */

.code-section {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 22px 22px 24px;
  background: radial-gradient(circle at top left, #1b1b1b, #050505);
}

.code-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.code-list li {
  padding: 6px 0;
  font-size: 0.96rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.code-list li:last-child {
  border-bottom: 0;
}

/* Discipline log */

.log-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 20px 22px 22px;
  background: linear-gradient(145deg, #101010, #050505);
}

.diet-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.diet-tab-btn {
  min-width: 140px;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: background 0.2s, transform 0.15s;
}

.diet-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.diet-panel-hidden {
  display: none;
}

.diet-meals {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.diet-meal {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.diet-meal:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.diet-meal-title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.diet-meal-content {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  white-space: pre-line;
}

.log-form-grid {
  display: grid;
  gap: 12px;
}

.field-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.input,
.select,
.textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}

.textarea {
  resize: vertical;
  min-height: 64px;
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff22;
}

.log-entries {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
}

.log-entry-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.86rem;
  padding: 5px 0;
  color: #d2d2d2;
}

.log-entry-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.log-empty {
  font-size: 0.86rem;
  color: var(--muted);
}

.log-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-ghost {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CTA */

.cta {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 22px 22px 24px;
  background: radial-gradient(circle at top left, #171717, #050505);
  text-align: center;
}

.cta-title {
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.cta-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Shop */

.shop-main {
  padding: calc(var(--nav-height) + 32px) 20px 96px;
}

.shop-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.shop-header {
  text-align: center;
  margin-bottom: 28px;
}

.shop-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, #141414, #050505);
  box-shadow: var(--shadow-soft);
}

.carousel-track {
  display: flex;
  transition: transform 400ms var(--ease-standard);
  touch-action: pan-y;
}

.carousel-slide {
  min-width: 100%;
  padding: 22px 22px 26px;
  display: grid;
  gap: 18px;
}

@media (min-width: 768px) {
  .carousel-slide {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
  }
}

.product-image-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #050505;
}

.product-meta {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.product-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-desc {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: #d0d0d0;
}

.product-price {
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.carousel-controls {
  position: absolute;
  inset-inline: 0;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  pointer-events: none;
}

.carousel-buttons {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  font-size: 0.88rem;
}

.carousel-dots {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.carousel-dot.active {
  background: #ffffff;
}

/* Contact */

.contact-main {
  padding: calc(var(--nav-height) + 32px) 20px 96px;
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
}

@media (min-width: 880px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.contact-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 22px 22px 24px;
  background: radial-gradient(circle at top left, #161616, #050505);
}

.contact-title {
  margin: 0 0 10px;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-copy {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-form-grid {
  display: grid;
  gap: 12px;
}

.social-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 22px 22px 24px;
  background: linear-gradient(145deg, #101010, #050505);
}

.social-title {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.social-copy {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-links {
  display: grid;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
}

.social-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 18px;
}

.social-icon--telegram,
.social-icon--instagram,
.social-icon--email,
.social-icon--phone {
  background-color: rgba(255, 255, 255, 0.06);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.social-icon--telegram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M21.85 5.11c.27-1.13-.43-1.57-1.49-1.19L2.9 10.62c-1.2.47-1.18 1.13-.22 1.43l4.48 1.4 10.36-6.54c.49-.3.94-.14.57.19l-8.39 7.58-.33 4.77c.48 0 .69-.22.95-.48l2.28-2.22 4.75 3.51c.88.49 1.51.24 1.73-.82L21.85 5.11z'/%3E%3C/svg%3E");
}

.social-icon--instagram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7.75 2h8.5A5.75 5.75 0 0 1 22 7.75v8.5A5.75 5.75 0 0 1 16.25 22h-8.5A5.75 5.75 0 0 1 2 16.25v-8.5A5.75 5.75 0 0 1 7.75 2Zm0 1.5A4.25 4.25 0 0 0 3.5 7.75v8.5A4.25 4.25 0 0 0 7.75 20.5h8.5a4.25 4.25 0 0 0 4.25-4.25v-8.5A4.25 4.25 0 0 0 16.25 3.5h-8.5ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Zm5.7-1.9a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z'/%3E%3C/svg%3E");
}

.social-icon--email {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M4 6.75A2.75 2.75 0 0 1 6.75 4h10.5A2.75 2.75 0 0 1 20 6.75v10.5A2.75 2.75 0 0 1 17.25 20H6.75A2.75 2.75 0 0 1 4 17.25V6.75Zm2.75-1.25c-.69 0-1.25.56-1.25 1.25v.29l7.1 4.44c.26.16.59.16.85 0l7.1-4.44v-.29c0-.69-.56-1.25-1.25-1.25H6.75Zm12 3.11-5.2 3.25c-.74.46-1.68.46-2.42 0l-5.2-3.25v8.64c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25V8.61Z'/%3E%3C/svg%3E");
}

.social-icon--phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M6.5 2A2.5 2.5 0 0 0 4 4.5v15A2.5 2.5 0 0 0 6.5 22h11a2.5 2.5 0 0 0 2.5-2.5v-15A2.5 2.5 0 0 0 17.5 2h-11Zm0 1.5h11a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1v-15a1 1 0 0 1 1-1Zm3.5 14a.75.75 0 1 0 0 1.5h4a.75.75 0 1 0 0-1.5h-4Z'/%3E%3C/svg%3E");
}

.brotherhood-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brotherhood-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brotherhood-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Trainers */
.trainers-main {
  padding: calc(var(--nav-height) + 32px) 20px 96px;
}

.trainers-inner {
  max-width: 720px;
  margin: 0 auto;
}

.trainers-page-header {
  text-align: center;
  margin-bottom: 28px;
}

.trainers-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trainers-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.trainers-filter {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.trainers-filter-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.trainers-filter-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.trainers-filter-btn.active {
  background: rgba(197, 164, 109, 0.25);
  color: #fff;
}

.trainers-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trainer-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: linear-gradient(145deg, #101010, #050505);
}

.trainer-card-inner {
  padding: 20px 20px 22px;
}

.trainer-card.hidden {
  display: none;
}

.trainer-name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.trainer-rating {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.trainer-info {
  margin-bottom: 14px;
}

.trainer-info-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.trainer-info-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.trainer-video-preview {
  min-height: 120px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.trainer-video-placeholder {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trainer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trainer-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 20px 24px;
  background: #050505;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Theme: light mode overrides */

html[data-theme="light"] .site-header {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.72),
    transparent
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .nav-toggle {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .nav-toggle-line {
  background-color: #0b0b0b;
}

html[data-theme="light"] .mobile-nav-sheet {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .mobile-nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .mobile-nav-link.active {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .section-dark {
  background: radial-gradient(circle at top left, #ffffff 0, #f5f5f5 50%, #efefef 100%);
}

html[data-theme="light"] .hero-logo {
  border-color: rgba(143, 107, 60, 0.5);
  background: radial-gradient(circle at 20% 0, rgba(197, 164, 109, 0.15), #fff 70%);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12), 0 0 30px rgba(197, 164, 109, 0.08);
}

html[data-theme="light"] .hero-subtitle,
html[data-theme="light"] .page-subtitle,
html[data-theme="light"] .text-block p,
html[data-theme="light"] .plan-body,
html[data-theme="light"] .hero-warrior-copy {
  color: rgba(0, 0, 0, 0.72);
}

html[data-theme="light"] .viewer-360 {
  background: radial-gradient(circle at top, #ffffff 0, #f3f3f3 60%, #eaeaea 100%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .hero-scroll-line {
  background: linear-gradient(to bottom, transparent, rgba(143, 107, 60, 0.5));
}

html[data-theme="light"] .hero-scroll-line::after {
  background: var(--bronze);
}

html[data-theme="light"] .btn-primary {
  background: var(--accent-gradient);
  color: #0a0a0a;
  border-color: var(--bronze);
  box-shadow: 0 14px 30px rgba(143, 107, 60, 0.25);
}

html[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 18px 40px rgba(143, 107, 60, 0.3);
}

html[data-theme="light"] .btn-outline {
  color: var(--bronze);
  border-color: var(--bronze);
}

html[data-theme="light"] .btn-outline:hover {
  background: rgba(143, 107, 60, 0.1);
  box-shadow: 0 0 20px rgba(143, 107, 60, 0.12);
}

html[data-theme="light"] .diet-tab-btn.active {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .track-records-notice {
  color: rgba(0, 0, 0, 0.85);
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .image-block {
  background: linear-gradient(145deg, #f5f5f5, #ebebeb);
  border-color: var(--border-subtle);
}

html[data-theme="light"] .hero-warrior-visual {
  background: radial-gradient(circle at 0 0, #f0f0f0, #e8e8e8);
  border-color: var(--border-subtle);
}

html[data-theme="light"] .plan-card,
html[data-theme="light"] .level-card,
html[data-theme="light"] .accordion,
html[data-theme="light"] .social-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .log-card,
html[data-theme="light"] .cta,
html[data-theme="light"] .code-section,
html[data-theme="light"] .trainer-card {
  background: linear-gradient(145deg, #ffffff, #f2f2f2);
}

html[data-theme="light"] .accordion-chevron {
  border-color: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

html[data-theme="light"] .accordion-item.open .accordion-chevron {
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .accordion-body {
  color: rgba(0, 0, 0, 0.78);
}

html[data-theme="light"] .workout-day-visual,
html[data-theme="light"] .exercise-thumb,
html[data-theme="light"] .product-image-wrapper {
  background: #f0f0f0;
  border-color: var(--border-subtle);
}

html[data-theme="light"] .exercise-item {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border-subtle);
}

html[data-theme="light"] .exercise-text {
  color: var(--text);
}

html[data-theme="light"] .code-list li {
  border-bottom-color: var(--border-subtle);
}

html[data-theme="light"] .input,
html[data-theme="light"] .select,
html[data-theme="light"] .textarea {
  background: #f8f8f8;
  border-color: var(--border-subtle);
  color: var(--text);
}

html[data-theme="light"] .input:focus-visible,
html[data-theme="light"] .select:focus-visible,
html[data-theme="light"] .textarea:focus-visible {
  border-color: #0b0b0b;
  box-shadow: 0 0 0 1px rgba(11, 11, 11, 0.15);
}

html[data-theme="light"] .log-entries {
  border-top-color: var(--border-subtle);
}

html[data-theme="light"] .log-entry-row {
  color: rgba(0, 0, 0, 0.78);
}

html[data-theme="light"] .shop-carousel {
  background: radial-gradient(circle at top, #f8f8f8, #efefef);
  border-color: var(--border-subtle);
}

html[data-theme="light"] .product-desc {
  color: rgba(0, 0, 0, 0.78);
}

html[data-theme="light"] .accordion-focus {
  color: var(--text);
}

html[data-theme="light"] .hero-grid-bg {
  background-color: #ffffff;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

html[data-theme="light"] .page-hero {
  background: linear-gradient(to bottom, #ffffff 0, #ffffff 40%, rgba(255, 255, 255, 0.7) 60%, #efefef 100%);
}

html[data-theme="light"] .carousel-btn {
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .carousel-dot {
  background: rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .carousel-dot.active {
  background: rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] .social-icon {
  border-color: rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .site-footer {
  border-top-color: rgba(0, 0, 0, 0.06);
  background: #f5f5f5;
}

/* Scroll animations */

[data-animate="fade-in"] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms var(--ease-standard), transform 260ms var(--ease-standard);
}

[data-animate="fade-in"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

