/* Главная страница: блоки между слайдером и «Консультацией эксперта».
   Разметка — php-helpers/home/*.php (генерирует migration/home/build_home.js). */
.hp {
    --hp-red: #c80000;
    --hp-red-dark: #a90000;
    --hp-ink: #17181d;
    --hp-text: #3b3e47;
    --hp-muted: #6f7380;
    --hp-line: #e3e5ea;
    --hp-soft: #f5f6f8;
    --hp-radius: 18px;
    --hp-shadow: 0 18px 44px rgba(23, 24, 29, .12);
    position: relative;
    padding: 96px 0;
    color: var(--hp-text);
    font: 400 16px/1.6 'Open Sans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.hp :where(li) { margin: 0; padding: 0; }
.hp :where(li)::before { content: none; }
.hp :where(p) { margin: 0; }
.hp img { display: block; max-width: 100%; height: auto; }
.hp a { text-decoration: none; }
.hp a:focus-visible, .hp summary:focus-visible { outline: 2px solid var(--hp-red); outline-offset: 3px; }
.hp--soft { background: var(--hp-soft); }
.hp--dark { background: var(--hp-ink); color: rgba(255, 255, 255, .72); }

.hp-head { max-width: 760px; margin: 0 0 40px; }
.hp-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; max-width: none; }
.hp-head--row > div { max-width: 760px; }
.hp-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.hp-kicker {
    display: inline-block;
    margin: 0 0 12px;
    color: var(--hp-red);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hp--dark .hp-kicker { color: #e90000; font-size: 13px; }
.hp-h2 {
    margin: 0 0 14px;
    padding: 0;
    color: var(--hp-ink);
    font: 800 38px/1.16 'Open Sans', Arial, sans-serif;
    letter-spacing: -.015em;
    text-transform: none;
}
.hp--dark .hp-h2 { color: #fff; }
.hp-h2 span { color: var(--hp-red); }
.hp--dark .hp-h2 span { color: #e90000; }
.hp-lead { color: var(--hp-muted); font-size: 17px; line-height: 1.6; }
.hp--dark .hp-lead { color: rgba(255, 255, 255, .66); }

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 700 15px/1.2 'Open Sans', Arial, sans-serif;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.hp-btn--red { background: var(--hp-red); color: #fff; box-shadow: 0 10px 24px rgba(200, 0, 0, .25); }
.hp-btn--red:hover, .hp-btn--red:focus { background: var(--hp-red-dark); color: #fff; transform: translateY(-1px); }
.hp-btn--white { background: #fff; color: var(--hp-red); }
.hp-btn--white:hover, .hp-btn--white:focus { background: #fff3f3; color: var(--hp-red-dark); transform: translateY(-1px); }
.hp-btn--line { border-color: var(--hp-line); background: #fff; color: var(--hp-ink); }
.hp-btn--line:hover, .hp-btn--line:focus { border-color: var(--hp-red); color: var(--hp-red); }
.hp-btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.hp-btn--ghost:hover, .hp-btn--ghost:focus { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.hp-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-red);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(200, 0, 0, .25);
}
.hp-more:hover, .hp-more:focus { color: var(--hp-red-dark); border-bottom-color: currentColor; }
.hp--dark .hp-more { color: #e90000; font-size: 16px; border-bottom-color: rgba(233, 0, 0, .35); }
.hp--dark .hp-more:hover, .hp--dark .hp-more:focus { color: #fff; }

.hp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--hp-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    transition: border-color .2s, color .2s;
}
.hp-chip span { color: var(--hp-muted); font-weight: 400; }
a.hp-chip:hover, a.hp-chip:focus { border-color: var(--hp-red); color: var(--hp-red); }

/* ---------- Цифры и знаки доверия ---------- */
.hp-trust { padding: 44px 0 10px; background: #fff; }
.hp-trust__nums { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--hp-line); border-radius: var(--hp-radius); background: #fff; }
.hp-trust__nums li { padding: 22px 24px; border-left: 1px solid var(--hp-line); }
.hp-trust__nums li:first-child { border-left: 0; }
.hp-trust__nums b { display: block; color: var(--hp-ink); font: 800 38px/1.05 'Open Sans', Arial, sans-serif; letter-spacing: -.02em; }
.hp-trust__nums b small { font-size: 20px; font-weight: 700; letter-spacing: 0; }
.hp-trust__nums li:first-child b { color: var(--hp-red); }
.hp-trust__nums span { display: block; margin-top: 8px; color: var(--hp-muted); font-size: 14px; line-height: 1.45; }
.hp-trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 20px; }
.hp-trust__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--hp-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    transition: border-color .2s, box-shadow .2s;
}
.hp-badge small { display: block; color: var(--hp-muted); font-size: 12px; font-weight: 400; }
.hp-badge i {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff1f1;
    color: var(--hp-red);
    font: 800 12px/1 'Open Sans', Arial, sans-serif;
    font-style: normal;
}
.hp-badge:hover, .hp-badge:focus { border-color: rgba(200, 0, 0, .4); box-shadow: 0 8px 20px rgba(23, 24, 29, .08); color: var(--hp-ink); }
.hp-trust__tv { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--hp-muted); font-size: 13px; font-weight: 600; }
.hp-trust__tv ul { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hp-trust__tv img { width: auto; height: var(--h, 28px); filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s; }
.hp-trust__tv a:hover img, .hp-trust__tv a:focus img { filter: none; opacity: 1; }

/* ---------- Услуги ---------- */
.hp-svc__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hp-svc__card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    background: #fff;
    color: var(--hp-text);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hp-svc__card:hover, .hp-svc__card:focus { border-color: rgba(200, 0, 0, .35); box-shadow: var(--hp-shadow); transform: translateY(-3px); color: var(--hp-text); }
.hp-svc__n { color: var(--hp-red); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.hp-svc__g { margin-left: 8px; color: var(--hp-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hp-svc__t { display: block; margin: 10px 0 8px; color: var(--hp-ink); font-size: 18px; font-weight: 800; line-height: 1.3; }
.hp-svc__x { display: block; color: var(--hp-muted); font-size: 14px; line-height: 1.55; }
.hp-svc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; color: var(--hp-ink); font-size: 13px; font-weight: 600; }
.hp-svc__foot i { flex: none; color: var(--hp-red); font-size: 18px; font-style: normal; transition: transform .2s; }
.hp-svc__card:hover .hp-svc__foot i { transform: translateX(4px); }
.hp-svc__card--big { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; }
.hp-svc__card--wide { grid-column: span 2; padding: 0; overflow: hidden; flex-direction: row; }
.hp-svc__img { position: relative; display: block; overflow: hidden; background: var(--hp-soft); }
.hp-svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hp-svc__card:hover .hp-svc__img img { transform: scale(1.03); }
.hp-svc__card--big .hp-svc__img { aspect-ratio: 16 / 9; }
.hp-svc__card--wide .hp-svc__img { flex: 0 0 44%; }
.hp-svc__b { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.hp-svc__card--big .hp-svc__t { font-size: 24px; }
.hp-svc__card--big .hp-svc__x { font-size: 15px; }
.hp-svc__card--accent { border-color: var(--hp-red); background: var(--hp-red); color: rgba(255, 255, 255, .86); }
.hp-svc__card--accent:hover, .hp-svc__card--accent:focus { border-color: var(--hp-red-dark); background: var(--hp-red-dark); color: rgba(255, 255, 255, .86); }
.hp-svc__card--accent .hp-svc__n, .hp-svc__card--accent .hp-svc__t, .hp-svc__card--accent .hp-svc__foot, .hp-svc__card--accent .hp-svc__foot i { color: #fff; }
.hp-svc__card--accent .hp-svc__g, .hp-svc__card--accent .hp-svc__x { color: rgba(255, 255, 255, .82); }
.hp-svc__card--pic { padding: 0; overflow: hidden; }
.hp-svc__card--pic .hp-svc__img { flex: none; aspect-ratio: 16 / 9; }
.hp-svc__card--pic .hp-svc__b { padding: 18px 20px 20px; }
.hp-svc__card--pic .hp-svc__t { margin-top: 8px; font-size: 17px; }
.hp-svc__card--big .hp-svc__img { flex: 1 0 auto; }
.hp-svc__card--big .hp-svc__img img { position: absolute; inset: 0; object-position: 50% 0; }
.hp-svc__card--big .hp-svc__b { flex: none; }
.hp-svc__card--accent .hp-svc__img { background: var(--hp-red); }
.hp-svc__card--accent .hp-svc__img img { filter: grayscale(1) contrast(1.1) brightness(1.15); mix-blend-mode: multiply; }
.hp-svc__card--accent:hover .hp-svc__img, .hp-svc__card--accent:focus .hp-svc__img { background: var(--hp-red-dark); }

/* ---------- Результаты ---------- */
.hp-res__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hp-case {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    background: #fff;
    color: var(--hp-text);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.hp-case:hover, .hp-case:focus { border-color: rgba(200, 0, 0, .3); box-shadow: var(--hp-shadow); transform: translateY(-3px); color: var(--hp-text); }
.hp-case__shot { display: block; margin: 12px 12px 0; overflow: hidden; border-radius: 12px; background: #e9ebef; aspect-ratio: 16 / 10; }
.hp-case__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hp-case__b { display: flex; flex: 1; flex-direction: column; padding: 16px 20px 20px; }
.hp-case__niche { color: var(--hp-muted); font-size: 13px; }
.hp-case__name { display: block; margin: 2px 0 14px; color: var(--hp-ink); font-size: 20px; font-weight: 800; line-height: 1.25; }
.hp-case__kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 16px; }
.hp-case__kpi li { padding-top: 10px; border-top: 1px solid var(--hp-line); }
.hp-case__kpi b { display: block; color: var(--hp-ink); font-size: 20px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.hp-case__kpi li:first-child b { color: var(--hp-red); }
.hp-case__kpi span { display: block; color: var(--hp-muted); font-size: 12px; line-height: 1.35; }
.hp-case__go { margin-top: auto; color: var(--hp-red); font-size: 14px; font-weight: 700; }

/* ---------- Наши работы: мокапы сайтов на устройствах ---------- */
.hp.hp-devs { padding: 72px 0; }
.hp-devs .hp-head { margin-bottom: 32px; }
.hp-devs__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hp-dev {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    background: #fff;
    color: var(--hp-text);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hp-dev:hover, .hp-dev:focus { border-color: rgba(200, 0, 0, .3); box-shadow: var(--hp-shadow); transform: translateY(-3px); color: var(--hp-text); }
.hp-dev__img { display: block; overflow: hidden; background: #e9ebef; aspect-ratio: 4 / 3; }
.hp-dev__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hp-dev:hover .hp-dev__img img { transform: scale(1.04); }
.hp-dev__b { display: flex; flex: 1; flex-direction: column; padding: 16px 20px 20px; }
.hp-dev__k { color: var(--hp-muted); font-size: 13px; }
.hp-dev__t { display: block; margin: 2px 0 12px; color: var(--hp-ink); font-size: 18px; font-weight: 800; line-height: 1.3; }
.hp-dev__go { margin-top: auto; color: var(--hp-red); font-size: 14px; font-weight: 700; }
.hp-dev__go i { display: inline-block; font-style: normal; transition: transform .25s ease; }
.hp-dev:hover .hp-dev__go i { transform: translateX(4px); }

/* ---------- Середина: аудит ---------- */
.hp-audit { padding: 64px 0; background: #fff; }
.hp-audit__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px 48px;
    overflow: hidden;
    padding: 48px 56px;
    border-radius: 24px;
    background: linear-gradient(120deg, #b30000 0%, #d40d0d 55%, #e5322d 100%);
    color: rgba(255, 255, 255, .88);
}
.hp-audit__card::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -140px;
    width: 420px;
    height: 420px;
    border: 60px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    pointer-events: none;
}
.hp-audit .hp-kicker { color: #fff; opacity: .85; }
.hp-audit .hp-h2 { color: #fff; font-size: 34px; }
.hp-audit__lead { font-size: 17px; line-height: 1.6; }
.hp-audit__side { position: relative; z-index: 1; }
.hp-audit__perks { display: grid; gap: 10px; margin-bottom: 22px; }
.hp-audit__perks li { position: relative; padding-left: 30px; color: #fff; font-weight: 600; }
.hp-audit__perks li::before {
    content: "" !important;
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.hp-audit__acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Портфолио ---------- */
.hp-work { overflow: hidden; }
.hp-work::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -260px;
    width: 900px;
    height: 520px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(200, 0, 0, .22), transparent);
    pointer-events: none;
}
.hp-work .container { position: relative; }
.hp-work__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 16px; }
.hp-door {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--hp-radius);
    background: #20222a;
    color: rgba(255, 255, 255, .7);
    transition: border-color .2s, transform .2s, background-color .2s;
}
.hp-door:hover, .hp-door:focus { border-color: rgba(233, 0, 0, .5); background: #252830; transform: translateY(-3px); color: rgba(255, 255, 255, .7); }
.hp-door__k { color: #e90000; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hp-door__t { display: block; margin: 8px 0 6px; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.25; }
.hp-door__x { display: block; font-size: 14px; line-height: 1.55; }
.hp-door__go { display: inline-block; margin-top: 16px; color: #fff; font-size: 14px; font-weight: 700; }
.hp-door__go i { color: #e90000; font-style: normal; transition: margin .2s; }
.hp-door:hover .hp-door__go i { margin-left: 4px; }
.hp-door--main { grid-column: span 2; grid-row: span 2; padding: 28px; background: linear-gradient(160deg, #262932 0%, #1b1d23 100%); }
.hp-door--main .hp-door__t { font-size: 28px; }
.hp-door__stage { position: relative; display: block; margin: auto -28px -28px; padding: 28px 28px 0; }
.hp-door__mock { display: block; width: 100%; border-radius: 14px 14px 0 0; }
.hp-devices { position: relative; display: block; height: 0; padding-bottom: 62%; }
.hp-devices__laptop {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 84%;
    padding: 2.2% 2.2% 0;
    border-radius: 14px 14px 0 0;
    background: #0d0e11;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .35);
}
.hp-devices__laptop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: 6px 6px 0 0; }
.hp-devices__phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24%;
    padding: 1.4%;
    border-radius: 22px 22px 0 0;
    background: #0d0e11;
    box-shadow: -14px 0 40px rgba(0, 0, 0, .45);
}
.hp-devices__phone img { width: 100%; aspect-ratio: 9 / 17; object-fit: cover; object-position: top center; border-radius: 16px 16px 0 0; }
.hp-door__wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 18px; }
.hp-door__wall img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; border-radius: 6px; background: #2a2c33; }
.hp-door__wall--logos img { object-fit: contain; padding: 6px; background: #fff; }
.hp-door__num { position: absolute; right: 22px; top: 18px; color: rgba(255, 255, 255, .14); font: 800 44px/1 'Open Sans', Arial, sans-serif; letter-spacing: -.03em; }
.hp-work__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Слайды услуг ---------- */
.hp-sell { overflow: hidden; }
.hp-sell::before { content: ""; position: absolute; right: -10%; top: -20%; width: 820px; height: 620px; background: radial-gradient(closest-side, rgba(200, 0, 0, .2), transparent); pointer-events: none; }
.hp-sell .container { position: relative; }
.hp-sl__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; }
.hp-sl__tabs { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.hp-sl__tab {
    position: relative;
    flex: none;
    overflow: hidden;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .78);
    font: 600 14px/1.3 'Open Sans', Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}
.hp-sl__tab:hover { border-color: rgba(255, 255, 255, .45); color: #fff; }
.hp-sl__tab:focus-visible, .hp-sl__btn:focus-visible, .hp-sl__track:focus-visible { outline: 2px solid #e90000; outline-offset: 3px; }
.hp-sl__tab.is-active { border-color: #cc0000; background: #c80000; color: #fff; }
.hp-sl__tab::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--hp-red); }
.hp-sl__tab.is-active::after { background: rgba(255, 255, 255, .85); }
.hp-sl.is-auto .hp-sl__tab.is-active::after { animation: hp-sl-progress var(--hp-sl-interval, 8000ms) linear forwards; animation-play-state: paused; }
.hp-sl.is-playing .hp-sl__tab.is-active::after { animation-play-state: running; }
@keyframes hp-sl-progress { from { width: 0; } to { width: 100%; } }
.hp-sl__ctrl { display: flex; flex: none; gap: 8px; }
.hp-sl__btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font: 700 18px/1 'Open Sans', Arial, sans-serif;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}
.hp-sl__btn:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.hp-sl__btn--toggle span { position: absolute; left: 50%; top: 50%; width: 10px; height: 12px; margin: -6px 0 0 -5px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hp-sl__btn--toggle.is-paused span { width: 0; height: 0; margin: -7px 0 0 -4px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.hp-sl__track {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    margin-top: 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 24px;
}
.hp-sl__track::-webkit-scrollbar { display: none; }
.hp-sl__slide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    background: linear-gradient(160deg, #262932 0%, #1b1d23 100%);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.hp-sl__pain { color: #e90000; font-size: 15px; font-weight: 700; line-height: 1.45; }
.hp-sl__t { margin: 10px 0 0; padding: 0; color: #fff; font: 800 32px/1.18 'Open Sans', Arial, sans-serif; letter-spacing: -.01em; text-transform: none; }
.hp-sl__list { display: grid; gap: 10px; margin-top: 20px; }
.hp-sl__list li { position: relative; padding-left: 28px; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.5; }
.hp-sl__list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 8px; border-left: 2px solid #e90000; border-bottom: 2px solid #e90000; transform: rotate(-45deg); }
.hp-sl__proof { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: center; margin-top: 24px; padding: 16px 18px; border-left: 3px solid var(--hp-red); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.hp-sl__proof b { grid-row: span 2; color: #e90000; font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.hp-sl__proof p { color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.45; }
.hp-sl__proof a { justify-self: start; color: #fff; font-size: 13px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.hp-sl__proof a:hover, .hp-sl__proof a:focus { color: #e90000; border-bottom-color: currentColor; }
.hp-sl__proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.hp-sl__proofs .hp-sl__proof { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 6px; margin-top: 0; }
.hp-sl__proofs .hp-sl__proof b { grid-row: auto; }
.hp-sl__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.hp-sl__more { color: #fff; font-size: 15px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.hp-sl__more:hover, .hp-sl__more:focus { color: #e90000; border-bottom-color: currentColor; }
.hp-sl__visual { position: relative; min-width: 0; }
.hp-sl__img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 18px; background: #2a2c33; }
.hp-sl__img img { width: 100%; height: 100%; object-fit: cover; }
.hp-sl__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(200, 0, 0, .92); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.hp-sl__play::after { content: ""; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.hp-sl__chips { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.hp-sl__chips li { padding: 7px 12px; border-radius: 10px; background: rgba(15, 16, 20, .84); color: rgba(255, 255, 255, .85); font-size: 13px; line-height: 1.35; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hp-sl__chips b { color: #fff; }

/* Слайды «Студия в цифрах» и «Наши проекты» */
.hp-sl__slide--num {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    background: radial-gradient(120% 90% at 100% 0%, rgba(200, 0, 0, .22), transparent 55%), linear-gradient(160deg, #23252d 0%, #15161b 100%);
}
.hp-sl__slide--num > :not(.hp-num__planes) { position: relative; z-index: 1; }
.hp-num__planes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hp-num__planes i { position: absolute; top: -10%; bottom: -10%; transform: skewX(-18deg); }
.hp-num__planes i:nth-child(1) { left: 44%; width: 30%; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01)); }
.hp-num__planes i:nth-child(2) { left: 68%; width: 14%; background: linear-gradient(180deg, rgba(200, 0, 0, .34), rgba(200, 0, 0, .04)); }
.hp-num__planes i:nth-child(3) { left: 86%; width: 30%; background: rgba(255, 255, 255, .04); }
.hp-num__k { color: #e90000; font-size: 14px; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.hp-num__t { max-width: 620px; }
.hp-num__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 0; margin-top: 30px; }
.hp-num__grid li { padding: 2px 20px 0; border-left: 1px solid rgba(255, 255, 255, .2); }
.hp-num__grid li:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.hp-num__grid b { display: inline-block; color: #fff; font: 800 60px/1 'Open Sans', Arial, sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp-num__grid li:first-child b { color: #e90000; }
.hp-num__grid b.is-long { font-size: 42px; line-height: 60px; }
.hp-num__grid span { display: block; margin-top: 10px; color: rgba(255, 255, 255, .74); font-size: 13px; line-height: 1.45; }
.hp-num__certs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.hp-num__certs a { padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: #fff; font-weight: 700; transition: border-color .2s, color .2s; }
.hp-num__certs a:hover, .hp-num__certs a:focus { border-color: #e90000; color: #e90000; }
.hp-num__photos { position: relative; align-self: stretch; min-height: 440px; }
.hp-num__ph { position: absolute; margin: 0; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); transform: rotate(var(--r, 0deg)); }
.hp-num__ph img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.hp-num__ph figcaption { position: absolute; left: 16px; bottom: 16px; padding: 4px 10px; border-radius: 8px; background: var(--hp-red); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4; }
.hp-num__ph--1 { right: 2%; top: 0; width: 54%; height: 74%; --r: 4deg; }
.hp-num__ph--1 img { object-position: 30% 20%; }
.hp-num__ph--2 { left: 0; top: 18%; width: 52%; aspect-ratio: 16 / 9; --r: -6deg; }
.hp-num__ph--3 { left: 14%; bottom: 0; width: 60%; aspect-ratio: 16 / 10; --r: -2deg; }
.hp-num__photos--wall { display: flex; align-items: center; }
.hp-num__wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; transform: rotate(-7deg); }
.hp-num__tile { display: block; overflow: hidden; border: 4px solid #fff; border-radius: 12px; background: #2a2c33; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); aspect-ratio: 4 / 3; }
.hp-num__tile:nth-child(even) { transform: translateY(34px); }
.hp-num__tile img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
    .hp-sl.is-seen .hp-sl__slide--num.is-active .hp-num__grid li { animation: hp-num-in .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
    .hp-sl.is-seen .hp-sl__slide--num.is-active .hp-num__ph, .hp-sl.is-seen .hp-sl__slide--num.is-active .hp-num__tile { animation: hp-num-ph .8s cubic-bezier(.2, .7, .2, 1) both; }
    .hp-sl.is-seen .hp-sl__slide--num.is-active .hp-num__ph--2, .hp-sl.is-seen .hp-sl__slide--num.is-active .hp-num__tile:nth-child(2) { animation-delay: .12s; }
    .hp-sl.is-seen .hp-sl__slide--num.is-active .hp-num__ph--3, .hp-sl.is-seen .hp-sl__slide--num.is-active .hp-num__tile:nth-child(n+3) { animation-delay: .24s; }
}
@keyframes hp-num-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes hp-num-ph { from { opacity: 0; translate: 0 28px; } }

/* Крупные проекты */
.hp-flag { margin-top: 72px; }
.hp-flag__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 24px; }
.hp-flag__h { margin: 0 0 6px; color: #fff; font: 800 28px/1.2 'Open Sans', Arial, sans-serif; letter-spacing: -.01em; text-transform: none; }
.hp-flag__x { max-width: 720px; color: rgba(255, 255, 255, .62); font-size: 15px; line-height: 1.55; }
.hp-flag__hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hp-fcase {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--hp-radius);
    background: #20222a;
    color: rgba(255, 255, 255, .7);
    transition: border-color .2s, transform .2s, background-color .2s;
}
.hp-fcase:hover, .hp-fcase:focus { border-color: rgba(233, 0, 0, .5); background: #252830; transform: translateY(-3px); color: rgba(255, 255, 255, .7); }
.hp-fcase__img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #2a2c33; }
.hp-fcase__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.hp-fcase:hover .hp-fcase__img img, .hp-fcase:focus .hp-fcase__img img { transform: scale(1.03); }
.hp-fcase__b { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px 18px; }
.hp-fcase__k { color: #e90000; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.hp-fcase__url { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .85); font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.hp-fcase__t { color: #fff; font-size: 17px; font-weight: 800; line-height: 1.3; }
.hp-fcase__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-fcase__tags span { padding: 2px 9px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; color: rgba(255, 255, 255, .75); font-size: 12px; line-height: 1.5; }
.hp-fcase__m { margin-top: auto; padding-top: 4px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; }
.hp-fcase__m::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--hp-red); vertical-align: 1px; }
.hp-fcase__go { margin-top: 6px; color: #fff; font-size: 14px; font-weight: 700; }
.hp-fcase__go i { color: #e90000; font-style: normal; transition: margin .2s; }
.hp-fcase:hover .hp-fcase__go i { margin-left: 4px; }
.hp-fcase--hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: linear-gradient(160deg, #262932 0%, #1b1d23 100%); }
.hp-fcase--hero .hp-fcase__img { aspect-ratio: auto; min-height: 280px; }
.hp-fcase--hero .hp-fcase__img img { position: absolute; inset: 0; object-position: center; }
.hp-fcase--hero .hp-fcase__b { justify-content: center; gap: 12px; padding: 26px; }
.hp-fcase--hero .hp-fcase__t { font-size: 26px; line-height: 1.2; }
.hp-fcase--hero .hp-fcase__m { margin-top: 4px; font-size: 16px; }
.hp-flag__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; margin-top: 16px; }
.hp-flag__grid > li { display: flex; min-width: 0; }
.hp-flag__grid > li > .hp-fcase { width: 100%; }
.hp-flag__grid > li.is-wide { grid-column: span 2; }
.hp-flag__grid > li.is-wide .hp-fcase { flex-direction: row; }
.hp-flag__grid > li.is-wide .hp-fcase__img { flex: 0 0 56%; aspect-ratio: auto; }
.hp-flag__grid > li.is-wide .hp-fcase__img img { position: absolute; inset: 0; }
.hp-flag__media { margin-top: 40px; }
.hp-flag__sub { margin: 0 0 14px; color: #fff; font-size: 18px; font-weight: 800; }
.hp-flag__vids { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.hp-fmedia { display: block; color: rgba(255, 255, 255, .62); }
.hp-fmedia:hover, .hp-fmedia:focus { color: rgba(255, 255, 255, .62); }
.hp-fmedia__img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 12px; background: #2a2c33; }
.hp-fmedia__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.hp-fmedia:hover .hp-fmedia__img img, .hp-fmedia:focus .hp-fmedia__img img { transform: scale(1.04); opacity: .85; }
.hp-fmedia__play { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(200, 0, 0, .92); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.hp-fmedia__play::after { content: ""; position: absolute; left: 16px; top: 12px; border-style: solid; border-width: 8px 0 8px 12px; border-color: transparent transparent transparent #fff; }
.hp-fmedia b { display: block; margin-top: 8px; color: #fff; font-size: 14px; line-height: 1.3; }
.hp-fmedia span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; }

/* ---------- Видео ---------- */
.hp-video__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.hp-video__grid > .hp-vd { align-self: start; }
.hp-video__side { display: flex; flex-direction: column; min-width: 0; }
.hp-vd { position: relative; display: block; color: var(--hp-ink); }
.hp-vd__img { position: relative; display: block; overflow: hidden; border-radius: var(--hp-radius); background: #111; aspect-ratio: 16 / 9; }
.hp-vd__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.hp-vd:hover .hp-vd__img img, .hp-vd:focus .hp-vd__img img { transform: scale(1.03); opacity: .9; }
.hp-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgba(200, 0, 0, .92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    transition: transform .2s;
}
.hp-play::after { content: ""; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.hp-vd:hover .hp-play { transform: scale(1.08); }
.hp-vd__len { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; font-weight: 700; }
.hp-vd__t { display: block; margin-top: 14px; color: var(--hp-ink); font-size: 20px; font-weight: 800; line-height: 1.3; }
.hp-vd__m { display: block; margin-top: 4px; color: var(--hp-muted); font-size: 13px; }
.hp-tv__h { margin: 0 0 12px; color: var(--hp-ink); font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.hp-tv { display: grid; gap: 10px; }
.hp-tv__i { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--hp-line); border-radius: 14px; background: #fff; color: var(--hp-text); transition: border-color .2s, box-shadow .2s; }
.hp-tv__i:hover, .hp-tv__i:focus { border-color: rgba(200, 0, 0, .35); box-shadow: 0 10px 26px rgba(23, 24, 29, .08); color: var(--hp-text); }
.hp-tv__thumb { position: relative; display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 9; background: #111; }
.hp-tv__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hp-tv__thumb .hp-play { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.hp-tv__thumb .hp-play::after { left: 13px; top: 10px; border-width: 7px 0 7px 11px; }
.hp-tv__src { display: flex; align-items: center; gap: 6px; color: var(--hp-ink); font-size: 13px; font-weight: 800; }
.hp-tv__src img { width: auto; height: 16px; }
.hp-tv__b small { display: block; color: var(--hp-muted); font-size: 12px; }
.hp-tv__b span.hp-tv__x { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-shorts { margin-top: 36px; }
.hp-shorts__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.hp-shorts__head h3 { margin: 0; color: var(--hp-ink); font-size: 18px; font-weight: 800; }
.hp-shorts__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.hp-short { display: block; color: var(--hp-ink); }
.hp-short .hp-vd__img { aspect-ratio: 9 / 16; border-radius: 14px; }
.hp-short .hp-play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.hp-short .hp-play::after { left: 17px; top: 13px; border-width: 9px 0 9px 14px; }
.hp-short__t { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-short__v { display: block; color: var(--hp-muted); font-size: 12px; }
.hp-video__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hp-vcta {
    position: relative;
    z-index: 0;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    margin-top: 12px;
    padding: 20px 22px;
    border-radius: var(--hp-radius);
    background: var(--hp-ink);
    color: rgba(255, 255, 255, .75);
}
.hp-vcta__bg { position: absolute; inset: 0; z-index: -1; }
.hp-vcta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hp-vcta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, #17181d 30%, rgba(23, 24, 29, .78) 65%, rgba(120, 0, 0, .55)); }
.hp-vcta__k { color: #e90000; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.hp-vcta__t { margin-top: 4px; color: #fff; font-size: 19px; font-weight: 800; line-height: 1.25; }
.hp-vcta__fig { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.hp-vcta__fig b { color: #e90000; font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.hp-vcta__fig span { max-width: 240px; font-size: 13px; line-height: 1.35; }
.hp-vcta__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hp-vcta__list li { padding: 2px 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: #fff; font-size: 12px; line-height: 1.5; }
.hp-vcta__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 14px; }
.hp-vcta .hp-btn { min-height: 42px; padding: 9px 22px; font-size: 14px; }
.hp-vcta__link { color: #fff; font-size: 14px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.hp-vcta__link:hover, .hp-vcta__link:focus { color: #e90000; border-bottom-color: currentColor; }
@media (min-width: 1200px) {
    .hp-tv__i { grid-template-columns: 112px minmax(0, 1fr); }
    .hp-tv__b span.hp-tv__x { -webkit-line-clamp: 1; }
    .hp-vcta__fig span { max-width: none; }
}
@media (min-width: 1400px) {
    /* колонки выравниваются по низу: превью большого ролика растягивается до высоты правой колонки */
    .hp-video__grid > .hp-vd { display: flex; flex-direction: column; align-self: stretch; }
    .hp-video__grid > .hp-vd .hp-vd__img { flex: 1 0 auto; }
    .hp-video__grid > .hp-vd .hp-vd__img img { position: absolute; inset: 0; }
}

/* ---------- Основатель ---------- */
.hp-founder__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hp-founder__photo { position: relative; margin: 0; }
.hp-founder__photo img { width: 100%; border-radius: 22px; box-shadow: var(--hp-shadow); }
.hp-founder__photo figcaption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(23, 24, 29, .86);
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    line-height: 1.4;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hp-founder__photo figcaption b { display: block; color: #fff; font-size: 16px; }
.hp-founder__text > p { margin-bottom: 14px; font-size: 16px; line-height: 1.65; }
.hp-founder__facts { display: grid; gap: 10px; margin: 20px 0 26px; }
.hp-founder__facts li { position: relative; padding-left: 26px; }
.hp-founder__facts li::before { content: "" !important; position: absolute; left: 2px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--hp-red); box-shadow: 0 0 0 4px rgba(200, 0, 0, .12); }
.hp-founder__facts strong { color: var(--hp-ink); }
.hp-certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.hp-cert { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--hp-line); border-radius: 14px; background: #fff; color: var(--hp-ink); transition: border-color .2s, box-shadow .2s; }
.hp-cert:hover, .hp-cert:focus { border-color: rgba(200, 0, 0, .35); box-shadow: 0 10px 26px rgba(23, 24, 29, .08); color: var(--hp-ink); }
.hp-cert__img { display: flex; align-items: center; justify-content: center; height: 96px; overflow: hidden; border-radius: 8px; background: var(--hp-soft); }
.hp-cert__img img { width: auto; max-height: 96px; }
.hp-cert b { font-size: 12px; line-height: 1.35; }
.hp-cert small { color: var(--hp-muted); font-size: 11px; }
.hp-founder__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- Школа ---------- */
.hp-school__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hp-school__photo { position: relative; margin: 0; }
.hp-school__photo img { width: 100%; border-radius: 22px; }
.hp-school__photo figcaption { margin-top: 10px; color: rgba(255, 255, 255, .55); font-size: 13px; }
.hp-school__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hp-school__tags span { padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; }
.hp-school__text > p { margin-bottom: 14px; font-size: 16px; line-height: 1.65; }
.hp-school__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0 30px; }
.hp-school__facts li { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.hp-school__facts b { display: block; color: #fff; font-size: 26px; font-weight: 800; line-height: 1.1; }
.hp-school__facts span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; }
.hp-school__acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Знания: база, статьи, блог ---------- */
.hp-know__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.hp-panel { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--hp-line); border-radius: 22px; background: #fff; }
.hp-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hp-panel__head h3 { margin: 0; color: var(--hp-ink); font-size: 22px; font-weight: 800; line-height: 1.25; }
.hp-panel__head h3 span { color: var(--hp-muted); font-size: 15px; font-weight: 600; }
.hp-panel .hp-chips { margin-top: auto; padding-top: 20px; }
.hp-kb { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.hp-kb__side { display: grid; gap: 12px; align-content: start; }
.hp-post { display: block; color: var(--hp-text); }
.hp-post__img { display: block; overflow: hidden; border-radius: 14px; background: var(--hp-soft); aspect-ratio: 16 / 9; }
.hp-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hp-post:hover .hp-post__img img { transform: scale(1.04); }
.hp-post__cat { display: block; margin-top: 10px; color: var(--hp-red); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.hp-post__t { display: block; margin-top: 4px; color: var(--hp-ink); font-size: 17px; font-weight: 800; line-height: 1.35; transition: color .2s; }
.hp-post:hover .hp-post__t, .hp-post:focus .hp-post__t { color: var(--hp-red); }
.hp-post__x { display: block; margin-top: 6px; color: var(--hp-muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hp-post__m { display: block; margin-top: 6px; color: var(--hp-muted); font-size: 12px; }
.hp-post--row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.hp-post--row .hp-post__img { border-radius: 10px; }
.hp-post--row .hp-post__cat { margin-top: 0; }
.hp-post--row .hp-post__t { font-size: 15px; }
.hp-kb__side .hp-post--row { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
.hp-kb__side .hp-post__t { font-size: 14px; }
.hp-case__go { padding-top: 4px; }
.hp-ar { display: grid; gap: 16px; }
.hp-blog { margin-top: 20px; padding: 26px; border-radius: 22px; background: var(--hp-soft); }
.hp-blog__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hp-blog .hp-post__t { font-size: 15px; }

/* ---------- Вопросы ---------- */
.hp-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.hp-faq__list { border-top: 1px solid var(--hp-line); }
.hp-faq__i { border-bottom: 1px solid var(--hp-line); }
.hp-faq__i summary {
    position: relative;
    display: block;
    padding: 20px 48px 20px 0;
    color: var(--hp-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}
.hp-faq__i summary::-webkit-details-marker { display: none; }
.hp-faq__i summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    background: var(--hp-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23c80000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: transform .2s;
}
.hp-faq__i[open] summary::after { transform: rotate(45deg); }
.hp-faq__i summary:hover { color: var(--hp-red); }
.hp-faq__a { padding: 0 48px 22px 0; font-size: 16px; line-height: 1.65; }
.hp-faq__a a { color: var(--hp-red); font-weight: 600; border-bottom: 1px solid rgba(200, 0, 0, .25); }
.hp-faq__side p { margin-bottom: 20px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1199px) {
    .hp { padding: 80px 0; }
    .hp-h2 { font-size: 34px; }
    .hp-trust__nums b { font-size: 32px; }
    .hp-trust__nums li { padding: 18px; }
    .hp-shorts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hp-shorts__list li:nth-child(n+5) { display: none; }
    .hp-certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-school__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-video__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hp-tv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hp-tv__i { grid-template-columns: 1fr; align-items: start; }
    .hp-flag__hero { grid-template-columns: minmax(0, 1fr); }
    .hp-sl__slide { gap: 32px; padding: 32px; }
    .hp-sl__t { font-size: 28px; }
    .hp-sl__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .hp-sl__tabs::-webkit-scrollbar { display: none; }
    .hp-num__grid b { font-size: 46px; }
    .hp-num__grid b.is-long { font-size: 32px; line-height: 46px; }
    .hp-num__photos { min-height: 400px; }
    .hp-flag__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hp-flag__vids {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 26%;
        margin: 0 -15px;
        padding: 4px 15px 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 15px;
        scrollbar-width: none;
    }
    .hp-flag__vids::-webkit-scrollbar, .hp-flag__grid::-webkit-scrollbar { display: none; }
    .hp-flag__vids > li { scroll-snap-align: start; }
}
@media (max-width: 991px) {
    .hp { padding: 64px 0; }
    .hp-flag { margin-top: 56px; }
    .hp-sl__bar { flex-direction: column; align-items: stretch; }
    .hp-sl__tabs { flex-wrap: nowrap; margin: 0 -15px; padding: 2px 15px 4px; overflow-x: auto; scrollbar-width: none; }
    .hp-sl__tabs::-webkit-scrollbar { display: none; }
    .hp-sl__ctrl { justify-content: flex-end; }
    .hp-sl__track { margin-top: 16px; }
    .hp-sl__slide { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; }
    .hp-sl__visual { order: -1; }
    .hp-sl__img { aspect-ratio: 16 / 9; }
    .hp-num__photos { order: -1; min-height: 320px; margin: 0 12px 8px; }
    .hp-num__ph--1 { right: 4%; width: 40%; height: 92%; }
    .hp-num__ph--1 img { object-position: 30% 70%; }
    .hp-num__ph--2 { top: 8%; width: 44%; }
    .hp-num__ph--3 { left: 26%; width: 42%; }
    .hp-num__photos--wall { min-height: 0; margin: 10px 12px 40px; }
    .hp-num__wall { grid-template-columns: repeat(3, minmax(0, 1fr)); transform: rotate(-4deg); }
    .hp-num__tile:nth-child(even) { transform: none; }
    .hp-num__tile:nth-child(3n+2) { transform: translateY(24px); }
    .hp-flag__head { flex-direction: column; align-items: flex-start; }
    .hp-flag__grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 42%;
        margin: 16px -15px 0;
        padding: 4px 15px 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 15px;
        scrollbar-width: none;
    }
    .hp-flag__grid > li { scroll-snap-align: start; }
    .hp-flag__grid > li.is-wide { grid-column: auto; }
    .hp-flag__grid > li.is-wide .hp-fcase { flex-direction: column; }
    .hp-flag__grid > li.is-wide .hp-fcase__img { flex: none; aspect-ratio: 16 / 10; }
    .hp-flag__grid > li.is-wide .hp-fcase__img img { position: static; }
    .hp-flag__vids { grid-auto-columns: 36%; }
    .hp-h2 { font-size: 30px; }
    .hp-head { margin-bottom: 30px; }
    .hp-head--row { flex-direction: column; align-items: flex-start; }
    .hp-trust__nums { grid-template-columns: repeat(3, 1fr); }
    .hp-trust__nums li:nth-child(4) { border-left: 0; }
    .hp-trust__nums li:nth-child(n+4) { border-top: 1px solid var(--hp-line); }
    .hp-svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-svc__card--big { grid-row: auto; }
    .hp-svc__card--wide { flex-direction: column; }
    .hp-svc__card--wide .hp-svc__img { flex: none; aspect-ratio: 16 / 9; }
    .hp-res__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-audit__card { grid-template-columns: 1fr; padding: 40px; }
    .hp-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-door--main { grid-row: auto; }
    .hp-video__grid, .hp-founder__grid, .hp-school__grid, .hp-know__grid, .hp-faq__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hp-founder__acts .hp-more { white-space: normal; }
    .hp-tv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hp-tv__i { grid-template-columns: 1fr; align-items: start; }
    .hp-certs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hp-blog__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .hp { padding: 52px 0; font-size: 15px; }
    .hp-h2 { font-size: 26px; }
    .hp-lead { font-size: 16px; }
    .hp-more { white-space: normal; }
    .hp-panel__head, .hp-shorts__head { flex-wrap: wrap; }
    .hp-trust { padding: 28px 0 0; }
    .hp-trust__nums { grid-template-columns: 1fr 1fr; }
    .hp-trust__nums li { padding: 16px; border-left: 1px solid var(--hp-line) !important; border-top: 1px solid var(--hp-line) !important; }
    .hp-trust__nums li:nth-child(odd) { border-left: 0 !important; }
    .hp-trust__nums li:nth-child(-n+2) { border-top: 0 !important; }
    .hp-trust__nums li:first-child { grid-column: span 2; border-top: 0 !important; }
    .hp-trust__nums li:nth-child(2) { border-left: 0 !important; border-top: 1px solid var(--hp-line) !important; }
    .hp-trust__nums li:nth-child(3) { border-top: 1px solid var(--hp-line) !important; }
    .hp-trust__nums li:nth-child(4) { border-left: 0 !important; }
    .hp-trust__nums li:nth-child(5) { border-left: 1px solid var(--hp-line) !important; }
    .hp-trust__nums b { font-size: 28px; }
    .hp-trust__nums span { font-size: 13px; }
    .hp-badge { font-size: 13px; }
    .hp-svc__grid { grid-template-columns: 1fr; gap: 12px; }
    .hp-svc__card--big, .hp-svc__card--wide { grid-column: auto; }
    .hp-svc__card--big .hp-svc__t { font-size: 21px; }
    .hp-svc__card--pic:not(.hp-svc__card--accent) { display: grid; grid-template-columns: 36% minmax(0, 1fr); }
    .hp-svc__card--pic:not(.hp-svc__card--accent) .hp-svc__img { aspect-ratio: auto; min-height: 100%; }
    .hp-svc__card--pic:not(.hp-svc__card--accent) .hp-svc__img img { position: absolute; inset: 0; }
    .hp-svc__card--pic:not(.hp-svc__card--accent) .hp-svc__b { padding: 14px 14px 16px; }
    .hp-svc__card--pic .hp-svc__t { font-size: 16px; }
    .hp-svc__card--pic:not(.hp-svc__card--accent) .hp-svc__x { font-size: 13px; }
    .hp-svc__card--pic:not(.hp-svc__card--accent) .hp-svc__foot { padding-top: 10px; font-size: 12px; }
    .hp-rail {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: 82%;
        grid-template-columns: none !important;
        gap: 12px;
        margin: 0 -15px;
        padding: 4px 15px 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .hp-rail::-webkit-scrollbar { display: none; }
    .hp-rail > li { scroll-snap-align: start; display: block !important; }
    .hp-shorts__list.hp-rail { grid-auto-columns: 42%; }
    .hp-blog__list.hp-rail { grid-auto-columns: 72%; }
    .hp-tv.hp-rail { grid-auto-columns: 74%; }
    .hp-audit__card { padding: 30px 22px; border-radius: 20px; }
    .hp-audit .hp-h2 { font-size: 25px; }
    .hp-audit__acts .hp-btn { width: 100%; white-space: normal; text-align: center; }
    .hp-work__grid { grid-template-columns: 1fr; }
    .hp-door--main { grid-column: auto; padding: 22px; }
    .hp-door--main .hp-door__t { font-size: 23px; }
    .hp-door__stage { margin: 18px -22px -22px; padding: 0 22px; }
    .hp-flag__h { font-size: 23px; }
    .hp-sl__ctrl { order: 2; }
    .hp-sl__slide { padding: 16px 16px 22px; gap: 18px; border-radius: 20px; }
    .hp-sl__track { border-radius: 20px; }
    .hp-sl__img { border-radius: 14px; }
    .hp-sl__chips { position: static; margin-top: 10px; }
    .hp-sl__chips li { padding: 5px 10px; background: rgba(255, 255, 255, .06); font-size: 12px; }
    .hp-sl__t { font-size: 23px; }
    .hp-num__k { font-size: 13px; }
    .hp-num__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; margin-top: 22px; }
    .hp-num__grid li:nth-child(odd) { padding-left: 0; border-left: 0; }
    .hp-num__grid li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .2); }
    .hp-num__grid b { font-size: 36px; }
    .hp-num__grid b.is-long { font-size: 25px; line-height: 36px; }
    .hp-num__grid span { margin-top: 6px; font-size: 12px; }
    .hp-num__certs { margin-top: 20px; font-size: 12px; }
    .hp-num__photos { min-height: 0; margin: 4px 6px 6px; }
    .hp-num__ph--1 { position: relative; right: auto; top: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; --r: -1.5deg; }
    .hp-num__ph--1 img { object-position: 30% 66%; }
    .hp-num__ph--2, .hp-num__ph--3, .hp-num__tile:nth-child(n+2) { display: none; }
    .hp-num__photos--wall { margin: 4px 6px 6px; }
    .hp-num__wall { grid-template-columns: minmax(0, 1fr); transform: rotate(-1.5deg); }
    .hp-num__tile { aspect-ratio: 16 / 10; }
    .hp-sl__pain { font-size: 14px; }
    .hp-sl__list li { font-size: 14px; }
    .hp-sl__proof { gap: 4px 12px; padding: 14px; }
    .hp-sl__proof b { font-size: 26px; }
    .hp-sl__proof p { font-size: 13px; }
    .hp-sl__proofs { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
    .hp-sl__proofs .hp-sl__proof { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; gap: 4px 12px; }
    .hp-sl__proofs .hp-sl__proof b { grid-row: span 2; }
    .hp-sl__acts .hp-btn { width: 100%; white-space: normal; text-align: center; }
    .hp-sl__play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
    .hp-sl__play::after { left: 21px; top: 17px; border-width: 9px 0 9px 15px; }
    .hp-fcase--hero { grid-template-columns: minmax(0, 1fr); }
    .hp-fcase--hero .hp-fcase__img { aspect-ratio: 4 / 3; min-height: 0; }
    .hp-fcase--hero .hp-fcase__b { padding: 18px 18px 20px; gap: 10px; }
    .hp-fcase--hero .hp-fcase__t { font-size: 22px; }
    .hp-flag__grid { grid-auto-columns: 78%; }
    .hp-flag__vids { grid-auto-columns: 62%; }
    .hp-vcta { padding: 22px 20px; }
    .hp-vcta__fig b { font-size: 28px; }
    .hp-vcta__acts .hp-btn { width: 100%; }
    .hp-vd__t { font-size: 18px; }
    .hp-certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-school__facts { grid-template-columns: 1fr 1fr; }
    .hp-school__acts .hp-btn, .hp-founder__acts .hp-btn { width: 100%; }
    .hp-panel { padding: 18px; border-radius: 18px; }
    .hp-kb { grid-template-columns: 1fr; }
    .hp-blog { padding: 18px; }
    .hp-faq__i summary { font-size: 16px; padding-right: 44px; }
    .hp-faq__a { padding-right: 0; font-size: 15px; }
    .hp.hp-devs { padding: 48px 0; }
    .hp-devs .hp-head { margin-bottom: 22px; }
    .hp-dev__b { padding: 14px 16px 16px; }
    .hp-dev__t { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .hp *, .hp *::before, .hp *::after { transition: none !important; }
    .hp-sl__tab::after { display: none; }
    .hp-svc__card:hover, .hp-case:hover, .hp-door:hover, .hp-btn:hover, .hp-dev:hover, .hp-dev:focus { transform: none; }
    .hp-svc__card:hover .hp-svc__img img, .hp-vd:hover .hp-vd__img img, .hp-post:hover .hp-post__img img, .hp-dev:hover .hp-dev__img img, .hp-dev:hover .hp-dev__go i { transform: none; }
}
