@font-face {
  font-family: Manrope;
  src: url("assets/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  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: light;
  --canvas: #f7f9fc;
  --surface: #ffffff;
  --raised: #eaf0fa;
  --text: #17243c;
  --muted: #475a75;
  --line: #d6e0ee;
  --control-line: #7e90ab;
  --accent: #2448b0;
  --primary: #2a50d2;
  --primary-hover: #1d3da9;
  --accent-line: #9cb5ef;
  --hero-surface: #f0f4fb;
  --danger: #a6283b;
  --danger-line: #c05666;
  --positive: #166443;
  --header-height: 74px;
  font-family: Manrope, Arial, sans-serif;
  font-size: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--text); background: var(--canvas); line-height: 1.65; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd { margin: 0; }
::selection { color: white; background: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 5px; }
.container { width: min(100% - 100px, 1264px); margin-inline: auto; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 12px; padding: 10px 18px; color: white; background: var(--primary); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: #fffffff5;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner { min-height: calc(var(--header-height) - 1px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.brand { display: inline-flex; width: fit-content; min-height: 63px; align-items: center; }
.brand img { width: 126px; height: auto; }
.navigation { display: flex; align-items: center; gap: clamp(22px, 3.1vw, 50px); }
.navigation a { color: var(--muted); font-size: .94rem; font-weight: 650; white-space: nowrap; }
.navigation a:hover, .footer a:hover { color: var(--accent); }
.navigation .mobile-contact { display: none; }
.navigation [aria-current], .footer-links [aria-current], .header-action[aria-current] { color: var(--accent); }
.header-action { justify-self: end; }
.menu-button { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}

.button-primary { background: var(--primary); border-color: var(--primary); color: white; }
.button-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button-outline { background: var(--surface); border-color: var(--control-line); }
.button-outline:hover { background: var(--raised); border-color: var(--accent); }
.header-action { min-height: 42px; padding-inline: 16px; font-size: .875rem; }

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--hero-surface);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  padding-block: clamp(40px, 5vw, 72px);
}

