@font-face{font-family:Golos;font-display:swap;font-weight:300 900;src:url(fonts/GolosText-cyrillic.woff2);unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:Golos;font-display:swap;font-weight:300 900;src:url(fonts/GolosText-latin.woff2);unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root{--bg:#0C0C0C;--fg:#D7E2EA;--ease:cubic-bezier(.25,.1,.25,1);--grad:linear-gradient(180deg,#646973 0%,#BBCCD7 100%)}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--fg);font-family:Golos,system-ui,sans-serif;-webkit-font-smoothing:antialiased;scroll-behavior:smooth;overflow-x:clip}
body{min-height:100vh}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3,p,ul{margin:0;padding:0}
ul{list-style:none}
.wrap{background:var(--bg);overflow-x:clip;position:relative}

.grad,.hero-heading{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}

/* fade-in (JS выставляет --x --y --d --dur) */
.js .fade{opacity:0;transform:translate3d(var(--x,0),var(--y,30px),0);transition:opacity var(--dur,.7s) var(--ease) var(--d,0s),transform var(--dur,.7s) var(--ease) var(--d,0s);will-change:opacity,transform}
.js .fade.in{opacity:1;transform:none}
.js .fade.done{will-change:auto}

/* buttons */
.btn-contact{display:inline-flex;align-items:center;justify-content:center;gap:.9em;position:relative;border-radius:999px;border:2px solid transparent;background:linear-gradient(#0C0C0C,#0C0C0C) padding-box,conic-gradient(from 160deg,#fff,#5b6670,#d7e2ea,#3a424a,#fff) border-box;color:#EAF1F6;text-transform:uppercase;letter-spacing:.14em;font-weight:600;white-space:nowrap;transition:transform .3s,box-shadow .3s;padding:.7rem 1.8rem;font-size:.75rem}
.btn-contact::after{content:'';width:1.35em;height:1.35em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .3s}
@media(min-width:640px){.btn-contact{padding:.85rem 2.2rem;font-size:.875rem}}
@media(min-width:768px){.btn-contact{padding:1rem 2.5rem;font-size:1rem}}
.btn-contact:hover{box-shadow:0 0 28px -6px rgba(215,226,234,.45)}.btn-contact:hover::after{transform:translateX(4px)}
.btn-ghost{display:inline-flex;align-items:center;padding:.7rem 1.6rem;border:2px solid var(--fg);border-radius:999px;color:var(--fg);text-transform:uppercase;letter-spacing:.08em;font-weight:400;font-size:clamp(.7rem,1vw,.9rem);white-space:nowrap;transition:background .3s}
.btn-ghost:hover{background:rgba(215,226,234,.1)}

/* HERO */
.hero{position:relative;height:100vh;height:100svh;min-height:520px;display:flex;flex-direction:column}
.nav{display:flex;justify-content:space-between;padding:24px 24px 0;text-transform:uppercase;letter-spacing:.05em;font-size:.875rem;position:relative;z-index:20}
@media(min-width:768px){.nav{padding:32px 40px 0;font-size:1.125rem}}
@media(min-width:1024px){.nav{font-size:1.4rem}}
.nav a{transition:opacity .3s}.nav a:hover{opacity:.7}
.hero-head{width:100%;overflow:hidden;margin-top:24px;position:relative;z-index:1}
@media(min-width:640px){.hero-head{margin-top:16px}}
@media(min-width:768px){.hero-head{margin-top:-20px}}
.hero-heading{display:block;width:100%;text-align:center;font-weight:900;text-transform:uppercase;letter-spacing:-.025em;line-height:1;white-space:nowrap;font-size:14vw;user-select:none;padding-bottom:.08em}
@media(min-width:640px){.hero-heading{font-size:15vw}}
@media(min-width:768px){.hero-heading{font-size:16vw}}
@media(min-width:1024px){.hero-heading{font-size:17.5vw}}
.hero-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:0 24px 28px;position:relative;z-index:20}
@media(min-width:640px){.hero-bottom{padding-bottom:32px}}
@media(min-width:768px){.hero-bottom{padding:0 40px 40px}}
.hero-text{max-width:none;white-space:nowrap;text-transform:uppercase;font-weight:300;font-size:clamp(.75rem,1.4vw,1.5rem);line-height:1.3}
.hero-obj{position:absolute;left:50%;margin-left:-140px;width:280px;top:50%;margin-top:-150px;z-index:10;pointer-events:none}
@media(min-width:640px){.hero-obj{width:360px;margin-left:-180px;top:auto;bottom:0;margin-top:0}}
@media(min-width:768px){.hero-obj{width:440px;margin-left:-220px}}
@media(min-width:1024px){.hero-obj{width:520px;margin-left:-260px}}
.magnet{will-change:transform;pointer-events:auto;display:block}
.portrait{width:100%;height:auto;user-select:none;-webkit-user-drag:none}

/* MARQUEE */
.marquee{padding:96px 0 40px;display:flex;flex-direction:column;gap:12px;overflow:hidden;position:relative}
@media(min-width:640px){.marquee{padding-top:128px}}
@media(min-width:768px){.marquee{padding-top:160px}}
.mq-row{display:flex;gap:12px;width:max-content;will-change:transform}
.mq-row img{width:420px;height:270px;flex:none;border-radius:1rem;object-fit:cover;background:#15171b}

/* ABOUT */
.about{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:80px 20px}
@media(min-width:640px){.about{padding-left:32px;padding-right:32px}}
@media(min-width:768px){.about{padding-left:40px;padding-right:40px}}
.about-inner{display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;z-index:2}
.sec-title{font-weight:900;text-transform:uppercase;letter-spacing:-.025em;line-height:1;font-size:clamp(3rem,12vw,160px)}
.sec-title.dark{color:#0C0C0C}
.about-text{max-width:560px;margin:40px 0 64px;font-size:clamp(1rem,2vw,1.35rem);font-weight:500;line-height:1.625;color:var(--fg)}
@media(min-width:640px){.about-text{margin:56px 0 80px}}
@media(min-width:768px){.about-text{margin:64px 0 96px}}
.about-text .ch{opacity:.2}
.deco{position:absolute;height:auto;z-index:1}
.deco.fade{--y:0px}
.d1{top:4%;left:1%;width:120px}.d2{bottom:8%;left:3%;width:100px}.d3{top:4%;right:1%;width:120px}.d4{bottom:8%;right:3%;width:130px}
@media(min-width:640px){.d1{left:2%;width:160px}.d2{left:6%;width:140px}.d3{right:2%;width:160px}.d4{right:6%;width:170px}}
@media(min-width:768px){.d1{left:4%;width:210px}.d2{left:10%;width:180px}.d3{right:4%;width:210px}.d4{right:10%;width:220px}}

/* SERVICES */
.services{background:#fff;color:#0C0C0C;border-radius:40px 40px 0 0;padding:80px 20px 112px;position:relative}
@media(min-width:640px){.services{border-radius:50px 50px 0 0;padding:96px 32px 128px}}
@media(min-width:768px){.services{border-radius:60px 60px 0 0;padding:128px 40px 160px}}
.services-inner{max-width:80rem;margin:0 auto}
.services .sec-title{margin-bottom:64px}
@media(min-width:640px){.services .sec-title{margin-bottom:80px}}
@media(min-width:768px){.services .sec-title{margin-bottom:112px}}
.svc-list{max-width:64rem;margin:0 auto}
.svc{display:flex;gap:clamp(16px,4vw,64px);align-items:flex-start;padding:32px 0;border-top:1px solid rgba(12,12,12,.15)}
.svc:last-child{border-bottom:1px solid rgba(12,12,12,.15)}
@media(min-width:640px){.svc{padding:40px 0}}@media(min-width:768px){.svc{padding:48px 0}}
.svc-n{font-weight:900;line-height:.9;font-size:clamp(3rem,10vw,140px);min-width:1.5em;color:#0C0C0C}
.svc h3{font-weight:500;text-transform:uppercase;font-size:clamp(1rem,2.2vw,2.1rem);line-height:1.15;margin-top:.3em}
.svc p{font-weight:300;opacity:.6;max-width:42rem;font-size:clamp(.85rem,1.6vw,1.25rem);line-height:1.45;margin-top:.8em}

/* PROJECTS */
.projects{position:relative;z-index:10;background:var(--bg);border-radius:40px 40px 0 0;margin-top:-40px;padding:80px 16px 96px}
@media(min-width:640px){.projects{margin-top:-48px;border-radius:50px 50px 0 0;padding-left:24px;padding-right:24px}}
@media(min-width:768px){.projects{margin-top:-56px;border-radius:60px 60px 0 0;padding:112px 40px 128px}}
.projects>.sec-title{text-align:center;margin-bottom:48px}
@media(min-width:768px){.projects>.sec-title{margin-bottom:80px}}
.cta{background:var(--bg);position:relative;z-index:10;display:flex;flex-direction:column;align-items:center;text-align:center;padding:96px 20px 0;min-height:80vh}
@media(min-width:768px){.cta{padding:128px 40px 0}}
.cta-title{font-size:clamp(1.8rem,7.2vw,96px);white-space:normal;line-height:.95;max-width:100%;margin:0;padding-top:.14em;margin-top:-.14em}
.cta-text{margin:32px 0 40px;max-width:32rem;color:var(--fg);font-weight:300;font-size:clamp(1rem,2vw,1.35rem);line-height:1.5}
.foot{margin-top:auto;width:100%;padding:64px 0 28px;display:flex;flex-direction:column;gap:12px;align-items:center;color:var(--fg);font-size:.8rem;opacity:.85}
.foot nav{display:flex;gap:24px;text-transform:uppercase;letter-spacing:.05em}
.foot a:hover{opacity:.7}
@media(min-width:640px){.foot{flex-direction:row;justify-content:space-between}}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .fade{opacity:1;transform:none;transition:none}
  .about-text .ch{opacity:1}
}
/* логотип WEZIP: растворяем края картинки в фон */
#logo[src*="logo.png"]{-webkit-mask-image:radial-gradient(ellipse 62% 62% at 50% 50%,#000 55%,transparent 100%);mask-image:radial-gradient(ellipse 62% 62% at 50% 50%,#000 55%,transparent 100%)}
#logo[src*="logo.png"]{scale:1.625;transform-origin:50% 88%;translate:0 clamp(-30px,-2vw,-12px)}
@media(max-width:639px){#logo[src*="logo.png"]{scale:1.15}}
.hero-head{margin-top:clamp(12px,2.4vw,36px)}
/* серые иконки блока О нас: тёмный фон картинок растворяем в фон сайта */
.deco{mix-blend-mode:lighten;-webkit-mask-image:radial-gradient(ellipse 52% 52% at 50% 50%,#000 62%,transparent 100%);mask-image:radial-gradient(ellipse 52% 52% at 50% 50%,#000 62%,transparent 100%)}
@media(max-width:639px){.hero-heading{font-size:16vw}#logo[src*="logo.png"]{scale:1.35}.hero-text{font-size:.78rem}.hero-bottom{flex-direction:column;align-items:flex-start;gap:14px}}
@media(max-width:639px){.hero-head{margin-top:34px}#logo[src*="logo.png"]{translate:0 14vh}}

.services .sec-title{text-align:center}

@media(max-width:639px){
}

.cta{padding-top:112px}

/* PROJECTS: раскладка как в референсе */
.stack{max-width:80rem;margin:0 auto;padding-bottom:6vh}
.projects{overflow:clip}
.pwrap{position:sticky;top:96px;height:85vh;counter-increment:pc}
@media(min-width:768px){.pwrap{top:128px}}
.pcard{position:relative;top:calc(var(--i)*28px);transform-origin:50% 0;will-change:transform;border:2px solid var(--fg);background:var(--bg);border-radius:40px;padding:16px;display:flex;flex-direction:column;gap:12px;overflow:hidden}
@media(min-width:640px){.pcard{border-radius:50px;padding:24px;gap:16px}}
@media(min-width:768px){.pcard{border-radius:60px;padding:32px;gap:20px}}
.stack{counter-reset:pc}
.pc-head{display:flex;align-items:center;gap:clamp(16px,3vw,48px)}
.pc-num{font-weight:900;line-height:.85;font-size:clamp(3rem,8vw,120px);background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;padding:.04em 0;flex:none}
.pc-num::before{content:counter(pc,decimal-leading-zero)}
.pc-meta{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;min-width:0}
.pc-cat{font-weight:800;text-transform:uppercase;letter-spacing:.1em;font-size:clamp(.65rem,1vw,.95rem);color:var(--fg)}
.pc-meta h3{font-weight:400;text-transform:none;font-size:clamp(1rem,2.2vw,2.1rem);line-height:1.1}
.pc-head .btn-ghost{margin-left:auto}
.pc-grid{display:flex;gap:clamp(8px,1.2vw,16px);align-items:flex-start}
.pc-col{width:40%;display:flex;flex-direction:column;gap:clamp(8px,1.2vw,16px)}
picture{display:contents}
.pi{display:block;width:100%;object-fit:cover;object-position:50% 0;border-radius:40px;background:#15171b}
@media(min-width:640px){.pi{border-radius:50px}}@media(min-width:768px){.pi{border-radius:60px}}
.pi-a{height:clamp(130px,min(16vw,17vh),230px)}
.pi-b{height:clamp(160px,min(22vw,23vh),340px)}
.pi-tall{width:calc(60% - clamp(8px,1.2vw,16px));height:calc(clamp(130px,min(16vw,17vh),230px) + clamp(160px,min(22vw,23vh),340px) + clamp(8px,1.2vw,16px))}
@media(max-width:639px){
  .pc-head{flex-wrap:wrap;row-gap:10px}
  .pc-head .btn-ghost{margin-left:0;order:3;padding:.5rem 1.1rem;font-size:.65rem}
  .pc-grid{flex-direction:column;gap:8px}
  .pi,.pi-tall{border-radius:26px}
  .pi-tall{order:-1;width:100%;height:auto;aspect-ratio:2/1}
  .pc-col{width:100%;flex-direction:row;gap:8px}
  .pc-col .pi{width:calc(50% - 4px);height:auto;aspect-ratio:16/10}
}

/* hero: размер логотипа считается от ширины И высоты окна */
@media(min-width:640px){
  .hero-obj{--lw:max(240px,min(calc((100svh - 17.3vw - 65px) / 1.083),440px));width:var(--lw);margin-left:calc(var(--lw) / -2)}
}
@media(min-width:1024px){
  .hero-obj{--lw:max(260px,min(calc((100svh - 18.9vw - 65px) / 1.083),max(520px,36.1vw)));width:var(--lw);margin-left:calc(var(--lw) / -2)}
}
/* телефоны: логотип не шире экрана, масштабируется от ширины */
@media(max-width:639px){
  .hero-obj{--lw:min(72vw,310px);width:var(--lw);margin-left:calc(var(--lw) / -2);margin-top:calc(var(--lw) * -.536)}
}
/* планшет в портрете: логотип выше, чтобы не наезжать на подпись и кнопку */
@media(min-width:640px) and (max-width:1023px) and (max-aspect-ratio:1/1){
  .hero-obj{bottom:clamp(90px,14vh,170px)}
}

/* ===== ТОЛЬКО телефон (<640px) ===== */
.mq-extra{display:none}
@media(max-width:639px){
  .hero-head{margin-top:calc(34px + 4svh)}
  .hero-bottom{align-items:center;text-align:center}
  .hero-text{text-align:center}
  .marquee{padding:72px 0 28px;gap:8px}
  .mq-extra{display:flex}
  .mq-row{gap:8px}
  .mq-row img{width:200px;height:130px;border-radius:.75rem}
  .cta{min-height:100svh;background:#0C0C0C;z-index:30;padding-top:max(96px,14svh)}
}
