/* ==========================================================================
   style.css — СМОТРЕЛКА И ПРОВЕРКА МАКЕТОВ, КАРТ РЕГИОН (scanmy.ru/preflight/)

   Основа взята целиком из прототипа check/maket/plastic/style.css.
   Изменено: фирменная палитра (чернила #12222D, акцент #2E86C8,
   светлый акцент #6AB8EE, линии #E4EDF3, поле #F7FAFC), шрифт Open Sans,
   шапка страницы. В конце файла — ЧАСТЬ 13, новые блоки смотрелки.
   ========================================================================== */


/* ==========================================================================
   ЧАСТЬ 1. ПЕРЕМЕННЫЕ И СБРОС
   ========================================================================== */

:root {
    /* Бренд */
    --brand: #2E86C8;          /* акцент фирменного стиля */
    --brand-dark: #1F6BA6;
    --brand-soft: #6AB8EE;     /* светлый акцент */
    --brand-light: #E8F4FC;
    --brand-bg: #F5FAFE;

    /* Текст */
    --text: #12222D;          /* чернила */
    --text-muted: #5a6a7e;
    --text-light: #8a98aa;

    /* Границы */
    --border: #E4EDF3;
    --border-strong: #cfdae6;

    /* Фон */
    --white: #ffffff;
    --bg: #F7FAFC;

    /* Статусы (единая палитра для всей страницы) */
    --ok:       #27ae60;
    --ok-bg:    #e8f7ee;
    --ok-border:#b7e4c4;

    --warn:       #e67e22;
    --warn-bg:    #fff5e0;
    --warn-border:#ffd98a;

    --error:       #e74c3c;
    --error-bg:    #fde8e8;
    --error-border:#f5b5b5;

    /* Технические цвета превью */
    --tech-trim:   #e74c3c;    /* линия реза */
    --tech-safe:   #27ae60;    /* безопасная зона */
    --tech-geo:    #3498db;    /* центр изделия */
    --tech-design: #f39c12;    /* центр дизайна */

    /* Радиусы */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Тени */
    --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 35, 50, 0.08);
    --shadow-lg: 0 12px 40px rgba(106, 184, 238, 0.18);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Моноширинный */
    --mono: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ==========================================================================
   ЧАСТЬ 2. ШАПКА
   ========================================================================== */

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.header__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.header__back:hover {
    color: var(--brand);
    background: var(--brand-light);
}
.header__logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    line-height: 1.2;
}
.header__logo-main {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text);
}
.header__logo-sub {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}


/* ==========================================================================
   ЧАСТЬ 3. HERO
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--brand-bg) 0%, #ffffff 100%);
    padding: 64px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(106, 184, 238, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero__content { max-width: 560px; }

.hero__badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--brand);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 20px;
}
.hero__title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
}
.hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 36px;
}
.hero__specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.hero__spec {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hero__spec b {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.01em;
}
.hero__spec span {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}


/* ==========================================================================
   ЧАСТЬ 4. МОКАП КАРТЫ В HERO
   ========================================================================== */

.hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.card-mockup {
    position: relative;
    width: 360px;
    height: 232px;
    background: repeating-linear-gradient(
        45deg,
        rgba(231, 76, 60, 0.08),
        rgba(231, 76, 60, 0.08) 6px,
        rgba(231, 76, 60, 0.16) 6px,
        rgba(231, 76, 60, 0.16) 12px
    );
    border: 2px dashed var(--error);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}
.card-mockup__bleed {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--error);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
}
.card-mockup__card {
    width: 320px;
    height: 192px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(74, 156, 214, 0.35);
}
.card-mockup__safe {
    width: 280px;
    height: 152px;
    border: 1.5px dashed rgba(255, 255, 255, 0.75);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.card-mockup__legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.card-mockup__legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}
.dot--bleed {
    background: repeating-linear-gradient(45deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.2) 2px, rgba(231, 76, 60, 0.4) 2px, rgba(231, 76, 60, 0.4) 4px);
    border: 1px dashed var(--error);
}
.dot--card {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.dot--safe {
    background: var(--white);
    border: 1.5px dashed var(--text-light);
}


/* ==========================================================================
   ЧАСТЬ 5. ЗАГОЛОВКИ СЕКЦИЙ
   ========================================================================== */

.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    text-align: center;
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
    line-height: 1.5;
}


/* ==========================================================================
   ЧАСТЬ 6. СЕКЦИЯ ТРЕБОВАНИЙ (SPECS)
   ========================================================================== */

.specs {
    padding: 80px 0;
    background: var(--white);
}
.specs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.spec-card {
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.spec-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.spec-card:hover {
    border-color: var(--brand);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.spec-card:hover::before { transform: scaleX(1); }

.spec-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.spec-card__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.spec-card__value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.spec-card__hint {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}


/* ==========================================================================
   ЧАСТЬ 7. ЗОНА ЗАГРУЗКИ
   ========================================================================== */

.upload {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--brand-bg) 0%, var(--white) 100%);
}
.upload-box {
    max-width: 780px;
    margin: 0 auto;
    padding: 56px 40px;
    background: var(--white);
    border: 2.5px dashed var(--border-strong);
    border-radius: var(--radius-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.upload-box:hover,
.upload-box.is-dragover {
    border-color: var(--brand);
    background: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.upload-box.is-dragover { border-style: solid; }

.upload-box__icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    background: var(--brand-light);
    color: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}
.upload-box:hover .upload-box__icon { transform: scale(1.08); }

.upload-box__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.upload-box__or {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 16px;
    position: relative;
}
.upload-box__or::before,
.upload-box__or::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--border);
}
.upload-box__or::before { right: calc(50% + 24px); }
.upload-box__or::after  { left: calc(50% + 24px); }

.upload-box__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--brand);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(106, 184, 238, 0.35);
}
.upload-box__button:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 184, 238, 0.45);
}
.upload-box__hint {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-light);
}


/* ==========================================================================
   ЧАСТЬ 8. БЛОК РЕЗУЛЬТАТОВ (контейнер, загрузка, сводка, информация о файле)
   ========================================================================== */

.results {
    max-width: 980px;
    margin: 32px auto 0;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.results__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.results__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}
.results__reset {
    padding: 8px 16px;
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.results__reset:hover {
    background: var(--brand);
    color: var(--white);
}

/* ---------- Индикатор загрузки ---------- */
.result-loading {
    text-align: center;
    padding: 48px 24px;
}
.result-loading__spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border: 4px solid rgba(106, 184, 238, 0.2);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-loading__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.result-loading__desc {
    font-size: 14px;
    color: var(--text-muted);
}
.result-loading__hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* ---------- Итоговая сводка ---------- */
.result-summary {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid transparent;
}
.result-summary--ok      { background: var(--ok-bg);    border-color: var(--ok-border); }
.result-summary--warning { background: var(--warn-bg);  border-color: var(--warn-border); }
.result-summary--error   { background: var(--error-bg); border-color: var(--error-border); }

.result-summary__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.result-summary--ok      .result-summary__icon { background: var(--ok); }
.result-summary--warning .result-summary__icon { background: var(--warn); }
.result-summary--error   .result-summary__icon { background: var(--error); }

.result-summary__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.result-summary__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---------- Информация о файле ---------- */
.result-fileinfo {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 14px 20px;
    background: #f5f8fb;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
}
.result-fileinfo__item {
    display: flex;
    gap: 8px;
    align-items: center;
}
.result-fileinfo__item span { color: var(--text-muted); }
.result-fileinfo__item b {
    color: var(--text);
    font-weight: 600;
    word-break: break-all;
}


/* ==========================================================================
   ЧАСТЬ 9. БЛОК ПРЕВЬЮ МАКЕТА (техническое + готовая карта)
   ========================================================================== */

.previews {
    margin: 24px 0;
}
.previews__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}
.previews__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-muted);
}
.previews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Общая легенда (сверху блока превью) */
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.legend-color {
    width: 18px; height: 3px;
    border-radius: 2px;
    flex-shrink: 0;
}
.legend-color--trim  { background: var(--tech-trim); }
.legend-color--safe  { background: var(--tech-safe); }
.legend-color--bleed {
    height: 10px;
    background: repeating-linear-gradient(
        45deg,
        rgba(231, 76, 60, 0.15),
        rgba(231, 76, 60, 0.15) 3px,
        rgba(231, 76, 60, 0.3) 3px,
        rgba(231, 76, 60, 0.3) 6px
    );
}

/* ---------- Карточка превью ---------- */
.preview-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(106, 184, 238, 0.06);
    transition: box-shadow 0.2s;
}
.preview-card:hover {
    box-shadow: 0 4px 16px rgba(106, 184, 238, 0.12);
}
.preview-card__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--tech-trim);
    text-transform: uppercase;
    margin: 0 0 16px;
}

