.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 30px;
    color: #7a7d89;
    font-size: 13px;
}

.breadcrumbs a:hover {
    color: #5b39ec;
}

.seo-hero {
    padding: 70px 0 54px;
    background: radial-gradient(circle at 88% 20%, rgba(97, 70, 242, .11), transparent 30%);
}

.seo-hero--center {
    text-align: center;
}

.seo-hero__inner > h1 {
    max-width: 940px;
    margin: 18px 0 0;
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -.06em;
}

.seo-hero--center .seo-hero__inner > h1,
.seo-hero--center .seo-hero__inner > p {
    margin-right: auto;
    margin-left: auto;
}

.seo-hero__inner > p {
    max-width: 760px;
    margin: 26px 0 0;
    color: #656978;
    font-size: 18px;
    line-height: 1.65;
}

.seo-hero__inner > .vz-btn {
    margin-top: 28px;
}

.seo-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 26px;
    color: #5f6370;
    font-size: 13px;
    font-weight: 600;
}

.seo-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.seo-tool-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid #e2e3eb;
    border-radius: 26px;
    background: #fff;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.seo-tool-card:hover {
    transform: translateY(-4px);
    border-color: #bdb2f5;
    box-shadow: 0 20px 44px rgba(54, 43, 108, .08);
}

.seo-tool-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.seo-tool-card__top span {
    min-width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    border-radius: 16px;
    background: #ebe7ff;
    color: #5736e9;
    font-weight: 750;
}

.seo-tool-card__top small {
    color: #a0a2ad;
    font-size: 12px;
}

.seo-tool-card h2 {
    margin: 54px 0 0;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.seo-tool-card p {
    margin: 12px 0 22px;
    color: #707381;
    font-size: 15px;
    line-height: 1.55;
}

.seo-tool-card b {
    margin-top: auto;
    color: #5938ed;
    font-size: 14px;
}

.home-seo-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 86px;
    padding: 62px;
    border: 1px solid #e0e1ea;
    border-radius: 30px;
    background: #fff;
}

.home-seo-intro h2,
.home-free-tools h2 {
    margin: 16px 0 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -.05em;
}

.home-seo-intro__grid > div:last-child > p {
    margin: 0;
    color: #656978;
    font-size: 17px;
    line-height: 1.7;
}

.home-seo-intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-free-tools {
    padding-top: 20px;
}

.home-free-tools__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-free-tools__grid > a {
    min-height: 240px;
    padding: 25px;
    border: 1px solid #e1e2ea;
    border-radius: 23px;
    background: #fff;
    transition: transform .18s ease, border-color .18s ease;
}

.home-free-tools__grid > a:hover {
    transform: translateY(-3px);
    border-color: #bcb0f5;
}

.home-free-tools__grid > a > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 42px;
    border-radius: 14px;
    background: #ebe7ff;
    color: #5938ed;
    font-weight: 750;
}

.home-free-tools__grid strong {
    display: block;
    font-size: 19px;
}

.home-free-tools__grid p {
    margin: 10px 0 0;
    color: #747785;
    font-size: 14px;
    line-height: 1.5;
}

.document-detail-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 20px;
}

.document-detail-card__actions a {
    color: #5a38eb;
    font-size: 13px;
    font-weight: 700;
}

