/*
Theme Name: Just1Page.Ru
Theme URI: https://just1page.ru/
Author: Just1Page Studio
Author URI: https://just1page.ru/
Version: 1.0
Description: Компания «Just1Page» — это команда профессионалов с огромным опытом работы в сфере создания сайтов. У нас Вы можете заказать современный сайт для бизнеса, компании или Вашего магазина, который в будущем станет продающим интернет-магазином среди конкурентов. Индивидуальный подход компании к работе, позволяет нашим клиентам получить широкий диапазон цен на услуги по созданию и разработке интернет-сайтов. У нас можно заказать как недорогой одностраничный сайт или копию одностраничного сайта, так и индивидуальный интернет-проект или интернет-магазин с гибким и уникальным функционалом. Если Вы решили заказать сайт, но не знаете с чего начать, просто оставьте заявку на бесплатную консультацию на нашем сайте. Мы в ближайшее время постараемся найти ответы на интересующие Вас вопросы, относительно создания и разработки Вашего интернет-ресурса!
*/
@font-face {
  font-family: 'Canela';
  src: url('/wp-content/themes/just1page/fonts/Canela-Light-Trial.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Graphik';
  src: url('/wp-content/themes/just1page/fonts/Graphik-Regular-Trial.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Graphik';
  src: url('/wp-content/themes/just1page/fonts/Graphik-Semibold-Trial.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


:root{
  --bg-brown:#24190C;
  --bg-hero:#FFFBF4;

  --t1: 700ms;
  --t2: 900ms;
  --ease: cubic-bezier(.2,.8,.2,1);

  /* СКОРОСТЬ растворения коричневого слоя */
  --bgFadeDuration: 3700ms;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Graphik', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-hero);
  color:#1c1c1c;
  overflow-x:hidden;
}

h1, h2, .hero-title{
  font-family: 'Canela', serif;
  font-weight: 300;
}

body.home.is-loading{
  background: var(--bg-brown);
}

/* ---------------- PRELOADER ---------------- */
.preloader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;

  /* чтобы сам прелоадер тоже мог плавно скрыться (не рубился резко) */
  opacity: 1;
  transition: opacity 700ms ease;
  pointer-events: none;
}

/* коричневый слой поверх видео */
.preloader-bg{
  position: absolute;
  inset: 0;
  background: var(--bg-brown);
  z-index: 2;

  opacity: 1;
  transition: opacity var(--bgFadeDuration) ease;
}

/* класс, который запускает fade-out коричневого слоя */
body.bg-fade-out .preloader-bg{
  opacity: 0;
}

/* видео ВСЕГДА под фоном (чтобы оно было видно, когда фон растворяется) */
.pre-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
}

/* логотип в центре */
.pre-logo{
  height: auto;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;

  opacity: 1;
transition: opacity 1000ms ease;
}



/* когда “входим на сайт” — прелоадер плавно уходит */
body.enter-site .preloader{
  opacity: 0;
  pointer-events: none;
}

.hero-video.is-flying{
  transform-origin: 0 0;
  will-change: transform;
}


body.no-preloader .site-header{
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------------- HEADER / HERO ---------------- */
/*
.site-header{
  position:relative;
  z-index:5;
  background:transparent;
  padding: 66px 40px 50px;
  opacity:0;
  transform: translateY(-10px);
  transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease);
} */

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11;
  background: transparent;
  padding: 66px 40px 0;
    opacity: 0;
  transform: translateY(-12px);
  transition: background 300ms ease, padding 300ms ease, box-shadow 300ms ease;
}


.hero{
  padding-top: 9rem; /* подгони под свой хедер */
}
body.is-scrolled .site-header{
  padding: 10px 40px;
  background: rgb(255 251 244 / 70%);
}



/* размеры логотипов (подгони) */
.header-logo--main{ width: 180px; }
.header-logo--min{ width: 170px; }

@media (max-width: 768px){
  .site-header{ padding: 18px 16px 0; }
  body.is-scrolled .site-header{ padding: 10px 16px; }
  .hero{ padding-top: 116px; }
  .header-logo--main{ width: 220px; }
  .header-logo--min{ width: 150px; }


}

.header-inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  column-gap: 20px;
}

.nav-left, .nav-right{
  display:flex;
  gap:34px;
  align-items:center;
  font-size:14px;
  letter-spacing:.06em;
}

.nav-left a, .nav-right a {
  color:#1d1d1d;
  text-decoration:none;
}

.nav-left a:hover, .nav-right a:hover {
  opacity: 0.6;
}

.nav-right{
  justify-content:flex-end;
  gap:24px;
}


.insta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:999px;
  color:#1d1d1d;
}

#preLogo { transition: opacity .6s ease; will-change: opacity; }

.logo-target{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.header-logo{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: auto;

  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  will-change: opacity, transform;
}

/* по умолчанию виден основной */
.header-logo--main{
  opacity: 1;
}

/* при скролле показываем mini/dark, основной прячем */
body.is-scrolled .header-logo--main{
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.98);
}

body.is-scrolled .header-logo--min{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}



