:root {
    --bg: #f4f2ee;
    --paper: #ffffff;
    --ink: #101819;
    --muted: #5f6d6f;
    --line: rgba(16, 24, 25, .12);
    --accent: #2563eb;
    --accent-2: #ff6a3d;
    --gold: #e2a632;
    --dark: #071312;
    --soft: #e8edf7;
    --glass: rgba(255, 255, 255, .76);
    --shadow: 0 28px 76px rgba(7, 19, 18, .12);
    --shadow-strong: 0 34px 100px rgba(7, 19, 18, .24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #f4f2ee 0%, #fbfaf7 48%, #eef3ff 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px circle at 15% 10%, rgba(37, 99, 235, .11), transparent 46%),
        radial-gradient(760px circle at 82% 18%, rgba(255, 106, 61, .1), transparent 44%),
        linear-gradient(180deg, rgba(255,255,255,.48), transparent 62%);
    mask-image: linear-gradient(#000, transparent 86%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.ui-icon {
    width: 1.15em;
    height: 1.15em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .74);
    backdrop-filter: blur(22px) saturate(1.2);
    box-shadow: 0 18px 55px rgba(7, 19, 18, .07);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #fff;
    background: #050505;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(5, 5, 5, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}

.brand:hover .brand-mark {
    transform: translateY(-2px) rotate(-3deg);
    box-shadow: 0 18px 36px rgba(5, 5, 5, .24);
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.nav {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 15px;
}

.nav a {
    position: relative;
    padding: 8px 0;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    gap: 5px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 14px 34px rgba(7, 19, 18, .08);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--dark);
    transition: transform .24s ease, opacity .24s ease;
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav a:hover,
.footer-links a:hover,
.service-card a:hover {
    color: var(--accent);
}

.header-action,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}

.header-action {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 40%),
        linear-gradient(135deg, #111827, #2563eb);
    box-shadow: 0 16px 36px rgba(37, 99, 235, .22);
}

.button-primary {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .2), transparent 40%),
        linear-gradient(135deg, #111827, #2563eb);
    box-shadow: 0 16px 38px rgba(37, 99, 235, .23);
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .64);
}

.hero .button-secondary {
    color: #fbfaf7;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
}

.header-action:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(37, 99, 235, .26);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, .78fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    min-height: calc(100vh - 80px);
    padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 72px);
    color: #fbfaf7;
    background:
        radial-gradient(900px circle at 78% 20%, rgba(37, 99, 235, .34), transparent 45%),
        radial-gradient(760px circle at 18% 82%, rgba(255, 106, 61, .22), transparent 43%),
        linear-gradient(135deg, #050505 0%, #111827 58%, #1f2937 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 42%);
    opacity: .78;
}

.hero > * {
    position: relative;
}

.hero h1,
.page-hero h1,
.service-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(42px, 6vw, 82px);
    line-height: .98;
    letter-spacing: 0;
}

.hero h1 {
    background: linear-gradient(105deg, #ffffff 0%, #dbeafe 54%, #ffb199 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text,
.page-hero p,
.service-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 22px);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    background: var(--dark);
    box-shadow: var(--shadow);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.hero .hero-text {
    color: rgba(247, 251, 250, .76);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero .eyebrow,
.service-hero .eyebrow {
    color: #93c5fd;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 44px 0 0;
}

.hero-stats div {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    transition: transform .25s ease, border-color .25s ease;
}

.hero-stats div:hover {
    transform: translateY(-4px);
    border-color: rgba(125, 232, 220, .4);
}

.hero-stats dt {
    font-size: 34px;
    font-weight: 850;
    line-height: 1;
}

.hero-stats dd {
    margin: 8px 0 0;
    color: rgba(247, 251, 250, .68);
}

.hero-visual {
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 36px 100px rgba(0, 0, 0, .34);
    transform: perspective(900px) rotateY(-3deg) rotateX(2deg);
    transition: transform .35s ease, box-shadow .35s ease;
}

.hero-visual:hover {
    transform: perspective(900px) rotateY(0deg) rotateX(0deg) translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.section,
.page-hero,
.service-hero {
    padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.section-tight {
    padding-top: clamp(40px, 5vw, 72px);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(260px, .55fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 32px;
}

.section-head h2,
.band h2,
.cta-panel h2,
.service-detail h2,
.site-footer h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-head p:last-child,
.band p,
.cta-panel p,
.site-footer p {
    color: var(--muted);
}

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

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

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

.cluster-card,
.hub-card {
    --tone: var(--accent);
    --tone-2: var(--accent-2);
    position: relative;
    display: flex;
    min-height: 360px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .86)),
        var(--glass);
    box-shadow: 0 16px 44px rgba(7, 19, 18, .075);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cluster-card::before,
.hub-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tone) 16%, transparent), transparent 42%);
    transition: opacity .25s ease;
}

