/* ======================================================
       ПЕРЕМЕННЫЕ
       ====================================================== */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --orange: #FF5100;
    --white: #FFFFFF;
    --dark: #000000;
    --gray-bg: #F5F5F5;
    --peach-bg: #FFF5F0;
    --error-bg: #FFE5D9;
    --error-color: #E33834;
    --checkbox-captcha-border: #E33834;
    --border: #E2E2E2;

    /* Состояния белой кнопки */
    --btn-white-bg: #FFFFFF;
    --btn-white-hover: #FFE5D9;
    --btn-white-disabled: #F5F5F5;
    --btn-white-text: #000000;
    --btn-white-text-hover: #000000;
    --btn-white-text-disabled: #999999;

    /* Состояния оранжевой кнопки */
    --btn-orange-bg: #FF5100;
    --btn-orange-hover: #DE4700;
    --btn-orange-disabled: #F5F5F5;
    --btn-orange-text: #FFFFFF;
    --btn-orange-text-hover: #FFFFFF;
    --btn-orange-text-disabled: #999999;

    /* Рамка чекбокса (active = checked) */
    --checkbox-border: #E2E2E2;
    --checkbox-border-hover: #999999;
    --checkbox-border-active: #E2E2E2;
    --checkbox-border-active-hover: #999999;

    --font-head: 'Evolventa Regular', sans-serif;
    --font-body: 'Myriad Pro', Arial, sans-serif;
    --container: 1200px;
    --radius: 20px;
}

.hr-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0;
}

/* ======================================================
       ОБЩИЕ КНОПКИ-CTA (hover/transition)
       ====================================================== */
.hr-hero__btn,
.hr-form__submit,
.hr-gallery__btn {
    transition: opacity .25s, transform .2s, background .2s, color .2s;
}

.hr-form__submit:hover,
.hr-gallery__btn:hover {
    background: var(--btn-orange-hover);
    color: var(--btn-orange-text-hover);
}

.hr-form__submit:disabled,
.hr-form__submit[aria-disabled="true"],
.hr-gallery__btn:disabled,
.hr-gallery__btn[aria-disabled="true"] {
    background: var(--btn-orange-disabled);
    color: var(--btn-orange-text-disabled);
    pointer-events: none;
}

/* Состояние «идёт отправка»: кнопка кликнуть нельзя, но визуально оранжевая */
.hr-form__submit.is-loading,
.hr-gallery__btn.is-loading {
    background: var(--btn-orange-bg);
    color: var(--btn-orange-text);
    pointer-events: none;
}

/* Доступность: видимый фокус только при клавиатурной навигации */
.hr-hero__btn:focus,
.hr-form__submit:focus,
.hr-gallery__btn:focus,
.hr-hero__video-trigger:focus,
.hr-dropdown__trigger:focus,
.hr-upload__remove:focus,
.hr-video-modal__close:focus {
    outline: none;
}

.hr-hero__btn:focus-visible,
.hr-form__submit:focus-visible,
.hr-gallery__btn:focus-visible,
.hr-hero__video-trigger:focus-visible,
.hr-dropdown__trigger:focus-visible,
.hr-upload__remove:focus-visible,
.hr-video-modal__close:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.hr-checkbox__input:focus-visible+.hr-checkbox__box {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

/* ======================================================
       HERO
       ====================================================== */
.hr-hero-wrap {
    padding: 24px 0px 48px;
    max-width: var(--container);
    margin: 0 auto;
}

.hr-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 460px;
    position: relative;
    padding: 40px;
    gap: 40px;
}

