/* Изолированные стили главной страницы */
.home-page{
  overflow-x:hidden;
  background:var(--bg);
}

.home-page .home-shell{
  width:min(var(--max),calc(100% - 44px));
  margin-inline:auto;
}

.home-page .home-header{
  min-height:82px;
  height:auto;
  gap:28px;
}

.home-page .home-header .brand{
  flex:0 0 auto;
}

.home-page .home-nav{
  align-items:center;
  gap:clamp(16px,1.7vw,28px);
}

.home-page .home-nav a{
  white-space:nowrap;
}

.home-page .home-nav__cta{
  min-height:42px;
  padding:0 18px;
  border:1px solid var(--dark);
  background:var(--dark);
  color:var(--paper);
  display:inline-flex;
  align-items:center;
}

.home-page .home-nav__cta:hover{
  border-color:var(--text);
  background:var(--text);
}

.home-page .home-hero{
  position:relative;
  min-height:calc(100svh - 82px);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:var(--dark);
}

.home-page .home-hero__image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.home-page .home-hero__shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(24,23,20,.8) 0%,rgba(24,23,20,.5) 42%,rgba(24,23,20,.08) 76%),
    linear-gradient(0deg,rgba(24,23,20,.35),transparent 50%);
}

.home-page .home-hero__content{
  position:relative;
  z-index:1;
  width:min(820px,calc(100% - 44px));
  margin:0 0 clamp(56px,8vw,110px) max(22px,calc((100vw - var(--max))/2));
  color:#fff;
}

.home-page .home-hero h1{
  max-width:800px;
  margin:0;
  font-size:clamp(48px,6.2vw,88px);
  line-height:.98;
  letter-spacing:-.048em;
  font-weight:580;
  text-wrap:balance;
}

.home-page .home-hero__lead{
  margin:24px 0 0;
  font-size:clamp(20px,2vw,28px);
  line-height:1.3;
}

.home-page .home-hero__text{
  margin:8px 0 0;
  color:rgba(255,255,255,.78);
  font-size:clamp(16px,1.4vw,19px);
}

.home-page .home-hero__actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:24px;
  margin-top:34px;
}

.home-page .home-button{
  min-height:52px;
  padding:0 24px;
  border:1px solid transparent;
  border-radius:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font:inherit;
  font-size:14px;
  font-weight:650;
  cursor:pointer;
}

.home-page .home-button--light{
  background:var(--paper);
  color:var(--text);
}

.home-page .home-button--dark{
  background:var(--dark);
  color:#fff;
}

.home-page .home-button:hover{
  filter:brightness(.94);
}

.home-page .home-text-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding-bottom:3px;
  border-bottom:1px solid currentColor;
  font-size:14px;
  font-weight:650;
}

.home-page .home-text-link--light{
  color:#fff;
  border-color:rgba(255,255,255,.55);
}

.home-page .home-title{
  margin:0;
  max-width:900px;
  font-size:clamp(36px,4.6vw,64px);
  line-height:1.04;
  letter-spacing:-.04em;
  font-weight:560;
  text-wrap:balance;
}

.home-page .home-section{
  padding:clamp(86px,9vw,128px) 0;
}

.home-page .home-section__head{
  margin-bottom:42px;
}

.home-page .home-section__head--split{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:48px;
}

.home-page .home-section__head--split>p{
  max-width:500px;
  margin:0 0 8px;
  color:var(--muted);
  font-size:18px;
}

.home-page .home-intro{
  background:var(--paper);
}

.home-page .home-intro__inner{
  padding:clamp(72px,8vw,112px) 0;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.75fr);
  gap:clamp(46px,8vw,120px);
  align-items:start;
}

.home-page .home-intro__inner>p{
  max-width:620px;
  margin:8px 0 0;
  color:#4f4b44;
  font-size:clamp(18px,1.55vw,21px);
  line-height:1.65;
}

.home-page .home-projects__track{
  display:grid;
  gap:24px;
}

.home-page .home-project-card{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(300px,.5fr);
  background:var(--paper);
  border:1px solid rgba(36,35,31,.08);
}

.home-page .home-project-card__media{
  display:block;
  min-height:440px;
  overflow:hidden;
  background:#d8d2c8;
}

.home-page .home-project-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

