
.practical-page {
    --p-bg: #080b09;
    --p-bg-soft: #0c110e;
    --p-panel: #101612;
    --p-panel-hover: #141d17;
    --p-panel-strong: #151e18;
    --p-border: rgba(255, 255, 255, 0.09);
    --p-border-green: rgba(14, 220, 58, 0.27);
    --p-text: #f2f7f3;
    --p-muted: #a1aea4;
    --p-green: #0edc3a;
    --p-green-bright: #22ff49;
    --p-green-dark: #087b23;
    --p-shadow: 0 18px 50px rgba(0, 0, 0, 0.23);
    --p-media-bg: #070a08;
    --p-scroll-track: #111612;
    --p-scroll-thumb: #34443a;

    margin: 0;
    min-height: 100vh;
    color: var(--p-text);
    background:
        radial-gradient(ellipse at 50% -15%, rgba(14, 220, 58, 0.09), transparent 48%),
        var(--p-bg);
    font-family: "Inter", "Noto Sans Georgian", sans-serif;
    line-height: 1.7;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.practical-page *,
.practical-page *::before,
.practical-page *::after {
    box-sizing: border-box;
}

.practical-page a {
    color: inherit;
    text-decoration: none;
}

.practical-page button {
    font: inherit;
}

.practical-page img {
    max-width: 100%;
}

.practical-page button:focus-visible,
.practical-page a:focus-visible {
    outline: 2px solid var(--p-green-bright);
    outline-offset: 4px;
}

/* LIGHT THEME */

body.light-theme.practical-page {
    --p-bg: #f4f7f4;
    --p-bg-soft: #ffffff;
    --p-panel: #ffffff;
    --p-panel-hover: #f5fbf6;
    --p-panel-strong: #edf5ee;
    --p-border: rgba(20, 45, 27, 0.13);
    --p-border-green: rgba(0, 145, 37, 0.3);
    --p-text: #18241b;
    --p-muted: #536257;
    --p-green: #078b2a;
    --p-green-bright: #087f28;
    --p-green-dark: #06641e;
    --p-shadow: 0 15px 38px rgba(26, 55, 33, 0.09);
    --p-media-bg: #e8eee9;
    --p-scroll-track: #e7eee8;
    --p-scroll-thumb: #aab9ad;

    background:
        radial-gradient(ellipse at 50% -15%, rgba(14, 220, 58, 0.08), transparent 48%),
        var(--p-bg);
}

/* SCROLLBAR */

.practical-page * {
    scrollbar-width: thin;
    scrollbar-color: var(--p-scroll-thumb) var(--p-scroll-track);
}

.practical-page *::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.practical-page *::-webkit-scrollbar-track {
    background: var(--p-scroll-track);
    border-radius: 20px;
}

.practical-page *::-webkit-scrollbar-thumb {
    background: var(--p-scroll-thumb);
    border: 2px solid var(--p-scroll-track);
    border-radius: 20px;
}

.practical-page *::-webkit-scrollbar-thumb:hover {
    background: var(--p-green);
}

/* HEADER */

.practical-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 82px;
    padding: 14px max(24px, calc((100% - 1240px) / 2));
    border-bottom: 1px solid var(--p-border);
    background: var(--p-bg-soft);
}

.practical-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-text strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.brand-text small {
    margin-top: 4px;
    color: var(--p-muted);
    font-family: "Noto Sans Georgian", sans-serif;
    font-size: 10px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-home,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    background: var(--p-panel);
    color: var(--p-text);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.header-home {
    gap: 8px;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 600;
}

.header-home span {
    font-size: 19px;
    color: var(--p-green);
}

.header-home:hover,
.theme-toggle:hover {
    border-color: var(--p-border-green);
    background: var(--p-panel-hover);
}

.theme-toggle {
    width: 43px;
    padding: 0;
    cursor: pointer;
    font-size: 21px;
}

.header-home:active,
.theme-toggle:active {
    transform: scale(0.97);
}

/* MAIN */

.practical-main {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

/* HERO — COMPACT CENTERED DESIGN */

.practical-page .practical-main > .practical-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: min(1000px, 100%);
    min-height: 245px;
    margin: 34px auto 0;
    padding: 40px 48px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--p-border-green);
    border-radius: 22px;
    background:
        linear-gradient(
            115deg,
            var(--p-panel) 0%,
            var(--p-bg-soft) 63%,
            rgba(14, 220, 58, 0.055) 100%
        );
    box-shadow: var(--p-shadow);
}