.hero-media {
  display: block;
  justify-self: end;
  width: min(100%, 460px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.hero-media img { width: 100%; height: auto; }
.overline { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: .875rem; font-weight: 800; letter-spacing: .025em; }
.overline span { flex: 0 0 19px; height: 2px; background: var(--primary); border-radius: 2px; }
.hero h1 { font-size: clamp(2.75rem, 4.8vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.066em; text-wrap: balance; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 510px; margin-top: 27px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.188rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.section { padding-block: 76px; }
.services { padding-bottom: 48px; }
.section-intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 3.3vw, 3.06rem); line-height: 1.12; font-weight: 800; letter-spacing: -.055em; text-wrap: balance; }
.section-intro p { max-width: 310px; color: var(--muted); line-height: 1.5; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: background-color 180ms, border-color 180ms, transform 180ms;
}

.service-card:hover { border-color: var(--accent-line); background: var(--surface); transform: translateY(-4px); }
.service-card > img { width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.service-card-content { padding: 20px 20px 24px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.icon-shell { display: inline-grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; background: var(--raised); border: 1px solid var(--line); border-radius: 9px; color: var(--accent); }
.icon-shell .icon { width: 21px; height: 21px; }
.card-plus { color: var(--muted); width: 19px; height: 19px; transition: color 180ms; }
.service-card:hover .card-plus { color: var(--accent); }
.service-card h3 { font-size: clamp(1.05rem, 1.55vw, 1.265rem); font-weight: 800; line-height: 1.25; letter-spacing: -.028em; }
.service-card p { margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }

.detail-stack { margin-bottom: 40px; }
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  column-gap: clamp(32px, 4.5vw, 72px);
  row-gap: 32px;
  align-items: start;
  padding-block: 48px;
  border-top: 1px solid var(--line);
}

.service-detail:target, .clients:target { border-top-color: var(--primary); }
.detail-copy h2 { margin-bottom: 20px; max-width: 710px; font-size: clamp(1.85rem, 3.15vw, 2.82rem); text-wrap: pretty; }
.detail-copy p:not(.overline) { max-width: 735px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.detail-copy p + p { margin-top: 20px; }
.detail-copy strong { color: var(--text); font-weight: 800; }
.detail-spec { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.detail-spec h3 { margin-top: 12px; font-size: 1.16rem; font-weight: 800; letter-spacing: -.025em; }
.detail-spec dl { margin-top: 16px; }
.detail-spec dl div { padding-block: 12px; border-top: 1px solid var(--line); }
.detail-spec dl div:last-child { padding-bottom: 0; }
.detail-spec dt { font-weight: 800; line-height: 1.4; }
.detail-spec dd { margin-top: 4px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }

.clients {
  display: grid;
  grid-template-columns: minmax(156px, .55fr) 2fr;
  grid-column: 1 / -1;
  align-items: center;
  gap: 20px;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
}
.clients h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.25; letter-spacing: -.04em; }
.client-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.client-card { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.6vw, 20px); height: 100%; min-height: 112px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface); font-size: clamp(1.12rem, 2.3vw, 1.82rem); font-weight: 800; line-height: 1.25; letter-spacing: -.045em; }
a.client-card:hover { border-color: var(--accent-line); background: var(--canvas); }
.client-card img { width: 48px; height: 44px; object-fit: contain; }
.client-card .client-wordmark { width: min(100%, 156px); height: auto; mix-blend-mode: multiply; }

.approach { background: var(--surface); border-block: 1px solid var(--line); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.process li { padding: 20px 24px 12px 0; border-top: 2px solid var(--accent-line); }
.process li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.process h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.35; }
.process p { margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.6; }

.project-panel { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: clamp(28px, 5vw, 60px); border-radius: 17px; border: 1px solid var(--line); background: var(--raised); }
.project h2 { max-width: 650px; }
.project p { margin-top: 12px; max-width: 560px; color: var(--muted); }
.project p a, .dialog-content > p a, .contact-note a, .legal-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.project button { flex: 0 0 auto; }
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; min-height: 98px; padding-block: 18px; color: var(--muted); font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }

.inner-hero { padding-block: clamp(45px, 7vw, 90px); border-bottom: 1px solid var(--line); background: var(--hero-surface); }
.inner-hero h1 { max-width: 900px; margin-top: 12px; font-size: clamp(2.45rem, 5.5vw, 4.85rem); font-weight: 800; line-height: 1.04; letter-spacing: -.06em; }
.inner-hero h1 + p { margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.19rem); }
.contacts-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.copy-actions { flex: 0 0 auto; margin-bottom: 3px; }
.copy-button { gap: 9px; }
.copy-button .icon, .copy-field-button .icon { width: 18px; height: 18px; }
.copy-field-button {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}
.copy-field-button:hover { color: var(--accent); background: var(--raised); }
.copy-field-button:focus-visible { outline-offset: 2px; }
[data-copy-state="success"] .icon { color: var(--positive); animation: copy-confirmation 240ms ease-out; }
[data-copy-state="error"] .icon { color: var(--danger); }
@keyframes copy-confirmation {
  from { opacity: .35; transform: scale(.72); }
  65% { opacity: 1; transform: scale(1.12); }
  to { transform: scale(1); }
}
.contact-copy-actions { margin-top: 12px; }
.contact-copy-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.clipboard-buffer { position: fixed; inset: 0 auto auto 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; pointer-events: none; }
.contact-content { padding-block: 48px 76px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact-card { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.contact-card h2 { margin: 16px 0 20px; font-size: clamp(1.45rem, 3.15vw, 2rem); text-wrap: pretty; }
.contact-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)); column-gap: 16px; }
.contact-data > div { grid-column: 1 / -1; min-width: 0; padding-block: 16px; border-top: 1px solid var(--line); }
.contact-data > [data-requisite] { position: relative; padding-inline-end: 52px; }
.contact-data .registration-id { grid-column: auto; }
.contact-data .registration-id[data-requisite] { padding-block-start: 8px; padding-inline-end: 0; }
.contact-data .registration-id[data-requisite] dt { display: flex; align-items: center; min-height: 44px; padding-inline-end: 52px; }
.registration-id .copy-field-button { inset-block: 8px auto; margin-block: 0; }
.contact-data dt { color: var(--muted); font-size: .875rem; font-weight: 700; line-height: 1.4; }
.contact-data dd { margin-top: 4px; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; }
.contact-email { color: var(--accent); font-size: 1.1rem; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-note { margin-top: 12px; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.contact-project { margin-top: 24px; padding: clamp(24px, 3.7vw, 44px); }
.contact-project h2 { font-size: clamp(1.65rem, 3.4vw, 2.6rem); }
.contact-project p { margin-top: 12px; color: var(--muted); }
.contact-project-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.legal-content { max-width: 920px; padding-block: 40px 64px; }
.legal-section { padding-block: 24px; }
.legal-section + .legal-section { border-top: 1px solid var(--line); }
.legal-section h2 { margin-bottom: 12px; font-size: clamp(1.35rem, 3vw, 1.95rem); text-wrap: pretty; }
.legal-section p { color: var(--muted); }
.legal-section p + p { margin-top: 16px; }

dialog { width: min(100% - 32px, 560px); max-height: calc(100% - 32px); padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 80px #17243c33; }
dialog::backdrop { background: #17243c55; backdrop-filter: blur(3px); }
.dialog-content { position: relative; padding: clamp(24px, 5vw, 36px); }
.dialog-content h2 { padding-right: 32px; font-size: clamp(1.7rem, 5vw, 2.3rem); }
.dialog-content > p { margin-block: 8px 24px; color: var(--muted); }
.dialog-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.dialog-close:hover { background: var(--raised); }
#brief-form label { display: block; margin: 16px 0 8px; font-size: .9375rem; font-weight: 800; }
#brief-form select, #brief-form textarea { display: block; width: 100%; padding: 10px 13px; border-radius: 7px; border: 1px solid var(--control-line); background-color: var(--surface); color: var(--text); }
#brief-form select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%23475a75' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 17px; }
#brief-form textarea { resize: vertical; min-height: 105px; }
#brief-form textarea::placeholder { color: var(--muted); }
.brief-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.brief-status { min-height: 1.5em; margin-top: 12px; color: var(--accent); font-size: .9rem; }

@media (max-width: 1050px) {
  .container { width: min(100% - 64px, 1264px); }
  .service-card h3 { font-size: 1.2rem; }
}

@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { width: min(100%, 660px); justify-self: start; }
  .hero h1 { font-size: clamp(2.75rem, 7.8vw, 4.25rem); }
}

@media (max-width: 760px) {
  :root { --header-height: 65px; }
  .container { width: min(100% - 40px, 1264px); }
  .header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0; }
  .brand { min-height: 57px; }
  .brand img { width: 113px; }
  .header-action { display: none; }
  .navigation { width: 100%; flex-wrap: wrap; padding-block: 6px 14px; gap: 6px 24px; }
  .navigation a { display: block; padding: 8px 0; }
  .navigation .mobile-contact { display: block; }
  .has-js .navigation:not([data-open]) { display: none; }
  .has-js .menu-button { display: grid; place-items: center; width: 42px; height: 42px; margin-block: 10px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
  .has-js .header-inner { position: relative; }
  .has-js .navigation { position: absolute; top: 100%; left: -20px; width: calc(100% + 40px); padding: 12px 20px 17px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .hero-description { max-width: 460px; }
  .section { padding-block: 52px; }
  .services { padding-bottom: 32px; }
  .section-intro { display: block; margin-bottom: 24px; }
  .section-intro p { max-width: 460px; margin-top: 12px; }
  .service-detail { grid-template-columns: 1fr; padding-block: 36px; row-gap: 28px; }
  .detail-stack { margin-bottom: 24px; }
  .detail-copy h2 { margin-bottom: 16px; }
  .detail-copy p + p { margin-top: 16px; }
  .detail-spec { padding: 20px; }
  .clients { grid-column: auto; grid-template-columns: 1fr; gap: 16px; }
  .process { grid-template-columns: 1fr 1fr; gap: 16px; }
  .process li, .process li + li { border-left: 0; padding: 16px 0 12px; }
  .project-panel { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-inner { flex-wrap: wrap; }
  .footer p { order: 1; width: 100%; }
  .contacts-heading { align-items: flex-start; flex-direction: column; }
  .contact-content { padding-block: 32px 52px; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-card { padding: 20px; }
}

@media (max-width: 460px) {
  .container { width: min(100% - 32px, 1264px); }
  .has-js .navigation { left: -16px; width: calc(100% + 32px); padding-inline: 16px; }
  .hero-layout { padding-block: 36px; }
  .hero h1 { font-size: clamp(2.35rem, 9.75vw, 2.8rem); }
  .hero-description { margin-top: 22px; }
  .hero-actions { margin-top: 23px; gap: 8px; }
  .hero-actions .button { padding-inline: 12px; font-size: .875rem; }
  .service-grid { grid-template-columns: 1fr; row-gap: 20px; }
  .service-card-content { padding: 16px 16px 20px; }
  .client-card { min-height: 82px; padding-inline: 8px; }
  .client-card img { width: 29px; height: 28px; }
  .client-names { gap: 8px; }
  .process { grid-template-columns: 1fr; gap: 16px; }
  .project-panel { padding: 24px; }
}

@media (max-width: 365px) {
  .client-card { flex-direction: column; gap: 5px; }
  .contact-data .registration-id { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  [data-copy-state="success"] .icon { animation: none; }
}
