.cqg-home-hero,
.cqg-home-hero *,
.cqg-home-hero-rail,
.cqg-home-hero-rail * {
    box-sizing: border-box;
}

/*
 * First-impression feature rail.
 * It is part of CQG Home Hero and sits directly between the site header and Hero image.
 */
.cqg-home-hero-rail {
    position: relative;
    left: 50%;
    width: calc(100dvw - var(--cqg-outer-gap, 0px) - var(--cqg-outer-gap, 0px));
    max-width: var(--cqg-content-width, 1850px);
    margin: 0;
    transform: translateX(-50%);
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .08), transparent 34%),
        linear-gradient(90deg, #12381f 0%, #1e4a29 48%, #163e23 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12);
    border-radius: var(--cqg-radius, 14px) var(--cqg-radius, 14px) 0 0;
    font-family: inherit;
}

.cqg-home-hero-rail__inner {
    width: min(1660px, calc(100% - 18px));
    margin: 0 auto;
    padding: 10px 0;
}

.cqg-home-hero-rail__track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.cqg-home-hero-rail__card {
    --cqg-accent: #c7e5c5;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 76px;
    gap: 12px;
    padding: 9px 14px 9px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .065));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 8px 20px rgba(7, 23, 11, .10);
    color: #fff;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(.985);
    animation: cqgRailCardIn .48s cubic-bezier(.2, .8, .2, 1) forwards;
    animation-delay: calc(.08s + (var(--cqg-rail-index) * .085s));
    transition: transform .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.cqg-home-hero-rail__card::after {
    content: "";
    position: absolute;
    inset: auto -28px -42px auto;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--cqg-accent);
    opacity: .08;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
}

.cqg-home-hero-rail__card--combinations { --cqg-accent: #bde9c0; }
.cqg-home-hero-rail__card--saved { --cqg-accent: #f6a8bb; }
.cqg-home-hero-rail__card--groups { --cqg-accent: #f2cb79; }
.cqg-home-hero-rail__card--garden { --cqg-accent: #b9e7dd; }
.cqg-home-hero-rail__card--listen { --cqg-accent: #c7d6ff; }

.cqg-home-hero-rail__card:hover,
.cqg-home-hero-rail__card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .34);
    background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .095));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .11),
        0 12px 28px rgba(5, 20, 9, .18);
}

.cqg-home-hero-rail__card:hover::after,
.cqg-home-hero-rail__card:focus-within::after {
    opacity: .13;
    transform: scale(1.16);
}

.cqg-home-hero-rail__copy {
    min-width: 0;
    display: block;
}

.cqg-home-hero-rail__copy strong,
.cqg-home-hero-rail__copy small {
    display: block;
}

.cqg-home-hero-rail__copy strong {
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.005em;
}

.cqg-home-hero-rail__copy small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .78);
    font-size: 12.5px;
    font-weight: 450;
    line-height: 1.28;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* Keep the five desktop cards visually aligned even when copy length differs. */
@media (min-width: 1101px) {
    .cqg-home-hero-rail__copy strong {
        min-height: 2.44em;
    }

    .cqg-home-hero-rail__copy small {
        min-height: 2.56em;
    }
}

.cqg-home-hero-rail__visual {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 15px;
    background: rgba(8, 31, 14, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #fff;
    overflow: hidden;
}

/* 1) Ready combinations: three tiny plants gather into one composition. */
.cqg-combo {
    position: absolute;
    bottom: 9px;
    width: 12px;
    height: 25px;
    transform-origin: 50% 100%;
}

.cqg-combo::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 2px;
    height: 15px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .82);
    transform: translateX(-50%);
}

.cqg-combo i,
.cqg-combo b {
    position: absolute;
    width: 9px;
    height: 6px;
    border-radius: 90% 10% 90% 10%;
    background: var(--cqg-accent);
}

.cqg-combo i {
    left: 1px;
    top: 3px;
    transform: rotate(-35deg);
}

.cqg-combo b {
    right: 0;
    top: 9px;
    transform: scaleX(-1) rotate(-35deg);
}

