:root{
  --text:#000;
  --sky:#00a8f0;
  --blue:#1a56ff;
  --grey:#efefef;
  --gap:52px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Jost","TildaSans",Arial,sans-serif;
  font-size:20px;line-height:1.55;font-weight:400;
  color:var(--text);background:#fff;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
p{margin:0 0 1.2em}
h1,h2,h3{margin:0;line-height:1.17}
h2{font-size:52px;font-weight:600}
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.center{text-align:center}

/* buttons */
.btn{
  display:inline-block;padding:0 56px;height:60px;line-height:60px;
  border-radius:30px;color:#fff;text-decoration:none;
  font-size:18px;font-weight:600;
  transition:transform .2s,box-shadow .2s,filter .2s;
}
.btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.18);filter:brightness(1.05)}
.btn--sky{background:var(--sky)}
.btn--blue{background:var(--blue)}

/* hero */
.hero{padding:60px 0 30px;overflow:hidden}
.hero__inner{display:flex;align-items:center;justify-content:space-between;gap:40px}
.hero__text{flex:0 1 560px}
.hero__logo{width:193px;margin:0 0 8px 9px}
.hero h1{font-size:65px;font-weight:800;margin-bottom:16px;letter-spacing:.01em}
.hero__lead{font-size:20px;line-height:1.5;margin-bottom:1.1em;max-width:470px}
.hero__img{flex:0 1 650px}
.hero__img img{width:100%;height:auto}

/* about */
.about{display:flex;gap:80px;padding-top:50px;padding-bottom:20px}
.about__main{flex:0 0 548px}
.about__main p{margin-bottom:2em}
.about__side{flex:1}
.about__side p{margin-bottom:1.4em}

/* partners */
.partners{display:flex;align-items:center;justify-content:space-between;gap:30px;padding-top:30px;padding-bottom:50px}
.partners img{width:auto;max-width:100%;object-fit:contain}

/* theme */
.theme{display:flex;gap:60px;align-items:flex-start;padding-top:50px;padding-bottom:60px}
.theme__text{flex:0 0 480px;font-size:20px}
.theme__text h2{font-size:44px;font-weight:800;margin-bottom:40px}
.theme ul{margin:0;padding:0;list-style:none}
.theme li{margin-bottom:.3em;padding-left:1.4em;text-indent:-1.4em}
.theme li::before{content:"— ";display:inline-block;width:1.4em;text-indent:0}
.theme__photos{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:30px}
.theme__photos img{width:100%;aspect-ratio:297/354;object-fit:cover}

/* stages */
.stages{padding-top:30px;padding-bottom:50px}
.stages h2{font-size:44px;font-weight:600;margin-bottom:80px}
.stages__list{list-style:none;margin:0 0 60px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px 40px;counter-reset:s}
.stages__list li{position:relative;padding-top:56px}
.stages__list li::before{content:"";position:absolute;top:19px;left:40px;right:-40px;height:1px;background:#ccc}
.stages__list li:last-child::before{right:0}
.stages__num{
  position:absolute;top:0;left:0;width:38px;height:38px;border-radius:50%;
  background:#222;color:#fff;font-size:16px;font-weight:600;
  display:flex;align-items:center;justify-content:center;z-index:1
}
.stages h3{font-size:20px;font-weight:600;margin-bottom:12px}
.stages__list p{font-size:15px;line-height:1.55;font-weight:300;margin-bottom:16px}
.stages__list b{font-size:14px;font-weight:600}
.stages .center{display:flex;justify-content:center}

/* members */
.members{padding-top:30px;padding-bottom:60px}
.members h2{font-size:38px;font-weight:600;margin-bottom:50px}
.members__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px 40px}
.members__list li{font-size:20px;line-height:1.55}

/* cases */
.cases{padding-top:60px;padding-bottom:70px}
.cases h2{font-size:52px;font-weight:600;margin-bottom:60px}
.cases__btn{display:flex;justify-content:center;align-items:center;gap:30px}
.cases__arrow{transform:translateY(-14px)}
.cases .btn{height:60px;padding:0 60px}
.cases__btn{position:relative;left:-12px}

/* gallery */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding-bottom:70px}
.gallery a{display:block;overflow:hidden}
.gallery img{width:100%;aspect-ratio:275/206;object-fit:cover;transition:transform .4s}
.gallery a:hover img{transform:scale(1.05)}

/* archive */
.archive{background:var(--grey);padding:60px 0 20px}
.archive h2{font-size:44px;margin-bottom:60px}
.arch{display:flex;align-items:center;gap:90px;padding:40px 0}
.arch--rev{flex-direction:row-reverse}
.arch__text{flex:1}
.arch__text h3{font-size:50px;font-weight:300;margin-bottom:24px}
.arch__text p{font-size:20px;margin-bottom:40px}
.arch img{flex:0 0 560px;width:560px;height:auto;aspect-ratio:3/2;object-fit:cover}

/* lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;z-index:100;cursor:zoom-out;padding:20px}
.lightbox[hidden]{display:none}
.lightbox img{max-width:100%;max-height:100%;object-fit:contain}

/* reveal */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}
.reveal.is-in{opacity:1;transform:none}

/* tablet */
@media (max-width:1100px){
  .about{gap:40px}
  .about__main{flex-basis:50%}
  .theme{gap:30px}
  .theme__text{flex-basis:44%}
  .arch{gap:40px}
  .arch img{flex-basis:46%;width:46%}
  .arch__text h3{font-size:40px}
}
@media (max-width:900px){
  .hero__inner{flex-direction:column;align-items:flex-start}
  .hero__img{flex-basis:auto;width:100%}
  .about,.theme{flex-direction:column}
  .about__main,.theme__text{flex-basis:auto}
  .partners{flex-wrap:wrap;justify-content:center}
  .gallery{grid-template-columns:repeat(2,1fr)}
  .members__list{grid-template-columns:repeat(2,1fr)}
}
/* mobile */
@media (max-width:640px){
  body{font-size:18px}
  h2,.cases h2{font-size:34px}
  .hero{padding-top:30px}
  .hero h1{font-size:38px}
  .hero__lead{font-size:18px}
  .theme__text h2{font-size:34px}
  .stages h2,.members h2,.archive h2{font-size:32px}
  .stages h2{margin-bottom:40px}
  .stages__list{grid-template-columns:1fr}
  .stages__list li::before{display:none}
  .stages__list li{padding-bottom:20px}
  .members__list{grid-template-columns:1fr}
  .partners img{height:auto!important;max-height:80px}
  .theme__photos{gap:12px}
  .cases__arrow{display:none}
  .cases__btn{left:0}
  .cases .btn,.btn{padding:0 36px}
  .gallery{gap:10px}
  .arch,.arch--rev{flex-direction:column;align-items:flex-start;gap:24px}
  .arch img{flex-basis:auto;width:100%}
  .arch__text h3{font-size:34px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
}
