:root{
  --white:#FFFFFF;
  --soft:#F7F9FC;
  --text:#111318;
  --text-secondary:#667085;
  --line:#DDE1E7;
  --blue:#176BFF;
  --blue-hover:#0E5CE6;
  --dark:#10131A;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;background:var(--white);}
body{font-family:'Onest','Manrope',Arial,sans-serif;color:var(--text);overflow-x:hidden;}
::selection{background:rgba(23,107,255,0.28)}
a{color:inherit}
h1,h2,h3,p{margin:0}
button{font-family:inherit;cursor:pointer}
.container{max-width:1320px;margin:0 auto;padding-inline:20px}
@media(min-width:768px){.container{padding-inline:32px}}
@media(min-width:1200px){.container{padding-inline:48px}}

/* Header */
.header{position:fixed;top:0;left:0;right:0;z-index:150;height:64px;background:transparent;transition:background 220ms ease,border-color 220ms ease;border-bottom:1px solid transparent;}
@media(min-width:900px){.header{height:76px}}
.header.scrolled{background:rgba(255,255,255,0.88);backdrop-filter:blur(14px);border-bottom-color:var(--line);}
.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:12px;text-decoration:none;line-height:1}
.logo-img{width:36px;height:36px;border-radius:9px;display:block;transition:opacity .2s ease}
.logo:hover .logo-img{opacity:.82}
.logo-text{display:flex;flex-direction:column}
.logo-main{font-weight:650;font-size:15px;letter-spacing:-0.02em;color:var(--text)}
.logo-sub{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:0.14em;color:var(--text-secondary);margin-top:4px}
.nav{display:flex;gap:36px}
.nav a{font-size:15px;color:#3E4653;text-decoration:none;transition:color 200ms ease}
.nav a:hover{color:var(--text)}
.header .nav-desktop{display:none}
.header .burger{display:inline-flex}
@media(min-width:900px){
  .header nav.nav-desktop{display:flex}
  .header a.nav-desktop{display:inline-flex}
  .header .burger{display:none}
}

.burger{width:44px;height:44px;border-radius:8px;background:transparent;border:1px solid var(--line);align-items:center;justify-content:center;position:relative}
.burger span{position:absolute;left:13px;right:13px;height:2px;background:var(--text)}
.burger span:first-child{top:17px}
.burger span:last-child{bottom:17px}

.mobile-menu{position:fixed;inset:0;background:var(--soft);z-index:200;display:none;flex-direction:column;padding:24px 20px;}
.mobile-menu.open{display:flex}
.mobile-menu-top{display:flex;justify-content:space-between;align-items:center;height:44px}
.mobile-close{width:44px;height:44px;border-radius:8px;background:transparent;border:1px solid var(--line);font-size:18px}
.mobile-nav{display:flex;flex-direction:column;gap:12px;margin-top:44px}
.mobile-nav-link{font-size:36px;font-weight:650;color:var(--text);text-decoration:none;letter-spacing:-0.02em}
.mobile-menu-contacts{margin-top:auto;font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--text-secondary)}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;height:56px;padding:0 28px;border-radius:10px;font-size:16px;font-weight:600;border:1px solid transparent;text-decoration:none;transition:background 200ms ease,border-color 200ms ease,transform 200ms ease,box-shadow 200ms ease;}
.btn-primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.btn-primary:hover{background:var(--blue-hover);border-color:var(--blue-hover);transform:translateY(-2px);box-shadow:0 12px 30px rgba(23,107,255,0.18)}
.btn-primary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.btn-secondary{background:#fff;color:var(--text);border-color:#CDD5DF}
.btn-secondary:hover{background:#fff;border-color:var(--text);transform:translateY(-2px)}
.btn-header{height:46px;padding:0 20px;border-radius:10px;font-size:14px}
.btn-dark{background:#111318;color:#fff;border-color:#111318}
.btn-dark:hover{background:#000}

/* Hero */
.hero{min-height:100svh;height:auto;display:flex;align-items:center;background:#fff;padding-top:120px;padding-bottom:72px;}
@media(min-width:900px){.hero{padding-top:112px;padding-bottom:80px}}
.hero-text{max-width:1080px}
.hero-title{font-family:'Onest','Manrope',Arial,sans-serif;font-weight:700;font-size:clamp(48px,13.5vw,70px);line-height:0.92;letter-spacing:-0.058em;max-width:100%;text-wrap:balance}
@media(min-width:768px) and (max-width:1099px){.hero-title{font-size:clamp(68px,8.8vw,104px);line-height:0.91;letter-spacing:-0.065em;max-width:1220px}}
@media(min-width:1100px){.hero-title{font-size:clamp(82px,8.3vw,142px);line-height:0.88;letter-spacing:-0.072em;max-width:1220px}}
.line-mask{display:block;overflow:hidden;padding-bottom:0.08em;margin-bottom:-0.08em}
.line{display:block;line-height:1.08;transform:translateY(115%);opacity:0;transition:transform 900ms cubic-bezier(.16,1,.3,1),opacity 900ms cubic-bezier(.16,1,.3,1)}
.line.shown{transform:translateY(0);opacity:1}
.accent{color:var(--blue)}
.hero-desc{max-width:720px;font-size:clamp(19px,1.45vw,23px);line-height:1.48;letter-spacing:-0.022em;font-weight:430;color:var(--text-secondary);margin-top:40px}
.hero-actions{display:flex;gap:12px;margin-top:36px}
@media(max-width:480px){.hero-actions{display:grid;grid-template-columns:1fr}.hero-actions .btn{width:100%}}
.hero-fade{opacity:0;transform:translateY(20px);transition:opacity 700ms cubic-bezier(.16,1,.3,1),transform 700ms cubic-bezier(.16,1,.3,1)}
.hero-fade.shown{opacity:1;transform:translateY(0)}

/* Sections */
.section{padding:80px 0}
@media(min-width:900px){.section{padding:140px 0}}
.section-soft{background:var(--soft)}
.section-blue{background:var(--blue);color:#fff}
h2{font-weight:650;letter-spacing:-0.04em;font-size:clamp(32px,4vw,52px);line-height:1.08}
.lead{font-size:17px;line-height:1.5;color:var(--text-secondary);max-width:520px;margin-top:16px}
.reveal{opacity:0;transform:translateY(20px);transition:opacity 700ms cubic-bezier(.16,1,.3,1),transform 700ms cubic-bezier(.16,1,.3,1)}
.reveal.shown{opacity:1;transform:translateY(0)}

.approach-grid{display:grid;grid-template-columns:1fr;gap:40px;margin-top:72px}
@media(min-width:900px){.approach-grid{grid-template-columns:repeat(3,1fr)}}
.approach-card{border-top:1px solid var(--line);padding-top:24px}
.approach-title{font-weight:650;font-size:19px;margin-bottom:10px}
.approach-card p{font-size:16px;line-height:1.55;color:var(--text-secondary)}

/* Services */
.services-grid{display:grid;grid-template-columns:1fr;gap:18px}
@media(min-width:900px){.services-grid{grid-template-columns:repeat(3,1fr)}}
.service-card{min-height:400px;padding:32px;border-radius:14px;background:#fff;border:1px solid #DCE1E9;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;transition:transform 320ms cubic-bezier(.22,.61,.36,1),border-color 320ms ease,box-shadow 320ms ease,background 320ms ease;}
.service-card.open{background:var(--blue);border-color:rgba(23,107,255,0.5);box-shadow:0 24px 60px rgba(17,24,39,0.09);transform:translateY(-8px)}
.service-title{font-weight:650;font-size:24px;letter-spacing:-0.02em;margin-bottom:14px}
.service-desc{font-size:15px;line-height:1.5;color:var(--text-secondary)}
.service-card.open .service-title,.service-card.open .service-price{color:#fff}
.service-card.open .service-desc,.service-card.open .service-includes div{color:rgba(255,255,255,0.82)}
.service-details{max-height:0;opacity:0;overflow:hidden;transition:max-height 360ms cubic-bezier(.22,.61,.36,1),opacity 260ms ease}
.service-card.open .service-details{max-height:220px;opacity:1}
.service-includes{padding-top:18px;display:flex;flex-direction:column;gap:8px}
.service-includes div{font-size:13px;color:var(--text-secondary)}
.service-price{font-weight:700;font-size:22px;letter-spacing:-0.02em;margin-top:24px}

/* Process */
.process-layout{display:flex;flex-direction:column;gap:56px}
@media(min-width:900px){.process-layout{flex-direction:row}.process-left{position:sticky;top:110px;align-self:flex-start}}
.process-left{flex:1 1 380px}
.process-left p{max-width:420px;margin-top:20px}
.process-right{flex:1 1 500px}
.process-step{min-height:180px;display:flex;flex-direction:column;justify-content:center;border-top:1px solid var(--line);padding:28px 0;opacity:0.55;transition:opacity 500ms cubic-bezier(.22,.61,.36,1);}
.process-step.active{opacity:1}
.process-num{font-family:'IBM Plex Mono',monospace;font-size:13px;margin-bottom:10px;color:#9AA1AC}
.process-step.active .process-num{color:var(--blue)}
.process-title{font-weight:650;font-size:clamp(18px,1.8vw,22px);letter-spacing:-0.02em;margin-bottom:8px}
.process-step.active .process-title{font-size:clamp(22px,2.4vw,30px)}
.process-step p{font-size:15px;line-height:1.5;color:var(--text-secondary);max-width:440px}

/* Principles */
.principles-grid{display:grid;grid-template-columns:1fr;border-top:1px solid rgba(255,255,255,0.24);margin-top:48px}
@media(min-width:900px){.principles-grid{grid-template-columns:repeat(2,1fr);border-left:1px solid rgba(255,255,255,0.24)}}
.principle{border-right:1px solid rgba(255,255,255,0.24);border-bottom:1px solid rgba(255,255,255,0.24);padding:36px 30px;transition:opacity 300ms ease}
.principle.dimmed{opacity:0.55}
.principle-title{font-weight:650;font-size:20px;margin-bottom:10px}
.principle p{font-size:15px;line-height:1.5;color:rgba(255,255,255,0.8)}

/* FAQ */
.faq-layout{display:grid;grid-template-columns:1fr;gap:60px}
@media(min-width:900px){.faq-layout{grid-template-columns:minmax(260px,0.75fr) minmax(460px,1.25fr);gap:clamp(60px,9vw,140px)}.faq-left{position:sticky;top:110px;align-self:flex-start}}
.faq-left p{max-width:380px;margin-top:16px}
.faq-item{border-bottom:1px solid var(--line)}
.faq-item.open{border-color:rgba(23,107,255,0.35)}
.faq-question{width:100%;text-align:left;border:none;background:transparent;min-height:64px;display:flex;align-items:center;justify-content:space-between;padding:26px 8px;}
.faq-question span:first-child{font-weight:620;font-size:clamp(18px,1.6vw,22px);line-height:1.2;letter-spacing:-0.025em;color:var(--text)}
.faq-item.open .faq-question span:first-child{color:var(--blue)}
.faq-plus{font-size:20px;flex:none;margin-left:16px;color:var(--text);display:inline-block;transition:transform 300ms cubic-bezier(.22,.61,.36,1)}
.faq-item.open .faq-plus{transform:rotate(45deg)}
.faq-answer{max-height:0;opacity:0;overflow:hidden;transition:max-height 360ms cubic-bezier(.22,.61,.36,1),opacity 260ms ease}
.faq-item.open .faq-answer{max-height:260px;opacity:1}
.faq-answer p{margin:0;padding:0 8px 26px;font-size:17px;line-height:1.6;color:var(--text-secondary);max-width:620px}

/* CTA */
.cta-section{min-height:70vh;display:flex;flex-direction:column;justify-content:center;padding-bottom:40px}
.cta-title{font-weight:700;letter-spacing:-0.05em;font-size:clamp(34px,5.4vw,76px);line-height:1;margin-bottom:24px;max-width:880px}
.cta-desc{font-size:17px;line-height:1.5;color:rgba(255,255,255,0.82);max-width:540px;margin-bottom:32px}

/* Footer */
.footer{background:var(--dark);color:#fff;padding:64px 0 32px}
.footer-top{display:flex;flex-direction:column;gap:48px;justify-content:space-between}
@media(min-width:900px){.footer-top{flex-direction:row}}
.footer-about{max-width:320px}
.footer-logo{font-weight:650;font-size:16px}
.footer-about p{font-size:15px;line-height:1.5;color:rgba(255,255,255,0.55);margin-top:12px}
.footer-cols{display:flex;flex-direction:column;gap:24px}
@media(min-width:900px){.footer-cols{flex-direction:row;gap:56px}}
.footer-heading{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.1em;color:rgba(255,255,255,0.4);margin-bottom:14px}
.footer-cols a{display:block;color:rgba(255,255,255,0.6);font-size:14px;text-decoration:none;margin-bottom:10px}
.footer-cols a:hover{color:#fff}
.footer-bottom{margin-top:48px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;border-top:1px solid rgba(255,255,255,0.14);padding-top:24px}
.footer-bottom span{font-size:13px;color:rgba(255,255,255,0.45)}
.footer-bottom button{background:none;border:none;color:rgba(255,255,255,0.6);font-size:13px;display:flex;align-items:center;gap:6px}
.footer-bottom button:hover{color:#fff}

/* Overlays */
.overlay{position:fixed;inset:0;background:rgba(17,19,24,0.42);backdrop-filter:blur(4px);z-index:320;display:none}
.overlay.open{display:block}
.dialog{background:#fff;color:var(--text);width:calc(100% - 48px);max-width:560px;border-radius:12px;padding:36px;max-height:80vh;overflow-y:auto;margin:10vh auto}
.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.dialog-head h3{font-weight:650;font-size:20px}
.dialog-close{width:32px;height:32px;border-radius:8px;background:#F1F2F4;border:none;font-size:15px}
.muted{font-size:15px;line-height:1.6;color:var(--text-secondary)}
.muted.small{font-size:12px}

.cta-secondary-link{display:inline-block;margin-top:20px;color:#fff;font-size:15px;text-decoration:underline;opacity:0.85}
.cta-secondary-link:hover{opacity:1}
.btn-mail{display:inline-flex;align-items:center;gap:9px;background:rgba(255,255,255,0.12);color:#fff;border:1px solid rgba(255,255,255,0.35);border-radius:10px;padding:0 22px;height:52px;font-size:15px;font-weight:600;text-decoration:none;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.btn-mail svg{opacity:.85}
.btn-mail:hover{background:#fff;color:var(--blue);border-color:#fff;transform:translateY(-2px)}

/* Works page */
.works-hero{background:#fff;padding-top:150px;padding-bottom:64px}
@media(min-width:900px){.works-hero{padding-top:170px;padding-bottom:80px}}
.works-hero h1{font-size:clamp(64px,7vw,112px);line-height:0.91;letter-spacing:-0.065em;font-weight:700;max-width:1100px;margin:0}
.work-project{padding:64px 0;border-top:1px solid #E3E7ED;border-bottom:1px solid #E3E7ED}
.work-project-inner{display:grid;grid-template-columns:1fr;gap:32px;align-items:start}
@media(min-width:900px){.work-project-inner{grid-template-columns:minmax(260px,0.75fr) minmax(0,1.25fr);gap:72px}}
.work-title{font-weight:650;letter-spacing:-0.03em;font-size:clamp(28px,3vw,40px);margin:0}
.work-type{color:var(--text-secondary);font-size:16px;margin-top:10px}
.work-desc{font-size:17px;line-height:1.6;color:var(--text-secondary);max-width:640px;margin-bottom:20px}

/* 404 page */
.error-page{min-height:100svh;display:flex;flex-direction:column;background:#FFFFFF}
.error-main{flex:1;display:flex;align-items:center;overflow:hidden;background:#FFFFFF;padding:58px 0 64px;min-height:calc(100svh - 84px)}
.error-stage{position:relative;width:min(calc(100% - 96px),1480px);min-height:720px;margin:0 auto}
.depth-type{position:absolute;top:50%;left:0;width:100%;transform:translateY(-56%);font-family:'Onest',Arial,sans-serif;font-size:clamp(270px,37vw,610px);line-height:0.7;letter-spacing:-0.12em;font-weight:760;white-space:nowrap;user-select:none}
.depth-type-front{position:absolute;inset:0;color:#111318;z-index:10}
.depth-type-layer{position:absolute;inset:0;transform-origin:left center}
.depth-type-layer--1{color:#176BFF;transform:translate(14px,-10px) scale(0.988);z-index:9}
.depth-type-layer--2{color:#3B7DFF;transform:translate(28px,-20px) scale(0.976);z-index:8}
.depth-type-layer--3{color:#6B9AFF;transform:translate(42px,-30px) scale(0.964);z-index:7}
.depth-type-layer--4{color:#99B8FF;transform:translate(56px,-40px) scale(0.952);z-index:6}
.depth-type-layer--5{color:#C3D5FF;transform:translate(70px,-50px) scale(0.94);z-index:5}
.depth-type-layer--6{color:#E5EDFF;transform:translate(84px,-60px) scale(0.928);z-index:4}
.error-copy{position:absolute;z-index:20;right:0;bottom:18px;width:min(620px,48%);opacity:0;transform:translateY(20px);animation:errorReveal 700ms 520ms cubic-bezier(.16,1,.3,1) forwards}
.error-label{margin:0;font-size:14px;line-height:1;font-weight:650;color:#176BFF}
.error-copy h1{margin:14px 0 0;font-family:'Onest',Arial,sans-serif;font-size:clamp(56px,5.2vw,88px);line-height:0.92;letter-spacing:-0.065em;font-weight:720;color:#111318}
.error-description{max-width:560px;margin-top:24px;font-size:19px;line-height:1.5;letter-spacing:-0.018em;color:#667085}
.error-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.error-actions .btn{min-height:54px}
.error-contacts{display:flex;flex-wrap:wrap;gap:24px;margin-top:24px;font-size:14px}
.error-contacts a{color:#667085;text-decoration:none}
.error-contacts a:hover{color:#176BFF}
.error-footer{border-top:1px solid #E3E7ED;background:#FFFFFF;padding:24px 0}
.error-footer-inner{display:flex;justify-content:space-between;align-items:center;gap:16px}
.error-footer span{font-size:13px;color:#667085}
.error-footer button{background:none;border:none;color:#667085;font-size:13px}
.error-footer button:hover{color:#176BFF}
.depth-type-layer,.depth-type-front{opacity:0;animation:errorReveal 750ms cubic-bezier(.16,1,.3,1) forwards}
.depth-type-layer--6{animation-delay:40ms}
.depth-type-layer--5{animation-delay:95ms}
.depth-type-layer--4{animation-delay:150ms}
.depth-type-layer--3{animation-delay:205ms}
.depth-type-layer--2{animation-delay:260ms}
.depth-type-layer--1{animation-delay:315ms}
.depth-type-front{animation-delay:370ms}
@media(max-width:960px){.error-main{min-height:auto;padding:112px 0 72px}.error-stage{width:calc(100% - 40px);min-height:0}.depth-type{position:relative;top:auto;left:auto;transform:none;height:0.72em;font-size:clamp(150px,45vw,310px)}.depth-type-layer--1{transform:translate(6px,-4px) scale(0.988)}.depth-type-layer--2{transform:translate(12px,-8px) scale(0.976)}.depth-type-layer--3{transform:translate(18px,-12px) scale(0.964)}.depth-type-layer--4{transform:translate(24px,-16px) scale(0.952)}.depth-type-layer--5{transform:translate(30px,-20px) scale(0.94)}.depth-type-layer--6{transform:translate(36px,-24px) scale(0.928)}.error-copy{position:relative;right:auto;bottom:auto;width:100%;margin-top:64px}}
@media(max-width:480px){.error-actions{display:grid;grid-template-columns:1fr}.error-contacts{flex-direction:column;gap:10px}.error-copy h1{font-size:clamp(46px,12vw,58px)}}
@keyframes errorReveal{to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.error-copy,.depth-type-layer,.depth-type-front{opacity:1 !important;animation:none !important}.error-copy{transform:none !important}}

/* Mobile polish */
@media(max-width:600px){
  .section{padding:64px 0}
  .hero-desc{margin-top:28px;font-size:18px}
  .hero-actions{margin-top:28px}
  .service-card{min-height:0;padding:26px}
  .btn-mail{width:100%;justify-content:center}
  .logo-sub{display:none}
}
@media(max-width:380px){
  .container{padding-inline:16px}
  .logo-img{width:32px;height:32px}
  .hero-title{font-size:clamp(40px,12.5vw,54px)}
  .btn-mail{font-size:14px}
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}
  .line,.hero-fade,.reveal{opacity:1 !important;transform:none !important}
}