.cqg-combo--one { left: 8px; transform: translateX(-9px) rotate(-8deg) scale(.86); }
.cqg-combo--two { left: 19px; transform: translateY(3px) scale(1.04); }
.cqg-combo--three { right: 8px; transform: translateX(9px) rotate(8deg) scale(.9); }

.cqg-home-hero-rail__card--combinations .cqg-combo--one,
.cqg-home-hero-rail__card--combinations .cqg-combo--two,
.cqg-home-hero-rail__card--combinations .cqg-combo--three {
    animation: cqgComboGather .9s cubic-bezier(.2, .85, .25, 1) .48s both;
}

.cqg-home-hero-rail__card--combinations .cqg-combo--two { animation-delay: .56s; }
.cqg-home-hero-rail__card--combinations .cqg-combo--three { animation-delay: .64s; }

.cqg-home-hero-rail__card--combinations:hover .cqg-combo--one,
.cqg-home-hero-rail__card--combinations:focus-within .cqg-combo--one { animation: cqgComboWiggleLeft .7s ease both; }
.cqg-home-hero-rail__card--combinations:hover .cqg-combo--two,
.cqg-home-hero-rail__card--combinations:focus-within .cqg-combo--two { animation: cqgComboWiggleMid .7s ease .05s both; }
.cqg-home-hero-rail__card--combinations:hover .cqg-combo--three,
.cqg-home-hero-rail__card--combinations:focus-within .cqg-combo--three { animation: cqgComboWiggleRight .7s ease .1s both; }

/* 2) Saved plants: heart draws/fills and makes one soft beat. */
.cqg-home-hero-rail__visual--saved svg {
    width: 33px;
    height: 33px;
    overflow: visible;
}

.cqg-heart {
    fill: rgba(246, 168, 187, .08);
    stroke: #f7d1db;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: 24px 24px;
    animation: cqgHeartIntro 1.05s ease .62s both;
}

.cqg-heart-shine {
    fill: none;
    stroke: rgba(255, 255, 255, .76);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0;
    animation: cqgHeartShine .7s ease 1.25s both;
}

.cqg-home-hero-rail__card--saved:hover .cqg-heart,
.cqg-home-hero-rail__card--saved:focus-within .cqg-heart {
    animation: cqgHeartBeat .72s ease both;
}

.cqg-home-hero-rail__card--saved:hover .cqg-heart-shine,
.cqg-home-hero-rail__card--saved:focus-within .cqg-heart-shine {
    animation: cqgHeartShine .55s ease .18s both;
}

/* 3) Plant group: three mini cards fan out and come back into a tidy group. */
.cqg-group-card {
    position: absolute;
    width: 21px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
    box-shadow: 0 4px 10px rgba(0, 0, 0, .11);
    transform-origin: 50% 90%;
}

.cqg-group-card::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    top: 5px;
    height: 8px;
    border-radius: 5px 5px 3px 3px;
    background: var(--cqg-accent);
    opacity: .9;
}

.cqg-group-card--back { transform: translateX(-8px) rotate(-12deg) scale(.9); opacity: .72; }
.cqg-group-card--mid { transform: translateX(8px) rotate(12deg) scale(.94); opacity: .84; }
.cqg-group-card--front { transform: translateY(1px); }

.cqg-group-card--front i {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .52);
    box-shadow: 0 4px 0 rgba(255, 255, 255, .28);
}

.cqg-home-hero-rail__card--groups .cqg-group-card {
    animation: cqgGroupIntro .9s cubic-bezier(.2, .8, .2, 1) .7s both;
}

.cqg-home-hero-rail__card--groups:hover .cqg-group-card,
.cqg-home-hero-rail__card--groups:focus-within .cqg-group-card {
    animation: cqgGroupFan .72s cubic-bezier(.2, .8, .2, 1) both;
}

