.tools-breadcrumbs {
    margin: 0 0 12px;
}

.tools-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
}

.tools-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tools-breadcrumbs__item:not(:last-child)::after {
    content: "/";
    color: #94a3b8;
}

.tools-breadcrumbs a {
    color: #334155;
    text-decoration: none;
}

.tools-breadcrumbs a:hover {
    text-decoration: underline;
}

.tools-seo-intro {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
}

.tools-seo-intro p,
.tools-seo-block p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.tools-seo-sections {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.tools-seo-block h2,
.tools-seo-faq h2,
.tools-seo-related h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.tools-seo-block ul,
.tools-seo-steps {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #475569;
    line-height: 1.5;
}

.tools-seo-steps li + li {
    margin-top: 8px;
}

.tools-seo-steps strong {
    display: block;
    color: #0f172a;
}

.tools-seo-steps__text {
    display: block;
    margin-top: 2px;
}

.tools-seo-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

/* --- Hero (dark): readable intro + breadcrumbs --- */

.hero-container .tools-breadcrumbs__list {
    color: rgba(255, 255, 255, 0.55);
    justify-content: center;
}

.hero-container .tools-breadcrumbs__item:not(:last-child)::after {
    color: rgba(255, 255, 255, 0.35);
}

.hero-container .tools-breadcrumbs a {
    color: rgba(255, 255, 255, 0.78);
}

.hero-container .tools-breadcrumbs a:hover {
    color: #fff;
}

.hero-container .tools-seo-intro p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .hero-container .tools-breadcrumbs__list {
        justify-content: flex-start;
    }

    .hero-container .tools-seo-intro p {
        font-size: 1rem;
        text-align: left;
    }
}

/* --- Free-tools page: SEO sections as dark cards (match .free-tool-card) --- */

.free-tools-page .tools-seo-sections {
    gap: 16px;
    margin-top: 0;
}

.free-tools-page .tools-seo-block,
.free-tools-page .tools-seo-faq,
.free-tools-page .tools-seo-related {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    color: #fff;
    background: #0f1724;
    box-shadow: 0 12px 34px rgba(15, 23, 36, 0.18);
}

.free-tools-page .tools-seo-block h2,
.free-tools-page .tools-seo-faq h2,
.free-tools-page .tools-seo-related h2 {
    margin: 0 0 12px;
    color: #fff;
    font-family: "Bricolage Grotesque", Inter, sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
}

.free-tools-page .tools-seo-block p,
.free-tools-page .tools-seo-block ul,
.free-tools-page .tools-seo-steps,
.free-tools-page .tools-seo-faq p {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.6;
}

.free-tools-page .tools-seo-block ul {
    margin: 0;
    padding-left: 1.15rem;
}

.free-tools-page .tools-seo-block li + li {
    margin-top: 8px;
}

.free-tools-page .tools-seo-steps {
    list-style: none;
    margin: 0;
    padding-left: 0;
    counter-reset: ft-seo-step;
}

.free-tools-page .tools-seo-steps li {
    position: relative;
    padding: 12px 12px 12px 48px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    counter-increment: ft-seo-step;
}

.free-tools-page .tools-seo-steps li + li {
    margin-top: 10px;
}

.free-tools-page .tools-seo-steps li::before {
    content: counter(ft-seo-step);
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(51, 153, 255, 0.22);
    color: #9ecbff;
    font-size: 0.78rem;
    font-weight: 800;
}

.free-tools-page .tools-seo-steps strong {
    color: #fff;
    font-size: 0.95rem;
}