.hero-glow {
    position: absolute;
    z-index: -1;
    top: -140px;
    left: 15%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(14, 220, 58, 0.09);
    filter: blur(95px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(650px, 100%);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--p-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--p-green);
    box-shadow: 0 0 12px rgba(14, 220, 58, 0.7);
}

.practical-hero h1 {
    margin: 18px 0 15px;
    font-family: "Noto Sans Georgian", sans-serif;
    font-size: clamp(34px, 4.3vw, 54px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1.3px;
}

.practical-hero h1 span {
    color: var(--p-green);
}

.hero-description {
    max-width: 620px;
    margin: 0;
    color: var(--p-muted);
    font-size: 15px;
    line-height: 1.95;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 27px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat strong {
    color: var(--p-text);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
}

.hero-stat span {
    color: var(--p-muted);
    font-size: 11px;
}

.stat-divider {
    width: 1px;
    height: 38px;
    background: var(--p-border);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    margin-top: 25px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #041008 !important;
    background: var(--p-green-bright);
    font-family: "Noto Sans Georgian", sans-serif;
    font-size: 13px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hero-button span {
    font-size: 19px;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 220, 58, 0.18);
}

.hero-decoration {
    position: absolute;
    top: 50%;
    right: 65px;
    width: 250px;
    height: 250px;
    transform: translateY(-50%);
    pointer-events: none;
}

.decoration-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(14, 220, 58, 0.15);
    border-radius: 50%;
}

.ring-one {
    transform: scale(1);
}

.ring-two {
    inset: 28px;
    border-color: rgba(14, 220, 58, 0.23);
}

.decoration-center {
    position: absolute;
    inset: 65px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(14, 220, 58, 0.3);
    border-radius: 50%;
    color: var(--p-green);
    background: var(--p-panel);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 2px;
    box-shadow: 0 0 50px rgba(14, 220, 58, 0.08);
}

/* INSTRUCTION */

.learning-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--p-border-green);
    border-radius: 15px;
    background: var(--p-panel);
}

.notice-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    color: var(--p-green);
    background: rgba(14, 220, 58, 0.1);
    font-size: 17px;
    font-weight: 700;
}

.learning-notice p {
    margin: 0;
    color: var(--p-muted);
    font-size: 13px;
    line-height: 1.9;
}

.learning-notice strong {
    color: var(--p-text);
}

/* LESSON HEADING */

.lessons-section {
    padding-top: 68px;
    scroll-margin-top: 25px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 8px 0 7px;
    font-family: "Noto Sans Georgian", sans-serif;
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 800;
    line-height: 1.5;
}

.section-heading p {
    margin: 0;
    color: var(--p-muted);
    font-size: 13px;
    line-height: 1.8;
}

.topic-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 35px;
    padding: 0 13px;
    border: 1px solid var(--p-border-green);
    border-radius: 10px;
    color: var(--p-green);
    background: var(--p-panel);
    font-size: 12px;
    font-weight: 700;
}

/* LESSON GRID */

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px;
}

.lesson-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--p-border);
    border-radius: 19px;
    background: var(--p-panel);
    box-shadow: var(--p-shadow);
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.lesson-card:hover {
    border-color: var(--p-border-green);
    transform: translateY(-3px);
}

.lesson-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 21px 23px 0;
}

.lesson-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 39px;
    height: 31px;
    padding: 0 8px;
    border: 1px solid var(--p-border-green);
    border-radius: 9px;
    color: var(--p-green);
    background: rgba(14, 220, 58, 0.07);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.lesson-category {
    color: var(--p-muted);
    font-size: 11px;
    font-weight: 600;
}

.lesson-card h3 {
    margin: 13px 23px 18px;
    font-family: "Noto Sans Georgian", sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.65;
}

/* GIF MEDIA */

.lesson-media {
    position: relative;
    display: grid;
    place-items: center;
    width: calc(100% - 46px);
    min-height: 190px;
    max-height: 350px;
    margin: 0 23px;
    overflow: hidden;
    border: 1px solid var(--p-border);
    border-radius: 13px;
    background:
        radial-gradient(circle at center, rgba(14, 220, 58, 0.035), transparent 65%),
        var(--p-media-bg);
}

.lesson-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 350px;
    min-height: 190px;
    object-fit: contain;
    color: var(--p-muted);
    font-size: 12px;
}