.document-detail-card__actions a:last-child {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.seo-copy-grid__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.seo-copy-grid article {
    padding: 34px;
    border: 1px solid #e2e3ea;
    border-radius: 24px;
    background: #fff;
}

.seo-copy-grid h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.seo-copy-grid p {
    margin: 14px 0 0;
    color: #6a6d7a;
    font-size: 16px;
    line-height: 1.7;
}

.seo-faq__grid {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 70px;
}

.seo-faq h2 {
    margin: 16px 0 0;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.04;
    letter-spacing: -.05em;
}

.seo-faq details {
    border-bottom: 1px solid #dfe1e8;
}

.seo-faq summary {
    position: relative;
    padding: 22px 44px 22px 0;
    cursor: pointer;
    font-size: 17px;
    font-weight: 650;
    list-style: none;
}

.seo-faq summary::after {
    content: '+';
    position: absolute;
    top: 20px;
    right: 4px;
    color: #5a38ed;
    font-size: 24px;
}

.seo-faq details[open] summary::after {
    content: '−';
}

.seo-faq details p {
    max-width: 720px;
    margin: -4px 44px 22px 0;
    color: #6b6e7a;
    font-size: 15px;
    line-height: 1.65;
}

.seo-product-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 54px;
    border-radius: 30px;
    background: linear-gradient(115deg, #1d1d25, #33285f);
    color: #fff;
}

.seo-product-cta h2 {
    max-width: 700px;
    margin: 14px 0 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -.05em;
}

.seo-product-cta p {
    max-width: 680px;
    margin: 15px 0 0;
    color: #c1becd;
    font-size: 16px;
    line-height: 1.6;
}

.invoice-generator {
    padding: 20px 0 70px;
}

.invoice-generator__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    align-items: start;
    gap: 22px;
}

.invoice-form,
.invoice-preview-column {
    min-width: 0;
}

.invoice-form__section {
    margin: 0 0 14px;
    padding: 28px;
    border: 1px solid #e0e2e9;
    border-radius: 24px;
    background: #fff;
}

.invoice-form__section legend {
    width: 100%;
    display: grid;
    grid-template-columns: 40px auto;
    column-gap: 12px;
    margin-bottom: 24px;
}

.invoice-form__section legend > span {
    grid-row: 1 / 3;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #ebe7ff;
    color: #5a38eb;
    font-size: 12px;
    font-weight: 800;
}

.invoice-form__section legend b {
    font-size: 18px;
}

.invoice-form__section legend small {
    margin-top: 2px;
    color: #858894;
    font-size: 12px;
}

.invoice-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.invoice-fields label,
.invoice-line-row label,
.invoice-comment {
    display: grid;
    gap: 7px;
    color: #555865;
    font-size: 13px;
    font-weight: 600;
}

.invoice-field--wide {
    grid-column: 1 / -1;
}

.invoice-form input,
.invoice-form select,
.invoice-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #d9dbe4;
    border-radius: 12px;
    outline: none;
    background: #fafbfe;
    color: #202129;
    font: inherit;
    font-size: 16px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.invoice-form textarea {
    resize: vertical;
}

.invoice-form input:focus,
.invoice-form select:focus,
.invoice-form textarea:focus {
    border-color: #7458ed;
    box-shadow: 0 0 0 3px rgba(91, 56, 237, .1);
}

.invoice-line-row {
    display: grid;
    gap: 14px;
    margin-bottom: 12px;
    padding: 18px;
    border-radius: 17px;
    background: #f3f4f8;
}

.invoice-line-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.invoice-line-row__head strong {
    font-size: 13px;
}

.invoice-line-row__head button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #7c7e88;
    cursor: pointer;
    font-size: 21px;
}

.invoice-line-row__head button:disabled {
    opacity: .35;
    cursor: default;
}

.invoice-line-numbers {
    display: grid;
    grid-template-columns: 1fr .8fr 1.2fr 1fr;
    gap: 10px;
}

.invoice-line-numbers--upd {
    grid-template-columns: .8fr 1.35fr 1.1fr 1fr;
}

.invoice-add-line,
.invoice-print {
    min-height: 48px;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.invoice-add-line {
    width: 100%;
    margin: 3px 0 18px;
    background: #ebe7ff;
    color: #5736e9;
}

.invoice-preview-column {
    position: sticky;
    top: 18px;
}

.invoice-preview-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 4px 10px;
    color: #646775;
    font-size: 12px;
    font-weight: 700;
}

.invoice-preview-label small {
    color: #92949f;
    font-weight: 500;
}

.invoice-paper {
    min-height: 680px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid #e1e2e9;
    border-radius: 18px;
    background: #fff;
    color: #1c1d24;
    box-shadow: 0 20px 55px rgba(35, 32, 61, .08);
}

.invoice-paper__bank {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    border: 1px solid #30313a;
}