/* бургер */
.menu-toggle{
  width:44px;height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.menu-toggle .burger{
  width:22px;height:2px;
  background:#1d1d1d;
  position:relative;
  display:block;
  border-radius:2px;
}
.menu-toggle .burger::before,
.menu-toggle .burger::after{
  content:"";
  position:absolute; left:0;
  width:22px;height:2px;
  background:#1d1d1d;
  border-radius:2px;
}
.menu-toggle .burger::before{ top:-6px; }
.menu-toggle .burger::after{ top:6px; }

/* Offcanvas фон под стиль */
.offcanvas{
  background: rgb(255 251 244 / 96%);
}
.mobile-nav a{
  text-decoration:none;
  color:#1d1d1d;
  font-size:16px;
  letter-spacing:.06em;
}
.menu-toggle{
  display: none;
}


/* Мобильный хедер как на скрине */
@media (max-width: 768px){
 .header-inner{
    display:grid;
    grid-template-columns: 44px 1fr 44px;
    align-items:center;
    height:56px;
  }

  .nav-left{ display:none; }
  .signin{ display:none; }

  /* mobile instagram в левую колонку */
  .insta--mobile{
    grid-column:1;
    justify-self:start;
    width:44px;
    height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  /* центр */
  .logo-target{
    grid-column:2;
    justify-self:center;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .header-logo--main{ width:100px; }
  .header-logo--min { display:none; }
  body.is-scrolled .header-logo--min{ width:160px; display:block; }

      .header-logo--min {
        opacity: 1;
    }

    .pre-logo {
      width: 220px;
    }


  /* правая колонка */
  .nav-right{
    grid-column:3;
    justify-self:end;
    display:flex;
    align-items:center;
  }

  .menu-toggle{
    width:44px;
    height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
}


/* движение видео */

/* HERO */
.hero{
  min-height:100vh;
  background:var(--bg-hero);
}

.home .hero{
  max-width: 100vw;
  overflow: hidden;
}


.hero-center p {
    font-size: 20px;
    padding: 30px 0 50px;
}

.hero-top{
  height: 40vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0 20px;
  text-align:center;
}

.hero-center .kicker{
  font-weight:600;
  margin-bottom: 34px;
}

.hero-title{
  margin:0;
  font-weight:500;
  line-height:1.1;
  font-size: clamp(34px, 4.2vw, 63px);
}



.hero-video{
  height: 90vh;
  overflow:hidden;
  position: relative;
  background:#24190C;
}

.hero-video-el{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-video.is-prepared,
.hero-video.is-flying{
  transform-origin: 0 0;
  will-change: transform;
}

.hero-video video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}




/* слой для “переезда” видео */


/* движение видео */


.pre-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


/* Появление интерфейса и хиро-видео после прелоадера */
body.enter-site .site-header{
  opacity:1;
  transform: translateY(0);
}



/* Responsive */
@media (max-width: 768px){
.hero-title {
    font-size: clamp(30px, 4.2vw, 72px);
}
  .hero-top{  height: 30vh;  padding-bottom: 40px; }
  .hero-video{ height: 60vh; }
  .hero-center p {
    font-size: 16px;
    padding: 30px 0;
}
}


/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
}


/*моб меню */
/* ==== Mobile Offcanvas (Bootstrap) ==== */
.mobile-menu{
  --mm-bg: #24190C;                 /* фон как у тебя */
  --mm-text: rgba(255,255,255,.86); /* основной текст */
  --mm-line: rgba(255,255,255,.18); /* линии-разделители */

  background: var(--mm-bg) !important;
  color: var(--mm-text);
  border: 0;
  width: 100%;
  max-width: 100%;
}

/* убрать дефолтные paddings bootstrap внутри offcanvas */
.mobile-menu .offcanvas-header,
.mobile-menu .offcanvas-body{
  padding: 0 !important;
}

.mobile-menu__inner{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 26px;
}

/* TOP */
.mobile-menu__top{
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  column-gap: 10px;
  margin-bottom: 26px;
}

.mobile-menu__icon{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mm-text);
  text-decoration: none;
  border-radius: 999px;
}

.mobile-menu__brand{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.mobile-menu__logo{
  width: min(119px, 65vw);
  height: auto;
  display: block;
}

/* custom X */
.mobile-menu__close{
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mm-text);
  border-radius: 999px;
  position: relative;
}

.mobile-menu__close span{
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.mobile-menu__close span:first-child{ transform: rotate(45deg); }
.mobile-menu__close span:last-child{ transform: rotate(-45deg); }

/* NAV */
.mobile-menu__nav{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 0;
}

/* пункты как на скрине: крупно, по центру, Canela */
.mobile-menu__link{
  font-family: 'Canela', serif;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.05;
  color: var(--mm-text);
  text-decoration: none;
  padding: 22px 0;
  text-align: center;
  width: 100%;
}

.mobile-menu__divider{
  width: 100%;
  height: 1px;
  background: var(--mm-line);
}

/* BOTTOM */


.mobile-menu.offcanvas{
  height: 100dvh;
}

.mobile-menu__inner{
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}

.mobile-menu__nav{
  flex-shrink: 0;
}



.mobile-menu__bottom{
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 26px;
    flex-shrink: 0;
}

.mobile-menu__house{
  width: auto;
  height: auto;
}

.mobile-menu__since{
  font-family: 'Graphik', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
}

/* чуть компактнее на очень маленьких экранах */
@media (max-width: 360px){
  .mobile-menu__link{ font-size: 30px; }
  .mobile-menu__logo{ width: min(120px, 70vw); }
}

/*моб меню */


/* партнеры */
.partners-section{
  padding: 130px 0 90px;
}

.partners-top{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 100px;
}

.partners-label{
  font-family: 'Graphik', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #1d1d1d;
  white-space: nowrap;
}

.partners-logos{
  display:flex;
  align-items:center;
    gap: 64px;
    margin-top: 26px;
}

.partners-logos img{
  height: 67px;
  width: auto;
  display:block;
    transition: 0.3s;
}

.partners-logos img:hover {
    opacity: 0.6;
    transition: 0.3s;
}

.partners-title{
  font-family: 'Canela', serif;
  font-weight: 300;
  color:#1d1d1d;
  line-height: 1.02;
  margin: 0;
  font-size: clamp(40px, 4.2vw, 65px);
}

/* десктоп: заголовок визуально справа и чуть ниже относительно линии логотипов */
@media (min-width: 992px){
  .partners-title{
    margin-top: 0; /* можно подвинуть вниз, если надо */
  }
}

/* MOBILE */
.partners-title--mobile{
  margin-top: 44px;
font-size: clamp(24px, 7.5vw, 60px);
}

/* мобилка: лейбл над логотипами, как на скрине */
@media (max-width: 991.98px){
  .partners-section{
    padding: 54px 0 30px;
  }

  .partners-top{
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
        margin-bottom: 40px;
        justify-content: space-between;
  }

  .partners-logos{
gap: 16px;
        flex-wrap: wrap;
        margin-top: 0;
  }

  .partners-logos img{
    height: 40px;
  }

  /* прячем “десктопный” заголовок справа, показываем нижний */
  .col-lg-6 .partners-title{ display:none; }
}

/* партнеры */


/* секция под проектами */

.bottom-house-section{
display: flex;
    align-items: center;
    padding-bottom: 150px;
    padding-top: 100px;
}

.bottom-house-inner{
  width: 100%;
  height: 100%;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap: 60px;
}

.bottom-house-img{
  width: 370px;
  height: auto;
  display:block;
}

.bottom-house-text{
  margin: 0;
  max-width: 890px;
  font-size: 20px; /* как просил */
  line-height: 1.5;
  color: #1d1d1d;
  font-family: 'Graphik', system-ui, sans-serif;
  font-weight: 400;
}

/* Мобилка */
@media (max-width: 768px){

  .bottom-house-img{
    width: min(420px, 70vw);
  }

  .bottom-house-text{
    font-size: 16px; 
  }
}

/* секция под проектами */

/* секция Total transp */
.transparency-section{
  background: #24190C;
  color: #FFFBF4;
  padding: 120px 0;
}

.transparency-head{
  text-align: center;
  max-width: 860px;
  margin: 0 auto 120px;
}

.transparency-title{
  font-family: 'Canela', serif;
  font-weight: 300;
  letter-spacing: .02em;
  margin: 0 0 40px;
  font-size: clamp(28px, 3.7vw, 64px);
}

.transparency-subtitle{
  font-family: 'Graphik', system-ui, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.35;
  margin: 0;
}

/* GRID */
.transparency-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.transparency-item{
  min-height: 280px;
}

.transparency-line{
  height: 1px;
  width: 100%;
  background: #FFFBF4;
  margin-bottom: 38px;
}

.transparency-item-title{
    font-family: 'Canela', serif;
    font-weight: 300;
    margin: 0 0 40px;
    font-size: clamp(26px, 2.2vw, 40px);
    line-height: 1.12;
    height: 84px;
}

.transparency-item-text{
  font-family: 'Graphik', system-ui, sans-serif;
  font-weight: 400;
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

/* MOBILE */
@media (max-width: 991.98px){
  .transparency-subtitle {
    font-size: 16px;
    text-align: center;
}
  .transparency-section{
    padding: 70px 0 70px;
  }

  .transparency-head{
    text-align: left;
    max-width: 860px;
    margin: 0 0 34px;
  }

  .transparency-grid{
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .transparency-line{
    margin-bottom: 40px;
            margin-top: 14px;
    background: rgba(255,255,255,.30);
  }

  .transparency-item-title{
        font-size: 30px;
        margin-bottom: 40px;
        height: auto;
  }

  .transparency-item-text{
    max-width: 100%;
    font-size: 16px;
  }
  .transparency-item {
    min-height: auto;
}
.transparency-title {
    text-align: center;
}
}

/* секция Total transp */


/* секция с формой */
.contact-form-section{
  padding: 120px 0;
}

/* Head */
.contact-form-kicker{
  font-family: 'Graphik', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #1d1d1d;
  margin-bottom: 16px;
}

.contact-form-title{
  font-family: 'Canela', serif;
  font-weight: 300;
  letter-spacing: .02em;
  margin: 0 0 64px;
  color: #1d1d1d;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.02;
}

/* Fields */
.wpcf7-response-output {
    text-align: center;
    border-color: #000 !important;
}
.field{
  display:block;
  margin-bottom: 44px;
}

.wpcf7-spinner {
    position: absolute;
}

.field-label{
  display:block;
  font-family: 'Graphik', system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #1d1d1d;
  margin-bottom: 10px;
}

.field-input{
  width:100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #000;
  padding: 12px 0 10px;
  outline: none;
  font-family: 'Graphik', system-ui, sans-serif;
  font-size: 15px;
  color: #1d1d1d;
}

.field-input:focus{
  border-bottom-color: rgba(0,0,0,.65);
}

/* Right textarea box */
.field--box{
  margin-bottom: 0;
}

.field-textarea{
  width:100%;
  background: transparent;
  border: 1px solid #000;
  outline: none;
  padding: 22px 18px 18px;
  min-height: 210px;
  resize: vertical;

  font-family: 'Graphik', system-ui, sans-serif;
  font-size: 15px;
  color: #1d1d1d;
}

.field-textarea:focus{
  border-color: rgba(0,0,0,.65);
}

.field-label--inside{
  margin: 0;
  position: absolute;
  left: 18px;
  top: 14px;
  font-size: 13px;
  color: rgba(0,0,0,.70);
}

.field--box{
  position: relative;
}

/* Button */
.contact-submit{
  margin-top: 8px;
  border: 1px solid rgba(0,0,0,.65);
  background: transparent;
  color: #1d1d1d;

  font-family: 'Graphik', system-ui, sans-serif;
  font-size: 16px;
  padding: 16px 64px;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease;
}

.contact-submit:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.03);
}

.contact-submit:active{
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px){
  .contact-form-section{
    padding: 80px 0 90px;
  }

  .contact-form-title{
    margin-bottom: 44px;
    font-size: 34px; 
    line-height: 44px;
  }

  .field{
    margin-bottom: 34px;
  }

  .field-textarea{
    min-height: 220px;
  }

  .contact-submit{
    width: min(260px, 92vw);
    padding: 18px 0;
  }
}

/* секция с формой */

/* footer */
.site-footer{
  background:#24190C;
  color: rgba(255,255,255,.82);
  padding: 70px 0;
}

/* desktop grid */
.footer-grid{
  display:grid;
  grid-template-columns: 310px 160px 180px 270px 200px 60px;
  gap: 22px;
  align-items:start;
}

.footer-grid .footer-col {
    padding-top: 50px;
}

.footer-grid .footer-social {
    padding-top: 44px;
}

.footer-logo img{
  width: 241px;
  height:auto;
  display:block;
}

.footer-col{
  font-family: 'Graphik', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.footer-links{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding-top: 6px;
}

.footer-links a{
  color: rgba(255,255,255,.82);
  text-decoration:none;
}

.footer-links a:hover,
.footer-link:hover{
  color: rgba(255,255,255,.95);
}

.footer-title{
  font-weight: 600;
  color: rgba(255,255,255,.92);
  margin-bottom: 10px;
  font-size: 18px;
}

.footer-text{
  color: rgba(255,255,255,.78);
  position: relative;
}

.footer-link{
  color: rgba(255,255,255,.82);
  text-decoration:none;
}

.footer-social{
  display:flex;
  justify-content:flex-end;
  padding-top: 6px;
}

.footer-ig{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color: rgba(255,255,255,.9);
}

/* ===== Mobile layout like screenshot ===== */
@media (max-width: 991.98px){
  .site-footer{
    padding: 56px 0 40px;
  }

  .footer-grid{
grid-template-columns: 0.7fr 1.3fr;
    grid-template-areas:
      "logo logo"
      "links1 visit"
      "links2 contact"
      "ig ig";
    gap: 26px 22px;
    align-items:start;
  }

  .footer-logo{
    grid-area: logo;
    display:flex;
    justify-content:center;
    margin-bottom: 40px;
  }


  .footer-grid > .footer-links:nth-of-type(1){
    grid-area: links2;
  }
  .footer-grid > .footer-links:nth-of-type(2){
    grid-area: links1;
  }

  /* “Visit us” — 2-я колонка, 1-я строка */
  .footer-grid > .footer-col:nth-of-type(4){
    grid-area: visit;
  }

  /* “Contact us” — 2-я колонка, 2-я строка */
  .footer-grid > .footer-col:nth-of-type(5){
    grid-area: contact;
  }

  .footer-social{
    grid-area: ig;
    justify-content:flex-end;
  }
  a.footer-ig.d-lg-none {
    position: absolute;
    right: 0;
    top: -38px;
}
}



/* footer */

/* проекты */

.project-item {
  width: 100%;
    min-height: 100vh;
    display: block;
  flex-direction: column;
  padding-top: 70px;
}




.project-head {
  padding-top: 28px;
  padding-bottom: 28px;
}

.project-title {
  font-size: clamp(34px, 4vw, 64px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.project-meta { font-size: 14px; line-height: 1.35;     padding-top: 14px; }
.project-meta__label { font-weight: 600; }
.project-meta__row { display:flex; gap:6px; flex-wrap:wrap; margin-bottom: 16px;}


.project-slider{
height: calc(100vh - 20px);         /* вот тут регулируешь */
  width: 100%;
  position: relative;
  overflow: hidden;
}

.project-slider .swiper-wrapper,
.project-slider .swiper-slide {
    height: 100%;
}

.project-slide-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* Навигация как “круглые стрелки” */
.project-nav{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 1;
}
.project-prev,.project-next{
  pointer-events:auto;
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:56px;height:56px;
  border-radius:50%;
  border:0;
  background: rgba(255,255,255,.45);
  transition: 0.3s;
}
.project-prev:hover, .project-next:hover {
  background: rgba(255,255,255,.8);
  transition: 0.3s;
}
.project-prev{ left:24px; }
.project-next{ right:24px; }

/* стрелочки (можно заменить svg) */
.project-prev::before,.project-next::before{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width:10px;height:10px;
  border-right:2px solid #fff;
  border-bottom:2px solid #fff;
}
.project-prev::before{ transform: rotate(135deg); }
.project-next::before{ transform: rotate(-45deg); }

.project-item.is-hidden{
  display: none;
}

/* старт анимации (сразу после display:block) */
.project-item.is-reveal-start{
  opacity: 0;
  transform: translateY(18px);
}

/* финал анимации */
.project-item.is-revealing{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 450ms ease, transform 450ms ease;
  will-change: opacity, transform;
}

.project-anchor{
  height: 1px;
}

.projects-more-wrap{
  padding: 120px 0 40px;
  text-align: center;
}

.projects-more-btn[disabled]{
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 991px){
  .project-item{ max-height:none;min-height:auto; }
  .project-slider{ height: 40vh; }
  .project-prev{ left:12px; }
  .project-next{ right:12px; }
}

.project-head-mobile{
  padding: 16px 0;
}

.project-head-mobile .project-title{
  font-size: 20px;
  line-height: 1.2;
}

.project-head-mobile .project-meta__value{
  font-size: 12px;
  line-height: 1.3;
}
@media (max-width: 767px){
.project-head-mobile .project-title {
    margin-bottom: 30px !important;
}
.project-item {
    padding-top: 30px;
}
.projects-more-wrap {
    padding: 60px 0 40px;
}
section#projects {
    padding-top: 40px;
}
}
/* проекты */

::-webkit-input-placeholder {color:#000;}
::-moz-placeholder {color:#000;}/* Firefox 19+ */
:-moz-placeholder {color:#000;}/* Firefox 18- */
:-ms-input-placeholder {color:#000;}


/* контакты */
/* SECTION */
.contact-hero{
  position: relative;
}

/* Блок с фоновой картинкой */
.contact-hero__bg{
  height: 90vh; /* регулируешь высоту картинки */
  min-height: 500px;

  background: url("/wp-content/uploads/2026/02/th1.jpg") center/cover no-repeat;
}

.contact-hero__bg.how-work {
    background: url(/wp-content/themes/just1page/img/how.jpg) center / cover no-repeat;
}

/* Квадрат */
.contact-hero__box{
  position: absolute;
  left: 50%;
  top: 90vh; /* должно совпадать с высотой картинки */
  transform: translate(-50%, -50%);

  width: min(720px, 92vw);
  padding: 100px 60px;

  background: #F3E8DA;
  text-align: center;
}

/* Домик */
.contact-hero__icon{
  width:230px;
  margin-bottom: 60px;
}

/* Текст */
.contact-hero__title{
  font-size: 59px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #111;
}
.page-id-130 .hero-top, .page-id-133 .hero-top, .page-id-135 .hero-top, .page-id-143 .hero-top {
    height: auto;
    padding: 40px 0 10px;
}

/* Отступ после секции, чтобы контент не прилипал */
.contact-hero{
  padding-bottom: 300px; /* регулируй под высоту квадрата */
}

.page-id-133 .contact-hero{
  padding-bottom: 360px; /* регулируй под высоту квадрата */
}

/* SECTION */
.contact-info{
  padding: 20px 0 80px;
}

/* Левая часть */
.contact-info__left{
  display: flex;
  align-items: center;
}

.contact-info__inner{
  display: flex;
  gap: 60px;
}

/* Заголовки */
.contact-info__title{
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Текст */
.contact-info__col p{
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

/* Правая часть */
.contact-info__right{
  display: flex;
  justify-content: flex-end;
}

.contact-info__image{
  width: 100%;
  max-width: 750px;
  height: auto;
  object-fit: cover;
}

/* Мобильная версия */
@media (max-width: 991.98px){
.contact-hero__title {
    font-size: 30px;
}
.contact-hero__bg {
    height: 50vh;
    min-height: auto;
}
.contact-hero__box {
    top: 50vh;
    padding: 40px 10px;
}
.contact-hero {
    padding-bottom: 120px;
}

  .contact-info__inner{
    flex-direction: column-reverse;
    gap: 40px;
    padding-left: 0;
    margin-bottom: 40px;
  }

  .contact-info__right{
    justify-content: center;
  }

  .contact-info__image{
    max-width: 100%;
  }
}
/* контакты */

.insta-section {
    padding: 20px 0 50px;
}

.project-slider .swiper-slide{
  pointer-events: none;
}

.project-slider .swiper-slide-active{
  pointer-events: auto;
}

/* timeline */
.about-timeline{
  position: relative;
  overflow: hidden;
      padding-top: 40px;
}

.about-timeline__viewport{
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 760px;
  overflow: hidden;
}

.about-timeline__track{
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .8s ease;
  will-change: transform;
}

.timeline-screen{
  --dot-x: 50%;
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: 40px 0 60px;
}

.timeline-screen__inner{
  position: relative;
  height: 100%;
  max-width: 1280px;
}

.timeline-screen__top{
  position: relative;
  height: 170px;
  margin-bottom: 40px;
}

.timeline-line{
  position: absolute;
  left: 0;
  right: 0;
  top: 66px;
  height: 1px;
  background: #b3b3b3;
}
/* черная часть до точки */
.timeline-line::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: var(--dot-x);
  background: #000;
   transition: width .6s ease;
}

.timeline-line__dot{
  position: absolute;
  left: var(--dot-x);
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #000;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.timeline-year-block{
  position: absolute;
  left: var(--dot-x);
  top: -18px;
  transform: translateX(0%);
  min-width: 220px;
}

.timeline-year{
font-family: 'Canela', serif;
    font-size: 65px;
  line-height: .9;
  color: #000;
  margin-bottom: 48px;
}

.timeline-label{
  font-size: 18px;
  line-height: 1.15;
  color: #111;
  max-width: 240px;
}

.timeline-screen__content{
  /* height: calc(100% - 210px); */
  padding-top: 60px;
}

.timeline-house{
  max-width: 460px;
  margin-left: 30px;
}

.timeline-house img{
  display: block;
  width: 100%;
  height: auto;
}

.timeline-text{
  max-width: 520px;
  font-size: 18px;
  line-height: 1.15;
  color: #111;
}

.timeline-text p{
  margin: 0 0 28px;
}

.timeline-text p:last-child{
  margin-bottom: 0;
}

@media (max-width: 1199.98px){
  .timeline-house{
    max-width: 380px;
    margin-left: 0;
  }

  .timeline-text{
    max-width: 100%;
  }
}

@media (max-width: 991.98px){
  .about-timeline__viewport{
    height: auto;
    min-height: 0;
  }

  .about-timeline__track{
    display: block;
    transform: none !important;
  }

  .timeline-screen{
    height: auto;
    padding: 50px 0 70px;
  }

  .timeline-screen + .timeline-screen{
    border-top: 1px solid rgba(0,0,0,.08);
  }

  .timeline-screen__top{
    height: auto;
    margin-bottom: 35px;
    padding-top: 60px;
  }

  .timeline-line{
    top: 20px;
  }

  .timeline-year-block{
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    min-width: 0;
  }

  .timeline-line__dot{
    left: var(--dot-x);
  }

  .timeline-year{
    margin-bottom: 20px;
  }

  .timeline-screen__content{
    height: auto;
    row-gap: 30px;
  }

  .timeline-house{
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px){
  .timeline-label,
  .timeline-text{
    font-size: 16px;
  }

  .timeline-year{
    font-size: 52px;
  }

  .timeline-screen{
    padding: 40px 0 55px;
  }
}
/* timeline */

/* mob timeline */
.about-timeline--desktop{
  display: block;
      padding-top: 60px;
}

.about-timeline--mobile{
  display: none;
}

@media (max-width: 991.98px){
  .about-timeline--desktop{
    display: none;
  }

  .about-timeline--mobile{
    display: block;
  }
  .page-id-133 .contact-hero {
    padding-bottom: 200px;
}
}

.about-timeline-mobile{
  display: none;
  position: relative;
  padding: 40px 0 50px;
  overflow: hidden;
}

@media (max-width: 991.98px){
  .about-timeline-mobile{
    display: block;
  }
}

.timeline-mobile-slider{
  position: relative;
  overflow: visible;
}

.timeline-mobile-slider .swiper-slide{
  height: auto;
}

.timeline-mobile-card{
  position: relative;
  padding: 0 18px 10px;
}

.timeline-mobile-head{
  position: relative;
  margin-bottom: 28px;
  padding-top: 34px;
}

.timeline-mobile-line{
  position: absolute;
  left: 0;
  right: 0;
  top: 98px;
  height: 1px;
  background: #b9b4ac;
}

.timeline-mobile-line::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
width: var(--line-progress, 90px);
  height: 1px;
  background: #000;
}

.timeline-mobile-year{
    font-family: 'Canela', serif;
  font-size: 52px;
  line-height: .9;
  color: #000;
  margin-bottom: 30px;
}

.timeline-mobile-label{
  max-width: 220px;
  font-size: 16px;
  line-height: 1.15;
  color: #111;
}

.timeline-mobile-image{
  max-width: 290px;
  margin: 0 auto 24px;
}

.timeline-mobile-image img{
  display: block;
  width: 100%;
  height: auto;
}

.timeline-mobile-text{
  font-size: 16px;
  line-height: 1.2;
  color: #111;
}

.timeline-mobile-text p{
  margin: 0 0 18px;
}

.timeline-mobile-text p:last-child{
  margin-bottom: 0;
}

.timeline-mobile-prev,
.timeline-mobile-next{
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 50%;
  background: F3E8DA;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(4px);
}

.timeline-mobile-prev{
  left: 0;
}

.timeline-mobile-next{
  right: 0;
}

.timeline-mobile-prev span,
.timeline-mobile-next span{
  font-size: 18px;
  line-height: 1;
  color: #000;
}

.timeline-mobile-pagination{
  margin-top: 20px;
  text-align: center;
}

.timeline-mobile-pagination .swiper-pagination-bullet{
  width: 8px;
  height: 8px;
  opacity: 1;
  background: rgba(0,0,0,.2);
}

.timeline-mobile-pagination .swiper-pagination-bullet-active{
  background: #000;
}
/* mob timeline */

.about-gallery-item img{
  width: 100%;
  height: auto;
  display: block;
}
.about-gallery-item{
  overflow: hidden;
}

.about-gallery-item img{
  transition: transform .5s ease;
}

.about-gallery-item:hover img{
  transform: scale(1.05);
}




/* house text */
.our-story .container-fluid {
  padding: 40px;
}
.house-text-section{
  padding: 0 0 160px;
}

.house-text-section__image{
padding-left: 40px;
}

.house-text-section__image img{
  max-width: 100%;
  width: 520px;
  height: auto;
  display: inline-block;
}


.house-text-section__content{
    padding-right: 10px;
        margin-top: -20px;
}

.house-text-section__content p{
  margin: 0 0 28px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 400;
  color: #1f1f1f;
}

.house-text-section__content p:last-child{
  margin-bottom: 0;
}

@media (max-width: 1199.98px){
  .house-text-section__image img{
    width: 380px;
  }

  .house-text-section__content p{
    font-size: 18px;
  }
}

@media (max-width: 991.98px){
  .house-text-section{
    padding: 70px 0;
  }

  .house-text-section__image{
    margin-bottom: 40px;
  }

  .house-text-section__content{
padding: 0 16px;
    margin-top: 10px;
  }
}

@media (max-width: 767.98px){
  .house-text-section{
    padding: 50px 0;
  }

  .house-text-section__image img{
    width: 290px;
  }

  .house-text-section__content p{
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 22px;
  }
  .years-mobile {
    padding: 80px 0 20px;
}
.years-mobile .our-process-steps {
    padding: 0 22px 0 60px;
}
    .years-mobile .process-step-marker {
        left: -36px;
        width: 9px;
        height: 9px;
        background: #000;
    }
}
/* house text */




/* how we work */
.our-process-section {
  padding: 100px 0 100px;
}

.page-id-143 .bottom-house-section {
    padding-top: 150px;
}

.our-process-head {
  padding: 0 15px 70px;
}

.our-process-head.pt-80 {
    padding-top: 80px;
}


.our-process-title {
  margin: 20px 0 100px;
  font-size: 64px;
  line-height: 1;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

.our-process-decor {
  max-width: 255px;
  width: 100%;
  height: auto;
  display: inline-block;
}

.our-process-layout {
  display: flex;
  align-items: flex-start;
}

.our-process-left,
.our-process-right {
  width: 50%;
}

.our-process-left {
  position: relative;
}

.our-process-video-track {
  position: relative;
}

.our-process-video-holder {
  position: relative;
  min-height: 100px;
}

.our-process-video-box {
  width: 100%;
  height: 600px;
  position: relative;
}

.our-process-video-box.is-fixed {
  position: fixed;
  top: 100px;
  z-index: 10;
}

.our-process-video-box.is-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
}

.our-process-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.our-process-right {
  position: relative;
}

.our-process-steps {
  position: relative;
  padding: 0 80px 60px 85px;
}

.our-process-steps::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.35);
}

.process-step {
  position: relative;
  min-height: 50vh;
  padding-bottom: 80px;
}

.process-step:last-child {
  min-height: auto;
  padding-bottom: 0;
}

.process-step-marker {
    position: absolute;
    left: -54px;
    top: 0;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    background: #fffbf4;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.process-step-marker span {
  font-size: 24px;
  line-height: 1;
      font-family: 'Canela', serif;
}

.process-step-content h3 {
  margin: 0 0 30px;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 400;
      font-family: 'Canela', serif;
    position: relative;
    top: -11px;
}

.process-step-content p {
  margin: 0 0 22px;
  font-size: 22px;
  line-height: 1.45;
  max-width: 620px;
}

.process-step-content p:last-child {
  margin-bottom: 0;
}
.page-id-135 .contact-hero, .page-id-143 .contact-hero {
    padding-bottom: 0;
}

@media (max-width: 1399.98px) {
  .our-process-title {
    font-size: 48px;
  }

  .our-process-steps {
    padding: 0 50px 50px 75px;
  }

  .process-step-content h3 {
    font-size: 46px;
  }

  .process-step-content p {
    font-size: 20px;
  }
}

@media (max-width: 991.98px) {
  .our-process-section {
    padding: 60px 0 0;
  }

  .our-process-head {
    padding-bottom: 70px;
  }

  .our-process-title {
    font-size: 38px;
  }

.our-process-layout {
    display: block;
  }

 .our-process-left,
  .our-process-right {
    width: 100%;
  }

  .our-process-video-track {
    height: auto !important;
  }

  .our-process-video-holder {
    min-height: auto;
  }

  .our-process-video-box,
  .our-process-video-box.is-fixed,
  .our-process-video-box.is-bottom {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: 100% !important;
    height: 320px;
  }

  .our-process-steps {
    padding: 0px 22px 0px 58px;
    margin: 60px 0 0;
  }

  .our-process-steps::before {
    left: 28px;
  }

  .process-step {
    min-height: auto;
    padding-bottom: 45px;
  }

  .process-step-marker {
    left: -44px;
    width: 28px;
    height: 28px;
  }

  .process-step-marker span {
    font-size: 16px;
  }

  .process-step-content h3 {
    margin-bottom: 18px;
    font-size: 34px;
  }

  .process-step-content p {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .our-process-title {
    font-size: 34px;
        margin: 60px 0 40px;
  }
      .our-process-section {
        padding: 10px 0 0;
    }
  .our-process-decor {
    max-width: 140px;
}

  .our-process-video-box,
  .our-process-video-box.is-fixed,
  .our-process-video-box.is-bottom {
    height: 260px;
  }

  .process-step-content h3 {
    font-size: 28px;
  }

  .process-step-content p {
    font-size: 16px;
  }
}
/* how we work */



/* our story */
.our-story.our-story{
  padding: 70px 0 60px;
  overflow: hidden;
}

.our-story__timeline{
  position: relative;
  width: 100%;
  height: 260px; /* вся секция остается невысокой */
}

.our-story__line{
  position: absolute;
  left: 0;
  right: 0;
  top: 95px;
  height: 1px;
  background: #b8b3ab;
}

.our-story__progress{
  position: absolute;
  left: 0;
  top: 95px;
  height: 1px;
  width: 0;
  background: #000;
  transition: width 0.65s ease;
}

.our-story__point-wrap{
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  transform: translateX(0);
  transition: transform 0.65s ease;
}

.our-story__year{
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(46px, 5vw, 64px);
  line-height: 0.95;
  color: #000;
  margin-bottom: 22px;
}

.our-story__point{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
  margin-bottom: 18px;
}

.our-story__text{
  max-width: 290px;
  font-size: 20px;
  line-height: 1.15;
  color: #000;
}

.our-story__year,
.our-story__text{
  transition: opacity 0.22s ease, transform 0.22s ease;
}



@media (max-width: 991.98px){
  .our-story{
    padding: 55px 0 45px;
  }

  .our-story__timeline{
    height: 210px;
  }

  .our-story__line,
  .our-story__progress{
    top: 78px;
  }

  .our-story__year{
    font-size: 40px;
    margin-bottom: 18px;
  }

  .our-story__point{
    width: 9px;
    height: 9px;
    margin-bottom: 14px;
  }

  .our-story__text{
    max-width: 220px;
    font-size: 16px;
  }
}
/* our story */

    @media (min-width: 992px){
  .project-lightbox-link{
    pointer-events: none;
    cursor: default;
  }
}


  .glightbox-clean .gprev {
    top: 46vh !important;
    left: 0 !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, .45) !important;
    border-radius: 70px !important;
}

.glightbox-clean .gnext {
    top: 46vh !important;
    right: 0 !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, .45) !important;
    border-radius: 70px !important;
}
.fancybox-button--zoom, .fancybox-button--play, .fancybox-button--thumbs {
    display: none;
}


@media (max-width: 767px){
section.about-gallery {
    padding: 12px;
}
  .page-id-130 .hero-top, .page-id-133 .hero-top, .page-id-135 .hero-top, .page-id-143 .hero-top {
    padding: 10px 0 10px;
}
.our-process-head.pt-80 {
    padding-top: 0;
}
.project-head-mobile .project-title {
    font-size: 28px;
}
.contact-hero__icon {
  width: 150px;
  margin-bottom: 30px;
}

.contact-hero__title {
  font-size: 30px;
  line-height: 1.2;
}

.page-id-133 .contact-hero {
  padding-bottom: 100px;
}
.bottom-house-section {
    padding-bottom: 110px;
}
.page-id-143 .bottom-house-section {
    padding-top: 110px;
}
.process-step-content h3 {
        margin-bottom: 20px;
    }

}
@media (max-width: 375px){
.mobile-menu__bottom {
    padding-top: 60px;
    padding-bottom: 30px;
}
}