/* ============================================================
   Главная страница — редизайн в стилистике каталога
   ============================================================ */

.hp-home {
    --hp-blue: #225e99;
    --hp-blue-dark: #1b4f82;
    --hp-blue-light: #3796ca;
    --hp-ink: #27343c;
    --hp-muted: #5b6b78;
    --hp-muted-2: #8a99a6;
    --hp-border: #e0e7ee;
    --hp-soft: #f4f8fc;
    --hp-white: #ffffff;
    --hp-radius: 16px;
    --hp-radius-lg: 24px;
    --hp-shadow: 0 2px 12px rgba(16, 42, 67, .06);
    --hp-shadow-lg: 0 18px 50px rgba(16, 42, 67, .09);
    color: var(--hp-ink);
}

.hp-home > section {
    margin-bottom: 96px;
}

.hp-home section[id] {
    scroll-margin-top: 104px;
}

/* ---------- Общие элементы ---------- */

.hp-overline {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    font: 600 12px/1 Inter;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hp-blue);
}

.hp-overline:before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.hp-overline_light {
    color: rgba(255, 255, 255, .72);
}

.hp-title {
    margin: 14px 0 0;
    font: 700 40px/1.12 SFProDisplay;
    letter-spacing: -.02em;
    color: var(--hp-ink);
}

.hp-title:first-child {
    margin-top: 0;
}

.hp-title b,
.hp-title strong {
    font-weight: 700;
    color: var(--hp-blue);
}

.hp-section-head {
    max-width: 780px;
    margin-bottom: 40px;
}

.hp-section-head_center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.hp-section-head_center .hp-overline {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Текстовые блоки из ACF */
.hp-home .content {
    font: 400 16px/1.65 Inter;
    color: var(--hp-muted);
}

.hp-home .content > p,
.hp-home .content > ul,
.hp-home .content > ol {
    margin-bottom: 16px;
}

.hp-home .content > p:last-child,
.hp-home .content > ul:last-child,
.hp-home .content > ol:last-child {
    margin-bottom: 0;
}

.hp-home .content b,
.hp-home .content strong {
    font-weight: 600;
    color: var(--hp-blue);
}

.hp-home .content > ul > li {
    padding: 2px 0 2px 34px;
    margin-bottom: 14px;
    font: 500 15px/1.5 Inter;
}

.hp-home .content > ul > li:before {
    width: 24px;
    height: 24px;
    margin-top: -12px;
    background: var(--hp-blue);
}

.hp-home .content > ul > li:after {
    width: 18px;
    height: 18px;
    margin-top: -9px;
    left: 3px;
}

/* Кнопки */
.hp-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: 600 15px/1 Inter;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-transition: background .2s linear, color .2s linear, border-color .2s linear, -webkit-box-shadow .2s linear;
    transition: background .2s linear, color .2s linear, border-color .2s linear, box-shadow .2s linear;
}

.hp-btn svg {
    -webkit-box-flex: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-transition: -webkit-transform .2s linear;
    transition: transform .2s linear;
}

.hp-btn:hover svg {
    -webkit-transform: translateX(3px);
    transform: translateX(3px);
}

.hp-btn_primary {
    background: var(--hp-blue);
    border-color: var(--hp-blue);
    color: #fff;
    -webkit-box-shadow: 0 8px 24px rgba(34, 94, 153, .22);
    box-shadow: 0 8px 24px rgba(34, 94, 153, .22);
}

.hp-btn_primary:hover {
    background: var(--hp-blue-dark);
    border-color: var(--hp-blue-dark);
    color: #fff;
}

.hp-btn_white {
    background: var(--hp-blue);
    border-color: var(--hp-blue);
    color: #fff;
    -webkit-box-shadow: 0 8px 22px rgba(34, 94, 153, .2);
    box-shadow: 0 8px 22px rgba(34, 94, 153, .2);
}

.hp-btn_white:hover {
    background: var(--hp-blue-dark);
    border-color: var(--hp-blue-dark);
    color: #fff;
}

.hp-btn_ghost {
    background: #fff;
    border-color: #d7e3ee;
    color: var(--hp-blue);
}

