:root {
    --bg: #0a0a0f;
    --bg-alt: #111118;
    --surface: #17171f;
    --surface-2: #1e1e28;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f5f7;
    --text-muted: #a0a0ad;
    --gold: #d4af37;
    --gold-soft: #e8c96a;
    --primary: #6c5ce7;
    --primary-2: #a29bfe;
    --success: #2ecc71;
    --danger: #ff6b6b;
    --warning: #f4a261;
    --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(108, 92, 231, 0.25), transparent 60%),
        radial-gradient(900px 500px at 10% 10%, rgba(212, 175, 55, 0.12), transparent 55%),
        var(--bg);
    line-height: 1.6;
}

.landing-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.landing-container--narrow { max-width: 760px; }

/* Header */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(10, 10, 15, 0.75);
    border-bottom: 1px solid var(--border);
}

.landing-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.3px;
}

.landing-logo__icon {
    width: 30px;
    height: 30px;
    display: block;
}

.landing-header__nav { display: flex; gap: 22px; }
.landing-header__nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.landing-header__nav a:hover { color: var(--gold-soft); }

/* Hero */
.landing-hero {
    padding: 96px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.14) 0%, rgba(10, 10, 15, 0) 70%);
}

.landing-hero__eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--gold-soft);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.landing-hero__title {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(120deg, #ffffff 20%, var(--gold-soft) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero__subtitle {
    max-width: 680px;
    margin: 0 auto 28px;
    color: var(--text-muted);
    font-size: 18px;
}

.landing-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.landing-hero__note { margin: 22px 0 0; color: var(--text-muted); font-size: 13px; }

/* Buttons */
.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.landing-btn--primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #1a1400;
}
.landing-btn--primary:hover { box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35); transform: translateY(-2px); }

.landing-btn--ghost { border-color: var(--border); color: var(--text); background: transparent; }
.landing-btn--ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.landing-btn--outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.landing-btn--outline:hover { border-color: var(--gold-soft); }

.landing-btn--lg { padding: 15px 28px; font-size: 16px; }
.landing-btn--sm { padding: 7px 14px; font-size: 13px; }

/* Sections */
.landing-section { padding: 80px 0; }
.landing-section--alt { background: var(--bg-alt); }

.landing-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.landing-section__title {
    margin: 0 0 34px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
}

.landing-subtitle { color: var(--text-muted); margin: -18px 0 26px; }

.landing-grid { display: grid; gap: 20px; }
.landing-grid--2 { grid-template-columns: repeat(2, 1fr); }
.landing-grid--3 { grid-template-columns: repeat(3, 1fr); }

.landing-feature, .landing-step, .landing-check-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.landing-feature__title, .landing-step__title { margin: 0 0 10px; font-size: 18px; }
.landing-feature__text, .landing-step__text { color: var(--text-muted); margin: 0; }

.landing-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 700;
}

/* Form */
.landing-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
}

.landing-field { margin-bottom: 20px; }

.landing-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.landing-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 15px;
}
.landing-input:focus { outline: none; border-color: var(--gold-soft); }

.landing-input--file {
    padding: 10px;
    background: var(--surface-2);
}
.landing-input--file::file-selector-button {
    margin-right: 12px;
    padding: 9px 16px;
    border: none;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

/* Photo upload previews */
.landing-photo {
    display: block;
    cursor: pointer;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}
.landing-photo:hover { border-color: var(--gold-soft); }

.landing-photo__preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    color: var(--text-muted);
}

.landing-photo__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--surface-2);
}

.landing-photo__footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.landing-photo__caption { font-size: 14px; font-weight: 600; color: var(--text); }
.landing-photo__hint { font-size: 12px; color: var(--text-muted); }

.landing-photo__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Photo tips */
.landing-tips {
    margin: 4px 0 20px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
}

.landing-tips__title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-soft);
}

.landing-tips__list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.landing-tips__list li + li { margin-top: 4px; }

.landing-field-error { color: var(--danger); font-size: 13px; }

