/* ==========================================================================
   Rachetă - a party among the stars, painted in watercolour: the photo in a spaceship porthole with rivets round its
   edge, Saturn floating above it and the rocket waiting on its pad beside it (a touch launches it: it leaves the page
   and comes back down). Stars twinkle behind the page and drift more slowly than it, a little moon orbits its planet
   above every title, the astronaut says hello, the commander's portrait sits in a porthole beside the Earth, the
   theme is the mission plan on blue engineer's paper, every moment has its telescope or planet, the days left until
   launch sit on planets, the photos are seen through portholes and at the end the planets float in orbit.
   Palette: --inv-primary (the ink), --inv-accent (the soft colour), --inv-bg, --inv-text.
   The watercolours (assets/art, Pixabay, see LICENSES.md) are made transparent; on the dark palette (.ra-dark, set
   by script.js) the night sky painting shows at the top and the pieces get a soft glow. script.js draws the stars.
   The countdown planets come in as --ra-p1..4 (set on body by index.blade.php)
   ========================================================================== */

.racheta {
    --ra-soft: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --ra-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    --ra-metal: linear-gradient(145deg, #f2f5fa, #aab3c0 35%, #e3e8ef 55%, #7f8896 85%, #c9d0da);
    --ra-shadow: 0 1px 2px color-mix(in srgb, var(--inv-text) 8%, transparent), 0 24px 48px -30px color-mix(in srgb, var(--inv-text) 50%, transparent);
    --kit-radius: 14px;
    --kit-field-bg: var(--inv-surface);
    --kit-field-border: var(--ra-line);
    font-family: var(--inv-font-body);
    font-weight: 400;
    font-size: 1.03rem;
    line-height: 1.7;
    background: var(--inv-bg);
    overflow-x: clip;
}
.racheta h1, .racheta h2, .racheta h3 { font-family: var(--inv-font-heading); font-weight: 700; line-height: 1.1; }
:where(.racheta) :is(h1, h2, h3) { margin: 0; }
:where(.racheta) p { margin: 0 0 .9em; }
.racheta strong { font-weight: 700; }
.racheta a { color: var(--inv-primary); }
.ra-kicker { font-family: var(--inv-font-heading); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }
.ra-role { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ra-soft); margin: 0 0 4px; }
.ra-names { font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.3rem; margin: 0; }
.ra-hero, .ra-main, .ra-footer { position: relative; z-index: 1; }
.ra-card { position: relative; background: var(--inv-surface); border-radius: 22px; box-shadow: var(--ra-shadow), 0 0 0 1px var(--ra-line); }
.ra-air { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- The watercolours ---------- */
.ra-art { position: relative; display: block; }
.ra-art img { display: block; width: 100%; height: auto; }
.ra-dark .ra-art img { filter: drop-shadow(0 0 22px rgba(150, 185, 255, .22)); }

/* ---------- The porthole: a thick metal ring, a circle of rivets and a glint on the glass ---------- */
.ra-porthole { position: relative; margin: 0; aspect-ratio: 1; border-radius: 50%; padding: 8%; background: var(--ra-metal);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), inset 0 -6px 12px rgba(40, 50, 70, .35), 0 26px 44px -24px color-mix(in srgb, var(--inv-text) 70%, transparent); }
.ra-porthole::before { content: ""; position: absolute; inset: 3%; border-radius: 50%;
    background: repeating-conic-gradient(from 6deg, #6f7886 0 3deg, transparent 3deg 30deg);
    -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 6px), #000 calc(50% - 5px) calc(50% - 1px), transparent 50%);
    mask: radial-gradient(circle, transparent 0 calc(50% - 6px), #000 calc(50% - 5px) calc(50% - 1px), transparent 50%); }
.ra-porthole-photo { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #0f1530; box-shadow: inset 0 0 0 3px #59616e, 0 0 0 2px rgba(255, 255, 255, .5); }
.ra-porthole-photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, .45) 0 8%, transparent 22% 62%, rgba(255, 255, 255, .14) 70%, transparent 78%); }
.ra-porthole-photo img, .ra-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.ra-initial { display: grid; place-items: center; font-family: var(--inv-font-heading); font-weight: 800; font-size: 5rem; color: #ffc857; }

/* ---------- Navigation ---------- */
.ra-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; padding: 18px; }
.ra-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.ra-nav .kit-nav-links a { font-family: var(--inv-font-heading); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--inv-text); padding: 6px 0; border-bottom: 2px solid transparent; }
.ra-nav .kit-nav-links a:hover, .ra-nav .kit-nav-links a.is-current { border-color: var(--inv-primary); color: var(--inv-primary); }
.ra-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-weight: 800; font-size: 1.4rem; line-height: 1; color: var(--inv-primary); text-decoration: none; }
.ra-nav.is-stuck { justify-content: space-between; align-items: center; padding: 8px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--inv-bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--ra-line); }
.racheta .kit-to-top { background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--ra-line); }
@media (max-width: 899px) {
    .ra-nav { justify-content: flex-end; padding: 12px; }
    .ra-nav .kit-nav-toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--inv-surface); color: var(--inv-primary); border: 1px solid var(--ra-line); font-size: 1.2rem; }
    .ra-nav .kit-nav-links { display: none; }
    .ra-nav.is-open .kit-nav-links {
        display: flex; flex-direction: column; gap: 12px; position: absolute; top: 66px; left: 12px; right: 12px;
        padding: 24px; border-radius: 18px; background: var(--inv-surface); box-shadow: var(--ra-shadow);
    }
    .ra-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- Hero: the porthole, Saturn and the rocket on its pad ---------- */
