/* ============================================================
   МАСТЕРСКАЯ В ОБЛАКЕ — redesign concept
   Dark editorial / awwwards direction
   ============================================================ */


:root{
  /* ---- color: change --accent-h to re-hue the entire site ---- */
  --accent-h: 256;
  --accent-c: 0.205;
  --accent: oklch(0.62 var(--accent-c) var(--accent-h));
  --accent-bright: oklch(0.72 0.16 calc(var(--accent-h) - 24));
  --accent-deep: oklch(0.42 0.16 var(--accent-h));

  --bg:    oklch(0.165 0.018 var(--accent-h));
  --bg-2:  oklch(0.205 0.022 var(--accent-h));
  --line:  oklch(0.32 0.02 var(--accent-h));
  --fg:    oklch(0.975 0.004 var(--accent-h));
  --muted: oklch(0.66 0.018 var(--accent-h));
  --faint: oklch(0.46 0.018 var(--accent-h));

  --maxw: 1680px;
  --pad: clamp(20px, 4.5vw, 88px);

  --f-display: 'Onest', sans-serif;
  --f-body: 'Onest', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }

html{ -webkit-text-size-adjust: 100%; }
body{
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
@media (pointer: coarse){ body{ cursor: auto; } }

::selection{ background: var(--accent); color: var(--fg); }

a{ color: inherit; text-decoration: none; }
img, svg{ display: block; max-width: 100%; }

/* ---- film grain + vignette overlays ---- */
.grain{
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 9000;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain{
  0%{ transform: translate(0,0); } 50%{ transform: translate(-3%,2%); } 100%{ transform: translate(2%,-2%); }
}
.vignette{
  position: fixed; inset: 0; pointer-events: none; z-index: 8000;
  background: radial-gradient(130% 100% at 50% 0%, transparent 55%, oklch(0.1 0.02 var(--accent-h) / 0.55) 100%);
}

/* ---- custom cursor ---- */
.cursor{
  position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-bright);
  transform: translate(-50%,-50%);
  mix-blend-mode: screen;
}
.cursor-ring{
  position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid oklch(0.8 0.05 var(--accent-h) / 0.55);
  transform: translate(-50%,-50%);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.cursor-ring.hot{
  width: 74px; height: 74px;
  border-color: transparent;
  background: oklch(0.62 0.205 var(--accent-h) / 0.18);
}
@media (pointer: coarse){ .cursor, .cursor-ring{ display: none; } }

/* ---- shared layout ---- */
.wrap{ max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.grid12{ display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 1.6vw, 28px); }

.mono{ font-family: var(--f-mono); font-weight: 400; font-size: clamp(10px, 0.78vw, 13px);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mono.accent{ color: var(--accent-bright); }

.idx{ font-family: var(--f-mono); font-size: clamp(11px,0.8vw,13px); letter-spacing: 0.1em; color: var(--faint); }

.kicker{ display: inline-flex; align-items: center; gap: 10px; }
.kicker .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright);
  box-shadow: 0 0 0 4px oklch(0.62 0.205 var(--accent-h) / 0.2); }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 7000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  mix-blend-mode: difference;
}
.nav .brand{ display: flex; align-items: center; gap: 12px; font-family: var(--f-display);
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: #fff; }
.nav .brand .mark{ width: 28px; height: 28px; border-radius: 50%; flex: none; }
.nav-links{ display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav-links a{ font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; opacity: 0.8; }
.nav-links a:hover{ opacity: 1; }
.nav .tel{ font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em; color: #fff; }
.nav-links a[aria-current="page"]{ opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 1180px){ .nav-links{ display: none; } }

/* burger + mobile menu */
.burger{ display: none; position: relative; width: 44px; height: 44px; margin-left: 12px;
  background: none; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; cursor: inherit; }
.burger span{ position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff;
  transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1){ top: 17px; }
.burger span:nth-child(2){ top: 25px; }
.menu-open .burger span:nth-child(1){ top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2){ top: 21px; transform: rotate(-45deg); }
@media (max-width: 1180px){ .burger{ display: block; } .nav .tel{ margin-left: auto; } }
@media (max-width: 560px){ .nav .tel{ display: none; } }

.m-menu{ position: fixed; inset: 0; z-index: 6900; background: var(--bg);
  padding: calc(100px + env(safe-area-inset-top, 0px)) var(--pad) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.menu-open .m-menu{ opacity: 1; visibility: visible; }
.menu-open{ overflow: hidden; }
.m-links{ display: flex; flex-direction: column; }
.m-links a{ font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em;
  font-size: clamp(30px, 8vw, 64px); line-height: 1.1; padding-block: 4px; border-bottom: 1px solid var(--line); }
.m-links a[aria-current="page"]{ color: var(--accent-bright); }
.m-contacts{ display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 1181px){ .m-menu{ display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero{ position: relative; min-height: 100svh; padding-top: clamp(96px, 14vh, 180px);
  display: flex; flex-direction: column; justify-content: space-between; }

.hero-aurora{ position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; right: -12vw; top: -10vw; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0%, transparent 62%);
  filter: blur(40px); opacity: 0.5; }

.hero-top{ position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap; }
.hero-top .lead{ max-width: 30ch; color: var(--muted); font-size: clamp(15px, 1.15vw, 19px); line-height: 1.55; }
.hero-top .lead b{ color: var(--fg); font-weight: 600; }

.hero-title{ position: relative; z-index: 2; margin-top: auto; }
.hero-title h1{
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(40px, 10.5vw, 180px);
  line-height: 0.92; letter-spacing: -0.025em;
  text-transform: uppercase;
}
.hero-title .l{ display: block; overflow: hidden; max-width: 100%; }
.hero-title .l span{ display: inline-block; will-change: transform; }
.hero-title .l2{ padding-left: 0.06em; }
.hero-title .outline{
  -webkit-text-stroke: clamp(1px, 0.16vw, 3px) var(--fg);
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-title .cloud{ color: var(--accent-bright); }

.hero-bottom{ position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; padding-block: clamp(22px, 3.5vh, 48px); flex-wrap: wrap; }
.hero-cta{ display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn{
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 18px 30px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--fg); color: var(--bg); font-weight: 500;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.btn .arrow{ transition: transform .4s var(--ease); }
.btn:hover{ background: var(--accent); color: #fff; }
.btn:hover .arrow{ transform: translateX(5px); }
.btn.ghost{ background: transparent; color: var(--fg); }
.btn.ghost:hover{ background: var(--fg); color: var(--bg); border-color: var(--fg); }

.scroll-hint{ display: flex; align-items: center; gap: 12px; color: var(--muted); }
.scroll-hint .bar{ width: 46px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint .bar::after{ content:''; position: absolute; inset: 0; width: 40%; background: var(--accent-bright);
  animation: slide 1.8s var(--ease) infinite; }
@keyframes slide{ 0%{ transform: translateX(-110%);} 100%{ transform: translateX(260%);} }

/* ============================================================
   TICKER
   ============================================================ */
.ticker{ border-block: 1px solid var(--line); overflow: hidden; padding-block: clamp(14px, 1.6vw, 22px); white-space: nowrap; }
.ticker-track{ display: inline-flex; gap: 0; will-change: transform; }
.ticker-track .item{ font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px, 3vw, 46px); letter-spacing: -0.02em; padding-inline: clamp(20px, 2.4vw, 44px); }
.ticker-track .item .star{ color: var(--accent-bright); padding-left: clamp(20px,2.4vw,44px); }
.ticker-track .item.muted{ color: transparent; -webkit-text-stroke: 1px var(--faint); }

/* ============================================================
   METRICS
   ============================================================ */
.section{ position: relative; padding-block: clamp(80px, 11vh, 180px); }
.section-head{ display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(40px, 6vh, 90px); }
.section-head .idx{ flex: none; }
.section-head h2{ font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(13px, 1vw, 15px); letter-spacing: 0.04em; color: var(--muted); }

.metrics{ display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(28px,3vw,60px) clamp(16px,1.6vw,28px); align-items: end; }
.metric{ position: relative; }
.metric:nth-child(1){ grid-column: 1 / span 6; }
.metric:nth-child(2){ grid-column: 8 / span 5; transform: translateY(clamp(0px,5vw,80px)); }
.metric:nth-child(3){ grid-column: 3 / span 8; }
.metric .num{ font-family: var(--f-display); font-weight: 800; line-height: 1;
  font-size: clamp(44px, 8vw, 128px); letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  display: inline-block; }
.metric .num .suf{ color: var(--accent-bright); }
.metric .cap{ margin-top: 14px; max-width: 22ch; color: var(--muted); font-size: clamp(14px,1vw,17px); }
.metric .cap b{ color: var(--fg); font-weight: 600; }

@media (max-width: 760px){
  .metric:nth-child(1),.metric:nth-child(2),.metric:nth-child(3){ grid-column: 1 / -1; transform: none; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.serv-intro{ display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(16px,1.6vw,28px); align-items: end;
  margin-bottom: clamp(48px,7vh,96px); }
.serv-intro h3{ grid-column: 1 / span 9; font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 5vw, 92px); line-height: 0.94; letter-spacing: -0.025em; }
.serv-intro h3 em{ font-style: normal; color: var(--accent-bright); }
.serv-intro .note{ grid-column: 11 / span 2; color: var(--muted); font-size: 15px; }
@media (max-width: 860px){ .serv-intro h3{ grid-column:1/-1;} .serv-intro .note{ grid-column:1/-1;} }

.products{ display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(16px,1.6vw,28px); }
@media (max-width: 860px){ .products{ grid-template-columns: 1fr; } }
.product{ position: relative; border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px,2.6vw,46px);
  background: var(--bg-2); overflow: hidden; min-height: clamp(320px, 38vw, 480px);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .5s var(--ease), transform .6s var(--ease); }
.product:hover{ border-color: var(--accent); }
.product .glow{ position: absolute; width: 360px; height: 360px; border-radius: 50%; filter: blur(60px);
  background: var(--accent); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.product:hover .glow{ opacity: 0.28; }
.product .top{ display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; }
.product h4{ font-family: var(--f-display); font-weight: 700; font-size: clamp(28px,3.4vw,56px); line-height: 0.96;
  letter-spacing: -0.025em; position: relative; z-index: 2; }
.product .desc{ color: var(--muted); max-width: 42ch; margin-top: 18px; font-size: clamp(14px,1vw,17px); position: relative; z-index: 2; }
.product .foot{ display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; position: relative; z-index: 2; margin-top: 30px; }
.product .price{ font-family: var(--f-display); font-weight: 600; font-size: clamp(18px,1.5vw,24px); }
.product .price small{ display:block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase; margin-bottom: 6px; }
.product .pill{ font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }

/* capabilities list */
.caps{ margin-top: clamp(16px,1.6vw,28px); border-top: 1px solid var(--line); }
.cap-row{ display: grid; grid-template-columns: 60px 1fr auto; gap: clamp(16px,2vw,40px); align-items: center;
  padding: clamp(22px,2.4vw,40px) 0; border-bottom: 1px solid var(--line); position: relative; }
.cap-row .n{ font-family: var(--f-mono); color: var(--faint); font-size: 13px; }
.cap-row .t{ font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(22px,3.6vw,52px); line-height: 1.0; white-space: nowrap; transition: color .4s var(--ease); }
.cap-row:hover .t{ color: var(--accent-bright); }
.cap-row .d{ max-width: 38ch; color: var(--muted); font-size: clamp(13px,0.95vw,16px); justify-self: end; text-align: right; }
@media (max-width: 760px){
  .cap-row{ grid-template-columns: 40px 1fr; }
  .cap-row .t{ white-space: normal; }
  .cap-row .d{ grid-column: 1 / -1; text-align: left; justify-self: start; }
}

/* ============================================================
   PROCESS
   ============================================================ */
.process{ background: var(--bg-2); border-block: 1px solid var(--line); }
.proc-head{ display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(16px,1.6vw,28px); align-items: end; margin-bottom: clamp(40px,6vh,80px); }
.proc-head h3{ grid-column: 1 / span 7; font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px,8vw,140px); line-height: 0.9; letter-spacing: -0.025em; }
.proc-head h3 .d30{ color: var(--accent-bright); }
.proc-head .note{ grid-column: 9 / span 4; color: var(--muted); font-size: clamp(15px,1.1vw,18px); }
@media (max-width:860px){ .proc-head h3{ grid-column:1/-1;} .proc-head .note{ grid-column:1/-1;} }

.steps{ display: grid; grid-template-columns: repeat(5,1fr); gap: clamp(12px,1.4vw,24px); }
@media (max-width: 980px){ .steps{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .steps{ grid-template-columns: 1fr;} }
.step{ border-top: 2px solid var(--line); padding-top: 20px; transition: border-color .5s var(--ease); }
.step:hover{ border-color: var(--accent); }
.step .day{ font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent-bright); text-transform: uppercase; }
.step h5{ font-family: var(--f-display); font-weight: 700; font-size: clamp(20px,1.8vw,28px); margin-top: 60px; letter-spacing: -0.02em; }
.step p{ color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ============================================================
   CASES
   ============================================================ */
.cases-grid{ display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(16px,1.6vw,28px); }
.case{ position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.case:nth-child(1){ grid-column: 1 / span 7; aspect-ratio: 16/10; }
.case:nth-child(2){ grid-column: 8 / span 5; aspect-ratio: 4/5; transform: translateY(clamp(0px,3vw,48px)); }
.case:nth-child(3){ grid-column: 3 / span 5; aspect-ratio: 4/3; }
.case:nth-child(4){ grid-column: 9 / span 4; aspect-ratio: 1/1; transform: translateY(clamp(0px,-3vw,-48px)); }
@media (max-width: 860px){ .case{ grid-column:1/-1 !important; transform:none !important; aspect-ratio: 16/10 !important; } }
.ph{ position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, oklch(0.24 0.02 var(--accent-h)) 0 14px, oklch(0.21 0.02 var(--accent-h)) 14px 28px);
  display: flex; align-items: flex-end; padding: 22px; }
.case .meta{ position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; width: 100%; }
.case .meta .t{ font-family: var(--f-display); font-weight: 700; font-size: clamp(18px,1.8vw,26px); letter-spacing: -0.02em; }
.case .meta .tag{ font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.case .ph-label{ position: absolute; top: 18px; left: 18px; z-index: 2; }

/* ============================================================
   CTA / FOOTER
   ============================================================ */
.cta{ position: relative; overflow: hidden; padding-block: clamp(90px, 14vh, 200px); }
.cta .big{ font-family: var(--f-display); font-weight: 800; text-transform: uppercase; text-align: center;
  font-size: clamp(44px, 11vw, 200px); line-height: 0.9; letter-spacing: -0.025em; }
.cta .big em{ font-style: normal; color: var(--accent-bright); }
.cta-sub{ text-align: center; max-width: 46ch; margin: clamp(26px,4vh,46px) auto 0; color: var(--muted); font-size: clamp(15px,1.2vw,20px); }
.cta-actions{ display: flex; gap: 16px; justify-content: center; margin-top: clamp(30px,4vh,52px); flex-wrap: wrap; }

.footer{ border-top: 1px solid var(--line); padding-block: clamp(48px,7vh,90px); }
.foot-grid{ display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(20px,2vw,40px) clamp(16px,1.6vw,28px); }
.foot-grid .col{ display: flex; flex-direction: column; gap: 12px; }
.foot-grid .c-brand{ grid-column: 1 / span 4; }
.foot-grid .c-nav{ grid-column: 6 / span 2; }
.foot-grid .c-contact{ grid-column: 8 / span 3; }
.foot-grid .c-social{ grid-column: 11 / span 2; }
@media (max-width: 860px){ .foot-grid > *{ grid-column: 1 / -1 !important; } }
.foot-grid h6{ font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.foot-grid a{ color: var(--muted); font-size: 15px; transition: color .3s var(--ease); }
.foot-grid a:hover{ color: var(--accent-bright); }
.foot-grid .c-brand .logo{ display: flex; align-items: center; gap: 12px; font-family: var(--f-display);
  font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--fg); }
.foot-grid .c-brand .logo img{ width: 26px; height: 26px; border-radius: 50%; flex: none; }
.foot-grid .c-brand p{ color: var(--muted); font-size: 14px; max-width: 30ch; }
.foot-base{ display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(40px,6vh,80px); padding-top: 26px; border-top: 1px solid var(--line); color: var(--faint); }
.foot-base .mono{ color: var(--faint); }

/* giant footer wordmark */
.foot-mark{ font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(56px, 19vw, 360px); line-height: 0.86; letter-spacing: -0.025em;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  white-space: nowrap; margin-top: clamp(40px,6vh,80px); user-select: none;
  display: flex; }

/* ============================================================
   SERVICE PAGE (inner pages: services/*.html)
   ============================================================ */
.service-hero{ position: relative; overflow: hidden;
  padding-top: clamp(120px, 16vh, 200px); padding-bottom: clamp(60px, 8vh, 100px); }
.service-hero .kicker{ margin-bottom: clamp(20px,3vh,32px); }
.service-hero .kicker a{ color: var(--accent-bright); }
.service-title{ position: relative; z-index: 2; font-family: var(--f-display); font-weight: 800;
  text-transform: uppercase; font-size: clamp(40px, 8vw, 140px); line-height: 0.92; letter-spacing: -0.025em; }
.service-title em{ font-style: normal; color: var(--accent-bright); }
.service-hero .lead{ position: relative; z-index: 2; max-width: 54ch; color: var(--muted);
  font-size: clamp(16px, 1.3vw, 20px); margin-top: clamp(20px,3vh,32px); }
.service-hero .hero-cta{ position: relative; z-index: 2; margin-top: clamp(28px,4vh,48px); }

.pricing-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,1.6vw,28px); }
@media (max-width: 980px){ .pricing-grid{ grid-template-columns: 1fr; } }
.price-card{ border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px,2.6vw,40px);
  background: var(--bg-2); display: flex; flex-direction: column; gap: 18px; min-height: 100%;
  transition: border-color .5s var(--ease); }
.price-card:hover{ border-color: var(--accent); }
.price-card.featured{ border-color: var(--accent);
  background: linear-gradient(180deg, oklch(0.225 0.03 var(--accent-h)), var(--bg-2)); }
.price-card .pc-name{ font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); }
.price-card .pc-price{ font-family: var(--f-display); font-weight: 800; font-size: clamp(26px,2.8vw,40px);
  letter-spacing: -0.02em; }
.price-card .pc-price small{ display: block; font-family: var(--f-mono); font-size: 11px; color: var(--faint);
  font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.price-card ul{ list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 14px; }
.price-card ul li{ display: flex; gap: 10px; align-items: flex-start; }
.price-card ul li::before{ content: '✦'; color: var(--accent-bright); flex: none; font-size: 11px; margin-top: 3px; }
.price-card .btn{ margin-top: auto; align-self: flex-start; }

.use-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,1.6vw,28px); }
@media (max-width: 860px){ .use-grid{ grid-template-columns: 1fr; } }
.use-card{ border-top: 2px solid var(--line); padding-top: 20px; transition: border-color .5s var(--ease); }
.use-card:hover{ border-color: var(--accent); }
.use-card .mono{ color: var(--accent-bright); }
.use-card h5{ font-family: var(--f-display); font-weight: 700; font-size: clamp(20px,1.8vw,26px);
  margin-top: 14px; letter-spacing: -0.02em; }
.use-card p{ color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ============================================================
   CASES LIST (cases/index.html)
   ============================================================ */
.cases-list-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,1.6vw,28px); }
@media (max-width: 860px){ .cases-list-grid{ grid-template-columns: 1fr; } }
.case-card{ position: relative; display: block; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4/3; transition: border-color .5s var(--ease); }
.case-card:hover{ border-color: var(--accent); }
.case-card .ph{ position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, oklch(0.24 0.02 var(--accent-h)) 0 14px, oklch(0.21 0.02 var(--accent-h)) 14px 28px);
  display: flex; align-items: flex-end; padding: 22px; }
.case-card .ph-label{ position: absolute; top: 18px; left: 18px; z-index: 2; }
.case-card .meta{ position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; width: 100%; gap: 12px; }
.case-card .meta .t{ font-family: var(--f-display); font-weight: 700; font-size: clamp(16px,1.6vw,22px); letter-spacing: -0.02em; }
.case-card .meta .tag{ font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; flex: none; }

/* ============================================================
   CASE DETAIL (cases/*.html)
   ============================================================ */
.case-hero-ph{ position: relative; aspect-ratio: 16/7; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); margin-top: clamp(32px,5vh,56px);
  background-image: repeating-linear-gradient(45deg, oklch(0.24 0.02 var(--accent-h)) 0 14px, oklch(0.21 0.02 var(--accent-h)) 14px 28px);
  display: flex; align-items: flex-end; padding: clamp(20px,3vw,40px); }
.case-meta-row{ display: flex; gap: clamp(20px,4vw,56px); flex-wrap: wrap; margin-top: clamp(24px,3.5vh,36px); }
.case-meta-row .item{ display: flex; flex-direction: column; gap: 6px; }
.case-meta-row .item .k{ font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.case-meta-row .item .v{ font-family: var(--f-display); font-weight: 700; font-size: clamp(16px,1.4vw,20px); }

.case-body{ max-width: 70ch; margin-top: clamp(40px,6vh,72px); }
.case-body h3{ font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(20px,2vw,28px); margin-bottom: 14px; }
.case-body p{ color: var(--muted); font-size: clamp(15px,1.1vw,18px); line-height: 1.6; }
.case-body p + h3{ margin-top: clamp(32px,5vh,56px); }

.quote-block{ border-left: 2px solid var(--accent); padding-left: clamp(20px,2.4vw,36px);
  margin-top: clamp(48px,7vh,80px); max-width: 64ch; }
.quote-block p{ font-family: var(--f-display); font-weight: 600; font-size: clamp(20px,2vw,30px); line-height: 1.3; letter-spacing: -0.01em; }
.quote-block .who{ margin-top: 16px; color: var(--muted); font-size: 14px; font-family: var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; }

/* ============================================================
   CONTACTS PAGE (contacts.html)
   ============================================================ */
.contact-grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px,1.6vw,28px);
  margin-top: clamp(40px,6vh,72px); }
@media (max-width: 860px){ .contact-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-card{ border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px,2.2vw,32px);
  display: flex; flex-direction: column; gap: 10px; transition: border-color .5s var(--ease); }
.contact-card:hover{ border-color: var(--accent); }
.contact-card .big-link{ font-family: var(--f-display); font-weight: 700; font-size: clamp(16px,1.6vw,22px); letter-spacing: -0.02em; }
.contact-card .note{ color: var(--muted); font-size: 13px; }

.hours-row{ display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line);
  max-width: 64ch; font-size: 15px; }