/* 4) See in garden: a little plant grows from the pot. */
.cqg-garden-pot {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 24px;
    height: 12px;
    border-radius: 3px 3px 7px 7px;
    background: linear-gradient(180deg, #e3b071, #c9884f);
    transform: translateX(-50%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18);
}

.cqg-garden-pot::before {
    content: "";
    position: absolute;
    left: -2px;
    top: -3px;
    width: 28px;
    height: 5px;
    border-radius: 4px;
    background: #e8bb80;
}

.cqg-garden-stem {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 2px;
    height: 21px;
    border-radius: 2px;
    background: #d6f0d3;
    transform: translateX(-50%) scaleY(.22);
    transform-origin: 50% 100%;
    animation: cqgGardenGrow .75s cubic-bezier(.2, .8, .2, 1) .84s forwards;
}

.cqg-garden-leaf {
    position: absolute;
    bottom: 27px;
    width: 12px;
    height: 7px;
    border-radius: 90% 10% 90% 10%;
    background: #bce7bd;
    opacity: 0;
    transform: scale(.3);
    animation: cqgGardenLeaf .55s ease 1.28s forwards;
}

.cqg-garden-leaf--left {
    left: 14px;
    transform-origin: 100% 100%;
    rotate: -28deg;
}

.cqg-garden-leaf--right {
    right: 14px;
    transform-origin: 0 100%;
    rotate: 28deg;
    animation-delay: 1.38s;
}

.cqg-garden-sun {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5cf79;
    box-shadow: 0 0 0 0 rgba(245, 207, 121, .35);
    animation: cqgGardenSun 1.25s ease 1.1s both;
}

.cqg-home-hero-rail__card--garden:hover .cqg-garden-stem,
.cqg-home-hero-rail__card--garden:focus-within .cqg-garden-stem { animation: cqgGardenGrowReplay .7s ease both; }
.cqg-home-hero-rail__card--garden:hover .cqg-garden-leaf,
.cqg-home-hero-rail__card--garden:focus-within .cqg-garden-leaf { animation: cqgGardenLeafReplay .65s ease .16s both; }
.cqg-home-hero-rail__card--garden:hover .cqg-garden-leaf--right,
.cqg-home-hero-rail__card--garden:focus-within .cqg-garden-leaf--right { animation-delay: .24s; }
.cqg-home-hero-rail__card--garden:hover .cqg-garden-sun,
.cqg-home-hero-rail__card--garden:focus-within .cqg-garden-sun { animation: cqgGardenSun .8s ease .05s both; }

/* 5) Listen: speaker + clearly visible, gentle sound-wave animation. */
.cqg-listen-speaker {
    position: absolute;
    left: 11px;
    top: 17px;
    width: 12px;
    height: 16px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .94);
    transform-origin: 50% 50%;
    animation: cqgListenSpeakerPulse 3.2s ease-in-out .35s infinite;
}

.cqg-listen-speaker::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 3px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 8px solid rgba(255, 255, 255, .94);
}

.cqg-listen-wave {
    position: absolute;
    top: 50%;
    left: 24px;
    border: 2px solid rgba(210, 221, 255, .98);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(-50%) rotate(45deg) scale(.35);
    transform-origin: 50% 50%;
    filter: drop-shadow(0 0 2px rgba(199, 214, 255, .22));
}

.cqg-listen-wave--one {
    width: 10px;
    height: 10px;
    animation: cqgListenWavePulse 3.2s ease-out .45s infinite;
}

.cqg-listen-wave--two {
    left: 21px;
    width: 17px;
    height: 17px;
    animation: cqgListenWavePulse 3.2s ease-out .62s infinite;
}

.cqg-listen-wave--three {
    left: 18px;
    width: 24px;
    height: 24px;
    animation: cqgListenWavePulse 3.2s ease-out .79s infinite;
}

.cqg-home-hero-rail__card--listen:hover .cqg-listen-speaker,
.cqg-home-hero-rail__card--listen:focus-within .cqg-listen-speaker {
    animation: cqgListenSpeakerHover .75s ease-in-out infinite;
}

.cqg-home-hero-rail__card--listen:hover .cqg-listen-wave,
.cqg-home-hero-rail__card--listen:focus-within .cqg-listen-wave {
    animation: cqgListenWaveHover .95s ease-out infinite;
}

