.ac-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 96px;
    color: var(--ld-text);
    font-family: var(--ld-font);
}

.ac-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ac-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 72px;
    text-align: center;
}

.ac-eyebrow {
    margin-bottom: 14px;
    padding: 4px 12px;
    border: 1px solid var(--ld-line);
    border-radius: 999px;
    color: var(--ld-muted);
    font-size: 13px;
    font-weight: 500;
}

.ac-title {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.ac-lead {
    max-width: 620px;
    margin: 0 0 32px;
    color: var(--ld-muted);
    font-size: 18px;
    line-height: 1.6;
}

.ac-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.ac-stats li {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    padding: 14px 20px;
    border: 1px solid var(--ld-line);
    border-radius: 14px;
    background: var(--ld-card);
}

.ac-stats strong { font-size: 24px; font-weight: 700; }
.ac-stats span { color: var(--ld-muted); font-size: 13px; }

.ac-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(560px, 100%);
    padding: 0 16px;
    border: 1px solid var(--ld-line);
    border-radius: 12px;
    background: var(--ld-card);
    color: var(--ld-muted);
}

.ac-search:focus-within {
    border-color: var(--ld-brand);
    box-shadow: 0 0 0 3px rgba(139, 110, 93, 0.28);
}

.ac-search input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ld-text);
    font: inherit;
    font-size: 15px;
}

.ac-h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ac-sub {
    margin: 8px 0 24px;
    color: var(--ld-muted);
    font-size: 16px;
}

.ac-catalog { margin-bottom: 80px; scroll-margin-top: 96px; }

.ac-catalog__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.ac-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.ac-chips::-webkit-scrollbar { display: none; }

.ac-chip {
    flex-shrink: 0;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ld-line);
    border-radius: 999px;
    background: transparent;
    color: var(--ld-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ac-chip:hover { border-color: var(--ld-brand); color: var(--ld-text); }

.ac-chip.is-active {
    border-color: var(--ld-brand);
    background: var(--ld-brand);
    color: #fff;
}

.ac-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ac-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--ld-line);
    border-radius: 16px;
    background: var(--ld-card);
    scroll-margin-top: 120px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ac-card[hidden] { display: none; }

.ac-card:hover {
    border-color: var(--ld-brand);
    transform: translateY(-2px);
}

.ac-card.is-flash { box-shadow: 0 0 0 3px var(--ld-brand); }

.ac-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ac-card__cat {
    color: var(--ld-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ac-level {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.ac-level--beginner { background: rgba(62, 207, 142, .14); color: #2fb67a; }
.ac-level--intermediate { background: rgba(245, 196, 81, .16); color: #c9951c; }
.ac-level--advanced { background: rgba(255, 107, 107, .14); color: #e5484d; }

.ac-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
}

.ac-card__summary {
    flex: 1;
    margin: 0;
    color: var(--ld-muted);
    font-size: 14px;
    line-height: 1.55;
}

.ac-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--ld-line);
}

.ac-card__meta { color: var(--ld-muted); font-size: 13px; }

.ac-card__btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ld-brand);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ac-card__btn:hover { text-decoration: underline; }

.ac-empty {
    padding: 32px;
    border: 1px dashed var(--ld-line);
    border-radius: 16px;
    color: var(--ld-muted);
    text-align: center;
}

.ac-empty a,
.ac-faq__item a { color: var(--ld-brand); }

.ac-paths { margin-bottom: 80px; }

.ac-paths__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ac-path {
    padding: 24px;
    border: 1px solid var(--ld-line);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(139, 110, 93, .14), transparent 60%), var(--ld-card);
}

.ac-path h3 { margin: 0 0 6px; font-size: 18px; }
.ac-path > p { margin: 0 0 16px; color: var(--ld-muted); font-size: 14px; line-height: 1.5; }

.ac-path__steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.ac-path__steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    counter-increment: step;
    font-size: 14px;
}

.ac-path__steps li::before {
    content: counter(step);
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--ld-brand);
    border-radius: 50%;
    color: var(--ld-brand);
    font-size: 12px;
    font-weight: 700;
}

.ac-path__steps a { color: var(--ld-text); text-decoration: none; }
.ac-path__steps a:hover { color: var(--ld-brand); text-decoration: underline; }

.ac-faq { max-width: 820px; margin: 0 auto 80px; }
.ac-faq .ac-h2 { margin-bottom: 20px; text-align: center; }

.ac-faq__item {
    border-bottom: 1px solid var(--ld-line);
}

.ac-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.ac-faq__item summary::-webkit-details-marker { display: none; }

.ac-faq__item summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--ld-brand);
    font-size: 22px;
    font-weight: 400;
    transition: transform .2s ease;
}

.ac-faq__item[open] summary::after { transform: rotate(45deg); }

.ac-faq__item p {
    margin: 0 0 18px;
    color: var(--ld-muted);
    font-size: 15px;
    line-height: 1.6;
}

.ac-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border: 1px solid var(--ld-line);
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(139, 110, 93, .25), rgba(139, 110, 93, .05)), var(--ld-card);
}

.ac-cta h2 { margin: 0 0 6px; font-size: 24px; }
.ac-cta p { margin: 0; color: var(--ld-muted); }

.ac-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.ac-btn--primary { background: var(--ld-brand); color: #fff; }
.ac-btn--primary:hover { background: var(--ld-hover); }
.ac-btn--ghost { border-color: var(--ld-line); background: transparent; color: var(--ld-text); }
.ac-btn--ghost:hover { border-color: var(--ld-brand); }

.ac-dialog {
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--ld-line);
    border-radius: 20px;
    background: var(--ld-card);
    color: var(--ld-text);
    font-family: var(--ld-font);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.ac-dialog[open] { display: flex; flex-direction: column; }
.ac-dialog::backdrop { background: rgba(0, 0, 0, .6); }

.ac-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 12px;
}

.ac-dialog__meta { margin: 0 0 6px; color: var(--ld-muted); font-size: 13px; }
.ac-dialog__head h2 { margin: 0; font-size: 22px; line-height: 1.25; }

.ac-dialog__close {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ld-line);
    border-radius: 10px;
    background: transparent;
    color: var(--ld-text);
    cursor: pointer;
}

.ac-dialog__body { padding: 0 24px 8px; overflow: auto; }
.ac-dialog__summary { margin: 0 0 20px; color: var(--ld-muted); line-height: 1.55; }
.ac-dialog__h3 { margin: 0 0 10px; font-size: 15px; }

.ac-lessons {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lesson;
}

.ac-lessons li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--ld-line);
    counter-increment: lesson;
    font-size: 15px;
}

.ac-lessons li::before {
    content: counter(lesson, decimal-leading-zero);
    flex-shrink: 0;
    color: var(--ld-brand);
    font-size: 13px;
    font-weight: 700;
}

.ac-lessons span { flex: 1; min-width: 0; }
.ac-lessons small { flex-shrink: 0; color: var(--ld-muted); font-size: 13px; }

.ac-dialog__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--ld-line);
}

@media (max-width: 1024px) {
    .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ac-paths__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .ac-main { padding: 96px 16px 64px; }
    .ac-hero { margin-bottom: 48px; }
    .ac-lead { font-size: 16px; }
    .ac-stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .ac-stats li { min-width: 0; }
    .ac-grid { grid-template-columns: 1fr; }
    .ac-cta { flex-direction: column; align-items: stretch; padding: 24px; }
    .ac-dialog__foot { flex-direction: column-reverse; }
    .ac-dialog__foot .ac-btn { width: 100%; }
}
