/* v3 · слой «career» — из шаблона 16 поверх 04 */
/* ================= Главная ================= */
.hero--home .hero__in { grid-template-columns: minmax(0, 1fr); padding-block: 48px 32px; }
.hero--home .hero__lead { margin: 0; }
.hero--home .kinetic { font-size: clamp(56px, 8.2vw, 112px); }
.hero__sub { display: block; margin-top: 22px; font: 400 clamp(18px, 1.8vw, 26px)/1.3 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.hero__sub i { font-style: normal; color: var(--accent); padding-inline: .35em; }
.hero--home .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hf--habr { grid-template-columns: 76px minmax(0, 1fr); align-items: center; column-gap: 16px; text-decoration: none; }
.hf--habr .ring { position: relative; display: grid; place-items: center; width: 76px; height: 76px; }
.hf--habr .ring img { grid-area: 1 / 1; width: 100%; height: 100%; transition: transform .6s; }
.hf--habr .ring b { grid-area: 1 / 1; font-size: 28px; color: var(--accent); }
.hf--habr:hover .ring img { transform: rotate(-20deg); }
@media (max-width: 980px) {
    .hero--home .hero__facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero--home .hf:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) { .hero--home .hero__facts { grid-template-columns: minmax(0, 1fr); } .hero--home .kinetic { font-size: 12.4vw; } }

/* Ротатор направлений: три равноценные фразы сменяют друг друга «волной» */
.rot { container-type: inline-size; margin-top: 18px; }
.rot__big { margin: 0; font: 500 min(176px, 12.6cqi)/1.2 var(--display); text-transform: uppercase; color: var(--fg); letter-spacing: -.015em; height: 2.44em; white-space: nowrap; }
.rot__big .line { display: block; }
.rot__big .line--accent { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.rot__big .ch { display: inline-block; font-variation-settings: "wght" var(--w, 500); transition: font-variation-settings .35s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: no-preference) {
  .rot__big.in .ch { animation: wave 1.3s cubic-bezier(.3,.6,.2,1) both; animation-delay: calc(var(--i) * 32ms); }
  .rot__big.out .ch { animation: waveOut .45s cubic-bezier(.5,0,.8,.4) both; animation-delay: calc(var(--i) * 14ms); }
  @keyframes waveOut { to { font-variation-settings: "wght" 200; opacity: 0; transform: translateY(-.22em); } }
}
.rot__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; max-width: 900px; }
.rot__tab { position: relative; display: block; text-decoration: none; text-align: left; background: none; border: 0; border-top: 2px solid rgba(255,255,255,.14); padding: 14px 0 0; font: 500 15px/1.25 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: color .25s; }
.rot__tab::before { content: ""; position: absolute; left: 0; top: -2px; width: 100%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--teal)); transform-origin: 0 50%; transform: scaleX(0); }
.rot__tab:hover { color: var(--fg); }
.rot__tab span { display: inline-block; color: var(--accent); margin-left: 4px; transition: transform .25s; }
.rot__tab:hover span { transform: translate(3px, -3px); }
.rot__tab:hover { color: var(--accent-2); }
.rot__tab.is-on { color: var(--fg); }
.rot__tab.is-on::before { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .rot.auto .rot__tab.is-on::before { animation: prog 3s linear both; }
  @keyframes prog { from { transform: scaleX(0); } }
}
@media (max-width: 560px) { .rot__tabs { gap: 10px; } .rot__tab { font-size: 12px; } }

/* Клиенты: лента логотипов в стеклянных плитках, цвет при наведении */
.clients-sec { padding-block: clamp(32px, 5vw, 76px) 0; }
.cl { flex: none; width: 200px; height: 112px; display: grid; place-items: center; border-radius: 20px; }
.cl img { grid-area: 1 / 1; height: auto; transition: opacity .25s; }
.cl .c-color { opacity: 0; }
.cl:hover .c-color { opacity: 1; }
.cl:hover .c-mono { opacity: 0; }
@media (max-width: 560px) { .cl { width: 148px; height: 84px; } }

