/* Little Cat's World — warm neutral journal, dusty-rose accent */

/* Work board styles — scaffold only */
#section-work { max-width: 1100px; margin: 0 auto; }

.bonus-card {
    text-align: center;
    padding: 2rem 2.25rem !important;
    background: linear-gradient(135deg, #FFF6F2 0%, #FFFFFF 60%) !important;
}

.comp-card {
    padding: 1.75rem 2rem !important;
}

.comp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.comp-row + .comp-row {
    border-top: 1px solid var(--line-soft);
}

.comp-label {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 600;
}

.comp-sub {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.comp-amount {
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.bonus-amount {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-ink);
    letter-spacing: -0.02em;
    margin: 0.35rem 0;
}

.bonus-note {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
}

.work-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.work-column {
    background: var(--card-warm);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 1rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.work-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
}

.work-col-head h3 {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.work-count {
    color: var(--muted);
    font-size: 0.8rem;
    background: var(--panel);
    border-radius: var(--radius-pill);
    padding: 0.1rem 0.55rem;
    font-weight: 600;
}

.work-total {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: right;
}

.work-column.won {
    border-top: 3px solid var(--good);
}

.work-column.lost {
    border-top: 3px solid var(--subtle);
    opacity: 0.85;
}

.work-deal-value {
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 0.25rem;
}

.work-bonus {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px dashed var(--line);
}

.work-bonus.earned {
    color: var(--good);
    font-weight: 600;
}

.work-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.work-card {
    background: white;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.95rem;
    box-shadow: 0 1px 2px rgba(184, 96, 79, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.work-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.work-card h4 {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.work-card p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.work-card.placeholder {
    background: transparent;
    border-style: dashed;
    border-color: var(--line);
}

.work-card.placeholder h4 {
    color: var(--muted);
    font-style: italic;
}

.work-note {
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
}

@media (max-width: 820px) {
    .work-board {
        grid-template-columns: 1fr;
    }
    .work-column { min-height: auto; }
}



*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #FBF1EC;          /* warm blush cream */
    --bg-soft: #FDE9E0;     /* deeper blush for subtle washes */
    --card: #FFFFFF;         /* clean white — pops on blush */
    --card-warm: #FFF6F2;    /* softer card for secondary panels */
    --panel: #FDE4DC;        /* warm blush panel tint */
    --ink: #2D2320;          /* warm near-black */
    --ink-2: #5C4A44;        /* secondary body text */
    --muted: #9A7F75;        /* warm muted */
    --subtle: #C5AEA5;
    --line: #F2DDD3;         /* warm rose line */
    --line-soft: #F9E8E0;
    --accent: #E28D7E;       /* warm coral-rose, the primary accent */
    --accent-ink: #B8604F;   /* deeper coral for text on light bg */
    --accent-soft: #FADDD3;  /* soft tint for hover/panels */
    --accent-pink: #DA8F90;  /* dusty pink, secondary accent */
    --good: #8B9E84;         /* muted sage for success */
    --off: #C97C67;          /* warm error */

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-soft: 0 1px 2px rgba(184, 96, 79, 0.06), 0 10px 30px rgba(184, 96, 79, 0.08);
    --shadow-hover: 0 2px 4px rgba(184, 96, 79, 0.08), 0 16px 40px rgba(184, 96, 79, 0.12);
    --shadow-lift: 0 4px 24px rgba(184, 96, 79, 0.1);
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(1200px 600px at -10% -20%, rgba(226, 141, 126, 0.15), transparent 55%),
        radial-gradient(900px 500px at 110% 0%, rgba(218, 143, 144, 0.12), transparent 55%);
    background-attachment: fixed;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

.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;
}

.masked-input {
    -webkit-text-security: disc;
    text-security: disc;
}

/* Floating cats — home page only */
#cats-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.cat {
    position: absolute;
    font-size: 2rem;
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.2s ease;
    user-select: none;
    opacity: 0.85;
    filter: drop-shadow(0 2px 6px rgba(184, 96, 79, 0.2));
}

.cat:hover {
    transform: scale(1.15);
    opacity: 1;
}

.cat-message {
    position: absolute;
    background: white;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-ink);
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10000;
    animation: messageFloat 3s ease-out forwards;
}

@keyframes messageFloat {
    0%   { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -50px); }
}

a {
    color: var(--accent-ink);
}

/* Password screen */
.password-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg);
    background-image:
        radial-gradient(1000px 500px at 20% -10%, rgba(226, 141, 126, 0.18), transparent 60%),
        radial-gradient(800px 400px at 90% 110%, rgba(218, 143, 144, 0.16), transparent 55%);
}

