/* Outstaff Engine — brutalist / raw */

:root {
  --paper: #fafaf7;
  --paper-2: #f0f0e8;
  --ink: #0a0a0a;
  --acid: #f4ee2a;
  --acid-deep: #cdc100;
  --hot: #ff4f1f;
  --rule: #0a0a0a;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1500px;
  --display: "Anton", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;
  --sans: "JetBrains Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 2; }

/* ────── HEAD ────── */
.head {
  border-bottom: 4px solid var(--ink);
  background: var(--acid);
  position: relative;
  z-index: 50;
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  max-width: var(--max);
  margin: 0 auto;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark .b-square {
  width: 28px;
  height: 28px;
  background: var(--ink);
  position: relative;
}
.brand-mark .b-square::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--acid);
}
.brand-name {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name span { font-weight: 400; opacity: 0.7; }
.nav { display: flex; gap: 22px; }
.nav a {
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.1s;
}
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--ink); }
.head-right { display: flex; gap: 24px; align-items: center; }
.head-status { display: flex; gap: 8px; align-items: center; }
.head-status::before { content: ""; width: 10px; height: 10px; background: var(--ink); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.3 } }
.menu-toggle { display: none; background: var(--ink); color: var(--acid); border: none; padding: 8px 14px; font-family: var(--mono); font-size: 12px; font-weight: 700; cursor: pointer; text-transform: uppercase; }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 18px var(--gutter); background: var(--acid); border-bottom: 4px solid var(--ink); }
  .nav.open { display: flex; }
  .head-status { display: none; }
}

/* ────── HERO ────── */
.hero {
  background: var(--acid);
  padding: clamp(40px, 6vw, 90px) 0 0;
  border-bottom: 4px solid var(--ink);
  position: relative;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(60px, 14vw, 280px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero h1 .strike { text-decoration: line-through; text-decoration-thickness: 12px; opacity: 0.55; }
.hero h1 .stroke { -webkit-text-stroke: 2px var(--ink); color: transparent; }
.hero h1 .hot { background: var(--ink); color: var(--acid); padding: 0 0.1em; }

.hero-sub {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 50px;
  align-items: end;
}
@media (max-width: 900px) { .hero-sub { grid-template-columns: 1fr; gap: 24px; } }
.hero-sub p { font-weight: 500; }
.hero-sub p strong { background: var(--ink); color: var(--acid); padding: 1px 6px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 4px solid var(--ink);
}
@media (max-width: 800px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.hero-stat {
  padding: 22px 18px;
  border-right: 2px solid var(--ink);
  background: var(--acid);
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 8px;
  display: block;
}

/* ────── MARQUEE ────── */
.marquee {
  background: var(--ink);
  color: var(--acid);
  padding: 16px 0;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.marquee-track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 28s linear infinite;
}
.marquee-track span::before { content: "★"; margin-right: 60px; color: var(--acid); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ────── SECTION ────── */
.section { padding: clamp(60px, 9vw, 130px) 0; border-bottom: 4px solid var(--ink); position: relative; }

.section-tag {
  display: inline-block;
  background: var(--ink);
  color: var(--acid);
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 18ch;
}
.section-title .acid { background: var(--acid); padding: 0 0.1em; }
.section-title .stroke { -webkit-text-stroke: 2px var(--ink); color: transparent; }
.section-lead { max-width: 60ch; font-size: 17px; line-height: 1.55; margin-top: 22px; font-weight: 500; }

/* ────── PRICE TABLE ────── */
.prices {
  margin-top: 50px;
  border: 4px solid var(--ink);
  background: var(--paper);
}
.prices-row {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  border-bottom: 2px solid var(--ink);
  padding: 22px 28px;
  align-items: baseline;
  gap: 24px;
}
.prices-row:last-child { border-bottom: none; }
.prices-row:hover { background: var(--acid); }
@media (max-width: 800px) { .prices-row { grid-template-columns: 1fr; padding: 18px 20px; } }
.prices-role {
  font-family: var(--display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}
.prices-detail { font-size: 14px; line-height: 1.55; }
.prices-rate {
  font-family: var(--display);
  font-size: 36px;
  text-align: right;
  letter-spacing: -0.01em;
  line-height: 1;
}
.prices-rate small {
  font-family: var(--mono);
  font-size: 12px;
  display: block;
  margin-top: 6px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 800px) { .prices-rate { text-align: left; } }

/* ────── MODELS ────── */
.models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 50px;
  border: 4px solid var(--ink);
}
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } }
.model {
  padding: 36px 28px;
  border-right: 2px solid var(--ink);
  background: var(--paper);
  position: relative;
}
.model:last-child { border-right: none; }
.model:nth-child(2) { background: var(--acid); }
@media (max-width: 900px) {
  .model { border-right: none; border-bottom: 2px solid var(--ink); }
  .model:last-child { border-bottom: none; }
}
.model-num {
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.model h3 {
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  line-height: 1.05;
}
.model p { font-size: 14px; line-height: 1.55; }
.model ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.model ul li {
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--ink);
}
.model ul li::before { content: "→ "; font-weight: 700; }

/* ────── CASES ────── */
.cases-list {
  display: grid;
  gap: 0;
  margin-top: 50px;
  border-top: 4px solid var(--ink);
}
.case-card {
  border-bottom: 4px solid var(--ink);
  padding: 36px 0;
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .case-card { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; } }
.case-card:hover { background: var(--acid); padding-inline: 24px; transition: padding 0.15s, background 0.15s; }

.case-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.7;
}
.case-meta strong {
  display: block;
  font-family: var(--display);
  font-size: 60px;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 400;
}
.case-body h3 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 44px);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.case-body h3 .stroke { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.case-body p { font-size: 15px; line-height: 1.6; }
.case-body p + p { margin-top: 8px; }
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.case-stack span {
  font-size: 12px;
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}

.case-result {
  background: var(--ink);
  color: var(--acid);
  padding: 18px 20px;
  font-family: var(--display);
  font-size: 50px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: center;
}
.case-result small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 400;
  margin-top: 8px;
  opacity: 0.85;
  text-transform: uppercase;
}