.invoice-paper__bank > div {
    min-height: 68px;
    display: grid;
    align-content: start;
    padding: 7px 9px;
    border-right: 1px solid #30313a;
    border-bottom: 1px solid #30313a;
}

.invoice-paper__bank > div:nth-child(even) { border-right: 0; }
.invoice-paper__bank > div:nth-last-child(-n + 2) { border-bottom: 0; }
.invoice-paper__bank small { color: #777984; font-size: 8px; }
.invoice-paper__bank strong { margin-top: 4px; font-size: 10px; overflow-wrap: anywhere; }
.invoice-paper__bank span { margin-top: 5px; font-size: 8px; }
.invoice-paper__bank i { font-style: normal; }

.invoice-paper > h2 {
    margin: 30px 0 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #22232a;
    font-size: 20px;
    line-height: 1.25;
}

.invoice-paper__parties {
    margin: 17px 0;
}

.invoice-paper__parties p {
    margin: 7px 0;
    font-size: 10px;
    line-height: 1.45;
}

.invoice-paper__table {
    overflow-x: auto;
}

.invoice-paper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
}

.invoice-paper th,
.invoice-paper td {
    padding: 7px 6px;
    border: 1px solid #33343b;
    text-align: right;
}

.invoice-paper th:nth-child(2),
.invoice-paper td:nth-child(2) { text-align: left; }

.invoice-paper__totals {
    width: min(270px, 100%);
    margin: 18px 0 0 auto;
}

.invoice-paper__totals p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 7px 0;
    font-size: 10px;
}

.invoice-paper__totals p:last-child {
    padding-top: 8px;
    border-top: 1px solid #22232a;
    font-size: 12px;
}

.invoice-paper__note {
    margin: 20px 0 0;
    font-size: 9px;
    line-height: 1.5;
}

.invoice-paper__signature {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 10px;
    margin-top: 48px;
    font-size: 9px;
}

.invoice-paper__signature i {
    border-bottom: 1px solid #3c3d45;
}

.invoice-paper__brand {
    display: block;
    margin-top: 35px;
    color: #9a9ca5;
    font-size: 8px;
    text-align: right;
}

.document-logo {
    display: block;
    width: 116px;
    height: auto;
    margin: 0 0 18px auto;
}

.document-details {
    margin: 15px 0;
}

.document-details p,
.document-summary,
.act-acceptance {
    margin: 7px 0;
    font-size: 9px;
    line-height: 1.45;
}

.act-acceptance {
    margin-top: 22px;
}

.act-signers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 2px solid #33343b;
    font-size: 8px;
}

.act-signers > div {
    min-height: 105px;
}

.act-signers p {
    min-height: 28px;
    margin: 8px 0;
}

.act-signers i {
    display: block;
    height: 20px;
    border-bottom: 1px solid #555;
}

.act-signers small {
    display: block;
    margin-top: 4px;
}

.document-paper-scroll {
    overflow-x: auto;
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(35, 32, 61, .08);
}

.document-preview-frame {
    display: block;
    width: 100%;
    height: 820px;
    border: 1px solid #dfe1e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(35, 32, 61, .08);
}

.document-preview-frame--upd {
    height: 760px;
}

.upd-paper {
    page: upd;
    width: 970px;
    min-height: 690px;
    padding: 24px;
    border-radius: 0;
    box-shadow: none;
    font-family: Arial, sans-serif;
}

@page upd {
    size: A4 landscape;
    margin: 8mm;
}

.upd-paper .document-logo {
    width: 105px;
    margin-bottom: 10px;
}

.upd-head {
    display: grid;
    grid-template-columns: 1fr 155px;
    border: 1.5px solid #111;
    font-size: 14px;
}

.upd-head > div {
    padding: 8px;
    border-right: 1px solid #111;
}

.upd-head > div:last-child {
    border-right: 0;
}

.upd-head small {
    display: block;
    margin-top: 3px;
    font-size: 9px;
}

.upd-status {
    display: grid;
    place-items: center;
}

.upd-status b {
    font-size: 25px;
}

