:root {
  color-scheme: light;
  --page: #f5f6fa;
  --surface: rgba(255, 255, 255, .72);
  --solid: #fff;
  --text: #1a1c27;
  --muted: #616978;
  --line: rgba(26, 28, 39, .16);
  --accent: #7140dd;
  --accent-fill: #7140dd;
  --teal: #007d70;
  --tint: rgba(139, 92, 246, .055);
  --header: #f5f6fa;
  --gutter: clamp(20px, 4vw, 48px);
  --measure: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0a0b10;
  --surface: rgba(21, 23, 32, .76);
  --solid: #151720;
  --text: #f6f7fb;
  --muted: #a7acba;
  --line: rgba(246, 247, 251, .17);
  --accent: #b29aff;
  --accent-fill: #7140dd;
  --teal: #45d6b4;
  --tint: rgba(139, 92, 246, .065);
  --header: #0a0b10;
}

/* A system theme also applies when scripting or preference storage is unavailable. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #0a0b10;
    --surface: rgba(21, 23, 32, .76);
    --solid: #151720;
    --text: #f6f7fb;
    --muted: #a7acba;
    --line: rgba(246, 247, 251, .17);
    --accent: #b29aff;
    --teal: #45d6b4;
    --tint: rgba(139, 92, 246, .065);
    --header: #0a0b10;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 2% 0, rgba(139, 92, 246, .085), transparent 32rem),
    radial-gradient(ellipse at 98% 8%, rgba(69, 214, 180, .06), transparent 40rem), var(--page);
  color: var(--text);
  font-family: InterVariable, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #d9cafa; color: #21172f; }
a { color: inherit; text-underline-offset: .23em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
figure, p, h1, h2, h3, h4, dl { margin: 0; }
ul, ol { margin: 0; padding-left: 1.3em; }
h1, h2, h3, h4 { line-height: 1.16; font-weight: 740; }
h1 { letter-spacing: -.052em; }
h2 { font-size: clamp(28px, 3.3vw, 42px); letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 22px; letter-spacing: -.025em; }
h4 { font-size: 17px; }
p + p { margin-top: 16px; }
main div, section, article, aside, nav { min-width: 0; }
.page-shell, .header-inner, .footer-inner { width: min(var(--measure), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.icon { flex: 0 0 auto; width: 20px; height: 20px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: var(--gutter); padding: 12px 20px; background: var(--solid); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; min-height: 76px; gap: 28px; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 26px; margin-right: auto; }
.site-nav a, .back-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav a { padding-block: 12px; }
.header-tools { display: flex; align-items: center; margin-left: auto; gap: 10px; flex-shrink: 0; }
.header-contact { padding: 8px 15px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; }
.language-link, .icon-button { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: transparent; text-decoration: none; font-size: 13px; font-weight: 650; }
.icon-button:hover, .language-link:hover, .header-contact:hover { background: var(--tint); border-color: var(--accent); }
[data-menu-toggle], [data-theme-toggle], [data-print], [data-cookie-settings] { display: none; }
.js [data-theme-toggle], .js [data-print] { display: inline-flex; }
.js [data-cookie-settings] { display: inline-block; }
.back-link { flex-shrink: 0; padding-block: 12px; }
.detail-page .site-nav { margin-left: auto; margin-right: 0; }
.detail-page .header-tools { margin-left: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .85fr); align-items: center; gap: 52px 72px; padding-top: 72px; }
.hero-context { margin-bottom: 22px; color: var(--teal); font-size: 13px; font-weight: 640; letter-spacing: .015em; }
.hero h1 { font-size: clamp(48px, 5.5vw, 78px); line-height: 1.04; }
.hero-role { margin-top: 26px; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.22; letter-spacing: -.025em; font-weight: 660; max-width: 24ch; }
.hero-description { margin-top: 22px; max-width: 57ch; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; min-height: 48px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 14px; font-weight: 640; line-height: 1.5; text-align: center; text-decoration: none; transition: background-color .16s, border-color .16s; }
.button:hover { background: var(--tint); border-color: var(--accent); }
.button--primary { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.button--primary:hover { background: #6032c5; border-color: #6032c5; color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 620; }
.text-link .icon { width: 15px; height: 15px; }
.hero-case-link { margin-top: 20px; }
.hero-portrait { align-self: start; }
.hero-portrait picture { display: block; background: var(--surface); border: 1px solid var(--line); }
.hero-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 70% center; }
.hero-portrait figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.hero-proof { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 22px; }
.hero-proof p { max-width: 82ch; font-size: 14px; color: var(--muted); }
.hero-proof strong { color: var(--text); font-weight: 600; }
.hero-proof a { flex-shrink: 0; }
.section { padding-block: 80px; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 38px; align-items: end; }
.section-heading p { color: var(--muted); max-width: 53ch; }
.project { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: 52px; padding: 38px; border: 1px solid var(--line); background: var(--surface); }
.project + .project { margin-top: 20px; }
.project--featured { border-top: 3px solid var(--accent); background: linear-gradient(115deg, var(--tint), transparent 75%), var(--surface); }
.project-field { color: var(--teal); font-size: 12px; font-weight: 620; }
.project-identity h3 { margin-top: 20px; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; }
.project-subtitle { margin-top: 12px; font-size: 20px; line-height: 1.4; letter-spacing: -.02em; max-width: 28ch; }
.project-tech { margin-top: 26px; color: var(--muted); font-size: 12px; }
.project-content > p { font-size: 17px; }
.project-role { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.project-role h4 { font-size: 13px; font-weight: 660; }
.project-role p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.project-links { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.tools-disclosure { margin-top: 24px; }
summary { padding-block: 18px; font-weight: 610; }
.tools-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; }
.tools-disclosure > summary::-webkit-details-marker { display: none; }
.tools-disclosure > summary span { font-size: 24px; font-weight: 400; color: var(--accent); }
.tools-disclosure[open] > summary span { transform: rotate(45deg); }
.tool-list { list-style: none; padding: 0; }
.tool-list li { border-top: 1px solid var(--line); }
.tool-list a { display: grid; grid-template-columns: .7fr 1fr 20px; gap: 24px; padding-block: 18px; text-decoration: none; align-items: center; }
.tool-list strong { font-size: 15px; font-weight: 600; }
.tool-list span { color: var(--muted); font-size: 14px; }
.tool-list .icon { width: 15px; height: 15px; }
.anchor-alias { position: absolute; }
.service-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; padding-block: 32px; border-top: 1px solid var(--line); }
.service-row h3 { margin-bottom: 12px; }
.service-row p { color: var(--muted); }
.service-delivery { border-left: 2px solid var(--teal); padding-left: 18px; }
.service-delivery strong { font-weight: 650; color: var(--text); }
.section-note { padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); max-width: 85ch; }
.background-section { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.background-copy > p { margin-top: 22px; color: var(--muted); }
.background-copy > h3 { margin-top: 36px; }
.stack-list { margin-top: 20px; }
.stack-list > div { display: grid; grid-template-columns: 115px 1fr; gap: 18px; padding-block: 16px; border-top: 1px solid var(--line); font-size: 14px; }
dt { font-weight: 610; }
dd { margin: 0; color: var(--muted); }
.experience > h3 { margin-bottom: 26px; }
.experience-list { padding: 0; list-style: none; margin-bottom: 26px; }
.experience-list > li { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding-block: 20px; border-top: 1px solid var(--line); }
.experience-date { color: var(--teal); font-size: 13px; font-weight: 640; }
.experience-list h4 { line-height: 1.4; }
.experience-list li div > p { color: var(--muted); margin-top: 7px; font-size: 14px; }
.small-note { font-size: 12px; line-height: 1.6; color: var(--muted); }
.experience > .small-note { margin-top: 7px; }
.hiring { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; border: 1px solid var(--line); padding: 40px; background: var(--tint); }
.section-label { margin-bottom: 16px; color: var(--teal); font-size: 13px; font-weight: 650; }
.hiring h2 { font-size: clamp(28px, 3vw, 38px); }
.hiring h2 + p { margin-top: 22px; color: var(--muted); }
.facts-list > div { padding-block: 14px; border-top: 1px solid var(--line); }
.facts-list dt { font-size: 13px; margin-bottom: 4px; }
.facts-list dd { font-size: 15px; overflow-wrap: anywhere; }
.facts-list > div:first-child { padding-top: 0; border-top: 0; }
.hiring-actions { margin-block: 24px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.community { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; }
.hiring + .community { border-top: 0; }
.community h2 + p { margin-top: 22px; color: var(--muted); }
.reading-links { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 24px; }
.platforms-disclosure { margin-top: 28px; border-top: 1px solid var(--line); }
.platforms-disclosure summary { font-size: 14px; }
.platform-list { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; }
.platform-list a { padding-block: 6px; }
.community-proof { border-left: 1px solid var(--line); padding-left: 38px; }
.community-proof > strong { font-size: clamp(42px, 5vw, 62px); font-weight: 690; line-height: 1.2; letter-spacing: -.04em; }
.community-proof > p { margin-top: 12px; }
.community-proof > a { margin-top: 22px; }
.profile-note { padding: 28px; border-left: 2px solid var(--accent); background: var(--surface); }
.profile-note > p:first-child { font-weight: 650; }
.profile-note > p + p { color: var(--muted); }
.profile-note > a { margin-top: 20px; }
.contact-section { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; }
.contact-section h2 { max-width: 20ch; }
.contact-section h2 + p { margin-top: 24px; color: var(--muted); max-width: 55ch; }
.contact-options { align-self: center; }
.contact-options > .button { margin: 0 8px 16px 0; }
.contact-options p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.contact-email { font-size: 21px; color: var(--text); overflow-wrap: anywhere; }
.max-icon { display: inline-grid; width: 20px; height: 20px; }
.max-icon img { grid-area: 1 / 1; width: 20px; height: 20px; object-fit: contain; }
.max-icon--light { visibility: hidden; }
[data-theme="dark"] .max-icon--light { visibility: visible; }
[data-theme="dark"] .max-icon--dark { visibility: hidden; }
.site-footer { border-top: 1px solid var(--line); padding-block: 26px; font-size: 12px; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 26px; }
.footer-inner > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.footer-inner button { padding: 6px 0; background: none; border: 0; font-size: inherit; text-decoration: underline; text-underline-offset: .2em; }
.cookie-banner { position: fixed; right: 20px; bottom: 20px; width: min(460px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow: auto; z-index: 40; padding: 22px; border: 1px solid var(--line); background: var(--solid); box-shadow: 0 12px 48px rgba(0, 0, 0, .14); }
.cookie-banner p { font-size: 13px; line-height: 1.6; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie-actions .button { padding: 10px 14px; min-height: 44px; font-size: 12px; }

/* Case studies and the printable résumé share the home page's type and spacing. */
.document-page { padding-top: 56px; padding-bottom: 64px; }
.document-header { padding-bottom: 38px; border-bottom: 1px solid var(--line); max-width: 960px; }
.document-header h1 { font-size: clamp(34px, 4.5vw, 62px); line-height: 1.12; text-wrap: balance; }
.document-lead { max-width: 72ch; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.document-header .button { margin-top: 24px; }
.document-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; padding-block: 42px; }
.document-body { max-width: 74ch; }
.article-section + .article-section { margin-top: 42px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-section h2 { font-size: 28px; margin-bottom: 20px; }
.article-section h3 { font-size: 20px; margin-top: 26px; margin-bottom: 12px; }
.article-section p { color: var(--muted); }
.article-section .facts-list { margin-top: 22px; }
.content-list { margin-block: 18px; color: var(--muted); }
.content-list li { padding-left: 5px; margin-block: 10px; }
.content-list li::marker { color: var(--teal); }
.document-aside { align-self: start; border-left: 1px solid var(--line); padding-left: 26px; }
.document-aside h2 { font-size: 20px; margin-bottom: 24px; }
.document-aside .button { margin-top: 12px; }
.evidence-note { margin-top: 26px; padding-left: 16px; border-left: 2px solid var(--teal); color: var(--muted); font-size: 13px; }
.document-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.document-footer p { flex: 1 0 100%; color: var(--muted); }

@media (max-width: 1050px) {
  .header-inner { gap: 16px; }
  .site-nav { gap: 6px 17px; }
  .site-nav a { font-size: 13px; }
  .hero { gap: 38px; padding-top: 48px; grid-template-columns: 1.55fr .85fr; }
  .hero h1 { font-size: 60px; }
  .hero-role { font-size: 29px; }
  .project { gap: 32px; padding: 30px; }
  .section-heading, .background-section, .community, .contact-section { gap: 36px; }
  .service-row { gap: 40px; }
  .hiring { padding: 32px; gap: 36px; }
  .document-grid { gap: 40px; grid-template-columns: minmax(0, 1fr) 240px; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 86px; }
  .header-inner { min-height: 68px; flex-wrap: wrap; position: relative; gap: 0 16px; }
  .header-tools { gap: 8px; }
  .site-nav { width: 100%; order: 2; padding-block: 12px; gap: 6px 20px; }
  .site-nav a { font-size: 14px; }
  .detail-page .site-nav { margin: 0; }
  .detail-page .header-tools { margin-left: auto; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 18px; background: var(--solid); border: 1px solid var(--line); box-shadow: 0 14px 24px rgba(0, 0, 0, .08); }
  .js .site-header.is-open .site-nav { display: flex; flex-direction: column; align-items: stretch; }
  .js [data-menu-toggle] { display: inline-flex; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 38px; }
  .hero-portrait { display: none; }
  .hero-context { margin-bottom: 18px; font-size: 12px; }
  .hero h1 { font-size: clamp(43px, 7.5vw, 64px); }
  .hero-role { margin-top: 20px; font-size: clamp(24px, 4vw, 32px); max-width: 26ch; }
  .hero-description { margin-top: 18px; max-width: 65ch; font-size: 16px; }
  .hero-actions { margin-top: 24px; }
  .hero-proof { gap: 16px; align-items: flex-start; }
  .hero-proof p { font-size: 13px; }
  .section { padding-block: 56px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .section-heading p { max-width: 68ch; font-size: 15px; }
  .project { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
  .project-identity h3 { font-size: 42px; margin-top: 14px; }
  .project-subtitle { max-width: 42ch; }
  .project-tech { margin-top: 16px; }
  .project-content > p { font-size: 16px; }
  .project-role { margin-top: 20px; padding-top: 18px; }
  .service-row { gap: 28px; grid-template-columns: .9fr 1.1fr; }
  .service-row p { font-size: 15px; }
  .background-section { grid-template-columns: 1fr; gap: 48px; }
  .stack-list > div { grid-template-columns: 125px 1fr; }
  .experience-list > li { grid-template-columns: 100px 1fr; }
  .hiring { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .community, .contact-section { grid-template-columns: 1fr; gap: 30px; }
  .community-proof { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .community-proof .small-note { max-width: 65ch; }
  .profile-note { padding: 22px; }
  .contact-section h2 { max-width: 28ch; }
  .document-page { padding-top: 36px; }
  .document-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 30px; }
  .document-aside { padding: 28px; border: 1px solid var(--line); }
  .document-lead { font-size: 17px; }
  .article-section h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .header-tools { gap: 6px; }
  .header-contact { padding-inline: 12px; }
  .hero h1 { font-size: clamp(40px, 10.5vw, 49px); }
  .hero { padding-top: 30px; }
  .hero-proof { flex-direction: column; gap: 10px; padding-block: 18px; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { font-size: 13px; padding-inline: 14px; }
  .hero-context { max-width: 34ch; }
  .hero-case-link { margin-top: 16px; }
  .project { padding: 23px; }
  .project-subtitle { font-size: 19px; }
  .project-links { gap: 18px; }
  .service-row { grid-template-columns: 1fr; gap: 20px; }
  .tool-list a { grid-template-columns: 1fr 20px; gap: 6px 16px; }
  .tool-list strong { grid-column: 1; }
  .tool-list span { grid-column: 1; }
  .tool-list .icon { grid-column: 2; grid-row: 1 / 3; }
  .stack-list > div { grid-template-columns: 1fr; gap: 6px; }
  .experience-list > li { grid-template-columns: 1fr; gap: 9px; }
  .hiring { padding: 24px; }
  .contact-email { font-size: 20px; }
  .cookie-banner { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px; }
  .cookie-actions { gap: 8px; }
  .cookie-actions .button { padding-inline: 12px; }
  .footer-inner { align-items: flex-start; }
  .document-aside { padding: 22px; }
  .document-header h1 { font-size: 36px; }
  .document-lead { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  @page { size: A4; margin: 16mm; }
  :root, :root[data-theme] { --text: #000; --muted: #333; --line: #bbb; --page: #fff; --surface: #fff; --accent: #000; --teal: #333; }
  body { background: #fff; color: #000; font-size: 10pt; line-height: 1.5; }
  .site-header, .site-footer, .skip-link, .cookie-banner, [data-print], .document-footer { display: none !important; }
  .page-shell { width: 100%; margin: 0; padding: 0; }
  .document-header { padding-bottom: 16px; }
  .document-header h1 { font-size: 28pt; }
  .document-lead { font-size: 11pt; margin-top: 12px; }
  .document-grid { display: block; padding-block: 20px; }
  .document-body { max-width: none; }
  .document-aside { padding: 16px 0 0; border: 0; border-top: 1px solid #bbb; margin-top: 24px; }
  .article-section + .article-section { margin-top: 20px; padding-top: 16px; }
  .article-section h2, .document-aside h2 { font-size: 16pt; margin-bottom: 12px; }
  .article-section h3 { font-size: 12pt; margin-top: 16px; margin-bottom: 8px; }
  h1, h2, h3, h4, dt { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  .facts-list > div { break-inside: avoid; padding-block: 7px; }
  .facts-list dt, .facts-list dd { font-size: 10pt; }
  .content-list { margin-block: 10px; }
  .content-list li { margin-block: 5px; }
  .evidence-note { display: none; }
  a { color: #000; }
  .text-link { font-size: 10pt; }
  .document-body a[href^="/"]::after { content: " (dulesov.ru" attr(href) ")"; font-weight: 400; font-size: 9pt; }
}