.hours-row .d{ color: var(--muted); }
.hours-row .v{ font-family: var(--f-mono); letter-spacing: 0.04em; }

.map-ph{ position: relative; aspect-ratio: 16/6; border-radius: 22px; border: 1px solid var(--line);
  margin-top: clamp(40px,6vh,64px); display: flex; align-items: center; justify-content: center;
  background-image: repeating-linear-gradient(45deg, oklch(0.24 0.02 var(--accent-h)) 0 14px, oklch(0.21 0.02 var(--accent-h)) 14px 28px); }

.map{ position: relative; aspect-ratio: 16/6; border-radius: 22px; border: 1px solid var(--line); overflow: hidden;
  margin-top: clamp(40px,6vh,64px); background: var(--bg-2); }
.map iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(0.92) hue-rotate(180deg) contrast(0.9); }
@media (max-width: 760px){ .map{ aspect-ratio: 4/3; } }

/* ============================================================
   CASE COVERS (без фото: типографская обложка)
   ============================================================ */
.ph, .case-card .ph{
  background-image:
    radial-gradient(110% 90% at 85% 0%, oklch(0.55 0.17 calc(var(--accent-h) + var(--hs, 0)) / 0.55), transparent 62%),
    linear-gradient(oklch(0.3 0.02 var(--accent-h) / 0.35) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.3 0.02 var(--accent-h) / 0.35) 1px, transparent 1px),
    linear-gradient(160deg, var(--bg-2), oklch(0.17 0.02 var(--accent-h)));
  background-size: auto, 44px 44px, 44px 44px, auto;
  transition: background-position .8s var(--ease);
  flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 14px; }