.password-container {
    background: var(--card);
    padding: 3rem 2.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.password-container h1 {
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.password-container p {
    color: var(--muted);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.password-container input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-container input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.password-container button {
    width: 100%;
    padding: 0.95rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-shadow: 0 6px 18px rgba(226, 141, 126, 0.35);
}

.password-container button:hover {
    background: var(--accent-ink);
    box-shadow: 0 8px 22px rgba(184, 96, 79, 0.4);
}

.password-container button:active {
    transform: translateY(1px);
}

.error-message {
    color: var(--off);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    min-height: 1.2rem;
}

/* Main content + header */
.main-content {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: translateY(0); }
}

.app-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(184, 96, 79, 0.04);
}

.brand {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.2s ease;
    position: relative;
}

.brand::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.55rem;
    vertical-align: middle;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.brand:hover {
    color: var(--accent-ink);
}

.top-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.95rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: var(--radius-pill);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-ink);
    background: var(--accent-soft);
}

.nav-link.active {
    color: var(--accent-ink);
    background: var(--accent-soft);
}

.nav-logout {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease;
}

.nav-logout:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    margin-left: auto;
    width: 40px;
    height: 40px;
    position: relative;
}

.menu-toggle .menu-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    margin: 5px auto;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.app-header.open .menu-toggle .menu-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.app-header.open .menu-toggle .menu-bar:nth-child(2) {
    opacity: 0;
}
.app-header.open .menu-toggle .menu-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

/* Filter tabs (gallery) */
.filter-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.25rem 0;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.tab-btn:hover {
    color: var(--ink);
}

.tab-btn.active {
    color: var(--ink);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.8rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

/* Gallery grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 38, 34, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.view-btn {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Upload section */
.upload-section {
    background: var(--card);
    padding: 2.5rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.upload-section h2 {
    color: var(--ink);
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.upload-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

#file-input {
    display: none;
}

#upload-btn {
    padding: 0.8rem 2.1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px rgba(226, 141, 126, 0.3);
}

#upload-btn:hover {
    background: var(--accent-ink);
    box-shadow: 0 8px 22px rgba(184, 96, 79, 0.35);
}

.upload-info {
    color: var(--muted);
    font-size: 0.88rem;
}

/* Sections + content cards */
.app-section[hidden] {
    display: none;
}