.free-tools-page .tools-seo-steps__text {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.free-tools-page .tools-seo-faq details {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.free-tools-page .tools-seo-faq details:first-of-type {
    border-top: none;
}

.free-tools-page .tools-seo-faq summary {
    padding: 14px 0;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    transition: color 0.18s ease;
}

.free-tools-page .tools-seo-faq summary::-webkit-details-marker {
    display: none;
}

.free-tools-page .tools-seo-faq summary:hover,
.free-tools-page .tools-seo-faq details[open] summary {
    color: #9ecbff;
}

.free-tools-page .tools-seo-faq details p {
    margin: 0 0 12px;
}

.free-tools-page .tools-seo-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.free-tools-page .tools-seo-related a {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: inherit;
    background: rgba(255, 255, 255, 0.055);
    text-decoration: none;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.free-tools-page .tools-seo-related a:hover {
    transform: translateY(-2px);
    border-color: rgba(51, 153, 255, 0.42);
    background: rgba(51, 153, 255, 0.12);
}

.free-tools-page .tools-seo-related strong {
    color: #fff;
    font-size: 0.92rem;
}

.free-tools-page .tools-seo-related span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .free-tools-page .tools-seo-block,
    .free-tools-page .tools-seo-faq,
    .free-tools-page .tools-seo-related {
        padding: 16px;
    }

    .free-tools-page .tools-seo-steps li {
        padding-left: 44px;
    }

    .free-tools-page .tools-seo-related__grid {
        grid-template-columns: 1fr;
    }
}

/* --- .seo-block inner UI (bg / border animation stay in global-tools.css) --- */

.seo-block .tools-seo-sections {
    gap: 16px;
    margin-top: 0;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.seo-block .tools-seo-block,
.seo-block .tools-seo-faq,
.seo-block .tools-seo-related {
    padding: 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.seo-block .tools-seo-block h2,
.seo-block .tools-seo-faq h2,
.seo-block .tools-seo-related h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.seo-block .tools-seo-block p,
.seo-block .tools-seo-block ul,
.seo-block .tools-seo-steps,
.seo-block .tools-seo-faq p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.seo-block .tools-seo-block ul,
.seo-block .tools-seo-steps {
    margin: 0;
    padding-left: 1.15rem;
}

.seo-block .tools-seo-block li + li,
.seo-block .tools-seo-steps li + li {
    margin-top: 10px;
}

.seo-block .tools-seo-steps {
    list-style: none;
    padding-left: 0;
    counter-reset: seo-step;
}

.seo-block .tools-seo-steps li {
    position: relative;
    padding: 12px 12px 12px 48px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
    counter-increment: seo-step;
}

.seo-block .tools-seo-steps li::before {
    content: counter(seo-step);
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(51, 153, 255, 0.2);
    color: #9ecbff;
    font-size: 0.78rem;
    font-weight: 800;
}

.seo-block .tools-seo-steps strong {
    color: #fff;
    font-size: 0.95rem;
}

.seo-block .tools-seo-steps__text {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.seo-block .tools-seo-faq details {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-block .tools-seo-faq details:first-of-type {
    border-top: none;
}

.seo-block .tools-seo-faq summary {
    padding: 12px 0;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.seo-block .tools-seo-faq summary::-webkit-details-marker {
    display: none;
}

.seo-block .tools-seo-faq summary:hover {
    color: #9ecbff;
}

.seo-block .tools-seo-faq details[open] summary {
    color: #9ecbff;
}

.seo-block .tools-seo-faq details p {
    margin: 0 0 12px;
    padding-bottom: 4px;
}

.seo-block .tools-seo-related__grid {
    gap: 10px;
}

.seo-block .tools-seo-related a {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.seo-block .tools-seo-related a:hover {
    border-color: rgba(51, 153, 255, 0.4);
    background: rgba(51, 153, 255, 0.1);
}

.seo-block .tools-seo-related strong {
    color: #fff;
    font-size: 0.92rem;
}

.seo-block .tools-seo-related span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Contacts under SEO */

.seo-block .tools-contacts {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.seo-block .tools-contacts__card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(100%, 220px);
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.seo-block .tools-contacts__card:hover {
    border-color: rgba(51, 153, 255, 0.4);
    background: rgba(51, 153, 255, 0.1);
}

.seo-block .tools-contacts__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.seo-block .tools-contacts__name {
    display: block;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.seo-block .tools-contacts__note {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}

.tools-main .tools-seo-sections,
.tools-main .tools-seo-intro,
.generate-seo-wrap .tools-seo-sections {
    color: inherit;
}

@media (max-width: 720px) {
    .tools-breadcrumbs__list {
        font-size: 12px;
    }

    .seo-block .tools-seo-block,
    .seo-block .tools-seo-faq,
    .seo-block .tools-seo-related {
        padding: 14px;
    }

    .seo-block .tools-seo-steps li {
        padding-left: 44px;
    }
}
