:root{
  --yk-side-space:280px;
  --yk-content-pad:40px;
  --yk-line:rgba(128,128,128,.75);
  --yk-stroke:#343434;

  /* Общие градиенты — меняются один раз для всего сайта */
  --yk-top-gradient:linear-gradient(
    to bottom,
    rgba(255,255,255,1) 0%,
    /*rgba(255,255,255,1) 38%,*/
    /*rgba(255,255,255,.82) 60%,*/
    rgba(255,255,255,0) 100%
  );

  --yk-bottom-gradient:linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    /*rgba(255,255,255,.82) 38%,*/
    /*rgba(255,255,255,1) 68%,*/
    rgba(255,255,255,1) 100%
  );
}

/* Общая техническая настройка T123 */
.yk-side,
.yk-side *,
.yk-projects-head,
.yk-projects-head *,
.yk-manual-projects,
.yk-manual-projects *{
  box-sizing:border-box;
}

/* Растягиваем T123 на рабочую область справа от левой колонки */
#allrecords{
  padding:0 0 0 var(--yk-side-space);
  background:#fff;
}

#allrecords .t-container{
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding-left:var(--yk-content-pad)!important;
  padding-right:var(--yk-content-pad)!important;
}

#allrecords .t-col{
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

/* Левая фиксированная колонка */
.yk-side{
  position:fixed;
  z-index:100;
  top:10px;
  bottom:10px;
  left:10px;
  width:210px;

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  color:#000;
  font-family:'Ubuntu',sans-serif;
  font-size:12px;
  font-weight:400;
  line-height:1.2;
}

.yk-about p{
  margin:0 0 12px;
}

.yk-links hr{
  display:block;
  width:100%;
  height:1px;
  margin:8px 0;
  padding:0;
  border:0;
  background:var(--yk-line);
  opacity:1;
}

.yk-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.yk-row a{
  color:#fff;
  -webkit-text-stroke:1px var(--yk-stroke);
  text-transform:none;
  font-family:'Ubuntu',sans-serif;
  font-size:15px;
  text-decoration:none;
}

.yk-row a:hover{
  color:var(--yk-stroke);
}

/* Верхняя закреплённая зона «Проекты» */
.yk-projects-head{
  position:fixed;
  z-index:500;
  top:0;
  left:var(--yk-side-space);
  right:0;
  height:100px;
  pointer-events:none;
  background:var(--yk-top-gradient);
}

.yk-projects-title{
  position:fixed;
  z-index:501;
  top:10px;
  left:var(--yk-side-space);
  margin:0;

  color:#343434;
  -webkit-text-stroke:1px #343434;
  text-transform:uppercase;

  font-family:'Ubuntu',sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:1.05;
  letter-spacing:0;
}

/* Список карточек */
.yk-manual-projects{
  --yk-gap:16px;

  width:auto;
  max-width:none;
  margin-left:0px;
  padding:100px 0 10px;

  color:#000;
  font-family:'Ubuntu',sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:1.2;
}

.yk-project-group{
  margin:0;
  padding:0;
}

.yk-project-group-title{
  margin:0 0 8px;

  color:#343434;
  -webkit-text-stroke:1px #343434;
  text-transform:uppercase;

  font-family:'Ubuntu',sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:1.05;
  letter-spacing:0;
}

/* Отступ перед разделом in-house */
.yk-project-group-title--inhouse{
  display:block;
  margin:48px 0 8px!important;
}

/* Одна карточка проекта */
.yk-project-card{
  display:grid;
  grid-template-columns:32% 18% minmax(190px,1fr) 55px;
  column-gap:var(--yk-gap);
  align-items:start;

  margin:0;
  padding:8px 0;
  border:0;
  border-top:1px solid var(--yk-line);
}

/* Нижняя линия у последней карточки */
/*.yk-project-card:last-child{*/
/*  border-bottom:1px solid var(--yk-line);*/
/*}*/

.yk-project-image{
  grid-column:1;
  display:block;
  width:100%;
  aspect-ratio:1.5 / 1;
  overflow:hidden;
  background:#ddd;
}

.yk-project-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}

.yk-project-image:hover img{
  transform:scale(1.02);
}

.yk-project-name{
  grid-column:2;
  margin:0;

  color:#fff;
  -webkit-text-stroke:1px var(--yk-stroke);
  text-transform:uppercase;

  font-family:'Ubuntu',sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:1.05;
  letter-spacing:0;
}

.yk-project-name a{
  color:inherit;
  text-decoration:none;
}

.yk-project-name a:hover{
  color:var(--yk-stroke);
}