/* Левая колонка */
.hr-hero__left {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

/* SVG-фон вставляется inline в .hr-hero */
.hr-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hr-hero__bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hr-hero__title {
    font-family: var(--font-head);
    font-size: clamp(32px, 3.8vw, 40px);
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.hr-hero__title-br {
    display: none;
}

.hr-hero__subtitle {
    font-family: var(--font-head);
    font-size: clamp(16px, 1.8vw, 26px);
    font-weight: 700;
    color: var(--white);
    text-transform: lowercase;
    letter-spacing: 0.03em;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.hr-hero__desc {
    font-size: clamp(14px, 1.1vw, 18px);
    font-family: var(--font-body);
    color: var(--white);
    line-height: 1.35;
    flex: 1;
    position: relative;
    z-index: 1;
}

.hr-hero__cta {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
    justify-content: space-between;
}

.hr-hero__btn {
    display: inline-block;
    background: var(--btn-white-bg);
    color: var(--btn-white-text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    white-space: nowrap;
    text-decoration: none;
}

.hr-hero__btn:hover {
    background: var(--btn-white-hover);
    color: var(--btn-white-text-hover);
}

.hr-hero__btn:disabled,
.hr-hero__btn[aria-disabled="true"] {
    background: var(--btn-white-disabled);
    color: var(--btn-white-text-disabled);
    pointer-events: none;
}

.hr-hero__qr {
    width: 130px;
    height: 130px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--white);
    display: block;
    font-size: 0;
    color: transparent;
}

/* Правая колонка */
.hr-hero__right {
    position: relative;
    overflow: hidden;
    background: transparent;
    padding: 0;
    min-width: 0;
}

/* Вся правая колонка — кнопка открытия видео */
.hr-hero__video-trigger {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    background: #B8A898;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    text-align: left;
    border-radius: 12px;
    overflow: hidden;
}

/* Заглушка / фото */
.hr-hero__thumb {
    width: 100%;
    height: 100%;
    min-height: 380px;
    position: absolute;
    inset: 0;
}

.hr-hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    display: block;
}

/* Градиент снизу */
.hr-hero__video-trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Нижняя строка: play + бейдж */
.hr-hero__bottom-bar {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 2;
}

/* Кнопка play */
.hr-hero__play {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s;
    box-shadow:
        0 0 0 12px rgba(255, 255, 255, 0.18),
        0 0 0 26px rgba(255, 255, 255, 0.09);
}

.hr-hero__play svg {
    margin-left: 4px;
}

@keyframes hrPlayPulse {
    0% {
        box-shadow: 0 0 0 0px rgba(255, 255, 255, 0.45), 0 0 0 0px rgba(255, 255, 255, 0.22);
    }

    100% {
        box-shadow: 0 0 0 18px rgba(255, 255, 255, 0), 0 0 0 36px rgba(255, 255, 255, 0);
    }
}

.hr-hero__video-trigger:hover .hr-hero__play {
    transform: scale(1.06);
    animation: hrPlayPulse 1.1s ease-out infinite;
}

/* Бейдж */
.hr-hero__badge {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hr-hero__badge-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
    display: block;
    line-height: 1.2;
}

.hr-hero__badge-role {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    display: block;
    line-height: 1.3;
}

/* ======================================================
       ВИДЕО-ПОПАП
       ====================================================== */
.hr-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hr-video-modal[hidden] {
    display: none;
}

.hr-video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

.hr-video-modal__inner {
    position: relative;
    width: 90vw;
    max-width: 1250px;
    z-index: 1;
}

.hr-video-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
    transition: opacity .2s;
}

.hr-video-modal__close:hover {
    opacity: .7;
}

.hr-video-modal__frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.hr-video-modal__frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    border: none;
}

/* Принудительно держим нативные контролы видео всегда видимыми (Chromium / WebKit) */
.hr-video-modal__frame video::-webkit-media-controls-panel {
    display: flex !important;
    opacity: 1 !important;
}

.hr-video-modal__frame video::-webkit-media-controls {
    opacity: 1 !important;
}

/* ======================================================
       ПОПАП ИЗОБРАЖЕНИЯ СЛАЙДЕРА
       ====================================================== */
.hr-image-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hr-image-modal[hidden] {
    display: none;
}

.hr-image-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    cursor: zoom-out;
}

.hr-image-modal__inner {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    z-index: 1;
}

.hr-image-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
    transition: opacity .2s;
}

.hr-image-modal__close:hover {
    opacity: .7;
}

.hr-image-modal__frame {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    max-width: 92vw;
    max-height: 90vh;
}

.hr-image-modal__frame img {
    display: block;
    max-width: 92vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ======================================================
       ЦЕННОСТИ
       ====================================================== */
.hr-values {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}


.hr-values .hr-container {
    position: relative;
    z-index: 1;
}

.hr-values__title {
    font-family: var(--font-head);
    font-size: clamp(28px, 2.8vw, 40px);
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 48px;
    color: var(--dark);
}

.hr-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hr-values__card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0px 2.21px 20.49px 0px rgba(0, 0, 0, 0.06);
}