.landing-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
}
.landing-alert--danger { background: rgba(255, 107, 107, 0.12); color: var(--danger); border: 1px solid rgba(255, 107, 107, 0.3); }
.landing-alert--success { background: rgba(46, 204, 113, 0.12); color: var(--success); border: 1px solid rgba(46, 204, 113, 0.3); }

.landing-note { color: var(--text-muted); font-size: 13px; }

/* Table */
.landing-table-wrap { overflow-x: auto; }

.landing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
}

.landing-table th, .landing-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.landing-table th { color: var(--text-muted); font-weight: 600; }

.landing-list-stars {
    display: inline-flex;
    gap: 2px;
    white-space: nowrap;
}

.landing-table .landing-star { font-size: 16px; }

.landing-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.landing-badge--primary { background: rgba(108, 92, 231, 0.18); color: var(--primary-2); }
.landing-badge--success { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.landing-badge--danger { background: rgba(255, 107, 107, 0.15); color: var(--danger); }
.landing-badge--warning { background: rgba(244, 162, 97, 0.15); color: var(--warning); }
.landing-badge--secondary { background: rgba(160, 160, 173, 0.15); color: var(--text-muted); }

/* Detail */
.landing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 24px 0;
}

.landing-card__body { padding: 24px; }
.landing-card__title { margin: 0 0 16px; }

.landing-dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; }

.landing-detail-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
}

.landing-detail-photo {
    margin: 0;
}

.landing-detail-photo img {
    display: block;
    width: 100%;
    max-width: 220px;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.landing-detail-photo figcaption {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}
.landing-dl__term { color: var(--text-muted); }
.landing-dl__desc { margin: 0; }

.landing-task__result {
    margin: 18px 0;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

/* Адаптация HTML-отчёта под тёмную тему лендинга */
.landing-task__result .report {
    color: var(--text);
    line-height: 1.55;
    font-size: 14px;
}
.landing-task__result .report h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text);
}
.landing-task__result .report h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--text);
}
.landing-task__result .report p { margin: 0 0 10px; }
.landing-task__result .report ul,
.landing-task__result .report ol {
    margin: 0 0 12px;
    padding-left: 20px;
}
.landing-task__result .report li { margin-bottom: 4px; }
.landing-task__result .report__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}
.landing-task__result .report__meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
}
.landing-task__result .report__section {
    margin: 16px 0;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.landing-task__result .report__section h3 { margin-top: 0; }
.landing-task__result .report__status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}
.landing-task__result .report__status-ok { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.landing-task__result .report__status-error { background: rgba(255, 107, 107, 0.15); color: var(--danger); }
.landing-task__result .report__status-warn { background: rgba(244, 162, 97, 0.15); color: var(--warning); }
.landing-task__result .report__table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 12px;
}
.landing-task__result .report__table th,
.landing-task__result .report__table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}
.landing-task__result .report__table th {
    background: var(--surface);
    font-weight: 600;
}
.landing-task__result .report__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    background: var(--surface-2);
    color: var(--text);
}
.landing-task__result .report__ok { color: var(--success); font-weight: 600; }
.landing-task__result .report__error { color: var(--danger); font-weight: 600; }
.landing-task__result .report__muted { color: var(--text-muted); }
.landing-task__result .report__scale { margin: 12px 0; }
.landing-task__result .report__scale-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.landing-task__result .report__scale-value {
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}
.landing-task__result .report__scale-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.landing-task__result .report__bar {
    display: flex;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}
.landing-task__result .report__bar-fill { height: 100%; }
.landing-task__result .report__bar-fill--current { background: var(--primary); }
.landing-task__result .report__bar-fill--potential { background: var(--gold); }

.landing-muted { color: var(--text-muted); }

/* FAQ */
.landing-faq__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 18px 22px;
}

.landing-faq__q { cursor: pointer; font-weight: 600; }
.landing-faq__a { color: var(--text-muted); margin-top: 10px; }

/* Footer */
.landing-footer {
    border-top: 1px solid var(--border);
    padding: 50px 0;
    background: var(--bg-alt);
}

