/* denis.sukhov.me — the market.zool.ru look: Golos Text, a scroll-driven page palette,
   coal bands with saturated cards. Always light.
   Contrast (WCAG), computed: --ink ≥ 10.5:1 and --muted ≥ 4.98:1 and --link ≥ 5.21:1 at every
   point of the page palette (STOPS in app.js); on coal: --coal-ink 15.8:1, --coal-muted 7.2:1,
   --amber 8.4:1; cards: --warm-ink on coral 5.51 / amber 8.19 / mint 6.68, white on violet 4.72;
   white on --brand 4.63:1 (buttons only). */
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/a/fonts/golos-text-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/a/fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --page: #F7F8F7; --field: #FFFFFF; --rule: #DCE3E1;
  --ink: #0F1A1C; --muted: #43504F; --link: #13525B;
  --brand: #20808d; --brand-dark: #1a6b76;
  --coal: #17181B; --coal-2: #202227; --coal-ink: #F4F1EC; --coal-muted: #A9A4A0; --coal-rule: #2E3035;
  --warm-ink: #1C1A17; --coral: #F2643B; --amber: #F0A227; --violet: #7B5CE0; --mint: #2BB3A3;
  --theme-page: var(--page);
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
/* Language: every text node exists in both languages; the root attribute picks one. */
html[data-lang="ru"] .en, html[data-lang="en"] .ru { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { scroll-padding-top: 80px; }
body { background: var(--theme-page); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.coal :focus-visible { outline-color: var(--amber); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 16px; }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 900; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 16px; }
.sub { font-size: 19px; color: var(--muted); max-width: 720px; margin: 0; }
.sec { padding: 104px 0; position: relative; }
.sec-head { margin-bottom: 48px; padding-left: 22px; border-left: 3px solid var(--amber); }
.coal { background: var(--coal); color: var(--coal-ink); }
.coal .sub { color: var(--coal-muted); }
.coal .sec-head { border-left-color: var(--coral); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px;
  font: inherit; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.top .btn { white-space: nowrap; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #24343A; }
.btn-amber { background: var(--amber); color: var(--warm-ink); }
.btn-amber:hover { background: #F6B54F; }
.btn-line { background: transparent; color: var(--coal-ink); border-color: #4A4D55; }
.btn-line:hover { border-color: var(--coal-ink); }
a[data-social][href=""] { display: none !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(15, 26, 28, .08); }
.top .wrap { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mono { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--coal); color: var(--amber); font-size: 13px; font-weight: 900; letter-spacing: .02em; }
.anchors { display: flex; gap: 22px; }
.anchors a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.anchors a:hover { color: var(--link); }
.spacer { flex: 1; }
.lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--field); }
.lang a { font-size: 13px; font-weight: 700; padding: 6px 10px; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--ink); }
html[data-lang="ru"] .lang [data-l="ru"], html[data-lang="en"] .lang [data-l="en"] { background: var(--ink); color: #fff; }

/* FAQ: short factual answers (also published as FAQPage JSON-LD by tools/build.py) */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-list details { background: var(--field); border: 1px solid var(--rule); border-radius: 18px; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 24px; font-size: 19px; font-weight: 800; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-size: 22px; border: 1px solid rgba(15, 26, 28, .25); transition: transform .3s; }
.faq-list details[open] summary i { transform: rotate(45deg); }
.faq-list p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(48px, 6.4vw, 92px); font-weight: 900; line-height: 1.12; letter-spacing: -0.035em; margin: 14px 0 18px; }
.claim { font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 20px; max-width: 640px; }
.claim em { font-style: normal; color: var(--link); box-shadow: inset 0 -0.38em 0 rgba(240, 162, 39, .45); }
.lead { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 0 32px; }
.quick { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--field);
  border: 1px solid var(--rule); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip svg { width: 18px; height: 18px; color: #229ED9; }

.hero-media { position: relative; justify-self: center; width: min(100%, 500px); aspect-ratio: 900 / 1011; }
.blob { position: absolute; inset: 12% 2% 0 6%; border-radius: 44% 56% 40% 60% / 52% 44% 56% 48%;
  background: linear-gradient(140deg, var(--coral) 0%, var(--amber) 45%, var(--violet) 100%); }
@media (prefers-reduced-motion: no-preference) {
  .blob { animation: morph 14s ease-in-out infinite alternate; }
}
@keyframes morph {
  0% { border-radius: 44% 56% 40% 60% / 52% 44% 56% 48%; }
  50% { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; }
  100% { border-radius: 40% 60% 46% 54% / 58% 40% 60% 42%; }
}
.portrait { position: relative; display: block; width: 100%; height: auto;
  /* the cut-out sits on the blob; the shirt (cut by the original frame at the right and bottom)
     fades out in an oval, the head stays sharp */
  -webkit-mask-image: radial-gradient(ellipse 55% 64% at 50% 40%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 55% 64% at 50% 40%, #000 70%, transparent 100%); }
.badge { position: absolute; background: var(--field); border-radius: 16px; padding: 12px 16px; box-shadow: 0 18px 40px -16px rgba(15, 26, 28, .35);
  font-size: 13.5px; line-height: 1.3; color: var(--muted); max-width: 190px; }
.badge b { display: block; font-size: 28px; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; line-height: 1.12; }
.b1 { left: -6%; top: 22%; } .b2 { right: -8%; top: 40%; } .b3 { left: 0; bottom: 10%; } .b4 { right: -2%; bottom: 6%; }

/* Intent switcher */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tabs button { font: inherit; font-size: 16px; font-weight: 700; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--rule);
  background: var(--field); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; padding: 36px; border-radius: 24px; background: var(--field);
  border: 1px solid var(--rule); box-shadow: 0 30px 60px -40px rgba(15, 26, 28, .35); }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.2; margin: 0 0 12px; }
.panel p { margin: 0 0 14px; color: var(--muted); max-width: 720px; }
.panel ul { margin: 0; padding-left: 20px; }
.panel li + li { margin-top: 4px; }

/* Numbers */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--coal-rule); }
.num { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--coal-rule); }
.num b { display: block; font-size: clamp(44px, 5vw, 68px); font-weight: 900; line-height: 1.12; letter-spacing: -0.03em; color: var(--coal-ink); font-variant-numeric: tabular-nums; }
.num b small { font-size: .5em; letter-spacing: 0; }
.num > span { display: block; margin-top: 8px; font-size: 15.5px; color: var(--coal-muted); max-width: 300px; }