.hr-values__card--orange {
    background: var(--orange);
}

.hr-values__card--white {
    background: var(--white);
}

/* Волновой паттерн на оранжевых карточках */
.hr-values__card-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
}

.hr-values__card-pattern img {
    width: 100%;
    height: 100%;
    display: block;
}

.hr-values__card-name {
    font-family: var(--font-head);
    letter-spacing: 0.05em;
    font-size: clamp(18px, 1.45vw, 28px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    margin: 0;
    position: relative;
    z-index: 1;
}

.hr-values__card--orange .hr-values__card-name {
    color: var(--white);
}

.hr-values__card-desc {
    font-family: inherit;
    font-size: clamp(16px, 1vw, 18px);
    line-height: 130%;
    color: var(--dark);
    flex: 1;
    position: relative;
    z-index: 1;
    margin: 3px;
}

.hr-values__card--orange .hr-values__card-desc {
    color: var(--white);
}

.hr-values__card-icon {
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* ======================================================
       СЛАЙДЕР «ЖИЗНЬ В КОМПАНИИ»
       ====================================================== */
.hr-gallery {
    padding: 72px 0 64px;
    overflow: hidden;
    position: relative;
}

.hr-gallery__title {
    font-family: var(--font-head);
    font-size: clamp(22px, 2.8vw, 40px);
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 48px !important;
    color: var(--dark);
    position: relative;
    z-index: 1;
}

.hr-gallery__slider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
    position: relative;
    z-index: 1;
}

.hr-gallery__viewport {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.hr-gallery__track {
    display: flex;
    gap: 16px;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.hr-gallery__slide {
    flex: 0 0 14%;
    min-width: 0;
    max-width: none;
    height: 460px;
    border-radius: 28px;
    overflow: hidden;
    transition: flex-basis .55s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    position: relative;
    background: #ddd;
    box-sizing: border-box;
}

.hr-gallery__slide--small {
    flex-basis: 10%;
}

.hr-gallery__slide--active {
    flex-basis: 64%;
    cursor: zoom-in;
}

.hr-gallery__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    transition: opacity .4s ease;
    pointer-events: none;
    z-index: 2;
}

.hr-gallery__slide--active::after {
    opacity: 0;
}

.hr-gallery__slide img,
.hr-gallery__slide .hr-gallery__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hr-gallery__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.45);
    text-align: center;
    padding: 0 8px;
}

/* Контролы под слайдером: стрелки + точки */
.hr-gallery__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.hr-gallery__arrow {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark);
    padding: 0;
    transition: color .2s;
    /* Тонкие шевроны по краям контейнера, по центру вьюпорта (height 460px) */
    position: absolute;
    top: 230px;
    transform: translateY(-50%);
    z-index: 3;
}

.hr-gallery__arrow svg {
    width: 22px;
    height: 22px;
}

.hr-gallery__arrow svg path {
    stroke-width: 1.5;
}

.hr-gallery__arrow--prev {
    left: 0;
}

.hr-gallery__arrow--next {
    right: 0;
}

.hr-gallery__arrow:hover {
    color: #666666;
}

.hr-gallery__arrow:active {
    color: var(--orange);
}

.hr-gallery__arrow:disabled {
    color: #999999;
    cursor: default;
}

.hr-gallery__arrow:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

/* Точки-пагинация */
.hr-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hr-gallery__dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    min-width: 0;
    border: none;
    background: #E5D2C2;
    padding: 0;
    cursor: pointer;
    border-radius: 4px;
    box-sizing: border-box;
    transition: width .25s ease, background .25s ease;
}

.hr-gallery__dot:not(.hr-gallery__dot--active):hover {
    background: #FFE5D9;
}

.hr-gallery__dot--active {
    /* flex-basis: 26px; */
    width: 26px;
    background: var(--orange);
    border-radius: 4px;
}

/* Кнопка под слайдером */
.hr-gallery__btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.hr-gallery__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 40px;
    background: var(--btn-orange-bg);
    color: var(--btn-orange-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    text-decoration: none;
}

