/* Разделы с 3D-иллюстрациями */
/* ── Разделы с иллюстрациями: сетка 1280 / колонки 38–62 / объекты в левой колонке ── */
.sec--arts{padding:80px 0;}
.sec--arts .sec-wrap{max-width:1408px;}
.arts-grid{display:grid;grid-template-columns:462fr 754fr;gap:64px;align-items:start;}
.arts-col{min-width:0;}
.arts-fig{display:block;height:auto;width:100%;object-fit:contain;
  margin-left:auto;margin-right:auto;pointer-events:auto;user-select:none;
  transition:transform .5s cubic-bezier(.22,.61,.36,1);}
#services .arts-fig{max-width:420px;margin-top:48px;}
#pricing .arts-fig{max-width:440px;margin-top:48px;}
#about .arts-fig{max-width:380px;margin-top:40px;}
#contact .arts-fig{max-width:420px;margin-top:40px;}

html,body{overflow-x:clip;}

@media (min-width:1024px) and (max-width:1199px){
  .sec--arts{padding:64px 0;}
  .sec--arts .sec-wrap{padding-left:32px;padding-right:32px;max-width:1232px;}
  .arts-grid{gap:40px;}
}
@media (max-width:1023px){
  .sec--arts{padding:56px 0;}
  .arts-grid{display:block;gap:0;}
  #services .arts-fig,#pricing .arts-fig,#about .arts-fig,#contact .arts-fig{margin-top:32px;}
  #services .arts-fig{max-width:320px;}
  #pricing .arts-fig{max-width:340px;}
  #about .arts-fig{max-width:280px;}
  #contact .arts-fig{max-width:320px;}
  #services .arts-col{margin-bottom:40px;}
  #pricing .arts-col{margin-bottom:32px;}
  #about .arts-col{margin-bottom:32px;}
  #contact .arts-col{margin-bottom:40px;}
}

/* ── Движение объектов при наведении курсора ── */
#services .arts-fig:hover{transform:translateY(-12px) scale(1.045) rotate(1.5deg);}
#pricing .arts-fig:hover{transform:translateY(-9px) scale(1.04) rotate(-1.8deg);}
#about .arts-fig:hover{transform:translateY(-12px) scale(1.05) rotate(2deg);}
#contact .arts-fig:hover{transform:translateY(-9px) scale(1.035) rotate(-1.2deg);}
@media (prefers-reduced-motion:reduce){
  .arts-fig{transition:none;}
  #services .arts-fig:hover,#pricing .arts-fig:hover,#about .arts-fig:hover,#contact .arts-fig:hover{transform:none;}
}
@media (hover:none){
  .arts-fig{transition:none;}
}