.upd-number {
    padding: 7px 8px;
    border: 1px solid #111;
    border-top: 0;
    font-size: 11px;
    line-height: 1.45;
}

.upd-requisites {
    padding: 7px 8px;
    border: 1px solid #111;
    border-top: 0;
    font-size: 8px;
    line-height: 1.25;
}

.upd-requisites p {
    margin: 2px 0;
}

.upd-table-wrap {
    overflow: visible;
}

.upd-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 7px;
}

.upd-table th,
.upd-table td {
    padding: 4px 2px;
    border: 1px solid #111;
    text-align: center;
    overflow-wrap: anywhere;
}

.upd-table th:nth-child(3),
.upd-table td:nth-child(3) {
    width: 22%;
    text-align: left;
}

.upd-columns th {
    padding: 2px;
    font-size: 6px;
}

.upd-transfer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #111;
    border-top: 0;
    font-size: 7px;
}

.upd-transfer > div {
    min-height: 190px;
    padding: 8px;
    border-right: 1px solid #111;
}

.upd-transfer > div:last-child {
    border-right: 0;
}

.upd-transfer p {
    margin: 10px 0 4px;
}

.upd-transfer i {
    display: block;
    height: 18px;
    border-bottom: 1px solid #555;
}

.invoice-print {
    width: 100%;
    margin-top: 12px;
    background: #5938ed;
    color: #fff;
    box-shadow: 0 12px 24px rgba(78, 48, 210, .18);
}

.invoice-privacy {
    margin: 10px 12px 0;
    color: #858893;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.article-shell {
    width: min(860px, calc(100% - 40px));
}

