﻿.rl-home { color: #151515; background: #fff; }
.rl-home img { max-width: 100%; }
.rl-home-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rl-home-dark { background: #000; color: #fff; }
.rl-home-dark a, .rl-home-dark h2, .rl-home-dark h3 { color: inherit; }
.rl-home-width { width: min(1132px, calc(100% - 32px)); margin-inline: auto; }
.rl-home .rl-home-heading,
.rl-home .rl-news-home-heading h2 {
    margin: 0 0 15px;
    color: #000;
    font: 700 24px/20px RLHeading, Arial, sans-serif;
    letter-spacing: 5px;
    text-align: left;
    text-transform: uppercase;
}
.rl-home-heading::after,
.rl-news-home-heading h2::after {
    content: "";
    display: block;
    margin-top: -3px;
    border-bottom: 2px solid currentColor;
}
.rl-home-lower { padding-block: 40px 70px; }
.rl-home-registration-link,
.rl-home .rl-news-home-heading { margin-bottom: 24px; }
.rl-home-registration-link a { color: #666; font-weight: 700; }
.rl-home .rl-news-home-heading a { color: #666; }
.rl-home .rl-news-home { margin-block: 56px; padding-bottom: 0; }
.rl-home .rl-news-home .rl-news-cards { margin-bottom: 0; }

.rl-home-carousel { position: relative; min-width: 0; }
.rl-home-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rl-home-track > * { scroll-snap-align: start; min-width: 0; }
.rl-home-carousel-controls { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.rl-home-carousel-controls[hidden] { display: none; }
.rl-home-carousel-controls button {
    width: 40px; height: 40px; padding: 0; border: 1px solid #ddd;
    background: #fff; color: #111; font: 28px/1 Arial, sans-serif; cursor: pointer;
}
.rl-home-carousel-controls button:disabled { opacity: .45; cursor: default; }
.rl-home-hero { max-width: 1920px; margin-inline: auto; }
.rl-home-hero .rl-home-banner { flex: 0 0 100%; }
.rl-home-hero .rl-home-carousel-controls { position: absolute; inset: 50% 2% auto; transform: translateY(-50%); justify-content: space-between; pointer-events: none; margin: 0; }
.rl-home-hero button { pointer-events: auto; }
.rl-home-banner { position: relative; min-width: 0; }
.rl-home-banner > a, .rl-home-banner picture { display: block; }
.rl-home-banner img { display: block; width: 100%; height: auto; }
.rl-home-hero img { aspect-ratio: 1920 / 637; object-fit: cover; }
.rl-home-banner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.rl-home-banner-grid .rl-home-span-2 { grid-column: span 2; }
.rl-home-banner-grid .rl-home-span-3 { grid-column: span 3; }
.rl-home-banner-grid img { aspect-ratio: 364 / 432; object-fit: cover; }
.rl-home-banner-grid .rl-home-span-2 img { aspect-ratio: 748 / 432; }
.rl-home-banner-grid .rl-home-span-3 img { aspect-ratio: 1132 / 432; }
.rl-home-banner-button {
    position: absolute; inset: auto auto 20px 20px; max-width: calc(100% - 40px);
    padding: 10px 24px; border-radius: 24px; background: #fff; color: #111;
    font-family: RLHeading, Arial, sans-serif; text-align: center;
}
.rl-home-banner a:hover .rl-home-banner-button { background: #0000ff; color: #fff; }
@media (width > 600px) { .rl-home-banner-grid .rl-home-hide-desktop { display: none; } }

.rl-home-promos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-block: 55px; }
.rl-home-promo, .rl-home-promo a { display: flex; align-items: center; gap: 14px; }
.rl-home-promo img { flex: 0 0 auto; width: 60px; height: 62px; object-fit: contain; filter: invert(1); }
.rl-home-promo span { font: 700 16px/18px RLHeading, Arial, sans-serif; }
.rl-home-about { padding-bottom: 40px; }
.rl-home-about p { margin: 0 0 16px; }
.rl-home-about img { height: auto; }
.rl-home-about .front-about-banner-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; border-bottom: 2px solid #fff; margin-bottom: 20px; }
.rl-home-about .front-about-banner-title h2 {
    width: 50%;
    margin: 0 0 15px;
    font: 700 24px/20px RLHeading, Arial, sans-serif;
    letter-spacing: 5px;
}
.rl-home-about .front-about-banner img { display: block; max-height: 180px; width: auto; }

.rl-home-projects { padding-bottom: 40px; }
.rl-home-projects .rl-home-track { gap: 20px; align-items: stretch; }
.rl-home-project { flex: 0 0 calc((100% - 60px) / 4); display: flex; flex-direction: column; }
.rl-home-project h3 {
    margin: 15px 0;
    text-align: center;
    font: 700 18px/normal RLHeading, Arial, sans-serif;
}
.rl-home-project h3 a { font: inherit; }
.rl-home-project-image { aspect-ratio: 1; }
.rl-home-project-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rl-home-project-text { flex: 1; padding: 15px; background: #fff; color: #666; font-size: 14px; line-height: 1.35; }
.rl-home-slogan { margin: 0 0 12px; font-weight: bold; color: #111; }
.rl-home-project-text .rl-home-project-link { display: inline-block; margin-top: 10px; font-weight: bold; color: #0000ff; }
.rl-home-marathons { padding: 24px 0 40px; text-align: center; }
.rl-home-projects .rl-home-marathons { padding-bottom: 0; }
.rl-home-marathons .rl-home-light-button { display: inline-block; padding: 10px 16px; background: #fff; color: #111; border: 1px solid #fff; font-family: RLHeading, Arial, sans-serif; }
.rl-home-marathons .rl-home-light-button:hover { color: #fff; background: #000; }

.rl-home-marquee { display: flex; overflow: hidden; gap: 20px; }
.rl-home-marquee-track { display: flex; justify-content: space-around; gap: 20px; flex: 0 0 auto; min-width: 100%; animation: rl-home-scroll 50s linear infinite; }
.rl-home-marquee--top .rl-home-marquee-track { animation-direction: reverse; }
.rl-home-marquee:hover .rl-home-marquee-track { animation-play-state: paused; }
.rl-home-marquee:focus-within { overflow-x: auto; }
.rl-home-marquee:focus-within .rl-home-marquee-track { animation: none; }
.rl-home-logo { flex: 0 0 210px; height: 120px; display: grid; place-items: center; }
.rl-home-logo img { display: block; width: auto; height: auto; max-width: 210px; max-height: 100px; }
@keyframes rl-home-scroll { to { transform: translateX(calc(-100% - 20px)); } }
@media (prefers-reduced-motion: reduce) {
    .rl-home-marquee { overflow-x: auto; }
    .rl-home-marquee-track { animation: none; }
    .rl-home-marquee-track[aria-hidden] { display: none; }
}

@media (min-width: 1001px) { .rl-home .rl-news-home .rl-news-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .rl-home-promos { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 36px; }
    .rl-home-promo, .rl-home-promo a { flex-direction: column; text-align: center; justify-content: end; }
    .rl-home-project { flex-basis: min(268px, calc((100% - 20px) / 2)); }
}
@media (max-width: 600px) {
    .rl-home-hero img { aspect-ratio: 3 / 4; }
    .rl-home-banner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .rl-home-banner-grid .rl-home-banner { grid-column: span 2; }
    .rl-home-banner-grid .rl-home-hide-mobile { display: none; }
    .rl-home-banner-grid .rl-home-vertical { grid-column: span 1; }
    .rl-home-banner-grid .rl-home-banner img { aspect-ratio: auto; }
    .rl-home-promos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .rl-home-promo, .rl-home-promo a { flex-direction: row; gap: 8px; text-align: left; justify-content: start; }
    .rl-home-promo img { width: 42px; height: 42px; }
    .rl-home-promo span { overflow-wrap: anywhere; }
    .rl-home-promo:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; }
    .rl-home-about .front-about-banner { width: 38%; flex: 0 0 auto; }
    .rl-home-project { flex-basis: min(268px, 85%); }
}
