main {

}

.work-info-main-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 100%;
    margin: 40px auto;
    font-size: 1.125rem;
    align-items: flex-start;
    color: var(--text-color);
}

.work-info-container {
    width: 60%;
    max-width: 890px;
    padding: 30px;
    background-color: var(--second-color);
    border-radius: 15px;
    border: 2px solid var(--base-border-color);
}

.work-info-container .work-type {
    margin-top: 0;
    margin-bottom: 10px;
}

.work-info-container h1, .work-info-container h2, .work-info-container h3,  .work-info-container h4 {
    color: white;
}

.work-info-container h1 {
    margin-top: 0;
    font-size: 1.625rem;
}

.demo-work-volume {
    --demo-page-title-color: oklch(0.72 0.09 264);
    --demo-page-contents-color: oklch(0.72 0.1 232);
    --demo-page-intro-color: oklch(0.76 0.12 185);
    --demo-page-main-color: var(--color-primary);
    --demo-page-conclusion-color: oklch(0.78 0.12 92);
    --demo-page-references-color: oklch(0.72 0.1 42);
    --demo-main-body-pages: 15;
    margin: 0.85rem 0 1.75rem;
    padding: 1rem;
    border: 1px solid color-mix(in oklch, var(--color-line) 82%, var(--color-primary));
    border-radius: 12px;
    background: color-mix(in oklch, var(--color-surface-1) 86%, var(--color-bg));
}

.demo-work-volume__summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.demo-work-volume__summary > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.demo-work-volume__eyebrow {
    color: var(--color-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.demo-work-volume__value {
    color: var(--color-text);
    font-size: 1.125rem;
    line-height: 1.25;
}

.demo-work-volume__value-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.demo-work-volume__tooltip {
    position: relative;
    display: inline-flex;
}

.demo-work-volume__tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid color-mix(in oklch, var(--color-primary) 58%, var(--color-line));
    border-radius: 50%;
    background: color-mix(in oklch, var(--color-primary) 10%, var(--color-surface-2));
    color: var(--color-primary);
    cursor: help;
}

.demo-work-volume__tooltip-trigger svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.demo-work-volume__tooltip-trigger:hover {
    border-color: var(--color-primary);
    background: color-mix(in oklch, var(--color-primary) 18%, var(--color-surface-2));
}

.demo-work-volume__tooltip-trigger:focus-visible {
    outline: 2px solid color-mix(in oklch, var(--color-primary) 68%, transparent);
    outline-offset: 2px;
}

.demo-work-volume__tooltip-content {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 50%;
    width: min(300px, calc(100vw - 48px));
    margin-top: 0.4rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid color-mix(in oklch, var(--color-line) 72%, var(--color-primary));
    border-radius: 10px;
    background: var(--color-surface-2);
    box-shadow: 0 12px 28px oklch(0.07 0.02 278 / 0.42);
    color: var(--color-text);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transform: translate(-32%, 4px);
    visibility: hidden;
    transition: opacity 160ms cubic-bezier(0.25, 1, 0.5, 1), transform 160ms cubic-bezier(0.25, 1, 0.5, 1), visibility 160ms;
}

.demo-work-volume__tooltip-content::before {
    position: absolute;
    top: -6px;
    left: calc(32% - 5px);
    width: 10px;
    height: 10px;
    border-top: 1px solid color-mix(in oklch, var(--color-line) 72%, var(--color-primary));
    border-left: 1px solid color-mix(in oklch, var(--color-line) 72%, var(--color-primary));
    background: var(--color-surface-2);
    content: '';
    transform: rotate(45deg);
}

.demo-work-volume__tooltip:hover .demo-work-volume__tooltip-content,
.demo-work-volume__tooltip:focus-within .demo-work-volume__tooltip-content {
    opacity: 1;
    transform: translate(-32%, 8px);
    visibility: visible;
}

.demo-work-volume__total {
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 650;
    text-align: right;
}

.demo-work-volume__description {
    max-width: 65ch;
    margin: 0.65rem 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.demo-page-distribution-bar {
    display: flex;
    width: 100%;
    height: 34px;
    margin-top: 0.9rem;
    overflow: hidden;
    border: 1px solid color-mix(in oklch, var(--color-line) 78%, transparent);
    border-radius: 9px;
    background: var(--color-bg);
}

.demo-page-segment {
    min-width: 14px;
    border-inline-end: 2px solid color-mix(in oklch, var(--color-bg) 80%, transparent);
}

.demo-page-segment:last-child {
    border-inline-end: 0;
}

.demo-page-segment--title {
    flex: 1 1 0;
    background: var(--demo-page-title-color);
}

.demo-page-segment--contents {
    flex: 1 1 0;
    background: var(--demo-page-contents-color);
}

.demo-page-segment--intro {
    flex: 1.5 1 0;
    background: var(--demo-page-intro-color);
}

.demo-page-segment--main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: var(--demo-main-body-pages) 1 90px;
    min-width: 90px;
    background: var(--demo-page-main-color);
    color: var(--color-bg);
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
}

.demo-page-segment--conclusion {
    flex: 1.5 1 0;
    background: var(--demo-page-conclusion-color);
}

.demo-page-segment--references {
    flex: 1 1 0;
    background: var(--demo-page-references-color);
}

.demo-page-distribution-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem 1rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.demo-page-distribution-legend li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    min-width: 0;
    margin: 0;
    color: var(--color-muted);
    font-size: 0.875rem;
    line-height: 1.35;
}

.demo-page-distribution-legend strong {
    display: block;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 700;
}

.demo-page-legend-main strong {
    color: var(--color-primary);
}

.demo-page-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 0.2rem;
    border-radius: 50%;
    background: var(--demo-page-dot-color);
}

.demo-page-dot--title { --demo-page-dot-color: var(--demo-page-title-color); }
.demo-page-dot--contents { --demo-page-dot-color: var(--demo-page-contents-color); }
.demo-page-dot--intro { --demo-page-dot-color: var(--demo-page-intro-color); }
.demo-page-dot--main { --demo-page-dot-color: var(--demo-page-main-color); }
.demo-page-dot--conclusion { --demo-page-dot-color: var(--demo-page-conclusion-color); }
.demo-page-dot--references { --demo-page-dot-color: var(--demo-page-references-color); }

.work-info-container h2 {
    font-size: 1.5rem;
    text-align: start;
}

.work-info-container h3, .work-info-container h4 {
    margin-bottom: 0;
}

html {
    scroll-behavior: smooth;
}