.hp-btn_ghost:hover {
    background: #f3f8fd;
    border-color: #bcd5e8;
    color: var(--hp-blue);
}

/* ============================================================
   HERO — светлая версия (одинаково на всех ширинах)
   ============================================================ */

.hp-hero {
    padding-top: 104px;
}

.hp-hero__card {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    color: var(--hp-ink);
    isolation: isolate;
}

.hp-hero__media {
    position: relative;
    z-index: 2;
    -webkit-box-ordinal-group: 1;
    -ms-flex-order: 0;
    order: 0;
    width: 100%;
    margin: 0;
    height: 0;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 18px;
    -webkit-box-shadow: 0 16px 36px rgba(16, 42, 67, .14);
    box-shadow: 0 16px 36px rgba(16, 42, 67, .14);
}

.hp-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
}

.hp-hero__shade {
    display: none;
}

.hp-hero__body {
    position: relative;
    z-index: 2;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    max-width: 768px;
    padding: 20px 0 0;
}

.hp-hero .hp-overline_light {
    color: var(--hp-blue);
}

.hp-hero__title {
    max-width: 520px;
    margin: 14px 0 0;
    font: 700 36px/1.06 RobotoCondensed;
    letter-spacing: .005em;
    text-transform: uppercase;
    color: var(--hp-ink);
    text-shadow: none;
    text-wrap: balance;
}

.hp-hero__actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 22px;
}

.hp-hero__bottom {
    position: relative;
    z-index: 2;
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
    margin-top: 18px;
    padding: 0;
}

.hp-hero__benefits {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-hero__benefit {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #e7eef5;
    border-radius: 14px;
    background: #fff;
    -webkit-box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
    font: 500 14px/1.4 Inter;
    color: var(--hp-ink);
}

.hp-hero__benefit-icon {
    width: 34px;
    height: 34px;
    padding: 6px;
    border-radius: 10px;
    background: var(--hp-blue);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-box-flex: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* На широких экранах ограничиваем высоту видео,
   чтобы шапка не съедала первый экран */
@media (min-width: 1025px) {
    .hp-hero__media {
        height: clamp(320px, 32vw, 460px);
        padding-top: 0;
    }
}

/* ============================================================
   НАШ ПОДХОД
   ============================================================ */

.hp-intro__inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.hp-intro__lead {
    max-width: 840px;
    margin: 22px auto 0;
    font: 500 23px/1.45 Inter;
    color: var(--hp-ink);
}

.hp-intro__lead p {
    margin: 0;
}

.hp-intro__lead b,
.hp-intro__lead strong {
    font-weight: 700;
    color: var(--hp-blue);
}

.hp-intro__text {
    max-width: 780px;
    margin: 18px auto 0;
    font: 400 16px/1.7 Inter;
    color: var(--hp-muted);
}

.hp-intro__text p {
    margin: 0 0 12px;
}

.hp-intro__text p:last-child {
    margin-bottom: 0;
}

.hp-intro__text b,
.hp-intro__text strong {
    font-weight: 600;
    color: var(--hp-blue);
}

/* ============================================================
   О КОМПАНИИ
   ============================================================ */

.hp-about__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.hp-about__media {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
}

.hp-about__slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: 20px;
    background: #e9eff5;
    -webkit-box-shadow: var(--hp-shadow);
    box-shadow: var(--hp-shadow);
}

.hp-about__slide {
    position: relative;
}

.hp-about__slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
}

.hp-about__dots {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    z-index: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
}

.hp-about__dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    opacity: 1;
    cursor: pointer;
    -webkit-transition: width .3s linear, background .3s linear;
    transition: width .3s linear, background .3s linear;
}

.hp-about__dots .swiper-pagination-bullet-active {
    width: 26px;
    background: #fff;
}

.hp-about__content {
    min-width: 0;
}

.hp-about__text {
    margin-bottom: 30px;
}

.hp-about__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hp-stat {
    padding: 18px 20px;
    border: 1px solid #e7eef6;
    border-radius: 14px;
    background: var(--hp-soft);
}

.hp-stat__value {
    display: block;
    font: 700 26px/1.1 SFProDisplay;
    letter-spacing: -.01em;
    color: var(--hp-blue);
}