.cluster-card::after,
.hub-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tone), var(--tone-2));
    opacity: .78;
}

.cluster-card:hover,
.hub-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--tone) 32%, transparent);
    box-shadow: 0 28px 78px rgba(7, 19, 18, .14);
}

.cluster-card:hover::before,
.hub-card:hover::before {
    opacity: 1;
}

.cluster-card > *,
.hub-card > * {
    position: relative;
}

.cluster-card h3,
.hub-card h3 {
    margin: 18px 0 10px;
    font-size: 24px;
    line-height: 1.12;
}

.cluster-card p {
    color: var(--muted);
}

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

.portfolio-card {
    --tone: var(--accent);
    --tone-2: var(--accent-2);
    position: relative;
    display: flex;
    min-height: 430px;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--tone) 16%, var(--line));
    border-radius: 8px;
    color: var(--dark);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--tone) 10%, white) 0%, rgba(255, 255, 255, .94) 46%, rgba(248, 250, 252, .9) 100%),
        var(--glass);
    box-shadow: 0 18px 54px rgba(7, 19, 18, .08);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.portfolio-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tone) 18%, transparent), transparent 46%),
        linear-gradient(180deg, color-mix(in srgb, var(--tone) 16%, transparent), transparent 38%);
    transition: opacity .25s ease;
}

.portfolio-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 132px;
    height: 132px;
    border: 1px solid color-mix(in srgb, var(--tone) 34%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--tone) 9%, transparent);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--tone) 42%, transparent);
    box-shadow: 0 30px 86px rgba(7, 19, 18, .14);
}

.portfolio-card:hover::before {
    opacity: 1;
}

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

.portfolio-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: color-mix(in srgb, var(--tone) 82%, var(--dark));
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portfolio-card h2,
.portfolio-card h3 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
    letter-spacing: 0;
}

.portfolio-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tags span {
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--tone) 20%, var(--line));
    border-radius: 999px;
    color: color-mix(in srgb, var(--tone) 75%, var(--dark));
    background: color-mix(in srgb, var(--tone) 8%, white);
    font-size: 12px;
    font-weight: 800;
}

.portfolio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.portfolio-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--tone) 26%, var(--line));
    border-radius: 8px;
    color: var(--dark);
    background: rgba(255, 255, 255, .72);
    font-weight: 850;
    transition: transform .2s ease, color .2s ease, background-color .2s ease, border-color .2s ease;
}

.portfolio-actions a:first-child {
    color: #fff;
    border-color: var(--tone);
    background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 72%, #071312));
}

.portfolio-actions a:hover {
    transform: translateY(-2px);
    border-color: var(--tone);
    color: var(--tone);
}

.portfolio-actions a:first-child:hover {
    color: #fff;
}

.section-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.cluster-links,
.hub-links {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.cluster-links a,
.hub-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    color: var(--dark);
    font-weight: 800;
    line-height: 1.25;
    transition: transform .2s ease, color .2s ease, border-color .2s ease;
}

.cluster-links a:hover,
.hub-links a:hover {
    transform: translateX(4px);
    border-color: color-mix(in srgb, var(--tone) 28%, transparent);
    color: var(--tone);
}

.hub-links span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 11%, white);
}

.hub-links .ui-icon {
    width: 14px;
    height: 14px;
}

.service-card {
    --tone: var(--accent);
    --tone-2: var(--accent-2);
    position: relative;
    display: flex;
    min-height: 300px;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .86)),
        var(--glass);
    box-shadow: 0 16px 44px rgba(7, 19, 18, .075);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}