.generation-process-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin: 22px 0 30px;
    padding: 18px 20px;
    color: oklch(96% 0.012 195);
    text-decoration: none;
    background:
        radial-gradient(circle at 88% 10%, oklch(78% 0.16 203 / 0.2), transparent 34%),
        linear-gradient(135deg, oklch(24% 0.035 250) 0%, oklch(18% 0.026 285) 100%);
    border: 1px solid oklch(82% 0.12 202 / 0.3);
    border-radius: 16px;
    box-shadow: 0 16px 34px oklch(5% 0.02 255 / 0.35);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.generation-process-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0 58%, oklch(87% 0.13 190 / 0.08) 58% 59%, transparent 59%);
    pointer-events: none;
}

.generation-process-link__content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.generation-process-link__label {
    width: fit-content;
    color: oklch(87% 0.16 190);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.generation-process-link__title {
    color: oklch(98% 0.008 200);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.generation-process-link__description {
    max-width: 58ch;
    color: oklch(85% 0.018 230);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.generation-process-link__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: oklch(23% 0.04 235);
    background: oklch(87% 0.16 190);
    box-shadow: 0 10px 24px oklch(80% 0.16 190 / 0.2);
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.generation-process-link__arrow::before {
    content: '\2193';
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.generation-process-link:hover {
    color: oklch(98% 0.008 200);
    transform: translateY(-2px);
    border-color: oklch(87% 0.16 190 / 0.54);
    box-shadow: 0 22px 42px oklch(5% 0.02 255 / 0.45);
}

.generation-process-link:hover .generation-process-link__arrow {
    transform: translateY(4px);
    background: oklch(93% 0.11 190);
}

.generation-process-link:focus-visible {
    outline: 3px solid oklch(87% 0.16 190 / 0.42);
    outline-offset: 3px;
}

.generation-process {
    scroll-margin-top: 24px;
    margin-top: clamp(42px, 7vw, 76px);
    padding: clamp(24px, 5vw, 44px);
    color: oklch(89% 0.014 235);
    background:
        radial-gradient(circle at 92% 2%, oklch(70% 0.19 295 / 0.18), transparent 30%),
        radial-gradient(circle at 5% 92%, oklch(82% 0.16 190 / 0.12), transparent 32%),
        linear-gradient(155deg, oklch(20% 0.035 262) 0%, oklch(14% 0.02 255) 68%);
    border: 1px solid oklch(76% 0.08 245 / 0.28);
    border-radius: 24px;
    box-shadow: 0 26px 60px oklch(4% 0.015 255 / 0.4);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.generation-process::before {
    content: '';
    position: absolute;
    inset: 1px;
    border: 1px solid oklch(98% 0.01 220 / 0.05);
    border-radius: 23px;
    pointer-events: none;
}

.generation-process:target {
    animation: generation-process-arrival 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.generation-process:focus {
    outline: none;
}

.generation-process:focus-visible {
    outline: 2px solid oklch(0.76 0.145 205 / 0.65);
    outline-offset: 4px;
}

.generation-process__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.generation-process__eyebrow {
    margin: 0 0 8px;
    color: oklch(87% 0.16 190);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.035em;
}

.work-info-container .generation-process h2 {
    max-width: 18ch;
    margin: 0;
    color: oklch(98% 0.008 205);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.generation-process__lead {
    max-width: 66ch;
    margin: 16px 0 0;
    color: oklch(82% 0.018 235);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.generation-process__count {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
    color: oklch(91% 0.025 225);
    background: oklch(98% 0.01 220 / 0.055);
    border: 1px solid oklch(92% 0.04 220 / 0.12);
    border-radius: 999px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.generation-process__count strong {
    color: oklch(89% 0.17 190);
    font-size: 1.25rem;
    line-height: 1;
}

.generation-process__assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 26px;
    padding: 18px 0;
    border-top: 1px solid oklch(90% 0.03 230 / 0.1);
    border-bottom: 1px solid oklch(90% 0.03 230 / 0.1);
    position: relative;
    z-index: 1;
}

.generation-process__assurances span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: oklch(88% 0.02 230);
    font-size: 0.875rem;
    line-height: 1.4;
}

.generation-process__assurances span::before {
    content: '\2713';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: oklch(18% 0.035 245);
    background: oklch(85% 0.15 190);
    font-size: 0.75rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.generation-process__stages {
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.generation-process__stage {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 22px;
    padding: 0 0 32px;
    position: relative;
}

.generation-process__stage:last-child {
    padding-bottom: 0;
}

.generation-process__stage:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 58px;
    bottom: 4px;
    left: 27px;
    width: 1px;
    background: linear-gradient(180deg, oklch(82% 0.13 190 / 0.55), oklch(69% 0.15 292 / 0.25));
}

.generation-process__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: oklch(89% 0.14 190);
    background: oklch(80% 0.13 190 / 0.09);
    border: 1px solid oklch(84% 0.14 190 / 0.34);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 24px oklch(4% 0.02 250 / 0.3);
}

.generation-process__marker--final {
    color: oklch(17% 0.04 240);
    background: linear-gradient(135deg, oklch(87% 0.16 190), oklch(82% 0.13 300));
    border-color: transparent;
}

.generation-process__stage-content {
    padding: 4px 0 30px;
    border-bottom: 1px solid oklch(90% 0.03 230 / 0.1);
}

.generation-process__stage:last-child .generation-process__stage-content {
    padding-bottom: 0;
    border-bottom: 0;
}

.work-info-container .generation-process__stage h3 {
    margin: 0 0 9px;
    color: oklch(96% 0.014 220);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.generation-process__stage p {
    max-width: 70ch;
    margin: 0;
    color: oklch(82% 0.015 235);
    font-size: 1rem;
    line-height: 1.7;
}

.generation-process__stage p strong {
    color: oklch(93% 0.075 190);
    font-weight: 650;
}

@keyframes generation-process-arrival {
    0% {
        box-shadow: 0 0 0 0 oklch(86% 0.16 190 / 0.42), 0 26px 60px oklch(4% 0.015 255 / 0.4);
    }
    100% {
        box-shadow: 0 0 0 16px oklch(86% 0.16 190 / 0), 0 26px 60px oklch(4% 0.015 255 / 0.4);
    }
}


.warning-block {
    background: #181824;
    color: #f5f5fa;
    padding: 12px 12px;
    margin: 15px 0;
    border: 2px solid;
    border-image: linear-gradient(90deg, #6c63ff, #00e0d3) 1;
    font-size: 1.25rem;
}

.content-table ul {
    list-style: none;
    padding-left: 0;
    font-size: 1.25rem;
}

.content-table ul li {
    margin-bottom: 7px;
}

.content-table ul li span:nth-child(1) {
    display: block;
    width: 100%;
}

.content-table ul li a:link, .content-table ul li a:visited {
    text-decoration: none;
    color: var(--text-color);
}

.content-table ul li a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.content-table ul li a:hover {
    border-bottom: 1px solid var(--text-color);
    transition: 0.3s ease-in-out;
}


.work-features-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(40, 40, 48, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.feature-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(30, 30, 38, 0.7);
    border-radius: 10px;
    border-left: 3px solid #6c63ff;
    transition: all 0.3s ease;
}

.feature-card h4 {
    margin-bottom: 3px;
}

.feature-card:hover {
    background: rgba(35, 35, 45, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.15);
    border-radius: 50%;
    border: 2px solid rgba(108, 99, 255, 0.3);
}

.feature-icon img {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 0 3px rgba(108, 99, 255, 0.5));
}

.feature-content {
    flex: 1;
}

.feature-title {
    color: #6c63ff;
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-content p {
    margin: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
}

.feature-tasks {
    margin: 0;
    padding-left: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
    list-style: none;
}

.feature-tasks li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 12px;
}

.feature-tasks li:before {
    content: '•';
    color: #6c63ff;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .work-features-container {
        padding: 10px;
    }

    .feature-card {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
    }

    .feature-title {
        font-size: 1.15rem;
    }

    .feature-content p,
    .feature-tasks {
        font-size: 1rem;
    }
}

/* Для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .work-features-container {
        padding: 18px;
    }

    .feature-card {
        padding: 18px;
    }
}


.content-wrapper {
    display: flex;
    flex-direction: column;
    column-gap: 30px;
    font-size: 1.25rem;
}

.content-wrapper h3 {
    font-size: 1.375rem;
}

.content-wrapper div {
    line-height: 1.3;
}

.content-wrapper p {
    margin-top: 8px;
}

.content-wrapper ol {
    padding-left: 20px;
    word-break: break-word;
}

.content-wrapper ol li {
    margin-bottom: 8px;
}

#edit-work-button {
    display: block;
    cursor: pointer;
    padding: 12px 22px;
    background: none;
    border-radius: 6px;
    border: 2px solid var(--button-color);
    color: white;
    font-size: 1.125rem;
}

.demo-plan-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 28px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in oklch, var(--color-line) 72%, transparent);
}

#edit-plan-button,
#edit-plan-with-ai-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 1 230px;
    gap: 9px;
    min-width: 210px;
    min-height: 48px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms cubic-bezier(0.25, 1, 0.5, 1), border-color 180ms cubic-bezier(0.25, 1, 0.5, 1), color 180ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 180ms cubic-bezier(0.25, 1, 0.5, 1), transform 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

#edit-plan-button svg,
#edit-plan-with-ai-button svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#edit-plan-button {
    border-color: color-mix(in oklch, var(--color-primary) 82%, var(--color-line));
    background: var(--color-primary);
    box-shadow: 0 8px 20px color-mix(in oklch, var(--color-primary) 18%, transparent);
    color: var(--color-bg);
}

#edit-plan-with-ai-button {
    border-color: color-mix(in oklch, var(--color-primary) 42%, var(--color-line));
    background: color-mix(in oklch, var(--color-surface-2) 72%, transparent);
    color: var(--color-text);
}

#edit-plan-button:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary-hover);
    box-shadow: 0 11px 24px color-mix(in oklch, var(--color-primary) 24%, transparent);
    color: var(--color-bg);
    transform: translateY(-1px);
}

#edit-plan-with-ai-button:hover {
    border-color: color-mix(in oklch, var(--color-primary) 70%, var(--color-line));
    background: color-mix(in oklch, var(--color-primary) 10%, var(--color-surface-2));
    color: var(--color-text);
    transform: translateY(-1px);
}

#edit-plan-button:focus-visible,
#edit-plan-with-ai-button:focus-visible {
    outline: 3px solid color-mix(in oklch, var(--color-primary-hover) 55%, transparent);
    outline-offset: 3px;
}

#edit-plan-button:active,
#edit-plan-with-ai-button:active {
    box-shadow: none;
    transform: translateY(0);
}

#edit-work-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 22px;
    margin: 18px 0 26px;
    text-decoration: none;
    color: white;
    background: linear-gradient(180deg, rgba(21, 29, 44, 0.98) 0%, rgba(11, 16, 27, 0.98) 100%);
    border: 1px solid rgba(167, 255, 250, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#edit-work-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, oklch(0.76 0.145 205 / 0.2), transparent 36%),
        radial-gradient(circle at bottom right, oklch(0.78 0.14 72 / 0.18), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

#edit-work-button::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 17px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

#edit-work-button:hover {
    color: white;
    transform: translateY(-3px);
    border-color: rgba(167, 255, 250, 0.28);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.3);
}

#edit-work-button:hover .edit-work-button__icon {
    transform: translateX(4px) rotate(-6deg);
    background: linear-gradient(135deg, var(--button-color) 0%, #b5fffb 100%);
    color: #041018;
    box-shadow: 0 16px 30px oklch(0.76 0.145 205 / 0.25);
}

#edit-work-button:hover .edit-work-button__badge {
    border-color: rgba(167, 255, 250, 0.34);
    color: #dffffd;
}

#edit-work-button:hover .edit-work-button__title {
    color: #ffffff;
}

#edit-work-button:hover .edit-work-button__subtitle {
    color: rgba(255, 255, 255, 0.9);
}

#edit-work-button:focus-visible {
    outline: none;
    border-color: rgba(167, 255, 250, 0.34);
    box-shadow: 0 0 0 3px oklch(0.76 0.145 205 / 0.16), 0 24px 46px rgba(0, 0, 0, 0.28);
}

.edit-work-button__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.edit-work-button__badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(167, 255, 250, 0.22);
    background: oklch(0.76 0.145 205 / 0.08);
    color: var(--button-color);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.edit-work-button__title {
    color: #f8fbff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.edit-work-button__subtitle {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.0625rem;
    line-height: 1.45;
    max-width: 34ch;
    transition: color 0.3s ease;
}

.edit-work-button__icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(25, 36, 54, 0.95) 0%, rgba(17, 25, 39, 0.95) 100%);
    border: 1px solid rgba(167, 255, 250, 0.14);
    color: var(--button-color);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateX(0);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.edit-work-button__icon::before {
    content: '\2192';
    display: block;
    line-height: 1;
}

.partition {
    padding-left: 20px;
    margin-bottom: 15px;
    margin-top: 8px;
    list-style: none;
}

#intro {
    margin-top: 20px;
    /*line-height: 1.3;*/
}

.tasks-promo-minimal {
    background: rgba(40, 40, 48, 0.8);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #6c63ff;
    margin: 25px 0 0;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 99, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.promo-header h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.25rem;
}

.promo-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.minimal-button {
    display: block;
    text-align: center;
    padding: 12px;
    background: #6c63ff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.minimal-button:hover {
    background: #5a52d5;
    transform: translateY(-1px);
}

.aside-container {
    display: flex;
    width: 25%;
    min-width: 310px;
    max-width: 350px;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
    position: sticky;
    top: 10px;
}

.aside-container-demo {
    border: 2px solid var(--base-border-color);
    background-color: var(--second-color);
    border-radius: 15px;
    padding: 18px;
    position: sticky;
    top: 10px;
    max-width: 330px;
}

.red {
    border-color: red;
}

.payment-info {
    width: 100%;
    background: linear-gradient(180deg, rgba(22, 29, 44, 0.98) 0%, rgba(14, 19, 30, 0.98) 100%);
    border-radius: 18px;
    border: 1px solid rgba(167, 255, 250, 0.16);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.payment-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, oklch(0.76 0.145 205 / 0.16), transparent 38%),
        radial-gradient(circle at bottom right, rgba(108, 99, 255, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.payment-info::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 17px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.payment-info h2, .aside-container-demo h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: center;
}

.payment-info h2 {
    width: 100%;
    margin: 0;
    text-align: left;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.payment-info h2::after {
    content: '';
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--button-color) 0%, rgba(108, 99, 255, 0.9) 100%);
}

.features-full {
    list-style: none;
    padding-left: 0;
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.features-full li {
    margin-bottom: 15px;
    display: flex;
    justify-content: start;
    align-items: center;
    column-gap: 10px;
}

.features-full li img {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
}

.features-full__rating {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 6px;
    padding: 12px 14px;
    max-width: 100%;
    width: fit-content;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 201, 72, 0.2), rgba(255, 152, 56, 0.12));
    border: 1px solid rgba(255, 210, 98, 0.32);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.features-full__star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: #ffd84d;
    font-size: 1.25rem;
    line-height: 1;
    text-shadow: 0 0 14px rgba(255, 216, 77, 0.7), 0 0 28px rgba(255, 171, 64, 0.38);
}

.aside-container-demo a, #generate-button, #buy-button {
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    color: black;
    font-size: 1.25rem;
    font-weight: bold;
    background-color: var(--button-color);
    padding: 12px 25px;
    border-radius: 12px;
    display: block;
    width: 100%;
}

#generate-button,
#buy-button {
    border: none;
}

.aside-container-demo a:hover, #generate-button:hover, #buy-button:hover {
    background-color: var(--color-primary-hover);
}

#generate-button:disabled {
    cursor: not-allowed;
    background-color: var(--base-border-color);
    border-color: var(--base-border-color);
}


.export-buttons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.export-buttons button {
    cursor: pointer;
    flex: 1 1 138px;
    min-height: 60px;
    padding: 14px 18px;
    color: white;
    border: 1px solid rgba(167, 255, 250, 0.22);
    border-radius: 14px;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.export-buttons button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.export-buttons button::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

#word-export,
#speech-export-word {
    background: linear-gradient(135deg, oklch(0.76 0.145 205 / 0.16) 0%, oklch(0.76 0.145 205 / 0.05) 100%);
}

#pdf-export {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(108, 99, 255, 0.07) 100%);
    border-color: rgba(143, 136, 255, 0.28);
}

