@font-face {
  font-family: Manrope;
  src: url('/assets/profile/manrope-latin-subset.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00B7, U+00E9, U+2013-2014, U+2019, U+2191, U+2197;
}

@font-face {
  font-family: Manrope;
  src: url('/assets/profile/manrope-cyrillic-subset.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+2116;
}

:root {
  color-scheme: light;
  --canvas: oklch(0.965 0.006 255);
  --ink: oklch(0.21 0.02 255);
  --muted: oklch(0.45 0.013 255);
  --line: oklch(0.82 0.012 255);
  --accent: oklch(0.46 0.14 25);
  --surface: oklch(0.992 0.004 255);
  --status: oklch(0.57 0.15 151);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Manrope, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: oklch(0.89 0.065 28); }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.wrap { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); padding: 0.5rem 1rem; background: var(--surface); z-index: 2; }
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 32px; gap: 1rem; }
.wordmark { position: relative; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.03em; }
.wordmark::before { content: ''; width: 8px; height: 8px; background: var(--status); border-radius: 50%; }
.wordmark::after { content: ''; position: absolute; left: 0; top: calc(50% - 4px); width: 8px; height: 8px; border: 1px solid var(--status); border-radius: 50%; opacity: 0; pointer-events: none; }
.language-switch { display: flex; align-items: center; gap: 4px; font-size: 0.875rem; }
.language-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; text-decoration: none; color: var(--muted); }
.language-switch [aria-current] { color: var(--ink); font-weight: 800; text-decoration: underline; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; column-gap: 72px; padding-block: 58px 72px; }
.intro-copy { max-width: 680px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4.15rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.12; }
.role { margin-top: 20px; font-size: clamp(1.125rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.5; }
.intro-description { margin-top: 17px; max-width: 56ch; color: var(--muted); }
.contacts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 25px; margin-top: 27px; }
.email { color: var(--accent); font-size: 1.125rem; font-weight: 700; }
.contacts a { padding-block: 6px; }
.telegram { font-size: 0.9375rem; }
.portrait { display: block; width: 250px; height: 280px; object-fit: cover; object-position: 50% 30%; border-radius: 14px; background: var(--line); }
.content-section { border-top: 1px solid var(--line); padding-block: 40px 48px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 26px; }
h2 { font-size: 1.4rem; letter-spacing: -0.025em; line-height: 1.35; font-weight: 800; }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.skills h3 { font-size: 1rem; line-height: 1.5; font-weight: 700; margin-bottom: 9px; }
.skills p { color: var(--muted); font-size: 0.9375rem; line-height: 1.8; }
.project-list { list-style: none; padding: 0; margin: 0; }
.project { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); gap: 42px; padding-block: 24px; border-top: 1px solid var(--line); }
.project:first-child { padding-top: 0; border-top: 0; }
.project:last-child { padding-bottom: 0; }
.project h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.55; }
.project h3 a { text-decoration-color: var(--line); }
.project h3 a::after { content: ' ↗'; color: var(--accent); }
.project-kind { margin-top: 5px; color: var(--muted); font-size: 0.8125rem; }
.project-description { color: var(--muted); font-size: 0.9375rem; line-height: 1.8; }
.project-service-link { display: block; margin-top: 10px; color: var(--accent); font-weight: 700; }
.manufacturer-sites { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: -14px 0 0; padding: 0; }
.site-link { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 108px; height: 100%; padding: 16px 12px; background: var(--surface); border-radius: 6px; font-size: 0.8125rem; text-decoration: none; }
.site-link:hover { background: oklch(0.94 0.012 151); }
.site-link span { text-decoration: underline; text-decoration-color: var(--line); overflow-wrap: anywhere; }
.site-logo { width: 140px; max-width: 100%; height: 45px; object-fit: contain; object-position: left center; }
.project-brand { display: inline-flex; align-items: center; min-height: 52px; margin-bottom: 8px; }
.project-brand img { display: block; width: 100px; height: 45px; object-fit: contain; object-position: left center; }
.contact-section { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.contact-section p { color: var(--muted); margin-top: 7px; }
.contact-section .email { flex-shrink: 0; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); padding-block: 25px 36px; color: var(--muted); font-size: 0.8125rem; }
.site-footer a { text-decoration-color: var(--line); }
.error-page { padding-block: 80px; max-width: 60ch; }
.error-page p { margin-block: 24px; }

@media (prefers-reduced-motion: no-preference) {
  .wordmark::after { animation: status-pulse 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
  @keyframes status-pulse { 0% { transform: scale(1); opacity: 0.65; } 75%, 100% { transform: scale(2.9); opacity: 0; } }
  .intro { animation: arrive 550ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes arrive { from { transform: translateY(8px); } to { transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 820px) {
  .intro { column-gap: 32px; grid-template-columns: minmax(0, 1fr) 200px; }
  .portrait { width: 200px; height: 240px; }
  .skills { gap: 22px; }
  .manufacturer-sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 18px; }
  .intro { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 42px; }
  .portrait { grid-row: 1; width: 112px; height: 124px; border-radius: 10px; }
  h1 { font-size: clamp(2.45rem, 10vw, 3.3rem); }
  .role { margin-top: 15px; }
  .intro-description { margin-top: 14px; }
  .contacts { gap: 8px 20px; margin-top: 21px; }
  .content-section { padding-block: 30px 34px; }
  .skills { grid-template-columns: 1fr; gap: 24px; }
  .section-heading { margin-bottom: 23px; }
  .project { grid-template-columns: 1fr; gap: 10px; padding-block: 22px; }
  .manufacturer-sites { margin-top: 10px; gap: 10px; }
  .contact-section { display: block; }
  .contact-section .email { display: inline-block; margin-top: 18px; }
}