/* Offers (details/summary: works without JS) */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.offer { border-radius: 24px; padding: 0; }
.offer summary { list-style: none; cursor: pointer; padding: 30px 30px 28px; position: relative; }
.offer summary::-webkit-details-marker { display: none; }
.offer .n { font-size: 14px; font-weight: 800; }
.offer h3 { font-size: clamp(24px, 2.3vw, 30px); font-weight: 900; line-height: 1.15; margin: 26px 0 6px; padding-right: 48px; }
.offer summary p { margin: 0; font-weight: 600; }
.offer i { position: absolute; right: 26px; top: 26px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 26px; font-weight: 500; background: rgba(255, 255, 255, .3); transition: transform .3s; }
.offer[open] i { transform: rotate(45deg); }
.offer .more { padding: 0 30px 30px; }
.offer .more p { margin: 0; font-size: 16.5px; line-height: 1.6; }
.c-coral { background: var(--coral); color: var(--warm-ink); } .c-amber { background: var(--amber); color: var(--warm-ink); }
.c-violet { background: var(--violet); color: #fff; } .c-mint { background: var(--mint); color: var(--warm-ink); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; background: var(--coal-2);
  border: 1px solid var(--coal-rule); color: var(--coal-ink); text-decoration: none; min-height: 250px;
  transition: transform .3s, border-color .3s, opacity .3s, box-shadow .3s; }
