/* =========================================
   OUR WORKS PAGE (clean)
   Includes:
   - FX hero tiles
   - Works cards grid
   - Clients 16 logos grid
   - Timeline (tx)
   - Triangle divider
   - Note block
   - Objects list (16 items) + responsive
   ========================================= */

/* ⚠️ ВАЖНО: не трогаем html/body, чтобы не ломать сайт */
/* Если где-то появляется горизонтальный скролл — решаем точечно на секции */

/* =========================
   WORKS HERO (FX)
   ========================= */
  /* =========================
   FX GALLERY (DIAGONAL VIDEO)
   ========================= */


/* =========================
   WORKS HEADER
   ========================= */
.px-works-head{
  padding: 40px 0 30px;
  background: #fff;
}

.px-works-head__container{
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.px-crumbs{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #7a7f86;
}

.px-crumbs__home{
  color: #7a7f86;
  text-decoration: none;
}

.px-crumbs__home:hover{ text-decoration: underline; }

.px-crumbs__current{ color: #ff6a00; }

.px-works-head__title{
  text-align: center;
  margin: 20px 0 16px;
  font-size: 44px;
  font-weight: 800;
  color: #1f2f44;
}

.px-works-head__decor{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.px-works-head__decor span{
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid #ff6a00;
}

.px-works-head__decor span:nth-child(even){
  transform: rotate(180deg);
  opacity: .6;
}

@media (max-width: 600px){
  .px-works-head__title{ font-size: 32px; }
}

/* =========================
   WORKS GRID
   ========================= */
.px-works{
  padding: 60px 0;
  background: #fff;
}

.px-works__grid{
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.px-works__card{
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  display: block;
  -webkit-tap-highlight-color: transparent;
}

.px-works__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}

.px-works__card::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  z-index:1;
}

.px-works__title{
  position:absolute;
  bottom:20px;
  left:20px;
  z-index:2;
  font-size:20px;
  font-weight:600;
}

.px-works_card:hover .px-works_bg{ transform: scale(1.1); }

.px-works__card:focus,
.px-works__card:active{ outline: none; }

@media (max-width: 1024px){
  .px-works__title{ font-size: 18px; }
}
@media (max-width: 600px){
  .px-works__title{ font-size: 22px; }
}

/* =========================
   CLIENTS (16 logos)
   ========================= */
.clients{
  padding: 70px 0 80px;
  background: #fff;
}

.clients__container{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.clients__title{
  text-align: center;
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  color: #18314f;
  margin-bottom: 22px;
}

.clients__line{
  height: 2px;
  width: min(980px, 92%);
  margin: 0 auto 28px;
  background: #ff6a00;
  border-radius: 2px;
}

.clients__subtitle{
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: #2a2f36;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 34px;
}

.clients__subtitle b{ color: #000; }

.clients__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.client-card{
  background: #ff6a00;
  border-radius: 8px;
  height: 128px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  overflow: hidden;
  transition: transform .25s ease, background-color .25s ease;
}

.client-card img{
  max-width: 92%;
  max-height: 85%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  user-select: none;
  pointer-events: none;
}

.client-card:hover{
  transform: translateY(-2px);
  background-color: #ff4f00; /* аккуратно вместо crimson */
}

@media (max-width: 1024px){
  .clients__grid{ grid-template-columns: repeat(2, 1fr); }
  .client-card{ height: 120px; }
}

@media (max-width: 600px){
  .clients__grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .client-card{ height: 110px; padding: 14px; }
}

@media (max-width: 380px){
  .clients__grid{ gap: 10px; }
  .client-card{ height: 96px; padding: 10px; }
}

/* =========================
   TIMELINE (tx)
   ========================= */
.tx-timeline{
  background:#fff;
  padding: 70px 0 90px;
}

.tx-timeline__wrap{
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
}

.tx-timeline__line{
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:3px;
  background:#ff6a00;
}

.tx-row{
  display:grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items:center;
  margin: 0 0 92px;
}

.tx-mid{
  display:flex;
  justify-content:center;
}

.tx-mid__dot{
  width:56px;
  height:56px;
  border-radius:50%;
  border:3px solid #ff6a00;
  background:#fff;
  display:grid;
  place-items:center;
  z-index:2;
}

.tx-mid__dot span{
  color:#ff6a00;
  font-weight:900;
  font-size:18px;
}

.tx-badge{
  width: fit-content;
  background:#ff6a00;
  color:#fff;
  padding:10px 18px;
  border-radius:12px;
  font-weight:800;
  font-size:14px;
  box-shadow: 0 14px 22px rgba(255,106,0,.25);
}

.tx-card{
  background:#1b1b1b;
  color:#fff;
  border-radius:18px;
  padding: 26px 30px;
  width: min(760px, 100%);
  box-shadow: 0 24px 36px rgba(0,0,0,.18);
  position: relative;
}

.tx-card__title{
  margin:0 0 12px;
  font-size:18px;
  line-height:1.35;
  font-weight:700;
}

.tx-card__year{
  color:#ff6a00;
  font-size:14px;
  margin-bottom: 18px;
}

.tx-card__logo img{
  max-width: 520px;
  width: 100%;
  height: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity:.95;
}

.tx-card--left::after{
  content:"";
  position:absolute;
  right:-14px;
  top: 42px;
  width:0;height:0;
  border-top:14px solid transparent;
  border-bottom:14px solid transparent;
  border-left:14px solid #1b1b1b;
}

.tx-card--right::after{
  content:"";
  position:absolute;
  left:-14px;
  top: 42px;
  width:0;height:0;
  border-top:14px solid transparent;
  border-bottom:14px solid transparent;
  border-right:14px solid #1b1b1b;
}

.tx-row--left .tx-card{ justify-self:start; }
.tx-row--left .tx-badge{ justify-self:start; }

.tx-row--right .tx-card{ justify-self:end; }
.tx-row--right .tx-badge{ justify-self:end; }

@media (max-width: 768px){
  .tx-timeline .tx-timeline__line{
    left: 16px;
    transform: none;
    width: 3px;
  }

  .tx-timeline .tx-row{
    grid-template-columns: 46px 1fr;
    column-gap: 14px;
    margin-bottom: 34px;
  }

  .tx-timeline .tx-mid{
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
    align-self: start;
    padding-top: 18px;
  }

  .tx-timeline .tx-mid__dot{
    width: 34px;
    height: 34px;
  }

  .tx-timeline .tx-mid__dot span{
    font-size: 16px;
  }

  .tx-timeline .tx-card{
    grid-column: 2;
    justify-self: start;
    width: 100%;
    max-width: 280px;
    padding: 18px;
    border-radius: 14px;
  }

  .tx-timeline .tx-card--left::after,
  .tx-timeline .tx-card--right::after{
    left: -10px;
    right: auto;
    top: 22px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #1b1b1b;
    border-left: 0;
  }

  .tx-timeline .tx-badge{ display:none; }

  .tx-timeline .tx-card__title{
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .tx-timeline .tx-card__year{
    font-size: 13px;
    margin-bottom: 10px;
  }

  .tx-timeline .tx-card__logo img{
    height: 46px;
    max-width: 300px;
  }
}

/* =========================
   TRIANGLE DIVIDER
   ========================= */
.tri-divider{
  width: 100%;
  height: 28px;
  margin: 40px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28' viewBox='0 0 48 28'%3E%3Cg fill='none' stroke='%23ff6a00' stroke-width='2'%3E%3Cpath d='M9 22 L3 10 L15 10 Z'/%3E%3Cpath d='M33 10 L27 22 L39 22 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

@media (max-width: 600px){
  .tri-divider{
    height: 18px;
    margin: 28px 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='18' viewBox='0 0 32 18'%3E%3Cg fill='none' stroke='%23ff6a00' stroke-width='1.6'%3E%3Cpath d='M7 15 L2 7 L12 7 Z'/%3E%3Cpath d='M25 7 L20 15 L30 15 Z'/%3E%3C/g%3E%3C/svg%3E");
  }
}

/* =========================
   NOTE BLOCK
   ========================= */
.pe-note{
  padding: 40px 0;
  background: #fff;
}

.pe-note__box{
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.pe-note__icon{
  width: 220px;
  height: 220px;
  background: #ff5a12;
  display: grid;
  place-items: center;
  flex: 0 0 220px;
}

.pe-note__icon svg{ width: 120px; height: 120px; }

.pe-note__text{ flex: 1; padding-top: 6px; }

.pe-note__title{
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.65;
  font-weight: 800;
  color: #0b0b0b;
}

.pe-note__desc{
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #2c3f57;
}

@media (max-width: 800px){
  .pe-note__box{ flex-direction: column; gap: 18px; }
  .pe-note__icon{ width: 100px; height: 100px; flex: 0 0 auto; }
  .pe-note__icon svg{ width: 96px; height: 96px; }
  .pe-note__title{ font-size: 18px; }
  .pe-note__desc{ font-size: 15px; }
}

/* =========================
   OBJECTS SECTION (16 items)
   ========================= */
.pe-obj{
  padding: 70px 0 90px;
  background: #fff;
}

.pe-obj__wrap{
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.pe-obj__title{
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 38px;
}

.pe-obj__grid{
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

/* scroll list */
.pe-obj__left{
  max-height: 520px;
  overflow-y: auto;
  padding-right: 18px;
  overscroll-behavior: contain;
}

.pe-obj__left::-webkit-scrollbar{ width: 10px; }
.pe-obj__left::-webkit-scrollbar-track{ background: #e6e6e6; border-radius: 10px; }
.pe-obj__left::-webkit-scrollbar-thumb{
  background: linear-gradient(#ff2a00, #ff6a00);
  border-radius: 10px;
}

.pe-obj__left{
  scrollbar-width: thin;
  scrollbar-color: #ff3a00 #e6e6e6;
}

.pe-obj__list{
  padding-left: 22px;
  margin: 0;
}

.pe-obj__list li{
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.pe-obj__right p{
  font-size: 20px;
  line-height: 1.6;
  font-style: italic;
  font-weight: 500;
  margin: 0;
}

/* tablet */
@media (max-width: 1100px) and (min-width: 701px){
  .pe-obj__title{ font-size: 26px; margin-bottom: 28px; }
  .pe-obj__grid{ grid-template-columns: 1fr 280px; gap: 24px; }
  .pe-obj__left{ max-height: 420px; }
  .pe-obj__list li{ font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
  .pe-obj__right p{ font-size: 17px; }
}

/* mobile */
@media (max-width: 700px){
  .pe-obj__grid{ grid-template-columns: 1fr; }
  .pe-obj__title{ font-size: 22px; }
  .pe-obj__left{
    max-height: 360px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .pe-obj__left::-webkit-scrollbar{ display: none; }
  .pe-obj__list li{ font-size: 16px; }
  .pe-obj__right p{ font-size: 16px; }
}