/* =========================
LESSON SYSTEM — FINAL 
czysta, stabilna wersja
========================= */

/* =========================
CONTENT SPACING SCALE
========================= */

:root {
  --content-space-sm: 24px;
  --content-space-md: 40px;
  --content-space-lg: 60px;
}
/* =========================
CONTENT SURFACE SYSTEM
========================= */

.content-surface {
  position: relative;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.92),
      rgba(255,255,255,0.78)
    );

  border-radius: 32px;

  border:
    1px solid rgba(15,23,42,0.06);

  box-shadow:
    0 20px 60px rgba(15,23,42,0.06);

  backdrop-filter:
    blur(16px);

  overflow: hidden;
}

.content-surface--soft {
  background:
    rgba(255,255,255,0.72);

  backdrop-filter:
    blur(14px);
}

.content-surface--elevated {
  box-shadow:
    0 40px 100px rgba(15,23,42,0.12);

  border:
    1px solid rgba(15,23,42,0.08);
}

/* =========================
HERO
========================= */

.lesson-hero h1 {
font-size: clamp(38px, 5vw, 64px);

line-height: 0.88;

letter-spacing: -0.06em;

margin: 0 0 28px;

max-width: 8ch;
}

.lesson-subtitle {
font-size: 22px;

font-weight: 700;

line-height: 1.2;

margin-bottom: 30px;

color: rgba(15,23,42,0.92);
}

.lesson-description {
font-size: 18px;

line-height: 1.9;

color: rgba(15,23,42,0.72);

margin-bottom: 56px;

max-width: 620px;
}

/* =========================
PROGRESS
========================= */

.progress-wrap {
  width: 100%;

  max-width: 520px;

  height: 12px;

  background:
    rgba(15,23,42,0.08);

  border-radius:
    999px;

  overflow: hidden;
}

.progress-bar {
  height: 100%;

  border-radius:
    inherit;

  background:
    linear-gradient(
      90deg,
      #ffe45e,
      #ffd43b
    );

  box-shadow:
    0 4px 18px rgba(255,212,59,0.35);
}

.progress-text {
  margin-top: 14px;

  font-size: 14px;

  font-weight: 700;

  letter-spacing: 0.04em;

  color:
    rgba(15,23,42,0.46);
}

/* =========================
LESSON WINDOW
========================= */

.lesson-window {
  padding: clamp(28px, 3.2vw, 44px);
  width: 100%;
  max-width: 560px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background:
    linear-gradient(
      180deg,
      rgba(255,253,247,0.96),
      rgba(246,242,231,0.90)
    );

  border:
    1px solid rgba(255,255,255,0.34);

  border-radius:
    42px 64px 54px 68px /
    58px 42px 70px 50px;

  box-shadow:
    0 30px 84px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.58),
    0 0 0 1px rgba(255,225,68,0.06);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  overflow: hidden;

  transform:
    rotate(-1deg);
}

.lesson-window-top {
  display: flex;
  gap: 10px;

  margin-bottom: 28px;
  padding-bottom: 24px;

  border-bottom:
    1px solid rgba(15,23,42,0.08);
}

.lesson-window-top span {
  width: 12px;
  height: 12px;

  border-radius: 50%;

  background:
    rgba(15,23,42,0.16);
}

.lesson-window-top span:first-child {
  background:
    rgba(255,225,68,0.95);
}

/* =========================
LESSON WINDOW LABEL
========================= */

.lesson-window-label {
  margin-bottom: 22px;

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  color:
    rgba(22,47,69,0.58);
}

.lesson-list {
  display: flex;
  flex-direction: column;

  gap: 14px;
}

.lesson-item {
  position: relative;

  min-height: 74px;

  padding:
    20px
    24px;

  border-radius:
    24px;

  font-size:
    17px;

  font-weight:
    800;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.86),
      rgba(255,255,255,0.64)
    );

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  color:
    rgba(15,23,42,0.86);

  text-decoration: none;

  border:
    1px solid rgba(15,23,42,0.055);

  box-shadow:
    0 10px 28px rgba(15,23,42,0.045),
    inset 0 1px 0 rgba(255,255,255,0.72);

  overflow: hidden;

  cursor: pointer;

  transition:
    background 0.24s ease,
    transform 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    opacity 0.24s ease;
}

