.home-page { --home-gap: 24px; padding-bottom: var(--home-gap); }
.home-page.home-space-compact { --home-gap: 14px; }
.home-page.home-space-wide { --home-gap: 40px; }

.home-sec { padding-top: var(--home-gap); }
.home-sec.is-full { padding-top: var(--home-gap); }

.home-box-boxed .home-sec-inner {
    padding: 18px 20px;
    border: 1px solid var(--b2c-line, #e6e8ec);
    border-radius: 6px;
    background: var(--b2c-surface, #fff);
}

.home-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.home-sec-titles { min-width: 0; }
.home-sec-title { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: var(--b2c-ink, #171a1f); }
.home-sec-title a { color: inherit; text-decoration: none; }
.home-sec-sub { margin: 4px 0 0; font-size: .86rem; color: var(--b2c-steel, #6b7280); }
.home-sec-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--b2c-primary, #1d4ed8);
    text-decoration: none;
    white-space: nowrap;
}
.home-sec-link:hover { text-decoration: underline; color: var(--b2c-primary, #1d4ed8); }
.home-head-center .home-sec-head { flex-direction: column; align-items: center; text-align: center; gap: 6px; }

.home-hero-area { position: relative; }
.home-hero-area.is-contained {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-top: var(--home-gap);
}
.home-hero-area.is-contained.has-side { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }

.hero-bg {
    position: relative;
    overflow: hidden;
    min-height: var(--hero-height-vh, 62vh);
    display: flex;
    align-items: center;
    color: var(--hero-text-color, #ffffff);
    background: var(--b2c-surface-muted, #eef0f2);
}
.home-hero-area.is-contained .hero-bg {
    min-height: 0;
    aspect-ratio: 2 / 1;
    border: 1px solid var(--b2c-line, #e6e8ec);
    border-radius: 6px;
}

.home-hero-side { display: grid; grid-template-rows: repeat(var(--side-rows, 1), minmax(0, 1fr)); gap: 12px; }
.home-hero-area.side-count-2 .home-hero-side { --side-rows: 2; }
.home-hero-side-item {
    position: relative;
    display: block;
    min-height: 110px;
    overflow: hidden;
    border: 1px solid var(--b2c-line, #e6e8ec);
    border-radius: 6px;
    background: var(--b2c-surface-muted, #eef0f2);
}
.home-hero-side-item img,
.home-hero-side-item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-slider { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 7s ease;
    transform: scale(1);
    pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-mode-animated .hero-slide.active { transform: scale(1.04); }
.hero-mode-static .hero-slide { transition: none; }
.hero-slide-video video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide-overlay { position: absolute; inset: 0; pointer-events: none; }
.hero-slide-link-cover { position: absolute; inset: 0; z-index: 2; }

.hero-content { position: relative; z-index: 3; padding-top: 40px; padding-bottom: 40px; pointer-events: none; }
.hero-content a,
.hero-content button { pointer-events: auto; }
.hero-content .badge p,
.hero-content .btn p,
.hero-btn-row a p { margin: 0; display: inline; }
.hero-bg h1,
.hero-bg p { color: var(--hero-text-color, #ffffff); text-shadow: 0 2px 12px rgba(0, 0, 0, .35); overflow-wrap: anywhere; }
.hero-bg .hero-title { margin: 0 0 12px; font-size: clamp(1.8rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.12; }
.home-hero-area.is-contained .hero-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.hero-bg .hero-subtitle { margin: 0 0 20px; font-size: clamp(.98rem, 1.8vw, 1.15rem); opacity: .9; }
.hero-bg .hero-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: var(--hero-badge-color, #2563eb) !important;
    color: #16130a;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.hero-btn-row { flex-wrap: wrap; row-gap: 10px; }
.hero-bg .hero-main-btn {
    padding: 11px 26px;
    border: 0;
    border-radius: 4px;
    background-color: var(--hero-badge-color, #2563eb);
    color: #16130a;
    font-weight: 700;
}
.hero-bg .hero-main-btn:hover { filter: brightness(.94); color: #16130a; }
.hero-bg .hero-second-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
}
.hero-bg .hero-second-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.home-trust--strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    overflow: hidden;
    border: 1px solid var(--b2c-line, #e6e8ec);
    border-radius: 6px;
    background: var(--b2c-surface, #fff);
}
.home-trust--strip .home-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 -1px -1px 0;
    padding: 14px 18px;
    border-right: 1px solid var(--b2c-line, #e6e8ec);
    border-bottom: 1px solid var(--b2c-line, #e6e8ec);
}
.home-trust--strip .home-trust-item > i { flex: 0 0 auto; width: 24px; font-size: 1.2rem; text-align: center; color: var(--b2c-primary, #1d4ed8); }
.home-trust-title { font-size: .9rem; font-weight: 700; color: var(--b2c-ink, #171a1f); }
.home-trust-desc { font-size: .78rem; color: var(--b2c-steel, #6b7280); }
.home-trust--cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding: 8px 0; text-align: center; }
.home-trust--cards .home-trust-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.home-trust--cards .home-trust-item > i { font-size: 1.9rem; color: var(--b2c-primary, #1d4ed8); }
.home-trust--cards .home-trust-title { font-size: 1rem; }

.home-tabs-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--b2c-line, #e6e8ec);
}
.home-tabs-nav { display: flex; gap: 26px; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.home-tabs-nav::-webkit-scrollbar { display: none; }
.home-tab {
    flex: 0 0 auto;
    padding: 10px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--b2c-steel, #6b7280);
    font-size: 1.02rem;
    font-weight: 600;
    white-space: nowrap;
}
.home-tab:hover { color: var(--b2c-ink, #171a1f); }
.home-tab.is-active { color: var(--b2c-ink, #171a1f); border-bottom-color: var(--b2c-primary, #1d4ed8); font-weight: 700; }
.home-tabs-bar .home-sec-link { padding-bottom: 12px; }
.home-tab-pane[hidden] { display: none; }

.home-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; }
.home-shortcut { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--b2c-ink, #171a1f); text-align: center; text-decoration: none; }
.home-shortcut-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--b2c-line, #e6e8ec);
    border-radius: 6px;
    background: var(--b2c-surface, #fff);
}
.home-shortcut-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.home-shortcut-letter { font-size: 1.8rem; font-weight: 700; color: var(--b2c-steel, #9ca3af); }
.home-shortcut:hover .home-shortcut-img { border-color: var(--b2c-primary, #1d4ed8); }
.home-shortcut-name { font-size: .84rem; font-weight: 600; line-height: 1.3; }
.home-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.home-chip {
    padding: 8px 14px;
    border: 1px solid var(--b2c-line, #e6e8ec);
    border-radius: 4px;
    background: var(--b2c-surface, #fff);
    color: var(--b2c-ink, #171a1f);
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
}
.home-chip:hover { border-color: var(--b2c-primary, #1d4ed8); color: var(--b2c-primary, #1d4ed8); }

.home-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.home-review {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--b2c-line, #e6e8ec);
    border-radius: 6px;
    background: var(--b2c-surface, #fff);
    color: var(--b2c-ink, #171a1f);
    text-decoration: none;
}
.home-review:hover { border-color: var(--b2c-ink-soft, #c5cad1); color: var(--b2c-ink, #171a1f); }
.home-review-stars { color: var(--b2c-warning, #f59e0b); font-size: .8rem; }
.home-review-stars .is-off { color: var(--b2c-line, #e6e8ec); }
.home-review-text { font-size: .9rem; line-height: 1.55; }
.home-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; }
.home-review-verified { color: var(--b2c-success, #15803d); font-size: .76rem; font-weight: 600; }
.home-review-product { font-size: .78rem; color: var(--b2c-steel, #6b7280); }

.home-newsletter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    padding: 20px 24px;
    border: 1px solid var(--b2c-line, #e6e8ec);
    border-radius: 6px;
    background: var(--b2c-surface, #fff);
}
.home-newsletter-text { flex: 1 1 260px; min-width: 0; }
.home-newsletter-form { flex: 2 1 520px; min-width: 0; }
.home-newsletter .home-sec-title { font-size: 1.12rem; }
.home-newsletter--block { flex-direction: column; align-items: stretch; padding: 32px 24px; text-align: center; }
.home-newsletter--block .home-newsletter-text,
.home-newsletter--block .home-newsletter-form { flex: none; width: 100%; max-width: 860px; margin: 0 auto; }
.home-newsletter--block .home-sec-title { font-size: 1.3rem; }
.home-newsletter .form-check { text-align: left; }

.home-blog--side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; }
.home-blog--side.is-reverse .home-blog-media { order: 2; }
.home-blog--center,
.home-blog--stack { max-width: 780px; margin: 0 auto; text-align: center; }
.home-blog--stack .home-blog-media { margin: 0 0 18px; }
.home-blog--stack .home-blog-media:last-of-type { margin: 18px 0; }
.home-blog .home-sec-title { margin-bottom: 12px; }
.home-blog-text { margin-bottom: 18px; color: var(--b2c-steel, #4b5160); line-height: 1.65; }
.blog-btn {
    padding: 10px 22px;
    border: 0;
    border-radius: 4px;
    background: var(--b2c-primary, #1d4ed8);
    color: #fff;
    font-weight: 600;
}
.blog-btn:hover,
.blog-btn:focus { background: var(--b2c-primary-dark, #1739ab); color: #fff; }
.blog-slider { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; }

.home-video-player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #000; }
.home-video-player iframe,
.home-video-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.home-banner-slider { border-radius: 6px; background-color: var(--b2c-surface-muted, #f0f0f0); }
.home-sec--banner .home-banner-slider { margin-bottom: 0 !important; }
.home-sec.is-full .home-banner-slider { border-radius: 0; }

@media (max-width: 991.98px) {
    .hero-bg { min-height: 58vh; }
    .home-blog--side { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .home-blog--side.is-reverse .home-blog-media { order: 0; }
}

@media (max-width: 767.98px) {
    .home-page { --home-gap: 18px; }
    .home-page.home-space-compact { --home-gap: 12px; }
    .home-page.home-space-wide { --home-gap: 28px; }
    .hero-bg { min-height: 52vh; }
    .home-hero-area.is-contained.has-side { grid-template-columns: minmax(0, 1fr); }
    .home-hero-area.is-contained .hero-bg { aspect-ratio: 6 / 5; }
    .home-hero-side { grid-template-rows: none; grid-template-columns: repeat(var(--side-rows, 1), minmax(0, 1fr)); }
    .home-hero-side-item { min-height: 0; aspect-ratio: 20 / 11; }
    .home-box-boxed .home-sec-inner { padding: 14px; }
    .home-sec-title { font-size: 1.12rem; }
    .home-sec-head { margin-bottom: 10px; }
    .home-trust--strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-trust--strip .home-trust-item { padding: 12px; gap: 10px; }
    .home-trust--strip .home-trust-desc { display: none; }
    .home-tabs-nav { gap: 18px; }
    .home-tab { font-size: .94rem; }
    .home-tabs-bar .home-sec-link { display: none; }
    .home-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    .home-shortcut-name { font-size: .76rem; }
    .home-newsletter { padding: 16px; }
}

@media (max-width: 480px) {
    .hero-bg { min-height: 46vh; }
    .hero-bg .hero-btn-row { flex-direction: column; width: 100%; }
    .hero-bg .hero-btn-row .btn { width: 100%; justify-content: center; }
}
[data-preview-focus] { outline: 2px dashed var(--b2c-primary, #1d4ed8); outline-offset: 4px; }

.home-box-band { margin-top: var(--home-gap); padding-bottom: var(--home-gap); border-top: 1px solid var(--b2c-line, #e6e8ec); border-bottom: 1px solid var(--b2c-line, #e6e8ec); background: var(--b2c-surface, #fff); }
.home-box-band + .home-box-band { margin-top: 0; border-top: 0; }

.home-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 14px 20px;
    border-radius: 6px;
    background: var(--b2c-primary, #1d4ed8);
    color: #fff;
    text-decoration: none;
}
.home-strip:hover { color: #fff; }
.home-strip-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.home-strip-text strong { font-size: 1rem; font-weight: 700; }
.home-strip-text span { font-size: .88rem; opacity: .9; }
.home-strip-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; white-space: nowrap; }
a.home-strip:hover .home-strip-go { text-decoration: underline; }
.home-strip--dark { background: var(--b2c-ink, #171a1f); }
.home-strip--light { border: 1px solid var(--b2c-line, #e6e8ec); background: var(--b2c-surface, #fff); color: var(--b2c-ink, #171a1f); }
.home-strip--light:hover { color: var(--b2c-ink, #171a1f); }
.home-strip--light .home-strip-go { color: var(--b2c-primary, #1d4ed8); }

.home-grid .market-grid { display: grid; gap: 16px; }

.home-shortcuts.is-laid { grid-template-columns: repeat(var(--sc-cols), var(--sc-size)); justify-content: start; }
.home-shortcuts.is-scroll { overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.home-shortcuts.is-scroll .home-shortcut { scroll-snap-align: start; }

@media (max-width: 767.98px) {
    .home-strip { padding: 12px 14px; }
    .home-strip-text strong { font-size: .92rem; }
    .home-strip-text span { font-size: .8rem; }
    .home-grid .market-grid { gap: 10px; }
}
.home-shortcuts.is-laid.is-align-center:not(.is-scroll) { justify-content: center; }
.home-shortcuts.is-laid.is-align-right:not(.is-scroll) { justify-content: end; }
.home-chips.is-align-center { justify-content: center; }
.home-chips.is-align-right { justify-content: flex-end; }