.hp-stat__label {
    display: block;
    margin-top: 7px;
    font: 400 13px/1.42 Inter;
    color: var(--hp-muted);
}

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */

.hp-advantages__card {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 56px;
    padding: 40px;
    border-radius: var(--hp-radius-lg);
    background: #fff;
    -webkit-box-shadow: var(--hp-shadow-lg);
    box-shadow: var(--hp-shadow-lg);
}

.hp-advantages__media {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 420px;
}

.hp-advantages__photo {
    position: relative;
    z-index: 1;
    width: 82%;
    max-width: 340px;
    filter: drop-shadow(0 24px 40px rgba(11, 62, 102, .2));
}

.hp-advantages__body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 8px 0;
}

.hp-advantages__text {
    margin-bottom: 22px;
}

.hp-checklist {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.hp-checklist__item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 12px;
    font: 500 16px/1.5 Inter;
    color: var(--hp-ink);
}

.hp-checklist__icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--hp-blue);
    color: #fff;
    -webkit-box-flex: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* ============================================================
   ОБРАЗЦЫ
   ============================================================ */

.hp-promo__card {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: 420px;
    overflow: hidden;
    padding: 56px;
    border-radius: var(--hp-radius-lg);
    background: linear-gradient(120deg, #0b3e66 0%, #225e99 55%, #2f7fb8 100%);
    color: #fff;
    isolation: isolate;
}

.hp-promo__card:before,
.hp-promo__card:after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.hp-promo__card:before {
    top: -160px;
    right: 20%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 70%);
}

.hp-promo__card:after {
    bottom: -220px;
    left: -80px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(55, 150, 202, .28) 0%, rgba(55, 150, 202, 0) 70%);
}

.hp-promo__body {
    position: relative;
    z-index: 2;
    width: 50%;
    max-width: 520px;
}

.hp-promo__title {
    margin: 16px 0 0;
    font: 700 38px/1.12 SFProDisplay;
    letter-spacing: -.02em;
    color: #fff;
}

.hp-promo__title b,
.hp-promo__title strong {
    display: block;
    margin-top: 6px;
    font: 600 28px/1.2 SFProDisplay;
    color: rgba(255, 255, 255, .72);
}

.hp-promo__text {
    margin: 18px 0 28px;
    font: 400 16px/1.65 Inter;
    color: rgba(255, 255, 255, .82);
}

.hp-promo__text p {
    margin: 0;
}

.hp-promo__text b,
.hp-promo__text strong {
    color: #fff;
    font-weight: 600;
}

.hp-promo__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 56%;
    pointer-events: none;
}

.hp-promo__picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hp-promo__picture img {
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: left center;
    object-position: left center;
    -webkit-transform: translateX(6%);
    transform: translateX(6%);
}

.hp-promo__slider {
    display: none;
}

.hp-promo__dots {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.hp-promo__dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    opacity: 1;
    cursor: pointer;
    -webkit-transition: width .3s linear, background .3s linear;
    transition: width .3s linear, background .3s linear;
}

.hp-promo__dots .swiper-pagination-bullet-active {
    width: 24px;
    background: #fff;
}

/* ============================================================
   КАК МЫ РАБОТАЕМ
   ============================================================ */

.hp-process__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
    margin-bottom: 40px;
}

.hp-home .hp-process__desc {
    max-width: 540px;
    font: 400 14px/1.55 Inter;
}

.hp-process__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.hp-step {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #edf2f7;
    border-radius: var(--hp-radius);
    background: #fff;
    -webkit-box-shadow: var(--hp-shadow);
    box-shadow: var(--hp-shadow);
    -webkit-transition: -webkit-transform .2s ease, -webkit-box-shadow .2s ease, border-color .2s ease;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hp-step:hover {
    border-color: #d8e6f2;
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    -webkit-box-shadow: 0 12px 30px rgba(16, 42, 67, .1);
    box-shadow: 0 12px 30px rgba(16, 42, 67, .1);
}

.hp-step__top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 26px;
}

.hp-step__icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eef6fc;
    -webkit-transition: background .2s linear;
    transition: background .2s linear;
}