.export-buttons button:hover {
    transform: translateY(-2px);
}

#word-export:hover,
#speech-export-word:hover {
    color: #081018;
    border-color: transparent;
    background: linear-gradient(135deg, var(--button-color) 0%, #c0fffb 100%);
    box-shadow: 0 16px 30px oklch(0.76 0.145 205 / 0.22);
}

#pdf-export:hover {
    color: #081018;
    border-color: transparent;
    background: linear-gradient(135deg, #8f88ff 0%, var(--color-warm) 100%);
    box-shadow: 0 16px 30px rgba(108, 99, 255, 0.24);
}

.export-buttons button:focus-visible {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 0 3px oklch(0.76 0.145 205 / 0.18);
}

.rating-container {
    width: 100%;
    background-color: var(--second-color);
    border-radius: 15px;
    border: 2px solid var(--base-border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 18px;
}

.rating-container.colorized {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    align-items: flex-start;
    padding: 24px;
    gap: 14px;
    background: linear-gradient(155deg, #171d2e 0%, #101623 100%);
    border: 1px solid rgba(167, 255, 250, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.rating-container.colorized::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, oklch(0.76 0.145 205 / 0.22), transparent 42%),
        radial-gradient(circle at bottom left, rgba(108, 99, 255, 0.22), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    background-size: 160% 160%;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
    animation: gradient-border 14s ease infinite;
}

.rating-container.colorized::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
    pointer-events: none;
}

@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.rating-container h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    margin-top: 0;
    z-index: 2;
    color: white;
}

.rating-container.colorized h3 {
    font-size: 1.625rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: left;
}

.rating-container a {
    text-decoration: none;
    color: var(--button-color);
    z-index: 2;
}

.rating-container.colorized a {
    color: #d9fffd;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(167, 255, 250, 0.45);
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.rating-container.colorized a:hover {
    color: white;
    text-decoration-color: rgba(255, 255, 255, 0.75);
}

.span-colorized {
    display: block;
    z-index: 2;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.0625rem;
    line-height: 1.55;
    max-width: 24ch;
}

#rating-open, #generate-speech {
    cursor: pointer;
    width: 100%;
    height: 50px;
    color: white;
    border: 2px solid var(--button-color);
    border-radius: 12px;
    font-size: 1.125rem;
    background: none;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

#rating-open {
    background: linear-gradient(135deg, var(--button-color) 0%, #7af7ee 100%);
    color: #081018;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 28px oklch(0.76 0.145 205 / 0.22);
}

#rating-open:hover {
    background: linear-gradient(135deg, #c0fffb 0%, #85f8f0 100%);
    color: #041018;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px oklch(0.76 0.145 205 / 0.32);
}

#generate-speech:hover {
    background-color: var(--color-primary-hover);
    color: black;
}

#generate-speech:disabled {
    cursor: not-allowed;
    background-color: var(--color-primary-hover);
    color: black;
    opacity: 0.6;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, oklch(0.76 0.145 205 / 0.08), rgba(4, 8, 15, 0.92) 55%),
        rgba(3, 6, 12, 0.88);
    backdrop-filter: blur(10px);
    z-index: 40;
    animation: fadeIn 0.22s ease-out;
}

#myModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(calc(100vw - 32px), 470px);
    min-width: 0;
    max-width: 470px;
    padding: 30px 24px 24px;
    background: linear-gradient(180deg, rgba(20, 28, 43, 0.98) 0%, rgba(11, 17, 28, 0.98) 100%);
    border: 1px solid rgba(167, 255, 250, 0.18);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    z-index: 50;
    color: white;
    overflow: hidden;
    isolation: isolate;
    animation: modal-pop 0.28s ease-out;
}

#myModal::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, oklch(0.76 0.145 205 / 0.16), transparent 35%),
        radial-gradient(circle at bottom right, oklch(0.78 0.14 72 / 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

#myModal::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 23px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.close-btn {
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    z-index: 2;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: #041018;
    background: linear-gradient(135deg, var(--button-color) 0%, #b9fffb 100%);
    border-color: transparent;
    transform: rotate(90deg);
    text-decoration: none;
    cursor: pointer;
}

#myModal > p {
    position: relative;
    z-index: 1;
    margin: 0 52px 18px 0;
    padding: 0;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.12;
    color: #f8fbff;
}

#myModal > p::after {
    content: '';
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--button-color) 0%, oklch(0.78 0.14 72 / 0.95) 100%);
}

#review-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    align-items: stretch;
    font-size: 1.125rem;
}