.service-card::after,
.query-card::after,
.seo-grid article::after,
.insight-grid article::after {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tone, var(--accent)), var(--tone-2, var(--accent-2)));
    opacity: .78;
}

.service-card::before,
.query-card::before,
.related-grid a::before,
.contact-grid a::before,
.insight-grid article::before,
.text-panel::before,
.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tone, var(--accent)) 16%, transparent), transparent 42%);
    transition: opacity .25s ease;
}

.service-card:hover,
.query-card:hover,
.related-grid a:hover,
.contact-grid a:hover,
.insight-grid article:hover,
.text-panel:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--tone, var(--accent)) 32%, transparent);
    box-shadow: 0 28px 78px rgba(7, 19, 18, .14);
}

.service-card:hover::before,
.query-card:hover::before,
.related-grid a:hover::before,
.contact-grid a:hover::before,
.insight-grid article:hover::before,
.text-panel:hover::before,
.cta-panel:hover::before {
    opacity: 1;
}

.service-card h2,
.service-card h3 {
    margin: 14px 0 12px;
    font-size: 24px;
    line-height: 1.15;
}

.service-card p {
    color: var(--muted);
}

.price-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 14px;
    padding: 8px 11px;
    border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 22%, var(--line));
    border-radius: 8px;
    color: color-mix(in srgb, var(--tone, var(--accent)) 86%, var(--dark));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tone, var(--accent)) 12%, white), rgba(255, 255, 255, .82));
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.service-card a {
    margin-top: 24px;
    color: var(--dark);
    font-weight: 800;
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.icon-badge,
.hero-icon,
.insight-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 22%, transparent);
    border-radius: 8px;
    color: var(--tone, var(--accent));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tone, var(--accent)) 16%, transparent), rgba(255, 255, 255, .68)),
        rgba(255, 255, 255, .88);
    box-shadow: 0 14px 34px rgba(7, 19, 18, .08);
}

.icon-badge .ui-icon,
.hero-icon .ui-icon,
.insight-icon .ui-icon {
    width: 19px;
    height: 19px;
}

.icon-badge-small {
    width: 32px;
    height: 32px;
}

.icon-badge-small .ui-icon {
    width: 16px;
    height: 16px;
}

.service-index {
    color: var(--tone, var(--accent));
    font-weight: 850;
}

.band {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(340px, 1fr);
    gap: clamp(28px, 6vw, 74px);
    padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 72px);
    color: #f8fafc;
    background:
        radial-gradient(720px circle at 82% 18%, rgba(37, 99, 235, .28), transparent 46%),
        radial-gradient(620px circle at 18% 82%, rgba(255, 106, 61, .2), transparent 44%),
        linear-gradient(135deg, #050505 0%, #111827 64%, #1f2937 100%);
}

.band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 42%);
    opacity: .7;
}

.band > * {
    position: relative;
}

.band p,
.band .eyebrow {
    color: #cbd5e1;
}

.experience-list {
    display: grid;
    gap: 14px;
}

.experience-list div {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.experience-list div:hover {
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
}

.experience-list span {
    color: #cbd5e1;
}

.cta-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .08), transparent 46%),
        var(--paper);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cta-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, .24);
    box-shadow: var(--shadow-strong);
}

.page-hero {
    max-width: 1180px;
}

.service-hero {
    color: #fbfaf7;
    background:
        radial-gradient(780px circle at 82% 18%, rgba(37, 99, 235, .32), transparent 46%),
        radial-gradient(680px circle at 14% 88%, rgba(255, 106, 61, .18), transparent 42%),
        linear-gradient(135deg, #050505 0%, #111827 62%, #1f2937 100%);
}

.service-hero p,
.service-hero .breadcrumbs {
    color: rgba(247, 251, 250, .72);
}

.service-hero .breadcrumbs a {
    color: #93c5fd;
}

.service-hero .button-secondary {
    color: #fbfaf7;
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 38px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--accent);
}

.service-hero-grid,
.service-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .5fr);
    gap: clamp(28px, 6vw, 72px);
}

.service-summary {
    --tone: var(--accent);
    --tone-2: var(--accent-2);
    position: relative;
    align-self: start;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 72px rgba(0, 0, 0, .22);
}

.service-summary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    right: 26px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tone), var(--tone-2));
}