.cqg-home-hero-rail__card--listen:hover .cqg-listen-wave--two,
.cqg-home-hero-rail__card--listen:focus-within .cqg-listen-wave--two { animation-delay: .14s; }
.cqg-home-hero-rail__card--listen:hover .cqg-listen-wave--three,
.cqg-home-hero-rail__card--listen:focus-within .cqg-listen-wave--three { animation-delay: .28s; }

@keyframes cqgListenSpeakerPulse {
    0%, 12%, 36%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(199, 214, 255, 0); }
    18% { transform: scale(1.09); box-shadow: 0 0 0 5px rgba(199, 214, 255, .10); }
    25% { transform: scale(.97); }
}

@keyframes cqgListenWavePulse {
    0%, 10% { opacity: 0; transform: translateY(-50%) rotate(45deg) scale(.28); }
    18% { opacity: .95; }
    32% { opacity: 0; transform: translateY(-50%) rotate(45deg) scale(1.05); }
    33%, 100% { opacity: 0; transform: translateY(-50%) rotate(45deg) scale(1.05); }
}

@keyframes cqgListenSpeakerHover {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.11); }
    65% { transform: scale(.97); }
}

@keyframes cqgListenWaveHover {
    0% { opacity: 0; transform: translateY(-50%) rotate(45deg) scale(.3); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-50%) rotate(45deg) scale(1.08); }
}

@keyframes cqgRailCardIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cqgComboGather {
    0% { opacity: 0; filter: blur(1px); }
    65% { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: translateX(0) translateY(0) rotate(0) scale(1); }
}

@keyframes cqgComboWiggleLeft {
    0%,100% { transform: translateX(0) rotate(0) scale(1); }
    45% { transform: translateX(2px) rotate(7deg) scale(1.05); }
}
@keyframes cqgComboWiggleMid {
    0%,100% { transform: translateY(0) scale(1.04); }
    45% { transform: translateY(-3px) scale(1.08); }
}
@keyframes cqgComboWiggleRight {
    0%,100% { transform: translateX(0) rotate(0) scale(1); }
    45% { transform: translateX(-2px) rotate(-7deg) scale(1.05); }
}

@keyframes cqgHeartIntro {
    0% { transform: scale(.7); fill: rgba(246, 168, 187, .02); opacity: 0; }
    58% { transform: scale(1.08); fill: rgba(246, 168, 187, .42); opacity: 1; }
    78% { transform: scale(.96); }
    100% { transform: scale(1); fill: rgba(246, 168, 187, .34); opacity: 1; }
}

@keyframes cqgHeartBeat {
    0%,100% { transform: scale(1); fill: rgba(246, 168, 187, .34); }
    35% { transform: scale(1.13); fill: rgba(246, 168, 187, .72); }
    62% { transform: scale(.96); }
}

@keyframes cqgHeartShine {
    0% { opacity: 0; transform: translate(-2px, 2px); }
    45% { opacity: 1; }
    100% { opacity: 0; transform: translate(2px, -2px); }
}

@keyframes cqgGroupIntro {
    0% { opacity: 0; transform: translateY(6px) scale(.82); }
    100% { opacity: 1; }
}

@keyframes cqgGroupFan {
    0%,100% { filter: brightness(1); }
    45% { filter: brightness(1.16); }
}

.cqg-home-hero-rail__card--groups:hover .cqg-group-card--back,
.cqg-home-hero-rail__card--groups:focus-within .cqg-group-card--back { transform: translateX(-11px) rotate(-18deg) scale(.9); }
.cqg-home-hero-rail__card--groups:hover .cqg-group-card--mid,
.cqg-home-hero-rail__card--groups:focus-within .cqg-group-card--mid { transform: translateX(11px) rotate(18deg) scale(.94); }
.cqg-home-hero-rail__card--groups:hover .cqg-group-card--front,
.cqg-home-hero-rail__card--groups:focus-within .cqg-group-card--front { transform: translateY(-2px); }