.home-page .home-project-card__media:hover img{
  transform:scale(1.012);
}

.home-page .home-project-card__body{
  min-width:0;
  padding:clamp(28px,4vw,52px);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-end;
}

.home-page .home-meta{
  margin:0 0 15px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.home-page .home-project-card h3{
  margin:0;
  font-size:clamp(30px,3.1vw,44px);
  line-height:1.05;
  letter-spacing:-.035em;
  font-weight:560;
}

.home-page .home-project-card__body>p:not(.home-meta){
  margin:20px 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}

.home-page .home-project-card .home-text-link{
  margin-top:30px;
}

.home-page .home-projects__all{
  margin-top:34px;
}

.home-page .home-directions{
  background:var(--paper);
}

.home-page .home-directions__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(24px,4vw,56px);
  align-items:stretch;
}

.home-page .home-direction-card figure,
.home-page .home-process figure{
  margin:0;
}

.home-page .home-direction-card figure{
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--bg);
}

.home-page .home-direction-card img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.home-page .home-direction-card__copy{
  padding-top:24px;
}

.home-page .home-direction-card h3{
  margin:0;
  font-size:clamp(28px,3vw,42px);
  line-height:1.08;
  letter-spacing:-.03em;
  font-weight:560;
}

.home-page .home-direction-card p{
  max-width:570px;
  margin:14px 0 0;
  color:var(--muted);
  font-size:17px;
}

.home-page .home-process{
  background:var(--bg);
}

.home-page .home-process__head{
  display:grid;
  grid-template-columns:minmax(240px,.62fr) minmax(0,1.38fr);
  gap:clamp(40px,7vw,100px);
  align-items:end;
  margin-bottom:44px;
}

.home-page .home-process__chain{
  margin:0 0 7px;
  font-size:clamp(20px,2.6vw,34px);
  line-height:1.35;
  letter-spacing:-.025em;
  text-wrap:balance;
}

.home-page .home-process__pair{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}

.home-page .home-process__image{
  aspect-ratio:4/3;
  padding:clamp(10px,1.4vw,20px);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:var(--paper);
}

.home-page .home-process__image img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.home-page .home-process figcaption{
  margin-top:13px;
  color:var(--muted);
  font-size:14px;
  letter-spacing:.04em;
}

.home-page .home-video{
  background:var(--dark);
  color:#fff;
}

.home-page .home-video .home-section__head--split>p{
  color:rgba(255,255,255,.68);
}

.home-page .home-video__track{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

.home-page .home-video-card{
  min-width:0;
}

.home-page .home-video-card__preview{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  padding:0;
  border:1px solid rgba(255,255,255,.18);
  overflow:hidden;
  display:grid;
  place-items:center;
  background:#24231f;
  color:#fff;
  cursor:pointer;
}

.home-page .home-video-card__preview::after{
  content:"";
  position:absolute;
  inset:12px;
  border:1px solid rgba(255,255,255,.08);
}

.home-page .home-video-card__preview img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:#24231f;
}

.home-page .home-video-card__play{
  grid-area:1/1;
  position:relative;
  z-index:1;
  width:52px;
  height:52px;
  border:1px solid rgba(255,255,255,.62);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(25,24,21,.45);
  font-size:16px;
  line-height:1;
  padding-left:3px;
}

.home-page .home-video-card h3{
  margin:18px 0 0;
  font-size:20px;
  line-height:1.35;
  font-weight:520;
  overflow-wrap:anywhere;
}

.home-page .home-contact{
  padding:clamp(86px,9vw,128px) 0;
  background:var(--dark);
  color:#fff;
}

.home-page .home-contact__inner{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(380px,.75fr);
  gap:clamp(48px,8vw,120px);
  align-items:start;
}

.home-page .home-contact__copy>p{
  max-width:620px;
  margin:24px 0 0;
  color:rgba(255,255,255,.7);
  font-size:clamp(18px,1.7vw,22px);
}

.home-page .home-contact__links{
  max-width:640px;
  margin-top:46px;
  border-top:1px solid rgba(255,255,255,.2);
}

.home-page .home-contact__links a{
  padding:20px 0;
  display:flex;
  justify-content:space-between;
  gap:24px;
  border-bottom:1px solid rgba(255,255,255,.2);
}