.service-visual-card,
.panel-visual {
    position: relative;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 18%, var(--line));
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(7, 19, 18, .1);
    overflow: hidden;
}

.service-visual-card {
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
}

.service-visual-card img,
.panel-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-visual {
    aspect-ratio: 16 / 9;
    margin-bottom: 22px;
}

.service-summary h2 {
    margin: 0 0 18px;
    color: var(--dark);
    font-size: 24px;
}

.service-hero .service-summary p {
    color: var(--muted);
}

.service-hero .service-summary strong,
.service-hero .service-summary span {
    color: inherit;
}

.price-card {
    position: relative;
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 22%, var(--line));
    border-radius: 8px;
    background:
        radial-gradient(260px circle at 100% 0, color-mix(in srgb, var(--tone, var(--accent)) 16%, transparent), transparent 58%),
        linear-gradient(135deg, color-mix(in srgb, var(--tone, var(--accent)) 10%, white), rgba(255, 255, 255, .9));
    overflow: hidden;
}

.price-card span {
    color: color-mix(in srgb, var(--tone, var(--accent)) 78%, var(--dark));
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.price-card strong {
    color: var(--dark);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
}

.price-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.hero-icon-row {
    --tone: var(--accent);
    --tone-2: var(--accent-2);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 8px 12px 8px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    color: var(--dark);
    font-weight: 800;
}

.hero-icon-row .hero-icon {
    color: var(--tone);
    border-color: color-mix(in srgb, var(--tone) 24%, transparent);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tone) 18%, transparent), rgba(255, 255, 255, .68)),
        rgba(255, 255, 255, .9);
}

.hero-icon {
    width: 36px;
    height: 36px;
}

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

.process-map article {
    position: relative;
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .09), transparent 42%),
        var(--glass);
    box-shadow: 0 14px 40px rgba(7, 19, 18, .06);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.process-map article::after {
    content: "";
    position: absolute;
    top: 45px;
    right: -22px;
    width: 44px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.process-map article:last-child::after {
    display: none;
}

.process-map article:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, .28);
    box-shadow: 0 24px 64px rgba(7, 19, 18, .13);
}

.process-map article > span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--tone, var(--accent)), var(--tone-2, var(--accent-2)));
}

.process-map article:nth-child(1) {
    --tone: #2563eb;
    --tone-2: #2563eb;
}

.process-map article:nth-child(2) {
    --tone: #d97706;
    --tone-2: #0891b2;
}

.process-map article:nth-child(3) {
    --tone: #7c3aed;
    --tone-2: #db2777;
}

.process-map article:nth-child(4) {
    --tone: #16a34a;
    --tone-2: #2563eb;
}

.process-map article > span .ui-icon {
    width: 18px;
    height: 18px;
}

.process-map strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.process-map p {
    margin: 0;
    color: var(--muted);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag-row span {
    padding: 8px 10px;
    border-radius: 8px;
    color: color-mix(in srgb, var(--tone, var(--accent)) 82%, var(--dark));
    background: color-mix(in srgb, var(--tone, var(--accent)) 12%, white);
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, background-color .2s ease;
}

.tag-row span:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--tone, var(--accent)) 18%, white);
}

.check-list,
.step-list {
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.compact-list {
    gap: 10px;
}

.compact-list li {
    padding: 14px;
}

.check-list li,
.step-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.list-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    color: var(--tone, var(--accent));
}

.check-list li:hover,
.step-list li:hover {
    transform: translateX(5px);
    border-color: rgba(37, 99, 235, .24);
    box-shadow: 0 16px 40px rgba(7, 19, 18, .09);
}

.content-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    gap: 18px;
}

.text-panel {
    position: relative;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .82)),
        var(--glass);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

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

.text-panel-accent {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .14), transparent 42%),
        linear-gradient(315deg, rgba(255, 106, 61, .11), transparent 40%),
        var(--soft);
}

.text-panel h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.08;
}

.text-panel p {
    color: var(--muted);
}

.intent-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intent-panel h2,
.intent-panel p {
    margin-bottom: 0;
}

.intent-badge,
.intent-link {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 14px 34px rgba(7, 19, 18, .07);
}

.intent-badge span,
.intent-link span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.intent-badge strong,
.intent-link strong {
    color: var(--dark);
    font-size: 18px;
    line-height: 1.2;
}