.ra-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 16px 70px; overflow: hidden; overflow: clip; }
.ra-sky { position: absolute; left: 0; right: 0; top: 0; height: 70%; pointer-events: none; opacity: 0; transition: opacity .6s ease;
    -webkit-mask: linear-gradient(#000 40%, transparent); mask: linear-gradient(#000 40%, transparent); }
.ra-sky img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ra-dark .ra-sky { opacity: .85; }
.ra-hero-inner { position: relative; z-index: 1; width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 40px; text-align: center; }
.ra-launch { position: relative; width: min(260px, 56vw); margin: 12% 16% 8% 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kit-js .ra-porthole--hero { animation: ra-rise 1.2s cubic-bezier(.3, 1.2, .5, 1) .1s both; }
@keyframes ra-rise { from { opacity: 0; translate: 0 30px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
.ra-saturn { position: absolute; left: -34%; top: -20%; width: 58%; z-index: 3; }
.kit-js .ra-saturn img { animation: ra-in 1.2s cubic-bezier(.3, 1.2, .5, 1) .6s both, ra-bob 7s ease-in-out 2s infinite; }
@keyframes ra-in { from { opacity: 0; translate: -20px -10px; } to { opacity: 1; translate: 0 0; } }
@keyframes ra-bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -8px; rotate: -3deg; } }
.ra-pad { position: absolute; right: -50%; bottom: -12%; width: 62%; z-index: 4; display: block; }
.kit-js .ra-rocket img { animation: ra-arrive 1.2s cubic-bezier(.3, 1.2, .5, 1) .9s both; }
@keyframes ra-arrive { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
/* the launch: a shiver on the pad, then up and away along its own slant; it comes back down from below */
.ra-launch.is-launching .ra-rocket { animation: ra-blast 3s cubic-bezier(.5, 0, .5, 1) 1; }
@keyframes ra-blast {
    0% { translate: 0 0; opacity: 1; }
    6%, 14% { translate: -2px 1px; } 10%, 18% { translate: 2px -1px; }
    45% { translate: 120% -320%; opacity: 1; }
    46% { translate: 120% -320%; opacity: 0; }
    47% { translate: -40% 120%; opacity: 0; }
    60% { opacity: 1; }
    100% { translate: 0 0; opacity: 1; }
}

.ra-hero-text { display: grid; justify-items: center; width: 100%; min-width: 0; }
.racheta .ra-name { font-family: var(--inv-font-heading); font-weight: 800; font-size: clamp(2.8rem, 11vw, 5rem); line-height: 1; color: var(--inv-primary); overflow-wrap: anywhere; text-wrap: balance; margin: 0 0 14px; }
.ra-hero-date { font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.4rem; margin: 0 0 2px; }
.ra-hero-place { font-family: var(--inv-font-heading); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ra-soft); margin: 0; }
.racheta .ra-subtitle { max-width: 44ch; margin: 16px auto 0; color: var(--ra-soft); }
@keyframes ra-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.kit-js .ra-hero-text > * { animation: ra-up 1s ease .9s both; }
.kit-js .ra-hero-text > :nth-child(n+3) { animation-delay: 1.2s; }
@media (min-width: 900px) {
    .ra-hero { padding-top: 150px; }
    .ra-hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 70px; text-align: left; align-items: center; }
    .ra-hero-text { justify-items: start; order: -1; }
    .racheta .ra-subtitle { margin-left: 0; }
    .ra-launch { width: min(300px, 26vw); margin: 60px clamp(130px, 13vw, 170px) 40px clamp(70px, 8vw, 110px); }
}

/* ---------- Sections ---------- */
.ra-main { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.ra-section { padding-top: clamp(84px, 11vw, 128px); }
.ra-title { margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.ra-title h2 { font-size: clamp(1.9rem, 5.6vw, 2.8rem); color: var(--inv-primary); text-wrap: balance; }
/* the little planet with its ring, a moon going round it */
.ra-mini { position: relative; display: block; width: 48px; height: 34px; margin: 0 auto 10px; }
.ra-mini b { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--inv-primary) 40%, #fff), var(--inv-primary) 70%); }
.ra-mini b::after { content: ""; position: absolute; left: -9px; right: -9px; top: 50%; height: 7px; margin-top: -3.5px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--inv-primary) 60%, transparent); rotate: -16deg; }
.ra-mini i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #ffc857; box-shadow: 0 0 6px rgba(255, 200, 87, .8); transform-origin: 3.5px 3.5px; transform: rotate(-30deg) translateX(21px) scale(.9); }
.kit-js .ra-title.is-visible .ra-mini i { animation: ra-orbit 4s linear infinite; }
@keyframes ra-orbit { 0% { transform: rotate(-30deg) translateX(21px) scale(.9); z-index: 0; } 50% { transform: rotate(150deg) translateX(21px) scale(1.1); } 100% { transform: rotate(330deg) translateX(21px) scale(.9); } }

/* Welcome, from the astronaut */
.ra-welcome { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto; }
.ra-welcome p { font-size: 1.05rem; }
.ra-hello { width: min(240px, 60vw); }
.kit-js .ra-welcome .ra-hello img { opacity: 0; translate: 0 30px; transition: opacity .9s ease, translate 1.2s cubic-bezier(.3, 1.3, .5, 1); }
.kit-js .ra-welcome.is-visible .ra-hello img { opacity: 1; translate: 0 0; }
.racheta .ra-welcome-title { font-family: var(--inv-font-heading); font-weight: 800; font-size: clamp(2.2rem, 7.4vw, 3.2rem); line-height: 1.05; color: var(--inv-primary); margin-bottom: 12px; }
.ra-quote-author { font-weight: 700; color: var(--inv-primary); }
@media (min-width: 760px) {
    .ra-welcome { grid-template-columns: auto minmax(0, 1fr); gap: 50px; text-align: left; align-items: center; }
    .ra-hello { width: 270px; }
}

/* The commander: the portrait in a porthole, the Earth beside it (the section clips what a phone cannot show) */
.ra-star { overflow-x: clip; padding-bottom: 30px; }
.ra-star-grid { display: grid; gap: 60px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.ra-portrait { position: relative; width: min(230px, 58vw); }
.ra-earth { position: absolute; right: -40%; bottom: -12%; width: 62%; z-index: 3; }
.kit-js .ra-star-grid .ra-earth img { opacity: 0; translate: 30px 10px; rotate: 20deg; transition: opacity .8s ease .4s, translate 1.2s cubic-bezier(.3, 1.2, .5, 1) .4s, rotate 1.6s ease .4s; }
.kit-js .ra-star-grid.is-visible .ra-earth img { opacity: 1; translate: 0 0; rotate: 0deg; }
.ra-star-name { font-family: var(--inv-font-heading); font-weight: 700; font-size: 1.9rem; color: var(--inv-primary); margin-bottom: 0; }
.ra-age { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 10px; color: var(--ra-soft); }
.ra-age strong { font-family: var(--inv-font-heading); font-weight: 800; font-size: 4.4rem; line-height: 1; color: var(--inv-primary); }
.ra-age small { font-family: var(--inv-font-heading); font-size: 1.1rem; font-weight: 700; }
.ra-star-message { font-size: 1.08rem; max-width: 38ch; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .ra-star-grid { grid-template-columns: auto minmax(0, 1fr); gap: 120px; text-align: left; align-items: center; }
    .ra-portrait { width: 250px; }
    .ra-age { justify-content: flex-start; }
    .ra-star-message { margin-left: 0; }
}

/* The theme on the mission plan: blue engineer's paper with its grid, a dashed margin and a round mission stamp */
.ra-theme { overflow-x: clip; }
.ra-blueprint { position: relative; max-width: 620px; margin: 0 auto; padding: 44px clamp(26px, 6vw, 52px) 38px; text-align: left; color: #eef4ff; border-radius: 6px;
    background:
        linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px) 0 0 / 100% 64px,
        linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px) 0 0 / 64px 100%,
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 100% 16px,
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 16px 100%,
        #1d4a8c;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .12), 0 26px 40px -24px rgba(10, 30, 70, .7); }
.ra-blueprint::before { content: ""; position: absolute; inset: 12px; border: 1.5px dashed rgba(255, 255, 255, .5); border-radius: 3px; pointer-events: none; }
.ra-stamp-mission { position: absolute; right: 22px; top: 18px; width: 66px; height: 66px; border-radius: 50%; border: 3px double rgba(255, 210, 120, .85); rotate: -14deg; opacity: .9; }
.ra-stamp-mission::before { content: ""; position: absolute; inset: 14px; background: rgba(255, 210, 120, .9); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.ra-blueprint h3 { position: relative; font-size: clamp(1.5rem, 5vw, 1.9rem); color: #ffd27a; margin: 0 80px 10px 0; }
.ra-blueprint p { position: relative; font-size: 1.07rem; color: #eef4ff; }
.ra-blueprint p:last-child { margin-bottom: 0; }
.kit-js .ra-theme .ra-blueprint { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .9s ease; }
.kit-js .ra-theme .ra-stamp-mission { opacity: 0; scale: 1.4; transition: opacity .3s ease .8s, scale .5s cubic-bezier(.3, 1.6, .5, 1) .8s; }
.kit-js .ra-theme.is-visible .ra-blueprint { opacity: 1; translate: 0 0; }
.kit-js .ra-theme.is-visible .ra-stamp-mission { opacity: .9; scale: 1; }

/* Programme: a telescope or a planet beside every moment */
.ra-trail { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 30px; }
.ra-stop { display: grid; justify-items: center; }
.ra-stop-art { width: min(150px, 40vw); margin-bottom: -14px; z-index: 2; }
.ra-stop-card { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 28px clamp(20px, 5vw, 36px) 22px; text-align: center; }
.kit-js .ra-stop .ra-stop-card { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .9s ease; }
.kit-js .ra-stop .ra-stop-art img { opacity: 0; translate: -20px 0; rotate: -10deg; transition: opacity .6s ease .3s, translate .9s cubic-bezier(.3, 1.3, .5, 1) .3s, rotate .9s ease .3s; }
.kit-js .ra-stop.is-visible .ra-stop-card { opacity: 1; translate: 0 0; }
.kit-js .ra-stop.is-visible .ra-stop-art img { opacity: 1; translate: 0 0; rotate: 0deg; }
.ra-stop-time { font-family: var(--inv-font-heading); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--inv-primary); margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.ra-stop-card h3 { font-size: clamp(1.35rem, 4vw, 1.6rem); margin-bottom: 4px; }
.ra-stop-place { font-weight: 700; margin: 0; }
.ra-stop-address, .ra-stop-notes { color: var(--ra-soft); margin: 0; }
.ra-stop-notes { font-style: italic; margin-top: 6px; }
.ra-stop .kit-event-actions { margin-top: 14px; justify-content: center; }
@media (min-width: 760px) {
    .ra-stop { grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 0; }
    .ra-stop-art { width: 170px; margin: 0 -26px 0 0; }
    .ra-stop:nth-child(even) { grid-template-columns: minmax(0, 1fr) 170px; }
    .ra-stop:nth-child(even) .ra-stop-art { order: 2; margin: 0 0 0 -26px; }
    .ra-stop-card { justify-items: start; text-align: left; padding-left: 48px; }
    .ra-stop:nth-child(even) .ra-stop-card { padding-left: 36px; padding-right: 48px; }
    .ra-stop .kit-event-actions { justify-content: flex-start; }
}
.racheta .kit-button { border-radius: 999px; border: 2px solid var(--inv-primary); color: var(--inv-primary); background: transparent; font-family: var(--inv-font-heading); font-size: .8rem; font-weight: 700; padding: 7px 18px; text-decoration: none; }
.racheta .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown: each number on a planet */
.ra-countdown { text-align: center; }
.ra-countdown .kit-countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px clamp(12px, 3.6vw, 30px); margin-top: 36px; }
.ra-countdown .kit-countdown-unit { position: relative; width: clamp(74px, 19vw, 106px); min-width: 0; aspect-ratio: 1; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ra-p1) center / contain no-repeat; border-radius: 50%; }
.ra-countdown .kit-countdown-unit:nth-child(2) { background-image: var(--ra-p2); }
.ra-countdown .kit-countdown-unit:nth-child(3) { background-image: var(--ra-p3); }
.ra-countdown .kit-countdown-unit:nth-child(4) { background-image: var(--ra-p4); }
.ra-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-weight: 800; font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 0 10px rgba(0, 0, 0, .4); }
.ra-countdown .kit-countdown-label { opacity: 1; color: #fff; font-size: .52rem; font-weight: 800; letter-spacing: .12em; margin-top: 2px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.kit-js .ra-countdown .kit-countdown-unit { opacity: 0; scale: .5; transition: opacity .5s ease, scale 1s cubic-bezier(.3, 1.5, .5, 1); }
.kit-js .ra-countdown .kit-countdown-unit:nth-child(2) { transition-delay: .12s; }
.kit-js .ra-countdown .kit-countdown-unit:nth-child(3) { transition-delay: .24s; }
.kit-js .ra-countdown .kit-countdown-unit:nth-child(4) { transition-delay: .36s; }
.kit-js .ra-countdown.is-visible .kit-countdown-unit { opacity: 1; scale: 1; }

/* Gallery: the photos seen through portholes */
.ra-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 30px); }
.ra-gallery-grid.kit-gallery a { position: relative; display: block; aspect-ratio: 1; padding: 8%; border-radius: 50%; background: var(--ra-metal);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), inset 0 -5px 10px rgba(40, 50, 70, .3), 0 18px 30px -18px rgba(20, 30, 60, .5); transition: translate .5s ease; }
.ra-gallery-grid.kit-gallery a::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 0 3px #59616e;
    background: linear-gradient(135deg, rgba(255, 255, 255, .4) 0 8%, transparent 22%); }