.hp-step__icon img {
    width: 30px;
    height: 30px;
    -webkit-transition: filter .2s linear;
    transition: filter .2s linear;
}

.hp-step:hover .hp-step__icon {
    background: var(--hp-blue);
}

.hp-step:hover .hp-step__icon img {
    filter: brightness(0) invert(1);
}

.hp-step__num {
    font: 700 28px/1 SFProDisplay;
    letter-spacing: -.02em;
    color: #dbe8f4;
}

.hp-step__title {
    margin: 0 0 8px;
    font: 600 18px/1.3 SFProDisplay;
    color: var(--hp-ink);
}

.hp-step__text {
    margin: 0;
    font: 400 14px/1.5 Inter;
    color: var(--hp-muted);
}

/* ============================================================
   МИССИЯ
   ============================================================ */

.hp-mission__card {
    padding: 56px 48px;
    border: 1px solid #e4eef7;
    border-radius: var(--hp-radius-lg);
    background: linear-gradient(180deg, #f8fbfe 0%, #eef6fc 100%);
    text-align: center;
}

.hp-mission__icons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}

.hp-mission__icon {
    width: 84px;
    height: 84px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #fff;
    -webkit-box-shadow: 0 12px 28px rgba(34, 94, 153, .18);
    box-shadow: 0 12px 28px rgba(34, 94, 153, .18);
}

.hp-mission__icon img {
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
}

.hp-mission__card .hp-overline {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.hp-mission__title {
    margin-top: 14px;
}

.hp-mission__text {
    max-width: 840px;
    margin: 18px auto 0;
}

/* ============================================================
   КОНТАКТЫ
   ============================================================ */

.hp-contact__card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 56px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 48px;
    border: 1px solid #eef2f6;
    border-radius: var(--hp-radius-lg);
    background: #fff;
    -webkit-box-shadow: var(--hp-shadow-lg);
    box-shadow: var(--hp-shadow-lg);
}

.hp-contact__aside {
    padding: 8px 0;
}

.hp-contact__text {
    margin: 16px 0 24px;
}

.hp-contact__phone {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    font: 700 22px/1 SFProDisplay;
    color: var(--hp-blue);
}

.hp-contact__phone svg {
    -webkit-box-flex: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.hp-contact__phone:hover {
    color: var(--hp-blue-light);
}

/* Форма */
.hp-form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 16px;
}

.hp-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hp-form__field {
    display: block;
    min-width: 0;
}

.hp-form__label {
    display: block;
    margin-bottom: 7px;
    font: 600 13px/1.3 Inter;
    color: var(--hp-ink);
}

.hp-form__input,
.hp-form__textarea {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--hp-border);
    border-radius: 10px;
    background: #fafbfc;
    font: 400 15px/1.4 Inter;
    color: var(--hp-ink);
    outline: none;
    -webkit-transition: border-color .2s linear, background .2s linear, -webkit-box-shadow .2s linear;
    transition: border-color .2s linear, background .2s linear, box-shadow .2s linear;
}

.hp-form__textarea {
    height: 128px;
    min-height: 110px;
    padding: 13px 16px;
    resize: vertical;
}

.hp-form__input:focus,
.hp-form__textarea:focus {
    border-color: var(--hp-blue);
    background: #fff;
    -webkit-box-shadow: 0 0 0 3px rgba(34, 94, 153, .1);
    box-shadow: 0 0 0 3px rgba(34, 94, 153, .1);
}

.hp-form__input::placeholder,
.hp-form__textarea::placeholder {
    color: var(--hp-muted-2);
    opacity: 1;
}

.hp-form__input::-webkit-input-placeholder,
.hp-form__textarea::-webkit-input-placeholder {
    color: var(--hp-muted-2);
    opacity: 1;
}

.hp-form__input::-moz-placeholder,
.hp-form__textarea::-moz-placeholder {
    color: var(--hp-muted-2);
    opacity: 1;
}

.hp-form__consent {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 10px;
    font: 400 12px/1.5 Inter;
    color: #7b8b99;
    cursor: pointer;
}