/* ======================================================
       ФОРМА
       ====================================================== */
.hr-form-section {
    padding: 72px 0 80px;
}

.hr-form-wrap {
    background: var(--gray-bg);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 50fr 45fr;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    gap: 40px;
}

.hr-form__left {
    padding: 16px 8px 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hr-form__title {
    font-family: var(--font-head);
    font-size: clamp(28px, 1.8vw, 34px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.25;
    margin: 0;
}

.hr-form__subtitle {
    font-size: 16px;
    font-family: var(--font-body);
    line-height: 1.6;
    color: #000;
}

.hr-form__illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding-top: 24px; */
}

.hr-form__illustration img {
    width: 360px;
    height: auto;
}

.hr-form__right {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 36px;
}

.hr-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hr-form__field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hr-form__label {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--dark);
    font-weight: 400;
    margin-left: 5px;
}

.hr-form__input {
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--dark);
    outline: none;
    transition: border-color .2s;
}

.hr-form__input::placeholder {
    color: #AAAAAA;
}

.hr-form__input:focus {
    border-color: var(--orange);
}

.hr-form__error {
    display: none;
    font-size: 12px;
    color: var(--error-color);
    margin-top: 4px;
    padding-left: 4px;
}

.hr-form__field--error .hr-form__error {
    display: block;
}

.hr-form__field--error .hr-form__input,
.hr-form__field--error .hr-dropdown__trigger {
    border-color: var(--error-color);
}

/* Dropdown */
.hr-dropdown {
    position: relative;
}

.hr-dropdown__trigger {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color .2s;
    cursor: pointer;
}

.hr-dropdown--open .hr-dropdown__trigger {
    border-color: var(--border);
    border-radius: 10px 10px 0 0;
    border-bottom-color: transparent;
}

.hr-dropdown__value {
    color: #AAAAAA;
}

.hr-dropdown__value--selected {
    color: var(--dark);
}

.hr-dropdown__arrow {
    flex-shrink: 0;
    transition: transform .2s;
}

.hr-dropdown--open .hr-dropdown__arrow {
    transform: rotate(180deg);
}

.hr-dropdown__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-top: 1px solid #EFEFEF;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 0 -1.5px var(--orange);
    z-index: 100;
    overflow-y: auto;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height .2s ease, opacity .15s;
    padding: 8px 0 12px;
}

.hr-dropdown--open .hr-dropdown__list {
    max-height: 240px;
    opacity: 1;
    margin: 0;
    pointer-events: auto;
}

.hr-dropdown__list::-webkit-scrollbar {
    width: 4px;
}

.hr-dropdown__list::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.hr-dropdown__list::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 2px;
}

.hr-dropdown__list {
    scrollbar-width: thin;
    scrollbar-color: var(--orange) transparent;
}

.hr-dropdown__item {
    padding: 16px 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .15s;
}

.hr-dropdown__item:hover {
    background: #FFF5F0;
}

/* Загрузка файла */
[hidden] {
    display: none !important;
}

.hr-upload {
    border-radius: 10px;
}

.hr-upload__default {
    position: relative;
    border: 1.5px dashed var(--border);
    border-radius: 10px;
    background: var(--white);
    transition: background .2s, border-color .2s;
}

.hr-upload__default:hover,
.hr-upload--dragging .hr-upload__default {
    background: #F5F5F5;
}

.hr-upload--dragging .hr-upload__default {
    border-color: var(--orange);
}

.hr-upload__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.hr-upload__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 16px;
    cursor: pointer;
    user-select: none;
}

.hr-upload__label span {
    font-size: 14px;
    color: var(--dark);
    font-weight: 400;
}

.hr-upload__loading {
    border: 1.5px dashed var(--border);
    border-radius: 10px;
    background: #F5F5F5;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hr-upload__loading-icon {
    flex-shrink: 0;
}

.hr-upload__loading span {
    font-size: 14px;
    color: var(--dark);
    font-weight: 400;
    flex-shrink: 0;
}

.hr-upload__progress {
    flex: 1;
    height: 8px;
    background: #E5E5E5;
    border-radius: 4px;
    overflow: hidden;
}

.hr-upload__progress-bar {
    height: 100%;
    background: var(--orange);
    border-radius: 4px;
    width: 0%;
    transition: width .1s linear;
}