.content-card {
    background: var(--card);
    padding: 2.25rem 2.5rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.content-card p {
    color: var(--ink-2);
    line-height: 1.7;
}

.placeholder-note {
    color: var(--muted);
    font-style: italic;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 14, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.25s ease;
}

.close-lightbox {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    padding: 0.5rem;
    transition: opacity 0.2s ease;
    opacity: 0.8;
}

.close-lightbox:hover {
    opacity: 1;
}

.lightbox-content {
    max-width: 92%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-img,
#lightbox-video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: none;
    font-size: 1.4rem;
    padding: 0.8rem 1.1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.prev-btn { left: 1.5rem; }
.next-btn { right: 1.5rem; }

/* Story section */
.story-view {
    max-width: 760px;
    margin: 0 auto;
}

.story-header {
    text-align: center;
    margin-bottom: 3rem;
}

.story-header h2 {
    color: var(--ink);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
}

.story-subtitle {
    color: var(--muted);
    font-style: italic;
    font-size: 1rem;
}

.story-toc {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.story-part {
    background: var(--card);
    padding: 2rem 2.25rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.story-part h3 {
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.story-part-blurb {
    color: var(--muted);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.story-chapters {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.story-chapter-link {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    padding: 0.8rem 0.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    border-top: 1px solid transparent;
    transition: background 0.2s ease, padding 0.2s ease;
}

.story-chapter-link + .story-chapter-link {
    border-top-color: var(--line);
}

.story-chapter-link:hover {
    background: var(--panel);
    padding-left: 1rem;
}

.story-chapter-link .ch-num {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    min-width: 5.5rem;
    flex-shrink: 0;
}

.story-chapter-link .ch-title {
    font-size: 1rem;
    font-weight: 500;
}

.story-back {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.35rem 0.6rem 0.35rem 0;
    transition: color 0.2s ease;
}

.story-back:hover {
    color: var(--accent);
}

.story-chapter {
    background: var(--card);
    padding: 3rem 3.25rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.story-chapter-head {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.25rem;
}

.ch-num-big {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.6rem;
}

.story-chapter-head h2 {
    color: var(--ink);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1.4rem;
}

.story-lang-toggle {
    display: inline-flex;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.story-lang-toggle a {
    padding: 0.4rem 1.1rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.story-lang-toggle a.active {
    background: var(--ink);
    color: var(--card);
}

.story-lang-toggle a:not(.active):hover {
    color: var(--ink);
}

.story-content {
    font-size: 1.05rem;
    line-height: 1.78;
    color: var(--ink-2);
}

.story-content p {
    margin-bottom: 1.25rem;
}

.story-content h1,
.story-content h2,
.story-content h3 {
    color: var(--ink);
    font-weight: 600;
    margin: 2rem 0 0.85rem;
    letter-spacing: -0.005em;
}

.story-content h1 { font-size: 1.5rem; }
.story-content h2 { font-size: 1.3rem; }
.story-content h3 { font-size: 1.1rem; }

.story-content blockquote {
    border-left: 2px solid var(--accent);
    margin: 1.5rem 0;
    padding: 0.2rem 0 0.2rem 1.25rem;
    color: var(--muted);
    font-style: italic;
}

.story-content hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 2.5rem 0;
}

.story-chapter-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
}

.story-chapter-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.2s ease;
    max-width: 48%;
}

.story-chapter-nav a:hover {
    color: var(--accent);
}

.story-prev { text-align: left; }
.story-next { text-align: right; margin-left: auto; }

/* From River section */
#section-lessons {
    max-width: 780px;
    margin: 0 auto;
}

.welcome-card {
    background: linear-gradient(135deg, #FFF6F2 0%, #FFFFFF 60%);
    text-align: center;
}

.welcome-card h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.welcome-card .heart {
    font-size: 1.4rem;
    vertical-align: middle;
}

.welcome-card .welcome-ru {
    color: var(--accent-ink);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.welcome-card .welcome-en {
    color: var(--ink-2);
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 42em;
    margin: 0 auto;
}

/* Progress */
.progress-card {
    padding: 1.9rem 2.25rem 1.75rem;
}

.eyebrow {
    color: var(--accent-ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.progress-level.end {
    color: var(--accent-ink);
}

.progress-track {
    position: relative;
    height: 10px;
    background: var(--accent-soft);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F5A695 0%, var(--accent) 55%, var(--accent-ink) 100%);
    border-radius: var(--radius-pill);
    transition: width 0.6s ease;
}

.progress-note {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.8rem;
    text-align: center;
}

/* Curriculum */
.lesson-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--card-warm);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lesson-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.lesson-marker {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: var(--accent);
    box-shadow: 0 4px 10px rgba(226, 141, 126, 0.3);
}

.lesson-item.done .lesson-marker {
    background: var(--good);
    box-shadow: 0 4px 10px rgba(139, 158, 132, 0.35);
}

.lesson-item.next {
    background: linear-gradient(135deg, var(--accent-soft) 0%, #FFF6F2 100%);
    border-color: var(--accent);
}

.lesson-item.next .lesson-marker {
    background: var(--accent);
}

.lesson-body {
    flex: 1;
    min-width: 0;
}

.lesson-num {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 0.15rem;
}

.lesson-title {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 600;
}

.lesson-sub {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 0.2rem;
    font-style: italic;
}

.lesson-meta {
    color: var(--muted);
    font-size: 0.85rem;
    flex-shrink: 0;
    text-align: right;
}

.lesson-meta.next-label {
    color: var(--accent-ink);
    font-weight: 600;
}

.score-badge {
    display: inline-block;
    background: var(--good);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
}

/* Recent practice */
.practice-card h2,
.phrases-card h2,
.curriculum-card h2,
.offer-card h2 {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.eyebrow-date {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.practice-intro {
    color: var(--muted);
    margin-bottom: 1.1rem;
    font-size: 0.95rem;
}

.correction {
    background: var(--card-warm);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    margin-bottom: 0.7rem;
    border-left: 3px solid var(--accent);
}

.correction p {
    margin: 0;
    color: var(--ink-2);
    line-height: 1.6;
}

.correction .mark {
    margin-right: 0.3rem;
}

.correction-wrong {
    color: var(--off);
}

.correction-right {
    color: var(--good);
    margin-top: 0.2rem;
}

.correction-note {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-style: italic;
}

.practice-cheerlead {
    margin-top: 1.25rem;
    color: var(--accent-ink);
    font-size: 0.95rem;
    text-align: center;
    font-style: italic;
}

/* Phrases */
.phrase {
    background: var(--card-warm);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin-bottom: 0.65rem;
}

.phrase-en {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0;
}

.phrase-ru {
    color: var(--accent-ink);
    margin-top: 0.25rem;
    font-size: 0.96rem;
}

.phrase-note {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 0.35rem;
    font-style: italic;
}

/* Offer */
.offer-intro {
    margin-bottom: 0.8rem;
    color: var(--ink-2);
}

.offer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.offer-list li {
    padding: 0.55rem 0.9rem 0.55rem 1.6rem;
    background: var(--card-warm);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: 0.95rem;
    position: relative;
}

.offer-list li::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

.offer-sign {
    color: var(--accent-ink);
    font-style: italic;
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
}

/* Responsive: mobile-first adjustments */
@media (max-width: 820px) {
    .app-header {
        padding: 0.85rem 1.1rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .top-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 0 0.25rem;
        border-top: 1px solid var(--line);
        margin-top: 0.85rem;
    }

    .app-header.open .top-nav {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 0.25rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }

    .nav-link:last-of-type {
        border-bottom: none;
    }

    .nav-link.active {
        background: transparent;
        color: var(--accent);
    }

    .nav-logout {
        margin-left: 0;
        margin-top: 0.5rem;
        padding: 0.75rem 0.25rem;
        text-align: left;
        font-size: 0.95rem;
    }

    .container {
        padding: 2rem 1.1rem 3rem;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .content-card {
        padding: 1.75rem 1.5rem;
    }

    .upload-section {
        padding: 1.75rem 1.5rem;
    }

    .story-part {
        padding: 1.5rem 1.25rem;
    }

    .story-chapter {
        padding: 2rem 1.25rem;
    }

    .story-chapter-head h2 {
        font-size: 1.45rem;
    }

    .story-header h2 {
        font-size: 1.6rem;
    }

    .story-chapter-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        padding: 0.8rem 0.25rem;
    }

    .story-chapter-link:hover {
        padding-left: 0.5rem;
    }

    .story-chapter-link .ch-num {
        min-width: auto;
        font-size: 0.7rem;
    }

    .story-chapter-nav {
        font-size: 0.82rem;
    }

    #section-lessons .content-card { padding: 1.75rem 1.5rem; }

    .welcome-card h2 {
        font-size: 1.45rem;
    }

    .lesson-item {
        gap: 0.8rem;
        padding: 0.85rem 0.9rem;
    }

    .lesson-meta {
        font-size: 0.78rem;
    }

    .lesson-title {
        font-size: 0.98rem;
    }

    .progress-card {
        padding: 1.6rem 1.5rem 1.4rem;
    }

    .correction,
    .phrase {
        padding: 0.85rem 0.95rem;
    }

    .offer-list li {
        font-size: 0.9rem;
    }

    .nav-btn {
        padding: 0.6rem 0.8rem;
        font-size: 1.2rem;
    }

    .prev-btn { left: 0.75rem; }
    .next-btn { right: 0.75rem; }

    .close-lightbox {
        top: 0.75rem;
        right: 0.75rem;
    }
}

@media (min-width: 1100px) {
    .app-header {
        padding: 1.1rem 2.5rem;
    }
}

/* Expandable lessons */
.lesson-expand { margin-bottom: 8px; border-radius: 12px; overflow: hidden; }
.lesson-header { padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none; background: rgba(0,0,0,0.03); border-radius: 12px; }
.lesson-header::-webkit-details-marker { display: none; }
.lesson-header span { display: block; }
details[open] .lesson-header { border-radius: 12px 12px 0 0; background: rgba(0,0,0,0.06); }
.lesson-content { padding: 16px; background: rgba(0,0,0,0.02); border-radius: 0 0 12px 12px; line-height: 1.8; }
.lesson-content h3 { margin: 16px 0 8px; font-size: 0.95rem; color: var(--pink, #d4768c); }
.lesson-content h3:first-child { margin-top: 0; }
.lesson-content p { margin: 4px 0; }