@keyframes cqgGardenGrow {
    from { transform: translateX(-50%) scaleY(.22); }
    to { transform: translateX(-50%) scaleY(1); }
}
@keyframes cqgGardenGrowReplay {
    0% { transform: translateX(-50%) scaleY(1); }
    35% { transform: translateX(-50%) scaleY(.32); }
    100% { transform: translateX(-50%) scaleY(1); }
}
@keyframes cqgGardenLeaf {
    from { opacity: 0; scale: .3; }
    to { opacity: 1; scale: 1; }
}
@keyframes cqgGardenLeafReplay {
    0% { opacity: 1; scale: 1; }
    35% { opacity: 0; scale: .35; }
    100% { opacity: 1; scale: 1; }
}
@keyframes cqgGardenSun {
    0% { box-shadow: 0 0 0 0 rgba(245, 207, 121, .38); transform: scale(.8); opacity: .65; }
    60% { box-shadow: 0 0 0 8px rgba(245, 207, 121, 0); transform: scale(1.08); opacity: 1; }
    100% { box-shadow: 0 0 0 0 rgba(245, 207, 121, 0); transform: scale(1); opacity: 1; }
}

/* Hero image and sales message. */
.cqg-home-hero {
    position: relative;
    left: 50%;
    width: calc(100dvw - var(--cqg-outer-gap, 0px) - var(--cqg-outer-gap, 0px));
    max-width: var(--cqg-content-width, 1850px);
    min-height: clamp(520px, 39vw, 600px);
    margin: 0 0 clamp(28px, 3vw, 52px);
    transform: translateX(-50%);
    overflow: hidden;
    isolation: isolate;
    background: #243226;
    border-radius: 0 0 var(--cqg-radius, 14px) var(--cqg-radius, 14px);
    font-family: inherit;
}

.cqg-home-hero__media,
.cqg-home-hero__shade,
.cqg-home-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cqg-home-hero__media { z-index: 0; }

.cqg-home-hero__image {
    display: block;
    object-fit: cover;
    object-position: 50% 51%;
    transform: scale(1.002);
}

.cqg-home-hero__shade {
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(12, 27, 16, .68) 0%,
            rgba(12, 27, 16, .53) 31%,
            rgba(12, 27, 16, .24) 56%,
            rgba(12, 27, 16, .04) 78%,
            rgba(12, 27, 16, .08) 100%),
        linear-gradient(0deg,
            rgba(10, 20, 12, .30) 0%,
            rgba(10, 20, 12, 0) 44%);
    pointer-events: none;
}

.cqg-home-hero__inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 64px));
    min-height: inherit;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.cqg-home-hero__content {
    width: min(790px, 68%);
    padding: 42px 0 46px;
    color: #fff;
}

.cqg-home-hero__eyebrow {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .93);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: .075em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}

.cqg-home-hero__eyebrow span { opacity: .72; }

.cqg-home-hero__title {
    max-width: 790px;
    margin: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(42px, 3.7vw, 62px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.034em;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}

.cqg-home-hero__text {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .96);
    font-size: clamp(17px, 1.2vw, 20px);
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .28);
}

.cqg-home-hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.cqg-home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 13px 21px 13px 23px;
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    color: #18351e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: none;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.cqg-home-hero__button:hover,
.cqg-home-hero__button:focus-visible {
    background: #fff;
    color: #102d17;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
}

.cqg-home-hero__button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .58);
    outline-offset: 4px;
}

.cqg-home-hero__button-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.cqg-home-hero__bottom {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, .16);
}

.cqg-home-hero__bottom span {
    display: block;
    width: min(1280px, calc(100% - 64px));
    height: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, .20);
}

@media (max-width: 1100px) {
    .cqg-home-hero-rail__inner {
        width: min(100% - 28px, 1000px);
    }

    .cqg-home-hero-rail__track {
        display: flex;
        gap: 9px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        padding: 0 1px 2px;
    }

    .cqg-home-hero-rail__track::-webkit-scrollbar { display: none; }

    .cqg-home-hero-rail__card {
        flex: 0 0 min(330px, 82vw);
        scroll-snap-align: start;
    }

    .cqg-home-hero__content {
        width: min(760px, 76%);
    }
}