/* ────── PROCESS ────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 50px;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-steps { grid-template-columns: 1fr; } }
.process-step {
  padding: 24px 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
  margin-right: -2px;
  margin-bottom: -2px;
}
.process-step:nth-child(odd) { background: var(--acid); }
.process-step strong {
  display: block;
  font-family: var(--display);
  font-size: 60px;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}
.process-step h4 {
  font-family: var(--display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.1;
}
.process-step p { font-size: 13px; line-height: 1.55; }

/* ────── TEAM ────── */
.team-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 50px;
  border: 4px solid var(--ink);
}
@media (max-width: 900px) { .team-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-row { grid-template-columns: 1fr; } }
.tm {
  padding: 24px 20px;
  border-right: 2px solid var(--ink);
  background: var(--paper);
  position: relative;
}
.tm:last-child { border-right: none; }
.tm:nth-child(odd) { background: var(--paper-2); }
.tm-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-weight: 700;
}
.tm-avatar {
  width: 60px;
  height: 60px;
  background: var(--ink);
  color: var(--acid);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.tm-avatar.acid { background: var(--acid); color: var(--ink); border: 2.5px solid var(--ink); }
.tm-name {
  font-family: var(--display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  line-height: 1.1;
}
.tm-role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ────── FAQ ────── */
.faq { border-top: 4px solid var(--ink); margin-top: 30px; }
.faq-item { border-bottom: 2px solid var(--ink); padding: 22px 0; cursor: pointer; transition: background 0.1s; }
.faq-item:hover { background: var(--acid); padding-inline: 16px; }
.faq-item.open { background: var(--acid); padding-inline: 16px; }
.faq-q {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  gap: 24px;
}
.faq-q::after {
  content: "[+]";
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: "[−]"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  font-size: 15px;
  line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 600px; padding-top: 14px; }

/* ────── CTA ────── */
.cta {
  background: var(--ink);
  color: var(--acid);
  padding: clamp(60px, 9vw, 130px) 0;
  position: relative;
}
.cta h2 {
  font-family: var(--display);
  font-size: clamp(50px, 9vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.cta h2 .stroke { -webkit-text-stroke: 2.5px var(--acid); color: transparent; }
.cta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  margin-top: 60px;
  align-items: end;
}
@media (max-width: 800px) { .cta-row { grid-template-columns: 1fr; } }
.cta-side {
  font-size: 13px;
  line-height: 1.7;
  max-width: 36ch;
  opacity: 0.8;
}
.cta-side a { color: var(--acid); border-bottom: 1px solid; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 22px 32px;
  background: var(--acid);
  color: var(--ink);
  border: 3px solid var(--acid);
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.1s, color 0.1s;
}
.btn:hover { background: transparent; color: var(--acid); }
.btn-ghost { background: transparent; color: var(--acid); border-color: var(--acid); }
.btn-ghost:hover { background: var(--acid); color: var(--ink); }

/* ────── FOOTER ────── */
.foot {
  background: var(--paper);
  font-size: 12px;
  padding: 50px 0 32px;
  letter-spacing: 0.04em;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h4 {
  font-family: var(--display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.foot a { display: block; margin-bottom: 6px; text-transform: uppercase; }
.foot a:hover { background: var(--acid); }
.foot-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  text-transform: uppercase;
}

/* ────── PAGE ────── */
.page-head {
  padding: clamp(50px, 8vw, 100px) 0;
  border-bottom: 4px solid var(--ink);
  background: var(--acid);
}
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(60px, 12vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.page-head h1 .stroke { -webkit-text-stroke: 2px var(--ink); color: transparent; }
.page-head p { max-width: 56ch; font-size: 17px; line-height: 1.55; margin-top: 28px; font-weight: 500; }

.prose { max-width: 70ch; font-size: 16px; line-height: 1.65; }
.prose h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 56px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 50px 0 16px;
  line-height: 1;
}
.prose h3 {
  font-family: var(--display);
  font-size: 24px;
  text-transform: uppercase;
  margin: 32px 0 10px;
  letter-spacing: 0.01em;
}
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 14px 0; padding-left: 0; list-style: none; }
.prose ul li { padding: 6px 0; padding-left: 22px; position: relative; border-bottom: 1px dashed var(--ink); }
.prose ul li::before { content: "→"; position: absolute; left: 0; font-weight: 700; }
.prose strong { background: var(--acid); padding: 1px 4px; }
.prose a { font-weight: 700; border-bottom: 2px solid var(--ink); padding-bottom: 1px; }

/* ────── COOKIE BANNER ────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--acid);
  padding: 18px var(--gutter);
  z-index: 100;
  border-top: 4px solid var(--acid);
  display: flex; gap: 18px; align-items: center;
  animation: cb-up 0.4s ease;
}
.cookie-banner__inner {
  display: flex; gap: 18px; align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.cookie-banner__text {
  font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1.55;
  margin: 0; flex: 1; letter-spacing: 0.02em; text-transform: uppercase;
}
.cookie-banner__text a { color: var(--acid); border-bottom: 2px solid; padding-bottom: 1px; }
.cookie-banner__btn {
  background: var(--acid); color: var(--ink);
  border: 2px solid var(--acid);
  padding: 12px 22px;
  font-family: var(--display); font-size: 18px;
  text-transform: uppercase; letter-spacing: 0.02em;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.1s, color 0.1s;
}
.cookie-banner__btn:hover { background: transparent; color: var(--acid); }
.cookie-banner.is-hidden { opacity: 0; transform: translateY(20px); transition: all 0.3s; }
@keyframes cb-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-banner__btn { align-self: flex-start; }
}