.home-page .home-contact__links span{
  color:rgba(255,255,255,.6);
  font-size:13px;
}

.home-page .home-contact__links strong{
  font-size:18px;
  font-weight:520;
  text-align:right;
}

.home-page .home-contact-form{
  padding:clamp(26px,3.5vw,44px);
  background:var(--paper);
  color:var(--text);
}

.home-page .home-contact-form label{
  display:block;
  margin-bottom:22px;
}

.home-page .home-contact-form label>span{
  display:flex;
  justify-content:space-between;
  gap:18px;
  margin-bottom:8px;
  font-size:13px;
  font-weight:600;
}

.home-page .home-contact-form small{
  color:var(--muted);
  font-size:11px;
  font-weight:400;
}

.home-page .home-contact-form input,
.home-page .home-contact-form textarea{
  width:100%;
  border:1px solid #cfc9bf;
  border-radius:0;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:16px;
}

.home-page .home-contact-form input{
  min-height:50px;
  padding:0 13px;
}

.home-page .home-contact-form textarea{
  min-height:112px;
  padding:12px 13px;
  resize:vertical;
}

.home-page .home-contact-form input:focus,
.home-page .home-contact-form textarea:focus{
  outline:2px solid var(--text);
  outline-offset:2px;
}

.home-page .home-contact-form .home-button{
  width:100%;
}