.lesson-item::before {
  content: "";

  position: absolute;
  inset: 0 auto 0 0;

  width: 8px;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(255,225,68,0.96),
      rgba(255,212,59,0.82)
    );

  opacity: 0;

  transition:
    opacity 0.24s ease;
}

.lesson-item span {
  position: relative;
  z-index: 1;
}

.lesson-item:hover {
  transform:
    translateX(4px);

  color:
    rgba(15,23,42,0.96);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.96),
      rgba(255,255,255,0.78)
    );

  border-color:
    rgba(255,225,68,0.34);

  box-shadow:
    0 16px 36px rgba(15,23,42,0.08),
    0 0 0 1px rgba(255,225,68,0.10),
    inset 0 1px 0 rgba(255,255,255,0.82);
}

.lesson-item:hover::before {
  opacity: 0.5;
}

.lesson-item:focus-visible {
  outline: 3px solid rgba(255,225,68,0.62);
  outline-offset: 3px;
}



/* =========================
CONTENT BLOCKS
========================= */

.video-card {
padding: var(--content-space-sm);
}

.soft-section {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.26),
      rgba(255,255,255,0.10)
    );
}

.understanding-box {
padding: var(--content-space-lg);
}

.understanding-box h3 {
  font-size:
   clamp(26px, 3vw, 38px);

  line-height:
    0.98;

  letter-spacing:
    -0.04em;

  margin-bottom:
    22px;

  max-width: 100%;
}

.understanding-box p {
  font-size: 16px;

  line-height: 1.9;

  color:
    rgba(15,23,42,0.72);

  max-width:
    620px;
}

/* =========================
SUMMARY
========================= */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

.summary-card {
  padding: 34px;

  display: flex;
  flex-direction: column;
  gap: 14px;

  min-height: 250px;
}

.summary-number {
  width: fit-content;

  padding: 8px 12px;

  border-radius: 999px;

  background:
    rgba(255,225,68,0.86);

  color:
    rgba(15,23,42,0.88);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.08em;
}

.summary-card h3 {
  margin: 0;

  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;

  letter-spacing: -0.04em;
}

.summary-card p {
  margin: 0;

  font-size: 15px;
  line-height: 1.75;

  color:
    rgba(15,23,42,0.66);
}

.summary-section {
  position: relative;
  overflow: hidden;
}

.summary-bg-visual {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0.12;

  pointer-events: none;
  z-index: 1;
}

.summary-bg-visual img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
}

/* =========================
NEXT
========================= */

.next-section {
  background:
    linear-gradient(
      180deg,
      #162f45 0%,
      #10283c 100%
    );
}

.next-box {
  padding: clamp(42px, 5vw, 68px);

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;

  gap: 48px;
  align-items: center;

  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(255,225,68,0.16),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(18,35,55,0.94),
      rgba(10,22,36,0.96)
    );

  border:
    1px solid rgba(255,255,255,0.08);

  color: #fff;
}

.next-content {
  min-width: 0;
}

.next-path {
  display: flex;
  align-items: center;

  gap: 12px;

  margin:
    26px
    0
    22px;
}

.next-path span {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  background:
    rgba(255,225,68,0.94);

  color:
    rgba(15,23,42,0.94);

  font-size: 22px;
  font-weight: 800;

  box-shadow:
    0 14px 34px rgba(255,225,68,0.22);
}

.next-path strong {
  color:
    rgba(255,255,255,0.68);

  font-size: 26px;
}

.next-box h2 {
  margin:
    0
    0
    18px;

  max-width: 720px;

  font-size: clamp(24px, 3.4vw, 40px);

  line-height:
    0.98;

  letter-spacing:
    -0.05em;

  color:
    #f4f7fb;
}

.next-box p {
  margin: 0;

  max-width: 620px;

  font-size: 17px;
  line-height: 1.75;

  color:
    rgba(255,255,255,0.68);
}

.next-box .next-btn {
  align-self: center;

  white-space: nowrap;

  box-shadow:
    0 18px 42px rgba(255,225,68,0.26);
}

.next-box--final-module {
  max-width: 980px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 34px;

  text-align: center;
}

