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


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f6ff;
    color: #171522;
}


button,
input,
select {
    font: inherit;
}


/* =========================
   HEADER
========================= */

.header {
    height: 82px;
    background: white;
    border-bottom: 1px solid #eee;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    position: sticky;
    top: 0;

    z-index: 20;
}


.logo {
    font-size: 22px;
    font-weight: 800;
}


.logo span {
    color: #6045d8;
    margin-right: 7px;
}


.header-btn {
    border: 0;

    background: #292735;
    color: white;

    padding: 14px 23px;

    border-radius: 14px;

    font-weight: 700;

    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    text-align: center;

    padding: 70px 20px 35px;

    background:
        radial-gradient(
            circle at 50% 0%,
            #e8e1ff,
            transparent 55%
        ),
        #f7f6ff;
}


.hero h1 {
    font-size: clamp(38px, 7vw, 68px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 22px;
}


.hero p {
    color: #777481;

    max-width: 620px;

    margin: auto;

    line-height: 1.6;

    font-size: 17px;
}


.start-btn {
    margin-top: 32px;

    border: none;

    background: #5c42d6;

    color: white;

    padding: 18px 38px;

    border-radius: 16px;

    font-weight: 700;

    font-size: 17px;

    box-shadow:
        0 15px 35px
        rgba(92, 66, 214, .25);

    cursor: pointer;
}


.start-btn span {
    margin-left: 15px;
}


.advantages {
    display: flex;

    justify-content: center;

    gap: 25px;

    margin-top: 25px;

    color: #85818e;

    flex-wrap: wrap;
}


/* =========================
   TOOL MENU
========================= */

.tools-section {
    padding: 25px 0 5px;
}


.tools-scroll {
    display: flex;

    gap: 13px;

    overflow-x: auto;

    padding: 8px 6% 18px;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
}


.tools-scroll::-webkit-scrollbar {
    display: none;
}


.tool-card {
    flex: 0 0 190px;

    background: white;

    border: 1px solid #e5e2ed;

    border-radius: 18px;

    padding: 17px;

    text-align: left;

    cursor: pointer;

    transition: .2s;
}


.tool-card.active {
    background: #5c42d6;

    color: white;

    border-color: #5c42d6;
}


.tool-icon {
    font-size: 25px;

    margin-bottom: 12px;
}


.tool-card strong {
    display: block;

    font-size: 15px;
}


.tool-card small {
    display: block;

    margin-top: 7px;

    opacity: .65;
}


/* =========================
   TOOL CONTAINER
========================= */

.tool-container {
    width: min(92%, 720px);

    margin: 25px auto;

    background: white;

    border: 1px solid #e4e1e9;

    border-radius: 25px;

    padding: 30px;

    box-shadow:
        0 15px 45px
        rgba(30, 20, 60, .06);
}


.tool-label {
    display: inline-block;

    padding: 9px 15px;

    background: #f0edff;

    color: #5841c9;

    border-radius: 30px;

    font-size: 13px;

    font-weight: 800;
}


.tool-container h2 {
    margin-top: 25px;

    font-size: 29px;
}


.description {
    margin-top: 10px;

    color: #777481;

    line-height: 1.6;
}


/* =========================
   UPLOAD
========================= */

.upload-box {
    margin-top: 30px;

    min-height: 330px;

    border: 3px dashed #dedce5;

    border-radius: 25px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    cursor: pointer;

    padding: 30px;

    transition: .2s;
}


.upload-box:hover {
    border-color: #8d7ae5;

    background: #fcfbff;
}


.upload-box input {
    display: none;
}


.upload-icon {
    width: 72px;

    height: 72px;

    border-radius: 22px;

    background: #f0edff;

    color: #6045d8;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 35px;

    margin-bottom: 20px;
}


.upload-box strong {
    font-size: 25px;
}


.upload-box span {
    color: #777481;

    margin-top: 12px;
}


.upload-box small {
    color: #aaa7b0;

    margin-top: 15px;
}


/* =========================
   IMAGE PREVIEW
========================= */

.preview-area {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(130px, 1fr)
        );

    gap: 12px;

    margin-top: 20px;
}


.preview-item {
    border-radius: 15px;

    overflow: hidden;

    border: 1px solid #eee;

    background: #fafafa;
}


.preview-item img {
    width: 100%;

    height: 130px;

    object-fit: cover;

    display: block;
}