@media (max-width: 900px) {
    .cqg-home-hero {
        min-height: 610px;
    }

    .cqg-home-hero__inner {
        width: min(100% - 44px, 760px);
    }

    .cqg-home-hero__content {
        width: min(690px, 88%);
    }

    .cqg-home-hero__title {
        font-size: clamp(40px, 6.5vw, 56px);
    }
}

@media (max-width: 767px) {
    .cqg-home-hero-rail__inner {
        width: calc(100% - 20px);
        padding: 8px 0;
    }

    .cqg-home-hero-rail__card {
        min-height: 68px;
        flex-basis: min(305px, 88vw);
        padding: 8px 12px 8px 8px;
        border-radius: 15px;
    }

    .cqg-home-hero-rail__visual {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 13px;
    }

    .cqg-home-hero-rail__copy strong { font-size: 13.5px; }
    .cqg-home-hero-rail__copy small { font-size: 12px; }

    .cqg-home-hero {
        min-height: 690px;
        margin-bottom: 26px;
    }

    .cqg-home-hero__image { object-position: 43% 50%; }

    .cqg-home-hero__shade {
        background:
            linear-gradient(180deg,
                rgba(12, 27, 16, .12) 0%,
                rgba(12, 27, 16, .18) 25%,
                rgba(12, 27, 16, .58) 58%,
                rgba(12, 27, 16, .90) 100%);
    }

    .cqg-home-hero__inner {
        width: min(100% - 32px, 620px);
        align-items: flex-end;
    }

    .cqg-home-hero__content {
        width: 100%;
        padding: 72px 0 34px;
    }

    .cqg-home-hero__eyebrow {
        margin-bottom: 11px;
        font-size: 11.5px;
        letter-spacing: .055em;
    }

    .cqg-home-hero__title {
        max-width: 560px;
        font-size: clamp(36px, 9.8vw, 48px);
        line-height: 1.03;
        letter-spacing: -.03em;
    }

    .cqg-home-hero__text {
        max-width: 560px;
        margin-top: 15px;
        font-size: 17px;
        line-height: 1.46;
    }

    .cqg-home-hero__actions { margin-top: 21px; }

    .cqg-home-hero__button {
        min-height: 50px;
        padding: 13px 19px 13px 21px;
        font-size: 15px;
    }

    .cqg-home-hero__bottom span { width: calc(100% - 32px); }
}

@media (max-width: 420px) {
    .cqg-home-hero { min-height: 720px; }
    .cqg-home-hero__title { font-size: clamp(34px, 9.4vw, 43px); }
    .cqg-home-hero__text { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .cqg-home-hero-rail__card,
    .cqg-home-hero-rail__card *,
    .cqg-home-hero__button {
        animation: none !important;
        transition: none !important;
    }

    .cqg-home-hero-rail__card {
        opacity: 1;
        transform: none;
    }

    .cqg-garden-stem { transform: translateX(-50%) scaleY(1); }
    .cqg-garden-leaf { opacity: 1; scale: 1; }
}

/* ========================================================================
 * v0.7.0 — CLEAN CSS BASE
 *
 * Stable Hero structure only.
 * Decorative HTML stays available but is hidden by default.
 * All experimental visual positioning / effects belong in the admin
 * "Hero CSS дизайн" field and load after this stylesheet.
 * ====================================================================== */

.cqg-home-hero {
    margin-top: 14px;
    border-radius: 30px;
    overflow: hidden;
    background: #f4eee4;
    box-shadow:
        0 18px 48px rgba(77, 72, 55, .13),
        0 3px 10px rgba(62, 78, 60, .08);
}

/* Static translucent frame only. Never animated in the base stylesheet. */
.cqg-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 4px rgba(255, 252, 246, .34),
        inset 0 0 30px rgba(255, 244, 224, .07);
    animation: none !important;
}

/* No base decorative aura. Custom CSS may use ::after freely. */
.cqg-home-hero::after {
    content: none;
}

/* Real image remains the visual base. */
.cqg-home-hero__image {
    transform: none;
}