.intent-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.intent-list li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
}

.intent-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tone, var(--accent)), var(--tone-2, var(--accent-2)));
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone, var(--accent)) 10%, transparent);
}

.intent-link {
    color: inherit;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.intent-link:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 106, 61, .28);
    box-shadow: 0 20px 44px rgba(7, 19, 18, .11);
}

.signal-board {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.signal-board div {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 16%, var(--line));
    border-radius: 8px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--tone, var(--accent)) 9%, white), rgba(255, 255, 255, .78));
    overflow: hidden;
}

.signal-board div::after {
    content: "";
    position: absolute;
    left: 80px;
    right: 12px;
    bottom: 8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tone, var(--accent)), color-mix(in srgb, var(--tone-2, var(--accent-2)) 68%, transparent));
    opacity: .56;
}

.signal-board span {
    color: color-mix(in srgb, var(--tone, var(--accent)) 78%, var(--dark));
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.signal-board strong {
    color: var(--dark);
    font-size: 15px;
    line-height: 1.1;
}

.plain-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.plain-list li {
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.step-list {
    counter-reset: steps;
}

.step-list li {
    counter-increment: steps;
}

.step-list li::before {
    content: counter(steps, decimal-leading-zero);
    flex: 0 0 auto;
    display: block;
    margin-bottom: 8px;
    min-width: 34px;
    color: var(--accent-2);
    font-weight: 850;
}

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

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

.insight-grid article {
    --tone: var(--accent);
    --tone-2: var(--accent-2);
    position: relative;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .84)),
        var(--glass);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.insight-grid article:nth-child(1) {
    --tone: #d97706;
    --tone-2: #2563eb;
}

.insight-grid article:nth-child(2) {
    --tone: #0891b2;
    --tone-2: #2563eb;
}

.insight-grid article:nth-child(3) {
    --tone: #16a34a;
    --tone-2: #0ea5e9;
}

.insight-grid article:nth-child(4) {
    --tone: #7c3aed;
    --tone-2: #ff6a3d;
}

.insight-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
}

.insight-grid h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.15;
}

.insight-grid p {
    margin: 0;
    color: var(--muted);
}

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

.seo-grid article {
    --tone: var(--accent);
    --tone-2: var(--accent-2);
    position: relative;
    min-height: 230px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .09), transparent 42%),
        var(--glass);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.seo-grid article:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--tone) 30%, transparent);
    box-shadow: 0 24px 64px rgba(7, 19, 18, .13);
}

.seo-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 38px;
    height: 38px;
    margin-bottom: 16px;
    padding: 0 10px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--tone), var(--tone-2));
    font-weight: 850;
}

.seo-grid article:nth-child(1) {
    --tone: #2563eb;
    --tone-2: #2563eb;
}

.seo-grid article:nth-child(2) {
    --tone: #d97706;
    --tone-2: #ff6a3d;
}

.seo-grid article:nth-child(3) {
    --tone: #7c3aed;
    --tone-2: #0891b2;
}

.seo-grid span .ui-icon {
    width: 16px;
    height: 16px;
}

.seo-grid h3 {
    margin: 0 0 10px;
    font-size: 23px;
    line-height: 1.15;
}

.seo-grid p {
    margin: 0;
    color: var(--muted);
}

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

.sitemap-column {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(255, 255, 255, .86)),
        var(--glass);
    box-shadow: 0 18px 54px rgba(7, 19, 18, .08);
}

.sitemap-column h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.08;
}

.sitemap-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sitemap-list a,
.sitemap-grid a {
    transition: transform .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.sitemap-list a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--dark);
    font-weight: 850;
}

.sitemap-list a:hover {
    transform: translateX(4px);
    color: var(--accent);
}

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

.sitemap-grid a {
    display: grid;
    gap: 8px;
    min-height: 132px;
    align-content: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .76);
}

.sitemap-grid a:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .28);
    box-shadow: 0 18px 44px rgba(7, 19, 18, .1);
}

.sitemap-grid strong {
    color: var(--dark);
    line-height: 1.2;
}

.sitemap-grid span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.sitemap-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sitemap-grid-compact a {
    min-height: 112px;
}