.case:hover .ph, .case-card:hover .ph{ background-position: 0 0, 0 -22px, -22px 0, 0 0; }
.ph .ph-title{ position: relative; z-index: 2; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(22px, 2.2vw, 36px); line-height: 1.05; max-width: 18ch; }
.case-card .ph .ph-title{ font-size: clamp(20px, 1.8vw, 28px); }
.case .meta, .case-card .meta{ padding-top: 14px; border-top: 1px solid oklch(0.5 0.03 var(--accent-h) / 0.35); }
.case .meta .t{ font-size: clamp(15px,1.2vw,18px); color: var(--muted); }
.case-card .meta .t{ font-size: clamp(14px,1.1vw,16px); color: var(--muted); }
.ph-label{ color: var(--accent-bright); }

.service-title.sm{ font-size: clamp(30px, 4.6vw, 76px); line-height: 1.02; max-width: 22ch; }
.use-grid.four{ grid-template-columns: repeat(4,1fr); }
@media (max-width: 1100px){ .use-grid.four{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .use-grid.four{ grid-template-columns: 1fr; } }
.cap-row[href]{ color: inherit; }

/* ============================================================
   FEATURES GRID (services/*.html)
   ============================================================ */
.feat-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(16px,1.6vw,28px); }
@media (max-width: 860px){ .feat-grid{ grid-template-columns: 1fr; } }
.feat-card{ border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px,2.4vw,40px); background: var(--bg-2);
  transition: border-color .5s var(--ease); }