.yk-project-text{
  grid-column:3;
  max-width:50ch;
  margin:0;

  color:#000;
  font-family:'Ubuntu',sans-serif;
  font-size:12px;
  font-weight:400;
  line-height:1.22;
}

.yk-project-year{
  grid-column:4;
  justify-self:end;

  color:#808080;
  font-family:'Ubuntu',sans-serif;
  font-size:12px;
  font-weight:400;
  line-height:1.22;
}

/* Мобильная версия главной */
@media screen and (max-width:960px){

  #allrecords{
    padding:16px 16px 120px!important;
  }

  #allrecords .t-container{
    padding-left:0!important;
    padding-right:0!important;
  }

  .yk-side{
    position:static;
    width:auto;
    height:auto;
    display:block;
    margin:0 0 48px;
    font-size:12px;
  }

  .yk-about p{
    margin-bottom:12px;
  }

  /* Белый градиент и закреплённые ссылки внизу */
  .yk-side::after{
    content:"";
    position:fixed;
    z-index:199;
    left:0;
    right:0;
    bottom:0;
    height:120px;
    pointer-events:none;
    background:var(--yk-bottom-gradient);
  }

  .yk-links{
    position:fixed;
    z-index:200;
    left:16px;
    right:16px;
    bottom:16px;
    margin:0!important;
  }

  .yk-row a{
    font-size:15px!important;
  }

  .yk-projects-head{
    position:static;
    width:auto;
    height:auto;
    margin:0 0 48px;
    background:none;
    pointer-events:auto;
  }

  .yk-projects-title{
    position:static;
    margin:0;
    color:#343434;
    -webkit-text-stroke:1px #343434;
    font-size:15px;
    font-weight:400;
  }

  .yk-manual-projects{
    margin-left:0;
    padding:0 0 10px;
  }

  .yk-project-group-title{
    margin-bottom:16px;
  }

  .yk-project-group-title--inhouse{
    margin:32px 0 16px!important;
  }

  .yk-project-card{
    grid-template-columns:1fr;
    row-gap:8px;
    padding:12px 0;
  }

  .yk-project-image,
  .yk-project-name,
  .yk-project-text,
  .yk-project-year{
    grid-column:1;
  }

  .yk-project-image{
    width:100%;
    aspect-ratio:1.5 / 1;
  }

  .yk-project-text{
    max-width:none;
    font-size:12px;
    line-height:1.25;
  }

  .yk-project-year{
    justify-self:start;
    font-size:14px;
  }
}

:root{
  --yk-case-side:210px;
  --yk-case-pad:10px;
  --yk-case-content-left:249px;
  --yk-case-line:rgba(128,128,128,.75);
  --yk-case-stroke:#343434;

  /* Общие градиенты */
  --yk-top-gradient:linear-gradient(
    to bottom,
    rgba(255,255,255,1) 0%,
    /*rgba(255,255,255,1) 38%,*/
    /*rgba(255,255,255,.82) 60%,*/
    rgba(255,255,255,0) 100%
  );

  --yk-bottom-gradient:linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    /*rgba(255,255,255,.82) 38%,*/
    /*rgba(255,255,255,1) 68%,*/
    rgba(255,255,255,1) 100%
  );
}

.yk-case-side,
.yk-case-side *,
.yk-case-media,
.yk-case-media *,
.yk-case-nav,
.yk-case-nav *,
.yk-case-caption,
.yk-case-caption *,
.yk-slider,
.yk-slider *{
  box-sizing:border-box;
}

/* Левая колонка проекта */
.yk-case-side{
  position:fixed;
  z-index:100;
  top:var(--yk-case-pad);
  bottom:var(--yk-case-pad);
  left:var(--yk-case-pad);
  width:var(--yk-case-side);

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  font-family:'Ubuntu',sans-serif;
  font-size:12px;
  font-weight:400;
  line-height:1.2;
  color:#000;
}

.yk-case-title{
  margin:0 0 68px;
  color:#343434;
  -webkit-text-stroke:1px var(--yk-case-stroke);
  text-transform:uppercase;
  font-family:'Ubuntu',sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:1.05;
  letter-spacing:0;
}

.yk-case-description{
  position:relative;
  top:-10px;
}

.yk-case-description p{
  margin:0 0 20px;
}

/* Нижние ссылки */
.yk-case-links hr{
  display:block;
  width:100%;
  height:1px;
  margin:8px 0;
  padding:0;
  border:0;
  background:var(--yk-case-line);
  opacity:1;
}