/* Readability shade only; no inner card/panel. */
.cqg-home-hero__shade {
    background:
        linear-gradient(
            90deg,
            rgba(18, 34, 22, .54) 0%,
            rgba(18, 34, 22, .30) 20%,
            rgba(18, 34, 22, .14) 34%,
            rgba(18, 34, 22, .02) 50%,
            rgba(18, 34, 22, 0) 64%
        ),
        linear-gradient(
            0deg,
            rgba(30, 49, 34, .18) 0%,
            rgba(30, 49, 34, .03) 36%,
            rgba(30, 49, 34, 0) 62%
        );
}

/* Copy sits directly on the photo. */
.cqg-home-hero__content {
    width: min(700px, 58%);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: #fff;
    overflow: visible;
}

.cqg-home-hero__content::before,
.cqg-home-hero__content::after {
    content: none;
}

.cqg-home-hero__eyebrow {
    margin-bottom: 14px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(246, 247, 240, .14);
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, .22);
}

.cqg-home-hero__eyebrow span {
    color: #ffd7c2;
    opacity: .92;
}

.cqg-home-hero__title {
    max-width: 640px;
    color: #f7fbf2;
    font-size: clamp(42px, 3.55vw, 60px);
    font-weight: 740;
    line-height: 1.02;
    text-shadow: 0 3px 18px rgba(21, 35, 22, .34);
}

.cqg-home-hero__text {
    max-width: 560px;
    margin-top: 18px;
    color: rgba(247, 248, 239, .96);
    font-size: clamp(16px, 1.1vw, 19px);
    line-height: 1.54;
    text-shadow: 0 2px 12px rgba(20, 32, 22, .26);
}

.cqg-home-hero__actions {
    margin-top: 26px;
}

/* Neutral, stable CTA base. Animation belongs in custom CSS. */
.cqg-home-hero__button {
    min-height: 54px;
    padding: 14px 24px 14px 26px;
    border: 1px solid rgba(255, 255, 255, .62);
    background:
        linear-gradient(
            135deg,
            rgba(255, 251, 246, .94) 0%,
            rgba(243, 249, 235, .93) 56%,
            rgba(255, 239, 225, .95) 100%
        );
    color: #33513d;
    box-shadow:
        0 14px 28px rgba(24, 39, 26, .18),
        inset 0 1px 0 rgba(255, 255, 255, .82);
}

.cqg-home-hero__button::before,
.cqg-home-hero__button::after {
    content: none;
}

.cqg-home-hero__button-icon {
    transition: transform .24s ease;
}

.cqg-home-hero__button:hover,
.cqg-home-hero__button:focus-visible {
    color: #294631;
    border-color: rgba(255, 255, 255, .78);
    transform: translateY(-2px);
    box-shadow:
        0 16px 34px rgba(24, 39, 26, .22),
        inset 0 1px 0 rgba(255, 255, 255, .90);
}

.cqg-home-hero__button:hover .cqg-home-hero__button-icon,
.cqg-home-hero__button:focus-visible .cqg-home-hero__button-icon {
    transform: translateX(3px);
}


/* ------------------------------------------------------------------------
 * Stable decorative primitives.
 *
 * These rules define only WHAT the existing decorative HTML elements are:
 * layer, flower petals, bare branch stem, circles, sparks and arcs.
 * They deliberately do NOT decide desktop placement or animation.
 * The "Hero CSS дизайн" field controls placement, visibility, color and motion.
 * --------------------------------------------------------------------- */

.cqg-home-hero__decor {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.cqg-home-hero__inner {
    z-index: 3;
}

.cqg-hero-decor__sun,
.cqg-hero-decor__ring,
.cqg-hero-decor__branch,
.cqg-hero-decor__flower,
.cqg-hero-decor__bubble,
.cqg-hero-decor__spark,
.cqg-hero-decor__arc {
    position: absolute;
    pointer-events: none;
}

/* Soft circular glow primitive. */
.cqg-hero-decor__sun {
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(255, 239, 142, .32) 0 28%,
            rgba(255, 239, 142, .16) 29% 52%,
            rgba(255, 255, 255, 0) 72%
        );
}

/* Ring primitive. */
.cqg-hero-decor__ring {
    border-radius: 50%;
    border: 2px solid rgba(255, 246, 226, .28);
}

