.sw-tools-page,
.sw-tools-page *,
.sw-tools-page *::before,
.sw-tools-page *::after {
    box-sizing: border-box;
}

body {
    background: var(--bg-body);
}

.sw-tools-page {
    min-height: 100vh;
    background: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-ui);
}

.sw-tools-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

.sw-tools-hero {
    position: relative;
    padding: 116px 0 58px;
    overflow: hidden;
    background:
            radial-gradient(circle at 84% 24%, rgba(20, 72, 150, 0.12), transparent 32%),
            radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.95), transparent 26%),
            linear-gradient(180deg, #f6f9fd 0%, var(--bg-body) 100%);
}

.sw-tools-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(20, 72, 150, 0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(20, 72, 150, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
    pointer-events: none;
}

.sw-tools-hero .sw-tools-container {
    position: relative;
    z-index: 1;
}

.sw-tools-breadcrumbs {
    display: flex;
    margin-bottom: 22px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.sw-tools-breadcrumbs a {
    color: var(--primary);
    transition: color var(--transition);
}

.sw-tools-breadcrumbs a:hover {
    color: var(--primary-hover);
}

.sw-tools-breadcrumbs svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: #9aa8ba;
}

.sw-tools-kicker {
    display: inline-flex;
    min-height: 32px;
    padding: 0 12px;
    margin-bottom: 17px;
    align-items: center;
    border: 1px solid rgba(20, 72, 150, 0.13);
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary);
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.sw-tools-title {
    max-width: 860px;
    margin: 0;
    color: var(--text-main);
    font-size: clamp(34px, 7vw, 58px);
    font-weight: 830;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.sw-tools-lead {
    max-width: 760px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.sw-tools-points {
    display: flex;
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.sw-tools-point {
    display: inline-flex;
    min-height: 36px;
    padding: 0 13px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(20, 72, 150, 0.11);
    border-radius: 999px;
    background: #ffffff;
    color: #40516a;
    font-size: 12px;
    font-weight: 750;
}

.sw-tools-point svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--primary);
}

.sw-tools-section {
    padding: 58px 0;
}

.sw-tools-section--white {
    background: #ffffff;
}

.sw-tools-section--compact {
    padding-top: 34px;
}

.sw-tools-section-head {
    max-width: 760px;
    margin-bottom: 30px;
}

.sw-tools-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.sw-tools-heading {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 820;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.sw-tools-section-copy {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.sw-tools-button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.sw-tools-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.sw-tools-button--primary {
    background: var(--primary);
    box-shadow: 0 12px 26px rgba(20, 72, 150, 0.18);
    color: #ffffff;
}

.sw-tools-button--primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 16px 30px rgba(20, 72, 150, 0.22);
    transform: translateY(-1px);
}

.sw-tools-button--secondary {
    border-color: rgba(20, 72, 150, 0.16);
    background: #ffffff;
    color: var(--primary);
}

.sw-tools-button--secondary:hover {
    border-color: rgba(20, 72, 150, 0.28);
    background: #f4f8fe;
}

.sw-tools-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.sw-tools-cta {
    display: grid;
    padding: 28px;
    border: 1px solid rgba(20, 72, 150, 0.12);
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
    box-shadow: 0 18px 45px rgba(18, 53, 96, 0.08);
    gap: 22px;
}

.sw-tools-cta h2 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(24px, 5vw, 34px);
    font-weight: 820;
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.sw-tools-cta p {
    max-width: 680px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

.sw-tools-page :focus-visible {
    outline: 3px solid rgba(20, 72, 150, 0.22);
    outline-offset: 3px;
}

@media (min-width: 641px) {
    .sw-tools-container {
        padding-right: 24px;
        padding-left: 24px;
    }

    .sw-tools-hero {
        padding-top: 134px;
        padding-bottom: 72px;
    }

    .sw-tools-lead {
        font-size: 17px;
    }

    .sw-tools-section {
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .sw-tools-cta {
        padding: 38px;
    }
}

@media (min-width: 900px) {
    .sw-tools-hero {
        padding-top: 154px;
        padding-bottom: 88px;
    }

    .sw-tools-cta {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sw-tools-page *,
    .sw-tools-page *::before,
    .sw-tools-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