/* =========================
   SETTINGS
========================= */

.settings {
    margin-top: 25px;

    padding: 22px;

    background: #faf9ff;

    border-radius: 18px;
}


.settings h3 {
    margin-bottom: 18px;
}


.settings label,
.pdf-action label {
    display: block;

    margin-top: 15px;

    font-weight: 700;
}


select {
    width: 100%;

    margin-top: 8px;

    padding: 14px;

    border: 1px solid #ddd9e5;

    border-radius: 12px;

    background: white;

    outline: none;
}


/* =========================
   BUTTON
========================= */

.primary-btn {
    width: 100%;

    border: 0;

    background: #5c42d6;

    color: white;

    padding: 17px;

    border-radius: 14px;

    font-weight: 800;

    margin-top: 22px;

    cursor: pointer;

    transition: .2s;
}


.primary-btn:active {
    transform: scale(.98);
}


/* =========================
   PDF PREVIEW
========================= */

.pdf-preview {
    margin-top: 22px;
}


.pdf-page {
    background: #f7f7f7;

    border-radius: 15px;

    padding: 12px;

    margin-bottom: 15px;
}


.pdf-page canvas {
    width: 100%;

    height: auto;

    display: block;

    border-radius: 10px;

    background: white;
}


.pdf-page-info {
    text-align: center;

    font-size: 13px;

    color: #777;

    margin-top: 8px;
}


.pdf-action {
    margin-top: 25px;
}


/* =========================
   MERGE PDF
========================= */

.merge-file-list {
    margin-top: 25px;

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.merge-file-item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    border: 1px solid #e5e2eb;

    border-radius: 16px;

    background: #faf9ff;
}


.merge-file-icon {
    width: 45px;

    height: 45px;

    flex-shrink: 0;

    border-radius: 12px;

    background: #eeeaff;

    color: #5c42d6;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 22px;
}


.merge-file-info {
    flex: 1;

    min-width: 0;
}


.merge-file-name {
    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.merge-file-size {
    margin-top: 5px;

    color: #8a8792;

    font-size: 13px;
}


.merge-buttons {
    display: flex;

    gap: 5px;
}


.merge-buttons button {
    width: 38px;

    height: 38px;

    border: 1px solid #ddd9e5;

    background: white;

    border-radius: 10px;

    cursor: pointer;

    font-size: 16px;
}


.merge-buttons button:active {
    transform: scale(.95);
}


.delete-file {
    color: #d94a4a;
}


/* =========================
   INFO
========================= */

.info-section {
    text-align: center;

    padding: 80px 20px;
}


.info-section h2 {
    font-size: 30px;
}


.info-section p {
    margin-top: 12px;

    color: #777481;
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    padding: 40px 20px;

    background: #201d29;

    color: white;
}


footer p {
    color: #aaa6b2;

    margin-top: 8px;
}


/* =========================
   UTIL
========================= */

.hidden {
    display: none !important;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .header {
        padding: 0 20px;
    }


    .header-btn {
        padding: 11px 16px;

        font-size: 13px;
    }


    .hero {
        padding-top: 50px;
    }


    .hero h1 {
        font-size: 42px;
    }


    .tool-container {
        padding: 22px;

        border-radius: 20px;
    }


    .tool-container h2 {
        font-size: 26px;
    }


    .upload-box {
        min-height: 290px;
    }


    .advantages {
        gap: 12px;

        font-size: 14px;
    }


    .merge-file-item {
        padding: 12px;

        gap: 8px;
    }


    .merge-file-icon {
        width: 40px;

        height: 40px;
    }


    .merge-buttons button {
        width: 32px;

        height: 32px;
    }

}

/* =========================
   SPLIT PDF
========================= */

.split-pdf-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 14px;
    margin-top: 25px;
}

.split-pdf-page {
    position: relative;
    background: #faf9ff;
    border: 2px solid #e5e2eb;
    border-radius: 16px;
    padding: 10px;
    cursor: pointer;
    transition: .2s;
}

.split-pdf-page:hover {
    border-color: #9b8be5;
}

.split-pdf-page.selected {
    border-color: #5c42d6;
    background: #f0edff;
}

.split-pdf-page canvas {
    width: 100%;
    height: auto;
    display: block;
    background: white;
    border-radius: 9px;
}