.ra-gallery-grid.kit-gallery a:hover { translate: 0 -5px; }
.ra-gallery-grid.kit-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@media (min-width: 760px) { .ra-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; margin: 0 auto; } }

/* RSVP, info, contact */
.ra-reply { max-width: 700px; margin: 0 auto; padding: clamp(40px, 6vw, 56px) clamp(24px, 6vw, 56px) clamp(32px, 5vw, 48px); }
.racheta .inv-rsvp__intro { font-size: 1.1rem; font-weight: 600; }
.racheta .inv-rsvp__deadline { font-family: var(--inv-font-heading); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--inv-primary); }
.ra-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ra-info-item { padding: 30px 24px 20px; text-align: center; }
.ra-info-item h3 { font-size: 1.35rem; color: var(--inv-primary); margin-bottom: 8px; }
.ra-faq { max-width: 720px; margin: 46px auto 0; text-align: center; display: grid; gap: 12px; }
.ra-faq details { text-align: left; }
.ra-faq summary { cursor: pointer; list-style: none; padding: 17px 56px 17px 22px; position: relative; font-weight: 800; font-size: 1.02rem; }
.ra-faq summary::-webkit-details-marker { display: none; }
.ra-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--inv-primary); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transition: rotate .5s ease; }
.ra-faq details[open] summary::after { rotate: 144deg; }
.ra-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; border-radius: 22px; }
.ra-faq details p { padding: 0 22px; color: var(--ra-soft); }
.ra-faq details p:last-child { padding-bottom: 16px; }
.ra-contact { text-align: center; }
.ra-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.ra-contact-person a { text-decoration: none; font-weight: 700; }