#review-form label {
    align-self: start;
    padding-left: 2px;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: #ffb0bb;
}

#review-form label:empty {
    display: none;
}

#review-form textarea {
    width: 100%;
    height: 172px;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 16px 18px;
    font-size: 1.0625rem;
    line-height: 1.6;
    font-family: inherit;
    resize: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#review-form textarea:focus {
    outline: none;
    border-color: rgba(167, 255, 250, 0.55);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px oklch(0.76 0.145 205 / 0.12);
}

#review-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.48);
    font-style: normal;
}

#review-form button {
    width: 100%;
    min-height: 56px;
    max-width: none;
    color: #061018;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--button-color) 0%, #91fff7 48%, #d6c0ff 100%);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    cursor: pointer;
    box-shadow: 0 18px 32px oklch(0.76 0.145 205 / 0.18);
    margin-top: 4px;
}

#review-form button:hover {
    background: linear-gradient(135deg, #c0fffb 0%, #97fff8 48%, #e1d0ff 100%);
    color: #041018;
    transform: translateY(-2px);
    box-shadow: 0 22px 34px oklch(0.76 0.145 205 / 0.24);
    filter: saturate(1.03);
}

#review-form button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px oklch(0.76 0.145 205 / 0.14), 0 20px 34px oklch(0.76 0.145 205 / 0.2);
}

.star-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    cursor: pointer;
}

.star-rating span,
.star-rating .star {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.star-rating span:hover,
.star-rating .star:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: rgba(167, 255, 250, 0.2);
    background: linear-gradient(180deg, rgba(167, 255, 242, 0.12), rgba(255, 255, 255, 0.03));
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.2);
}

.promocode-container div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    font-size: 1.125rem;
}

.promocode-container div label {
    align-self: start;
    padding-left: 4px;
}

.promocode-container div input {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    border: 2px solid var(--base-border-color);
    background: var(--second-color);
    padding: 0 10px;
    color: white;
    font-size: 1.125rem;
}

.promocode-container div input:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 10px var(--button-color);
    transition: 0.3s ease-in-out;
}

.promocode-container select {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    border: 2px solid var(--base-border-color);
    background: var(--second-color);
    padding: 0 10px;
    color: white;
    font-size: 1.125rem;
    margin-bottom: 15px;
}

.promocode-container select:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 10px var(--button-color);
    transition: 0.4s ease-in-out;
}

.promocode-container select:hover {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 10px var(--button-color);
    transition: 0.4s ease-in-out;
}

#promo-button {
    width: 100%;
    height: 50px;
    color: white;
    border: 2px solid var(--button-color);
    border-radius: 12px;
    font-size: 1.125rem;
    background: none;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    margin-top: 12px;
}

#promo-button:hover {
    background-color: var(--color-primary-hover);
    color: black;
}

.promo-info {
    font-size: 1.25rem;
    margin-bottom: 0;
    text-align: center;
}

.promocode-container span {
    font-size: 1.125rem;
    text-align: center;
    display: block;
    width: 100%;
    margin-top: 7px;
}

.generation-info-text {
    font-size: 1.1875rem;
    margin-bottom: 15px;
    margin-top: 10px;
}

.how-much-bonus-container {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 5px;
}

.how-much-bonus-container .demo-work-volume__tooltip-content {
    right: 0;
    left: auto;
    transform: translate(0, 4px);
}

.how-much-bonus-container .demo-work-volume__tooltip-content::before {
    right: 8px;
    left: auto;
}

.how-much-bonus-container .demo-work-volume__tooltip:hover .demo-work-volume__tooltip-content,
.how-much-bonus-container .demo-work-volume__tooltip:focus-within .demo-work-volume__tooltip-content {
    transform: translate(0, 8px);
}



.loader {
    display: inline-block;
    text-align: center;
    line-height: 80px;
    position: relative;
    padding: 0 48px;
    font-size: 1.75rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    width: 100%;
}

.loader:before, .loader:after {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    background: currentColor;
    position: absolute;
    animation: load .9s infinite alternate ease-in-out;
    top: 0;
    color: var(--button-color);
}

.loader:after {
    top: auto;
    bottom: 0;
}

.modal-by-ai {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.by-ai-modal-content {
    margin: 10% auto;
    width: 95%;
    position: relative;
    background-color: var(--second-color);
    border: 2px solid var(--base-border-color);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    min-width: 320px;
    max-width: 650px;
    color: white;
}

.by-ai-modal-content h3 {
    text-align: center;
}

.close-by-ai-modal {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
}

#edit-by-ai-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#edit-by-ai-form label {
    justify-self: start;
    font-size: 1.0625rem;
    margin-bottom: 3px;
}

#edit-by-ai-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--base-border-color);
    border-radius: 8px;
    background-color: #2d2d2d;
    color: white;
    font-size: 1rem;
    margin-bottom: 12px;
}

#edit-by-ai-form textarea:focus {
    outline: none;
    border-color: var(--button-color);
}

#edit-by-ai-form::placeholder {
    font-family: Arial, Helvetica, sans-serif;
}

.form-group {
    margin-top: 12px;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--base-border-color);
    border-radius: 8px;
    background-color: #2d2d2d;
    color: white;
    font-size: 1rem;
}

.plan-type-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-type-options {
    display: flex;
    gap: 10px;
}