/* Bare branch primitive — NO leaves are visible in the clean base. */
.cqg-hero-decor__branch {
    transform-origin: 80% 90%;
}

.cqg-hero-decor__branch::before {
    content: "";
    position: absolute;
    right: 56px;
    bottom: 15px;
    width: 4px;
    height: 245px;
    border-radius: 4px;
    background: linear-gradient(#85a76d, #648758);
    transform: rotate(23deg);
    transform-origin: bottom;
    opacity: .86;
}

/* Leaves stay permanently hidden unless a future CSS experiment
 * explicitly chooses to show them. */
.cqg-hero-decor__leaf {
    display: none;
    opacity: 0;
    visibility: hidden;
}

/* Flower primitive. */
.cqg-hero-decor__flower {
    width: 120px;
    height: 120px;
}

.cqg-hero-decor__flower i {
    position: absolute;
    width: 48px;
    height: 24px;
    border-radius: 70% 30% 70% 30%;
    background: rgba(239, 145, 184, .72);
}

.cqg-hero-decor__flower i:nth-child(1) {
    left: 5px;
    top: 48px;
}

.cqg-hero-decor__flower i:nth-child(2) {
    right: 5px;
    top: 48px;
    transform: rotate(180deg);
}

.cqg-hero-decor__flower i:nth-child(3) {
    left: 36px;
    top: 10px;
    transform: rotate(90deg);
}

.cqg-hero-decor__flower i:nth-child(4) {
    left: 36px;
    bottom: 10px;
    transform: rotate(-90deg);
}

.cqg-hero-decor__flower b {
    position: absolute;
    left: 45px;
    top: 45px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5d472;
    box-shadow: 0 0 0 12px rgba(255, 255, 255, .08);
}

/* Circle / bubble primitive. */
.cqg-hero-decor__bubble {
    border-radius: 50%;
}

/* Spark primitive. */
.cqg-hero-decor__spark {
    border-radius: 50%;
    background: #f7d989;
    box-shadow: 0 0 12px rgba(247, 217, 137, .35);
}

/* Arc primitive. */
.cqg-hero-decor__arc {
    border-top: 3px solid rgba(255, 247, 226, .22);
    border-radius: 50%;
}

/*
 * Decorative markup remains in the PHP so CSS experiments never require
 * another ZIP. It starts invisible in the clean base.
 */
.cqg-home-hero__decor,
.cqg-hero-decor__sun,
.cqg-hero-decor__ring,
.cqg-hero-decor__branch,
.cqg-hero-decor__leaf,
.cqg-hero-decor__flower,
.cqg-hero-decor__bubble,
.cqg-hero-decor__spark,
.cqg-hero-decor__arc {
    opacity: 0;
    pointer-events: none;
}

/* Prevent stale pseudo-elements from older experiments. */
.cqg-home-hero__decor::before,
.cqg-home-hero__decor::after,
.cqg-hero-decor__branch::after {
    content: none;
}

/* Mobile stable base. */
@media (max-width: 767px) {
    .cqg-home-hero {
        margin-top: 10px;
        border-radius: 22px;
    }

    .cqg-home-hero::before {
        box-shadow:
            inset 0 0 0 3px rgba(255, 252, 246, .34),
            inset 0 0 18px rgba(255, 244, 224, .06);
    }

    .cqg-home-hero__content {
        width: 100%;
        padding: 0;
    }

    .cqg-home-hero__eyebrow {
        font-size: 12px;
        padding: 7px 12px;
    }

    .cqg-home-hero__title {
        max-width: 100%;
        font-size: clamp(36px, 8.8vw, 44px);
    }

    .cqg-home-hero__text {
        max-width: 100%;
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.5;
    }

    .cqg-home-hero__actions {
        margin-top: 22px;
    }

    .cqg-home-hero__button {
        min-height: 52px;
        padding: 13px 20px 13px 24px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cqg-home-hero *,
    .cqg-home-hero::before,
    .cqg-home-hero::after {
        animation: none !important;
        transition-duration: .001ms !important;
    }
}
