/* Click2Dance 1.2.0 — блоки страницы «דרושות חשפניות» и афиши пакета.
   Цвета, шрифт и кнопки (.action-btn) — из основной темы. */

/* ---------- страница вакансии ---------- */
.c2d-jobs{padding:104px 0 20px;direction:rtl}
.c2d-jobs-wrap{max-width:1080px;margin:0 auto;padding:0 1.25rem}
.c2d-jobs .breadcrumbs{margin-bottom:1.25rem}
.c2d-jobs h2{margin:0 0 22px;font-size:clamp(26px,4.4vw,40px);font-weight:700;line-height:1.2;color:#fff}
.c2d-jobs a:focus-visible{outline:2px solid #00b8ff;outline-offset:3px;border-radius:6px}
.c2d-jobs-section{margin-top:clamp(48px,8vw,84px)}

/* вывеска с лампочками */
.c2d-marquee{position:relative;isolation:isolate;overflow:hidden;padding:clamp(44px,7vw,78px) clamp(28px,6vw,72px) clamp(38px,6vw,66px);border-radius:30px;background:radial-gradient(110% 140% at 88% 0%,rgba(0,184,255,.20),transparent 58%),radial-gradient(90% 120% at 0% 100%,rgba(0,235,170,.13),transparent 55%),#0d171e}
.c2d-marquee::before{content:"";position:absolute;z-index:-1;inset:12px;border:5px dotted #ffd98a;border-radius:20px;filter:drop-shadow(0 0 5px rgba(255,190,80,.75));pointer-events:none;animation:c2dBulbs 2.8s ease-in-out infinite alternate}
@keyframes c2dBulbs{from{opacity:.5}to{opacity:1}}
.c2d-marquee-age{display:inline-block;margin:0 0 18px;padding:5px 14px;border-radius:999px;background:rgba(255,217,138,.12);border:1px solid rgba(255,217,138,.45);color:#ffd98a;font-size:14px;font-weight:600}
.c2d-marquee h1{margin:0 0 16px;font-size:clamp(40px,8.6vw,86px);font-weight:700;line-height:1.04;letter-spacing:-.02em;color:#fff}
.c2d-marquee-lead{max-width:640px;margin:0 0 28px;color:#b8d0e0;font-size:clamp(16px,2.3vw,19px);line-height:1.7}
.c2d-marquee-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.c2d-marquee-actions .action-btn{flex:0 1 300px}
.c2d-jobs-anchor{padding:10px 6px;color:#fff;font-size:16px;text-decoration:underline;text-decoration-color:rgba(0,235,170,.6);text-underline-offset:5px}

/* что входит в работу и что нет */
.c2d-yesno{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.c2d-yesno-col{padding:26px 26px 20px;border-radius:22px;background:#0f1a22;border:1px solid rgba(255,255,255,.05)}
.c2d-yesno-col h3{margin:0 0 12px;font-size:20px;font-weight:700;color:#00ebaa}
.c2d-yesno-col--no h3{color:#ff9c9c}
.c2d-yesno-col ul{list-style:none;margin:0;padding:0}
.c2d-yesno-col li{position:relative;padding:10px 30px 10px 0;border-top:1px solid rgba(255,255,255,.05);color:#dbe8f2;font-size:16.5px;line-height:1.55}
.c2d-yesno-col li:first-child{border-top:0}
.c2d-yesno-col li::before{content:"";position:absolute;right:2px;top:17px;width:14px;height:8px;border-left:2.5px solid #00ebaa;border-bottom:2.5px solid #00ebaa;transform:rotate(-45deg)}
.c2d-yesno-col--no li::before{top:16px;width:14px;height:14px;border:0;transform:none;background:linear-gradient(45deg,transparent 42%,#ff9c9c 42% 58%,transparent 58%),linear-gradient(-45deg,transparent 42%,#ff9c9c 42% 58%,transparent 58%)}

/* требования */
.c2d-reqs{display:grid;grid-template-columns:repeat(2,1fr);gap:0 44px;margin:0}
.c2d-reqs div{padding:20px 0;border-top:1px solid rgba(0,200,255,.18)}
.c2d-reqs dt{margin:0 0 6px;font-size:20px;font-weight:700;color:#fff}
.c2d-reqs dd{margin:0;color:#b8d0e0;font-size:16px;line-height:1.65}

/* шаги: настоящая последовательность, поэтому с номерами */
.c2d-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;margin:0;padding:0;list-style:none;counter-reset:c2dstep}
.c2d-steps li{position:relative;padding-top:64px;counter-increment:c2dstep}
.c2d-steps li::before{content:counter(c2dstep);position:absolute;top:0;right:0;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#00b8ff,#00ebaa);color:#04121a;font-size:20px;font-weight:700}
.c2d-steps li::after{content:"";position:absolute;top:23px;right:60px;left:-14px;height:2px;background:linear-gradient(to left,rgba(0,235,170,.6),rgba(0,184,255,.08))}
.c2d-steps li:last-child::after{display:none}
.c2d-steps h3{margin:0 0 6px;font-size:19px;font-weight:700;color:#fff}
.c2d-steps p{margin:0;color:#b8d0e0;font-size:15.5px;line-height:1.65}

.c2d-jobs .faq-section{padding:0}
.c2d-jobs .faq-container{max-width:none;padding:0}

.c2d-jobs-final{margin:clamp(48px,8vw,84px) 0 70px;padding:clamp(30px,5vw,50px) clamp(20px,4vw,40px);border-radius:26px;text-align:center;background:linear-gradient(135deg,rgba(0,184,255,.14),rgba(0,235,170,.10));border:1px solid rgba(0,200,255,.18)}
.c2d-jobs-final h2{margin-bottom:10px}
.c2d-jobs-final p{max-width:520px;margin:0 auto 22px;color:#b8d0e0;font-size:17px;line-height:1.7}
.c2d-jobs-final .action-btn{flex:none;min-width:min(320px,100%)}

/* ---------- афиша пакета (в тексте записи) ---------- */
.c2d-bill-section{padding:10px 0 56px}
.c2d-bill{position:relative;isolation:isolate;overflow:hidden;max-width:940px;margin:0 auto;padding:clamp(30px,6vw,58px) clamp(22px,5vw,56px);border-radius:30px;background:radial-gradient(75% 95% at 50% -12%,rgba(0,235,170,.24),transparent 62%),radial-gradient(60% 70% at 100% 100%,rgba(0,184,255,.12),transparent 60%),#0d171e;border:1px solid rgba(0,200,255,.14);direction:rtl}
.c2d-bill-title{margin:0 0 4px;font-size:16px;font-weight:600;color:#8aa0b8}
.c2d-bill-acts{margin:0;padding:0;list-style:none}
.c2d-bill-acts li{display:flex;align-items:baseline;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.c2d-bill-name{font-size:clamp(36px,8.4vw,80px);font-weight:700;line-height:1;letter-spacing:-.02em;color:#fff;white-space:nowrap}
.c2d-bill-acts li + li .c2d-bill-name::before{content:"+";margin-left:.22em;color:#00ebaa;font-weight:400}
.c2d-bill-acts li:first-child .c2d-bill-name{background:linear-gradient(135deg,#00b8ff,#00ebaa);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.c2d-bill-role{max-width:44%;color:#b8d0e0;font-size:clamp(14px,2vw,17px);line-height:1.5;text-align:left}
.c2d-bill-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;margin-top:28px}
.c2d-bill-sum{display:block;font-size:clamp(42px,8vw,70px);font-weight:700;line-height:1;color:#fff}
.c2d-bill-note{display:block;margin-top:8px;color:#8aa0b8;font-size:15px}
.c2d-bill-foot .action-btn{flex:0 1 340px}

/* кнопки внутри новых блоков: размер задан здесь, чтобы не зависеть от контекста темы */
.c2d-jobs .action-btn,.c2d-bill .action-btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:58px;padding:16px 28px;border-radius:60px;color:#fff;font-size:17px;font-weight:600;line-height:1.2;text-decoration:none}

@media (max-width:768px){
    .c2d-jobs{padding-top:84px}
    .c2d-yesno,.c2d-reqs{grid-template-columns:1fr}
    .c2d-steps{grid-template-columns:1fr;gap:0}
    .c2d-steps li{padding:0 64px 28px 0}
    .c2d-steps li::after{top:54px;right:23px;left:auto;width:2px;height:calc(100% - 60px);background:linear-gradient(to bottom,rgba(0,235,170,.6),rgba(0,184,255,.08))}
    .c2d-marquee-actions .action-btn,.c2d-bill-foot .action-btn{flex:1 1 100%;width:100%;max-width:none}
    .c2d-bill-foot > div{flex:1 1 100%}
    .c2d-bill-acts li{flex-direction:column;gap:6px}
    .c2d-bill-role{max-width:none;text-align:right}
}
@media (prefers-reduced-motion:reduce){.c2d-marquee::before{animation:none}}

/* ============ Галерея по именам файлов (1.2.3) ============ */
.c2d-gal-section{padding:60px 0}
.c2d-gal{display:grid;gap:14px}
.c2d-gal-block{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:14px;height:clamp(300px,36vw,500px)}
.c2d-gal-item{position:relative;display:block;overflow:hidden;grid-column:span 3;border-radius:18px;background:#0d171e;cursor:zoom-in;transition:filter .35s ease}
.c2d-gal-item[hidden]{display:none}
.c2d-gal-item img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 30%;transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
.c2d-gal-item::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);transition:box-shadow .3s ease;pointer-events:none}
.c2d-gal-b5>:first-child,.c2d-gal-b4>:first-child{grid-column:span 6;grid-row:span 2}
.c2d-gal-b4>:nth-child(2){grid-column:span 6}
.c2d-gal-b3>:first-child{grid-column:span 8;grid-row:span 2}
.c2d-gal-b3>:nth-child(n+2){grid-column:span 4}
.c2d-gal-b2>*{grid-column:span 6;grid-row:span 2}
.c2d-gal-b1>*{grid-column:span 12;grid-row:span 2}
.c2d-gal-b2,.c2d-gal-b1{height:clamp(260px,32vw,460px)}
/* в чётных рядах большая фотография стоит с другой стороны, порядок остальных не меняется */
@media (min-width:701px){
    .c2d-gal-b5.is-flip>:first-child,.c2d-gal-b4.is-flip>:first-child{grid-column:7 / span 6;grid-row:1 / span 2}
    .c2d-gal-b3.is-flip>:first-child{grid-column:5 / span 8;grid-row:1 / span 2}
}
.c2d-gal-more{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:grid;place-items:center;background:rgba(6,10,14,.66);font-size:clamp(22px,3vw,36px);font-weight:700;color:#fff;direction:ltr}
.c2d-gal-item:focus-visible{outline:2px solid #00b8ff;outline-offset:3px}
/* свет на одну фотографию: остальные уходят в тень */
@media (hover:hover){
    .c2d-gal:has(.c2d-gal-item:hover) .c2d-gal-item:not(:hover){filter:brightness(.45) saturate(.7)}
    .c2d-gal-item:hover img{transform:scale(1.05)}
    .c2d-gal-item:hover::after{box-shadow:inset 0 0 0 2px #00ebaa,inset 0 0 44px rgba(0,235,170,.18)}
}
@media (max-width:700px){
    .c2d-gal-section{padding:40px 0}
    .c2d-gal,.c2d-gal-block{gap:10px}
    .c2d-gal-block,.c2d-gal-b2,.c2d-gal-b1{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;height:auto}
    .c2d-gal-block .c2d-gal-item{grid-column:span 1;grid-row:auto;aspect-ratio:1/1;border-radius:14px}
    .c2d-gal-b5>:first-child,.c2d-gal-b4>:first-child,.c2d-gal-b3>:first-child,.c2d-gal-b1>:first-child{grid-column:span 2;aspect-ratio:4/3}
    .c2d-gal-b4>:nth-child(2){grid-column:span 2;aspect-ratio:2/1}
    .c2d-gal-block.c2d-gal-b2>*{aspect-ratio:3/4}
}

/* просмотр на весь экран */
html.c2d-lb-lock{overflow:hidden}
.c2d-lb{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5000;display:none;background:rgba(4,7,10,.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);direction:rtl}
.c2d-lb.is-open{display:block}
.c2d-lb-stage{position:absolute;top:64px;right:84px;bottom:70px;left:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:0}
.c2d-lb-img{display:block;max-width:100%;max-height:100%;min-height:0;border-radius:14px;box-shadow:0 30px 80px rgba(0,0,0,.6);opacity:0;transform:scale(.985);transition:opacity .25s ease,transform .25s ease;cursor:zoom-out}
.c2d-lb-img.is-ready{opacity:1;transform:none}
.c2d-lb-cap{flex:none;max-width:70ch;font-size:15px;line-height:1.5;color:#b8d0e0;text-align:center}
.c2d-lb-cap:empty{display:none}
.c2d-lb-btn{position:absolute;z-index:2;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid rgba(255,255,255,.14);border-radius:50%;background:rgba(18,28,36,.72);color:#fff;cursor:pointer;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.c2d-lb-btn:hover{background:rgba(0,235,170,.16);border-color:rgba(0,235,170,.6)}
.c2d-lb-btn:focus-visible{outline:2px solid #00b8ff;outline-offset:3px}
.c2d-lb-btn svg{display:block;width:22px;height:22px}
.c2d-lb-close{top:14px;left:18px}
.c2d-lb-prev{top:50%;right:18px;margin-top:-24px}
.c2d-lb-next{top:50%;left:18px;margin-top:-24px}
.c2d-lb-count{position:absolute;right:0;bottom:24px;left:0;font-size:14px;letter-spacing:.04em;color:#8aa0b8;text-align:center;direction:ltr}
.c2d-lb-bar{position:absolute;right:0;bottom:0;left:0;height:3px;background:rgba(255,255,255,.08)}
.c2d-lb-bar i{display:block;height:100%;background:linear-gradient(270deg,#00b8ff,#00ebaa);transform:scaleX(0);transform-origin:100% 50%;transition:transform .3s ease}
.c2d-lb.is-single .c2d-lb-prev,.c2d-lb.is-single .c2d-lb-next,.c2d-lb.is-single .c2d-lb-count,.c2d-lb.is-single .c2d-lb-bar{display:none}
@media (max-width:700px){
    .c2d-lb-stage{top:62px;right:8px;bottom:86px;left:8px}
    .c2d-lb-img{border-radius:10px}
    .c2d-lb-prev,.c2d-lb-next{top:auto;bottom:18px;margin-top:0;width:44px;height:44px}
    .c2d-lb-count{bottom:30px}
}
@media (prefers-reduced-motion:reduce){.c2d-gal-item,.c2d-gal-item img,.c2d-gal-item::after,.c2d-lb-img,.c2d-lb-bar i{transition:none}}