.proj:hover { transform: translateY(-4px); border-color: #4A4D55; }
.proj h3 { font-size: 24px; font-weight: 800; margin: 8px 0 0; line-height: 1.2; }
.proj p { margin: 0; color: var(--coal-muted); font-size: 15.5px; flex: 1; }
.proj .go { font-weight: 700; color: var(--amber); }
.status { align-self: flex-start; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.status.live { background: var(--mint); color: var(--warm-ink); }
.status.soon { background: var(--amber); color: var(--warm-ink); }
.status.req { background: transparent; color: var(--coal-ink); border: 1px solid #5A5D66; }
/* The intent switcher highlights matching projects (app.js sets body[data-intent]). */
body[data-intent] .proj { opacity: .45; }
body[data-intent] .proj.match { opacity: 1; border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }

/* Career path */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding-left: 32px; }
.timeline li::before { content: ''; position: absolute; left: -9px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: var(--amber);
  border: 3px solid var(--theme-page); box-sizing: content-box; transform: translateX(-3px); }
.timeline details { border-bottom: 1px solid rgba(15, 26, 28, .14); }
.timeline summary { list-style: none; display: grid; grid-template-columns: 140px 1fr 40px; gap: 18px; align-items: center; padding: 22px 0; cursor: pointer; }
.timeline summary::-webkit-details-marker { display: none; }
/* Early stages listed without details: same grid as a summary, no toggle. */
.timeline .plain .row { display: grid; grid-template-columns: 140px 1fr 40px; gap: 18px; align-items: center; padding: 18px 0;
  border-bottom: 1px solid rgba(15, 26, 28, .14); }
.timeline .plain .what b { font-size: 20px; }
.when { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.what b { display: block; font-size: 24px; font-weight: 900; line-height: 1.2; }
.what > span { color: var(--muted); }
.timeline i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 24px; border: 1px solid rgba(15, 26, 28, .25); transition: transform .3s; }
.timeline details[open] i { transform: rotate(45deg); }
.timeline .more { padding: 0 0 24px 158px; }
.timeline .more ul { margin: 0; padding-left: 20px; }
.timeline .more li { padding: 0; } .timeline .more li::before { display: none; }
.timeline .more li + li { margin-top: 6px; }
.timeline .more p { margin: 0; }
.certs { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--field); border: 1px solid var(--rule); color: var(--ink); font-size: 14px; }

/* Speaking */
.stage .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.stage-photo { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.stage-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.topics { list-style: none; margin: 0 0 36px; padding: 0; counter-reset: t; }
.topics li { counter-increment: t; display: grid; gap: 4px; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--coal-rule); position: relative; }
.topics li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-size: 22px; font-weight: 900; color: var(--amber); }
.topics b { font-size: 20px; font-weight: 800; }
.topics li > span { color: var(--coal-muted); }

/* Skills */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { font: inherit; font-size: 15px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--field); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skills li { padding: 12px 18px; border-radius: 14px; background: var(--field); border: 1px solid var(--rule); font-weight: 700; font-size: 16px;
  transition: opacity .25s, transform .25s, background-color .25s; }
.skills li.dim { opacity: .28; transform: scale(.97); }
.skills li.hit { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 20px; }
.contact-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1px solid #4A4D55; background: transparent;
  color: var(--coal-ink); cursor: pointer; text-decoration: none; }
.tool:hover { border-color: var(--coal-ink); }
.topic-note { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(240, 162, 39, .14); border: 1px solid rgba(240, 162, 39, .4); color: var(--coal-ink); max-width: 640px; }
.qr { margin: 0; background: var(--field); border-radius: 22px; padding: 18px 18px 14px; text-align: center; width: 268px; }
.qr img { display: block; width: 232px; height: 232px; }
.qr figcaption { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

.foot { padding: 40px 0 52px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-weight: 600; z-index: 50; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }

@media (max-width: 1080px) {
  .anchors { display: none; }
  .projects { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sec { padding: 80px 0; }
  .hero { padding: 40px 0 72px; }
  .hero .wrap, .stage .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; width: min(86%, 400px); }
  .panel { grid-template-columns: 1fr; padding: 28px 24px; }
  .nums { grid-template-columns: 1fr 1fr; }
  .offers { grid-template-columns: 1fr; }
  .stage-photo { max-width: 460px; }
  .qr { justify-self: start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 10px; height: 60px; }
  .brand > span:not(.mono) { display: none; }
  .hero h1 { font-size: 48px; }
  .badge { padding: 9px 12px; max-width: 150px; font-size: 12px; }
  .badge b { font-size: 22px; }
  .b1 { left: -4%; } .b2 { right: -4%; }
  .quick .btn { width: 100%; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-right: -16px; }
  .tabs button { flex: none; }
  .nums { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .proj { min-height: 0; }
  .timeline summary { grid-template-columns: 1fr 36px; gap: 4px 12px; }
  .timeline .plain .row { grid-template-columns: 1fr; gap: 4px; }
  .timeline .when { grid-column: 1; }
  .timeline .what { grid-column: 1; }
  .timeline i { grid-column: 2; grid-row: 1 / span 2; }
  .timeline .more { padding-left: 0; }
  .contact-actions .btn { width: 100%; }
  .sec-head { padding-left: 16px; }
}