.split-page-check {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 20px;
    height: 20px;
    accent-color: #5c42d6;
    cursor: pointer;
}

.split-page-number {
    text-align: center;
    margin-top: 8px;
    color: #777481;
    font-size: 13px;
    font-weight: 700;
}

.split-select-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 2px;
}

.split-select-btn {
    border: 1px solid #ddd9e5;
    background: white;
    color: #292735;
    padding: 10px 14px;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
}

#splitSelectedInfo {
    color: #777481;
    font-size: 13px;
}

.split-pdf-action {
    margin-top: 20px;
}


/* =========================
   HERO - UPDATED
========================= */

.hero {
    padding: 58px 20px 42px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    border-radius: 999px;
    background: #eeebff;
    color: #5c42d6;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 20px;
}

.hero h1 span {
    color: #5c42d6;
}

.hero-lead {
    max-width: 720px !important;
    font-size: 17px;
    line-height: 1.75 !important;
}

.hero-actions {
    margin-top: 28px;
}

.hero-note {
    margin-top: 12px;
    color: #8a8694;
    font-size: 12px;
}


/* =========================
   INTRO SECTION
========================= */

.intro-section,
.how-section {
    width: min(1080px, 92%);
    margin: 0 auto;
}

.intro-section {
    padding: 52px 0 30px;
}

.intro-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-kicker {
    display: inline-block;
    color: #6045d8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    margin-bottom: 9px;
}

.intro-heading h2,
.how-heading h2 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.intro-heading p,
.how-heading p {
    color: #777481;
    line-height: 1.7;
    font-size: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid #e6e2ed;
    border-radius: 19px;
    padding: 21px;
}

.info-number {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #f0edff;
    color: #5c42d6;
    font-size: 12px;
    font-weight: 800;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 7px;
}

.info-card p {
    color: #777481;
    font-size: 13px;
    line-height: 1.65;
}

.privacy-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 18px 20px;
    background: #292735;
    color: #fff;
    border-radius: 18px;
}

.privacy-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    border-radius: 12px;
}

.privacy-box strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.privacy-box p {
    color: #c5c2cc;
    font-size: 12px;
    line-height: 1.55;
}


/* =========================
   HOW TO USE
========================= */

.how-section {
    padding: 42px 0 28px;
}

