.sp-body { margin: 0; font: 16px/1.6 "Golos Text", sans-serif; background: #f4f7fb; }
.sp {
    --sp-ink: #0f1830;
    --sp-blue: #12408a;
    --sp-pale: #e4efff;
    --sp-line: #cad9ee;
    --sp-muted: #495d76;
    color: var(--sp-ink);
}
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp :focus-visible { outline: 3px solid #559df5; outline-offset: 4px; }
.sp-wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.sp h1, .sp h2, .sp h3 {
    font-family: "Manrope", "Golos Text", sans-serif;
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
    margin: 0;
}
.sp h1 { font-size: clamp(2.25rem, 5.5vw, 4.75rem); max-width: 15ch; }
.sp h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
.sp h3 { font-size: clamp(1.22rem, 2.25vw, 1.7rem); }

.sp-hero {
    padding: 24px 0 clamp(40px, 7vw, 88px);
    color: white;
    background-color: #101f3b;
    background-image: linear-gradient(115deg, #0f1830 8%, transparent 72%),
        repeating-linear-gradient(135deg, #6b9de614 0 1px, transparent 1px 44px);
}
.sp-crumbs { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: .85rem; color: #cbdcf3; }
.sp-crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: clamp(24px, 6vw, 80px); align-items: center; margin-top: clamp(28px, 5vw, 66px); }
.sp-kicker { color: var(--sp-blue); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.sp-hero .sp-kicker { color: #a7cdff; }
.sp-lead { max-width: 52ch; color: #d6e6fa; margin: 18px 0 26px; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.sp-role { font-size: 1.1rem; color: #a7cdff; font-weight: 700; margin: 14px 0 0; }
.sp-hero-index { background: #132849; border: 1px solid #6685af; border-top: 3px solid #8abfff; padding: clamp(16px, 3vw, 28px); }
.sp-hero-index a { display: grid; grid-template-columns: 2ch 1fr auto; gap: 12px; align-items: center; color: white; text-decoration: none; padding: 12px 4px; border-top: 1px solid #6580a363; }
.sp-hero-index a span { color: #a7cdff; font-size: .8rem; font-variant-numeric: tabular-nums; }
.sp-hero-index a:hover { background: #203b61; }

.sp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 5px; padding: 10px 18px; background: var(--sp-blue); color: white; font-weight: 700; text-decoration: none; }
.sp-button:hover { background: #0e2f63; color: white; }
.sp-button-light { color: var(--sp-blue); background: white; }
.sp-button-light:hover { background: var(--sp-pale); color: var(--sp-blue); }
.sp-list, .sp-detail { padding-block: clamp(32px, 6vw, 72px); }
.sp-list { scroll-margin-top: 20px; }
.sp-list-intro { color: var(--sp-muted); margin: 12px 0 24px; }
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sp-card { display: flex; flex-direction: column; border: 1px solid var(--sp-line); border-radius: 8px; background: white; overflow-wrap: anywhere; }
.sp-card:focus-within, .sp-card:hover { border-color: #5d8fcf; }
.sp-card-header {
    display: grid;
    grid-template-columns: clamp(74px, 7vw, 94px) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 16px;
    border-radius: 7px 7px 0 0;
    border-bottom: 1px solid var(--sp-line);
    background: repeating-linear-gradient(135deg, transparent 0 24px, #8abfff23 24px 25px) #eaf3ff;
}
.sp-card-header .sp-portrait, .sp-card-header .sp-emblem {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 6;
    border-radius: 6px;
    border: 1px solid var(--sp-line);
}
.sp-card-header .sp-emblem { padding: 8px; }
.sp-card-header .sp-kicker { font-size: .66rem; margin-bottom: 6px; }
.sp-card-header h3 { font-size: clamp(1.1rem, 1.65vw, 1.4rem); letter-spacing: -.02em; }
.sp-card h3 a { color: inherit; text-decoration: none; }
.sp-card h3 a:hover, .sp-card h3 a:focus-visible { color: var(--sp-blue); text-decoration: underline; text-underline-offset: 3px; }
.sp-card-role { margin: 7px 0 0; font-size: .82rem; line-height: 1.45; color: var(--sp-muted); }
.sp-card-body { flex: 1; display: flex; flex-direction: column; gap: 13px; padding: 16px; }
.sp-card-intro { margin: 0; color: var(--sp-muted); font-size: .9rem; }
.sp-card-projects { border-top: 1px solid var(--sp-line); padding-top: 12px; }
.sp-card-projects .sp-kicker { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.sp-card-projects .sp-kicker span { background: var(--sp-pale); padding: 1px 6px; border-radius: 8px; }
.sp-card-projects ul { list-style: none; padding: 0; margin: 0; }
.sp-card-projects li + li { border-top: 1px solid #e1eafa; }
.sp-card-projects a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 44px; padding-block: 7px; color: var(--sp-blue); font-size: .83rem; line-height: 1.4; text-decoration: none; }
.sp-card-projects a:hover { text-decoration: underline; }
.sp-project-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #12408a; background: #e7f0ff; border-radius: 5px; }
.sp-project-green { background: #e3f3ed; color: #1a624c; }
.sp-project-violet { background: #eeeafd; color: #493888; }
.sp-project-amber { background: #fcf0e3; color: #894217; }
.sp-card-project-hidden { display: none !important; }
.sp-card-projects.is-expanded .sp-card-project-hidden { display: list-item !important; }
.sp-card-projects-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 6px 12px;
    background: #e4edf8;
    color: var(--sp-blue);
    border: 1px solid #bfd5f2;
    border-radius: 5px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.3;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sp-card-projects-toggle:hover {
    background: #d4e4f7;
    border-color: #9cbde4;
}
.sp-card-projects-toggle:focus-visible {
    outline: 2px solid var(--sp-accent);
    outline-offset: 2px;
}
.sp-card-more { display: inline-flex; align-self: start; align-items: center; gap: 8px; min-height: 44px; color: var(--sp-blue); margin-top: auto; font-weight: 700; font-size: .9rem; text-underline-offset: 3px; }
.sp-team-metrics { background: #132849; border: 1px solid #6685af; border-top: 3px solid #8abfff; border-radius: 6px; padding: clamp(16px, 3vw, 28px); }
.sp-team-metrics dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.sp-team-metrics dl div { display: flex; flex-direction: column-reverse; border-top: 1px solid #6580a3; padding-top: 10px; }
.sp-team-metrics dd { margin: 0; font: 800 clamp(2rem, 5vw, 3.4rem)/1.15 "Manrope", sans-serif; }
.sp-team-metrics dt { margin-top: 6px; color: #d6e6fa; font-size: .82rem; }

@supports (grid-template-rows: subgrid) {
    @media (min-width: 621px) {
        .sp-card {
            display: grid;
            grid-row: span 2;
            grid-template-rows: subgrid;
            row-gap: 0;
        }
    }
}

@media (max-width: 1050px) { .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }

.sp-emblem, .sp-portrait { width: 100%; height: 100%; min-width: 0; border-radius: 6px 0 0 6px; }
.sp-portrait { display: block; object-fit: cover; object-position: center 28%; }
.sp-emblem {
    display: grid;
    align-content: space-between;
    justify-items: start;
    gap: 18px;
    padding: clamp(14px, 2vw, 24px);
    color: var(--sp-blue);
    background: repeating-linear-gradient(0deg, #b7cdea59 0 1px, transparent 1px 22px) #e6effd;
}
.sp-emblem span { font-size: clamp(1.65rem, 3.3vw, 3rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.sp-emblem svg { max-width: 100%; }
.sp-hero-grid > .sp-emblem, .sp-hero-grid > .sp-portrait { width: min(100%, 340px); height: auto; aspect-ratio: 5 / 6; justify-self: end; border: 1px solid #6685af; border-radius: 7px; }
.sp-hero-grid > .sp-emblem { color: #c3ddff; background: repeating-linear-gradient(0deg, #7da6df33 0 1px, transparent 1px 28px) #172c50; }

.sp-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sp-tags li { border: 1px solid var(--sp-line); background: #f2f7fe; border-radius: 4px; color: var(--sp-blue); padding: 4px 8px; font-size: .78rem; }
.sp-detail { display: grid; grid-template-columns: minmax(200px, 285px) minmax(0, 1fr); align-items: start; gap: clamp(22px, 6vw, 72px); }
.sp-panel { background: white; border: 1px solid var(--sp-line); border-top: 3px solid var(--sp-blue); padding: 20px; border-radius: 5px; }
.sp-panel h2 { font-size: 1.25rem; margin-bottom: 14px; }
.sp-panel a { display: inline-block; margin-top: 18px; color: var(--sp-blue); }
.sp-section + .sp-section { border-top: 1px solid var(--sp-line); margin-top: 26px; padding-top: 26px; }
.sp-section p, .sp-section li { color: var(--sp-muted); }
.sp-section li + li { margin-top: 8px; }
.sp-links { padding: 0; list-style: none; }
.sp-links a { color: var(--sp-blue); text-underline-offset: 4px; font-weight: 700; }
.sp-links p { margin: 5px 0 14px; }
.sp-contact { background: var(--sp-pale); padding: clamp(20px, 4vw, 42px); border-radius: 7px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 54px; }
.sp-contact p { margin: 8px 0 0; color: var(--sp-muted); }

@media (max-width: 800px) {
    .sp-wrap { width: calc(100% - 32px); }
    .sp-hero-grid, .sp-detail { grid-template-columns: minmax(0, 1fr); }
    .sp-hero-grid > .sp-emblem { display: none; }
    .sp-hero-grid > .sp-portrait { justify-self: start; width: min(100%, 250px); }
}

.sp-profile .sp-hero { padding-bottom: clamp(28px, 5vw, 62px); }
.sp-profile-hero {
    display: grid;
    grid-template-columns: minmax(175px, 250px) minmax(0, 1fr);
    grid-template-areas: "photo identity" "photo summary";
    align-items: start;
    column-gap: clamp(24px, 5vw, 66px);
    row-gap: 14px;
    max-width: 1080px;
    margin-top: clamp(24px, 4vw, 48px);
}
.sp-profile-hero > :is(.sp-portrait, .sp-emblem) {
    grid-area: photo;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 6;
    border: 1px solid #7697c1;
    border-radius: 8px;
}
.sp-identity { grid-area: identity; align-self: end; }
.sp-profile h1 { max-width: none; font-size: clamp(2.25rem, 4.2vw, 3.7rem); }
.sp-profile .sp-role { margin-top: 10px; }
.sp-profile-summary { grid-area: summary; }
.sp-profile-summary .sp-lead { max-width: 66ch; margin: 0 0 18px; }
.sp-profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.sp-hero-link { display: inline-flex; align-items: center; min-height: 44px; color: #d6e6fa; text-underline-offset: 4px; }
.sp-profile .sp-crumbs [aria-current] { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 620px) {
    .sp-profile-hero {
        grid-template-columns: minmax(74px, 27%) minmax(0, 1fr);
        grid-template-areas: "photo identity" "summary summary";
        column-gap: 14px;
    }
    .sp-identity { align-self: center; }
    .sp-identity .sp-kicker { font-size: .66rem; margin-bottom: 6px; }
    .sp-profile h1 { font-size: clamp(1.35rem, 5.8vw, 2.2rem); }
    .sp-profile .sp-role { margin-top: 6px; font-size: .9rem; line-height: 1.4; }
    .sp-profile-summary .sp-lead { margin-bottom: 12px; }
}

.sp-nav-shell { background: white; border-bottom: 1px solid var(--sp-line); }
.sp-profile-nav { display: flex; flex-wrap: wrap; gap: 0 22px; padding-block: 5px; }
.sp-profile-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--sp-blue); text-decoration: underline; text-underline-offset: 4px; font-size: .9rem; font-weight: 700; }
.sp-profile-nav a span { padding: 0 7px; border-radius: 10px; background: var(--sp-pale); font-size: .75rem; }
.sp-profile .sp-detail { grid-template-columns: minmax(0, 240px) minmax(0, 840px); gap: clamp(22px, 5vw, 64px); padding-block: clamp(24px, 4.5vw, 56px); }
.sp-profile .sp-section { scroll-margin-top: 24px; overflow-wrap: anywhere; }
.sp-profile .sp-section h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
.sp-profile .sp-section > p:not(.sp-kicker) { max-width: 70ch; margin: 14px 0 0; line-height: 1.68; }
.sp-profile .sp-panel { padding: 16px; }
.sp-profile .sp-panel a, .sp-section-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--sp-blue); font-weight: 700; text-underline-offset: 4px; }
.sp-profile .sp-panel a { margin-top: 10px; }
.sp-tasks { list-style: none; display: grid; gap: 8px; margin: 16px 0 0; padding: 0; }
.sp-tasks li { background: white; border-inline-start: 3px solid #8abfff; padding: 11px 14px; }
.sp-section .sp-tasks li + li { margin: 0; }
.sp-case-grid { display: grid; gap: 16px; margin: 18px 0 10px; }
.sp-case-card { background: white; border: 1px solid var(--sp-line); border-radius: 8px; }
.sp-case-card:hover, .sp-case-card:focus-within { border-color: #5d8fcf; }
.sp-case-hidden { display: none !important; }
.sp-case-grid.is-expanded .sp-case-hidden { display: block !important; }
.sp-profile-cases-action {
    margin-top: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}
.sp-profile-cases-toggle {
    cursor: pointer;
    font-size: .95rem;
    padding: 12px 24px;
    border: 1px solid var(--sp-line);
    border-radius: 6px;
    font-weight: 700;
}
.sp-case-visual {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    padding: 12px clamp(14px, 2.4vw, 22px);
    border-radius: 7px 7px 0 0;
    border-bottom: 1px solid var(--sp-line);
    background-image: repeating-linear-gradient(135deg, transparent 0 24px, #5276ab18 24px 25px);
}
.sp-case-visual.sp-project-blue { background-color: #e7f0ff; color: #12408a; }
.sp-case-visual svg { width: 64px; height: 64px; padding: 5px; border: 1px solid currentColor; border-radius: 8px; background: #ffffffa8; }
.sp-case-context > a { color: inherit; font-size: .88rem; font-weight: 700; text-underline-offset: 3px; }
.sp-case-context p { color: inherit; margin: 5px 0 0; font-size: .88rem; }
.sp-case-context p span { display: block; font-size: .72rem; }
.sp-case-content { padding: clamp(14px, 2.5vw, 22px); }
.sp-case-content h3 { font-size: clamp(1.12rem, 2.3vw, 1.43rem); }
.sp-case-content h3 a { color: var(--sp-ink); text-decoration: none; }
.sp-case-content h3 a:hover, .sp-case-content h3 a:focus-visible { color: var(--sp-blue); text-decoration: underline; text-underline-offset: 3px; }
.sp-case-content > p { margin: 9px 0 12px; }
.sp-case-result { margin: 0 0 12px; padding: 9px 12px; background: #eef5ff; border-inline-start: 3px solid #79a9e8; }
.sp-case-result dt { font-size: .75rem; color: var(--sp-blue); font-weight: 700; }
.sp-case-result dd { margin: 3px 0 0; font-size: .9rem; line-height: 1.45; }
.sp-case-colleagues > p { margin: 0 0 4px; font-size: .8rem; }
.sp-case-colleagues ul, .sp-case-actions { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.sp-case-colleagues ul { list-style: none; padding: 0; margin: 0 0 6px; }
.sp-section .sp-case-colleagues li + li { margin: 0; }
.sp-case-colleagues a, .sp-case-actions a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sp-blue); text-underline-offset: 3px; font-size: .85rem; }
.sp-case-actions a.sp-case-more { padding-inline: 12px; border-radius: 5px; background: var(--sp-blue); color: white; font-weight: 700; text-decoration: none; }
.sp-case-actions a.sp-case-more:hover { background: #0e2f63; }
.sp-profile .sp-links li + li { margin-top: 0; }
.sp-profile .sp-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-top: 1px solid var(--sp-line); padding-block: 9px; }

@media (max-width: 800px) {
    .sp-profile .sp-detail { grid-template-columns: minmax(0, 1fr); }
    .sp-profile-nav { gap: 0 16px; }
}

@media (max-width: 620px) {
    .sp-profile-actions { gap: 4px 10px; }
    .sp-profile-actions .sp-button { padding-inline: 12px; }
    .sp-profile-actions .sp-hero-link { font-size: .9rem; }
}
@media (max-width: 360px) {
    .sp-profile-nav { display: grid; grid-template-columns: 1fr 1fr; }
}