/* Две колонки: техническое + готовая карта */
.preview-card__views {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}
@media (max-width: 760px) {
    .preview-card__views {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.preview-view {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.preview-view__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 14px;
    align-self: flex-start;
}


/* ==========================================================================
   ЧАСТЬ 10. ТЕХНИЧЕСКОЕ ПРЕВЬЮ (линейки, линии реза, зоны, центры)
   ========================================================================== */

.preview-technical {
    width: 100%;
    padding: 36px 40px;        /* место под линейки и подписи размеров */
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #eef1f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-technical__stage {
    position: relative;
    display: inline-block;
    max-width: 100%;
    cursor: zoom-in;
}

.preview-technical__image {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---------- Общий контейнер оверлеев ---------- */
.preview-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

/* ---------- Зона вылета (полосатая штриховка по периметру) ---------- */
.preview-zone {
    position: absolute;
    pointer-events: none;
}
.preview-zone--bleed {
    background: repeating-linear-gradient(
        45deg,
        rgba(231, 76, 60, 0.08),
        rgba(231, 76, 60, 0.08) 4px,
        rgba(231, 76, 60, 0.18) 4px,
        rgba(231, 76, 60, 0.18) 8px
    );
}

/* ---------- Линия реза ---------- */
.preview-trim {
    position: absolute;
    border: 1.5px solid var(--tech-trim);
    pointer-events: none;
    box-sizing: border-box;
}

/* ---------- Угловые crop marks ---------- */
.preview-cropmark {
    position: absolute;
    width: 12px; height: 12px;
    pointer-events: none;
    z-index: 2;
}
.preview-cropmark::before,
.preview-cropmark::after {
    content: '';
    position: absolute;
    background: #1a1a1a;
}
.preview-cropmark::before {
    left: 0; top: 50%;
    width: 100%; height: 1.5px;
    transform: translateY(-50%);
}
.preview-cropmark::after {
    left: 50%; top: 0;
    width: 1.5px; height: 100%;
    transform: translateX(-50%);
}

/* ---------- Безопасная зона ---------- */
.preview-safe {
    position: absolute;
    border: 1.5px dashed var(--tech-safe);
    pointer-events: none;
    box-sizing: border-box;
}

/* ---------- Центры (перекрестья с точкой) ---------- */
.preview-center {
    position: absolute;
    width: 24px; height: 24px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
}
.preview-center::before,
.preview-center::after {
    content: '';
    position: absolute;
    background: currentColor;
}
.preview-center::before {
    left: 0; top: 50%;
    width: 100%; height: 1.5px;
    transform: translateY(-50%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.preview-center::after {
    left: 50%; top: 0;
    width: 1.5px; height: 100%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.preview-center__dot {
    position: absolute;
    left: 50%; top: 50%;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px currentColor;
}
.preview-center--geo    { color: var(--tech-geo); }
.preview-center--design { color: var(--tech-design); }


/* ==========================================================================
   ЧАСТЬ 11. ЛИНЕЙКИ И РАЗМЕРНЫЕ ПОДПИСИ
   ========================================================================== */

.preview-ruler {
    position: absolute;
    background: #fff;
    border: 1px solid #d8dde6;
    pointer-events: none;
}
.preview-ruler--top {
    top: -22px; left: 0; right: 0; height: 16px;
}
.preview-ruler--left {
    left: -22px; top: 0; bottom: 0; width: 16px;
}

.preview-ruler__tick {
    position: absolute;
    background: var(--text-light);
}
.preview-ruler--top .preview-ruler__tick { bottom: 0; width: 1px; }
.preview-ruler--top .preview-ruler__tick--small { height: 3px; }
.preview-ruler--top .preview-ruler__tick--big   { height: 6px; background: #4a5568; }

.preview-ruler--left .preview-ruler__tick { right: 0; height: 1px; }
.preview-ruler--left .preview-ruler__tick--small { width: 3px; }
.preview-ruler--left .preview-ruler__tick--big   { width: 6px; background: #4a5568; }

.preview-ruler__label {
    position: absolute;
    font-size: 8px;
    font-family: var(--mono);
    color: #4a5568;
    line-height: 1;
    white-space: nowrap;
}
.preview-ruler--top .preview-ruler__label {
    bottom: 7px;
    transform: translateX(-50%);
}
.preview-ruler--left .preview-ruler__label {
    right: 7px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right center;
}

/* ---------- Размерные линии снизу и справа ---------- */
.preview-dimension {
    position: absolute;
    pointer-events: none;
}
.preview-dimension--width {
    bottom: -22px;
    left: 0; right: 0;
    height: 1px;
    background: #4a5568;
}
.preview-dimension--width::before,
.preview-dimension--width::after {
    content: '';
    position: absolute;
    top: -3px;
    width: 1px; height: 7px;
    background: #4a5568;
}
.preview-dimension--width::before { left: 0; }
.preview-dimension--width::after  { right: 0; }

.preview-dimension--height {
    right: -22px;
    top: 0; bottom: 0;
    width: 1px;
    background: #4a5568;
}
.preview-dimension--height::before,
.preview-dimension--height::after {
    content: '';
    position: absolute;
    left: -3px;
    width: 7px; height: 1px;
    background: #4a5568;
}
.preview-dimension--height::before { top: 0; }
.preview-dimension--height::after  { bottom: 0; }

.preview-dimension__label {
    position: absolute;
    background: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-family: var(--mono);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    border: 1px solid var(--border);
}
.preview-dimension--width .preview-dimension__label {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.preview-dimension--height .preview-dimension__label {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
}


/* ==========================================================================
   ЧАСТЬ 12. ГОТОВАЯ КАРТА, ХАРАКТЕРИСТИКИ, МИНИ-ЛЕГЕНДА, ПРОВЕРКИ, ЛАЙТБОКС, FAQ, ФУТЕР, АДАПТИВ
   ========================================================================== */

/* ---------- Готовая карта ---------- */
.preview-realistic {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    min-height: 220px;
    background: linear-gradient(135deg, #f7f9fc 0%, #e8eff7 100%);
    border-radius: 8px;
    border: 1px solid #eef1f5;
}
.preview-realistic__card {
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 16px 40px rgba(106, 184, 238, 0.12);
    transform: perspective(900px) rotateX(3deg);
    transition: transform 0.3s;
    cursor: zoom-in;
}
.preview-realistic__card:hover {
    transform: perspective(900px) rotateX(0deg) scale(1.02);
}
.preview-realistic__card img {
    display: block;
}
.preview-realistic__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0) 55%
    );
    pointer-events: none;
    border-radius: inherit;
    z-index: 2;
}

/* ---------- Блок характеристик ---------- */
.preview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 24px;
    padding: 14px 18px;
    background: #f7f9fc;
    border-radius: 8px;
    border: 1px solid #eef1f5;
    font-size: 13px;
}
.preview-stats__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}
.preview-stats__label {
    color: var(--text-muted);
    font-weight: 500;
}
.preview-stats__value {
    color: var(--text);
    font-weight: 600;
    font-family: var(--mono);
    text-align: right;
}
.preview-stats__value--ok    { color: var(--ok); }
.preview-stats__value--warn  { color: var(--warn); }
.preview-stats__value--error { color: var(--error); }

/* ---------- Мини-легенда под карточкой ---------- */
.preview-legend-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-size: 11px;
    color: var(--text-muted);
}
.preview-legend-mini__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.preview-legend-mini__swatch {
    width: 14px; height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ---------- Список проверок ---------- */
.checks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.check {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    transition: box-shadow 0.15s ease;
}
.check:hover {
    box-shadow: 0 4px 14px rgba(30, 60, 90, 0.06);
}
.check__icon {
    flex: 0 0 32px;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}
.check--ok      .check__icon { background: var(--ok); }
.check--warning .check__icon { background: var(--warn); }
.check--error   .check__icon { background: var(--error); }
.check--pending .check__icon { background: #b0b9c4; }

.check--ok      { border-left: 4px solid var(--ok); }
.check--warning { border-left: 4px solid var(--warn); }
.check--error   { border-left: 4px solid var(--error); }
.check--pending { border-left: 4px solid #b0b9c4; opacity: 0.7; }

.check__body { flex: 1; min-width: 0; }

.check__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.check__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.check__value {
    font-size: 14px;
    color: var(--brand);
    font-weight: 600;
    white-space: nowrap;
}
.check--error   .check__value { color: var(--error); }
.check--warning .check__value { color: var(--warn); }
.check--pending .check__value { color: var(--text-light); }

.check__message {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}


/* ==========================================================================
   ЛАЙТБОКС (открытие превью крупно)
   ========================================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: lightbox-in 0.2s ease;
}
@keyframes lightbox-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 45, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: zoom-out;
}
.lightbox__content {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: lightbox-scale 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes lightbox-scale {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.lightbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: #f5f8fb;
    flex-shrink: 0;
}
.lightbox__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.lightbox__close {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.lightbox__close:hover {
    background: var(--error);
    color: #fff;
}
.lightbox__body {
    padding: 30px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.lightbox__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
}


/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
    padding: 80px 0;
    background: var(--white);
}
.faq__list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    overflow: hidden;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] {
    border-color: var(--brand);
    box-shadow: 0 4px 16px rgba(106, 184, 238, 0.12);
}
.faq-item__q {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 56px;
    transition: color var(--transition);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    transition: transform var(--transition);
}
.faq-item[open] .faq-item__q::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-item__q:hover { color: var(--brand); }
.faq-item__a {
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
}


/* ==========================================================================
   ФУТЕР
   ========================================================================== */

.footer {
    padding: 56px 0 24px;
    background: var(--text);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 40px;
}
.footer__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.footer__tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}
.footer__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.footer__text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}
.footer__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    background: var(--brand);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}
.footer__button:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}
.footer__bottom {
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}


/* ==========================================================================
   АДАПТИВ
   ========================================================================== */

@media (max-width: 960px) {
    .hero { padding: 40px 0 60px; }
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero__content {
        max-width: 100%;
        text-align: center;
    }
    .hero__specs {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .specs__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .header__logo-sub { display: none; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .header__inner { height: 64px; }
    .header__back span { display: none; }

    .hero { padding: 32px 0 48px; }

    .card-mockup {
        width: 100%;
        max-width: 320px;
        height: 206px;
    }
    .card-mockup__card { width: 85%; height: 82%; }
    .card-mockup__safe { width: 85%; height: 80%; }

    .specs,
    .upload,
    .faq { padding: 56px 0; }

    .specs__grid { grid-template-columns: 1fr; }

    .upload-box { padding: 40px 24px; }
    .upload-box__title { font-size: 18px; }

    .results { padding: 24px 20px; }
    .results__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .result-summary {
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    .preview-card { padding: 16px; }
    .preview-technical { padding: 30px 30px 30px 30px; }

    .check__head {
        flex-direction: column;
        gap: 2px;
    }
    .check__value { font-size: 13px; }

    .lightbox { padding: 0; }
    .lightbox__content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
    .lightbox__body { padding: 16px; }
}

/* ==========================================================================
   КОНЕЦ ФАЙЛА style.css
   ========================================================================== */
/* ==========================================================================
   ЧАСТЬ 13. СМОТРЕЛКА: шапка, вкладки, галерея страниц, карточка сведений
   ========================================================================== */

/* ---------- Шапка инструмента ---------- */
.top {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 72px;
}
.top__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}
.top__mark {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
    flex-shrink: 0;
}
.top__name  { font-weight: 800; font-size: 16px; letter-spacing: 0.02em; line-height: 1.15; }
.top__note  { font-size: 12px; color: var(--text-light); letter-spacing: 0.06em; text-transform: uppercase; }
.top__right { font-size: 13px; color: var(--text-muted); text-align: right; }
.top__right b { display: block; color: var(--text); font-size: 14px; }

body.is-embed .top,
body.is-embed .foot { display: none; }
body.is-embed .lead { padding-top: 24px; }

/* ---------- Первый экран ---------- */
.lead { padding: 56px 0 8px; background: linear-gradient(180deg, var(--brand-bg) 0%, var(--white) 100%); }
.lead__inner { max-width: 860px; margin: 0 auto; text-align: center; }
.lead__title {
    font-size: 40px; line-height: 1.15; font-weight: 800;
    letter-spacing: -0.02em; color: var(--text); margin-bottom: 14px;
}
.lead__sub { font-size: 18px; color: var(--text-muted); margin-bottom: 22px; }
.lead__formats {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px;
}
.lead__format {
    font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
    color: var(--brand-dark); background: var(--brand-light);
    border: 1px solid #d3e8f8; border-radius: 999px; padding: 5px 12px;
}
.lead__free { font-size: 14px; color: var(--text-light); }

.upload { padding: 28px 0 72px; background: var(--white); }

/* ---------- Ход работы ---------- */
.steps {
    max-width: 780px; margin: 0 auto 4px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.step {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 10px;
    background: #f5f8fb; border: 1px solid var(--border);
    font-size: 14px; color: var(--text-light);
    transition: all var(--transition);
}
.step__num {
    width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
    background: var(--border); color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.step.is-now  { background: var(--brand-light); border-color: #cfe6f8; color: var(--brand-dark); }
.step.is-now  .step__num { background: var(--brand); color: #fff; }
.step.is-done { background: var(--ok-bg); border-color: var(--ok-border); color: #1e7b46; }
.step.is-done .step__num { background: var(--ok); color: #fff; }

/* ---------- Вкладки ---------- */
.tabs {
    display: flex; gap: 6px; margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.tab {
    appearance: none; border: none; background: transparent;
    padding: 12px 18px; font-size: 15px; font-weight: 600;
    font-family: inherit; color: var(--text-muted); cursor: pointer;
    border-bottom: 3px solid transparent; margin-bottom: -1px;
    transition: all var(--transition);
}
.tab:hover { color: var(--brand-dark); }
.tab.is-active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.tab__soon {
    display: inline-block; margin-left: 8px; padding: 2px 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
    color: #9a5f0d; background: var(--warn-bg);
    border: 1px solid var(--warn-border); border-radius: 999px;
    vertical-align: 1px;
}

/* ---------- Карточка «что это за файл» ---------- */
.about {
    display: grid; grid-template-columns: 56px 1fr; gap: 18px;
    padding: 22px 24px; margin-bottom: 24px;
    background: linear-gradient(135deg, var(--brand-bg) 0%, var(--white) 100%);
    border: 1px solid #dceaf6; border-radius: 14px;
}
.about__icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--white); border: 1px solid #dceaf6; color: var(--brand);
    display: flex; align-items: center; justify-content: center;
}
.about__lines { font-size: 15.5px; line-height: 1.62; color: var(--text); }
.about__lines p { margin-bottom: 6px; }
.about__lines p:last-child { margin-bottom: 0; }
.about__lines b { font-weight: 700; }
.about__flag { color: #9a5f0d; font-weight: 600; }

/* ---------- Галерея страниц ---------- */
.pages__head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 12px;
}
.pages__title { font-size: 16px; font-weight: 700; color: var(--text); }
.pages__hint  { font-size: 13px; color: var(--text-light); }
.pages__grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    margin-bottom: 12px;
}
.page-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
    transition: all var(--transition); cursor: zoom-in;
}
.page-card:hover { border-color: var(--brand-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.page-card__stage {
    display: flex; align-items: center; justify-content: center;
    min-height: 170px; padding: 14px;
    background: repeating-conic-gradient(#f3f6f9 0% 25%, #ffffff 0% 50%) 50% / 16px 16px;
}
.page-card__stage img {
    display: block; max-width: 100%; max-height: 260px;
    box-shadow: 0 2px 10px rgba(18, 34, 45, 0.16);
}
.page-card__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text-muted);
}
.page-card__foot b { color: var(--text); font-weight: 600; }
.page-card__zoom { color: var(--brand); font-size: 12px; white-space: nowrap; }

.pages__source {
    font-size: 13px; color: var(--text-muted);
    background: #f5f8fb; border: 1px solid var(--border);
    border-left: 3px solid var(--brand-soft);
    border-radius: 8px; padding: 10px 14px; margin-bottom: 22px;
}

/* ---------- Факты ---------- */
.facts { margin-bottom: 22px; }
.facts__title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px; }

/* ---------- Примечания ---------- */
.notes { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-muted); }
.notes__item {
    padding: 10px 14px; background: #fbfcfe;
    border: 1px solid var(--border); border-radius: 8px;
    display: flex; gap: 10px; align-items: flex-start;
}
.notes__item::before {
    content: "i"; flex-shrink: 0; margin-top: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand-light); color: var(--brand-dark);
    font-size: 11px; font-weight: 700; font-style: italic;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Не смогли прочитать файл ---------- */
.trouble {
    display: grid; grid-template-columns: 52px 1fr; gap: 18px;
    padding: 24px; border-radius: 14px;
    background: var(--warn-bg); border: 1px solid var(--warn-border);
}
.trouble__icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--warn); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700;
}
.trouble__title { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.trouble__text  { font-size: 15px; color: #6a4b16; line-height: 1.6; margin-bottom: 12px; }
.trouble__next  {
    font-size: 15px; color: var(--text); line-height: 1.6;
    background: rgba(255, 255, 255, 0.78); border-radius: 8px; padding: 12px 14px;
}
.trouble__next b { font-weight: 700; }

/* ---------- Вкладка «Годится ли в печать» ---------- */
.soon__lead {
    font-size: 15.5px; color: var(--text-muted); line-height: 1.6;
    margin-bottom: 18px; max-width: 760px;
}
.soon__grid {
    display: grid; gap: 8px 20px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.soon__item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border: 1px solid var(--border);
    border-radius: 8px; background: #fbfcfe;
    font-size: 14px; color: var(--text-muted);
}
.soon__num {
    width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
    background: var(--border); color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}

/* ---------- Подвал ---------- */
.foot {
    padding: 28px 0 40px; background: var(--white);
    border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text-light);
}
.foot__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--brand-dark); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- Мелочи ---------- */
.filechip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.filechip b { color: var(--text); font-weight: 600; word-break: break-all; }
.filechip__badge {
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
    color: var(--white); background: var(--brand);
    border-radius: 5px; padding: 3px 7px;
}
.is-hidden { display: none !important; }

/* ---------- Адаптив части 13 ---------- */
@media (max-width: 760px) {
    .lead { padding: 36px 0 4px; }
    .lead__title { font-size: 28px; }
    .lead__sub { font-size: 16px; }
    .steps { grid-template-columns: 1fr; }
    .tabs { overflow-x: auto; }
    .tab { padding: 12px 12px; font-size: 14px; white-space: nowrap; }
    .about { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
    .about__icon { width: 48px; height: 48px; }
    .about__lines { font-size: 15px; }
    .pages__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .page-card__stage { min-height: 130px; }
    .page-card__stage img { max-height: 190px; }
    .page-card__foot { flex-direction: column; align-items: flex-start; gap: 2px; }
    .trouble { grid-template-columns: 1fr; }
    .top__inner { height: 62px; }
    .top__right { display: none; }
    .foot__inner { flex-direction: column; }
    .upload { padding: 20px 0 48px; }
}

/* ==========================================================================
   КОНЕЦ ЧАСТИ 13
   ========================================================================== */

/* ==========================================================================
   ЧАСТЬ 14. Правки после первого просмотра страницы глазами
   ========================================================================== */

/* Заголовок первого экрана переносится по смыслу, а не «висячим» словом */
.lead__title,
.lead__sub { text-wrap: balance; }

/* Окно загрузки сжимается, когда ответ уже на экране: главное — ответ */
.upload-box.is-compact { padding: 18px 24px; }
.upload-box.is-compact .upload-box__inner {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 8px 18px;
}
.upload-box.is-compact .upload-box__icon,
.upload-box.is-compact .upload-box__or,
.upload-box.is-compact .upload-box__hint { display: none; }
.upload-box.is-compact .upload-box__title { font-size: 16px; margin-bottom: 0; }
.upload-box.is-compact .upload-box__button { padding: 10px 22px; font-size: 14px; }

/* Подпись под страницей больше не обрезается */
.page-card__foot {
    flex-direction: column; align-items: flex-start; gap: 2px;
}
.page-card__zoom { white-space: normal; }

/* Одна страница показывается крупно, а не жмётся в узкую колонку */
.pages__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pages__grid--one { grid-template-columns: minmax(0, 460px); }
.pages__grid--one .page-card__stage { min-height: 260px; }
.pages__grid--one .page-card__stage img { max-height: 420px; }

/* Таблица фактов: две колонки вместо трёх, длинные значения переносятся */
.facts .preview-stats { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 6px 32px; }
.facts .preview-stats__row { align-items: flex-start; }
.facts .preview-stats__value { font-size: 12.5px; word-break: break-word; max-width: 62%; }

/* В лупе мелкое превью Корела показываем крупно, а не марочкой */
.lightbox__body img {
    height: min(74vh, 900px); width: auto; max-width: 100%;
    object-fit: contain;
}

@media (max-width: 760px) {
    .pages__grid--one { grid-template-columns: 1fr; }
    .pages__grid--one .page-card__stage { min-height: 200px; }
    .pages__grid--one .page-card__stage img { max-height: 300px; }
    .facts .preview-stats { grid-template-columns: 1fr; }
    .facts .preview-stats__value { max-width: 55%; }
    .lightbox__body img { height: auto; max-height: 62vh; }
}

/* ---------- Правки второго просмотра ---------- */
html { scroll-padding-top: 92px; }
.results { scroll-margin-top: 92px; }

/* Клетчатая подложка была слишком заметной — приглушаем */
.page-card__stage {
    background: repeating-conic-gradient(#f6f8fa 0% 25%, #ffffff 0% 50%) 50% / 18px 18px;
}

/* Картинка в лупе: правила задаём только здесь, без встроенных стилей */
.lightbox__img {
    height: min(74vh, 900px); width: auto; max-width: 100%;
    object-fit: contain; display: block;
    box-shadow: 0 4px 24px rgba(18, 34, 45, 0.22);
}
@media (max-width: 760px) {
    .lightbox__img { height: auto; width: 100%; max-height: 64vh; }
}

/* На телефоне ничего никуда не перетаскивают — надписи меняются */
.only-narrow { display: none; }
.only-wide   { display: inline; }
@media (max-width: 760px) {
    .only-narrow { display: inline; }
    .only-wide   { display: none; }
}

@media (max-width: 760px) {
    /* На телефоне окно лупы во весь экран — картинку ставим по центру */
    .lightbox__body { justify-content: center; }
}

/* Тело лупы занимает всю высоту окна — иначе картинка липнет к верху */
.lightbox__body { flex: 1 1 auto; justify-content: center; }


/* ЧАСТЬ 15. Настоящий логотип в шапке */
.top__logo{display:block;width:132px;max-width:132px;height:auto}
.top__brand{display:flex;align-items:center;gap:14px;text-decoration:none}
.top__brand .top__note{padding-left:14px;border-left:1px solid #E4EDF3;line-height:1.35}
@media(max-width:640px){
 .top__logo{width:104px}
 .top__brand{gap:10px}
 .top__brand .top__note{padding-left:10px;font-size:11px}
}


/* ==========================================================================
   ЧАСТЬ 16. ЭТАП 7. ОТЧЁТ «ГОДИТСЯ ЛИ В ПЕЧАТЬ»
   Полоса светофора, превью с разметкой, линейки, список замечаний.
   Всё в столбик: на телефоне читается тем же порядком, что и на большом экране.
   ========================================================================== */

/* ---------- Мост со смотрелки на проверку ---------- */
.bridge { margin: 26px 0 4px; text-align: center; }
.bridge__btn {
    appearance: none; border: 0; cursor: pointer;
    background: var(--brand); color: #fff;
    font: 600 15px/1.25 inherit; letter-spacing: .01em;
    padding: 14px 28px; border-radius: var(--radius-md);
    box-shadow: 0 6px 18px rgba(46, 134, 200, .22);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.bridge__btn:hover { background: var(--brand-dark); transform: translateY(-1px);
                     box-shadow: 0 10px 24px rgba(46, 134, 200, .28); }
.bridge__btn:active { transform: none; }

/* ---------- Превью с разметкой ---------- */
.shot {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px 26px 26px; margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.shot__head { margin-bottom: 16px; }
.shot__title { font-size: 17px; font-weight: 700; color: var(--text); }
.shot__lead  { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); max-width: 76ch; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.legend__item {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: var(--text-muted); white-space: nowrap;
}
.legend__item b { color: var(--text); font-weight: 600; }
.legend__mark { width: 22px; height: 12px; border-radius: 2px; flex: 0 0 auto; }
.legend__mark--bleed {
    background-image: repeating-linear-gradient(45deg,
        rgba(231, 76, 60, .55) 0 1.5px, transparent 1.5px 5px);
    border: 1px solid var(--error-border);
}
.legend__mark--bleed-none { background: #eef2f6; border: 1px solid var(--border-strong); }
.legend__mark--trim { border-top: 2px dashed var(--tech-trim); height: 2px; border-radius: 0; }
.legend__mark--safe { border-top: 1.5px dashed var(--tech-safe); height: 2px; border-radius: 0; }
.legend__mark--spot {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--error); background: rgba(231, 76, 60, .1);
}

.shot__grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.shot__grid--one { grid-template-columns: minmax(0, 640px); }
.shot__page { margin: 0; min-width: 0; }
.shot__num { font-size: 12.5px; font-weight: 600; color: var(--text-light); margin-bottom: 8px; }

/* Рамка: уголок, линейка сверху, линейка слева, сама страница */
.shot__frame {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-rows: 18px auto;
}
.shot__frame--plain { display: block; }
.shot__corner { grid-area: 1 / 1; }
.rul { position: relative; }
.rul--top  { grid-area: 1 / 2; border-bottom: 1px solid var(--border-strong); }
.rul--left { grid-area: 2 / 1; border-right: 1px solid var(--border-strong); }
.rul__tick { position: absolute; background: var(--border-strong); }
.rul--top  .rul__tick { bottom: 0; width: 1px; height: 4px; }
.rul--left .rul__tick { right: 0; height: 1px; width: 4px; }
.rul--top  .rul__tick--big { height: 8px; background: #8a98aa; }
.rul--left .rul__tick--big { width: 8px;  background: #8a98aa; }
.rul__num {
    position: absolute; font-family: var(--mono); font-size: 9px; line-height: 1;
    color: var(--text-light);
}
.rul--top  .rul__num { top: 1px; transform: translateX(-50%); }
.rul--left .rul__num { left: 1px; transform: translateY(-50%); }

.shot__stage {
    grid-area: 2 / 2; position: relative; cursor: zoom-in;
    background: repeating-conic-gradient(#f6f8fa 0% 25%, #ffffff 0% 50%) 50% / 14px 14px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.shot__frame--plain .shot__stage { grid-area: auto; }
.shot__stage img { display: block; width: 100%; height: 100%; object-fit: fill; }
.shot__frame--plain .shot__stage img { height: auto; }

/* Сама разметка */
.mk { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mk__hatch  { stroke: rgba(231, 76, 60, .55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mk__bleed  { stroke: none; }
.mk__veil   { fill: rgba(255, 255, 255, .45); stroke: none; }
/* Подложки: светлая линия под цветной. Иначе красный пунктир пропадает
   на красном или тёмном макете, и человек думает, что разметки нет. */
.mk__trim-под { fill: none; stroke: rgba(255, 255, 255, .78); stroke-width: 3;
                vector-effect: non-scaling-stroke; }
.mk__safe-под { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2.2;
                vector-effect: non-scaling-stroke; }
.mk__spot-под { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 4.6;
                vector-effect: non-scaling-stroke; }
.mk__trim   { fill: none; stroke: var(--tech-trim); stroke-width: 1.4;
              stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.mk__safe   { fill: none; stroke: var(--tech-safe); stroke-width: 1;
              stroke-dasharray: 2.5 3; vector-effect: non-scaling-stroke; opacity: .9; }
.mk__corner { fill: none; stroke: var(--tech-trim); stroke-width: 2;
              vector-effect: non-scaling-stroke; }
.mk__spot   { fill: none; stroke: var(--warn); stroke-width: 2;
              vector-effect: non-scaling-stroke; }
.mk__spot--bad { stroke: var(--error); stroke-width: 2.4; }
/* Плохая сторона: не кружок, а вся полоса запаса под нож у этого края.
   Кружком её не показать — замечание тут длиной во всю сторону листа. */
.mk__edge-под { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 4.4;
                vector-effect: non-scaling-stroke; }
.mk__edge   { fill: rgba(231, 76, 60, .16); stroke: var(--error); stroke-width: 2;
              stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.mk__edge--warn { fill: rgba(243, 156, 18, .14); stroke: var(--warn); }

/* «Так будет после резки» */
.cut { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cut__card {
    position: relative; overflow: hidden; width: 190px; flex: 0 0 auto; cursor: zoom-in;
    background: #fff; box-shadow: 0 4px 14px rgba(18, 34, 45, .16);
}
.cut__card img { position: absolute; max-width: none; object-fit: fill; }
.cut__label { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.cut__label span { display: block; color: var(--text-light); font-size: 11.5px; margin-top: 2px; }

/* У картинки карточка «после резки» — это ВЕСЬ лист вместе с запасом,
   а срез делает clip-path. Так его видно как действие: сначала лист целиком,
   потом от него отрезаются края. Тень рисуем через filter: обычная тень
   обрезалась бы вместе с полями и карточка потеряла бы объём. */
.cut__card--rz {
    overflow: visible; background: none; box-shadow: none;
    filter: drop-shadow(0 4px 14px rgba(18, 34, 45, .16));
    clip-path: inset(var(--rz-y) var(--rz-x) round var(--rz-r));
}
.cut__card--rz .cut__cover { position: absolute; inset: 0; display: block; }
.cut__card--rz .cut__cover img {
    position: static; width: 100%; height: 100%; object-fit: cover; max-width: none;
}

/* ---------- Разметка растра: один показ при появлении на экране ----------
   Ни зацикливания, ни мигания, ни бегущего пунктира, ни повтора при
   прокрутке. Отыграло — и дальше статика навсегда. */
.mk--rz .mk__bleed { opacity: .45; transition: opacity .2s ease; }
.shot--rz.is-hot .mk--rz .mk__bleed { opacity: .75; }

@keyframes rz-hatch {
    0%   { opacity: 0; }
    55%  { opacity: .75; }
    100% { opacity: .45; }
}
@keyframes rz-line { from { opacity: 0; } to { opacity: 1; } }
@keyframes rz-cut {
    from { clip-path: inset(0% 0% round 0% / 0%); }
    to   { clip-path: inset(var(--rz-y) var(--rz-x) round var(--rz-r)); }
}

.shot__page.is-play .mk--rz .mk__bleed {
    animation: rz-hatch 900ms ease-out both;
}
/* Выбелка появляется вместе со штриховкой: это одна и та же полоса. */
.shot__page.is-play .mk--rz .mk__veil {
    animation: rz-line 500ms ease-out both;
}
.shot__page.is-play .mk--rz .mk__trim,
.shot__page.is-play .mk--rz .mk__trim-под,
.shot__page.is-play .mk--rz .mk__safe,
.shot__page.is-play .mk--rz .mk__safe-под,
.shot__page.is-play .mk--rz .mk__corner {
    animation: rz-line 550ms ease-out 150ms both;
}
.shot__page.is-play .cut__card--rz {
    animation: rz-cut 600ms cubic-bezier(.4, 0, .2, 1) 500ms both;
}

/* ---------- Разметка поверх КАРТИНКИ ----------
   Линии реза в JPG и PSD нет: она построена по размеру изделия, и об этом
   написано и в заголовке, и вот этой серой меткой. Метка именно серая —
   это оговорка о происхождении линии, а не замечание к макету. */
.shot__guess {
    display: inline-block; margin-left: 10px; vertical-align: 2px;
    padding: 2px 8px; border-radius: 999px;
    background: #eef2f6; border: 1px solid var(--border-strong);
    font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
    color: var(--text-light); text-transform: none;
}
/* Картинку кладём на лист «покрыть целиком»: пропорции у неё свои, растянуть
   её под лист значило бы показать не тот рисунок, который прислал человек. */
.shot__stage--cover img { object-fit: cover; }

/* Кнопка «показать ещё раз» живёт в одном ряду с легендой. */
.legend__again {
    margin-left: auto; padding: 5px 12px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--white); color: var(--text-muted);
    font-size: 12px; font-family: inherit; cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}
.legend__again:hover { border-color: var(--brand); color: var(--brand-dark); }
/* У картинки в этом пункте не «2 мм», а целая фраза с числом точек файла.
   Без переноса она уезжает за правый край столбца и обрывается на полуслове —
   так и вышло на первом снимке. Переносим только ЗНАЧЕНИЕ: подпись «Запас
   под нож», разорванная по слогам, читается ещё хуже обрыва. */
.legend__name { white-space: nowrap; }
.shot--rz .legend__item--bleed {
    cursor: help; flex: 1 1 100%; white-space: normal; align-items: flex-start;
}
.shot--rz .legend__item--bleed .legend__mark { margin-top: 3px; }
.shot--rz .legend__item--bleed b { white-space: normal; }

/* ---------- Кнопки «а это для чего» под самой картинкой ---------- */
.pick {
    margin-top: 20px; padding: 16px 18px;
    background: var(--brand-bg); border: 1px solid var(--brand-light);
    border-radius: var(--radius-md);
}
.pick--thin { background: var(--white); border-color: var(--border); padding: 12px 14px; }
.pick__title { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.pick--thin .pick__title { font-size: 12.5px; }
.pick__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pick__btn {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
    padding: 8px 13px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--white); color: var(--text);
    font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
    transition: border-color var(--transition), background var(--transition),
                color var(--transition);
}
.pick__btn span { font-size: 11.5px; font-weight: 400; color: var(--text-light); }
.pick__btn:hover:not(:disabled) {
    border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark);
}
.pick__btn.is-on { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }
.pick__btn--off { font-weight: 400; color: var(--text-muted); }
.pick__btn:disabled { opacity: 0.55; cursor: default; }

.shot__why {
    margin-top: 20px; padding: 16px 18px;
    background: var(--brand-bg); border: 1px solid var(--brand-light);
    border-radius: var(--radius-md);
}
.shot__why p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.62; color: var(--text-muted); }
.shot__why p:last-child { margin-bottom: 0; }

/* ---------- Лупа: разметка поверх увеличенной страницы ---------- */
.lightbox__stage { position: relative; display: inline-block; line-height: 0; }
.lightbox__stage .mk { position: absolute; inset: 0; }

/* ---------- Телефон: полоса, фраза, превью, замечания — в столбик ---------- */
@media (max-width: 760px) {
    .shot { padding: 18px 14px 20px; }
    .shot__grid, .shot__grid--one { grid-template-columns: 1fr; gap: 22px; }
    .legend { gap: 6px 16px; }
    .legend__item { font-size: 12px; }
    /* Дорожка линейки узкая: деления укорачиваем, иначе они лезут на цифры */
    .shot__frame { grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: 16px auto; }
    .rul__num { font-size: 8px; }
    .rul--top  .rul__tick--big { height: 5px; }
    .rul--left .rul__tick--big { width: 5px; }
    .rul--top  .rul__tick { height: 3px; }
    .rul--left .rul__tick { width: 3px; }
    .cut__card { width: 150px; }
    .bridge__btn { width: 100%; padding: 15px 18px; }
}

/* ==========================================================================
   ЧАСТЬ 17. ОТЧЁТ-СВОДКА. 11 сентября 2026.

   Было: полоса, шесть плиток «паспорта», две колонки, три свёртки, а у
   картинки — три столбика голых чисел. Стало:

     полоса      цвет, фраза, ИЗ-ЗА ЧЕГО такой цвет, шкала проверенных
                 пунктов (каждая клетка — один пункт), кнопка;
     что мешает  красные и жёлтые с открытыми «если печатать как есть»
                 и «что сделать»;
     разделы     пять карточек по смыслу, в каждой строки
                 «подпись · число · что оно значит».

   ПРАВИЛО ЦВЕТА. Состояние показывают точка, полоска слева, клетка шкалы
   и пилюля статуса. Заливок во всю карточку нет: цветной фон на весь блок
   дешевит и мешает читать. Числа набраны крупно и табличными цифрами,
   слова — мелко. Никаких «баллов из ста»: за каждым числом — измерение.
   ========================================================================== */

:root {
    /* Montserrat — им набран cardregion.ru. Запасной набор обязателен:
       шрифт может не догрузиться, и страница не должна от этого поехать. */
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI',
            'Helvetica Neue', Arial, sans-serif;
    --ok-ink:   #1c7a43;
    --warn-ink: #a55b0c;
    --bad-ink:  #b03227;
    --grey-ink: #6d7c8c;
    --info-ink: #2a6ea3;
    --info-bg:  #eaf4fb;
    --r-box:  16px;   /* карточки и полосы */
    --r-in:   10px;   /* всё, что внутри карточки */
    --r-pill: 999px;  /* пилюли, точки, счётчики */
    --ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

body,
.lead__title,
.upload-box__title,
.results__title { font-family: var(--font); }

/* Пока на экране разбор, большая шапка не нужна: первый экран занят
   полосой светофора. Окошко загрузки тоже: другой файл открывает кнопка. */
body.has-result .lead { display: none; }
body.has-result .upload { padding-top: 22px; }
body.has-result .upload-box { display: none; }
@media (max-width: 760px) {
    body.has-result .results__title { font-size: 17px; }
}

/* ---------------------------------------------------------- общие мелочи */

.act {
    display: inline-flex; align-items: center; justify-content: center;
    white-space: nowrap; text-decoration: none; cursor: pointer;
    padding: 13px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
    background: var(--brand); color: #fff;
    font: 600 14.5px/1 var(--font); letter-spacing: 0.005em;
    box-shadow: 0 6px 16px rgba(46, 134, 200, .22);
    transition: background .25s var(--ease), transform .25s var(--ease),
                box-shadow .25s var(--ease);
}
.act:hover { background: var(--brand-dark); box-shadow: 0 10px 22px rgba(46, 134, 200, .28); }
.act:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(46, 134, 200, .2); }
.act--ghost {
    background: #fff; color: var(--text-muted); border-color: var(--border-strong);
    box-shadow: none; font-weight: 500;
}
.act--ghost:hover { background: #fff; color: var(--brand-dark); border-color: var(--brand); box-shadow: none; }
.act--small { padding: 9px 16px; font-size: 13px; }

/* Пилюля статуса: одно слово, цвет — только у буквы и тонкой рамки. */
.pill {
    display: inline-flex; align-items: center; white-space: nowrap;
    padding: 4px 10px; border-radius: var(--r-pill);
    border: 1px solid var(--border); background: var(--bg);
    font: 600 12px/1.3 var(--font); color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.pill--ok   { color: var(--ok-ink);   background: var(--ok-bg);   border-color: var(--ok-border); }
.pill--warn { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-border); }
.pill--bad  { color: var(--bad-ink);  background: var(--error-bg); border-color: var(--error-border); }
.pill--skip { color: var(--grey-ink); }
.pill--part { color: var(--grey-ink); }
.pill--info { color: var(--info-ink); background: var(--info-bg); border-color: #cfe4f4; }

/* =========================================================== 1. ПОЛОСА */

.band {
    display: grid;
    grid-template-columns: 5px minmax(0, 1fr) auto;
    align-items: start;
    gap: 0 26px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-box);
    box-shadow: 0 2px 10px rgba(18, 34, 45, .05);
    overflow: hidden;
    margin: 2px 0 16px;
}
.band__rail { align-self: stretch; background: var(--grey-ink); }
.band--red    .band__rail { background: var(--error); }
.band--yellow .band__rail { background: var(--warn); }
.band--green  .band__rail { background: var(--ok); }
.band--grey   .band__rail { background: var(--grey-ink); }

.band__body { padding: 22px 0 22px 26px; min-width: 0; }
.band__title {
    margin: 0;
    font-size: clamp(21px, 2.2vw, 29px); font-weight: 700; line-height: 1.18;
    letter-spacing: -0.022em; color: var(--text); text-wrap: balance;
}
.band__text {
    margin: 10px 0 0; max-width: 78ch;
    font-size: 14px; line-height: 1.6; color: var(--text-muted);
}
.band__act { padding: 22px 26px 22px 0; }

/* Из-за чего такой цвет: сами замечания с их числами. */
.band__why { margin-top: 16px; }
.band__why-label {
    display: block; margin-bottom: 8px;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-light);
}
.band__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.why {
    display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer;
    max-width: 100%; padding: 9px 14px 9px 12px; text-align: left;
    border: 1px solid var(--border); border-radius: var(--r-in); background: #fff;
    font-family: var(--font);
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.why:hover { background: var(--brand-bg); border-color: var(--brand-soft); }
.why__dot {
    flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px;
    border-radius: 50%; background: var(--border-strong);
}
.why--red    .why__dot { background: var(--error); }
.why--yellow .why__dot { background: var(--warn); }
.why__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.why__text b { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text); }
.why__text span {
    font-size: 12px; line-height: 1.4; color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Шкала пунктов: не проценты, а пункты. Клетка — пункт, по ней переход. */
.cov { margin-top: 16px; max-width: 640px; }
.cov__segs { display: flex; gap: 3px; height: 8px; }
.seg {
    flex: 1 1 0; height: 8px; padding: 0; border: 0; cursor: pointer;
    border-radius: 2px; background: var(--border-strong);
    transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.seg:hover { transform: scaleY(1.7); }
.seg--green  { background: var(--ok); }
.seg--red    { background: var(--error); }
.seg--yellow { background: var(--warn); }
.seg--skip   { background: #cfd8e0; }
.seg--info   { background: var(--brand-soft); }
.cov__legend {
    display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px;
    font-size: 12px; line-height: 1.4; color: var(--text-muted);
}
.cov__total { font-weight: 600; color: var(--text); }
.cov__part { display: inline-flex; align-items: center; gap: 6px; }
.cov__part i { width: 8px; height: 8px; border-radius: 2px; background: var(--border-strong); }
.cov__part--bad  i { background: var(--warn); }
.cov__part--red  i { background: var(--error); }
.cov__part--ok   i { background: var(--ok); }
.cov__part--skip i { background: #cfd8e0; }
.cov__part--info i { background: var(--brand-soft); }
.cov__part b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* ============================================================ 2. РАЗДЕЛЫ */

.pf-sec {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-box); padding: 22px 24px 22px; margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(18, 34, 45, .04);
}
.pf-sec__head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 12px;
}
.pf-sec__titles { min-width: 0; }
.pf-sec__name {
    margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3;
    letter-spacing: -0.015em; color: var(--text);
}
.pf-sec__sub { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-light); }
.pf-sec__head .pill { flex: 0 0 auto; margin-top: 2px; }

.pf-empty {
    margin: 0; padding: 12px 14px; border-radius: var(--r-in);
    font-size: 14px; line-height: 1.55; color: var(--text-muted);
    background: var(--bg); border: 1px solid var(--border);
}
.pf-empty--ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-ink); }

/* ------------------------------------------------- замечания: что мешает */

.issue {
    position: relative; overflow: hidden;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-in); padding: 18px 20px 18px 23px;
    margin-bottom: 10px;
}
.issue:last-child { margin-bottom: 0; }
.issue::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--border-strong);
}
.issue--red::before    { background: var(--error); }
.issue--yellow::before { background: var(--warn); }

.issue__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.issue__tag {
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--grey-ink);
}
.issue--red    .issue__tag { color: var(--bad-ink); }
.issue--yellow .issue__tag { color: var(--warn-ink); }
.issue__title {
    margin: 0; flex: 1 1 100%;
    font-size: 16.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.012em;
    color: var(--text);
}
.issue__where {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
    margin-top: 10px; font-size: 13px; line-height: 1.5;
}
.issue__where span { color: var(--text-light); }
.issue__where b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.issue__found { margin: 10px 0 0; font-size: 14px; line-height: 1.62; color: var(--text-muted); }

.issue__two {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
    margin-top: 14px;
}
.issue__col {
    padding: 12px 14px 13px; border-radius: var(--r-in);
    background: var(--bg); border: 1px solid var(--border);
}
.issue__col--fix { background: var(--brand-bg); border-color: var(--brand-light); }
.issue__col span {
    display: block; margin-bottom: 6px;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-light);
}
.issue__col--fix span { color: var(--brand-dark); }
.issue__col p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text); }

/* ------------------------------------------------ строки-показатели */

.rows { display: block; }
.row {
    display: grid; grid-template-columns: 14px 200px minmax(0, 1fr);
    gap: 0 14px; align-items: start;
    padding: 14px 0; border-top: 1px solid var(--border);
}
.row:first-child { border-top: 0; padding-top: 2px; }
.row:last-child { padding-bottom: 4px; }
.row__dot {
    width: 8px; height: 8px; margin: 8px 0 0 3px; border-radius: 50%;
    background: var(--border-strong);
}
.row--red    .row__dot { background: var(--error); }
.row--yellow .row__dot { background: var(--warn); }
.row--green  .row__dot { background: var(--ok); }
.row--info   .row__dot { background: var(--brand-soft); }
.row--skip   .row__dot { background: #cfd8e0; }
.row__label { padding-top: 4px; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--text); }
.row__label em {
    display: block; margin-top: 3px; font-style: normal;
    font-size: 11px; font-weight: 500; line-height: 1.35; color: var(--text-light);
}
.row__body { min-width: 0; }
.row__value {
    font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
    color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.row__value span {
    display: block; margin-top: 2px;
    font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--text-muted);
}
.row__value--none { font-size: 14px; font-weight: 500; color: var(--text-light); letter-spacing: 0; }
.row--red    .row__value { color: var(--bad-ink); }
.row--yellow .row__value { color: var(--warn-ink); }
.row__meaning { margin: 7px 0 0; max-width: 78ch; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.row__link,
.row__more summary {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 0;
    cursor: pointer; background: none; border: 0; color: var(--brand-dark);
    font: 600 12.5px/1.3 var(--font); list-style: none;
}
.row__more summary::-webkit-details-marker { display: none; }
.row__link::after,
.row__more summary::after {
    content: ''; width: 7px; height: 7px; margin-top: -3px;
    border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg); transition: transform .25s var(--ease);
}
.row__link::after { transform: rotate(-135deg); margin-top: 3px; }
.row__more[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.row__link:hover, .row__more summary:hover { color: var(--brand); }
.row__more p { margin: 9px 0 0; max-width: 78ch; font-size: 13px; line-height: 1.6; color: var(--text-light); }
.row__more .row__fix {
    padding: 11px 13px; color: var(--text); background: var(--brand-bg);
    border: 1px solid var(--brand-light); border-radius: var(--r-in);
}

/* ---- шкала разрешения: 0…предел, риски на границе и норме ---- */
.scale { display: block; margin-top: 10px; max-width: 320px; }
.scale__track {
    position: relative; display: block; height: 8px;
    background: #eef3f7; border-radius: var(--r-pill);
}
.scale__fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: var(--brand-soft); border-radius: var(--r-pill);
}
.row--red    .scale__fill { background: #f0a49b; }
.row--yellow .scale__fill { background: #f3c37a; }
.row--green  .scale__fill { background: #86d3a5; }
.scale__tick {
    position: absolute; top: -4px; bottom: -4px; width: 2px;
    background: rgba(18, 34, 45, .34); border-radius: 1px;
}
.scale__tick--norm { background: rgba(18, 34, 45, .72); }
.scale__pin {
    position: absolute; top: 50%; width: 12px; height: 12px; margin-left: -6px;
    border-radius: 50%; background: #fff; border: 3px solid var(--grey-ink);
    transform: translateY(-50%);
}
.row--red    .scale__pin { border-color: var(--error); }
.row--yellow .scale__pin { border-color: var(--warn); }
.row--green  .scale__pin { border-color: var(--ok); }

/* ---- линейка запаса под нож: клетка — миллиметр, обведённая — норма ---- */
.mmr { display: flex; gap: 4px; margin-top: 10px; max-width: 240px; }
.mmc {
    flex: 1 1 0; height: 10px; border-radius: 3px;
    background: #eef3f7; border: 1px solid transparent;
}
.mmc.is-full { background: var(--brand-soft); }
.mmc.is-part { background: linear-gradient(90deg, var(--brand-soft) 50%, #eef3f7 50%); }
.row--red    .mmc.is-full, .row--red    .mmc.is-part { background: #f0a49b; }
.row--yellow .mmc.is-full, .row--yellow .mmc.is-part { background: #f3c37a; }
.row--green  .mmc.is-full, .row--green  .mmc.is-part { background: #86d3a5; }
.mmc.is-need { border-color: var(--text); }

/* ---- кружки красок: четыре печатных против трёх экранных ---- */
.inks { display: flex; gap: 5px; margin-top: 9px; }
.ink { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(18, 34, 45, .12); }
.ink--c { background: #00a3d9; }
.ink--m { background: #d6006f; }
.ink--y { background: #f5d000; }
.ink--k { background: #1b1b1b; }
.ink--r { background: #e23b2e; }
.ink--g { background: #2eb85c; }
.ink--b { background: #2f6ede; }

/* Превью с разметкой и объяснение про Корел живут внутри раздела «размеры». */
.pf-sec .shot { margin: 16px 0 0; padding: 0; border: 0; box-shadow: none; }
.pf-sec .rows + .shot { padding-top: 16px; border-top: 1px solid var(--border); }

/* ============================ 3. «НА ЧТО ХВАТИТ ТОЧЕК» У КАРТИНКИ */

.dots { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.dots__title { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.dots__lead { margin: 4px 0 0; max-width: 78ch; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

.dots__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.dots__cell {
    padding: 14px 16px 13px; border-radius: var(--r-in);
    background: #fff; border: 1px solid var(--border);
}
.dots__cell--main { background: var(--brand-bg); border-color: var(--brand-light); }
.dots__label {
    display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-light);
}
.dots__num {
    display: block; margin-top: 6px;
    font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
    color: var(--text); font-variant-numeric: tabular-nums;
}
.dots__cell--main .dots__num { color: var(--brand-dark); }
.dots__under { display: block; margin-top: 5px; font-size: 12px; line-height: 1.45; color: var(--text-muted); }

.dots__aim {
    margin-top: 12px; padding: 11px 14px; border-radius: var(--r-in);
    font-size: 14px; line-height: 1.5; color: var(--text);
    background: var(--ok-bg); border: 1px solid var(--ok-border);
}
.dots__aim--vpritik   { background: var(--warn-bg);  border-color: var(--warn-border); }
.dots__aim--ne-hvatit { background: var(--error-bg); border-color: var(--error-border); }
.dots__reset {
    margin-left: 8px; padding: 0; cursor: pointer; background: none; border: 0;
    color: var(--brand-dark); font: 600 12.5px/1 var(--font); text-decoration: underline;
}
.dots__like { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.dots__like-title { font-weight: 600; color: var(--text); }
.dots__like-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.dots__like-item b { color: var(--text); font-variant-numeric: tabular-nums; }
.dots__like-item i { margin-left: 6px; font-style: normal; color: var(--ok-ink); }

.dots__table { margin-top: 14px; }
.dtab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtab th {
    padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--border-strong);
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-light); white-space: nowrap;
}
.dtab td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dtab tbody tr:last-child td { border-bottom: 0; }
.dtab__name b { font-weight: 600; color: var(--text); }
.dtab__name i {
    display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: var(--r-pill);
    font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--brand-dark); background: var(--brand-light);
}
.dtab__size { color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtab__ppi { white-space: nowrap; }
.dtab__ppi b {
    display: inline-block; min-width: 38px; margin-right: 10px;
    font-size: 15px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums;
}
.dtab__bar {
    position: relative; display: inline-block; vertical-align: middle;
    width: 96px; height: 6px; border-radius: var(--r-pill); background: #eef3f7;
}
.dtab__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--r-pill); background: var(--brand-soft); }
.dtab__row--ok   .dtab__bar i { background: #86d3a5; }
.dtab__row--warn .dtab__bar i { background: #f3c37a; }
.dtab__row--bad  .dtab__bar i { background: #f0a49b; }
.dtab__tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: rgba(18, 34, 45, .34); }
.dtab__tick--norm { top: -5px; bottom: -5px; background: rgba(18, 34, 45, .72); }
.dtab__word { text-align: right; }
.dtab__row.is-extra { display: none; }
.dtab.is-full .dtab__row.is-extra { display: table-row; }
.dots__all { margin-top: 10px; }
.dots__under-table,
.dots__note { margin: 10px 0 0; max-width: 78ch; font-size: 12.5px; line-height: 1.6; color: var(--text-light); }

.dots__ask { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.dots__ask-title { font-size: 15px; font-weight: 700; color: var(--text); }
.dots__ask-lead { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--text-muted); }

/* ================================================= 4. ПОДВАЛ ОТЧЁТА */

.pf-foot { border-top: 1px solid var(--border); padding-top: 18px; }
.pf-next { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.pf-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-light); }
.pf-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ======================================================= 5. БЕТА-ВЕРСИЯ */

.beta {
    margin: 22px auto 0; max-width: 820px; text-align: left;
    padding: 16px 20px 15px; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--r-box);
    box-shadow: 0 2px 10px rgba(18, 34, 45, .04);
}
.beta--compact { max-width: none; margin-top: 22px; }
.beta__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.beta__tag {
    display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--r-pill);
    background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-ink);
    font: 700 10.5px/1.3 var(--font); letter-spacing: 0.06em; text-transform: uppercase;
}
.beta__title { font: 700 14.5px/1.35 var(--font); color: var(--text); }
.beta__text { margin: 8px 0 0; max-width: 78ch; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.beta__mail { color: var(--brand-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }
.beta__mail:hover { color: var(--brand); text-decoration: underline; }
.beta__more summary {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
    cursor: pointer; list-style: none; color: var(--brand-dark);
    font: 600 12.5px/1.3 var(--font);
}
.beta__more summary::-webkit-details-marker { display: none; }
.beta__more summary::after {
    content: ''; width: 7px; height: 7px; margin-top: -3px;
    border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg); transition: transform .25s var(--ease);
}
.beta__more[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.beta__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin-top: 12px; }
.beta__col h4 {
    margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-light);
}
.beta__col--yes h4 { color: var(--ok-ink); }
.beta__col--no h4 { color: var(--warn-ink); }
.beta__col ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.beta__col li { margin-bottom: 5px; }
.beta__col li::marker { color: var(--border-strong); }

/* ============================== ПОДСВЕТКА: ЧИП ↔ ПУНКТ ↔ КРУЖОК */

@keyframes pf-lit {
    0%   { box-shadow: 0 0 0 0 rgba(46, 134, 200, .40); }
    100% { box-shadow: 0 0 0 12px rgba(46, 134, 200, 0); }
}
.is-lit {
    border-radius: var(--r-in);
    animation: pf-lit 1.1s ease-out 2;
    background: var(--brand-bg);
}
.row.is-lit { padding-left: 6px; padding-right: 6px; margin: 0 -6px; }
.mk__spot { pointer-events: auto; cursor: pointer; }
.mk__spot.is-lit {
    animation: none; background: none;
    stroke-width: 3.4; stroke: var(--brand);
}

/* ================================ «ПРЕДПОЧИТАЮ МЕНЬШЕ ДВИЖЕНИЯ»
 *
 * Человеку с вестибулярными нарушениями движение на экране бывает
 * физически плохо, и он один раз выставляет это в настройках системы —
 * от нас требуется только не спорить. Гасим ВСЁ, что двигается, и сразу
 * показываем конечное состояние.
 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
    .is-lit { animation: none; }
    .seg:hover { transform: none; }
    html { scroll-behavior: auto; }
    .legend__again { display: none; }
}

/* ================================================ УЗКИЙ ЭКРАН: ОДИН СТОЛБИК */

@media (max-width: 760px) {
    .band { grid-template-columns: 5px minmax(0, 1fr); }
    .band__body { padding: 18px 16px 16px; }
    .band__act { grid-column: 2 / 3; padding: 0 16px 18px; }
    .band__act .act { width: 100%; }
    .band__title { font-size: 21px; letter-spacing: -0.018em; }
    .why { width: 100%; }

    .pf-sec { padding: 18px 15px 18px; }
    .pf-sec__head { flex-direction: column; gap: 8px; }

    .issue { padding: 15px 15px 15px 18px; }
    .issue__two { grid-template-columns: minmax(0, 1fr); }

    .row { grid-template-columns: 14px minmax(0, 1fr); gap: 0 12px; padding: 12px 0; }
    .row__label { padding-top: 3px; }
    .row__body { grid-column: 2; margin-top: 5px; }
    .row__value { font-size: 17px; }

    .dots__top { grid-template-columns: minmax(0, 1fr); }
    .dtab thead { display: none; }
    .dtab, .dtab tbody { display: block; }
    .dtab tr {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px;
        padding: 10px 0; border-bottom: 1px solid var(--border);
    }
    .dtab tbody tr:last-child { border-bottom: 0; }
    .dtab td { display: block; padding: 0; border: 0; }
    .dtab__name { grid-column: 1; grid-row: 1; }
    .dtab__size { grid-column: 1; grid-row: 2; font-size: 12.5px; }
    .dtab__ppi  { grid-column: 2; grid-row: 1; text-align: right; }
    .dtab__word { grid-column: 2; grid-row: 2; }
    .dtab__bar { width: 64px; }
    .dtab.is-full .dtab__row.is-extra { display: grid; }

    .beta { padding: 14px 15px; }
    .beta__cols { grid-template-columns: minmax(0, 1fr); }

    .pf-acts .act { width: 100%; }
}


/* ============================================================ 8. ЗАЯВКА */
/* Форма под отчётом. Класс zv, а не lead: «lead» в этом файле уже занят
   шапкой страницы, и правило body.has-result .lead {display:none} спрятало
   бы форму ровно в тот момент, когда она нужна. */

.zv {
    margin-top: 26px;
    padding: 24px 26px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-box);
    box-shadow: 0 2px 10px rgba(18, 34, 45, .05);
}
.zv__ttl { margin: 0 0 6px; font: 700 19px/1.25 var(--font); color: var(--text); }
.zv__pod { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); max-width: 62ch; }

.zv__setka {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px 16px;
    margin-bottom: 14px;
}
.zv__pole { display: block; }
.zv__pole > span {
    display: block; margin-bottom: 6px;
    font: 600 13px/1.2 var(--font); color: var(--text);
}
.zv__pole input,
.zv__pole textarea {
    width: 100%; box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid var(--border-strong); border-radius: var(--r-in);
    background: #fff; color: var(--text);
    font: 400 14.5px/1.45 var(--font);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.zv__pole textarea { resize: vertical; min-height: 76px; }
.zv__pole input:focus,
.zv__pole textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(46, 134, 200, .14);
}
.zv__pole > i {
    display: block; margin-top: 5px;
    font: 400 12.5px/1.4 var(--font); font-style: normal; color: var(--text-muted);
}

/* Приманка для роботов: человек её не видит и табом в неё не попадает. */
.zv__lovushka {
    position: absolute; left: -9999px; width: 1px; height: 1px;
    overflow: hidden;
}

.zv__beda {
    margin: 12px 0 0; padding: 10px 13px;
    border-radius: var(--r-in);
    background: rgba(176, 50, 39, .07);
    color: var(--bad-ink);
    font: 500 14px/1.5 var(--font);
}

.zv__gotovo { display: flex; gap: 14px; align-items: flex-start; }
.zv__galka {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(28, 122, 67, .12); color: var(--ok-ink);
    font: 700 20px/1 var(--font); transform: rotate(45deg);
}
.zv__gotovo .zv__pod { margin-bottom: 0; }

@media (max-width: 560px) {
    .zv { padding: 20px 16px 18px; }
    .zv__setka { grid-template-columns: 1fr; }
}


/* ======================================================= 9. КОНТАКТ */
/* «Исправим файл и напечатаем» — под «Что мешает печати», только при
   красном и жёлтом итоге (решение директора 23.10.2026). Тёмная секция
   фирменного градиента cardregion.ru, акцент #8fcbf3, кнопка #6ab8ee.
   Движение — мягкое проявление один раз и медленный свет по краю. */

.kt {
    position: relative; overflow: hidden; isolation: isolate;
    margin: 6px 0 22px;
    padding: 28px 30px 26px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f1a24 0%, #14304a 55%, #1f5a80 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 26, 36, .18);
    opacity: 0; transform: translateY(10px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}
.kt.is-in { opacity: 1; transform: none; }
.kt__svet {
    position: absolute; z-index: -1; inset: -40% -20% auto auto;
    width: 70%; height: 180%;
    background: radial-gradient(closest-side, rgba(143, 203, 243, .20), rgba(143, 203, 243, 0));
    animation: kt-svet 12s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes kt-svet {
    0%   { transform: translate3d(0, 0, 0); opacity: .7; }
    100% { transform: translate3d(-18%, 10%, 0); opacity: 1; }
}

.kt__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 18px 36px; align-items: start;
}
.kt__kick {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 12px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase;
    color: #8fcbf3;
}
.kt__ttl {
    margin: 10px 0 10px; color: #fff;
    font: 700 clamp(21px, 2.3vw, 27px)/1.2 var(--font); letter-spacing: -0.015em;
}
.kt__ttl--s { margin: 0 0 6px; font-size: 19px; }
.kt__pod { margin: 0; color: rgba(255, 255, 255, .80); font-size: 14.5px; line-height: 1.6; max-width: 52ch; }
.kt__chasy { margin: 12px 0 0; color: rgba(143, 203, 243, .9); font-size: 13px; line-height: 1.5; }

.kt__forma {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(143, 203, 243, .22);
    border-radius: 16px;
    padding: 18px 18px 14px;
}
.kt__pole { display: block; margin-bottom: 12px; }
.kt__pole > span { display: block; margin-bottom: 6px; font: 600 13px/1.2 var(--font); color: #fff; }
.kt__pole input {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .0); background: #fff; color: var(--text);
    font: 400 15px/1.4 var(--font);
    transition: box-shadow .25s ease;
}
.kt__pole input:focus { outline: none; box-shadow: 0 0 0 3px rgba(106, 184, 238, .55); }
.kt__pole > i { display: block; margin-top: 5px; font: 400 12.5px/1.4 var(--font); font-style: normal; color: rgba(255, 255, 255, .6); }

.kt__chk {
    position: relative; display: flex; gap: 10px; align-items: flex-start;
    margin: 2px 0 12px; cursor: pointer;
    font: 500 14px/1.45 var(--font); color: #fff;
}
.kt__chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kt__box {
    flex: none; width: 20px; height: 20px; margin-top: 0; border-radius: 6px;
    border: 1.5px solid rgba(143, 203, 243, .8); background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s ease, border-color .2s ease;
}
.kt__chk input:checked + .kt__box { background: #6ab8ee; border-color: #6ab8ee; }
.kt__chk input:checked + .kt__box::after {
    content: ''; width: 9px; height: 5px; margin-top: -2px;
    border-left: 2px solid #0f1a24; border-bottom: 2px solid #0f1a24; transform: rotate(-45deg);
}
.kt__chk input:focus-visible + .kt__box { box-shadow: 0 0 0 3px rgba(106, 184, 238, .55); }

.kt__beda {
    margin: 0 0 12px; padding: 9px 12px; border-radius: 10px;
    background: rgba(231, 76, 60, .16); color: #ffd9d4;
    font: 500 13.5px/1.45 var(--font);
}
.kt__acts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.kt__go {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 26px; border: 0; border-radius: var(--r-pill, 999px); cursor: pointer;
    background: #6ab8ee; color: #0f1a24;
    font: 700 14.5px/1 var(--font);
    box-shadow: 0 8px 20px rgba(106, 184, 238, .28);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.kt__go:hover { background: #8fcbf3; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(106, 184, 238, .34); }
.kt__go:disabled { opacity: .7; cursor: default; transform: none; }
.kt__only {
    padding: 4px 0; border: 0; background: none; cursor: pointer;
    color: #8fcbf3; font: 600 13.5px/1.3 var(--font);
    text-decoration: underline; text-decoration-color: rgba(143, 203, 243, .4); text-underline-offset: 3px;
}
.kt__only:hover { color: #fff; }
.kt__soglasie { margin: 12px 0 0; color: rgba(255, 255, 255, .55); font-size: 12px; line-height: 1.45; }

.kt__gotovo { display: flex; gap: 14px; align-items: flex-start; }
.kt__galka {
    flex: none; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(106, 184, 238, .2); color: #8fcbf3;
}
.kt__gotovo .kt__pod { color: rgba(255, 255, 255, .85); }

@media (max-width: 860px) {
    .kt__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .kt { padding: 22px 16px 18px; border-radius: 16px; }
    .kt__forma { padding: 14px 12px 12px; }
    .kt__go { width: 100%; }
    .kt__acts { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .kt { opacity: 1; transform: none; transition: none; }
    .kt__svet { animation: none; }
    .kt__go { transition: none; }
}
/* hidden сильнее display у своих блоков контакта */
.kt [hidden] { display: none !important; }