/* Что мы делаем */
.dirs { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 48px; }
.dir { padding: 32px; display: grid; gap: 16px; align-content: start; text-decoration: none; min-height: 340px; }
.dir:first-child { grid-row: span 2; background: radial-gradient(90% 80% at 100% 0%, rgba(128,210,7,.22), transparent 60%), var(--glass); }
.dir img { width: 72px; height: 72px; filter: drop-shadow(0 10px 30px rgba(128,210,7,.35)); }
.dir h3 { font: 500 clamp(28px, 2.6vw, 40px)/1 var(--display); text-transform: uppercase; color: var(--fg); margin: 12px 0 0; }
.dir:first-child h3 { font-size: clamp(36px, 3.6vw, 56px); }
.dir p { margin: 0; font-size: 16px; color: var(--muted); }
.dir .go { margin-top: auto; font: 500 13px/1 var(--mono); text-transform: uppercase; color: var(--accent); }
.dir--chips { grid-column: 2 / span 2; min-height: 0; }
.dir--chips .chips a { font: 400 14px/1 var(--body); color: var(--text); padding: 12px 16px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--edge); text-decoration: none; transition: border-color .2s, color .2s; }
.dir--chips .chips a:hover { border-color: var(--accent); color: var(--accent-2); }
@media (max-width: 1000px) { .dirs { grid-template-columns: minmax(0, 1fr); } .dir:first-child { grid-row: auto; } .dir--chips { grid-column: auto; } .dir { min-height: 0; } }

/* Почему мы */
.why-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 32px; padding: 32px 0; border-bottom: 1px solid var(--edge); }
.why-row .tag { color: var(--accent); padding-top: 12px; }
.why-row h3 { font: 500 clamp(28px, 3vw, 44px)/1 var(--display); text-transform: uppercase; color: var(--fg); margin: 0; transition: color .25s; }
.why-row p { grid-column: 2; margin: 0; font-size: 17px; color: var(--muted); max-width: 52ch; }
.why-row:hover h3 { color: var(--accent-2); }
@media (max-width: 700px) { .why-row { grid-template-columns: minmax(0, 1fr); } .why-row p { grid-column: auto; } .why-row .tag { padding-top: 0; } }

/* Отрасли */
.inds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.ind { container-type: inline-size; padding: 28px; display: grid; gap: 14px; align-content: start; text-decoration: none; min-height: 260px; }
.ind img { width: 72px; height: 72px; filter: drop-shadow(0 10px 30px rgba(128,210,7,.35)); }
.ind h3 { font: 500 min(30px, 11.4cqi)/1.05 var(--display); text-transform: uppercase; color: var(--fg); margin: 10px 0 0; }
.ind p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 1200px) { .inds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .inds { grid-template-columns: minmax(0, 1fr); } .ind { min-height: 0; } }

/* Кейсы на главной: три */
.cases--home .case:nth-child(1) { grid-column: span 7; grid-row: span 2; min-height: 560px; }
.cases--home .case:nth-child(2), .cases--home .case:nth-child(3) { grid-column: span 5; }

/* Отзывы в стеклянном стиле */
.rv { margin-top: 48px; }
.rv-stage { background: radial-gradient(70% 80% at 0% 0%, rgba(128,210,7,.14), transparent 60%), var(--glass) !important; border: 1px solid var(--edge) !important; border-radius: var(--r) !important; backdrop-filter: blur(18px); }
.rv-panel blockquote { font-size: clamp(24px, 2.4vw, 34px) !important; }
.rv-tab { border-radius: 16px !important; background: var(--glass) !important; border-color: var(--edge) !important; }
.rv-tab[aria-selected="true"] { border-color: var(--accent) !important; background: rgba(128,210,7,.08) !important; }

/* Карьера */
.career { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding: clamp(28px, 4vw, 56px); }
.career .h2 { font-size: clamp(36px, 4.6vw, 72px); }
.career .btns { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }
@media (max-width: 900px) { .career { grid-template-columns: minmax(0, 1fr); } }