.hp-form__checkbox {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    -webkit-box-flex: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-appearance: checkbox;
    appearance: checkbox;
    accent-color: var(--hp-blue);
    cursor: pointer;
}

.hp-form__consent a {
    color: var(--hp-blue);
    text-decoration: underline;
}

.hp-form__consent a:hover {
    color: var(--hp-blue-dark);
}

.hp-form__turnstile {
    min-height: 0;
}

.hp-form__msg {
    display: none;
    font: 500 14px/1.4 Inter;
}

.hp-form__msg--ok {
    display: block;
    color: #1e8a5a;
}

.hp-form__msg--err {
    display: block;
    color: #c0392b;
}

.hp-form__submit {
    -ms-flex-item-align: start;
    align-self: flex-start;
    min-width: 200px;
}

.hp-form__submit:disabled {
    opacity: .65;
    cursor: default;
}

/* Доступность: глобальный сброс убирает outline, возвращаем его для клавиатуры. */
.hp-home a:focus-visible,
.hp-home button:focus-visible,
.hp-form__input:focus-visible,
.hp-form__textarea:focus-visible,
.hp-form__checkbox:focus-visible {
    outline: 2px solid var(--hp-blue-light);
    outline-offset: 3px;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1200px) {
    .hp-home > section {
        margin-bottom: 80px;
    }

    .hp-title {
        font-size: 34px;
    }

    .hp-about__grid {
        gap: 40px;
    }

    .hp-advantages__card {
        gap: 40px;
        padding: 32px;
    }

    .hp-promo__card {
        padding: 48px;
    }

    .hp-promo__title {
        font-size: 32px;
    }

    .hp-promo__title b,
    .hp-promo__title strong {
        font-size: 24px;
    }

    .hp-process__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hp-contact__card {
        gap: 40px;
        padding: 40px;
    }
}

@media (max-width: 1024px) {
    .hp-about__grid {
        grid-template-columns: 1fr;
    }

    .hp-about__media {
        display: block;
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1;
    }

    .hp-about__slider {
        -webkit-box-flex: 0;
        -ms-flex: none;
        flex: none;
        height: auto;
        aspect-ratio: 16 / 10;
        max-height: 430px;
    }

    .hp-about__content {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
    }

    .hp-advantages__card {
        grid-template-columns: 1fr;
    }

    .hp-advantages__media {
        min-height: 340px;
    }

    .hp-advantages__photo {
        max-width: 290px;
    }

    .hp-promo__body {
        width: 58%;
    }

    .hp-process__head {
        grid-template-columns: 1fr;
        gap: 20px;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: start;
    }

    .hp-contact__card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    /* В альбомной ориентации видео не должно съедать первый экран */
    .hp-hero__media {
        height: 46vh;
        min-height: 230px;
        max-height: 360px;
        padding-top: 0;
    }

    .hp-hero__title {
        max-width: 640px;
    }
}

@media (max-width: 900px) {
    .hp-promo__card {
        display: block;
        min-height: 0;
        padding: 36px 32px 28px;
    }

    .hp-promo__body {
        width: 100%;
        max-width: none;
    }

    .hp-promo__media {
        position: static;
        width: 100%;
        margin-top: 28px;
        pointer-events: auto;
    }

    .hp-promo__picture {
        display: none;
    }

    .hp-promo__slider {
        display: block;
        overflow: hidden;
        border-radius: 14px;
    }

    .hp-promo__slide img {
        width: 100%;
        aspect-ratio: 16 / 10;
        max-height: 340px;
        display: block;
        -o-object-fit: cover;
        object-fit: cover;
        border-radius: 14px;
    }
}

