/* ===========================================================
   КК — МАРКЕТИНГ / promarketingonline.ru
   Design tokens
   Color   ink #0A0A0A · paper #FAFAF8 · red #E1261C · red-deep #7A140F
   Type    display/body: Montserrat · utility/data: JetBrains Mono
   =========================================================== */

:root{
  --ink: #0a0a0a;
  --ink-soft: #141412;
  --paper: #fafaf8;
  --paper-dim: #f0efe9;
  --red: #e1261c;
  --red-deep: #7a140f;
  --muted-on-paper: #5b5b56;
  --muted-on-ink: #a6a69c;
  --line-on-paper: rgba(10,10,10,.13);
  --line-on-ink: rgba(255,255,255,.14);

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection{ background: var(--red); color: #fff; }

:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section{ padding-block: clamp(64px, 10vw, 120px); }
.section--ink{ background: var(--ink); color: var(--paper); }
.section--tight{ padding-block: clamp(40px, 6vw, 72px); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  color: var(--muted-on-paper);
}
.section--ink .eyebrow{ color: var(--muted-on-ink); }
.eyebrow::before{
  content: "";
  width: 18px; height: 2px;
  background: var(--red);
  display: inline-block;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0;
}

h2{ font-size: clamp(28px, 4vw, 44px); }
h3{ font-size: clamp(19px, 2vw, 23px); font-weight: 700; letter-spacing: -.01em; }

p{ margin: 0; }

.lede{
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted-on-paper);
  max-width: 56ch;
}
.section--ink .lede{ color: var(--muted-on-ink); }

/* --- signature element: highlighter mark --- */
.mark{
  position: relative;
  display: inline-block;
  color: #fff;
  padding: 0 .18em;
  font-weight: 800;
  white-space: nowrap;
}
.mark::before{
  content: "";
  position: absolute;
  inset: 6% -2%;
  background: var(--red);
  clip-path: polygon(0% 8%, 97% 0%, 100% 88%, 3% 100%);
  transform: rotate(-.6deg);
  z-index: -1;
}

/* ================= HEADER ================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,248,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-on-paper);
  transition: background .3s var(--ease);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.02em;
  display: flex;
  align-items: baseline;
  gap: .5em;
}
.brand small{
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted-on-paper);
}
.nav{
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.nav a{
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav a:not(.btn)::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--red);
  transition: right .25s var(--ease);
}
.nav a:not(.btn):hover::after{ right: 0; }
.nav-links{ display: flex; gap: clamp(16px, 2vw, 28px); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: .85em 1.4em;
  background: var(--ink);
  color: var(--paper) !important;
  border: 1px solid var(--ink);
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover{ background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.btn--red{ background: var(--red); border-color: var(--red); }
.btn--red:hover{ background: var(--red-deep); border-color: var(--red-deep); }
.btn--outline{ background: transparent; color: var(--paper) !important; border-color: var(--line-on-ink); }
.btn--outline:hover{ background: var(--red); border-color: var(--red); }

.menu-toggle{ display: none; }

/* ================= HERO ================= */
.hero{
  padding-block: clamp(56px, 10vw, 96px) clamp(48px, 8vw, 84px);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}
.hero h1{
  font-size: clamp(38px, 6vw, 76px);
  margin-top: 18px;
}
.hero h1.hero-h1--long{
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.25;
}
.hero-actions{
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-side{
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 6px;
}
.hero-side .lede{ max-width: 40ch; }
.hero-meta{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-on-paper);
  letter-spacing: .04em;
  border-top: 1px solid var(--line-on-paper);
  padding-top: 14px;
}

/* ================= COVER STRIP ================= */
.cover{
  background: var(--ink);
  border-top: 1px solid var(--line-on-ink);
  border-bottom: 1px solid var(--line-on-ink);
  padding-block: clamp(48px, 8vw, 88px);
}
.cover-text{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
  font-size: clamp(22px, 3.2vw, 38px);
  color: #fff;
  max-width: 48ch;
}
.cover-line{
  display: block;
}
.cover-line + .cover-line{
  margin-top: .35em;
}

/* ================= STATS ================= */
.stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-on-ink);
  border-top: 1px solid var(--line-on-ink);
  border-bottom: 1px solid var(--line-on-ink);
}
.stat{
  background: var(--ink);
  padding: clamp(28px, 4vw, 40px) clamp(16px, 2vw, 28px);
}
.stat .num{
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  color: var(--red);
  display: block;
  letter-spacing: -.02em;
}
.stat .label{
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted-on-ink);
  line-height: 1.5;
}

/* ================= ABOUT ================= */
.about-grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-photo{
  position: relative;
}
.about-photo img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line-on-paper);
}
.about-photo .tag{
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 14px;
}
.about-body{ padding-top: 6px; }
.about-name{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 2.1vw, 24px);
  letter-spacing: -.01em;
  margin-top: 14px;
  color: var(--ink);
}
.about-body h2{ margin-bottom: 22px; }
.about-body p + p{ margin-top: 16px; }
.about-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.about-tags span{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  border: 1px solid var(--line-on-paper);
  padding: 7px 12px;
  color: var(--muted-on-paper);
}

/* ================= SERVICES ================= */
.services-list{
  border-top: 1px solid var(--line-on-paper);
  margin-top: clamp(36px, 5vw, 56px);
}
.service-row{
  display: grid;
  grid-template-columns: 2fr 3fr auto;
  gap: 24px;
  align-items: center;
  padding-block: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line-on-paper);
  transition: padding-left .25s var(--ease), background .25s var(--ease);
}
.service-row:hover{ background: var(--paper-dim); padding-left: 14px; }
.service-row h3{ display: flex; align-items: center; gap: .5em; }
.service-row h3::before{
  content: "—";
  color: var(--red);
  font-weight: 700;
}
.service-row .desc{ color: var(--muted-on-paper); font-size: 15px; max-width: 48ch; }
.service-row .arrow{
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--red);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.service-row:hover .arrow{ opacity: 1; transform: translateX(0); }