.authority-section {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, .85fr);
    gap: 20px;
    align-items: stretch;
    padding-top: clamp(42px, 5vw, 72px);
    padding-bottom: clamp(42px, 5vw, 72px);
}

.authority-copy {
    position: relative;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: #fbfaf7;
    background:
        radial-gradient(700px circle at 82% 14%, rgba(37, 99, 235, .22), transparent 46%),
        radial-gradient(620px circle at 14% 90%, rgba(255, 106, 61, .16), transparent 42%),
        linear-gradient(135deg, #050505, #111827 62%, #172a4a);
    overflow: hidden;
}

.authority-copy::after {
    content: "";
    position: absolute;
    right: -64px;
    bottom: -84px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(147, 197, 253, .28);
    border-radius: 999px;
    background: rgba(147, 197, 253, .07);
}

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

.authority-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.04;
    letter-spacing: 0;
}

.authority-copy p:not(.eyebrow) {
    max-width: 760px;
    color: rgba(247, 251, 250, .72);
}

.authority-cards {
    display: grid;
    gap: 14px;
}

.authority-card {
    --tone: var(--accent);
    --tone-2: var(--accent-2);
    position: relative;
    display: grid;
    min-height: 190px;
    align-content: space-between;
    gap: 10px;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--tone) 18%, var(--line));
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tone) 11%, white), rgba(255, 255, 255, .92)),
        var(--glass);
    box-shadow: 0 18px 54px rgba(7, 19, 18, .08);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.authority-card::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tone) 12%, transparent);
}

.authority-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--tone) 42%, transparent);
    box-shadow: 0 28px 78px rgba(7, 19, 18, .14);
}

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

.authority-card-books {
    --tone: #d97706;
    --tone-2: #ff6a3d;
}

.authority-card-video {
    --tone: #dc2626;
    --tone-2: #7c3aed;
}

.authority-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--tone), var(--tone-2));
}

.authority-icon .ui-icon {
    width: 22px;
    height: 22px;
}

.authority-card span:not(.authority-icon) {
    color: color-mix(in srgb, var(--tone) 74%, var(--dark));
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.authority-card strong {
    max-width: 420px;
    color: var(--dark);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.03;
}

.authority-card small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

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

.query-card {
    --tone: var(--accent);
    --tone-2: var(--accent-2);
    position: relative;
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .84)),
        var(--glass);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

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

.query-card h2 {
    margin: 0 0 12px;
    font-size: 25px;
    line-height: 1.15;
}

.query-card p:not(.eyebrow) {
    color: var(--muted);
}

.query-card a {
    margin-top: 20px;
    color: var(--accent);
    font-weight: 800;
}

.query-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.query-strip a {
    padding: 12px 14px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 8px;
    color: #111827;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 32px rgba(17, 24, 39, .07);
    font-weight: 800;
    transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.query-strip a:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .34);
    background: #fff;
    box-shadow: 0 18px 42px rgba(37, 99, 235, .12);
}

.result-box,
.parent-link {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
}

.result-box p {
    margin: 0;
    color: var(--muted);
}

.parent-link {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.parent-link span {
    color: var(--muted);
    font-size: 14px;
}

.parent-link a {
    color: var(--accent);
    font-weight: 850;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .075), transparent 42%),
        rgba(255, 255, 255, .9);
    box-shadow: 0 14px 38px rgba(7, 19, 18, .06);
    overflow: hidden;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.faq-list details:hover,
.faq-list details[open] {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .25);
    box-shadow: 0 20px 52px rgba(7, 19, 18, .11);
}

.faq-list summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 20px 58px 20px 20px;
    font-weight: 850;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transform: translateY(-50%);
    transition: transform .22s ease;
}

.faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-list summary span {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: var(--accent);
    background: rgba(37, 99, 235, .09);
    font-size: 13px;
}

.faq-list p {
    margin: 0;
    padding: 0 20px 22px 72px;
    color: var(--muted);
}

.related-grid a,
.contact-grid a {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .84)),
        var(--glass);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.related-grid span,
.contact-grid span {
    color: var(--muted);
}

.contacts-hero {
    max-width: none;
}

