/* inter: latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* inter: latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* playfair-display: latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* playfair-display: latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #171715;
  --text: #ffffff;
  --muted: #c0c0ba;
  --accent: #e4b92f;
  --accent-light: #f4d77e;
  --accent-heading: var(--accent);
  --accent-fill: var(--accent);
  --heading-hover: #aaa;
  --line: #373a33;
  --button-text: #17180f;
  --max-width: 1100px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #faf8f1;
    --surface: #f1eee4;
    --text: #23271f;
    --muted: #565d50;
    --accent: #86650a;
    --accent-light: #8a6608;
    --accent-heading: #a57c0a;
    --accent-fill: #e4b92f;
    --heading-hover: #666;
    --line: #d6d7ca;
    --button-text: #23271f;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf8f1;
  --surface: #f1eee4;
  --text: #23271f;
  --muted: #565d50;
  --accent: #86650a;
  --accent-light: #8a6608;
  --accent-heading: #a57c0a;
  --accent-fill: #e4b92f;
  --heading-hover: #666;
  --line: #d6d7ca;
  --button-text: #23271f;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 128px; }
body { margin: 0; font-size: 1.125rem; line-height: 1.8; background: var(--bg); color: var(--text); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(2.5rem, 5.7vw, 4.5rem); line-height: 1.15; letter-spacing: -.025em; max-width: 1020px; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 400; text-transform: uppercase; letter-spacing: .15em; color: var(--accent-heading); line-height: 1.5; max-width: 920px; }
h3 { font-size: 1.3rem; line-height: 1.5; font-weight: 600; }
p { overflow-wrap: break-word; }
main, .header-inner, .site-footer { width: min(var(--max-width), calc(100% - 64px)); margin-inline: auto; }
main:focus { outline: none; }
.site-header { position: sticky; z-index: 10; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 100px; }
.brand { font-size: 1.12rem; font-weight: 800; letter-spacing: .1em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: inherit; }
.brand-dot { color: var(--accent); }
.main-nav, .header-tools, .languages { display: flex; align-items: center; }
.main-nav { gap: 8px; }
.main-nav a { text-decoration: none; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; padding: 14px 12px; min-height: 58px; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
.header-tools { gap: 8px; flex-shrink: 0; }
.languages { gap: 4px; }
.languages a { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 6px; }
.flag { width: 28px; height: 20px; border-radius: 2px; box-shadow: 0 0 0 1px #8885; }
.icon { width: 1.15em; height: 1.15em; display: inline-block; fill: currentColor; flex-shrink: 0; vertical-align: -.15em; }
.theme-toggle, .header-linkedin, .header-email { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.header-email .icon { fill: none; }
.header-email { transition: color .3s ease; }
.header-email:hover, .header-email:focus-visible { color: var(--accent); }
.header-linkedin { font-size: 1.45rem; }
.theme-toggle:hover, .header-linkedin:hover { color: var(--accent); }
.theme-moon, [data-theme="light"] .theme-sun { display: none; }
[data-theme="light"] .theme-moon { display: inline-block; }
.hero { padding: 92px 0 0; }
.eyebrow { color: var(--accent); font-size: .88rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; }
.hero-name { font-family: "Inter", sans-serif; color: var(--accent-heading); font-size: 1.65rem; font-weight: 600; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; max-width: 100%; }
.hero-intro { color: var(--muted); font-size: clamp(1.08rem, 1.9vw, 1.25rem); max-width: 760px; margin-top: 28px; }
.location { color: var(--accent); font-size: 1rem; margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 12px 22px; background: var(--accent-fill); border: 1px solid var(--accent-fill); color: var(--button-text); font-size: .91rem; font-weight: 650; text-decoration: none; border-radius: 4px; }
.button:hover { color: var(--button-text); filter: brightness(1.08); }
.button-secondary { background: transparent; border-color: var(--line); color: var(--text); }
.button-secondary:hover { color: var(--accent); border-color: var(--accent); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(max-content, 1fr) minmax(0, 1fr); gap: 28px; margin: 68px 0 0; padding: 30px 0; border-top: 1px solid var(--line); }
.facts > div { display: flex; flex-direction: column; align-items: flex-start; }
.facts dt { order: 2; color: var(--muted); font-size: .86rem; }
.facts dd { margin: 0 0 3px; font-size: 1.8rem; font-weight: 800; color: var(--accent-heading); white-space: nowrap; }
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 820px; margin-top: 22px; font-size: 1.15rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.service-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; align-items: flex-start; }
.service-card h3 a { text-decoration: none; }
.service-card h3 span { color: var(--accent); }
.service-card p { color: var(--muted); font-size: 1.07rem; margin: 18px 0 22px; }
.text-link { color: var(--accent); display: inline-block; padding-block: 10px; min-height: 44px; font-size: .92rem; }
.service-card .text-link { margin-top: auto; }
.project-list { margin-top: 34px; }
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.project:first-child { padding-top: 4px; }
.project:last-child { border-bottom: 0; padding-bottom: 0; }
.project h3 { color: var(--accent); }
.project dl { margin: 0; }
.project dl > div + div { margin-top: 16px; }
.project dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: 6px; }
.project dd { margin: 0; color: var(--text); font-size: 1.15rem; line-height: 1.85; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 58px; }
.prose p { color: var(--muted); font-size: 1.15rem; line-height: 1.85; }
.prose p + p { margin-top: 20px; }
.tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 34px; }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.tags li { display: inline-flex; align-items: center; gap: 10px; color: var(--text); padding: 5px 0; font-size: 1.05rem; }
.tags .icon { width: 1em; height: 1em; }
.tags li:hover { color: var(--heading-hover); }
.tags li:hover .icon { color: var(--accent); }
.cooperation-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 32px 0 0; }
.cooperation-facts dt { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.cooperation-facts dd { margin: 0; }
.contact-email { position: relative; display: inline-flex; align-items: center; gap: 18px; max-width: 100%; min-height: 64px; padding: 12px 0; font-size: clamp(1.05rem, 3.8vw, 2.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: .035em; color: var(--text); margin-top: 28px; text-decoration: none; }
.contact-email span { min-width: 0; overflow-wrap: anywhere; }
.contact-email .send-icon { color: var(--accent); width: .8em; height: .8em; }
.contact-email::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.contact-email:hover, .contact-email:focus-visible { color: var(--accent-light); }
.contact-email:hover .send-icon, .contact-email:focus-visible .send-icon { color: var(--text); }
.contact-email:hover::after, .contact-email:focus-visible::after { transform: scaleX(1); }
.response-time { color: var(--muted); font-size: .88rem; margin-top: 12px; }
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: .78rem; color: var(--muted); }
.site-footer > a { padding-block: 10px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; font-size: .83rem; color: var(--muted); padding-top: 32px; }
.breadcrumbs a { padding-block: 8px; }
.breadcrumbs span { padding-block: 8px; }
.service-hero { padding-top: 44px; padding-bottom: 64px; }
.scope-list { margin-top: 32px; }
.scope-list article { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.scope-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.scope-number { color: var(--accent); font-size: .82rem; padding-top: 3px; }
.scope-list p { color: var(--muted); margin-top: 10px; max-width: 780px; }
.related .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 16px; background: var(--accent-fill); color: var(--button-text); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); color: var(--button-text); }
/* Content is visible by default. Entrance effects are optional, short-lived
   Web Animations; no CSS class hides sections while waiting for JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  body, .site-header, .service-card { transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
  a, button, h1, h2, h3, .eyebrow, .facts dd, .tags li, .icon, .cooperation-facts dt, .cooperation-facts dd { transition: color .3s ease, border-color .3s ease, transform .3s ease; }
  .section, .project, .facts, .site-footer { transition: border-color .4s ease; }
  .main-nav a:hover, .header-linkedin:hover, .theme-toggle:hover, .languages a:hover { transform: translateY(-3px); }
  .header-email .icon { transition: transform .3s ease; }
  .header-email:hover .icon, .header-email:focus-visible .icon { transform: translateY(-3px) rotate(-12deg); }
  .button { transition: color .3s ease, border-color .3s ease, transform .3s ease, filter .3s ease; }
  .button:hover { transform: translateY(-3px); }
  .contact-email { transition: color .4s ease, transform .4s cubic-bezier(.175,.885,.32,1.275); }
  .contact-email:hover, .contact-email:focus-visible { transform: translateX(8px); }
  .contact-email .send-icon { transition: color .4s ease, transform .4s ease; }
  .contact-email:hover .send-icon, .contact-email:focus-visible .send-icon { transform: rotate(-15deg) scale(1.2); }
  .contact-email::after { transition: transform .4s ease; }
}
.hero-name:hover { color: var(--accent-heading); }
h2:hover, .eyebrow:hover, .facts dd:hover { color: var(--accent-light); }
.project h3:hover, .tech-grid h3:hover, .cooperation-facts dt:hover { color: var(--accent-light); }
.cooperation-facts dd:hover { color: var(--heading-hover); }
@media (prefers-reduced-motion: reduce) {
  .contact-email, .contact-email .send-icon { transition: color .3s ease; }
  .contact-email::after { transition: transform .3s ease; }
}
@media (max-width: 1050px) {
  html { scroll-padding-top: 168px; }
  .header-inner { flex-wrap: wrap; gap: 4px 16px; padding-top: 12px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; }
}
@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .main-nav { gap: 8px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 950px) {
  h2 { color: var(--accent); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 144px; }
  main, .header-inner, .site-footer { width: calc(100% - 40px); }
  .header-inner { width: calc(100% - 32px); flex-wrap: wrap; justify-content: space-between; padding: 10px 0 4px; gap: 4px 6px; }
  .brand { font-size: 1rem; letter-spacing: .06em; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 0; }
  .main-nav a { font-size: .82rem; letter-spacing: .065em; padding: 12px 6px; min-height: 50px; }
  .header-tools { gap: 2px; }
  .languages a, .theme-toggle, .header-linkedin, .header-email { width: 44px; height: 44px; }
  .hero { padding-top: 46px; }
  .eyebrow { font-size: .76rem; letter-spacing: .12em; margin-bottom: 18px; }
  .hero-name, .hero-name:hover { color: var(--accent); }
  .hero-name { font-size: 1.425rem; letter-spacing: .12em; margin-bottom: 18px; }
  .hero-intro { margin-top: 22px; }
  .actions { gap: 12px; }
  .button { padding-inline: 16px; }
  .facts { gap: 14px; margin-top: 42px; padding: 24px 0; }
  .facts dd { font-size: 1.14rem; color: var(--accent); }
  .facts dt { font-size: .76rem; }
  .section { padding: 48px 0; }
  .project { grid-template-columns: 1fr; gap: 18px; }
  .tech-grid, .cooperation-facts, .related .service-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 24px 0; }
  .breadcrumbs { padding-top: 20px; gap: 8px; }
  .service-hero { padding-top: 30px; padding-bottom: 44px; }
  .contact-email { gap: 12px; letter-spacing: .01em; }
  .contact-email:hover, .contact-email:focus-visible { transform: none; }
}
@media (max-width: 360px) {
  .main-nav a { font-size: .78rem; letter-spacing: .035em; padding-inline: 3px; }
  .header-tools { gap: 0; }
  .languages a, .theme-toggle, .header-linkedin, .header-email { width: 36px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; gap: 12px; }
  .facts dd { grid-column: 1; grid-row: 1; margin: 0; }
  .facts dt { grid-column: 2; grid-row: 1; }
}
