:root {
  --navy: #0b2238;
  --paper: #f7f7f4;
  --ink: #17212b;
  --muted: #52606d;
  --line: #d9dfe4;
  --blue: #175cd3;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --page-width: 1200px;
  --gutter: clamp(24px, 5vw, 80px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
p, h1, h2, h3, ol { margin: 0; }
h1, h2, h3 { color: var(--navy); font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(48px, 5.8vw, 80px); line-height: 1.075; letter-spacing: -0.047em; }
h2 { font-size: clamp(36px, 3.7vw, 52px); line-height: 1.12; letter-spacing: -0.035em; }
h3 { font-size: clamp(25px, 2.3vw, 33px); line-height: 1.17; letter-spacing: -0.03em; }
.container { width: min(var(--page-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 20px; padding: 12px 20px; background: var(--navy); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 120px; padding-block: 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.brand { display: inline-flex; flex-direction: column; color: var(--navy); text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.wordmark { font-size: 23px; font-weight: 750; line-height: 1.35; letter-spacing: 0.11em; }
.owner-name { font-size: 14px; color: var(--muted); letter-spacing: 0.015em; }
.header-right { display: flex; align-items: center; gap: clamp(28px, 4.4vw, 64px); }
.main-nav, .languages { display: flex; align-items: center; }
.main-nav { gap: 32px; }
.main-nav a, .languages a { display: inline-flex; min-height: 44px; align-items: center; color: var(--navy); font-size: 15px; text-decoration: none; }
.main-nav a:hover, .languages a:hover { color: var(--blue); text-decoration: underline; }
.languages { gap: 10px; }
.languages a[aria-current] { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.languages span { color: var(--muted); }
.section-label { color: var(--muted); font-size: 15px; line-height: 1.5; }
.hero { padding-block: 68px 78px; }
.hero-label { margin-bottom: 28px; }
.hero h1 { max-width: 1100px; }
.hero h1 span { display: block; }
.hero-detail { width: 51%; margin-left: auto; margin-top: 38px; }
.intro { max-width: 570px; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 11px 25px; background: var(--navy); color: white; border: 1px solid var(--navy); border-radius: 2px; font-size: 16px; text-decoration: none; }
.button:hover { background: #153b5b; border-color: #153b5b; text-decoration: none; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 15px; }
.expertise { border-top: 1px solid var(--line); }
.section-heading { padding-block: 42px 36px; }
.section-heading .section-label { margin-bottom: 13px; }
.expertise-list { padding: 0; list-style: none; }
.expertise-row { display: grid; grid-template-columns: 50px 0.92fr 1fr; gap: 30px; padding-block: 29px 30px; border-top: 1px solid var(--line); }
.row-number { color: var(--blue); font-size: 16px; font-variant-numeric: tabular-nums; padding-top: 5px; }
.row-description p { font-size: 16px; line-height: 1.6; }
.row-description .technologies { color: var(--muted); font-size: 14px; margin-top: 12px; }
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 55px 72px; margin-top: 18px; border-top: 1px solid var(--line); }
.approach .section-label { margin-bottom: 24px; }
.approach h2 { max-width: 430px; }
.approach-detail { padding-top: 47px; }
.approach-detail p { font-size: 17px; }
.process { padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-top: 27px; color: var(--navy); font-size: 14px; }
.process li { display: inline-flex; align-items: center; }
.process li + li::before { content: '·'; color: var(--muted); margin-inline: 13px; }
.contact { background: var(--navy); color: var(--paper); }
.contact-content { padding-top: 66px; }
.contact h2 { color: var(--paper); max-width: 750px; font-size: clamp(36px, 4.1vw, 58px); }
.contact-intro { color: #d4dde5; margin-top: 24px; font-size: 17px; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 40px; margin-top: 33px; }
.email-link { font-family: var(--serif); color: var(--paper); font-size: clamp(25px, 3.4vw, 47px); letter-spacing: -0.035em; line-height: 1.3; text-decoration: none; }
.email-link:hover { text-decoration: underline; text-underline-offset: 8px; }
.copy-button { display: inline-flex; gap: 11px; align-items: center; padding: 9px 18px; min-height: 48px; border: 1px solid #9eafbe; border-radius: 2px; color: var(--paper); background: transparent; font-size: 15px; }
.copy-button:hover { background: #173b59; border-color: var(--paper); }
.copy-button svg { width: 21px; height: 21px; }
.contact a:focus-visible, .contact button:focus-visible, .contact input:focus-visible { outline-color: #a8caff; }
.copy-feedback { min-height: 59px; padding-top: 15px; padding-bottom: 14px; font-size: 14px; color: #d4dde5; }
#manual-email-label { display: block; margin-top: 12px; }
#manual-email { display: block; margin-top: 8px; width: min(100%, 330px); padding: 8px 12px; border: 1px solid #9eafbe; border-radius: 2px; color: var(--paper); background: transparent; font-size: 16px; }
.site-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-block: 25px 31px; border-top: 1px solid #516477; color: #d4dde5; font-size: 13px; line-height: 1.8; }
.footer-identity { display: flex; flex-direction: column; gap: 2px; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; }
.organization { font-size: 13px; }
.not-found { padding-block: 110px 140px; min-height: 65vh; }
.not-found h1 { margin-top: 18px; max-width: 800px; }
.not-found > p:not(.section-label) { margin-top: 30px; max-width: 600px; }
html[lang='ru'] h1 { font-size: clamp(40px, 5.3vw, 73px); }
html[lang='ru'] .approach { gap: 45px; }
html[lang='ru'] .process { font-size: 13px; }
html[lang='ru'] .process li + li::before { margin-inline: 8px; }
@media (min-width: 1440px) { :root { --gutter: 120px; } }
@media (max-width: 1000px) {
  .main-nav { gap: 20px; }
  .header-right { gap: 30px; }
  .hero-detail { width: 62%; }
  .expertise-row { grid-template-columns: 34px 0.85fr 1fr; gap: 22px; }
  .approach { gap: 38px; }
  .process { max-width: 370px; }
  .process { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
  .process li + li::before { content: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 28px; }
  .site-header { min-height: 96px; padding-block: 20px; gap: 14px; }
  .main-nav a:not(:last-child) { display: none; }
  .header-right { gap: 24px; }
  .hero { padding-block: 48px 50px; }
  .hero-detail { width: 100%; margin-top: 28px; max-width: 580px; margin-left: 0; }
  .hero h1 { font-size: clamp(40px, 6.7vw, 53px); }
  html[lang='ru'] h1 { font-size: clamp(36px, 6.4vw, 49px); }
  .intro { font-size: 17px; }
  .expertise-row { grid-template-columns: 32px 1fr; gap: 12px 18px; padding-block: 25px; }
  .expertise-row h3 { font-size: 29px; }
  .row-number { padding-top: 3px; }
  .row-description { grid-column: 2; }
  .approach { grid-template-columns: 1fr; gap: 24px; padding-block: 42px 48px; }
  .approach h2 { max-width: 550px; }
  .approach .section-label { margin-bottom: 16px; }
  .approach-detail { padding-top: 0; }
  .process { max-width: none; }
  .contact-content { padding-top: 45px; }
  .contact h2 { max-width: 550px; }
  .site-footer { align-items: flex-start; }
}
@media (max-width: 480px) {
  :root { --gutter: 24px; }
  body { font-size: 16px; }
  .site-header { align-items: flex-start; }
  .wordmark { font-size: 19px; }
  .owner-name { font-size: 12px; }
  .header-right { flex-direction: column-reverse; align-items: flex-end; gap: 0; }
  .languages { gap: 7px; }
  .languages a { min-height: 28px; font-size: 14px; }
  .main-nav a { min-height: 28px; font-size: 14px; }
  .hero { padding-top: 36px; padding-bottom: 42px; }
  .hero-label { margin-bottom: 22px; font-size: 13px; }
  .hero h1 { font-size: 42px; }
  html[lang='ru'] h1 { font-size: 38px; letter-spacing: -0.05em; }
  .hero-actions { gap: 12px 20px; margin-top: 23px; }
  .text-link { font-size: 14px; }
  h2 { font-size: 36px; }
  .section-heading { padding-block: 30px; }
  .expertise-row { grid-template-columns: 24px 1fr; gap: 12px 14px; padding-block: 23px; }
  .expertise-row h3 { font-size: 27px; }
  .row-number { font-size: 14px; }
  .row-description p { font-size: 16px; }
  .row-description .technologies { font-size: 13px; }
  .approach { margin-top: 7px; }
  .approach-detail p { font-size: 16px; }
  .process, html[lang='ru'] .process { gap: 9px 0; font-size: 14px; }
  .process li + li::before, html[lang='ru'] .process li + li::before { margin-inline: 9px; }
  .contact h2 { font-size: 36px; }
  .contact-intro { font-size: 16px; margin-top: 22px; }
  .contact-actions { gap: 24px; margin-top: 27px; }
  .email-link { font-size: clamp(24px, 7.6vw, 33px); }
  .site-footer { flex-direction: column; gap: 18px; }
  .footer-meta { width: 100%; justify-content: space-between; }
}
@media (max-width: 350px) {
  :root { --gutter: 20px; }
  .hero h1 { font-size: 38px; }
  html[lang='ru'] h1 { font-size: 34px; }
  h2, .contact h2 { font-size: 32px; }
  .expertise-row h3 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; }
  .main-nav, .languages, .copy-button, .hero-actions, .copy-feedback { display: none !important; }
  .contact { background: white; color: var(--ink); }
  .contact h2, .contact a, .contact-intro, .site-footer { color: var(--ink); }
  .expertise-row { break-inside: avoid; }
}