.form-control:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.plan-type-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.plan-type-btn {
    padding: 8px 16px;
    border: 1px solid var(--button-color);
    border-radius: 6px;
    background-color: transparent;
    /*color: #4a90e2;*/
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.plan-type-options input[type="radio"]:checked + .plan-type-btn {
    background-color: var(--button-color);
    border-color: var(--button-color);
    color: black;
}

.plan-type-btn:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

#send-user-wishes {
    max-width: 200px;
    width: 100%;
    margin: 15px auto 0;
    color: white;
    font-size: 1.125rem;
    padding: 10px;
    border: 2px solid var(--button-color);
    border-radius: 8px;
    background: none;
    cursor: pointer;
}

#send-user-wishes:hover {
    background-color: var(--color-primary-hover);
    color: black;
    transition: 0.3s ease-in-out;
}

#edit-plan-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    max-height: min(68vh, 760px);
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: oklch(0.76 0.145 205 / 0.34) rgba(255, 255, 255, 0.04);
}

#edit-plan-form::-webkit-scrollbar {
    width: 8px;
}

#edit-plan-form::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

#edit-plan-form::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, oklch(0.76 0.145 205 / 0.6) 0%, oklch(0.78 0.14 72 / 0.55) 100%);
    border-radius: 999px;
}

.modal-plan {
    display: none;
    position: fixed;
    inset: 0;
    padding: 28px 16px;
    background:
        radial-gradient(circle at top, oklch(0.76 0.145 205 / 0.08), rgba(4, 8, 15, 0.92) 55%),
        rgba(3, 6, 12, 0.88);
    backdrop-filter: blur(12px);
    overflow-y: auto;
    z-index: 1000;
    animation: fadeIn 0.22s ease-out;
}

.plan-modal-content {
    margin: 4vh auto;
    width: min(calc(100vw - 32px), 720px);
    position: relative;
    background: linear-gradient(180deg, rgba(20, 28, 43, 0.98) 0%, rgba(11, 17, 28, 0.98) 100%);
    border: 1px solid rgba(167, 255, 250, 0.18);
    border-radius: 24px;
    padding: 28px 24px 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    z-index: 2;
    min-width: 0;
    max-width: 720px;
    color: white;
    overflow: hidden;
    isolation: isolate;
}

.plan-modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, oklch(0.76 0.145 205 / 0.16), transparent 35%),
        radial-gradient(circle at bottom right, oklch(0.78 0.14 72 / 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.plan-modal-content::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 23px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.plan-modal-content h3 {
    position: relative;
    z-index: 1;
    margin: 0 52px 22px 0;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.12;
    color: #f8fbff;
}

.plan-modal-content h3::after {
    content: '';
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--button-color) 0%, oklch(0.78 0.14 72 / 0.95) 100%);
}

#plan-items,
#chapters-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#chapters-container span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--button-color);
    background: oklch(0.76 0.145 205 / 0.08);
    border: 1px solid rgba(167, 255, 250, 0.16);
    border-radius: 999px;
    margin-bottom: 8px;
    align-self: start;
}

.plan-item, .chapter-item {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.plan-item:hover, .chapter-item:hover {
    border-color: rgba(167, 255, 250, 0.16);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
}

.chapter-item {
    flex-direction: column;
    align-items: stretch;
}

.section-item {
    width: 100%;
    gap: 10px;
    display: flex;
    align-items: center;
}

.chapter-header, .sections-container {
    display: flex;
    width: 100%;
    margin-bottom: 0;
}

.chapter-header {
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.sections-container {
    flex-direction: column;
    gap: 10px;
}

.sections-container span {
    font-size: 1.125rem;
}

.plan-item input, .chapter-item input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 0 16px;
    font-size: 1.0625rem;
    font-family: inherit;
    color: white;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.plan-item input::placeholder, .chapter-item input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.chapter-header input {
    border-color: oklch(0.78 0.14 72 / 0.28);
    background: linear-gradient(180deg, oklch(0.78 0.14 72 / 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}


.plan-item input:focus, .chapter-item input:focus {
    border-color: oklch(0.76 0.145 205 / 0.72);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px oklch(0.76 0.145 205 / 0.12), 0 0 24px oklch(0.76 0.145 205 / 0.14);
}

.remove-item, .remove-chapter, .remove-section {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 98, 128, 0.12);
    color: #ffb5c2;
    font-size: 1.5rem;
    line-height: 1;
    border: 1px solid rgba(255, 143, 163, 0.24);
    border-radius: 14px;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

#add-plan-item, #add-chapter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 48px;
    background: linear-gradient(91.2deg, var(--color-primary) 8.77%, var(--color-primary-hover) 54.81%, var(--color-warm) 92.52%);
    color: #041018;
    padding: 0 18px;
    border: 1px solid rgba(167, 255, 250, 0.16);
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 auto;
    margin-top: 6px;
    box-shadow: 0 14px 28px oklch(0.76 0.145 205 / 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

#add-plan-item:disabled, #add-chapter:disabled {
    background: linear-gradient(91.2deg, oklch(0.76 0.145 205 / 0.35) 8.77%, oklch(0.82 0.13 200 / 0.35) 54.81%, oklch(0.78 0.14 72 / 0.35) 92.52%);
    color: rgba(4, 16, 24, 0.65);
    box-shadow: none;
    filter: saturate(0.4);
    cursor: not-allowed;
}

.add-section {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: oklch(0.76 0.145 205 / 0.08);
    color: var(--button-color);
    padding: 0 16px;
    border: 1px solid rgba(167, 255, 250, 0.18);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    align-self: start;
    margin-top: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.modal-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-actions button {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(167, 255, 250, 0.18);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 0 18px;
    font-size: 1.0625rem;
    color: #eff6ff;
    outline: none;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.modal-actions button[type="submit"] {
    background: linear-gradient(91.2deg, var(--color-primary) 8.77%, var(--color-primary-hover) 54.81%, var(--color-warm) 92.52%);
    color: #041018;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 18px 30px oklch(0.76 0.145 205 / 0.18);
}

.modal-actions .cancel {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-actions button:hover {
    transform: translateY(-1px);
}

.modal-actions button[type="submit"]:hover,
#add-plan-item:hover,
#add-chapter:hover {
    box-shadow: 0 20px 34px oklch(0.76 0.145 205 / 0.24);
    filter: brightness(1.04);
}

.modal-actions .cancel:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(167, 255, 250, 0.22);
    color: white;
}

.add-section:hover {
    background: oklch(0.76 0.145 205 / 0.14);
    border-color: rgba(167, 255, 250, 0.3);
    transform: translateY(-1px);
}

.remove-item:hover, .remove-chapter:hover, .remove-section:hover {
    background: linear-gradient(135deg, rgba(255, 126, 153, 0.22) 0%, rgba(255, 104, 138, 0.28) 100%);
    border-color: rgba(255, 154, 173, 0.44);
    color: #ffe2e7;
    transform: translateY(-1px);
}

.close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    z-index: 2;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.close:hover,
.close:focus {
    color: #041018;
    background: linear-gradient(135deg, var(--button-color) 0%, #b9fffb 100%);
    border-color: transparent;
    transform: rotate(90deg);
    text-decoration: none;
    cursor: pointer;
}

.biblio-list li div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--base-border-color);
}

.external-link {
    display: inline-block;
    width: 35px;
    height: 35px;
}

.external-link img {
    width: 35px;
    height: 35px;
}

.generation-offer-container {
    border: 2px solid var(--base-border-color);
    background-color: var(--second-color);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
}

.generation-offer-container h2, .generation-offer-container-mobile h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: center;
}

.generation-offer-container p {
    margin: 5px auto 20px;
}

.create-button {
    text-decoration: none;
    text-align: center;
    color: black;
    font-size: 1.25rem;
    font-weight: bold;
    background-color: var(--button-color);
    padding: 12px 25px;
    border-radius: 12px;
    display: block;
    width: 100%;
}

.create-button:hover {
    background-color: var(--color-primary-hover);
}

.demo {
    border: none;
    padding-left: 0;
    padding-right: 0;
    margin-top: 20px;
    border-top: 2px solid var(--base-border-color);
}

.table-chapter-container {
    overflow-x: auto;
}

.research-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Georgia', serif;
    color: #f5f5f5;
    background-color: #0d0d0d;
    border: 1px solid #333;
    font-size: 1.0625rem;
}

.research-table caption {
    font-size: 1.0625rem;
    font-style: italic;
    color: #a0d2eb;
    padding: 0.8rem;
    text-align: center;
}

.research-table th {
    background-color: #1a1a1a;
    color: #c5e1a5;
    padding: 0.9rem;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid #333;
}

.research-table td {
    padding: 0.9rem;
    border-bottom: 1px dashed #2a2a2a;
}

.research-table tbody tr:nth-child(even) {
    background-color: rgba(30, 30, 30, 0.4);
}

.speech-loader {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px solid var(--button-color);
    border-radius: 12px;
    animation: fadeIn 0.3s ease-in-out;
}

.loader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: white;
    font-size: 1.0625rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.humanize-text-offer {
    margin: 25px 0 0;
    padding: 20px;
    background: linear-gradient(135deg, oklch(0.76 0.145 205 / 0.12), oklch(0.78 0.14 72 / 0.12));
    border: 2px solid oklch(0.76 0.145 205 / 0.45);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.humanize-text-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.humanize-text-badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 20px;
    background: oklch(0.76 0.145 205 / 0.15);
    color: var(--button-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.humanize-text-offer h3 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
}

.humanize-text-offer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.0625rem;
    line-height: 1.4;
}

#humanize-text-button {
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    padding: 13px 24px;
    background-color: var(--button-color);
    color: black;
    font-size: 1.125rem;
    font-weight: bold;
    transition: 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.humanize-button-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.25);
    border-top-color: black;
    border-radius: 50%;
    animation: humanize-spinner-rotate 0.8s linear infinite;
}