.contacts-hero .contact-grid {
    margin-top: 34px;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
    gap: 28px;
    padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 72px);
    border-top: 1px solid var(--line);
    color: #fbfaf7;
    background:
        radial-gradient(760px circle at 82% 8%, rgba(37, 99, 235, .24), transparent 45%),
        radial-gradient(620px circle at 12% 90%, rgba(255, 106, 61, .16), transparent 42%),
        linear-gradient(135deg, #050505 0%, #111827 68%, #132136 100%);
}

.site-footer p {
    color: rgba(247, 251, 250, .68);
}

.footer-links {
    display: grid;
    gap: 12px;
    align-content: start;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: #fbfaf7;
    font-weight: 750;
    transition: transform .22s ease, color .22s ease, border-color .22s ease;
}

.footer-links a:hover {
    transform: translateX(5px);
    border-color: rgba(125, 232, 220, .34);
}

.contact-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 7px;
    border: 1px solid rgba(125, 232, 220, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    fill: #93c5fd;
    transition: transform .22s ease, fill .22s ease, background-color .22s ease, border-color .22s ease;
}

.footer-links a:hover .contact-icon {
    transform: scale(1.06) rotate(-3deg);
    border-color: rgba(255, 106, 61, .28);
    background: rgba(255, 106, 61, .12);
    fill: var(--accent-2);
}

.footer-links > a:nth-child(1) .contact-icon {
    fill: #2aabee;
}

.footer-links > a:nth-child(2) .contact-icon {
    fill: #2563eb;
}

.footer-links > a:nth-child(3) .contact-icon {
    fill: #16a34a;
}

.footer-links > a:nth-child(4) .contact-icon {
    fill: #ef4444;
}

.footer-links > a:nth-child(5) .contact-icon {
    fill: #d97706;
}

.footer-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.footer-docs a {
    padding: 8px 10px;
    border: 1px solid rgba(247, 251, 250, .12);
    border-radius: 999px;
    color: rgba(247, 251, 250, .76);
    background: rgba(255, 255, 255, .05);
    font-size: 12px;
    font-weight: 750;
}

.footer-docs a:hover {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(125, 232, 220, .34);
}

.effects-enhanced .reveal-target {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.effects-enhanced .reveal-target.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .hero-visual,
    .effects-enhanced .reveal-target {
        transform: none !important;
    }
}

@media (max-width: 980px) {
    .site-header {
        position: sticky;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .menu-toggle {
        display: grid;
        margin-left: auto;
    }

    .nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        color: var(--dark);
        background: rgba(255, 255, 255, .9);
        border: 0 solid var(--line);
        border-radius: 8px;
        box-shadow: none;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height .3s ease, opacity .22s ease, transform .22s ease, padding .22s ease, border-width .22s ease, box-shadow .22s ease;
    }

    .site-header.is-menu-open .nav {
        max-height: 360px;
        padding: 10px;
        border-width: 1px;
        box-shadow: 0 20px 52px rgba(7, 19, 18, .12);
        opacity: 1;
        transform: translateY(0);
    }

    .nav a {
        padding: 13px 14px;
        border-radius: 8px;
        font-weight: 750;
    }

    .nav a:hover {
        background: rgba(37, 99, 235, .08);
    }

    .nav a::after {
        display: none;
    }

    .header-action {
        order: 3;
    }

    .hero,
    .band,
    .section-head,
    .authority-section,
    .sitemap-section,
    .content-section,
    .service-hero-grid,
    .service-detail,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-visual {
        max-width: 620px;
    }

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

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

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

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

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

    .process-map article::after {
        display: none;
    }

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

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

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

@media (max-width: 680px) {
    .brand {
        min-width: 0;
    }

    .header-action {
        width: 100%;
        min-height: 46px;
        padding-inline: 14px;
    }

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

    .hero-stats,
    .services-grid,
    .services-grid-wide,
    .cluster-grid,
    .hub-grid,
    .portfolio-grid,
    .insight-grid,
    .process-map,
    .seo-grid,
    .sitemap-grid,
    .sitemap-grid-compact,
    .query-grid,
    .related-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 240px;
    }

    .authority-section {
        padding-top: 32px;
    }

    .authority-card {
        min-height: 170px;
    }

    .signal-board div {
        grid-template-columns: 1fr;
    }

    .signal-board div::after {
        left: 12px;
    }

    .cta-panel {
        align-items: stretch;
        flex-direction: column;
    }
}