/* Контакты рядом с формой */
.final__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; max-width: 1100px; margin: 56px auto 0; text-align: left; }
.final__grid .final__form { margin: 0; max-width: none; }
.cinfo { padding: 32px; display: grid; gap: 22px; align-content: start; }
.cinfo dt { font: 500 12px/1 var(--mono); text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cinfo dd { margin: 0; font-size: 16px; color: var(--text); }
.cinfo dd a { color: var(--fg); text-decoration: none; }
.cinfo dd a:hover { color: var(--accent); }
.cinfo .big { font: 500 24px/1.25 var(--display); }
.cinfo dl { margin: 0; display: grid; gap: 22px; }
@media (max-width: 900px) { .final__grid { grid-template-columns: minmax(0, 1fr); } }

/* ================= Карьера ================= */
.chero { isolation: isolate; padding-bottom: clamp(200px, 26vw, 420px); }
.chero__facts { margin-top: 0; position: relative; z-index: 2; }
.chero__facts .hero__facts { margin-bottom: 0; }
.chero__facts .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .chero__facts .hero__facts { grid-template-columns: minmax(0, 1fr); } }
.chero__bg { position: absolute; inset: 0; z-index: -2; }
.chero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.05); animation: heroZoom 16s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.chero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,4,2,.86) 0%, rgba(3,4,2,.62) 42%, rgba(3,4,2,.22) 78%), linear-gradient(180deg, rgba(3,4,2,.55) 0%, transparent 22%, transparent 55%, var(--bg) 100%); }
.chero .hero__in { padding-top: 32px; }
.chero .hero__in .crumbs { margin-bottom: 28px; }
.chero h1, .chero .hero__lead { text-shadow: 0 2px 24px rgba(0,0,0,.5); }
a.hf { text-decoration: none; transition: background .25s; }
a.hf:hover { background: rgba(255,255,255,.04); }
a.hf:hover b { color: var(--accent); }
@media (max-width: 700px) { .chero::before { background: linear-gradient(180deg, rgba(3,4,2,.6) 0%, rgba(3,4,2,.72) 45%, var(--bg) 100%); } }
.why-row--link { text-decoration: none; }
.acc__body { grid-column: 2; display: grid; gap: 12px; justify-items: start; }
.acc__go { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); text-decoration: none; white-space: nowrap; }
a.acc__go:hover, .why-row--link:hover .acc__go { color: var(--accent-2, #a6e34a); }
@media (max-width: 700px) { .acc__body { grid-column: auto; } }
.perk i { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(128,210,7,.12); border: 1px solid rgba(128,210,7,.35); color: var(--accent); transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .25s, color .25s; }
.perk svg { width: 28px; height: 28px; }
.perk:hover i { transform: rotate(-8deg) scale(1.08); background: var(--accent); color: var(--ink); }

.acc__inn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc__inn span { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.acc__inn b { font: 500 20px/1 var(--mono); letter-spacing: .04em; color: var(--fg); user-select: all; -webkit-user-select: all; cursor: text; }
.acc__copy { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s; }
.acc__copy:hover, .acc__copy.is-ok { border-color: var(--accent); color: var(--accent); }
.acc__copy svg { width: 16px; height: 16px; }
.acc__tip { margin: -6px 0 0; font-size: 13px; line-height: 1.45; color: var(--accent); }

.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 230px); gap: 12px; margin-top: 48px;
  grid-template-areas: "a a b c" "a a d c" "e e f f" "h i j j" "k i j j" "l l m m"; }
/* Место каждого фото в мозаике. В шаблоне было инлайн style="grid-area:…" — инлайн перебивал бы
   раскладку из медиазапросов ниже (тест T7), поэтому порядок задан здесь. */
.gal button:nth-child(1) { grid-area: a; }
.gal button:nth-child(2) { grid-area: b; }
.gal button:nth-child(3) { grid-area: c; }
.gal button:nth-child(4) { grid-area: d; }
.gal button:nth-child(5) { grid-area: e; }
.gal button:nth-child(6) { grid-area: f; }
.gal button:nth-child(7) { grid-area: h; }
.gal button:nth-child(8) { grid-area: i; }
.gal button:nth-child(9) { grid-area: j; }
.gal button:nth-child(10) { grid-area: k; }
.gal button:nth-child(11) { grid-area: l; }
.gal button:nth-child(12) { grid-area: m; }
.gal button { all: unset; position: relative; overflow: hidden; border-radius: 22px; cursor: zoom-in; background: #0b0e07; }
.gal button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .4s; }
.gal button::after { content: attr(data-cap); position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; padding: 8px 12px; border-radius: 999px; background: rgba(3,4,2,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 13px/1.2 var(--body); color: var(--fg); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gal button:hover img { transform: scale(1.06); }
.gal button:hover::after, .gal button:focus-visible::after { opacity: 1; transform: none; }
@media (max-width: 760px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } .gal { grid-template-areas: "a a" "a a" "b d" "e e" "c i" "c i" "f f" "h k" "j j" "j j" "l m"; } .gal button::after { display: none; } }
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(3,4,2,.92); backdrop-filter: blur(6px); }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: min(1200px, 100%); }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 18px; display: block; }
.lb figcaption { font-size: 15px; color: var(--text); }
.lb figcaption b { font: 500 12px/1 var(--mono); color: var(--accent); margin-right: 10px; }
.lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(3,4,2,.7); color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s; }
.lb__btn:hover { border-color: var(--accent); color: var(--accent); }
.lb__btn svg { width: 20px; height: 20px; }
.lb__prev { left: 20px; top: 50%; margin-top: -26px; }
.lb__next { right: 20px; top: 50%; margin-top: -26px; }
.lb__close { right: 20px; top: 20px; }
@media (max-width: 700px) { .lb__prev, .lb__next { top: auto; bottom: 20px; margin: 0; } }

.vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.vals { grid-template-rows: repeat(4, auto); }
.val { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; padding: 32px 30px 30px; }
.val__ic { width: 76px; height: 76px; margin-bottom: 26px; filter: drop-shadow(0 10px 30px rgba(128,210,7,.35)); }
.val h3 { margin: 0 0 14px; font: 500 30px/1 var(--display); text-transform: uppercase; color: var(--fg); }
.val p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.val .ask { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); color: var(--muted); font-size: 15px; }
.val .ask b { display: block; margin-bottom: 6px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 900px) { .vals { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } .val { grid-row: auto; grid-template-rows: none; } }

.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.perk { padding: 24px; display: grid; gap: 18px; align-content: start; min-height: 170px; }
.perk .perk__t { padding: 0; border: 0; background: none; border-radius: 0; font: 500 20px/1.2 var(--display); text-transform: uppercase; color: var(--fg); }
@media (max-width: 1000px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .perks { grid-template-columns: minmax(0, 1fr); } .perk { min-height: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; } }

.vacs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.vacs { grid-template-rows: repeat(6, auto); }
.vac { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 12px; padding: 26px 26px 24px; text-decoration: none; transition: border-color .25s, transform .25s; }
.vac:hover { border-color: rgba(128,210,7,.55); transform: translateY(-3px); }
.vac__top { display: flex; justify-content: space-between; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.vac__dir { color: var(--accent); }
.vac__fmt { color: var(--muted); }
.vac h3 { margin: 6px 0 0; font: 500 clamp(24px, 2.2vw, 30px)/1.08 var(--display); text-transform: uppercase; color: var(--fg); transition: color .2s; }
.vac:hover h3 { color: var(--accent-2, #a6e34a); }
.vac__pay { font: 500 22px/1.2 var(--display); color: var(--fg); }
.vac__exp { font-size: 14px; color: var(--muted); }
.vac__skills { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.vac__skills span { padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(128,210,7,.28); font: 500 12px/1 var(--mono); color: var(--accent-2, #a6e34a); }
.vac__go { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--edge); font: 500 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); }
.vac__go i, .vacs-all i { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.vac__go svg, .vacs-all svg { width: 16px; height: 16px; transform: rotate(-45deg); transition: transform .3s; }
.vac:hover .vac__go i, .vacs-all:hover i { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.vac:hover .vac__go svg, .vacs-all:hover svg { transform: none; }
.vacs-all { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 16px; padding: 22px 26px; border-radius: var(--r); border: 1px dashed rgba(128,210,7,.4); text-decoration: none; transition: background .25s, border-color .25s; }
.vacs-all:hover { background: rgba(128,210,7,.06); border-color: var(--accent); }
.vacs-all span { display: grid; gap: 6px; }
.vacs-all b { font: 500 clamp(20px, 2vw, 26px)/1.1 var(--display); text-transform: uppercase; color: var(--fg); }
.vacs-all em { font-style: normal; font-size: 15px; color: var(--muted); }
.vacs-all i { width: 56px; height: 56px; flex: none; color: var(--fg); }
@media (max-width: 1000px) { .vacs { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } .vac { grid-row: auto; grid-template-rows: none; } }

.path { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; position: relative; }
.path::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, rgba(128,210,7,.6) 0 8px, transparent 8px 16px); }
.path li { position: relative; display: grid; gap: 18px; align-content: start; }
.path li > b { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--accent); font: 500 22px/1 var(--display); color: var(--accent); position: relative; z-index: 1; transition: background .25s, color .25s; }
.path li:last-child > b { background: var(--accent); color: var(--ink); }
.path li:hover > b { background: var(--accent); color: var(--ink); }
.path span { font: 500 19px/1.25 var(--display); text-transform: uppercase; color: var(--fg); padding-right: 8px; }
@media (max-width: 900px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .path::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(128,210,7,.6) 0 8px, transparent 8px 16px); }
  .path li { grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 18px; padding-bottom: 18px; }
}

.resume .row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.file { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px dashed rgba(128,210,7,.45); border-radius: 14px; cursor: pointer; color: var(--text); transition: background .2s; }
.file:hover, .file.is-dragover { background: rgba(128,210,7,.06); }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.file span { font-size: 15px; }
@media (max-width: 800px) { .resume .row3 { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .badge svg, .chero__photo img, .cl-row, .chero__hi i { animation: none; } }
