:root {
  --bg: #07090b;
  --panel: #101417;
  --panel-2: #151b1d;
  --text: #f3f7f2;
  --muted: #a9b4b0;
  --line: rgba(255, 255, 255, 0.12);
  --green: #a7ff3d;
  --teal: #42d7d0;
  --ink: #040506;
  color-scheme: dark;
  font-family: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

.reveal {
  opacity: 0;
  filter: blur(18px);
  transform: translateY(34px);
  transition:
    opacity 0.9s ease,
    filter 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.72, 0.18, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(7, 9, 11, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(167, 255, 61, 0.55);
  background: rgba(167, 255, 61, 0.12);
  color: var(--green);
  font-size: 0.85rem;
  border-radius: 8px;
}

.nav {
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92vh;
  padding: 138px clamp(18px, 5vw, 64px) 72px;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  opacity: 0.82;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.98) 0%, rgba(7, 9, 11, 0.68) 38%, rgba(7, 9, 11, 0.22) 100%),
    linear-gradient(0deg, rgba(7, 9, 11, 0.94) 0%, rgba(7, 9, 11, 0.08) 45%, rgba(7, 9, 11, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.5rem, 12vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.signature {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 8px 12px;
  border: 1px solid rgba(167, 255, 61, 0.44);
  border-radius: 8px;
  background: rgba(7, 9, 11, 0.42);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.lead {
  width: min(640px, 100%);
  margin-bottom: 32px;
  color: #d8dfdc;
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  background: var(--green);
  color: var(--ink);
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.section {
  padding: clamp(58px, 9vw, 110px) clamp(18px, 5vw, 64px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 1px;
  padding-bottom: 1px;
  background: var(--line);
}

.stat {
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 28px;
  background: var(--bg);
}

.stat-value {
  color: var(--teal);
  font-weight: 800;
}

.stat-label {
  max-width: 340px;
  color: #dce4df;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
  background: #0b0e10;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.process-list article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service {
  min-height: 360px;
  border-radius: 8px;
  perspective: 1100px;
}

.flip-inner {
  position: relative;
  min-height: 360px;
  height: 100%;
  transition: transform 0.72s cubic-bezier(0.2, 0.72, 0.18, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner,
.flip-card:focus .flip-inner,
.flip-card:focus-visible .flip-inner {
  transform: rotateY(180deg);
}

.flip-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backface-visibility: hidden;
  overflow: hidden;
}

.flip-face::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(66, 215, 208, 0.28);
  border-radius: 50%;
}

.flip-back {
  border-color: rgba(167, 255, 61, 0.35);
  background:
    linear-gradient(135deg, rgba(167, 255, 61, 0.15), rgba(66, 215, 208, 0.06)),
    #0c1112;
  transform: rotateY(180deg);
}

.flip-back h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.flip-back p {
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.52;
}

.flip-back strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: auto;
  color: #eef7e8;
  font-size: 0.88rem;
  line-height: 1.42;
}

.case-label {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(167, 255, 61, 0.12);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.flip-face p,
.process-list p,
.proof-strip p,
.fit-intro p,
.department-grid p,
.faq-grid p,
.start-card p,
.contact p {
  color: var(--muted);
  line-height: 1.65;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: #0b0e10;
  padding-top: 0;
}

.proof-strip article {
  padding: 26px;
  border: 1px solid rgba(66, 215, 208, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(66, 215, 208, 0.1), rgba(255, 255, 255, 0.02)),
    #0c1112;
}

.proof-strip span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fit-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: #101417;
}

.fit-intro h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.fit-intro p {
  max-width: 640px;
}

.fit-intro .eyebrow {
  color: var(--green);
}

.capability-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.capability-board span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 12px 13px;
  border: 1px solid rgba(167, 255, 61, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(167, 255, 61, 0.09), rgba(66, 215, 208, 0.04)),
    #0b0e10;
  color: #e8f3e0;
  font-size: 0.92rem;
  font-weight: 700;
}

.capability-board span::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(167, 255, 61, 0.65);
}

.department-block {
  grid-column: 1 / -1;
  padding-top: 8px;
}

.department-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.department-heading .faq-label {
  flex: 0 0 auto;
  margin-bottom: 4px;
}

.department-heading h3 {
  max-width: 620px;
  margin-bottom: 0;
  color: #f6faf2;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  text-align: right;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.department-grid article {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0e10;
  overflow: hidden;
}

.department-grid article::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(167, 255, 61, 0.15);
  border-radius: 50%;
}

.department-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.department-grid h3,
.department-grid p {
  position: relative;
  z-index: 1;
}

.department-grid h3 {
  max-width: 280px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-block {
  margin-top: 26px;
}

.faq-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.faq-grid article {
  min-height: 185px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0e10;
}

.faq-grid h3 {
  color: #f6faf2;
}

.start-card {
  align-self: stretch;
  padding: 26px;
  border: 1px solid rgba(167, 255, 61, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(167, 255, 61, 0.12), rgba(66, 215, 208, 0.05)),
    #0b0e10;
}

.start-card h3 {
  max-width: 420px;
  margin-bottom: 18px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.start-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.start-card li {
  position: relative;
  padding-left: 22px;
  color: #e8f3e0;
  font-weight: 700;
  line-height: 1.45;
}

.start-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(167, 255, 61, 0.62);
}

.start-card p:last-child {
  margin-bottom: 0;
}

.process {
  background: var(--panel-2);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.process-list article {
  background: #0c1112;
}

.process-list span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--teal);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(520px, 0.9fr);
  gap: 32px;
  align-items: end;
  background: var(--bg);
}

.contact h2 {
  max-width: 900px;
}

.contact .eyebrow {
  color: var(--green);
}

.contact p {
  max-width: 650px;
  margin-bottom: 0;
}

.contact-link {
  border: 1px solid rgba(167, 255, 61, 0.4);
  background: rgba(167, 255, 61, 0.1);
  color: var(--green);
}

.contact-panel {
  display: grid;
  grid-template-columns: 180px 180px minmax(150px, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(167, 255, 61, 0.08), rgba(66, 215, 208, 0.04)),
    #0b0e10;
}

.profile-card {
  margin: 0;
  width: 100%;
}

.profile-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(66, 215, 208, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(167, 255, 61, 0.16), rgba(66, 215, 208, 0.08)),
    #0c1112;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo.is-empty::before {
  content: "KP";
  color: var(--green);
  font-size: 3rem;
  font-weight: 800;
}

.profile-photo.is-empty::after {
  content: "Фото появится здесь";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.profile-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.profile-card strong {
  font-size: 1rem;
}

.profile-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.qr-card {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f7f9fb;
  color: #111416;
}

.qr-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
}

.qr-card figcaption {
  color: #111416;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.contact-panel .contact-actions {
  flex-direction: column;
  align-content: stretch;
}

.contact-panel .contact-link {
  width: 100%;
}

@media (max-width: 860px) {
  .topbar {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 112px;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 9, 11, 0.98) 0%, rgba(7, 9, 11, 0.64) 72%, rgba(7, 9, 11, 0.32) 100%),
      linear-gradient(0deg, rgba(7, 9, 11, 0.96) 0%, rgba(7, 9, 11, 0.28) 58%, rgba(7, 9, 11, 0.78) 100%);
  }

  .stats,
  .split,
  .proof-strip,
  .fit-section,
  .faq-grid,
  .process-list,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    align-items: start;
  }

  .capability-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .department-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .department-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .department-heading h3 {
    text-align: left;
  }

  .profile-card {
    width: min(260px, 100%);
  }

  .profile-photo {
    width: 100%;
  }

  .contact-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel .contact-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-bottom: 48px;
  }

  h1 {
    font-size: 3.4rem;
  }

  .button,
  .contact-link {
    width: 100%;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel .contact-actions {
    grid-column: auto;
  }

  .capability-board {
    grid-template-columns: 1fr;
  }

  .service,
  .flip-inner,
  .flip-face {
    min-height: 430px;
  }

  .department-grid {
    grid-template-columns: 1fr;
  }

  .stat,
  .service,
  .department-grid article,
  .process-list article {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .flip-inner {
    transition: none;
  }
}