.yk-case-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.yk-case-row a{
  color:#fff;
  -webkit-text-stroke:1px var(--yk-case-stroke);
  text-decoration:none;
  text-transform:none;
  font-family:'Ubuntu',sans-serif;
  font-size:15px;
}

.yk-case-row a:hover{
  color:var(--yk-case-stroke);
}

/* Медиа проекта */
.yk-case-media{
  display:flex;
  flex-direction:column;
  gap:16px;

  margin-left:0;
  padding:100px 0 10px;

  min-width:0;
  max-width:none;
}

.yk-case-media > img,
.yk-case-media > video,
.yk-case-media > .yk-slider,
.yk-case-media > .yk-case-video,
/*.yk-case-media > .yk-case-caption{*/
/*  display:block;*/
/*  width:100%;*/
/*  max-width:100%;*/
/*  min-width:0;*/
/*}*/

.yk-case-media img,
.yk-case-media video{
  display:block;
  width:100%;
  height:auto;
}

/* Две картинки в ряд */
.yk-case-pair{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.yk-case-pair img{
  width:100%;
  height:auto;
}

/* Верхний градиент на десктопе */
.yk-case-gradient{
  position:fixed;
  z-index:50;
  top:0;
  left:var(--yk-side-space);
  right:0;
  height:100px;
  pointer-events:none;
  background:var(--yk-top-gradient);
}

/* Навигация справа сверху */
.yk-case-nav{
  position:fixed;
  z-index:120;
  top:10px;
  right:10px;

  display:flex;
  align-items:center;
  gap:18px;

  font-family:'Ubuntu',sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:1.05;
}

.yk-case-nav a{
  color:#fff;
  -webkit-text-stroke:1px #343434;
  text-decoration:none;
  text-transform:none;
  white-space:nowrap;
}

.yk-case-nav a:hover{
  color:#343434;
}

/* Подпись перед изображением */
.yk-case-caption{
  display:grid;
  grid-template-columns:32% minmax(0, 1fr);
  column-gap:16px;
  align-items:start;

  width:100%;
  max-width:100%;
  min-width:0;
  margin:32px 0 0;
  padding:0;
}

.yk-case-caption-title{
  margin:0;
  color:#343434;
  -webkit-text-stroke:1px var(--yk-case-stroke);
  text-transform:uppercase;
  font-family:'Ubuntu',sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:1.05;
}

.yk-case-caption-text{
  max-width:48ch;
  margin:0;
  font-family:'Ubuntu',sans-serif;
  font-size:12px;
  font-weight:400;
  line-height:1.22;
  color:#000;
}

/* Vimeo */
.yk-case-video{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  background:#000;
}

.yk-case-video iframe{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}

.yk-case-video::after{
  content:"";
  position:absolute;
  z-index:2;
  inset:0;
  pointer-events:none;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}

/* Слайдер */
.yk-slider{
  position:relative;
  width:100%;
  min-width:0;
  overflow:hidden;
  background:#f4f4f4;
}

.yk-slider-track{
  display:flex;
  width:100%;
  transition:transform .35s ease;
  will-change:transform;
}

.yk-slide{
  flex:0 0 100%;
  min-width:0;
}

.yk-slider img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
}

.yk-slider-btn{
  position:absolute;
  z-index:3;
  top:50%;
  transform:translateY(-50%);

  display:flex;
  align-items:center;
  justify-content:center;
  width:50px;
  height:50px;
  padding:0;

  border:0;
  border-radius:50%;
  background:radial-gradient(
    circle,
    rgba(255,255,255,.98) 0%,
    /*rgba(255,255,255,.82) 24%,*/
    /*rgba(255,255,255,.35) 51%,*/
    rgba(255,255,255,0) 72%
  );

  color:#fff;
  -webkit-text-stroke:1px #343434;
  font-family:'Ubuntu',sans-serif;
  font-size:15px;
  font-weight:400;
  line-height:1;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
}

.yk-slider-prev{left:0}
.yk-slider-next{right:0}

.yk-slider-count{
  position:absolute;
  z-index:2;
  right:0;
  bottom:0;

  display:flex;
  align-items:center;
  justify-content:center;
  width:80px;
  height:50px;
  padding:0;

  background:radial-gradient(
    ellipse at center,
    rgba(255,255,255,.90) 0%,
    /*rgba(255,255,255,.65) 30%,*/
    /*rgba(255,255,255,.22) 52%,*/
    rgba(255,255,255,0) 70%
  );

  color:#343434;
  -webkit-text-stroke:.7px #343434;
  font-family:'Ubuntu',sans-serif;
  font-size:12px;
  font-weight:400;
  line-height:1;
}

