/* СМЕНА — сайт. Десктоп 1440 (меню 240 + контент 1200) */
@font-face{font-family:"Inter";src:url("../fonts/Inter-Regular.woff") format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("../fonts/IBMPlexMono-Regular.woff") format("woff");font-weight:400;font-display:swap}

:root{
  --ink:#151515;
  --black:#000;
  --sans:"Inter",system-ui,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,monospace;
  --ease:cubic-bezier(.2,.7,.2,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:#fff;color:var(--ink);font-family:var(--sans);font-weight:400;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{display:block;max-width:none}
h1,h2,h3{font-weight:400;font-size:inherit}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.mono{font-family:var(--mono)}
.abs{position:absolute}
.nowrap{white-space:nowrap}
.pre{white-space:pre-line}

/* ---------- каркас ---------- */
.site{width:1440px;margin:0 auto;display:flex;align-items:flex-start;position:relative}
.side{position:sticky;top:0;width:240px;height:100vh;height:calc(100vh / var(--z,1));flex:none;z-index:50;background:#fff;border-right:1px solid transparent}
.main{width:1200px;flex:none;position:relative}
.sec{position:relative;width:1200px}

/* ---------- меню ---------- */
.logo{position:absolute;left:32px;top:40px;font-size:32px;line-height:36px;color:var(--ink);white-space:pre-line}
.nav{position:absolute;left:40px;top:176px;display:flex;flex-direction:column}
.nav a{font-size:16px;line-height:24px;color:#0f0f0f;position:relative;width:max-content}
.nav a::after{content:"";position:absolute;left:0;right:0;bottom:2px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease)}
.nav a:hover::after,.nav a.is-active::after{transform:scaleX(1)}
.write{position:absolute;left:32px;bottom:64px;font-size:16px;line-height:24px}
.burger{display:none}
.write:hover,.link:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}

/* ---------- 01 герой ---------- */
#hero{height:900px}
.h-arrow{left:535px;top:58px;width:125px}
.h-stage{position:absolute;left:205px;top:385px;width:815px;height:217px}
.h-title{left:15px;top:0;width:760px;text-align:center;font-size:64px;line-height:72px}
.h-strike{left:2px;top:31px;width:790px;height:25px}
.h-hand{left:31px;top:78px;width:784px}
.h-list{left:260px;top:598px;width:680px;text-align:center;font-size:28px;line-height:30px;white-space:pre-line}
.h-sub{left:290px;top:743px;width:620px;text-align:center;font-size:18px;line-height:24px;white-space:pre-line}
.h-cta{left:0;right:0;top:820px;text-align:center;font-size:18px;line-height:24px}
.h-cta a{display:inline-block}
/* «пишется от руки» при загрузке */
.draw{clip-path:inset(0 100% 0 0)}
.is-loaded .draw{animation:draw 1s var(--ease) forwards}
.is-loaded .h-strike{animation-delay:.35s;animation-duration:.7s}
.is-loaded .h-hand{animation-delay:1.05s;animation-duration:1.4s;animation-timing-function:steps(24,end)}
@keyframes draw{to{clip-path:inset(0 0 0 0)}}
.h-arrow{opacity:0;transform:translateY(-14px);transition:opacity .8s ease,transform .8s var(--ease)}
.is-loaded .h-arrow{opacity:1;transform:none}

/* ---------- 02 на связи ---------- */
#about{height:740px}
.a-text{left:48px;top:85px;width:1104px;font-size:36px;line-height:45px;color:#000;white-space:pre-line}
.bubble{position:absolute;background:#fff;border:1px solid #000;border-radius:26px;padding:24px 24px;color:#000;font-family:var(--mono)}
.bubble .lbl{font-size:14px;line-height:20px;text-transform:uppercase}
.bubble .txt{font-size:24px;line-height:32px;margin-top:15px;white-space:pre-line}
.bubble a.txt{display:block}
.bubble a:hover{text-decoration:underline;text-underline-offset:5px}
.stem{position:absolute;width:0;border-left:1px dashed #000;border-image:repeating-linear-gradient(to bottom,#000 0 7px,transparent 7px 17px) 1}
.dot{position:absolute;width:8px;height:8px;background:#000}
.ruler{position:absolute;left:48px;width:1105px;height:29px;background:url("../assets/ruler.svg") no-repeat}

/* появление «по шкале» */
/* облачка: opacity 0→1, снизу 16→0 px, 450 мс, ease-out, один раз при входе в экран */
.rv{opacity:0;transform:translateY(16px);transition:opacity .45s ease-out,transform .45s ease-out}
.rv.in{opacity:1;transform:none}

/* ---------- 03 кейсы ---------- */
#cases{height:1350px;color:#000}
.c-title{left:43px;top:38px;font-family:var(--mono);font-size:64px;line-height:72px}
.c-sub{left:48px;top:116px;font-family:var(--mono);font-size:18px;line-height:24px}
.grid{position:absolute;left:48px;top:160px;width:1104px;display:grid;grid-template-columns:repeat(3,360px);gap:12px}
.tile{position:relative;width:360px;height:360px;perspective:1400px;cursor:pointer;display:block}
.tile-in{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .7s var(--ease)}
.face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}
.front .ill{position:absolute;left:5px;top:15px}
.front .cap{position:absolute;left:16px;top:326px;font-family:var(--mono);font-size:12px;line-height:16px;white-space:nowrap}
.back{background:#fff;border:1px solid #000;transform:rotateY(180deg);padding:28px;font-family:var(--mono)}
.back .lbl{font-size:14px;line-height:20px}
.back .ttl{font-size:28px;line-height:36px;margin-top:20px;white-space:pre-line}
.back .dsc{font-size:18px;line-height:24px;margin-top:20px;white-space:pre-line}
.back .more{font-size:14px;line-height:20px;margin-top:20px;display:inline-block}
.tile:hover .more{text-decoration:underline;text-underline-offset:4px}
@media (hover:hover){.tile:hover .tile-in{transform:rotateY(180deg)}}
.tile.is-flipped .tile-in{transform:rotateY(180deg)}
.tile:focus-visible{outline:2px solid #000;outline-offset:4px}

/* ---------- 04 услуги: наползающие вкладки ---------- */
#services{padding:80px 0 60px;display:flex;flex-direction:column}
.svc{position:sticky;top:calc(var(--t0,80px) + var(--i) * var(--step,100px));margin:0 0 0 24px;width:1152px;height:660px;flex:none;--fold:44px}
.svc-bg{position:absolute;inset:0;background:var(--c);clip-path:polygon(0 0,calc(100% - var(--fold)) 0,100% var(--fold),100% 100%,0 100%);transition:clip-path .3s var(--ease)}
.svc-fold{position:absolute;right:0;top:0;width:var(--fold);height:var(--fold);background:linear-gradient(to top right,rgba(21,21,21,.12) 50%,transparent 50%);transition:width .3s var(--ease),height .3s var(--ease),background .3s}
.svc.lift{--fold:82px}
.svc.lift .svc-fold{background:linear-gradient(to top right,color-mix(in srgb,var(--c) 70%,#fff) 50%,transparent 50%);filter:drop-shadow(-3px 3px 3px rgba(0,0,0,.12))}
.svc-tab{position:absolute;left:0;top:0;width:100%;height:96px;cursor:pointer;z-index:2}
.svc-lbl{position:absolute;left:21px;top:calc(var(--step,100px) / 2 - 9px);font-size:40px;line-height:17.7px;white-space:nowrap;pointer-events:none}
.svc-txt{position:absolute;left:21px;top:217px;width:1073px;font-size:96px;line-height:81px;white-space:pre-line}
.svc-cta{position:absolute;left:934px;top:599px;font-size:18px;line-height:21px;white-space:nowrap;z-index:3}
.svc-cta:hover{text-decoration:underline;text-underline-offset:4px}
.svc-next{position:absolute;left:0;right:0;top:684px;text-align:center;font-family:var(--mono);font-size:12px;line-height:16px;letter-spacing:.02em;color:#000}
.svc-next button{font-family:inherit;font-size:inherit}
.svc-next button:hover{text-decoration:underline;text-underline-offset:3px}
.svc img{position:absolute;pointer-events:none}

/* ---------- 05 как работаем ---------- */
#how{height:1040px;color:#000}
.w-title{left:43px;top:78px;font-size:64px;line-height:72px;white-space:pre-line}
.step{width:340px;padding:24px 22px}
.step .txt{margin-top:21px}
.scale-lbl{position:absolute;top:935px;font-family:var(--mono);font-size:14px;line-height:20px}
.w-note{left:48px;top:990px;font-family:var(--mono);font-size:16px;line-height:24px}

/* ---------- 06 отзывы: папка ---------- */
#reviews{height:830px;color:#000}
.folder{position:absolute;left:312px;top:195px;width:576px;height:432px;cursor:pointer;transition:top .7s var(--ease)}
.folder.open{top:360px}
.folder .part{position:absolute;left:0}
.f-back{top:0;z-index:1}
.f-sheets{left:24px!important;top:64px;z-index:2}
.f-front{top:112px;z-index:6;transition:transform .35s var(--ease)}
.folder:hover .f-front{transform:translateY(6px) rotateX(-8deg);transform-origin:bottom}
.f-front .big{position:absolute;left:38px;top:156px;font-size:52px;line-height:56px;white-space:nowrap}
.f-front .small{position:absolute;left:38px;top:264px;font-family:var(--mono);font-size:14px;line-height:20px}
.doc{position:absolute;left:0;top:0;width:576px;height:432px;z-index:3;opacity:0;transform:translate(0,96px);pointer-events:none;transition:transform .8s var(--ease),opacity .2s ease,z-index 0s linear .45s}
.doc.out{z-index:7;opacity:1}
.doc[data-doc="0"].out{transform:translate(-25px,-220px)}
.doc[data-doc="1"].out{transform:translate(0,-245px)}
.doc[data-doc="2"].out{transform:translate(25px,-270px)}
.doc[data-doc="3"].out{transform:translate(50px,-295px)}
.doc.back-in{transition:transform .6s var(--ease),opacity .2s ease .4s,z-index 0s}
.doc svg{position:absolute;inset:0}
.doc .body{position:absolute;left:38px;top:38px;width:480px}
.doc .lbl{font-family:var(--mono);font-size:14px;line-height:20px}
.doc .q{font-size:20px;line-height:26px;margin-top:20.8px}
.f-hint{position:absolute;left:0;right:0;top:760px;text-align:center;font-family:var(--mono);font-size:12px;line-height:16px;transition:opacity .4s}
#reviews.started .f-hint{opacity:0}

/* ---------- 07 контакты ---------- */
#contacts{height:960px;color:#000}
.k-title{left:50px;top:59px;width:1100px;text-align:center;font-size:64px;line-height:72px;white-space:pre-line}
.k-sub{left:72px;top:220px;width:1040px;text-align:center;font-size:18px;line-height:24px;white-space:pre-line}
.k-hand{left:891px;top:246px;width:282px}
.k-arrow{left:1042px;top:361px;width:96px}
.tears{position:absolute;left:48px;top:503px;width:1104px;height:330px;display:flex}
.tear{position:relative;width:552px;height:330px;display:block;transform-origin:0 0;transition:transform .45s var(--ease)}
.tear+.tear{margin-left:-1px;border-left:1px solid #000}
.tear .perf{position:absolute;left:0;top:0;width:552px;height:5px;background:url("../assets/perf.svg") no-repeat}
.tear .lbl{position:absolute;left:28px;top:35px;font-family:var(--mono);font-size:14px;line-height:20px}
.tear .big{position:absolute;left:28px;top:94px;font-size:52px;line-height:56px;white-space:pre-line}
.tear .dsc{position:absolute;left:28px;top:254px;font-size:18px;line-height:24px}
.tear:hover{transform:rotate(-1.2deg) translateY(6px)}
.tear+.tear:hover{transform-origin:100% 0;transform:rotate(1.2deg) translateY(6px)}
.tear:hover .big{text-decoration:underline;text-underline-offset:8px;text-decoration-thickness:2px}

/* ---------- страница кейса ---------- */
.case{height:1350px;color:#000}
.case .back-link{left:48px;top:48px;font-family:var(--mono);font-size:14px;line-height:20px}
.case .back-link:hover{text-decoration:underline;text-underline-offset:4px}
.case .cat{left:48px;top:124px;font-family:var(--mono);font-size:14px;line-height:20px}
.case h1{position:absolute;left:48px;top:178px;width:1104px;font-family:var(--mono);font-weight:400;font-size:48px;line-height:60px}
.case .pic{position:absolute;left:48px;top:300px;width:576px;height:576px;overflow:hidden}
.case .pic .ill{position:absolute;left:8px;top:24px;transform:scale(1.6);transform-origin:0 0}
.case .pic .cap{position:absolute;left:26px;top:522px;font-family:var(--mono);font-size:12px;line-height:16px}
.case .facts{position:absolute;left:690px;top:300px;width:430px;font-family:var(--mono)}
.case .facts dt{font-size:14px;line-height:20px}
.case .facts dd{font-size:24px;line-height:32px;margin:24px 0 24px;white-space:pre-line}
.case .foot{left:48px;top:1280px;font-family:var(--mono);font-size:14px;line-height:20px}
.case .nextcase{position:absolute;left:690px;top:952px;font-family:var(--mono);font-size:14px;line-height:20px}
.case .nextcase a:hover{text-decoration:underline;text-underline-offset:4px}

/* ---------- курсор-мел ---------- */
#chalk{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:9999}

@view-transition{navigation:auto}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .draw,.is-loaded .draw{clip-path:none;animation:none}
  .h-arrow,.rv{opacity:1;transform:none;transition:none}
  .tile-in,.doc,.folder,.tear,.svc-bg,.svc-fold{transition:none}
  #chalk{display:none}
}

/* =========================================================
   ТЕЛЕФОН (до 768 px): своя вёрстка, всё кликабельно
   ========================================================= */
@media (max-width:768px){
  html{scroll-padding-top:64px}
  body{overflow-x:hidden}
  .site{width:100%;display:block}
  .main,.sec{width:100%}
  .abs{position:static}
  .h-list,.h-sub,.h-cta,.a-text,.k-title,.k-sub,.w-title,.w-note,.c-title,.c-sub{width:auto!important}

  /* шапка + меню */
  .side{position:sticky;top:0;width:100%;height:56px;border-bottom:1px solid #000;background:#fff;z-index:60}
  .logo{left:16px;top:0;height:56px;display:flex;align-items:center;font-size:17px;line-height:1;white-space:nowrap;letter-spacing:.01em}
  .logo{font-size:0}.logo::before{content:"SMENA WORK CLUB";font-size:17px}
  .burger{display:block;position:absolute;right:8px;top:6px;height:44px;padding:0 10px;font-family:var(--mono);font-size:14px;text-transform:uppercase;letter-spacing:.02em}
  .nav,.write{display:none}
  .side.open{height:auto;padding-bottom:20px}
  .side.open .nav{display:flex;position:static;padding:64px 16px 0;gap:4px}
  .side.open .nav a{font-size:30px;line-height:44px}
  .side.open .write{display:inline-block;position:static;margin:16px 16px 0;font-size:18px;line-height:44px}

  /* герой */
  #hero{height:auto;padding:28px 16px 56px;text-align:center}
  .h-arrow{display:block;width:62px;margin:0 auto 28px}
  .h-stage{position:relative;left:auto;top:auto;margin:0 auto}
  .h-stage .abs{position:absolute}
  .h-list{font-size:19px;line-height:24px;margin-top:22px}
  .h-sub{font-size:15px;line-height:21px;margin-top:18px}
  .h-cta{margin-top:18px;font-size:17px}
  .h-cta a{line-height:44px}

  /* о нас */
  #about{height:auto;padding:24px 16px 48px}
  .a-text{font-size:24px;line-height:31px;white-space:normal}
  #about .bubble{position:relative;left:auto!important;top:auto!important;bottom:auto!important;width:auto!important;height:auto!important;margin-top:16px;border-radius:20px;padding:18px}
  #about .bubble:first-of-type{margin-top:28px}
  .bubble .lbl{font-size:12px;line-height:16px}
  .bubble .txt{font-size:17px;line-height:23px;margin-top:10px}
  .bubble a.txt{padding:2px 0}
  #about .stem,#about .dot{display:none}
  .ruler{position:relative;left:auto;width:100%;height:29px;margin-top:24px;background-size:1105px 29px;background-position:left top;top:auto!important}

  /* кейсы */
  #cases{height:auto;padding:16px 16px 48px}
  .c-title{font-size:40px;line-height:44px}
  .c-sub{font-size:13px;line-height:18px;margin-top:8px}
  .grid{position:static;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
  .tile{width:100%;height:auto;aspect-ratio:1/1}
  .front .ill{left:1.4%;top:4.2%;width:97.2%;height:auto}
  .front .ill[width="355"]{width:98.6%}
  .front .cap{left:8px;top:auto;bottom:8px;font-size:9px;line-height:11px;white-space:normal;right:8px}
  .back{padding:11px 11px 10px;display:flex;flex-direction:column}
  .back .lbl{font-size:9px;line-height:12px}
  .back .ttl{font-size:15px;line-height:18px;margin-top:7px}
  .back .dsc{font-size:10.5px;line-height:13.5px;margin-top:7px}
  .back .more{font-size:10px;line-height:12px;margin-top:auto;padding-top:6px}

  /* услуги: та же стопка, карточки под экран */
  #services{padding:24px 0 40px}
  .svc{margin-left:12px;width:calc(100% - 24px);height:auto;min-height:440px;--fold:28px;padding:16px 16px 104px}
  .svc.lift{--fold:52px}
  .svc-tab{height:46px}
  .svc-lbl{position:relative;left:0;top:calc(var(--step,46px) / 2 - 26px);font-size:15px;line-height:20px;white-space:nowrap;padding-right:24px}
  .svc-txt{position:relative;left:0;top:0;width:auto;font-size:34px;line-height:34px;margin-top:84px;white-space:normal}
  .svc img{display:none}
  .svc img[src$="star.svg"]{display:block;left:auto!important;right:18px;top:54px!important;width:40px}
  .svc img[src$="zakadrom.svg"],.svc img[src$="vdele.svg"],.svc img[src$="poehali.svg"]{display:block;left:auto!important;right:66px;top:56px!important;width:104px}
  .svc-cta{left:16px;top:auto;bottom:52px;font-size:16px;line-height:44px}
  .svc-next{top:auto;bottom:-40px;font-size:11px}
  .svc-next button{padding:12px 8px}

  /* как работаем */
  #how{height:auto;padding:40px 16px 48px}
  .w-title{font-size:40px;line-height:44px;white-space:pre-line}
  #how .bubble{position:relative;left:auto!important;top:auto!important;bottom:auto!important;width:auto;height:auto!important;margin-top:16px;border-radius:20px;padding:18px}
  #how .bubble:nth-of-type(1){margin-top:28px;margin-right:22%}
  #how .bubble:nth-of-type(2){margin-left:11%;margin-right:11%}
  #how .bubble:nth-of-type(3){margin-left:22%}
  #how .stem,#how .dot{display:none}
  .step .txt{margin-top:10px}
  .scale-lbl{position:static;display:inline-block;font-size:11px;line-height:16px;margin-top:10px;width:33.33%}
  .scale-lbl:nth-of-type(2){text-align:center}.scale-lbl:nth-of-type(3){text-align:right}
  .w-note{font-size:13px;line-height:19px;margin-top:16px}

  /* отзывы: папка во всю ширину, документы читаются крупно */
  #reviews{height:auto;padding:24px 16px 72px;position:relative}
  .folder{position:relative;left:auto;top:auto;width:100%;height:auto;aspect-ratio:4/3;margin-top:0;transition:margin-top .7s var(--ease)}
  .folder.open{top:auto;margin-top:var(--docs-h,360px)}
  .folder .part svg,.folder svg.part{width:100%;height:auto}
  .f-back{width:100%;height:auto}
  .f-sheets{left:4.2%!important;top:14.8%;width:91.7%!important;height:auto}
  .f-front{top:25.9%;width:100%}
  .f-front svg{display:block;width:100%;height:auto}
  .f-front .big{left:6.7%;top:46%;font-size:clamp(26px,8vw,40px);line-height:1}
  .f-front .small{left:6.7%;top:80%;font-size:11px;line-height:14px}
  .doc{width:100%;height:auto;left:0;top:auto;bottom:calc(100% + 16px);transform:translateY(calc(100% + 120px))}
  .doc svg{display:none}
  .doc .body{position:relative;left:0;top:0;width:auto;background:#fff;border:2px solid #000;padding:18px 18px 20px;clip-path:polygon(0 0,calc(100% - 28px) 0,100% 28px,100% 100%,0 100%)}
  .doc .body::after{content:"";position:absolute;right:-2px;top:-2px;width:30px;height:30px;background:linear-gradient(to bottom left,transparent calc(50% - 1px),#000 calc(50% - 1px),#000 calc(50% + 1px),#fff calc(50% + 1px))}
  .doc .lbl{font-size:12px;line-height:16px;padding-right:24px}
  .doc .q{font-size:15px;line-height:21px;margin-top:10px}
  .doc[data-doc].out{transform:none}
  .doc[data-doc="1"].out{transform:translate(4px,-8px)}
  .doc[data-doc="2"].out{transform:translate(8px,-16px)}
  .doc[data-doc="3"].out{transform:translate(12px,-24px)}
  .f-hint{position:static;margin-top:18px}

  /* контакты */
  #contacts{height:auto;padding:40px 16px 40px;position:relative}
  .k-title{font-size:38px;line-height:42px;text-align:center}
  .k-sub{font-size:15px;line-height:21px;margin-top:12px;text-align:center}
  .k-hand{position:absolute;left:auto;right:6px;top:auto;width:150px;margin-top:6px}
  .k-arrow{display:none}
  #contacts .ruler{margin-top:72px}
  .tears{position:relative;left:auto;top:auto;width:100%;height:auto;flex-direction:column;margin-top:20px}
  .tear{width:100%;height:auto;min-height:190px;padding:26px 16px 22px}
  .tear+.tear{margin-left:0;border-left:0;margin-top:0}
  .tear .perf{width:100%;background-size:auto;background-repeat:repeat-x}
  .tear .lbl,.tear .big,.tear .dsc{position:static;display:block}
  .tear .lbl{font-size:12px}
  .tear .big{font-size:38px;line-height:42px;margin-top:18px}
  .tear .dsc{font-size:16px;margin-top:16px}
  .tear:hover,.tear+.tear:hover{transform:none}
  .tear:active{transform:rotate(-1deg) translateY(4px)}

  /* страница кейса */
  .case{height:auto;padding:20px 16px 40px}
  .case .back-link{display:inline-block;line-height:44px}
  .case .cat{margin-top:12px;font-size:12px}
  .case h1{position:static;width:auto;font-size:28px;line-height:34px;margin-top:10px}
  .case .pic{position:relative;left:auto;top:auto;width:100%;height:auto;aspect-ratio:1/1;margin-top:22px}
  .case .pic .ill{transform:none;left:1.4%;top:4.2%;width:97.2%;height:auto}
  .case .pic .ill[width="355"]{width:98.6%}
  .case .pic .cap{left:4.4%;top:auto;bottom:16px;font-size:11px}
  .case .facts{position:static;width:auto;margin-top:26px}
  .case .facts dt{font-size:12px;line-height:16px}
  .case .facts dd{font-size:18px;line-height:25px;margin:8px 0 22px}
  .case .nextcase{position:static;margin-top:8px;font-size:13px}
  .case .nextcase a{display:inline-block;line-height:22px;padding:11px 0}
  .case .foot{margin-top:28px;font-size:12px}
}