.next-box--final-module .next-content {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.next-box--final-module .next-path {
  justify-content: center;
}

.next-box--final-module h2,
.next-box--final-module p {
  margin-left: auto;
  margin-right: auto;
}

.next-final-visual {
  width: min(100%, 760px);

  border-radius: 32px;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.03)
    );

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 22px 58px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.next-final-visual img {
  width: 100%;
  height: auto;

  display: block;
}

.next-box--final-module .next-btn {
  align-self: center;
  min-width: min(100%, 420px);
  justify-content: center;
  text-align: center;
}

@media (max-width: 768px) {
  .next-box--final-module {
    gap: 26px;
    text-align: left;
    align-items: stretch;
  }

  .next-box--final-module .next-content {
    align-items: flex-start;
  }

  .next-box--final-module .next-path {
    justify-content: flex-start;
  }

  .next-final-visual {
    width: 100%;
    border-radius: 24px;
  }

  .next-box--final-module .next-btn {
    width: 100%;
    min-width: 0;
  }
}

/* =========================
COUNTER
========================= */

#phraseCounter,
.phrase-counter {
  position: relative;

  min-width: 145px;
  min-height: 60px;

  padding: 11px 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background:
    linear-gradient(
      180deg,
      rgba(6, 14, 24, 0.96),
      rgba(10, 24, 38, 0.92)
    );

  border:
    1px solid rgba(255,255,255,0.12);

  box-shadow:
    0 18px 42px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.42);

  color: rgba(255,225,68,0.94);

  font-family: "Raleway", sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;

  text-transform: uppercase;
  text-align: center;

  text-shadow:
    0 0 14px rgba(255,225,68,0.26);

  overflow: hidden;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#phraseCounter::before,
.phrase-counter::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.04) 1px,
      transparent 1px
    );

  background-size: 10px 100%;

  opacity: 0.18;
}

#phraseCounter::after,
.phrase-counter::after {
  content: "";

  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;

  height: 2px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,225,68,0.74),
      transparent
    );

  opacity: 0.58;
}

@media (max-width: 768px) {
  #phraseCounter,
  .phrase-counter {
    min-width: 142px;
    min-height: 64px;

    padding: 12px 22px;

    font-size: clamp(22px, 7vw, 34px);
    border-radius: 16px;
  }
}


/* =========================
VIDEO ATMOSPHERE
========================= */

.video-card {
  position: relative;
}

.video-card::before {
  content: "";

  position: absolute;

  inset: -20px;

  z-index: -1;

  pointer-events: none;

  background:
    radial-gradient(
      circle,
      rgba(255,225,68,0.12),
      transparent 72%
    );

  opacity: 0.8;
}

/* =========================
audio explain button
========================= */

.audio-explain {
  margin-top: 26px;

  display: flex;
  justify-content: center;
}

.audio-explain-btn {
  min-width: 0;
  height: 46px;
  padding: 0 22px;

  font-size: 14px;

  box-shadow:
    0 12px 28px rgba(255, 212, 59, 0.22);
}