/* ================= CASES (logo wall + reveal) ================= */
.cases-logos{
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line-on-paper);
  border: 1px solid var(--line-on-paper);
  margin-top: clamp(36px, 5vw, 56px);
}
.cases-logo-btn{
  flex: 1 1 220px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 26px;
  background: var(--paper);
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.cases-logo-btn:hover{ background: var(--paper-dim); }
.cases-logo-btn.is-active{ background: var(--paper-dim); border-bottom-color: var(--red); }
.cases-logo-btn img{
  height: 88px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .5;
  transition: opacity .2s var(--ease), filter .2s var(--ease);
}
.cases-logo-stack{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cases-logo-stack img{ height: 64px; }
.cases-logo-label{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-on-paper);
  opacity: .6;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.cases-logo-btn:hover .cases-logo-label,
.cases-logo-btn.is-active .cases-logo-label{
  opacity: 1;
  color: var(--ink);
}
.cases-logo-btn:hover img,
.cases-logo-btn.is-active img{
  filter: none;
  opacity: 1;
}

.cases-detail{
  border: 1px solid var(--line-on-paper);
  border-top: none;
  position: relative;
}
.cases-detail-panel{
  display: none;
  padding: clamp(28px, 3.5vw, 40px);
}
.cases-detail-panel.is-active{
  display: block;
  animation: caseFade .35s var(--ease);
}
@keyframes caseFade{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: none; }
}
.cases-detail-panel h3{ margin-bottom: 12px; }
.cases-detail-panel .case-role{
  color: var(--muted-on-paper);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.cases-detail-panel .case-role strong{
  color: var(--ink);
  font-weight: 700;
}
.case-position{
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-on-paper);
}
.case-list{
  list-style: none;
  counter-reset: case-item;
  margin: 0 0 16px;
  padding: 0;
}
.case-list li{
  counter-increment: case-item;
  position: relative;
  padding-left: 2.2em;
  margin-bottom: 12px;
  color: var(--muted-on-paper);
  font-size: 14px;
  line-height: 1.5;
}
.case-list li::before{
  content: counter(case-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--red);
}
.cases-detail-panel .case-result{
  padding-top: 18px;
  border-top: 1px solid var(--line-on-paper);
}
.cases-detail-panel .case-result .num{
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--red);
  display: block;
  letter-spacing: -.01em;
}
.cases-detail-panel .case-result .label{
  display: block;
  font-size: 13px;
  color: var(--muted-on-paper);
  margin-top: 8px;
  line-height: 1.5;
}
.case-sites{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
}
.case-sites .case-site{ margin-top: 0; }
.case-site{
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-on-paper);
  padding-bottom: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.case-site:hover{ color: var(--red); border-color: var(--red); }

/* ================= PROCESS ================= */
.process-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line-on-ink);
  margin-top: clamp(36px, 5vw, 56px);
}
.process-step{
  background: var(--ink);
  padding: clamp(22px, 3vw, 30px) clamp(14px, 2vw, 20px);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.process-step .idx{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
}
.process-step h3{ color: #fff; margin-top: 22px; font-size: 17px; }
.process-step p{ color: var(--muted-on-ink); font-size: 13.5px; margin-top: 10px; }
.process-note{
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line-on-ink);
  display: grid;
  gap: 12px;
}
.process-note p{
  color: var(--muted-on-ink);
  font-size: 14px;
  line-height: 1.6;
}
.process-note strong{
  color: #fff;
  font-weight: 700;
}

/* ================= CTA ================= */
.cta{
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.cta h2{ font-size: clamp(32px, 5vw, 54px); }
.cta-panel{
  border: 1px solid var(--line-on-ink);
  padding: clamp(24px, 3vw, 32px);
}
.cta-panel .row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 14px;
  border-bottom: 1px solid var(--line-on-ink);
  font-family: var(--font-mono);
  font-size: 13px;
}
.cta-panel .row:last-child{ border-bottom: none; }
.cta-panel .row span:first-child{ color: var(--muted-on-ink); text-transform: uppercase; letter-spacing: .08em; }
.cta-panel .row a{ font-weight: 700; }
.cta-panel .row a:hover{ color: var(--red); }
.cta .btn{ margin-top: 28px; }

/* ================= FOOTER ================= */
.site-footer{
  border-top: 1px solid var(--line-on-ink);
  padding-block: 32px;
}
.footer-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-on-ink);
  letter-spacing: .04em;
}
.footer-row a:hover{ color: var(--red); }

/* ================= REVEAL ANIMATION ================= */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px){
  .hero-grid, .about-grid, .cta{ grid-template-columns: 1fr; }
  .hero-side{ order: 2; }
  .stats{ grid-template-columns: repeat(2, 1fr); }
  .process-grid{ grid-template-columns: repeat(2, 1fr); }
  .service-row{ grid-template-columns: 1fr; gap: 8px; }
  .service-row .arrow{ display: none; }
}
@media (max-width: 720px){
  .nav-links{
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 76px);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px var(--pad);
    gap: 22px;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
  }
  .nav-links.is-open{ transform: translateX(0); }
  .menu-toggle{
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--line-on-paper);
    font-family: var(--font-mono);
  }
  .nav > .btn{ display: none; }
}
@media (max-width: 560px){
  .process-grid{ grid-template-columns: 1fr; }
  .cases-logo-btn{ flex: 0 1 45%; height: 130px; padding: 16px; }
  .cases-logo-btn img{ height: 68px; }
  .cases-logo-stack img{ height: 50px; }
}