.hr-upload__error {
    border: 1.5px dashed var(--error-color);
    border-radius: 10px;
    background: var(--error-bg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--error-color);
    font-weight: 400;
}

.hr-upload__success {
    border: 1.5px dashed var(--border);
    border-radius: 10px;
    background: var(--white);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hr-upload__file-icon {
    flex-shrink: 0;
}

.hr-upload__file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.hr-upload__file-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--dark);
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.hr-upload__file-size {
    font-size: 12px;
    color: #999;
}

.hr-upload__remove {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity .15s;
}

.hr-upload__remove:hover {
    opacity: .6;
}

/* Чекбокс */
.hr-form__field--check {
    padding-top: 4px;
}

/* Капча */
.hr-form__field--captcha {
    padding-top: 4px;
}

.CheckboxCaptcha-Button,
.CheckboxCaptcha {
    max-width: 99% !important;
}

/* Виджет Яндекса имеет фиксированный iframe 302×102. Подгонкой ширины
       занимается JS: задаёт --hr-captcha-scale, мы используем его в transform
       и для высоты контейнера, чтобы layout не оставлял пустоты. */
.hr-form__captcha {
    width: 302px;
    height: 102px;
    transform-origin: left top;
    transform: scale(var(--hr-captcha-scale, 1));
}

.hr-form__captcha-box {
    height: calc(102px * var(--hr-captcha-scale, 1));
    /* overflow: hidden; */
}

@media (min-width: 1024px) {
    .hr-form__captcha {
        /* width: 100%; */
        width: 400px;
        transform: none;
    }

    .hr-form__captcha-box {
        height: 102px;
    }
}

.hr-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.hr-checkbox__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hr-checkbox__box {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--checkbox-border);
    border-radius: 4px;
    background: var(--white);
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s;
    position: relative;
}

.hr-checkbox:hover .hr-checkbox__box {
    border-color: var(--checkbox-border-hover);
}

.hr-checkbox__input:checked+.hr-checkbox__box {
    background: var(--white);
    border-color: var(--checkbox-border-active);
}

.hr-checkbox:hover .hr-checkbox__input:checked+.hr-checkbox__box {
    border-color: var(--checkbox-border-active-hover);
}

.hr-checkbox__input:checked+.hr-checkbox__box::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: rotate(-45deg) translateY(-1px);
}