.understand-next-action {
  margin-top: 14px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.understand-next-action .lesson-hero-next-btn {
  min-width: 0;
  width: auto;
  max-width: min(100%, 360px);

  min-height: 46px;
  height: auto;

  padding: 0 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;

  box-shadow:
    0 12px 28px rgba(255, 212, 59, 0.22);
}

@media (max-width: 768px) {
  .understand-next-action .lesson-hero-next-btn {
    width: auto;
    max-width: min(100%, 340px);
    min-height: 46px;
    padding: 0 20px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .understand-next-action .lesson-hero-next-btn {
    max-width: 100%;
    min-height: 44px;
    padding: 0 18px;
    font-size: 13.5px;
  }
}


/* =========================
MEMORY CARD ACTIONS
========================= */

.mini-theory-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.mini-theory-card img {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.card-actions {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px;

  margin-top: 18px;
}

.card-actions .action-btn {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  height: auto;

  padding: 9px 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  line-height: 1.15;
  white-space: normal;

  font-size: 14px;
}

.card-actions .action-btn[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

@media (max-width: 720px) {
  .card-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================
MODULE PATH WINDOW — v0.1
test: lesson-1 only
========================= */

.module-path-shell {
  width: 100%;
  max-width: 620px;

  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;

  overflow: visible;

  transform:
    rotate(1.5deg);
}

.module-path-window-inner {
  width: 100%;

  padding:
    24px 28px 26px;

  background:
    #f8f8f2;

  color:
    var(--dark);

  border:
    1px solid rgba(22,47,69,0.08);

  border-radius:
    42px 74px 56px 78px /
    58px 46px 82px 56px;

  box-shadow:
    0 34px 80px rgba(0,0,0,0.22);

  overflow:
    hidden;
}

.module-path-bar {
  min-height: 38px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    24px;

  padding-bottom:
    16px;

  border-bottom:
    1px solid rgba(22,47,69,0.10);
}

.module-path-dots {
  display:
    flex;

  align-items:
    center;

  gap:
    10px;
}

.module-path-dots span {
  width:
    12px;

  height:
    12px;

  border-radius:
    50%;

  background:
    rgba(22,47,69,0.22);
}

.module-path-dots span:first-child {
  background:
    var(--yellow);
}

.module-path-meta {
  color:
    rgba(22,47,69,0.58);

  font-size:
    12px;

  font-weight:
    800;

  letter-spacing:
    0.18em;

  text-transform:
    uppercase;

  white-space:
    nowrap;
}

.module-path-main {
  padding-top:
    22px;
}

.module-path-label {
  margin-bottom:
    10px;

  color:
    #47677f;

  font-size:
    12px;

  font-weight:
    800;

  letter-spacing:
    0.18em;

  text-transform:
    uppercase;
}

.module-path-head {
  display:
    grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items:
    center;

  gap:
    20px;

  margin-bottom:
    16px;
}

.module-path-head h3 {
  margin:
    0;

  color:
    #111;

  font-size:
    clamp(34px, 3.1vw, 46px);

  line-height:
    0.94;

  letter-spacing:
    -0.055em;

  font-weight:
    750;
}

.module-path-counter {
  min-width:
    66px;

  height:
    44px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0 18px;

  border-radius:
    20px 24px 22px 24px /
    24px 20px 26px 22px;

  background:
    var(--navy);

  color:
    var(--yellow);

  font-size:
    17px;

  font-weight:
    800;

  letter-spacing:
    0.04em;

  box-shadow:
    0 14px 30px rgba(22,47,69,0.18);
}

.module-path-progress {
  width:
    100%;

  height:
    10px;

  margin:
    0 0 18px;

  overflow:
    hidden;

  border-radius:
    999px;

  background:
    #e1e6e8;
}

.module-path-progress span {
  display:
    block;

  height:
    100%;

  border-radius:
    inherit;

  background:
    var(--yellow);
}

.module-path-list {
  display:
    flex;

  flex-direction:
    column;

  gap:
    8px;
}

.module-path-item {
  position:
    relative;

  min-height:
    48px;

  display:
    grid;

  grid-template-columns:
    42px
    minmax(0, 1fr)
    auto;

  align-items:
    center;

  gap:
    16px;

  padding:
    11px 16px;

  background:
    rgba(255,255,255,0.84);

  border:
    1px solid rgba(22,47,69,0.08);

  border-radius:
    16px;

  color:
    rgba(17,17,17,0.66);

  text-decoration:
    none;

  box-shadow:
    0 10px 26px rgba(22,47,69,0.045);

  overflow:
    hidden;

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    background 0.22s ease;
}

.module-path-item::before {
  content:
    "";

  position:
    absolute;

  inset:
    0 auto 0 0;

  width:
    8px;

  background:
    var(--yellow);

  opacity:
    0;

  transition:
    opacity 0.22s ease;
}

.module-path-item:hover {
  transform:
    translateX(4px);

  border-color:
    rgba(255,225,68,0.38);

  background:
    rgba(255,255,255,0.96);

  box-shadow:
    0 16px 34px rgba(22,47,69,0.08);
}

.module-path-item:hover::before {
  opacity:
    0.55;
}

.module-path-item.is-current {
  background:
    rgba(255,255,255,0.96);

  border-color:
    rgba(255,225,68,0.95);

  color:
    rgba(17,17,17,0.82);

  box-shadow:
    0 18px 42px rgba(22,47,69,0.10),
    0 0 0 1px rgba(255,225,68,0.18);
}

.module-path-item.is-current::before {
  opacity:
    1;
}

.module-path-item.is-locked {
  opacity: 0.48;
  cursor: not-allowed;
  color: rgba(17,17,17,0.42);
  background: rgba(255,255,255,0.48);
  box-shadow: none;
}

.module-path-item.is-locked:hover {
  transform: none;
  border-color: rgba(22,47,69,0.08);
  background: rgba(255,255,255,0.48);
  box-shadow: none;
}

.module-path-item.is-locked:hover::before {
  opacity: 0;
}

.module-path-item.is-locked .module-path-status {
  color: rgba(22,47,69,0.34);
  font-size: 14px;
}

.module-path-number {
  color:
    rgba(22,47,69,0.34);

  font-size:
    11px;

  font-weight:
    800;

  letter-spacing:
    0.06em;
}

.module-path-title {
  color:
    currentColor;

  font-size:
    clamp(13px, 0.95vw, 15px);

  font-weight:
    700;

  line-height:
    1.18;
}

.module-path-status {
  color:
    rgba(71,103,127,0.72);

  font-size:
    18px;

  font-weight:
    500;
}

@media (max-width: 768px) {
  .module-path-shell {
    max-width:
      100%;

    transform:
      none;
  }

  .module-path-window-inner {
    padding:
      28px 22px;

    border-radius:
      34px 48px 40px 54px /
      46px 34px 58px 42px;
  }

  .module-path-bar {
    min-height:
      44px;

    padding-bottom:
      18px;
  }

  .module-path-meta {
    font-size:
      10px;

    letter-spacing:
      0.14em;
  }

  .module-path-main {
    padding-top:
      30px;
  }

  .module-path-head {
    grid-template-columns:
      1fr;

    gap:
      18px;
  }

  .module-path-head h3 {
    font-size:
      clamp(38px, 12vw, 54px);
  }

  .module-path-counter {
    width:
      fit-content;

    height:
      50px;

    font-size:
      18px;
  }

  .module-path-item {
    grid-template-columns:
      42px
      minmax(0, 1fr)
      auto;

    min-height:
      62px;

    padding:
      16px 18px;
  }

  .module-path-title {
    font-size:
      16px;
  }
}

@media (max-width: 768px) {
  #phraseCounter,
  .phrase-counter {
    min-width: 210px;
    min-height: 48px;
    padding: 9px 18px;

    font-size: clamp(20px, 6vw, 30px);
    letter-spacing: 0.06em;

    border-radius: 14px;
  }

  #phraseCounter::after,
  .phrase-counter::after {
    left: 16px;
    right: 16px;
    bottom: 6px;
  }
}

@media (max-width: 420px) {
  #phraseCounter,
  .phrase-counter {
    min-width: 190px;
    min-height: 44px;
    padding: 8px 16px;

    font-size: clamp(18px, 5.5vw, 26px);
    letter-spacing: 0.045em;

    border-radius: 13px;
  }
}

@media (max-width: 768px) {
  .module-path-shell {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .module-path-window-inner {
    width: 100%;
    padding: 22px 18px 24px;
    border-radius:
      28px 38px 34px 42px /
      38px 28px 44px 34px;
  }

  .module-path-bar {
    min-height: 34px;
    padding-bottom: 14px;
    gap: 14px;
  }

  .module-path-dots {
    gap: 8px;
  }

  .module-path-dots span {
    width: 10px;
    height: 10px;
  }

  .module-path-meta {
    font-size: 9.5px;
    letter-spacing: 0.13em;
  }

  .module-path-main {
    padding-top: 22px;
  }

  .module-path-label {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .module-path-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
  }

  .module-path-head h3 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 0.92;
    letter-spacing: -0.055em;
  }

  .module-path-counter {
    width: fit-content;
    min-width: 92px;
    height: 46px;
    padding: 0 18px;
    font-size: 17px;
    border-radius: 20px;
  }

  .module-path-progress {
    height: 8px;
    margin-bottom: 16px;
  }

  .module-path-list {
    gap: 8px;
  }

  .module-path-item {
    min-height: 54px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .module-path-number {
    font-size: 10px;
  }

  .module-path-title {
    font-size: 15px;
    line-height: 1.18;
  }

  .module-path-status {
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .module-path-window-inner {
    padding: 20px 16px 22px;
    border-radius:
      26px 34px 32px 38px /
      34px 26px 40px 32px;
  }

  .module-path-head h3 {
    font-size: clamp(32px, 9.5vw, 42px);
  }

  .module-path-counter {
    min-width: 84px;
    height: 42px;
    font-size: 16px;
  }

  .module-path-item {
    min-height: 50px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding: 11px 13px;
  }

  .module-path-title {
    font-size: 14.5px;
  }
}

@media (max-width: 768px) {
  .summary-grid {
    gap: 16px;
  }

  .summary-card {
    min-height: 0;
    padding: 24px 22px;
    gap: 10px;
    border-radius: 24px;
  }

  .summary-number {
    padding: 7px 11px;
    font-size: 11px;
  }

  .summary-card h3 {
    font-size: clamp(24px, 7.2vw, 32px);
    line-height: 1.02;
  }

  .summary-card p {
    font-size: 14.5px;
    line-height: 1.55;
  }
}

@media (max-width: 420px) {
  .summary-grid {
    gap: 14px;
  }

  .summary-card {
    padding: 22px 20px;
    border-radius: 22px;
  }

  .summary-card h3 {
    font-size: clamp(23px, 6.8vw, 30px);
  }

  .summary-card p {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .next-box {
    padding: 34px 24px;
    gap: 24px;
    border-radius: 30px;
  }

  .next-box h2 {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .next-box p {
    font-size: 15.5px;
    line-height: 1.58;
  }

  .next-path {
    width: 100%;
    gap: 8px;
    margin: 20px 0 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .next-path::-webkit-scrollbar {
    display: none;
  }

  .next-path span {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    font-size: 19px;
  }

  .next-path strong {
    flex: 0 0 auto;
    font-size: 22px;
  }

  .next-box .next-btn,
  .next-box--final-module .next-btn {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    min-height: 46px;
    height: auto;
    padding: 13px 22px;
    white-space: normal;
    text-align: center;
    line-height: 1.18;
    justify-content: center;
  }

  .next-box--final-module {
    gap: 24px;
    align-items: center;
    text-align: center;
  }

  .next-box--final-module .next-content {
    align-items: center;
  }

  .next-box--final-module .next-path {
    justify-content: flex-start;
  }

  .next-final-visual {
    width: 100%;
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .next-box {
    padding: 30px 22px;
    gap: 22px;
    border-radius: 28px;
  }

  .next-box h2 {
    font-size: clamp(26px, 7.5vw, 36px);
  }

  .next-box p {
    font-size: 15px;
    line-height: 1.55;
  }

  .next-path span {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 18px;
  }

  .next-path strong {
    font-size: 20px;
  }

  .next-box .next-btn,
  .next-box--final-module .next-btn {
    max-width: 320px;
    min-height: 44px;
    padding: 12px 18px;
    font-size: 15px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #phraseCounter,
  .phrase-counter {
    min-width: 220px;
    min-height: 52px;
    padding: 10px 20px;
    font-size: clamp(22px, 4vw, 32px);
  }

  .action-btn {
    min-height: 46px;
    padding: 13px 24px;
    font-size: 15.5px;
  }

  .summary-grid {
    gap: 18px;
  }

  .summary-card {
    min-height: 0;
    padding: 28px;
  }

  .next-box {
    padding: 38px 32px;
    gap: 28px;
  }

  .next-path {
    gap: 10px;
  }

  .next-path span {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .next-path strong {
    font-size: 22px;
  }

  .next-box .next-btn,
  .next-box--final-module .next-btn {
    min-width: 0;
    max-width: 420px;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 1000px) {
  .top-layout-zone,
  .side-left-zone,
  .side-right-zone,
  .side-control-zone,
  .has-control-tip {
    overflow: visible !important;
  }

  .has-control-tip {
    z-index: 20;
  }

  .control-tip {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: min(180px, calc(100vw - 32px));
    margin-bottom: 10px;
    transform: none !important;
    z-index: 20;
    animation: none;
  }

  .control-tip::after {
    display: none;
  }

  .side-control-zone.has-control-tip {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: auto !important;
    min-height: 56px;
    align-content: center;
  }
}

@media (max-width: 768px) {
  .side-control-zone.has-control-tip .control-tip {
    flex: 0 0 100%;
    margin-bottom: 8px;
  }
}


