/* Главная публичного портала. Палитра витрины: вино, крем, какао. */
html { scroll-behavior: smooth; }
body.home {
    --hp-ink: #111111;
    --hp-muted: #666666;
    --hp-wine: #913d45;
    --hp-wine-deep: #77313a;
    --hp-cream: #f7f7f8;
    --hp-paper: #ffffff;
    --hp-card: #ffffff;
    --hp-blush: #fcedee;
    --hp-line: #e7e7e9;
    --hp-gold: #913d45;
    margin: 0;
    background: var(--hp-paper) !important;
    color: var(--hp-ink) !important;
    font-family: "TikTokSans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.home .bulma-navbar.bulma-is-fixed-top {
    background: rgba(251, 247, 243, 0.9) !important;
    border-bottom: 1px solid var(--hp-line) !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px);
}

body.home header.tastify-header {
    background: transparent !important;
    box-shadow: none !important;
}

body.home .bulma-navbar-item {
    color: var(--hp-ink) !important;
}

body.home .tastify-text-accent,
body.home [class*=tastify-text-accent] {
    color: var(--hp-wine) !important;
}

body.home .bulma-navbar-item:hover {
    background: transparent !important;
    color: var(--hp-wine) !important;
}

body.home .bulma-navbar .tastify-btn-primary {
    border-radius: 999px !important;
    padding: 0.55rem 1.05rem !important;
    height: auto !important;
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    background: var(--hp-wine) !important;
    border-color: var(--hp-wine) !important;
}

body.home .bulma-navbar-menu.bulma-is-active {
    background: var(--hp-paper) !important;
}

.hp {
    color: var(--hp-ink);
}

.hp-wrap {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
}

.hp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    color: var(--hp-wine);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hp-kicker::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: var(--hp-wine);
}

.hp h1,
.hp h2,
.hp h3 {
    margin: 0;
    color: var(--hp-ink);
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.hp a {
    color: var(--hp-wine);
}

.hp-lead {
    margin: 1.1rem 0 0;
    max-width: 38rem;
    color: var(--hp-muted);
    font-size: 1.12rem;
    line-height: 1.55;
}

.hp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.6rem;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #fff !important;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.hp-btn:hover {
    transform: translateY(-2px);
    filter: brightness(0.97);
}

.hp-btn:focus-visible {
    outline: 2px solid var(--hp-wine);
    outline-offset: 3px;
}

