/* Технозавод Перевертыш - статический лендинг */
:root {
  --bg: #fbf7ef;
  --bg-2: #eef8f7;
  --card: #ffffff;
  --text: #0d1b24;
  --muted: #58646f;
  --line: rgba(13, 27, 36, 0.12);
  --orange: #ff8a00;
  --orange-2: #ffb000;
  --cyan: #11b7d9;
  --blue: #ff8a00;
  --blue-2: #11b7d9;
  --blue-soft: rgba(255, 138, 0, 0.14);
  --cyan-soft: rgba(17, 183, 217, 0.14);
  --ink: #071923;
  --shadow: 0 18px 42px rgba(13, 27, 36, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(116deg, rgba(255, 138, 0, 0.12) 0 18%, transparent 18% 58%, rgba(17, 183, 217, 0.14) 58% 100%),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 44%, #ffffff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  width: 100%;
  overflow: hidden;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  font-size: 20px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(13, 27, 36, 0.18);
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #ff8a00, #ffb000);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(255, 138, 0, 0.30);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px rgba(255, 138, 0, 0.38);
}

.btn-dark {
  background: #0d1b24;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(13, 27, 36, 0.20);
}

.btn-dark:hover {
  box-shadow: 0 18px 38px rgba(13, 27, 36, 0.26);
}

.btn-ghost {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(255, 138, 0, 0.38);
  box-shadow: 0 14px 30px rgba(13, 27, 36, 0.10);
}

.hero {
  position: relative;
  padding: 32px 0 16px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(13, 27, 36, 0.035) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(13, 27, 36, 0.026) 0 1px, transparent 1px 78px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 82%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 52px;
  align-items: center;
}

.hero-copy {
  animation: fade-up 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #8a4100;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 18px;
}

.eyebrow img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.eyebrow span {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: "Unbounded", "Manrope", Inter, sans-serif;
  font-size: 54px;
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 800;
  overflow-wrap: break-word;
}

.hero-subtitle,
.page-hero p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
  max-width: 720px;
  overflow-wrap: anywhere;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.live-demo {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 26px 70px rgba(7, 25, 35, 0.24);
  isolation: isolate;
  animation: fade-up 0.7s 0.12s ease both;
}

.live-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.30), transparent 30%),
    linear-gradient(315deg, rgba(17, 183, 217, 0.25), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 24px);
  opacity: 0.72;
  z-index: -1;
}

.live-demo::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 188px;
  height: 188px;
  background: url("/assets/perevertysh-icon.png") center / contain no-repeat;
  opacity: 0.18;
  transform: rotate(-8deg);
  pointer-events: none;
  animation: mark-float 7s ease-in-out infinite;
}

.live-demo-top {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ff8a00;
}

.window-controls span:nth-child(2) {
  background: #ffb000;
}

.window-controls span:nth-child(3) {
  background: #11b7d9;
}

.live-demo-title {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 800;
}

.live-demo-body {
  padding: 22px;
}

.demo-row {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.demo-row-source {
  color: #ffcf8a;
}

.demo-row-result {
  color: #a5efff;
}

.demo-kicker {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.demo-text {
  min-height: 76px;
  font-family: "Unbounded", "Manrope", Inter, sans-serif;
  font-size: 30px;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.demo-result {
  color: #ffffff;
}

.demo-row-result .demo-text {
  text-shadow: 0 0 24px rgba(17, 183, 217, 0.34);
}

.demo-middle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
  padding: 14px 0;
}

.demo-key {
  width: 74px;
  height: 54px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  box-shadow: inset 0 -5px 0 rgba(7, 25, 35, 0.18), 0 14px 30px rgba(255, 138, 0, 0.22);
}

.demo-key.is-pressed {
  animation: key-press 0.46s ease;
}

.demo-status {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  font-size: 14px;
}

.demo-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.demo-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a00, #ffb000, #11b7d9);
}

.demo-track span.is-running {
  animation: progress-run 1s ease forwards;
}

.live-demo-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 22px;
}

.live-demo-footer span {
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.10);
  font-size: 12px;
  font-weight: 800;
}

.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.62em;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: caret 0.82s steps(2, end) infinite;
}

.section {
  padding: 54px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 26px;
}

.section h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 950;
}

.section-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step,
.feature,
.price-card,
.info-card,
.doc-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(16, 35, 60, 0.08);
}

.step {
  padding: 24px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: #8a4100;
  font-weight: 950;
  margin-bottom: 16px;
}

.step h3,
.feature h3,
.price-card h3,
.info-card h3,
.doc-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.step p,
.feature p,
.info-card p,
.doc-card p,
.price-card p,
li {
  color: var(--muted);
  line-height: 1.55;
}

.examples {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.example {
  background: #0d1b24;
  color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  font-weight: 950;
  font-size: 23px;
  letter-spacing: 0;
  box-shadow: 0 14px 30px rgba(13, 27, 36, 0.14);
}

.example span {
  color: #ffb000;
}

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

.feature {
  padding: 20px;
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #ffffff;
  font-size: 16px;
}

.price-wrap {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 20px;
  align-items: stretch;
}

.price-card {
  padding: 28px;
}

.price {
  margin: 10px 0 6px;
  font-size: 50px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
}

.muted {
  color: var(--muted);
}

.page-hero {
  padding: 76px 0 34px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.info-card,
.doc-card {
  padding: 24px;
}

.download-box {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta dt {
  color: var(--muted);
  font-weight: 700;
}

.meta dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
  overflow-wrap: anywhere;
}

ol,
ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.notice {
  margin-top: 18px;
  border-radius: 8px;
  background: var(--blue-soft);
  border: 1px solid rgba(255, 138, 0, 0.22);
  padding: 16px 18px;
  color: #5f3b19;
  line-height: 1.55;
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes key-press {
  0% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(5px);
    box-shadow: inset 0 -2px 0 rgba(7, 25, 35, 0.22), 0 8px 18px rgba(255, 138, 0, 0.16);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes progress-run {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes caret {
  0%, 49% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }
}

@keyframes mark-float {
  0%, 100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-10px) rotate(4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 880px) {
  .nav {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-grid,
  .price-wrap,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .steps,
  .examples,
  .features {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .live-demo {
    max-width: 640px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .btn {
    width: 100%;
  }

  .header-actions {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .eyebrow {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    max-width: 100%;
    align-items: flex-start;
    border-radius: 18px;
    font-size: 12px;
    line-height: 1.28;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 31px;
    line-height: 1.08;
  }

  .hero h1 span {
    display: block;
  }

  .hero-subtitle,
  .page-hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-grid,
  .hero-copy,
  .live-demo,
  .demo-row {
    min-width: 0;
  }

  .live-demo {
    border-radius: 12px;
  }

  .live-demo-top {
    padding: 0 14px;
  }

  .live-demo-title {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .live-demo-body {
    padding: 18px;
  }

  .live-demo-footer {
    padding: 0 18px 18px;
  }

  .demo-text {
    font-size: 22px;
    min-height: 66px;
  }

  .demo-status {
    font-size: 13px;
  }

  .live-demo-footer span {
    font-size: 11px;
  }

  .section {
    padding: 38px 0;
  }

  .section h2 {
    font-size: 32px;
  }
}