.feat-card:hover{ border-color: var(--accent); }
.feat-card .n{ font-family: var(--f-mono); font-size: 13px; color: var(--accent-bright); }
.feat-card h5{ font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(22px,2vw,32px);
  line-height: 1.05; margin-top: clamp(24px,3vw,48px); }
.feat-card p{ color: var(--muted); font-size: clamp(14px,1vw,16px); margin-top: 12px; max-width: 56ch; }

/* ============================================================
   PROSE (кейсы, статьи, политика)
   ============================================================ */
.prose{ max-width: 76ch; color: var(--muted); font-size: clamp(15px,1.1vw,18px); line-height: 1.65; }
.prose > * + *{ margin-top: 1em; }
.prose h2{ font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em;
  color: var(--fg); font-size: clamp(20px,2vw,28px); line-height: 1.15; margin-top: clamp(40px,6vh,64px); }
.prose h2:first-child{ margin-top: 0; }
.prose h3{ color: var(--fg); font-weight: 700; font-size: clamp(17px,1.4vw,21px); margin-top: 1.8em; }
.prose strong, .prose b{ color: var(--fg); font-weight: 600; }
.prose a{ color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol{ padding-left: 1.6em; display: flex; flex-direction: column; gap: 0.7em; }
.prose ul{ list-style: none; }
.prose ul > li{ position: relative; }
.prose ul > li::before{ content: '✦'; position: absolute; left: -1.5em; top: 0.1em; color: var(--accent-bright); font-size: 0.75em; }
.prose ol > li::marker{ color: var(--accent-bright); font-family: var(--f-mono); font-size: 0.85em; }
.prose li > p{ margin: 0; }
.prose li > ul, .prose li > ol{ margin-top: 0.5em; }

/* ============================================================
   BLOG LIST
   ============================================================ */
.post-list{ border-top: 1px solid var(--line); }
.post-row{ display: grid; grid-template-columns: 160px 1fr auto; gap: clamp(16px,2vw,40px); align-items: start;
  padding: clamp(28px,3vw,48px) 0; border-bottom: 1px solid var(--line); }
.post-row .date{ padding-top: 8px; }
.post-row .body{ display: flex; flex-direction: column; gap: 14px; }
.post-row .h{ font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(22px,2.4vw,38px);
  line-height: 1.08; transition: color .4s var(--ease); }
.post-row:hover .h{ color: var(--accent-bright); }
.post-row .ex{ color: var(--muted); max-width: 70ch; font-size: clamp(14px,1vw,16px); }
.post-row .go{ padding-top: 8px; white-space: nowrap; }
@media (max-width: 760px){ .post-row{ grid-template-columns: 1fr; } .post-row .date, .post-row .go{ padding-top: 0; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-group + .faq-group{ margin-top: clamp(64px,9vh,120px); }
.faq-list{ border-top: 1px solid var(--line); }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item summary{ list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: clamp(20px,2vw,30px) 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(18px,1.6vw,24px); line-height: 1.25; cursor: inherit; transition: color .4s var(--ease); }
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: '+'; font-family: var(--f-mono); font-weight: 400; color: var(--accent-bright);
  font-size: 1.2em; flex: none; transition: transform .45s var(--ease); }
.faq-item summary:hover{ color: var(--accent-bright); }
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item .a{ padding-bottom: clamp(20px,2.4vw,32px); }

/* ============================================================
   LEAD FORM (Битрикс24 CRM-форма)
   ============================================================ */
.form-card{ position: relative; z-index: 2; max-width: 760px; margin: clamp(40px,6vh,72px) auto 0;
  background: var(--fg); color: var(--bg); border-radius: 22px; padding: clamp(20px,2.6vw,40px); cursor: auto; }
.form-card > .mono{ color: var(--faint); display: block; margin-bottom: 12px; }
.form-card *{ cursor: auto; }

/* ============================================================
   reveal animations
   ============================================================ */
.reveal{ opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in{ opacity: 1; transform: none; }
.reveal-d1{ transition-delay: .08s; }
.reveal-d2{ transition-delay: .16s; }
.reveal-d3{ transition-delay: .24s; }

.line-mask{ display: block; overflow: hidden; }
.line-mask > span{ display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.line-mask.in > span{ transform: none; }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; }
  .reveal{ opacity: 1 !important; transform: none !important; }
  .line-mask > span, .hero-title .l span{ transform: none !important; }
  .grain{ display: none; }
}

/* ============================================================
   LICENSE PRICES (тарифы вендора Битрикс24)
   ============================================================ */
.pricing-grid.four{ grid-template-columns: repeat(4,1fr); }
@media (max-width: 1280px){ .pricing-grid.four{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 680px){ .pricing-grid.four{ grid-template-columns: 1fr; } }
.price-card .pc-desc{ color: var(--muted); font-size: 14px; margin-top: -8px; }
.price-card .pc-year{ font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--accent-bright); margin-top: -8px; }
.price-card .pc-limits{ font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg);
  padding-block: 12px; border-block: 1px solid var(--line); }
.price-card .pc-rows{ display: flex; flex-direction: column; }
.price-card .pc-rows > div{ display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-block: 8px; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.price-card .pc-rows b{ font-family: var(--f-display); font-weight: 800; font-size: clamp(18px,1.6vw,24px); color: var(--fg); letter-spacing: -0.02em; }
.price-card .pc-price small a{ color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.price-note{ margin-top: clamp(24px,3vh,40px); max-width: 90ch; color: var(--muted); font-size: 13px; line-height: 1.6; }
.price-note a{ color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.nda-badge{ position: absolute; top: 14px; right: 14px; z-index: 3; padding: 6px 10px; border-radius: 100px;
  border: 1px solid var(--line); background: oklch(0.165 0.018 var(--accent-h) / 0.7); color: var(--muted);
  font-size: 10px; letter-spacing: 0.1em; }