/* ── AI-фотосессии: три кадра крупнее и без наездов ── */
.ai-mosaic{grid-template-columns:minmax(0,1fr) 236px;gap:34px;}
.ai-shot{width:226px !important;height:236px !important;}
.ai-shot--top{transform:rotate(3.5deg) translateX(20%) !important;}
.ai-shot--right{transform:rotate(-3deg) translateX(70%) !important;}
.ai-shot--bottom{transform:rotate(2.5deg) translateX(20%) !important;}
.ai-open{cursor:pointer;}
.ai-open .cover-title{transition:color .35s ease,text-shadow .35s ease;}
.ai-open:hover .cover-title,.ai-open:focus-visible .cover-title{color:#EAF7FF;text-shadow:0 0 18px rgba(140,215,255,.45);}
.ai-open:focus-visible{outline:none;}

/* ── Объектив в «Форматах» — наравне с последними строками списка ── */
#services .arts-grid{align-items:stretch;}
#services .arts-col{display:flex;flex-direction:column;}
#services .arts-fig{margin-top:auto;margin-bottom:130px;}

/* ── «Авторский взгляд»: текст по центру высоты, равные отступы сверху и снизу ── */
#about .arts-grid>div:nth-child(2){align-self:center;}

/* ── Крупные голографические номера этапов — мигают как слово «обретает» ── */
.st-num{font-family:'Prata',Georgia,serif;font-size:clamp(28px,3vw,42px);line-height:1;
  letter-spacing:.02em;color:#EAF7FF;
  text-shadow:0 0 6px rgba(150,220,255,.55),0 0 18px rgba(90,180,255,.32),
              .7px 0 0 rgba(0,200,255,.45),-.7px 0 0 rgba(255,110,220,.36);
  animation:holoStall 6s steps(1,end) 1.4s infinite;}


@media (max-width:1023px){
  .ai-shot{width:100% !important;height:auto !important;transform:none !important;}
  #services .arts-fig{margin-top:32px;}
}
@media (prefers-reduced-motion:reduce){
  .st-num{animation:none;opacity:1;}
}

/* Мерцание цифр этапов — как у слова «обретает» на главной */
@keyframes stHoloStall{
  0%,26%{opacity:1;transform:translate3d(0,0,0);filter:brightness(1);clip-path:none;}
  28%{opacity:.08;filter:brightness(1.9);transform:translate3d(-6px,1px,0);clip-path:inset(0 0 58% 0);}
  30%{opacity:1;transform:translate3d(4px,-2px,0) skewX(-4deg);clip-path:inset(46% 0 0 0);filter:brightness(1.4);}
  32%{opacity:.55;transform:translate3d(-3px,1px,0);clip-path:none;filter:brightness(1.7);}
  36%,52%{opacity:1;transform:translate3d(0,0,0);clip-path:none;filter:brightness(1.25);}
  54%{opacity:.3;transform:translate3d(3px,0,0);clip-path:inset(24% 0 30% 0);filter:brightness(1.8);}
  56%,100%{opacity:1;transform:translate3d(0,0,0);clip-path:none;filter:brightness(1);}
}

/* «Стоимость»: лента по центру высоты колонки — равные отступы снизу и сверху */
#pricing .arts-grid{align-items:stretch;}
#pricing .arts-col{display:flex;flex-direction:column;}
#pricing .arts-fig{margin-top:auto;margin-bottom:auto;}

/* ── «Обсудим идею»: ровные отступы между заголовком, вопросом, описанием и ссылкой ── */
#contact .arts-col>.sec-title{margin-bottom:24px;}
#contact .arts-col>.ct-q{margin-top:0;}
#contact .arts-col>.sec-text{margin-top:24px;}
#contact .arts-col>p:nth-of-type(3){margin-top:36px;}
#contact .arts-col>.arts-fig{margin-top:40px;}
@media (max-width:1023px){
  #contact .arts-col>.sec-title{margin-bottom:20px;}
  #contact .arts-col>.sec-text{margin-top:20px;}
  #contact .arts-col>p:nth-of-type(3){margin-top:28px;}
  #contact .arts-col>.arts-fig{margin-top:32px;}
}

/* ── Отступы между абзацами в разделах (утилиты не срабатывают из-за .sec-text) ── */
#services .arts-col>.sec-text{margin-top:28px;}
#pricing .arts-grid .pr-phrase+.sec-text{margin-top:40px;}
#pricing .arts-grid .sec-text+.sec-text{margin-top:28px;}
#about .arts-grid .sec-text+.sec-text{margin-top:28px;}
#about .arts-grid .ab-phrase{margin-bottom:0;}
#about .arts-grid .ab-phrase+p{margin-top:32px;}
@media (max-width:1023px){
  #services .arts-col>.sec-text{margin-top:20px;}
  #pricing .arts-grid .pr-phrase+.sec-text{margin-top:28px;}
  #pricing .arts-grid .sec-text+.sec-text{margin-top:20px;}
  #about .arts-grid .sec-text+.sec-text{margin-top:20px;}
}

/* ── МОБИЛЬНАЯ ВЕРСИЯ ───────────────────────────────────────── */
@media (max-width:1023px){
  /* названия работ — над видео */
  #works .cover{display:flex;flex-direction:column;}
  #works .cover>.cover-caption{order:-1;margin-top:0;margin-bottom:16px;}

  /* AI-фотосессии: порядок на телефоне — надпись, парень, «на синем», «парящее платье», «в серьгах» */
  #works [class*="md:flex-1"]{display:contents;}
  .ai-mosaic{display:contents;}
  #works .ai-mosaic-center{order:1;}
  #works [class*="md:w-[40%]"]{order:2;}
  #works .ai-shot--bottom{order:3;}
  #works .ai-shot--top{order:4;}
  #works .ai-shot--right{order:5;}

  /* осколки на телефоне */
  .shard-slot--mobile-show{display:block;width:clamp(56px,18vw,84px);}
  .shard-slot--mobile-show img{opacity:.7;}
}