.media-label {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(14, 220, 58, 0.22);
    border-radius: 7px;
    color: #22ff49;
    background: rgba(5, 12, 7, 0.85);
    font-size: 10px;
    font-weight: 700;
    pointer-events: none;
}

/* LESSON DETAILS */

.lesson-content {
    padding: 22px 23px 24px;
}

.lesson-content h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 13px;
    font-family: "Noto Sans Georgian", sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.lesson-content h4::before {
    content: "";
    width: 4px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 5px;
    background: var(--p-green);
}

.lesson-content ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lesson-content li {
    position: relative;
    padding-left: 22px;
    color: var(--p-muted);
    font-size: 12px;
    line-height: 1.9;
}

.lesson-content li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 2px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--p-green);
    border-radius: 2px;
    background: rgba(14, 220, 58, 0.13);
    transform: rotate(45deg);
}

.lesson-tip {
    margin: 19px 0 0;
    padding: 12px 13px;
    border-left: 3px solid var(--p-green);
    border-radius: 0 9px 9px 0;
    color: var(--p-muted);
    background: var(--p-panel-strong);
    font-size: 11px;
    line-height: 1.9;
}

.lesson-tip strong {
    color: var(--p-green);
}

/* FINAL NOTICE */

.final-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 42px;
    padding: 25px;
    border: 1px solid var(--p-border-green);
    border-radius: 17px;
    background: var(--p-panel);
}

.final-notice-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    color: #051008;
    background: var(--p-green-bright);
    font-size: 23px;
    font-weight: 800;
}

.final-notice h2 {
    margin: 0 0 7px;
    font-family: "Noto Sans Georgian", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.7;
}

.final-notice p {
    margin: 0;
    color: var(--p-muted);
    font-size: 12px;
    line-height: 2;
}

/* FOOTER */

.practical-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 65px;
    padding: 25px 24px;
    border-top: 1px solid var(--p-border);
    background: var(--p-bg-soft);
    text-align: center;
}

.footer-brand {
    color: var(--p-green) !important;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.practical-footer p,
.practical-footer > span {
    margin: 0;
    color: var(--p-muted);
    font-size: 11px;
}

/* BACK TO TOP */

.back-to-top {
    position: fixed;
    z-index: 30;
    right: 22px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--p-border-green);
    border-radius: 13px;
    color: #041008;
    background: var(--p-green-bright);
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    filter: brightness(1.08);
}

/* IMAGE ERROR STATE */

.lesson-media.is-image-error {
    min-height: 190px;
    padding: 25px;
}

.image-error-message {
    max-width: 300px;
    color: var(--p-muted);
    text-align: center;
    font-size: 12px;
    line-height: 1.9;
}

.image-error-message strong {
    display: block;
    margin-bottom: 5px;
    color: var(--p-text);
    font-size: 14px;
}

.image-error-message code {
    color: var(--p-green);
    overflow-wrap: anywhere;
}

/* RESPONSIVE — 1400 / 600 / 420 */

@media (max-width: 1400px) {
    .practical-main {
        width: min(1160px, calc(100% - 40px));
    }

    .practical-page .practical-main > .practical-hero {
        width: min(1000px, 100%);
        padding: 40px 42px;
    }

    .hero-decoration {
        right: 40px;
        width: 210px;
        height: 210px;
    }

    .decoration-center {
        inset: 55px;
        font-size: 26px;
    }

    .lessons-grid {
        gap: 19px;
    }

    .lesson-topline {
        padding-right: 19px;
        padding-left: 19px;
    }

    .lesson-card h3 {
        margin-right: 19px;
        margin-left: 19px;
    }

    .lesson-media {
        width: calc(100% - 38px);
        margin-right: 19px;
        margin-left: 19px;
    }

    .lesson-content {
        padding-right: 19px;
        padding-left: 19px;
    }
}