.home-page .home-contact-form__note{
  margin:14px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.home-page .home-footer{
  padding-top:34px;
  display:flex;
  align-items:flex-start;
}

.home-page .home-footer>div:first-child{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.home-page .home-footer__links{
  display:flex;
  gap:24px;
}

.home-page .home-footer a{
  border-bottom:1px solid transparent;
}

.home-page .home-footer a:hover{
  border-color:currentColor;
}

.home-page .home-video-modal[hidden]{
  display:none;
}

.home-page .home-video-modal{
  position:fixed;
  z-index:100;
  inset:0;
  padding:22px;
  display:grid;
  place-items:center;
  background:rgba(18,17,15,.86);
}

.home-page .home-video-modal__dialog{
  width:min(100%,1080px);
  background:var(--dark);
  color:#fff;
}

.home-page .home-video-modal__head{
  min-height:60px;
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.home-page .home-video-modal__head h2{
  margin:0;
  font-size:17px;
  line-height:1.3;
  font-weight:520;
}

.home-page .home-video-modal__close{
  padding:8px 0;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.55);
  background:none;
  color:#fff;
  font:inherit;
  font-size:13px;
  cursor:pointer;
}

.home-page .home-video-modal__frame{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#24231f;
}

.home-page .home-video-modal__frame video{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#24231f;
}

html.home-modal-open{
  overflow:hidden;
}

@media (max-width:1120px){
  .home-page .home-header .menu-btn{
    display:block;
  }

  .home-page .home-nav{
    display:none;
    position:absolute;
    top:82px;
    left:0;
    right:0;
    max-height:calc(100svh - 82px);
    padding:24px max(22px,calc((100vw - var(--max))/2));
    overflow-y:auto;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    background:var(--paper);
    border-bottom:1px solid var(--line);
  }

  .home-page .home-nav.open{
    display:flex;
  }

  .home-page .home-nav__cta{
    margin-top:8px;
  }
}

@media (max-width:860px){
  .home-page .home-shell{
    width:calc(100% - 34px);
  }

  .home-page .home-header{
    min-height:70px;
  }

  .home-page .home-nav{
    top:70px;
    max-height:calc(100svh - 70px);
    padding-inline:17px;
  }

  .home-page .home-hero{
    min-height:calc(100svh - 70px);
  }

  .home-page .home-hero__shade{
    background:linear-gradient(0deg,rgba(22,21,18,.86) 0%,rgba(22,21,18,.48) 51%,rgba(22,21,18,.12) 100%);
  }

  .home-page .home-hero__content{
    width:calc(100% - 34px);
    margin:0 17px 44px;
  }

  .home-page .home-hero h1{
    font-size:clamp(42px,12vw,62px);
  }

  .home-page .home-intro__inner,
  .home-page .home-process__head,
  .home-page .home-contact__inner{
    grid-template-columns:1fr;
  }

  .home-page .home-intro__inner{
    gap:30px;
  }

  .home-page .home-intro__inner>p{
    margin-top:0;
  }

  .home-page .home-project-card{
    grid-template-columns:1fr;
  }

  .home-page .home-project-card__media{
    min-height:0;
  }

  .home-page .home-project-card__media img{
    aspect-ratio:4/3;
  }

  .home-page .home-directions__grid,
  .home-page .home-process__pair{
    grid-template-columns:1fr;
  }

  .home-page .home-directions__grid{
    gap:54px;
  }

  .home-page .home-process__head{
    gap:26px;
    margin-bottom:34px;
  }

  .home-page .home-process__pair{
    gap:32px;
  }

  .home-page .home-section__head--split{
    display:block;
  }

  .home-page .home-section__head--split>p{
    margin-top:18px;
  }

  .home-page .home-video-card__preview{
    display:block;
    position:relative;
    width:100%;
    height:auto;
    aspect-ratio:auto;
  }

  .home-page .home-video-card__preview img{
    position:relative;
    inset:auto;
    display:block;
    width:100%;
    height:auto;
    object-fit:contain;
  }

  .home-page .home-video-card__play{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
  }

  .home-page .home-video__track{
    grid-auto-flow:column;
    grid-auto-columns:min(84vw,360px);
    grid-template-columns:none;
    gap:14px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:inline mandatory;
    padding:0 9% 12px 0;
    -webkit-overflow-scrolling:touch;
  }

  .home-page .home-video-card{
    scroll-snap-align:start;
  }

  .home-page .home-contact__inner{
    gap:46px;
  }
}

@media (max-width:700px){
  .home-page .home-video-modal__frame{
    position:relative;
    width:100%;
    height:0;
    padding-bottom:56.25%;
    aspect-ratio:auto;
    overflow:hidden;
  }

  .home-page .home-video-modal__frame video{
    position:absolute;
    inset:auto;
    top:0;
    left:0;
    display:block;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:none;
    max-height:none;
    object-fit:contain;
  }
}

@media (max-width:640px){
  .home-page .home-section{
    padding:76px 0;
  }

  .home-page .home-section__head{
    margin-bottom:30px;
  }

  .home-page .home-title{
    font-size:36px;
    line-height:1.06;
  }

  .home-page .home-hero__image{
    object-position:58% center;
  }

  .home-page .home-hero h1{
    font-size:clamp(40px,11.7vw,50px);
    line-height:1;
  }

  .home-page .home-hero__lead{
    margin-top:20px;
    font-size:19px;
  }

  .home-page .home-hero__text{
    max-width:320px;
  }

  .home-page .home-hero__actions{
    align-items:flex-start;
    flex-direction:column;
    gap:18px;
    margin-top:28px;
  }

  .home-page .home-projects__track{
    grid-auto-flow:column;
    grid-auto-columns:92%;
    grid-template-columns:none;
    gap:14px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:inline mandatory;
    padding:0 8% 10px 0;
    -webkit-overflow-scrolling:touch;
  }

  .home-page .home-project-card{
    display:flex;
    flex-direction:column;
    scroll-snap-align:start;
  }

  .home-page .home-project-card__body{
    padding:24px;
  }

  .home-page .home-project-card h3{
    font-size:29px;
  }

  .home-page .home-direction-card__copy{
    padding-top:20px;
  }

  .home-page .home-direction-card h3{
    font-size:30px;
  }

  .home-page .home-process__chain{
    font-size:21px;
  }

  .home-page .home-process__image{
    padding:8px;
  }

  .home-page .home-video-card__play{
    width:46px;
    height:46px;
  }

  .home-page .home-contact{
    padding:76px 0;
  }

  .home-page .home-contact__links a{
    flex-direction:column;
    gap:6px;
  }

  .home-page .home-contact__links strong{
    text-align:left;
  }

  .home-page .home-contact-form{
    padding:25px 20px;
  }

  .home-page .home-footer{
    display:block;
  }

  .home-page .home-footer__links{
    margin-top:14px;
  }

  .home-page .home-video-modal{
    padding:10px;
  }

  .home-page .home-video-modal__head{
    min-height:54px;
    padding:10px 13px;
  }
}

@media (prefers-reduced-motion:reduce){
  .home-page *,
  .home-page *::before,
  .home-page *::after{
    scroll-behavior:auto!important;
    transition:none!important;
  }
}