.hp-btn--tg { background: #229ed9; }
.hp-btn--max { background: linear-gradient(135deg, #3a74f2, #7340e8); }
.hp-btn--wine { background: var(--hp-wine); }
.hp-btn--ghost {
    background: transparent;
    color: var(--hp-wine) !important;
    border-color: rgba(145, 61, 69, 0.35);
}
.hp-btn--light {
    background: #fff;
    color: var(--hp-wine) !important;
}

#story,
#features {
    scroll-margin-top: 5.5rem;
}
.hp-btn--sm {
    min-height: 2.3rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
}

.hp-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1.4rem;
    max-width: 34rem;
    color: var(--hp-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.hp-note i {
    margin-top: 0.15rem;
    color: var(--hp-wine);
}

.hp-hero {
    padding: 7.2rem 0 3.2rem;
    background:
        radial-gradient(680px 320px at 88% 0%, rgba(145, 61, 69, 0.16), transparent 70%),
        radial-gradient(420px 240px at 8% 90%, rgba(166, 132, 98, 0.16), transparent 70%),
        var(--hp-paper);
}

.hp-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
}

.hp-hero h1 {
    font-size: clamp(2.5rem, 4.6vw, 4.35rem);
    font-weight: 750;
}

.hp-hero h1 em {
    font-style: normal;
    color: var(--hp-wine);
}

.hp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.hp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.hp-pill--tg { background: #229ed9; }
.hp-pill--max { background: linear-gradient(135deg, #3a74f2, #7340e8); }
.hp-pill--soft {
    background: #fff;
    color: var(--hp-wine);
    border: 1px solid rgba(145, 61, 69, 0.18);
}

.hp-collage {
    position: relative;
    height: 540px;
}

.hp-collage img {
    position: absolute;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(42, 33, 30, 0.16);
}

.hp-collage__main {
    width: 68%;
    height: 78%;
    top: 0;
    right: 0;
}

.hp-collage__side {
    width: 42%;
    height: 42%;
    left: 0;
    bottom: 12%;
    border: 6px solid var(--hp-paper);
}

.hp-collage__accent {
    width: 36%;
    height: 24%;
    right: 6%;
    bottom: 0;
    border: 6px solid var(--hp-paper);
}

.hp-float {
    position: absolute;
    left: 4%;
    top: 8%;
    z-index: 2;
    max-width: 11rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 253, 251, 0.92);
    box-shadow: 0 12px 30px rgba(42, 33, 30, 0.12);
    backdrop-filter: blur(8px);
}

.hp-float strong {
    display: block;
    font-size: 0.95rem;
}

.hp-float span {
    color: var(--hp-muted);
    font-size: 0.78rem;
}

.hp-band {
    border-top: 1px solid var(--hp-line);
    border-bottom: 1px solid var(--hp-line);
    background: #fff;
}

.hp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.hp-stat {
    padding: 1.15rem 1.2rem;
    border-right: 1px solid var(--hp-line);
}

.hp-stat:last-child { border-right: 0; }

.hp-stat b {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.hp-stat span {
    color: var(--hp-muted);
    font-size: 0.88rem;
}

.hp-marquee {
    overflow: hidden;
    padding: 0.85rem 0;
    background: var(--hp-wine);
    color: #fff8f4;
}

.hp-marquee__track {
    display: flex;
    width: max-content;
    gap: 2.2rem;
    animation: hp-marquee 28s linear infinite;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-marquee__track span { white-space: nowrap; }

@keyframes hp-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.hp-section { padding: 5rem 0; }

.hp-section--cream { background: var(--hp-cream); }
.hp-section--white { background: #fff; }

.hp-section__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2.4rem;
}

.hp-index {
    margin: 0 0 0.6rem;
    color: var(--hp-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.hp-section h2 {
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    font-weight: 750;
}

.hp-section__head p {
    margin: 0;
    color: var(--hp-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.hp-showcases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.hp-shop {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--hp-line);
    border-radius: 24px;
    background: var(--hp-card);
    box-shadow: 0 10px 30px rgba(42, 33, 30, 0.04);
}

.hp-shop__photo {
    height: 210px;
    background: var(--hp-blush);
}

.hp-shop__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-shop__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.1rem 1.15rem 1.2rem;
}

.hp-shop h3 {
    font-size: 1.2rem;
    font-weight: 750;
}

.hp-shop p {
    flex: 1;
    margin: 0;
    color: var(--hp-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.hp-shop__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hp-crm {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.hp-feature {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--hp-line);
    border-radius: 18px;
    background: var(--hp-card);
}

.hp-feature__media {
    display: grid;
    place-items: center;
    height: 148px;
    padding: 0.55rem;
    background: #f7f2ee;
}

.hp-feature__media img {
    display: block;
    max-width: 100%;
    max-height: 132px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.hp-feature__body {
    padding: 0.7rem 0.75rem 0.85rem;
}

.hp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.55rem;
}

.hp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.hp-chip--tg { background: #e7f5fb; color: #1787bd; }
.hp-chip--max { background: #efe8ff; color: #6840c8; }
.hp-chip--web { background: var(--hp-cream); color: #6a5344; }

.hp-feature h3 {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-weight: 750;
}

.hp-feature p {
    margin: 0;
    color: var(--hp-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.hp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hp-split--flip .hp-device { order: -1; }

.hp-list {
    display: grid;
    gap: 0.85rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

.hp-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    color: var(--hp-muted);
    line-height: 1.45;
}

.hp-num {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--hp-wine);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.hp-device {
    position: relative;
    width: min(320px, 78%);
    margin: 0 auto;
    padding: 0.7rem;
    border-radius: 36px;
    background: #2a211e;
    box-shadow: 0 30px 70px rgba(42, 33, 30, 0.22);
}

.hp-device__screen {
    position: relative;
    height: 560px;
    overflow: hidden;
    border-radius: 28px;
    background: var(--hp-blush);
}

.hp-device__screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: hp-fade 12s infinite;
}

.hp-device__screen img:nth-child(2) { animation-delay: 4s; }
.hp-device__screen img:nth-child(3) { animation-delay: 8s; }

@keyframes hp-fade {
    0%, 26% { opacity: 1; }
    34%, 100% { opacity: 0; }
}

.hp-steps {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.3rem;
}

.hp-step {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 0.8rem;
    align-items: center;
    padding: 0.75rem 0.8rem;
    border-radius: 16px;
    background: #fff;
}

.hp-step b { display: block; }
.hp-step span { color: var(--hp-muted); font-size: 0.9rem; }

.hp-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 220px 220px;
    gap: 0.8rem;
}

.hp-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.hp-mosaic img:first-child {
    grid-row: 1 / span 2;
}

.hp-cta {
    padding: 0 0 4rem;
}

.hp-cta__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.4rem 2.5rem;
    border-radius: 32px;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
        var(--hp-wine);
    color: #fff8f4;
}

.hp-cta h2 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.hp-cta p {
    margin: 0.55rem 0 0;
    color: rgba(255, 248, 244, 0.82);
}

.hp-cta .hp-btn--ghost {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45);
}

body.home .tastify-footer {
    margin-top: 0;
    border-radius: 28px 28px 0 0 !important;
    background: #2a211e !important;
}

@media (max-width: 980px) {
    .hp-hero__grid,
    .hp-section__head,
    .hp-split {
        grid-template-columns: 1fr;
    }

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

    .hp-showcases,
    .hp-stats {
        grid-template-columns: 1fr 1fr;
    }
    .hp-stat { border-right: 0; border-bottom: 1px solid var(--hp-line); }
    .hp-split--flip .hp-device { order: 0; }
    .hp-cta__panel { flex-direction: column; align-items: flex-start; }
    .hp-collage { height: 420px; }
    .hp-collage__main { width: 100%; height: 100%; left: 0; right: auto; }
    .hp-collage__side,
    .hp-collage__accent { display: none; }
    .hp-float { left: 1rem; top: 1rem; }
}

@media (max-width: 680px) {
    .hp-hero { padding-top: 6.4rem; }
    .hp-section { padding: 3.4rem 0; }
    .hp-showcases,
    .hp-stats { grid-template-columns: 1fr; }
    .hp-collage { height: 320px; }
    .hp-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 140px; }
    .hp-mosaic img:first-child { grid-row: auto; grid-column: 1 / span 2; height: 180px; }
    .hp-device__screen { height: 460px; }
    .hp-cta__panel { padding: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-marquee__track,
    .hp-device__screen img { animation: none; }
    .hp-device__screen img:first-child { opacity: 1; }
}

/* Внутренние страницы портала: Начать, тарифы, FAQ, документы */
body.home main.bulma-main {
    padding: 6.75rem 0 3.5rem !important;
    background: var(--hp-paper);
    color: var(--hp-ink);
}

body.home main.bulma-main .bulma-hero,
body.home main.bulma-main .tastify-section,
body.home main.bulma-main .tastify-section-muted {
    background: transparent !important;
    box-shadow: none !important;
}

body.home main.bulma-main .bulma-hero {
    margin-top: 0 !important;
    padding: 0.5rem 1.25rem 0.25rem !important;
}

body.home main.bulma-main .bulma-title {
    color: var(--hp-ink) !important;
    letter-spacing: -0.03em;
    font-weight: 750;
}

body.home main.bulma-main .bulma-subtitle,
body.home main.bulma-main .tastify-text-secondary,
body.home main.bulma-main .bulma-content {
    color: var(--hp-muted) !important;
}

body.home main.bulma-main .tastify-card,
body.home main.bulma-main .bulma-card,
body.home main.bulma-main .getstarted-msg-card {
    background: var(--hp-card) !important;
    border: 1px solid var(--hp-line) !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 30px rgba(42, 33, 30, 0.05) !important;
}

body.home main.bulma-main .bulma-card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--hp-line) !important;
    box-shadow: none !important;
}

body.home main.bulma-main .tastify-btn-primary {
    background: var(--hp-wine) !important;
    border-color: var(--hp-wine) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

body.home main.bulma-main .tastify-btn-outline {
    border: 1px solid rgba(145, 61, 69, 0.35) !important;
    color: var(--hp-wine) !important;
    background: #fff !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
}

body.home main.bulma-main .tastify-btn-outline:hover {
    background: var(--hp-wine) !important;
    border-color: var(--hp-wine) !important;
    color: #fff !important;
}

body.home main.bulma-main .bulma-pricing-card-featured {
    border-color: var(--hp-wine) !important;
}

body.home main.bulma-main .bulma-accordion-item {
    border-bottom-color: var(--hp-line) !important;
}

body.home main.bulma-main .bulma-accordion-header {
    cursor: pointer;
}

body.home main.bulma-main a.tastify-text-accent,
body.home main.bulma-main .bulma-content a {
    color: var(--hp-wine) !important;
}
