@font-face {
  font-family: Manrope;
  src: url('./manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('./source-sans-3.ttf') format('truetype');
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --black: #080909;
  --ink: #131615;
  --muted: #636d66;
  --mint: #66ebbd;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--black);
  font: 18px/1.55 'Source Sans 3', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #12b784;
  outline-offset: 5px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Manrope, Arial, sans-serif; }
h1, h2 { font-weight: 800; letter-spacing: -.065em; line-height: 1.08; }
h2 { font-size: clamp(36px, 4.5vw, 60px); }
h3 { font-size: 22px; line-height: 1.35; letter-spacing: -.035em; }
p { text-wrap: pretty; }
.container, .nav { width: min(1040px, calc(100% - 80px)); margin: auto; }
.dark { background: var(--black); color: #f7f9f8; }
.light { background: #fcfdfc; }
.header { position: absolute; inset: 0 0 auto; z-index: 5; color: #a1a7a3; }
.nav { height: 76px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid #ffffff25; }
.nav-links { display: flex; gap: 22px; }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--mint); }
.nav-contact { margin-left: auto; color: #e5e9e7; }
.nav-contact span { margin-left: 12px; color: var(--mint); }
.hero { padding: 124px 0 74px; overflow: hidden; }
.location { color: #a0a6a2; font-size: 16px; }
h1 { font-size: clamp(52px, 6.25vw, 90px); margin: 20px 0 22px; letter-spacing: -.075em; word-spacing: .15em; white-space: nowrap; }
.name-dot { color: var(--mint); }
.hero-copy { font-size: 25px; line-height: 1.4; color: #a3aaa6; max-width: 840px; }
.cases-intro { display: flex; justify-content: space-between; gap: 24px; color: #a4afa8; font-size: 15px; margin: 48px 0 34px; }
.cases-intro > span:last-child { text-align: right; }
.cases-intro { align-items: baseline; }
.cases-intro > span:first-child { color: #e5e9e7; font-size: 26px; font-weight: 600; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 8px 0 28px; perspective: 1200px; }
.project-card {
  border: 1px solid #424744;
  background: linear-gradient(140deg, #252826, #171a18 55%);
  color: #f4f6f4;
  text-align: left;
  padding: 0;
  border-radius: 12px;
  min-width: 0;
  box-shadow: 0 18px 36px #0007;
  position: relative;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  transform: rotate(var(--tilt));
  isolation: isolate;
}
/* Карточки появляются один раз; наведение по-прежнему управляет наклоном. */
@keyframes появление-кейса {
  from { opacity: 0; translate: 0 20px; }
  to { opacity: 1; translate: 0 0; }
}
.project-card { animation: появление-кейса .46s cubic-bezier(.22, 1, .36, 1) backwards; }
.project-card:nth-child(2) { animation-delay: .12s; }
.project-card:nth-child(3) { animation-delay: .24s; }
.card-documents { --tilt: -5deg; z-index: 1; transform-origin: 80% 70%; }
.card-requests { --tilt: 3deg; z-index: 2; top: -10px; }
.card-maintenance { --tilt: 8deg; transform-origin: 10% 70%; z-index: 1; }
.project-card:hover, .project-card:focus-visible { transform: translateY(-16px) rotate(0); border-color: #9ddfc4; z-index: 3; box-shadow: 0 22px 60px #0009; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #ffffff20; padding: 13px 18px; font-size: 15px; font-weight: 600; background: #ffffff04; border-radius: 12px 12px 0 0; }
.open-icon { color: #aebdb5; font-size: 21px; line-height: 1; }
.preview { display: block; margin: 18px 12px 0; overflow: hidden; border: 1px solid #ffffff20; border-radius: 5px; box-shadow: 0 8px 16px #0004; }
.preview img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 480; }
.project-bottom { display: flex; flex: 1; flex-direction: column; gap: 18px; padding: 20px; }
.project-bottom strong { font: 650 21px/1.3 Manrope, Arial, sans-serif; letter-spacing: -.045em; }
.project-bottom > span { color: #a6b5ab; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-top: auto; padding-top: 4px; }
.project-bottom > span > span { color: var(--mint); }
.spectrum {
  height: 110px;
  background: linear-gradient(to bottom, transparent, #fcfdfc), linear-gradient(110deg, #142a21, #81d4b0 25%, #43a6b0 56%, #365a9d 82%, #111f3b);
  mask-image: linear-gradient(to bottom, transparent, #000 35%);
}
.eyebrow { font-size: 14px; letter-spacing: .09em; text-transform: uppercase; color: #697b70; margin-bottom: 22px; }
.value { padding: 75px 0 85px; }
.value h2 { max-width: 740px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 70px; row-gap: 42px; margin-top: 54px; }
.facts article { border-top: 1px solid #dce2dd; padding-top: 24px; }
.advantage-mark { display: block; font: 800 28px/1.2 Manrope, Arial, sans-serif; color: #206b49; margin-bottom: 16px; }
.facts h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.facts p { color: var(--muted); font-size: 19px; }
.tasks { padding: 75px 0 85px; border-top: 1px solid #e0e5df; }
.task-list { margin-top: 48px; }
.task-row { display: grid; grid-template-columns: 40px 1fr; gap: 22px; border-top: 1px solid #dbe2dc; padding: 28px 0; }
.task-icon { color: #417f61; padding-top: 4px; }
.task-icon svg { width: 30px; height: 30px; }
.task-row h3 { font-size: 23px; margin-bottom: 12px; }
.task-row p { color: var(--muted); max-width: 820px; font-size: 19px; }
.experience { padding: 75px 0 85px; border-top: 1px solid #dfe5df; }
.skills { margin: 48px 0 0; }
.skills > div { display: grid; grid-template-columns: 240px 1fr; gap: 30px; border-top: 1px solid #dbe2dc; padding: 22px 0; }
.skills dt { font-weight: 600; color: #35473c; }
.skills dd { margin: 0; color: var(--muted); }
.spectrum-bottom { transform: scaleY(-1); }
.contact { padding: 65px 0 0; }
.contact-line { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.contact h2 { font-size: clamp(36px, 4.2vw, 56px); }
.button { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(#b8fadc, #75d8ac); color: #122b1d; padding: 14px 24px; border-radius: 10px; border: 1px solid #d8ffe9; box-shadow: inset 0 -3px 0 #23613b25; font-weight: 650; }
.button:hover { background: #c0ffe1; }
.button:disabled { cursor: not-allowed; background: #27332d; border-color: #4a5c51; color: #a9b9b0; box-shadow: none; }
.contact-form { max-width: 680px; margin-top: 35px; }
.contact-form p { margin-bottom: 22px; color: #abbcaf; }
.contact-form label { display: block; margin: 18px 0; color: #d3dfd7; }
.contact-form input, .contact-form textarea { display: block; width: 100%; border: 1px solid #64766a; border-radius: 8px; padding: 12px; margin-top: 8px; background: #141d18; color: #fff; }
.contact-form textarea { resize: vertical; }
/* поле-ловушка для ботов: человек его не видит и не заполняет */
.contact-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin-top: 18px; color: #abbcaf; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 85px; padding: 24px 0; border-top: 1px solid #ffffff22; color: #9aaa9e; font-size: 14px; }
footer a:hover { color: var(--mint); }
.skip { position: fixed; left: 15px; top: -90px; z-index: 100; padding: 10px 16px; background: white; color: black; }
.skip:focus { top: 15px; }
.modal-open { overflow: hidden; }
dialog { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; border: 0; margin: 0; padding: 0; background: #0d1117; color: #f1f5f2; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #000b; }
.dialog-bar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 28px; background: #141b17; border-bottom: 1px solid #ffffff22; }
.dialog-eyebrow { font-size: 11px; color: #87a994; }
.dialog-bar h2 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; margin-top: 3px; }
.dialog-bar button { border: 1px solid #ffffff35; border-radius: 8px; background: #ffffff08; color: #d6e5da; padding: 8px 14px; white-space: nowrap; }
.dialog-bar button:hover { background: #ffffff20; }
.dialog-bar button span { margin-left: 12px; }
#case-frame { width: 100%; flex: 1; min-height: 0; border: 0; background: #1a2028; }
@media (min-width: 1600px) { h1 { font-size: 94px; } }
@media (max-width: 1000px) {
  .container, .nav { width: calc(100% - 64px); }
  h1 { font-size: 6.5vw; }
  .project-top { font-size: 13px; padding: 12px; }
  .project-bottom { padding: 15px; }
  .project-bottom strong { font-size: 18px; }
  .facts { column-gap: 40px; }
}
@media (max-width: 700px) {
  .container, .nav { width: calc(100% - 40px); }
  .nav { height: 65px; gap: 15px; font-size: 15px; }
  .nav-links { gap: 16px; }
  .nav-contact span { margin-left: 3px; }
  .hero { padding: 99px 0 44px; }
  .location { font-size: 13px; max-width: 340px; }
  h1 { font-size: clamp(40px, 9.8vw, 65px); white-space: normal; max-width: 550px; line-height: 1.08; letter-spacing: -.06em; margin: 21px 0; }
  .hero-copy { font-size: 20px; max-width: 520px; }
  .cases-intro { flex-direction: column; gap: 6px; margin: 30px 0 22px; font-size: 13px; }
  .cases-intro > span:last-child { text-align: left; }
  .cases-intro > span:first-child { font-size: 21px; }
  .project-grid { display: flex; flex-direction: column; gap: 28px; padding: 4px 10px 10px; max-width: 440px; margin: auto; }
  .project-card { --tilt: -2deg; transform-origin: center; }
  .card-requests { --tilt: 2deg; top: 0; }
  .card-maintenance { --tilt: -2deg; }
  .project-top { padding: 11px 16px; font-size: 13px; }
  .preview { margin: 14px 14px 0; }
  .project-bottom { padding: 18px; gap: 12px; }
  .project-bottom strong { font-size: 21px; }
  .project-card:hover, .project-card:focus-visible { transform: translateY(-5px) rotate(0); }
  .spectrum { height: 75px; }
  .value, .tasks, .experience { padding: 45px 0 50px; }
  .eyebrow { font-size: 12px; margin-bottom: 17px; }
  h2 { font-size: 37px; }
  .facts { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .advantage-mark { font-size: 26px; }
  .facts h3 { font-size: 18px; }
  .facts p, .task-row p { font-size: 18px; }
  .task-list { margin-top: 32px; }
  .task-row { grid-template-columns: 24px 1fr; gap: 15px; padding: 24px 0; }
  .task-icon svg { width: 24px; height: 24px; }
  .task-row h3 { font-size: 21px; }
  .skills { margin-top: 32px; }
  .skills > div { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .contact { padding: 40px 0 0; }
  .contact-line { display: block; }
  .contact-line .button { margin-top: 28px; }
  footer { margin-top: 65px; font-size: 12px; }
  .dialog-bar { padding: 12px; gap: 12px; }
  .dialog-bar h2 { font-size: 15px; line-height: 1.25; }
  .dialog-bar button { font-size: 13px; padding: 8px 10px; }
  .dialog-bar button span { margin-left: 6px; }
}
@media (max-width: 360px) {
  .nav-links { gap: 10px; }
  .nav { gap: 10px; font-size: 14px; }
  .container, .nav { width: calc(100% - 30px); }
  h1 { font-size: 39px; }
  .project-grid { padding-left: 5px; padding-right: 5px; }
  .project-bottom strong { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