#humanize-text-button.is-loading .humanize-button-spinner {
    display: inline-block;
}

#humanize-text-button.is-loading {
    cursor: wait;
    opacity: 0.85;
}

@keyframes humanize-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

#humanize-text-button:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
}

#humanize-text-button:disabled {
    cursor: not-allowed;
    background-color: var(--base-border-color);
    color: rgba(255, 255, 255, 0.6);
    transform: none;
}

#humanize-text-button.is-success {
    background: linear-gradient(135deg, var(--color-primary), var(--color-success), var(--color-warm));
    color: black;
    box-shadow: 0 0 18px oklch(0.76 0.145 205 / 0.7);
    animation: humanize-success-pulse 1.4s ease-in-out infinite;
}

#humanize-text-button.is-success:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-success), var(--color-warm));
    transform: translateY(-2px);
}

#humanize-text-button.is-success .humanize-button-spinner {
    display: none;
}

@keyframes humanize-success-pulse {
    0% {
        box-shadow: 0 0 0 0 oklch(0.76 0.145 205 / 0.65);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 12px oklch(0.76 0.145 205 / 0);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 0 oklch(0.76 0.145 205 / 0);
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes load {
    0% {
        left: 0;
        height: 43px;
        width: 15px;
        transform: translateX(0)
    }
    50% {
        height: 10px;
        width: 40px
    }
    100% {
        left: 100%;
        height: 43px;
        width: 15px;
        transform: translateX(-100%)
    }
}

@media screen and (max-width: 1023px) {
    .work-info-container {
        width: 90%;
    }
    .aside-container-demo, .aside-container {
        width: 90%;
        max-width: none;
        margin-top: 15px;
    }
}

@media screen and (max-width: 768px) {
    .work-info-container {
        width: 95%;
        padding: 12px;
    }
    .work-info-container h1 {
        font-size: 1.5rem;
    }
    .work-info-container h2 {
        font-size: 1.25rem;
    }
    .content-wrapper {
        font-size: 1.125rem;
    }
    .partition {
        padding-left: 5px;
        font-size: 1.1875rem;
    }
    .aside-container-demo, .aside-container {
        width: 95%;
    }
    .research-table {
        font-size: 1rem;
    }
    .payment-info {
        padding: 18px;
    }

    .payment-info h2 {
        font-size: 1.375rem;
    }

    #edit-work-button {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 22px;
    }

    .edit-work-button__subtitle {
        max-width: none;
    }

    .edit-work-button__icon {
        width: 52px;
        height: 52px;
    }

    #myModal {
        padding: 26px 18px 20px;
        border-radius: 20px;
    }

    #myModal > p {
        font-size: 1.375rem;
        margin-right: 44px;
    }

    .star-rating {
        gap: 8px;
        padding: 10px;
    }

    .star-rating span,
    .star-rating .star {
        width: 48px;
        height: 48px;
        font-size: 1.75rem;
    }

    .humanize-text-offer {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .rating-container.colorized {
        padding: 20px 18px;
    }

    .rating-container.colorized h3 {
        font-size: 1.375rem;
    }

    .span-colorized {
        max-width: none;
        font-size: 1rem;
    }

    #humanize-text-button {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .demo-work-volume__tooltip-trigger {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        line-height: 1;
    }
    .demo-work-volume__tooltip-trigger svg {
        width: 18px;
        height: 18px;
    }

    .demo-work-volume__tooltip-content,
    .how-much-bonus-container .demo-work-volume__tooltip-content {
        position: fixed;
        z-index: 1000;
        top: var(--mobile-tooltip-top, 16px);
        right: auto;
        bottom: auto;
        left: var(--mobile-tooltip-left, 16px);
        box-sizing: border-box;
        width: min(300px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        margin: 0;
        transform: translateY(8px);
    }

    .demo-work-volume__tooltip-content::before,
    .how-much-bonus-container .demo-work-volume__tooltip-content::before {
        display: none;
    }

    .demo-work-volume__tooltip:hover .demo-work-volume__tooltip-content,
    .demo-work-volume__tooltip:focus-within .demo-work-volume__tooltip-content,
    .how-much-bonus-container .demo-work-volume__tooltip:hover .demo-work-volume__tooltip-content,
    .how-much-bonus-container .demo-work-volume__tooltip:focus-within .demo-work-volume__tooltip-content {
        transform: translateY(0);
    }
    .demo-work-volume__summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
    .demo-work-volume__total {
        text-align: left;
    }
    .demo-page-distribution-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .demo-page-distribution-legend li,
    .demo-page-distribution-legend strong {
        font-size: 0.8125rem;
    }
    .work-info-container .work-type {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .plan-modal-content {
        width: 100%;
        padding: 22px 12px 12px;
        border-radius: 20px;
    }
    .plan-modal-content h3 {
        margin-right: 44px;
        margin-bottom: 18px;
        font-size: 1.375rem;
    }
    .plan-item,
    .section-item,
    .chapter-header,
    .modal-actions {
        flex-direction: column;
    }
    .plan-item,
    .chapter-item {
        padding: 12px;
        border-radius: 16px;
    }
    .plan-item input, .chapter-item input {
        font-size: 1rem;
        min-height: 46px;
    }
    .remove-item, .remove-chapter, .remove-section,
    .add-section,
    #add-plan-item,
    #add-chapter,
    .modal-actions button {
        width: 100%;
    }
    .remove-item, .remove-chapter, .remove-section {
        height: 42px;
        font-size: 1.25rem;
    }
    .content-table ul {
        font-size: 1.125rem;
    }
    .work-info-container h1 {
        font-size: 1.25rem;
    }
    .payment-info h2 {
        font-size: 1.25rem;
    }
    .features-full {
        font-size: 1rem;
    }
    .payment-info h2, .aside-container-demo h2 {
        font-size: 1.25rem;
    }
    .features-full__rating {
        width: 100%;
        justify-content: center!important;
        text-align: center;
    }
    .export-buttons button {
        flex-basis: 100%;
        min-height: 56px;
        font-size: 1rem;
    }

    .rating-container.colorized h3 {
        font-size: 1.25rem;
    }

    #rating-open {
        font-size: 1rem;
    }
    .work-info-container h2 {
        font-size: 1.125rem;
    }
    .warning-block {
        font-size: 1.125rem;
        padding: 10px;
    }
    .biblio-list li {
        font-size: 1.0625rem;
    }
    .tasks-promo-minimal {
        padding: 15px;
    }
    .feature span {
        font-size: 1rem;
    }
    .minimal-button {
        padding: 10px;
    }
    .content-wrapper {
        font-size: 1rem;
    }
    .research-table td {
        padding: 10px;
    }
    .research-table th {
        padding: 10px;
    }
    .demo-plan-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin: 16px 0 24px;
        padding-top: 14px;
    }
    #edit-plan-with-ai-button, #edit-plan-button {
        flex-basis: auto;
        width: 100%;
        min-width: 0;
        font-size: 1rem;
    }
    #edit-work-button {
        padding: 18px;
        border-radius: 14px;
    }
    #myModal {
        width: min(calc(100vw - 20px), 470px);
        padding: 24px 16px 18px;
        border-radius: 18px;
    }
    .close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    #myModal > p {
        font-size: 1.25rem;
        margin-right: 38px;
        margin-bottom: 16px;
    }
    #review-form {
        row-gap: 10px;
    }
    #review-form textarea {
        height: 148px;
        padding: 14px 15px;
        font-size: 1rem;
        border-radius: 16px;
    }
    .star-rating {
        gap: 6px;
        padding: 8px;
        border-radius: 16px;
    }
    .star-rating span,
    .star-rating .star {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
        border-radius: 12px;
    }
    #review-form button {
        min-height: 52px;
        font-size: 1rem;
        border-radius: 14px;
    }
    .edit-work-button__title {
        font-size: 1.3125rem;
    }
    .edit-work-button__subtitle {
        font-size: 1rem;
    }
    .edit-work-button__icon {
        width: 48px;
        height: 48px;
        font-size: 1.3125rem;
        border-radius: 14px;
    }
    .humanize-text-offer h3 {
        font-size: 1.125rem;
    }
    .humanize-text-offer p {
        font-size: 1rem;
    }

    #humanize-text-button {
        font-size: 1rem;
        padding: 12px 18px;
    }
}