.how-heading {
    margin-bottom: 24px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.step {
    background: #fff;
    border: 1px solid #e6e2ed;
    border-radius: 17px;
    padding: 19px;
}

.step > span {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #5c42d6;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 15px;
    margin-bottom: 7px;
}

.step p {
    color: #777481;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================
   MOBILE INFO
========================= */

@media (max-width: 760px) {
    .hero {
        padding-top: 45px;
    }

    .hero-badge {
        font-size: 11px;
    }

    .hero-lead {
        font-size: 15px;
    }

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

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

    .privacy-box {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .intro-section,
    .how-section {
        width: 90%;
    }
}

/* ==================================================
   MODERN TOOL MENU
   Visual-only redesign: tool buttons remain real
   <button> elements so the existing onclick handlers
   keep working.
================================================== */

.header {
    height: 74px;
    padding: 0 clamp(20px, 6vw, 72px);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-btn {
    display: none;
}

.logo {
    font-size: 23px;
    letter-spacing: -.4px;
}

.tools-section {
    width: min(1120px, 92%);
    margin: 0 auto;
    padding: 58px 0 20px;
}

.tools-heading {
    max-width: 760px;
    margin: 0 auto 25px;
    text-align: center;
}

.tools-heading h2 {
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.tools-heading p {
    color: #777481;
    font-size: 14px;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

.tools-scroll {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    overflow: visible;
    padding: 0;
}

.tool-card {
    width: 100%;
    min-height: 166px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex: initial;
    position: relative;
    padding: 21px;
    border: 1px solid #e5e2ed;
    border-radius: 21px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(30, 20, 60, .045);
    color: #171522;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: #b9adf2;
    box-shadow: 0 14px 32px rgba(45, 30, 100, .09);
}

.tool-card:focus-visible {
    outline: 3px solid rgba(92, 66, 214, .24);
    outline-offset: 3px;
}

.tool-card.active {
    background: linear-gradient(145deg, #5c42d6, #6d54e1);
    color: #fff;
    border-color: #5c42d6;
    box-shadow: 0 16px 35px rgba(92, 66, 214, .2);
}

.tool-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    margin-bottom: 15px;
    border-radius: 14px;
    background: #f0edff;
    color: #6045d8;
    font-size: 22px;
}

.tool-card.active .tool-icon {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.tool-card strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -.2px;
}

.tool-card small.tool-description {
    display: block;
    margin-top: 8px;
    max-width: 100%;
    color: #7b7784;
    font-size: 12px;
    line-height: 1.55;
    opacity: 1;
}

.tool-card.active small.tool-description {
    color: rgba(255, 255, 255, .82);
}

.tool-container {
    width: min(920px, 92%);
    margin: 18px auto 42px;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(30, 20, 60, .075);
    scroll-margin-top: 94px;
}

.tool-container h2 {
    letter-spacing: -.6px;
}

.description {
    max-width: 700px;
}

@media (max-width: 900px) {
    .tools-scroll {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .header {
        height: 68px;
        padding: 0 20px;
    }

    .logo {
        font-size: 21px;
    }

    .tools-section {
        width: 92%;
        padding-top: 42px;
    }

    .tools-heading {
        text-align: left;
        margin-bottom: 20px;
    }

    .tools-heading p {
        margin-left: 0;
    }

    .tools-scroll {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tool-card {
        min-height: 0;
        padding: 18px;
    }

    .tool-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        margin-bottom: 12px;
    }

    .tool-container {
        width: 92%;
        margin-top: 14px;
        margin-bottom: 32px;
    }
}

/* =========================
   FAQ / SEO CONTENT
========================= */
.faq-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 6% 90px;
}

.faq-heading {
    max-width: 700px;
    margin-bottom: 28px;
}

.faq-heading h2 {
    margin-top: 8px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -1px;
}

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

.faq-card {
    background: #fff;
    border: 1px solid #e8e4f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(31, 24, 55, .05);
}

.faq-card h3 {
    font-size: 18px;
    margin-bottom: 9px;
}

.faq-card p {
    color: #716d7b;
    line-height: 1.7;
}

@media (max-width: 700px) {
    .faq-section {
        padding: 52px 6% 70px;
    }

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

/* ==================================================
   FINAL POLISH / SEO CONTENT LAYOUT
   Visual-only additions. Existing tool behavior is preserved.
================================================== */

:root {
    --brand: #5c42d6;
    --brand-dark: #4631b5;
    --brand-soft: #f0edff;
    --text: #171522;
    --muted: #706c7a;
    --line: #e8e5ef;
    --surface: #ffffff;
    --page: #f7f6ff;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -10%, rgba(92,66,214,.07), transparent 34%),
        var(--page);
    color: var(--text);
}

button {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible + * {
    outline: 3px solid rgba(92,66,214,.25);
    outline-offset: 3px;
}

.header {
    height: 74px;
    padding: 0 clamp(20px, 6vw, 80px);
    background: rgba(255,255,255,.88);
    border-bottom-color: rgba(232,229,239,.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.logo {
    letter-spacing: -.3px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(58px, 8vw, 92px) 20px 54px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(124,102,226,.08);
    filter: blur(8px);
    pointer-events: none;
}

.hero::before { left: -100px; top: 80px; }
.hero::after { right: -110px; bottom: -90px; }

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid #ded8ff;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    color: #5a48bb;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 22px;
    font-weight: 850;
    letter-spacing: -2.7px;
}

.hero h1 span {
    display: block;
    color: var(--brand);
}

.hero-lead {
    max-width: 720px !important;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-note {
    color: #8b8793;
    font-size: 13px;
}

.advantages span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid #e8e4f1;
}

.intro-section,
.how-section,
.faq-section {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.intro-section {
    padding: 54px 0 30px;
}

.intro-heading,
.how-heading,
.faq-heading,
.tools-heading {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    color: var(--brand);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.5px;
    margin-bottom: 9px;
}

.intro-heading h2,
.how-heading h2,
.faq-heading h2,
.tools-heading h2 {
    font-size: clamp(27px, 4vw, 40px);
    line-height: 1.12;
    letter-spacing: -.9px;
}

.intro-heading p,
.how-heading p,
.faq-heading p,
.tools-heading p {
    color: var(--muted);
    line-height: 1.7;
    margin-top: 12px;
}

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

.info-card {
    display: flex;
    gap: 16px;
    padding: 22px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(30,20,60,.035);
}

.info-number {
    flex: 0 0 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 850;
    font-size: 13px;
}

.info-card h3,
.step h3,
.faq-card h3 {
    font-size: 16px;
    margin-bottom: 7px;
}

.info-card p,
.step p,
.faq-card p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.privacy-box {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid #ded8ff;
    background: linear-gradient(135deg, #fbfaff, #f4f1ff);
    border-radius: 18px;
}

.privacy-box p {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.how-section {
    padding: 44px 0 34px;
}

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

.step {
    padding: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.step > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--brand);
    color: white;
    font-weight: 800;
}

.tools-section {
    width: min(1120px, 92%);
    margin: 0 auto;
    padding: 46px 0 12px;
}

.tools-heading {
    margin-bottom: 22px;
}

.tools-scroll {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
    padding: 0;
}

.tool-card {
    min-width: 0;
    width: 100%;
    min-height: 168px;
    flex: initial;
    padding: 19px;
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    box-shadow: 0 9px 28px rgba(30,20,60,.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: #cec6f7;
    box-shadow: 0 15px 34px rgba(30,20,60,.08);
}

.tool-card.active {
    background: linear-gradient(145deg, #654bdc, #5139c7);
    border-color: #5c42d6;
    box-shadow: 0 16px 35px rgba(92,66,214,.2);
}

.tool-card strong {
    font-size: 16px;
}

.tool-card small {
    line-height: 1.55;
    font-size: 12px;
}

.tool-card.active small {
    opacity: .82;
}

.tool-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 13px;
    background: #f0edff;
    font-size: 21px;
}

.tool-card.active .tool-icon {
    background: rgba(255,255,255,.16);
}

.tool-container {
    width: min(820px, 92%);
    margin: 26px auto 42px;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 24px;
}

.faq-section {
    padding: 54px 0 70px;
}

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

.faq-card {
    padding: 21px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
}

footer {
    margin-top: 0;
}

@media (max-width: 980px) {
    .tools-scroll {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 700px) {
    .info-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

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

    .tool-card {
        min-height: 160px;
    }
}

@media (max-width: 600px) {
    .header {
        height: 68px;
    }

    .hero {
        padding-top: 46px;
    }

    .hero h1 {
        font-size: clamp(36px, 11vw, 46px);
        letter-spacing: -1.8px;
    }

    .hero-badge {
        font-size: 11px;
    }

    .advantages {
        gap: 7px;
        font-size: 12px;
    }

    .advantages span {
        padding: 6px 9px;
    }

    .tools-section,
    .intro-section,
    .how-section,
    .faq-section {
        width: min(92%, 560px);
    }

    .tools-scroll {
        grid-template-columns: 1fr;
    }

    .tool-card {
        min-height: auto;
        display: grid;
        grid-template-columns: 46px 1fr;
        column-gap: 13px;
        text-align: left;
        align-items: center;
    }

    .tool-icon {
        grid-row: span 2;
        margin-bottom: 0;
    }

    .tool-card small {
        margin-top: 4px;
    }

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

    .privacy-box {
        padding: 16px;
    }

    .faq-section {
        padding-bottom: 52px;
    }
}


/* =========================
   PROFESSIONAL FOOTER
========================= */

.site-footer {
    margin-top: 28px;
    background: #171522;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-inner {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 54px 0 42px;
    display: grid;
    grid-template-columns: minmax(250px, 1.7fr) repeat(3, minmax(140px, 1fr));
    gap: 44px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.footer-logo span {
    color: #8b76ee;
    margin-right: 7px;
}

.footer-brand p {
    margin-top: 15px;
    color: #aaa6b7;
    line-height: 1.7;
    font-size: 14px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.footer-column h3 {
    margin-bottom: 5px;
    font-size: 14px;
    color: #fff;
}

.footer-column a {
    color: #aaa6b7;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color .18s ease, transform .18s ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
    color: #fff;
    transform: translateX(2px);
    outline: none;
}

.footer-bottom {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #8f8a9c;
    font-size: 12px;
}

@media (max-width: 800px) {
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 28px;
        padding: 42px 0 34px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 600px;
    }
}

@media (max-width: 520px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px 18px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
        line-height: 1.5;
    }
}


/* =========================
   STATIC INFORMATION PAGES
========================= */
.info-page { max-width: 980px; margin: 0 auto; padding: 56px 24px 80px; }
.info-page-hero { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.info-page-hero .section-kicker { display:inline-block; margin-bottom:10px; }
.info-page-hero h1 { margin:0 0 14px; font-size:clamp(2rem,5vw,3.25rem); line-height:1.08; }
.info-page-hero p { margin:0; font-size:1.05rem; line-height:1.75; opacity:.78; }
.info-page-card { background:var(--card-bg, #fff); border:1px solid rgba(90,70,160,.12); border-radius:20px; padding:28px; margin-bottom:18px; box-shadow:0 10px 30px rgba(30,20,70,.05); }
.info-page-card h2 { margin:0 0 12px; font-size:1.3rem; }
.info-page-card h3 { margin:20px 0 8px; font-size:1.05rem; }
.info-page-card p, .info-page-card li { line-height:1.75; opacity:.82; }
.info-page-card ul { margin:10px 0 0; padding-left:22px; }
.info-page-actions { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin-top:28px; }
.info-page-actions a { text-decoration:none; }
.simple-btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 20px; border-radius:12px; font-weight:700; background:#6c4ce8; color:#fff; }
.simple-btn.secondary { background:transparent; color:inherit; border:1px solid rgba(90,70,160,.18); }
.info-page .site-footer { margin-top:0; }
@media (max-width: 640px) { .info-page { padding:38px 16px 56px; } .info-page-card { padding:22px 18px; border-radius:16px; } .info-page-hero { margin-bottom:28px; } }

.header-link { text-decoration:none; font-weight:700; }
.logo { text-decoration:none; }

/* =========================
   FILE INFO + PROCESS PROGRESS
========================= */
.file-info-box {
    margin: 14px 0 0;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    background: #faf9ff;
    border: 1px solid #e5e1f1;
    border-radius: 14px;
    color: #625d70;
    font-size: 13px;
}
.file-info-box strong { color: #24202f; }
.file-info-box span { color: #777181; }
.process-progress {
    margin: 16px 0 4px;
    padding: 14px 15px;
    background: #fff;
    border: 1px solid #e5e1f1;
    border-radius: 15px;
}
.progress-label { display:flex; justify-content:space-between; gap:12px; font-size:13px; color:#686273; margin-bottom:9px; }
.progress-label strong { color:var(--brand,#5c42d6); }
.progress-track { width:100%; height:8px; background:#eeeaf8; border-radius:99px; overflow:hidden; }
.progress-fill { height:100%; width:0; background:linear-gradient(90deg,#5c42d6,#8069ed); border-radius:99px; transition:width .18s ease; }

/* FAQ accordion */
.faq-card { cursor:pointer; }
.faq-card summary { list-style:none; cursor:pointer; font-size:16px; font-weight:800; padding-right:28px; position:relative; }
.faq-card summary::-webkit-details-marker { display:none; }
.faq-card summary::after { content:'+'; position:absolute; right:0; top:-2px; font-size:22px; color:var(--brand,#5c42d6); }
.faq-card[open] summary::after { content:'−'; }
.faq-card p { margin-top:12px; }

/* SEO tool landing-page links */
.seo-links { margin: 32px auto; max-width: 1100px; padding: 0 20px; }
.seo-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.seo-links-grid a { display: block; padding: 14px 16px; border-radius: 12px; text-decoration: none; }


/* Main SEO information block */
.home-seo-section {
    width: min(1100px, calc(100% - 32px));
    margin: 18px auto 0;
}
.home-seo-inner {
    padding: 28px;
    border: 1px solid #e5e1ef;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(30,20,60,.04);
}
.home-seo-inner h2 {
    margin: 8px 0 10px;
    line-height: 1.2;
}
.home-seo-inner p {
    max-width: 850px;
    margin: 0;
    color: #696372;
    line-height: 1.75;
}
.home-seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.home-seo-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #e5e1ef;
    border-radius: 10px;
    background: #fbfaff;
    color: #5140b7;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.home-seo-links a:hover {
    border-color: #bcb1ec;
    background: #f5f2ff;
}
@media (max-width: 560px) {
    .home-seo-section { width: min(100% - 24px, 1100px); }
    .home-seo-inner { padding: 22px 18px; }
    .home-seo-links { display: grid; grid-template-columns: 1fr; }
    .home-seo-links a { justify-content: center; }
}