/* Мобильная версия */
@media screen and (max-width:960px){

  #allrecords{
    padding-bottom:120px!important;
  }

  .yk-case-gradient{
    display:none;
  }

  .yk-case-side{
  position:static;
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
  padding:92px 0 16px;
  font-family:'Ubuntu',Arial,sans-serif;
  font-size:12px;
  font-weight:400;
  line-height:1.2;
  }

  .yk-case-side .yk-case-title{
  position:fixed;
  z-index:121;
  top:16px;
  left:16px;
  width:calc(100% - 132px);
  margin:0!important;

  color:#343434!important;
  -webkit-text-stroke:1px #343434!important;
  text-transform:uppercase!important;

  font-family:'Ubuntu',Arial,sans-serif!important;
  font-style:normal!important;
  font-size:15px!important;
  font-weight:400!important;
  line-height:1.05!important;
  letter-spacing:0!important;
  }

  .yk-case-description{
    top:0;
  }

  .yk-case-description p{
    margin-bottom:16px;
  }

  .yk-case-side::before{
    content:"";
    position:fixed;
    z-index:110;
    top:0;
    left:0;
    right:0;
    height:78px;
    pointer-events:none;

    background:linear-gradient(
      to bottom,
      rgba(255,255,255,1) 0%,
      /*rgba(255,255,255,.98) 42%,*/
      /*rgba(255,255,255,.65) 72%,*/
      rgba(255,255,255,0) 100%
    );
  }

  .yk-case-side::after{
    content:"";
    position:fixed;
    z-index:199;
    left:0;
    right:0;
    bottom:0;
    height:120px;
    pointer-events:none;
    background:var(--yk-bottom-gradient);
  }

  .yk-case-links{
    position:fixed;
    z-index:200;
    left:16px;
    right:16px;
    bottom:16px;
    margin:0!important;
  }

  .yk-case-row a{
    font-size:15px!important;
  }

  .yk-case-media{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0 0 32px!important;
  gap:12px!important;
  box-sizing:border-box!important;
  }
  
  .yk-case-media > img,
.yk-case-media > video,
.yk-case-media > .yk-slider,
.yk-case-media > .yk-case-video,
.yk-case-media > .yk-case-caption,
.yk-case-pair{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}


  .yk-case-pair{
    grid-template-columns:1fr;
    gap:12px;
  }

  .yk-case-caption{
    grid-template-columns:1fr;
    row-gap:10px;
    margin-top:24px;
  }

  .yk-case-caption-title{
    font-size:15px;
  }

  .yk-case-caption-text{
    max-width:none;
    font-size:12px;
    line-height:1.25;
  }

  .yk-case-nav{
    z-index:121!important;
    top:16px;
    right:16px;
    gap:18px;
    font-size:0;
  }

  .yk-case-nav-home,
  .yk-case-nav-next,
  .yk-case-nav-prev{
    display:block!important;
    font-size:0;
    line-height:1;
  }

  .yk-case-nav-home::after{
    content:"×";
    display:block;
    font-size:24px;
    line-height:1;
  }

  .yk-case-nav-next::after{
    content:"→";
    display:block;
    font-size:24px;
    line-height:1;
  }

  .yk-case-nav-prev::after{
    content:"→";
    display:block;
    font-size:24px;
    line-height:1;
    transform:scaleX(-1);
  }

  .yk-slider-btn{
    width:40px;
    height:40px;
    font-size:22px;
    -webkit-text-stroke:.8px #343434;
    background:radial-gradient(
      circle,
      rgba(255,255,255,.90) 0%,
      /*rgba(255,255,255,.55) 34%,*/
      /*rgba(255,255,255,.18) 57%,*/
      rgba(255,255,255,0) 74%
    );
  }

  .yk-slider-prev{left:0}

  .yk-slider-next{right:0}

  .yk-slider-prev{
    font-size:0;
  }

  .yk-slider-prev::after{
    content:"→";
    display:block;
    font-size:22px;
    line-height:1;
    transform:scaleX(-1);
  }

  .yk-slider-next{
    font-size:22px;
  }

  .yk-slider-count{
    right:2px;
    bottom:0;
    width:54px;
    height:34px;
    padding:0;

    background:radial-gradient(
      ellipse at center,
      rgba(255,255,255,.90) 0%,
      /*rgba(255,255,255,.60) 30%,*/
      /*rgba(255,255,255,.20) 54%,*/
      rgba(255,255,255,0) 72%
    );

    color:#343434;
    -webkit-text-stroke:.65px #343434;
    font-size:12px;
  }
}