@media (max-width: 767px) {
    .hp-home > section {
        margin-bottom: 64px;
    }

    .hp-overline {
        font-size: 11px;
    }

    .hp-title {
        font-size: 27px;
        line-height: 1.18;
    }

    .hp-section-head {
        margin-bottom: 28px;
    }

    /* Hero */
    .hp-hero {
        padding-top: 96px;
    }

    .hp-hero__card {
        min-height: 0;
        overflow: visible;
        border-radius: 0;
        background: transparent;
    }

    .hp-hero__body {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1;
        padding: 20px 0 0;
    }

    .hp-hero__media {
        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
        order: 0;
        width: 100%;
        margin: 0;
        border-radius: 18px;
        -webkit-box-shadow: 0 16px 36px rgba(16, 42, 67, .14);
        box-shadow: 0 16px 36px rgba(16, 42, 67, .14);
    }

    .hp-hero .hp-overline_light {
        color: var(--hp-blue);
    }

    .hp-hero__title {
        margin-top: 14px;
        font-size: 30px;
        line-height: 1.06;
        color: var(--hp-ink);
        text-shadow: none;
    }

    .hp-hero__bottom {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
        margin-top: 18px;
        padding: 0;
    }

    .hp-hero__actions {
        margin: 0 0 14px;
    }

    .hp-hero__actions .hp-btn {
        width: 100%;
    }

    .hp-hero__actions .hp-btn_white {
        background: var(--hp-blue);
        border-color: var(--hp-blue);
        color: #fff;
        -webkit-box-shadow: 0 8px 22px rgba(34, 94, 153, .2);
        box-shadow: 0 8px 22px rgba(34, 94, 153, .2);
    }

    .hp-hero__actions .hp-btn_white:hover {
        background: var(--hp-blue-dark);
        border-color: var(--hp-blue-dark);
        color: #fff;
    }

    .hp-hero__actions .hp-btn_ghost {
        background: #fff;
        border-color: #d7e3ee;
        color: var(--hp-blue);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .hp-hero__actions .hp-btn_ghost:hover {
        background: #f3f8fd;
        border-color: #bcd5e8;
        color: var(--hp-blue);
    }

    .hp-hero__benefits {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0;
    }

    .hp-hero__benefit {
        padding: 12px 14px;
        border-color: #e7eef5;
        background: #fff;
        color: var(--hp-ink);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        -webkit-box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
        box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
    }

    .hp-hero__benefit-icon {
        width: 34px;
        height: 34px;
        padding: 6px;
        border-radius: 10px;
        background: var(--hp-blue);
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .hp-hero__benefit {
        font-size: 13px;
    }

    /* Вступление */
    .hp-intro__lead {
        margin-top: 18px;
        font-size: 19px;
        line-height: 1.5;
    }

    .hp-intro__text {
        font-size: 15px;
        line-height: 1.65;
    }

    /* О компании */
    .hp-about__slider {
        border-radius: 16px;
    }

    .hp-stat {
        padding: 15px 16px;
    }

    .hp-stat__value {
        font-size: 22px;
    }

    .hp-stat__label {
        font-size: 12px;
    }

    /* Преимущества */
    .hp-advantages__card {
        gap: 28px;
        padding: 18px;
        border-radius: 20px;
    }

    .hp-advantages__media {
        min-height: 290px;
        border-radius: 14px;
    }

    .hp-advantages__photo {
        max-width: 250px;
    }

    .hp-checklist__item {
        font-size: 15px;
    }

    /* Образцы */
    .hp-promo__card {
        padding: 30px 22px 22px;
        border-radius: 20px;
    }

    .hp-promo__title {
        font-size: 25px;
    }

    .hp-promo__title b,
    .hp-promo__title strong {
        font-size: 20px;
    }

    .hp-promo__text {
        margin: 14px 0 22px;
        font-size: 15px;
    }

    /* Процесс */
    .hp-process__grid {
        grid-template-columns: 1fr;
    }

    .hp-step {
        padding: 20px;
    }

    .hp-step__top {
        margin-bottom: 18px;
    }

    /* Миссия */
    .hp-mission__card {
        padding: 34px 20px;
        border-radius: 20px;
    }

    .hp-mission__icons {
        gap: 12px;
        margin-bottom: 24px;
    }

    .hp-mission__icon {
        width: 64px;
        height: 64px;
        border-width: 3px;
    }

    /* Контакты */
    .hp-contact__card {
        gap: 28px;
        padding: 26px 20px;
        border-radius: 20px;
    }

    .hp-contact__phone {
        font-size: 20px;
    }

    .hp-form__row {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 420px) {
    .hp-mission__icon {
        width: 56px;
        height: 56px;
    }
}