.landing-footer__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.landing-footer__brand { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.landing-footer__copy, .landing-footer__note { color: var(--text-muted); font-size: 13px; }
.landing-footer__title { margin: 0 0 12px; font-weight: 600; }
.landing-footer__nav { display: flex; flex-direction: column; gap: 8px; }
.landing-footer__nav a { color: var(--text-muted); text-decoration: none; }
.landing-footer__nav a:hover { color: var(--gold-soft); }

/* Breadcrumbs */
.landing-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.landing-breadcrumbs a {
    color: var(--gold-soft);
    text-decoration: none;
}

.landing-breadcrumbs a:hover { text-decoration: underline; }

/* Articles list (vertical feed) */
.landing-articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.landing-article-card {
    display: flex;
    gap: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.landing-article-card__media {
    flex: 0 0 280px;
    display: block;
}

.landing-article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-article-card__body {
    flex: 1;
    padding: 26px 26px 26px 0;
}

.landing-article-card__meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.landing-article-card__title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.landing-article-card__title a {
    color: var(--text);
    text-decoration: none;
}

.landing-article-card__title a:hover { color: var(--gold-soft); }

.landing-article-card__excerpt {
    color: var(--text-muted);
    margin: 0 0 18px;
}

.landing-article-card__more {
    margin-top: auto;
    color: var(--gold-soft);
    text-decoration: none;
    font-weight: 600;
}

.landing-article-card__more:hover { text-decoration: underline; }

/* Article body */
.landing-article__cover {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 22px;
}

.landing-article__title {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.25;
}

.landing-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.landing-article h2 {
    margin: 28px 0 12px;
    font-size: 22px;
}

.landing-article p {
    color: var(--text);
    margin: 0 0 14px;
}

.landing-list {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--text);
}

.landing-list li { margin-bottom: 8px; }

.landing-article__cta {
    margin-top: 28px;
    padding: 22px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.landing-article__cta p {
    margin: 0 0 14px;
    font-weight: 600;
}

/* Feedback */
.landing-feedback { margin-top: 24px; }

.landing-feedback__title {
    margin: 0 0 14px;
    font-size: 16px;
}

.landing-feedback__view { padding-bottom: 6px; }

.landing-feedback__stars {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 10px;
}

.landing-star {
    color: var(--text-muted);
    font-size: 26px;
    line-height: 1;
}

.landing-star--on { color: var(--gold); }

.landing-feedback__text {
    margin: 0 0 10px;
    white-space: pre-wrap;
}

.landing-feedback__rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
    margin-bottom: 16px;
}

.landing-star--input { position: relative; cursor: pointer; }

.landing-star--input input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.landing-star--input .landing-star__glyph {
    display: block;
    color: var(--text-muted);
    transition: color 0.15s, transform 0.15s;
}

.landing-star--input:hover .landing-star__glyph,
.landing-star--input:hover ~ .landing-star--input .landing-star__glyph {
    color: var(--gold);
    transform: scale(1.08);
}

.landing-star--input:has(input:checked) .landing-star__glyph,
.landing-star--input:has(input:checked) ~ .landing-star--input .landing-star__glyph {
    color: var(--gold);
}

.landing-textarea {
    resize: vertical;
    min-height: 110px;
}

.landing-feedback__counter {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: right;
}

.landing-feedback__form .landing-btn + .landing-btn { margin-left: 10px; }

@media (max-width: 820px) {
    .landing-article-card { flex-direction: column; }
    .landing-article-card__media { flex: none; }
    .landing-article-card__body { padding: 22px; }
    .landing-grid--3, .landing-grid--2, .landing-footer__inner { grid-template-columns: 1fr; }
    .landing-header__nav { display: none; }
    .landing-dl { grid-template-columns: 1fr; }
}

/* Report preview modal */
.landing-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.landing-modal[hidden] { display: none; }

.landing-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.78);
    backdrop-filter: blur(6px);
}

.landing-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 840px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.landing-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.landing-modal__close:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

.landing-modal__body {
    margin: 0;
    overflow-y: auto;
    padding: 28px;
    background: transparent;
    border: none;
}
