@font-face {
  font-family: Manrope;
  src: url('assets/Manrope.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root { font-family: Manrope, sans-serif; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f4f5f3; color: #171b1d; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #1455bf; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 12px 18px; background: #1455bf; color: white; }
.skip-link:focus { top: 12px; }

.site-header { min-height: 78px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid #d7dbda; }
.header-email { color: #1455bf; font-size: 16px; font-weight: 600; }
.site-header nav { display: flex; align-items: center; gap: clamp(26px, 4vw, 60px); }
.site-header nav a { font-size: 14px; font-weight: 600; }
.site-header a:hover { color: #1455bf; }

.hero { min-height: max(690px, calc(100dvh - 78px)); padding: 70px 5vw 55px; display: flex; flex-direction: column; }
.hero h1 { max-width: 1160px; margin: 65px 0 0; font-size: clamp(62px, 6.6vw, 108px); line-height: 1.11; letter-spacing: -.065em; font-weight: 600; text-wrap: balance; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-top: auto; padding-top: 24px; border-top: 1px solid #aab2b4; }
.hero-bottom p { max-width: 500px; margin: 0; color: #4b545a; font-size: clamp(19px, 1.9vw, 27px); line-height: 1.5; }
.text-action { padding-bottom: 7px; border-bottom: 2px solid #1455bf; color: #1455bf; font-size: 17px; font-weight: 600; white-space: nowrap; }
.text-action:hover { color: #0a3d95; border-color: #0a3d95; }

.tech-section h2, .company-details h2 { margin: 0 0 65px; font-size: clamp(34px, 3.8vw, 58px); line-height: 1.15; letter-spacing: -.045em; font-weight: 600; }

.careers-section { padding: 120px 5vw 130px; display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; background: #171c21; color: #f4f5f3; }
.careers-intro h2 { max-width: 560px; margin: 0 0 25px; font-size: clamp(46px, 4.8vw, 75px); line-height: 1.13; letter-spacing: -.055em; font-weight: 600; }
.careers-intro button, .form-bottom button, .dialog-actions button { border: 0; border-radius: 5px; padding: 16px 27px; background: #1455bf; color: #fff; font-size: 16px; font-weight: 600; transition: background-color .15s ease; }
.careers-intro button:hover, .form-bottom button:hover, .dialog-actions button:hover { background: #0b419d; }
.vacancy-list { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 0 32px; }
.vacancy-list span { padding: 15px 0 17px; border-bottom: 1px solid #596168; font-size: clamp(19px, 1.9vw, 27px); line-height: 1.3; }

.contact-section { padding: 120px 5vw 135px; background: #e9eeef; scroll-margin-top: 15px; }
.contact-heading { margin-bottom: 75px; }
.contact-heading h2 { max-width: 780px; margin: 0; font-size: clamp(46px, 5.3vw, 83px); line-height: 1.12; letter-spacing: -.06em; font-weight: 600; }
.contact-heading p { max-width: 780px; margin: 24px 0 0; color: #596368; font-size: 18px; line-height: 1.55; }
#contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 60px; }
.form-field { display: flex; flex-direction: column; }
.form-field label, .dialog-content label { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #9aa6ab; border-radius: 0; background: transparent; color: #171b1d; outline: 0; font-size: 18px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-bottom: 2px solid #1455bf; }
input::placeholder, textarea::placeholder { color: #647077; opacity: 1; }
.message-field { grid-column: 1 / -1; }
.message-field textarea { min-height: 130px; }
.form-bottom { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; }

.about-hero { min-height: 630px; padding: 75px 5vw 65px; display: flex; flex-direction: column; }
.about-hero h1 { margin: 45px 0 0; font-size: clamp(72px, 9vw, 145px); line-height: 1.08; letter-spacing: -.07em; font-weight: 600; }
.about-summary { display: flex; justify-content: end; margin-top: auto; }
.about-summary p { max-width: 640px; margin: 0; font-size: clamp(22px, 2.2vw, 31px); line-height: 1.45; }
.tech-section, .company-details { padding: 110px 5vw 125px; }
.tech-section h2 { margin-bottom: 12px; }
.tech-scroll-space { position: relative; }
.tech-stage { position: relative; }
.tech-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tech-list > span { min-width: 0; min-height: 82px; padding: 20px 22px; display: flex; align-items: center; border-radius: 16px; background: #e0e5e4; color: #222a2d; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.tech-limit-line { display: none; }
.tech-section.is-scroll-pinned .tech-scroll-space { height: 220vh; }
.tech-section.is-scroll-pinned .tech-stage { position: sticky; top: 5vh; height: 90vh; min-height: 620px; padding-bottom: 18px; display: flex; flex-direction: column; }
.tech-section.is-scroll-pinned .tech-stage h2 { flex: none; font-size: clamp(34px, 3.8vw, 52px); }
.tech-section.is-scroll-pinned .tech-list { flex: 1; min-height: 0; align-content: center; }
.tech-section.is-scroll-pinned .tech-limit-line { position: absolute; right: 0; bottom: 0; left: 0; display: block; height: 2px; background: #cbd0cf; }
.tech-section.is-scroll-pinned .tech-limit-line span { display: block; width: 100%; height: 100%; background: #1455bf; transform: scaleX(0); transform-origin: left; }
.tech-section.is-scroll-pinned .tech-reveal { opacity: 0; transform: scale(.78); will-change: transform, opacity; }
.tech-section.is-scroll-pinned.is-tech-complete .tech-reveal { will-change: auto; }
.tech-reveal-on-view { opacity: 0; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.tech-reveal-from-0 { transform: translate3d(-18px, 12px, 0) scale(.84); }
.tech-reveal-from-1 { transform: translate3d(18px, 18px, 0) scale(.84); }
.tech-reveal-from-2 { transform: translate3d(-12px, -18px, 0) scale(.84); }
.tech-reveal-from-3 { transform: translate3d(20px, -12px, 0) scale(.84); }
.tech-reveal-on-view.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.tech-statement { margin-top: 92px; }
.tech-statement p { max-width: 1050px; margin: 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.25; letter-spacing: -.045em; }
.tech-statement strong { color: #1455bf; font-weight: 700; font-style: italic; }
.company-details { background: #f4f5f3; }
.details-card { padding: clamp(36px, 4.5vw, 72px); border-radius: 30px; background: #171a1c; color: #f5f5f5; }
.details-card h2 { margin-bottom: 52px; font-size: clamp(27px, 2.9vw, 41px); line-height: 1.25; letter-spacing: -.035em; }
.details-grid { display: grid; grid-template-columns: 1.3fr .6fr .6fr .8fr; gap: 36px 24px; }
.details-grid > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.details-grid span { color: #969c9f; font-size: 14px; }
.details-grid strong, .details-grid a { font-size: 17px; line-height: 1.55; font-weight: 500; overflow-wrap: anywhere; }
.details-grid a { color: #4b96ff; }
.detail-address { grid-column: 1; grid-row: 1 / 3; }
.detail-inn { grid-column: 2; grid-row: 1; }
.detail-kpp { grid-column: 3; grid-row: 1; }
.detail-ogrn { grid-column: 4; grid-row: 1; }
.detail-okved { grid-column: 2 / 5; grid-row: 2; }
.detail-contact { grid-column: 1; grid-row: 3; }
.detail-director { grid-column: 2 / 5; grid-row: 3; }
.details-grid > .detail-it-activities { grid-column: 1 / -1; }

dialog { width: min(690px, calc(100vw - 32px)); max-height: min(92dvh, 900px); padding: 0; border: 1px solid #b8c0c2; border-radius: 8px; background: #f4f5f3; color: #171b1d; box-shadow: 0 20px 80px #10161c40; overscroll-behavior: contain; }
dialog::backdrop { background: #0a1017b8; }
.dialog-close-form { position: absolute; top: 18px; right: 20px; }
.dialog-close { border: 0; padding: 0 6px; background: transparent; color: #171b1d; font-size: 34px; line-height: 1; }
.dialog-content { padding: 48px; }
.dialog-content h2 { margin: 0 35px 32px 0; font-size: clamp(38px, 4vw, 58px); line-height: 1.13; letter-spacing: -.045em; font-weight: 600; }
.dialog-content form { display: flex; flex-direction: column; }
.dialog-content input:not([type="file"]), .dialog-content textarea { width: 100%; margin-bottom: 20px; padding: 13px 0; border: 0; border-bottom: 1px solid #9aa6ab; border-radius: 0; background: transparent; color: #171b1d; outline: 0; font-size: 16px; resize: vertical; }
.dialog-content input:focus, .dialog-content textarea:focus { border-bottom: 2px solid #1455bf; }
.dialog-content input[type="file"] { width: 100%; margin: 0 0 20px; color: #596368; font-size: 13px; }
.dialog-content input[type="file"]::file-selector-button { margin-right: 15px; padding: 10px 15px; border: 1px solid #9aa6ab; border-radius: 4px; background: transparent; color: #171b1d; cursor: pointer; }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.dialog-actions button { flex: none; }

@media (max-width: 850px) {
  .hero { min-height: 680px; }
  .hero h1 { font-size: clamp(55px, 7.3vw, 85px); }
  .careers-section { gap: 5vw; }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-grid > div { grid-column: auto; grid-row: auto; }
  .details-grid > .detail-address, .details-grid > .detail-okved { grid-column: 1 / -1; }
}
@media (min-width: 851px) and (max-width: 1359px) {
  .tech-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
  .tech-list > span { min-height: 64px; padding: 12px 16px; font-size: 18px; line-height: 1.25; }
}
@media (max-width: 600px) {
  .site-header { min-height: 104px; padding: 17px 5vw; display: block; }
  .site-header nav { justify-content: space-between; gap: 10px; margin-top: 20px; }
  .site-header nav a { font-size: 13px; }
  .hero { min-height: 620px; padding: 58px 5vw 40px; }
  .hero h1 { margin-top: 42px; font-size: clamp(43px, 10vw, 64px); line-height: 1.13; }
  .hero-bottom { display: block; }
  .hero-bottom p { margin-bottom: 25px; font-size: 18px; }
  .text-action { display: inline-block; font-size: 16px; }
  .careers-section, .contact-section, .tech-section, .company-details { padding: 80px 5vw 90px; }
  .company-details h2 { margin-bottom: 45px; }
  .careers-section { display: block; }
  .vacancy-list { margin-top: 65px; }
  .vacancy-list span { font-size: 18px; }
  .contact-heading { margin-bottom: 50px; }
  .contact-heading h2 { font-size: 47px; }
  #contact-form { display: block; }
  .form-field { margin-bottom: 30px; }
  .form-bottom { display: block; }
  .form-bottom button { width: 100%; }
  .about-hero { min-height: 600px; padding: 65px 5vw 50px; }
  .about-hero h1 { font-size: 66px; }
  .about-summary p { font-size: 22px; }
  .tech-statement { margin-top: 58px; }
  .tech-statement p { font-size: 30px; }
  .details-card { padding: 28px; border-radius: 20px; }
  .details-card h2 { margin-bottom: 35px; font-size: 26px; }
  .details-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
  .details-grid > div { grid-column: 1 / -1; }
  .dialog-content { padding: 42px 23px 28px; }
  .dialog-actions { display: block; }
  .dialog-actions button { width: 100%; }
}
@media (max-width: 850px), (max-height: 649px), (prefers-reduced-motion: reduce) {
  .tech-section.is-scroll-pinned .tech-scroll-space { height: auto; }
  .tech-section.is-scroll-pinned .tech-stage { position: static; height: auto; min-height: 0; padding-bottom: 0; display: block; }
  .tech-section.is-scroll-pinned .tech-stage h2 { font-size: clamp(34px, 3.8vw, 58px); }
  .tech-section.is-scroll-pinned .tech-list { display: grid; min-height: 0; }
  .tech-section.is-scroll-pinned .tech-limit-line { display: none; }
  .tech-section.is-scroll-pinned .tech-reveal { opacity: 1 !important; transform: none !important; will-change: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tech-reveal-on-view { opacity: 1; transform: none; transition: none; }
}

button:disabled { opacity: .65; cursor: wait; }
#career-file-hint { margin: 0 0 16px; color: #505b63; }

.toast {
  position: fixed; inset: auto 28px max(28px, env(safe-area-inset-bottom)) auto;
  z-index: 20; margin: 0; width: min(390px, calc(100vw - 32px));
  display: grid; grid-template-columns: 28px 1fr 28px; align-items: start; gap: 12px;
  padding: 20px 16px 20px 20px; border: 1px solid #d7dbda; border-radius: 8px;
  background: #f4f5f3; color: #171b1d; box-shadow: 0 8px 32px #10161c14;
  font-family: Manrope, sans-serif; animation: toast-in .2s ease-out;
}
.toast-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1455bf; color: #fff; font-size: 15px; font-weight: 700; }
.toast strong { display: block; margin-top: 2px; font-size: 15px; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; }
.toast p { margin: 5px 0 0; color: #596368; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.toast-close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 4px; padding: 0; background: transparent; color: #596368; font-size: 23px; line-height: 1; }
.toast-close:hover { background: #e0e5e4; color: #171b1d; }
.toast[data-state="error"] .toast-icon { background: #a32121; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .toast { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

.field-error { margin-left: 10px; color: #a32121; font-family: inherit; font-size: 12px; line-height: 1.5; font-weight: 500; font-style: italic; }
.field-error:empty { display: none; }
.form-field [aria-invalid="true"], .dialog-content [aria-invalid="true"] {
  border-bottom-color: #a32121; color: #a32121;
}

.dialog-content input[type="file"][aria-invalid="true"]::file-selector-button { border-color: #a32121; color: #a32121; }