.article-content > h1 {
    margin: 18px 0 34px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.article-meta {
    color: #878994;
    font-size: 13px;
}

.article-content p,
.article-content li {
    color: #4f5260;
    font-size: 18px;
    line-height: 1.75;
}

.article-content .article-lead {
    color: #2b2d36;
    font-size: 22px;
    line-height: 1.58;
}

.article-content h2 {
    margin: 54px 0 16px;
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -.04em;
}

.article-content a:not(.vz-btn) {
    color: #5938ed;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-cta {
    margin-top: 50px;
    padding: 32px;
    border-radius: 24px;
    background: #ebe7ff;
}

.article-cta strong {
    font-size: 24px;
}

.article-cta p {
    margin: 9px 0 16px;
    font-size: 16px;
}

.article-cta a {
    font-weight: 750;
}

@media (max-width: 1000px) {
    .seo-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-free-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .invoice-generator__grid { grid-template-columns: 1fr; }
    .invoice-preview-column { position: static; }
    .seo-faq__grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (min-width: 1001px) {
    .home-free-tools__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .seo-hero { padding: 42px 0 34px; }
    .seo-hero__inner > h1 { font-size: clamp(42px, 13vw, 58px); }
    .seo-hero__inner > p { font-size: 16px; }
    .seo-trust { display: grid; }
    .seo-tools-grid,
    .seo-copy-grid__inner,
    .home-free-tools__grid { grid-template-columns: 1fr; }
    .home-seo-intro__grid { grid-template-columns: 1fr; gap: 28px; padding: 30px 24px; }
    .home-seo-intro__actions { display: grid; }
    .home-free-tools__grid > a { min-height: 215px; }
    .seo-product-cta { align-items: flex-start; flex-direction: column; padding: 34px 24px; }
    .invoice-generator { padding-top: 0; }
    .invoice-form__section { padding: 21px 17px; border-radius: 19px; }
    .invoice-fields,
    .invoice-line-numbers { grid-template-columns: 1fr; }
    .invoice-field--wide { grid-column: auto; }
    .invoice-paper { min-height: 0; padding: 17px; border-radius: 14px; }
    .invoice-paper__bank { grid-template-columns: 1fr; }
    .invoice-paper__bank > div { border-right: 0; border-bottom: 1px solid #30313a !important; }
    .invoice-paper__bank > div:last-child { border-bottom: 0 !important; }
    .invoice-paper > h2 { font-size: 16px; }
    .invoice-paper table { min-width: 540px; }
    .document-preview-frame { height: 620px; border-radius: 14px; }
    .article-content p,
    .article-content li { font-size: 17px; }
    .article-content .article-lead { font-size: 19px; }
    .article-content h2 { font-size: 29px; }
}

@media print {
    @page { margin: 12mm; }
    body * { visibility: hidden !important; }
    .invoice-paper,
    .invoice-paper * { visibility: visible !important; }
    .invoice-paper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .invoice-paper__table { overflow: visible; }
    .document-paper-scroll { overflow: visible; box-shadow: none; }
    .upd-paper { width: 100%; }
    [data-document-generator="upd"] .upd-paper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}


/* VEDIZAKAZ PREVIEW UX FIX 0.6.4 */

/*
 * Старый PHP-preview нужен только как fallback-разметка.
 * Не показываем его до подключения реального шаблона документа.
 */
[data-invoice-generator] .invoice-paper,
[data-document-generator] .invoice-paper,
[data-document-generator] .document-paper-scroll {
    visibility: hidden;
}


/*
 * Реальный шаблон появляется только после расчёта масштаба.
 */
.document-preview-frame {
    width: 100%;
    max-width: 100%;

    height: min(74vh, 760px);

    overflow: hidden;

    opacity: 0;

    transition: opacity .12s ease;
}

.document-preview-frame.is-ready {
    opacity: 1;
}

.document-preview-frame--upd {
    height: min(62vh, 620px);
}


@media (max-width: 1000px) {

    .document-preview-frame {
        height: min(72vh, 700px);
    }

    .document-preview-frame--upd {
        height: min(58vh, 560px);
    }
}


@media (max-width: 700px) {

    .document-preview-frame {
        height: min(68vh, 620px);
    }

    .document-preview-frame--upd {
        height: min(50vh, 460px);
    }
}

/* VEDIZAKAZ WIDE GENERATOR WORKSPACE 0.6.5 */

/*
 * Генератор — это рабочая область, а не обычный контентный блок.
 * На больших мониторах используем почти всю доступную ширину.
 */
.invoice-generator > .vz-container.invoice-generator__grid {
    width: min(94vw, 1960px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}


/*
 * Desktop workspace:
 * компактная форма слева, документ получает всё остальное место.
 */
@media (min-width: 1200px) {

    .invoice-generator__grid {
        grid-template-columns:
            minmax(500px, 560px)
            minmax(0, 1fr);

        gap: clamp(28px, 2.4vw, 52px);

        align-items: start;
    }

    .invoice-form {
        width: 100%;
        min-width: 0;
    }

    .invoice-preview-column {
        width: 100%;
        min-width: 0;

        position: sticky;
        top: 18px;
    }

    .document-preview-frame {
        width: 100%;
        max-width: 100%;
    }
}


/*
 * На обычных ноутбуках тоже используем больше экрана,
 * но не пытаемся насильно держать слишком узкие две колонки.
 */
@media (min-width: 1001px) and (max-width: 1199px) {

    .invoice-generator > .vz-container.invoice-generator__grid {
        width: min(calc(100vw - 40px), 1120px);
    }

    .invoice-generator__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .invoice-preview-column {
        position: static;
    }
}


/*
 * Планшет / телефон — прежняя вертикальная схема.
 */
@media (max-width: 1000px) {

    .invoice-generator > .vz-container.invoice-generator__grid {
        width: min(calc(100vw - 28px), 920px);
        max-width: none;
    }
}


@media (max-width: 700px) {

    .invoice-generator > .vz-container.invoice-generator__grid {
        width: min(calc(100vw - 20px), 680px);
    }
}

/* VEDIZAKAZ BALANCED GENERATOR WORKSPACE 0.6.6 */

/*
 * Большой экран:
 * используем дополнительное место монитора,
 * но не растягиваем рабочую область бесконечно.
 */
@media (min-width: 1200px) {

    .invoice-generator > .vz-container.invoice-generator__grid {
        width: min(calc(100vw - 64px), 1540px);
        max-width: none;

        margin-left: auto;
        margin-right: auto;
    }


    /*
     * Счёт и акт:
     * компактная форма + portrait A4 нормального размера.
     */
    [data-invoice-generator] .invoice-generator__grid,
    [data-document-generator="act"] .invoice-generator__grid {
        grid-template-columns:
            440px
            minmax(680px, 820px);

        justify-content: center;

        gap: clamp(28px, 2.2vw, 42px);
    }


    /*
     * УПД шире, потому что документ альбомный.
     */
    [data-document-generator="upd"] .invoice-generator__grid {
        grid-template-columns:
            440px
            minmax(820px, 1050px);

        justify-content: center;

        gap: clamp(28px, 2vw, 36px);
    }


    .invoice-form {
        width: 100%;
        max-width: 440px;
        min-width: 0;
    }


    .invoice-preview-column {
        width: 100%;
        min-width: 0;

        position: sticky;
        top: 18px;
    }


    /*
     * Сам iframe не должен становиться шире
     * разумного размера документа.
     */
    [data-invoice-generator] .invoice-preview-column,
    [data-document-generator="act"] .invoice-preview-column {
        max-width: 820px;
    }

    [data-document-generator="upd"] .invoice-preview-column {
        max-width: 1050px;
    }


    .document-preview-frame {
        width: 100%;
        max-width: 100%;
    }
}


/*
 * Очень большие мониторы.
 * Просто увеличиваем внешние поля,
 * а не сам интерфейс.
 */
@media (min-width: 1900px) {

    .invoice-generator > .vz-container.invoice-generator__grid {
        width: min(calc(100vw - 120px), 1540px);
    }
}


/*
 * Ноутбуки и небольшие desktop:
 * две колонки, пока для них действительно хватает места.
 */
@media (min-width: 1100px) and (max-width: 1199px) {

    .invoice-generator > .vz-container.invoice-generator__grid {
        width: min(calc(100vw - 40px), 1120px);
        max-width: none;
    }

    .invoice-generator__grid {
        grid-template-columns:
            minmax(400px, 440px)
            minmax(0, 1fr);

        gap: 28px;
    }

    .invoice-preview-column {
        position: sticky;
        top: 18px;
    }
}


/*
 * Ниже 1100 — вертикальный режим.
 */
@media (max-width: 1099px) {

    .invoice-generator__grid {
        grid-template-columns: 1fr;
    }

    .invoice-preview-column {
        position: static;
    }
}

/* VEDIZAKAZ DOCUMENT WINDOW 0.6.7 */

/*
 * Preview теперь выглядит как окно просмотра документа,
 * а не как растянутый белый контейнер.
 */
.document-preview-frame {
    display: block;

    margin-left: auto;
    margin-right: auto;

    max-width: 100%;

    background: linear-gradient(180deg, #fbfaff 0%, #f6f4ff 100%);
    border: 1px solid #e2dcfb;
    border-radius: 18px;

    box-shadow:
        0 18px 40px rgba(48, 31, 117, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);

    overflow: hidden;
}


/*
 * Правая колонка — нормальная область предпросмотра,
 * документ внутри центрируется.
 */
.invoice-preview-column {
    min-width: 0;
}

.invoice-preview-column .document-preview-frame {
    margin-top: 6px;
}


/*
 * Подпись под preview и кнопка не должны растягиваться
 * шире разумной рабочей области.
 */
[data-invoice-generator] .invoice-preview-column,
[data-document-generator="act"] .invoice-preview-column {
    max-width: 860px;
}

[data-document-generator="upd"] .invoice-preview-column {
    max-width: 1090px;
}


/*
 * На desktop привязываем окно к документу,
 * а не к ширине всей колонки.
 */
@media (min-width: 1100px) {

    .invoice-preview-column {
        display: flex;
        flex-direction: column;
    }

    .invoice-preview-column .document-preview-frame {
        flex: 0 0 auto;
    }
}
/* VEDIZAKAZ UPD ITEM FIELDS 0.6.20 */

.invoice-line-numbers--upd {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
    gap: 14px 12px;
}

.invoice-line-numbers--upd > label {
    min-width: 0;
}

.invoice-line-numbers--upd input,
.invoice-line-numbers--upd select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.invoice-line-numbers--upd select {
    padding-left: 12px;
    padding-right: 32px;
}

@media (max-width: 700px) {
    .invoice-line-numbers--upd {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   VEDIZAKAZ FEATURED TOOL CARDS 0.6.21
   ========================================================= */

.seo-tools-section--featured {
    padding-top: 18px;
}

.seo-tools-grid--featured {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}


.seo-tool-card-featured {
    min-width: 0;
    position: relative;
    border: 1px solid rgba(101, 77, 255, .13);
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            rgba(245, 242, 255, .98) 0%,
            #ffffff 58%
        );
    box-shadow:
        0 16px 42px rgba(50, 38, 100, .08),
        0 2px 8px rgba(42, 32, 85, .03);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


.seo-tool-card-featured:hover {
    transform: translateY(-5px);
    border-color: rgba(101, 77, 255, .25);
    box-shadow:
        0 26px 62px rgba(69, 48, 150, .13),
        0 4px 14px rgba(42, 32, 85, .05);
}


.seo-tool-card-featured__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}


.seo-tool-card-featured__visual {
    position: relative;
    height: 300px;
    margin: 10px 10px 0;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 40% 0%,
            rgba(123, 92, 255, .22),
            transparent 58%
        ),
        #efecff;
}


.seo-tool-card-featured__visual img {
    position: absolute;
    z-index: 1;
    width: calc(100% - 30px);
    height: auto;
    max-width: none;
    left: 15px;
    top: 20px;
    object-fit: contain;
    object-position: top center;
    border-radius: 8px;
    filter:
        drop-shadow(0 15px 20px rgba(44, 33, 90, .11));
    transform: rotate(-1.2deg);
    transform-origin: center top;
    transition: transform .35s ease;
}


.seo-tool-card-featured--upd
.seo-tool-card-featured__visual img {
    width: calc(100% - 18px);
    left: 9px;
    top: 17px;
    transform: rotate(.4deg);
}


.seo-tool-card-featured--invoice
.seo-tool-card-featured__visual img {
    top: 17px;
    transform: rotate(.8deg);
}


.seo-tool-card-featured:hover
.seo-tool-card-featured__visual img {
    transform:
        translateY(-4px)
        rotate(0deg)
        scale(1.015);
}


.seo-tool-card-featured__wash {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    height: 44%;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(247, 245, 255, 0) 0%,
            rgba(247, 245, 255, .78) 60%,
            rgba(247, 245, 255, 1) 100%
        );
}


.seo-tool-card-featured__body {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}


.seo-tool-card-featured__title-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
}


.seo-tool-card-featured__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            rgba(244, 239, 255, 1),
            rgba(230, 222, 255, .95)
        );
    color: #5d36f2;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 8px 20px rgba(84, 52, 214, .08);
}


.seo-tool-card-featured__icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.seo-tool-card-featured h2 {
    margin: 0;
    color: #101018;
    font-size: clamp(21px, 1.4vw, 27px);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 780;
}


.seo-tool-card-featured__body > p {
    min-height: 54px;
    margin: 17px 0 22px;
    color: #737589;
    font-size: 16px;
    line-height: 1.48;
}


.seo-tool-card-featured__button {
    width: 100%;
    min-height: 58px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 16px;
    background:
        linear-gradient(
            100deg,
            #5929f4 0%,
            #6840f7 55%,
            #914cf7 100%
        );
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    box-shadow:
        0 11px 26px rgba(92, 48, 239, .20);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.seo-tool-card-featured__button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}


.seo-tool-card-featured:hover
.seo-tool-card-featured__button {
    box-shadow:
        0 15px 30px rgba(92, 48, 239, .26);
}


.seo-tool-card-featured:hover
.seo-tool-card-featured__button svg {
    transform: translateX(4px);
}


/* Убираем старые номера 01 / 02 / 03 физически:
   в новой разметке их больше вообще нет. */


@media (max-width: 1100px) {

    .seo-tools-grid--featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .seo-tools-grid--featured {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .seo-tool-card-featured {
        border-radius: 24px;
    }

    .seo-tool-card-featured__visual {
        height: 265px;
        border-radius: 18px;
    }

    .seo-tool-card-featured__body {
        padding: 20px;
    }

    .seo-tool-card-featured__title-row {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 13px;
    }

    .seo-tool-card-featured__icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .seo-tool-card-featured__body > p {
        min-height: 0;
    }

}



/* VEDIZAKAZ TOOLS SEO HUB 0.6.22 */

.tools-seo-copy {
    padding-top: 34px;
}

.tools-seo-copy .section-heading {
    margin-bottom: 30px;
}

.tools-seo-copy .seo-copy-grid__inner {
    align-items: stretch;
}

.tools-seo-copy article {
    height: 100%;
}

.tools-seo-copy article a {
    color: #5d36f2;
    font-weight: 700;
    text-decoration: none;
}

.tools-seo-copy article a:hover {
    text-decoration: underline;
}

.tools-seo-faq {
    padding-top: 28px;
}

.tools-seo-faq .seo-faq__grid > div:first-child > p {
    max-width: 460px;
    margin-top: 16px;
    color: #777989;
    line-height: 1.6;
}



/* =========================================================
   VEDIZAKAZ GENERATOR SEO 0.6.23
   ========================================================= */

.generator-seo-copy {
    padding-top: 42px;
}

.generator-seo-copy__heading {
    margin-bottom: 30px;
}

.generator-seo-copy .seo-copy-grid__inner {
    align-items: stretch;
}

.generator-seo-copy article {
    height: 100%;
}


.generator-related {
    padding-top: 14px;
}

.generator-related__inner {
    display: grid;
    grid-template-columns:
        minmax(0, .8fr)
        minmax(0, 1.2fr);
    gap: 52px;
    align-items: center;
    padding: 38px;
    border: 1px solid rgba(101, 77, 255, .12);
    border-radius: 26px;
    background:
        linear-gradient(
            135deg,
            rgba(246, 243, 255, .96),
            rgba(255, 255, 255, .98)
        );
}

.generator-related__inner h2 {
    margin: 11px 0 12px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.06;
    letter-spacing: -.04em;
}

.generator-related__inner > div:first-child > p {
    max-width: 500px;
    margin: 0;
    color: #747686;
    line-height: 1.6;
}

.generator-related__links {
    display: grid;
    gap: 12px;
}

.generator-related__links a {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 28px;
    gap: 16px;
    align-items: center;
    min-height: 82px;
    padding: 14px 18px;
    border: 1px solid rgba(93, 54, 242, .10);
    border-radius: 18px;
    background: #fff;
    color: #17151d;
    text-decoration: none;
    box-shadow:
        0 8px 24px rgba(42, 32, 85, .05);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.generator-related__links a:hover {
    transform: translateY(-2px);
    border-color: rgba(93, 54, 242, .23);
    box-shadow:
        0 13px 30px rgba(58, 40, 130, .09);
}

.generator-related__links span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 48px;
    border-radius: 14px;
    background: #f0ebff;
    color: #5d36f2;
    font-size: 14px;
    font-weight: 800;
}

.generator-related__links strong {
    font-size: 16px;
    line-height: 1.3;
}

.generator-related__links i {
    color: #5d36f2;
    font-size: 22px;
    font-style: normal;
}

.generator-seo-faq {
    padding-top: 42px;
}

.generator-seo-faq
.seo-faq__grid > div:first-child > p {
    max-width: 470px;
    margin-top: 16px;
    color: #777989;
    line-height: 1.6;
}


@media (max-width: 800px) {

    .generator-related__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 26px 20px;
    }

    .generator-related__links a {
        grid-template-columns: 58px minmax(0, 1fr) 24px;
    }

    .generator-related__links span {
        width: 52px;
        height: 46px;
    }

}