@media screen and (max-width: 768px) {
    .generation-process-link {
        padding: 16px;
    }

    .generation-process-link__arrow {
        width: 44px;
        height: 44px;
    }

    .generation-process {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .generation-process::before {
        border-radius: 19px;
    }

    .generation-process__header {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .generation-process__count {
        width: fit-content;
    }
}

@media screen and (max-width: 500px) {
    .generation-process-link {
        grid-template-columns: minmax(0, 1fr) 40px;
        gap: 12px;
        margin: 18px 0 24px;
        padding: 15px;
        border-radius: 14px;
    }

    .generation-process-link__title {
        font-size: 1.125rem;
    }

    .generation-process-link__description {
        font-size: 0.875rem;
    }

    .generation-process-link__arrow {
        width: 40px;
        height: 40px;
    }

    .generation-process {
        margin-top: 36px;
        padding: 22px 16px;
        border-radius: 18px;
    }

    .generation-process::before {
        border-radius: 17px;
    }

    .generation-process__lead {
        font-size: 1rem;
        line-height: 1.55;
    }

    .generation-process__assurances {
        gap: 11px;
        margin-top: 22px;
        padding: 16px 0;
    }

    .generation-process__assurances span {
        width: 100%;
    }

    .generation-process__stages {
        margin-top: 26px;
    }

    .generation-process__stage {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
        padding-bottom: 26px;
    }

    .generation-process__marker {
        width: 44px;
        height: 44px;
        font-size: 0.75rem;
    }

    .generation-process__stage:not(:last-child)::after {
        top: 46px;
        left: 21px;
    }

    .generation-process__stage-content {
        padding-top: 1px;
        padding-bottom: 24px;
    }

    .work-info-container .generation-process__stage h3 {
        font-size: 1.125rem;
    }

    .generation-process__stage p {
        font-size: 0.9375rem;
        line-height: 1.65;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .generation-process-link,
    .generation-process-link__arrow,
    .generation-process:target,
    .demo-work-volume__tooltip-content {
        animation: none;
        transition: none;
    }
}