/* ---------- Footer: the planets floating in orbit ---------- */
.ra-footer { text-align: center; padding: clamp(90px, 13vw, 140px) 16px 50px; overflow: hidden; overflow: clip; }
.ra-footer-message { font-size: 1.2rem; font-weight: 600; color: var(--ra-soft); max-width: 36ch; margin: 0 auto 6px; }
.racheta .ra-footer-name { font-family: var(--inv-font-heading); font-weight: 800; font-size: clamp(3rem, 11vw, 4.4rem); line-height: 1.05; color: var(--inv-primary); margin: 4px 0 10px; }
.ra-hashtag { font-weight: 700; letter-spacing: .06em; color: var(--inv-primary); }
.ra-orbit { position: relative; width: min(560px, 100%); margin: 34px auto 0; display: grid; grid-template-columns: .8fr 1.1fr 1.2fr .85fr; align-items: center; gap: 4%; }
.ra-planet { width: 100%; }
.ra-planet--uranus { translate: 0 -18%; }
.ra-planet--neptune { translate: 0 10%; }
.kit-js .ra-orbit .ra-planet img { animation: ra-bob 6s ease-in-out infinite; }
.kit-js .ra-orbit .ra-planet--neptune img { animation-delay: -1.5s; }
.kit-js .ra-orbit .ra-planet--uranus img { animation-delay: -3s; }
.kit-js .ra-orbit .ra-planet--venus img { animation-delay: -4.5s; }
.kit-js .ra-footer .ra-orbit { opacity: 0; translate: 0 30px; transition: opacity .8s ease, translate 1.1s cubic-bezier(.3, 1.3, .5, 1); }
.kit-js .ra-footer.is-visible .ra-orbit { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
    .kit-js .ra-porthole--hero, .kit-js .ra-saturn img, .kit-js .ra-rocket img, .kit-js .ra-hero-text > *, .kit-js .ra-title.is-visible .ra-mini i, .kit-js .ra-orbit .ra-planet img { animation: none; }
    .kit-js .ra-welcome .ra-hello img, .kit-js .ra-star-grid .ra-earth img, .kit-js .ra-theme .ra-blueprint, .kit-js .ra-theme .ra-stamp-mission, .kit-js .ra-stop .ra-stop-card,
    .kit-js .ra-stop .ra-stop-art img, .kit-js .ra-countdown .kit-countdown-unit, .kit-js .ra-footer .ra-orbit { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; transition: none; }
}