.hr-checkbox__label {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.hr-checkbox__link {
    color: var(--dark);
    text-decoration: underline;
}

/* Кнопка отправки */
.hr-form__submit {
    height: 56px;
    background: var(--btn-orange-bg);
    color: var(--btn-orange-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.hr-form__submit:disabled {
    cursor: not-allowed;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hr-spinner {
    animation: spin .8s linear infinite;
}

/* Спасибо */
.hr-form__thanks {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--white);
    border-radius: 20px;
    padding: 80px 32px;
    min-height: 360px;
    animation: fadeIn .3s ease;
}

.hr-form__thanks-text {
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--dark);
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ======================================================
       ФОНОВАЯ ДЕКОРАЦИЯ СТРАНИЦЫ
       ====================================================== */
.hr-page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hr-page-bg img {
    width: 100%;
    height: 100%;
    display: block;
}

/* ======================================================
       АДАПТИВ
       ====================================================== */
@media (max-width: 1024px) {

    /* .hr-container,
    .hr-hero-wrap {
        padding: 0 24px;
    } */

    .hr-hero-wrap {
        padding: 16px 0px 40px;
    }

    .hr-gallery__slide {
        height: 360px;
    }

    /* Высота слайда 360px → центрируем боковые стрелки */
    .hr-gallery__arrow {
        top: 180px;
    }

    .hr-form-wrap {
        grid-template-columns: 1fr;
    }

    .hr-form__left {
        padding: 40px 40px 0;
    }

    .hr-form__right {
        padding: 32px 40px 48px;
    }

    .hr-form__illustration {
        display: none;
    }
}

@media (max-width: 768px) {
    .hr-container {
        padding: 0;
    }

    .hr-hero-wrap {
        padding: 16px 0px 32px;
    }

    .hr-hero {
        grid-template-columns: 1fr;
        padding: 24px 20px 20px;
        gap: 16px;
        /* border-radius сохраняем */
    }

    .hr-hero__left {
        padding: 0;
    }

    .hr-hero__title {
        font-size: 32px;
        margin-bottom: 8px;
        letter-spacing: 0;
    }

    .hr-hero__title-br {
        display: inline;
    }

    .hr-hero__subtitle {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .hr-hero__desc {
        font-size: 14px;
        line-height: 1.55;
        flex: none;
    }

    .hr-hero__cta {
        margin-top: 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hr-hero__btn {
        width: 100%;
        text-align: center;
        padding: 14px 2px;
    }

    .hr-hero__qr {
        display: none;
    }

    .hr-hero__right {
        min-height: auto;
    }

    .hr-hero__video-trigger {
        min-height: 280px;
        border-radius: 12px;
    }

    .hr-hero__thumb {
        min-height: 280px;
    }

    /* play — в центре слева, badge — внизу слева */
    .hr-hero__play {
        position: absolute;
        top: -50px;
        left: 20px;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
    }

    .hr-hero__bottom-bar {
        bottom: 20px;
        left: 20px;
        right: 20px;
        gap: 0;
        /* play вышел из потока, badge остаётся здесь */
    }

    .hr-values {
        padding: 48px 0 52px;
    }

    .hr-values__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hr-values__card {
        flex-direction: column;
        padding: 24px 20px 20px;
        min-height: auto;
        border-radius: 16px;
    }

    .hr-values__card-icon img {
        width: 44px;
        height: 44px;
    }

    .hr-gallery {
        padding: 48px 0 52px;
    }

    .hr-gallery__slider {
        padding: 0;
    }

    .hr-gallery__viewport {
        padding-left: 16px;
    }

    .hr-gallery__track {
        gap: 16px;
    }

    .hr-gallery__slide {
        flex: 0 0 85%;
        height: 260px;
        border-radius: 20px;
    }

    .hr-gallery__slide--active,
    .hr-gallery__slide--small {
        flex-basis: 85%;
    }

    /* Последний слайд: ширина = viewport - симметричный padding 16px справа */
    .hr-gallery__slide:last-child,
    .hr-gallery__slide:last-child.hr-gallery__slide--active {
        flex-basis: calc(100% - 16px);
    }

    .hr-gallery__arrow {
        width: 36px;
        height: 36px;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
    }

    .hr-gallery__arrow svg {
        width: 14px;
        height: 14px;
    }

    .hr-gallery__arrow:hover {
        color: var(--orange);
        background: transparent;
        box-shadow: none;
    }

    .hr-gallery__btn {
        width: calc(100% - 32px);
        max-width: 320px;
        text-align: center;
    }

    .hr-form-section {
        padding: 0 0 48px;
    }

    .hr-form-wrap {
        border-radius: 24px;
        padding: 16px;
        gap: 16px;
        display: flex;
        flex-direction: column;
    }

    .hr-form__left {
        padding: 28px 0;
        gap: 12px;
    }

    .hr-form__title {
        color: var(--dark);
    }

    .hr-form__subtitle {
        color: var(--dark);
    }

    .hr-form__illustration {
        display: block;
        padding-top: 16px;
    }

    .hr-form__illustration img {
        width: 220px;
        max-width: 100%;
    }

    .hr-form__right {
        padding: 24px 20px 28px;
        background: var(--white);
        border-radius: 18px;
    }

    .hr-upload {
        /* align-self: flex-start;
            width: fit-content; */
        max-width: 100%;
    }

    .hr-upload__default {
        border: 1.5px dashed var(--border);
        /* display: inline-block;
            width: fit-content;
            max-width: 100%; */
    }

    .hr-upload__label {
        padding: 12px 18px;
        gap: 10px;
    }

    .hr-upload__label span {
        font-size: 13px;
        font-weight: 400;
    }

    .hr-upload__loading {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hr-upload__loading span {
        font-size: 13px;
    }

    .hr-upload__progress {
        flex: none;
        width: 100%;
        height: 8px;
    }

    .hr-form__submit {
        width: 100%;
    }
}

@media (max-width: 400px) {

    .hr-form__captcha {
        transform: scale(.7);
    }
}