@media (max-width: 600px) {
    .practical-header {
        min-height: 70px;
        padding: 12px 16px;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
        border-radius: 11px;
        font-size: 24px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text small {
        max-width: 145px;
        font-size: 9px;
    }

    .header-actions {
        gap: 7px;
    }

    .header-home {
        min-height: 39px;
        gap: 5px;
        padding: 0 10px;
        font-size: 11px;
    }

    .theme-toggle {
        width: 39px;
        min-height: 39px;
        font-size: 19px;
    }

    .practical-main {
        width: calc(100% - 28px);
    }

    .practical-page .practical-main > .practical-hero {
        width: 100%;
        min-height: auto;
        margin-top: 18px;
        padding: 30px 22px;
        border-radius: 19px;
    }

    .hero-decoration {
        top: auto;
        right: -75px;
        bottom: -100px;
        width: 190px;
        height: 190px;
        transform: none;
        opacity: 0.38;
    }

    .decoration-center {
        inset: 50px;
        font-size: 22px;
    }

    .practical-hero h1 {
        margin-top: 15px;
        font-size: clamp(29px, 7vw, 38px);
        letter-spacing: -0.6px;
    }

    .hero-description {
        font-size: 13px;
        line-height: 1.9;
    }

    .hero-stats {
        gap: 17px;
        margin-top: 23px;
    }

    .hero-stat strong {
        font-size: 18px;
    }

    .hero-stat span {
        font-size: 10px;
    }

    .hero-button {
        min-height: 43px;
        margin-top: 22px;
        padding: 0 15px;
        font-size: 12px;
    }

    .learning-notice {
        gap: 10px;
        margin-top: 17px;
        padding: 14px;
        border-radius: 13px;
    }

    .learning-notice p {
        font-size: 11px;
        line-height: 1.9;
    }

    .lessons-section {
        padding-top: 43px;
    }

    .section-heading {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 19px;
    }

    .section-heading h2 {
        font-size: 21px;
    }

    .section-heading p {
        font-size: 11px;
    }

    .topic-counter {
        min-height: 30px;
        padding: 0 9px;
        font-size: 10px;
    }

    .lessons-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .lesson-card {
        border-radius: 16px;
    }

    .lesson-topline {
        padding: 17px 16px 0;
    }

    .lesson-card h3 {
        margin: 12px 16px 15px;
        font-size: 17px;
    }

    .lesson-media {
        width: calc(100% - 32px);
        min-height: 170px;
        max-height: 300px;
        margin: 0 16px;
        border-radius: 11px;
    }

    .lesson-media img {
        min-height: 170px;
        max-height: 300px;
    }

    .lesson-content {
        padding: 19px 16px;
    }

    .lesson-content h4 {
        font-size: 13px;
    }

    .lesson-content li {
        font-size: 11px;
        line-height: 1.9;
    }

    .lesson-tip {
        font-size: 10px;
    }

    .final-notice {
        gap: 12px;
        margin-top: 27px;
        padding: 17px;
    }

    .final-notice-icon {
        width: 33px;
        height: 33px;
        font-size: 20px;
    }

    .final-notice h2 {
        font-size: 14px;
    }

    .final-notice p {
        font-size: 11px;
    }

    .practical-footer {
        gap: 8px 13px;
        margin-top: 42px;
        padding: 21px 14px;
    }

    .back-to-top {
        right: 13px;
        bottom: 13px;
        width: 41px;
        height: 41px;
    }
}

@media (max-width: 420px) {
    .practical-header {
        padding-right: 11px;
        padding-left: 11px;
    }

    .practical-brand {
        gap: 8px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        font-size: 21px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .brand-text small {
        max-width: 120px;
        font-size: 8px;
    }

    .header-home {
        gap: 4px;
        padding: 0 8px;
        font-size: 10px;
    }

    .header-home span {
        font-size: 16px;
    }

    .theme-toggle {
        width: 35px;
        min-height: 37px;
    }

    .practical-main {
        width: calc(100% - 20px);
    }

    .practical-page .practical-main > .practical-hero {
        padding: 25px 16px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .topic-counter {
        align-self: flex-start;
    }

    .lesson-topline {
        padding-right: 13px;
        padding-left: 13px;
    }

    .lesson-card h3 {
        margin-right: 13px;
        margin-left: 13px;
        font-size: 16px;
    }

    .lesson-media {
        width: calc(100% - 26px);
        min-height: 145px;
        margin-right: 13px;
        margin-left: 13px;
    }

    .lesson-media img {
        min-height: 145px;
    }

    .lesson-content {
        padding-right: 13px;
        padding-left: 13px;
    }

    .lesson-content li {
        padding-left: 19px;
        font-size: 10.5px;
    }

    .media-label {
        right: 7px;
        bottom: 7px;
        font-size: 9px;
    }

    .final-notice {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .practical-page *,
    .practical-page *::before,
    .practical-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
