/* Compiled from SCSS */
@font-face {
    font-family: 'Segment7Standard';
        src: url('./Segment7Standard.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
      }

 /* The following rules are deprecated. */ 

@font-face {
    font-family: 'Segment7';
    src: url('./Segment7Standard.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
  font-family: "Segment7";
  src: url("./Segment7Standard.woff2") format("woff2"),
       url("./Segment7Standard.woff") format("woff"),
       url("./Segment7Standard.otf") format("opentype"); /* opcjonalnie jako trzeci */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Segment7-OTF-only";
  src: url("./Segment7Standard.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #1a1a1a;
  overflow-x: hidden;
}
.container{
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
}
.main-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.hero-section {
  position: relative;
  width: 1920px;
  height: 1066px;
  max-width: 100vw;
  max-height: 1066px;
  margin: 0 auto;
  /* overflow: hidden; */
}

.background-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1066px;
  background-image: url('../images/Desktop_Hero_bg@2x.webp');
  background-size: 1920px 100%;
  background-position: top;
  background-repeat: no-repeat;
  z-index: 1;
}


.navigation {
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
  text-transform: lowercase;
}

.nav-menu {
  position: relative;
  max-width: 141px;
}

.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #EFEBE6;
  border: none;
  color: #000000;
  font-size: 46px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 16px;
  background: rgba(0, 0, 0, 0.90);
  padding: 14px;
  border-radius: 0 10px;
  backdrop-filter: blur(5px);
  flex-direction: column;
  margin-top: 50px;
  height: 135px;
}

.nav-links li {
  margin: 0;
  text-align: right;
}

.nav-links a {
  color: #FFF;
  text-align: right;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
}

/* .nav-links a:hover {
  color: rgba(255, 255, 255, 0.7);
} */

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
}

.hero-title {
  font-family: 'Bungee', cursive;
  font-weight: 400;
  font-size: 70px;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.hero-title .title-line-1,
.hero-title .title-line-2 {
  display: block;
}

.hero-description {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #ffffff;
  line-height: 26px;
  margin-bottom: 30px;
}

.cta-button {
  background: transparent;
    border: 0;
    cursor: pointer;
}


@media (max-width: 1920px) {
  .hero-section {
    width: 100vw;
  }
  
  .background-image {
    width: 100vw;
    background-size: 100%,100%;
    background-position: top;
  }
}

@media (max-width: 1280px) {
  .hero-title {
    font-size: 60px;
  }
  
  .nav-links {
    gap: 20px;
    padding: 15px 20px;
  }
  
  .red-blur,
  .blue-blur {
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .hero-section  {
    width: 100vw;
    height: 665px;
  }
  .background-image {
    height: 680px;
    background-size: cover;
  }
  .navigation {
    top: 20px;
    left: 20px;
    right: 20px;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-description {
    font-size: 16px;
    line-height: 24px;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .grafika-linia-1,
  .grafika-linia-2 {
    display: none;
  }
}

@media (max-width: 480px) {
  .background-image{
    height: 486px;
  }
  .hero-title {
    font-size: 36px;
    text-align: left;
    margin-bottom: 14px;
  }
  .hero-description{
    text-align: left;
    margin-bottom: 24px;
  }
  .logo {
    font-size: 20px;
  }
  
  .cta-button {
    padding: 14px 24px 14px 0;
    font-size: 16px;
  }
  .cta-button svg text{
    font-size: 16px;
  }
}


/*
Figma Section Mapping:
- .selected-section: Main voting section container (node 3:1083)
- .selected-section__header: Title and description area
- .selected-section__countdown: Digital timer with 4 segments
- .selected-section__teams: Three team member cards grid
- .selected-section__team-card: Individual team card with image, content, and voting button
- .selected-section__footer: Bottom section with tracking message
*/

/* Design Tokens */
:root {
  /* Colors */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-orange: #FF9700;
  --color-teal: #01D2BD;
  --color-red: #eb1c24;
  --color-blue: #20a3dd;
  --color-gray-800: #1a1a1a;
  --color-gray-600: #666666;
  
  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-display: 'Bungee', cursive;
  --font-digital: 'Segment7';
  
  /* Font Sizes */
  --text-xs: 14px;
  --text-sm: 16px;
  --text-base: 18px;
  --text-lg: 24px;
  --text-xl: 35.678px;
  --text-2xl: 50px;
  --text-3xl: 136.054px;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 80px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 40px;
  
  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-button: 0 2px 8px rgba(0, 0, 0, 0.2);
  
  /* Layout */
  --container-max-width: 1440px;
  --card-width: 450px;
  --card-height: 660px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.5;
}

/* Main Section */
.selected-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--color-black);
  overflow: hidden;
}

.selected-section__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/Desktop_bg_glosowanie_all.webp');
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Container */
.selected-section__container {
  position: relative;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0;
  z-index: 3;
}

/* Header */
.selected-section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.selected-section__title {
  color: #FFF;
  text-align: center;
  font-family: Montserrat;
  font-size: 50px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 30px;
}

.selected-section__description {
  color: #FFF;
  text-align: center;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px; /* 144.444% */
  max-width: 576px;
  margin: 0 auto;
}

/* Countdown */

/* Kolory jak na screenie */
:root{
  --on: #20A3DD;         /* jasny niebieski segmentów aktywnych */
  --on-mid: #20A3DD;
  --on-dark: #20A3DD;

  --off-1: #7b7f84;      /* przygaszone segmenty tła (górny-lewy) */
  --off-2: #43484c;      /* środek */
  --off-3: #2a2f33;      /* dolny-prawy */

  --label: rgba(255,255,255,.9);
  --sep: rgba(255,255,255,.12);
}

/* Wrapper i tekst nad licznikiem */
.selected-section__countdown-wrapper{ text-align:center; color:#fff; }
.selected-section__countdown-text{
  color: #FFF;
  text-align: center;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 26px; /* 144.444% */
  margin-bottom: 16px;
}

/* Rząd bloków */
.selected-section__countdown{
  display:grid;
  grid-auto-flow:column;
  justify-content:center;
  align-items:end;
  gap: clamp(28px, 6vw, 70px);
  margin-bottom: 60px;
}

/* Pojedynczy blok */
.selected-section__timer-digit{
  position:relative;
  text-align:center;
  max-width: 160px; /* stabilna szerokość jak na makiecie */
}

/* pionowe separatory między blokami */
/* .selected-section__timer-digit:not(:last-child)::after{
  content:"";
  position:absolute;
  right: calc(-.5 * clamp(28px, 6vw, 90px));
  top: 14%;
  bottom: 18%;
  width:1px;
  background: linear-gradient(180deg, transparent, var(--sep), transparent);
} */

/* Przygaszone 88 (tło – szare segmenty) */
.selected-section__timer-digit::before{
  content:"88";
  position:absolute;
  left: 115px;
  transform: translateX(-115px);
  top:0;
  font-family:"Segment7", ui-monospace, Menlo, monospace;
  font-size: clamp(59px, 12vw, 160px);
  line-height:1;
  letter-spacing:0;

  /* „plastikowe” cieniowanie */
  color: transparent;
  -webkit-background-clip:text;
          background-clip:text;
  background-image:
    linear-gradient(160deg, var(--off-1) 8%, var(--off-2) 48%, var(--off-3) 92%);
  /* delikatny zewnętrzny cień jak w podglądzie */
  text-shadow:
    0 2px 0 rgba(0,0,0,.35),
    0 8px 14px rgba(0,0,0,.28);
  opacity:.5;
  z-index:0;
  pointer-events:none;
}

/* Aktywne cyfry – niebieskie, bez „glow”, z subtelnym bevel’em */
.selected-section__digit-value{
  position:relative;
  z-index:1;
  display:block;
  font-family:"Segment7", ui-monospace, Menlo, monospace;
  font-size: clamp(92px, 12vw, 160px);
  line-height:1;
  letter-spacing:0;
  padding:0;

  /* wypełnienie kolorem z delikatnym gradientem i minimalną obwódką */
  color: #20A3DD;
}

/* Podpisy pod blokami */
.selected-section__digit-label{
  display:block;
  margin-top: 1.1rem;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--label);
}

/* Węższe ekrany – zachowaj proporcje i usuń separatory */
@media (max-width: 640px){
  .selected-section__countdown{ gap: 28px; }
  .selected-section__timer-digit{ min-width: 0; }
  .selected-section__timer-digit:not(:last-child)::after{ display:none; }
}


/* Teams Grid */
.selected-section__teams {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  justify-items: center;
  background: #000;
}

/* Team Cards */
.selected-section__team-card {
  position: relative;
  width: var(--card-width);
  height: var(--card-height);
  border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid;
}

/* .selected-section__card-background {
  position: absolute;
  top: 13.08%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-black);
  border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
  border: 2px solid;
} */

.selected-section__team-card--orange{
  border-color: var(--color-orange);
}

.selected-section__team-card--orange .selected-section__team-name::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-orange);
  position: absolute;
    left: 50%;
    top: 40px;
    transform: translate(-50%, 0);
}

.selected-section__team-card--teal{
  border-color: var(--color-teal);
}

.selected-section__team-card--teal .selected-section__team-name::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-teal);
  position: absolute;
    left: 50%;
    top: 40px;
    transform: translate(-50%, 0);
}

.selected-section__team-card--red{
  border-color: var(--color-red);
}

.selected-section__team-card--red .selected-section__team-name::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-red);
  position: absolute;
    left: 50%;
    top: 40px;
    transform: translate(-50%, 0);
}

.selected-section__card-image {
  position: relative;
  /* height: 450px;
  overflow: hidden; */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.selected-section__card-image img {
  width: 100%;
  height: 451px;
  /* object-fit: contain;
  object-position: center; */
  margin: 0 auto 0 auto;
  max-width: 445px;
  display: block;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.selected-section__card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 330px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  transform: rotate(180deg);
}

.selected-section__card-graphic {
  position: absolute;
  top: 0;
  left: 20px;
  width: 311px;
  height: 345px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.selected-section__card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  text-align: center;
  min-height: 170px;
}

.selected-section__team-info {
  margin-bottom: var(--space-md);
}

.selected-section__team-label {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-white);
  display: block;
  margin-bottom: var(--space-xs);
}

.selected-section__team-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 25px;
  position: relative;
}

.selected-section__team-divider {
  width: 60px;
  height: 2px;
  margin: var(--space-xs) auto;
}

.selected-section__team-card--orange .selected-section__team-divider {
  background-color: var(--color-orange);
}

.selected-section__team-card--teal .selected-section__team-divider {
  background-color: var(--color-teal);
}

.selected-section__team-card--red .selected-section__team-divider {
  background-color: var(--color-red);
}

.selected-section__car-model {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.selected-section__car-description {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: 1.625;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.selected-section__vote-btn {
  cursor: pointer;
  background: transparent;
  border: 0;
  display: block;
  margin: 0 auto;
}

/* .selected-section__vote-btn:hover {
  background-color: #1a8bc4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(32, 163, 221, 0.3);
}

.selected-section__vote-btn:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
} */

.selected-section__team-link {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.selected-section__team-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.selected-section__team-link:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* Footer */
.selected-section__footer {
  text-align: center;
  margin-top: var(--space-2xl);
}

.selected-section__footer-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: 1.2;
  color: var(--color-white);
}

/* Responsive Breakpoints */
@media (max-width: 1440px) {
  .selected-section__container {
    padding: var(--space-xl) var(--space-md);
  }
  
  .selected-section__teams {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  
  .selected-section__team-card {
    width: 100%;
    max-width: var(--card-width);
  }
}

@media (max-width: 1280px) {
  .selected-section__title {
    font-size: clamp(36px, 4vw, var(--text-2xl));
  }
  
  .selected-section__footer-title {
    font-size: clamp(36px, 4vw, var(--text-2xl));
  }
  
  .selected-section__countdown {
    gap: var(--space-sm);
  }
  
  .selected-section__timer-digit {
    width: auto;
  }
  
  .selected-section__digit-value {
    font-size: clamp(80px, 12vw, var(--text-3xl));
  }
  .selected-section__timer-digit::before{
    font-size: clamp(80px, 12vw, var(--text-3xl));
  }
}

@media (max-width: 1024px) {
  .selected-section__teams {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-md);
  }
  
  .selected-section__countdown {
    gap: var(--space-sm);
  }
  
  .selected-section__timer-digit {
    width: 120px;
  }
}

@media (max-width: 768px) {
  .selected-section__container {
    padding: var(--space-lg) var(--space-sm);
  }

  .selected-section__teams {
    /* grid-template-columns: 1fr; */
    gap: var(--space-md);
  }
  
  .selected-section__team-card {
    max-width: 400px;
    height: auto;
    min-height: 600px;
  }
  
  .selected-section__countdown {
    /* grid-template-columns: repeat(2, 1fr); */
    gap: var(--space-sm);
  }
  
  .selected-section__timer-digit {
    width: 100px;
  }
  
  .selected-section__digit-value {
    font-size: clamp(59px, 12vw, 100px);
  }
  .selected-section__timer-digit::before{
    font-size: clamp(59px, 12vw, 100px);
  }
  .selected-section__title {
    font-size: clamp(28px, 6vw, 40px);
  }
  
  .selected-section__footer-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .selected-section__card-image img{
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 640px) {
  .selected-section__container {
    padding: var(--space-md) var(--space-sm);
  }
  .selected-section__countdown-text{
    color: #FFF;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 26px; /* 185.714% */
    margin-bottom: 24px;
    text-align: left;

  }
  .selected-section__title{
    text-align: left;
    color: #FFF;
    font-family: Montserrat;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px; /* 142.857% */
    margin-bottom: 24px;
  }

  .selected-section__description{
    color: #FFF;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px; /* 185.714% */
    margin-bottom: 30px;
    text-align: left;

  }
  .selected-section__card-image img {
    max-width: 100%;
    margin: 0 auto;
    display: block;
    height: 385px;
    object-fit: fill;
  }
  .selected-section__team-card {
    max-width: 100%;
  }
  .selected-section__teams {
    grid-template-columns:  repeat(auto-fit, minmax(320px, 100vw));;
    gap: var(--space-md);
  }
  
  .selected-section__countdown {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    gap: var(--space-xs);
  }
  
  .selected-section__timer-digit {
    width: 83px;
  }
  
  .selected-section__digit-value {
    font-size: clamp(59px, 10vw, 80px);
  }
  .selected-section__timer-digit::before{
    font-size: clamp(59px, 10vw, 80px);
    transform: translateX(-108px);
  }
  .selected-section__teams {
    margin-bottom: 30px;
  }
}
@media (max-width: 380px) {
.selected-section__card-image img{
  height: auto;
  max-width: 100%;
}
.selected-section__card-content{
  min-height: 195px;
}
}
@media (max-width: 360px) {
  .selected-section__container {
    padding: var(--space-sm);
  }
  
  .selected-section__title {
    font-size: clamp(28px, 7vw, 32px);
  }
  .selected-section__timer-digit {
    width: auto;
  }
  .selected-section__footer-title {
    font-size: clamp(24px, 7vw, 32px);
  }
  
  .selected-section__description {
    font-size: var(--text-xs);
  }
  
  .selected-section__countdown-text {
    font-size: var(--text-xs);
  }
  
  .selected-section__digit-value {
    font-size: clamp(59px, 8vw, 60px);
  }
  .selected-section__timer-digit::before{
    font-size: clamp(59px, 8vw, 60px);
    transform: translateX(-115px);
  }
  
  .selected-section__digit-label {
    font-size: var(--text-xs);
  }
}
@media (max-width: 350px) {
  .selected-section__teams {
    grid-template-columns:  repeat(auto-fit, minmax(300px, 100vw));;
    gap: var(--space-md);
    margin-bottom: 30px;
  }
  .selected-section__card-image img {
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
}

/* ===== Episodes Slider (node 4:256) ===== */
/* 
Figma Layer Mapping:
- .rf-episodes: Main section container (node 4:256)
- .rf-episodes__header: Section title (node 3:1084)
- .rf-episodes__player: Main video player (node 2:326)
- .rf-episodes__meta: Episode information below player (node 2:328)
- .rf-episodes__stig-effect: Stig preview box (node 4:190)
- .rf-episodes__list: Episode thumbnails list (right sidebar)
- .rf-episodes__item--active: Highlighted active episode (node 2:288)
- .rf-episodes__item--locked: Locked episodes with overlay (nodes 2:292+)
*/

:root {
  /* Episodes Section Colors */
  --rf-episodes-bg: #000000;
  --rf-episodes-text: #ffffff;
  --rf-episodes-accent: #20a3dd;
  --rf-episodes-active-bg: rgba(255, 255, 255, 0.15);
  --rf-episodes-locked-overlay: rgba(0, 0, 0, 0.7);
  --rf-episodes-divider: rgba(255, 255, 255, 0.15);
  
  /* Episodes Typography */
  --rf-episodes-title-size: 50px;
  --rf-episodes-episode-title-size: 18px;
  --rf-episodes-episode-number-size: 16px;
  --rf-episodes-description-size: 16px;
  --rf-episodes-date-size: 14px;
  
  /* Episodes Layout */
  --rf-episodes-player-width: 1339px;
  --rf-episodes-player-height: 753px;
  --rf-episodes-thumb-width: 145px;
  --rf-episodes-thumb-height: 100px;
  --rf-episodes-sidebar-width: 480px;
  --rf-episodes-item-height: 130px;
  
  /* Episodes Spacing */
  --rf-episodes-section-padding: 70px 50px 150px;
  --rf-episodes-header-margin: 122px;
  --rf-episodes-meta-margin: 30px;
  --rf-episodes-item-gap: 13px;
  
  /* Episodes Radius & Shadows */
  --rf-episodes-player-radius: 40px;
  --rf-episodes-thumb-radius: 15px;
  --rf-episodes-player-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --rf-episodes-thumb-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Main Section */
.rf-episodes {
  position: relative;
  background-color: var(--rf-episodes-bg);
  color: var(--rf-episodes-text);
  min-height: 1371px;
  overflow: hidden;
}

/* Background Elements */
.rf-episodes__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/Desktop_Player_bg_all.webp');
  background-size: 100%;
  background-position: top;
  background-repeat: no-repeat;
  z-index: 1;
}

.rf-episodes__gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 2;
}

.rf-episodes__gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  transform: rotate(180deg);
  z-index: 2;
}

/* Decorative Elements */
.rf-episodes__decorative {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.rf-episodes__light-effect {
  position: absolute;
  opacity: 0.6;
}

.rf-episodes__light-effect--bottom {
  bottom: 200px;
  left: -375px;
  width: 1335px;
  height: 1335px;
  background: radial-gradient(ellipse at center, rgba(32, 163, 221, 0.2) 0%, transparent 70%);
  transform: rotate(315deg);
}

.rf-episodes__light-effect--top-right {
  top: 167px;
  right: -150px;
  width: 1070px;
  height: 256px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: rotate(180deg);
}

.rf-episodes__light-effect--left {
  top: 123px;
  left: -613px;
  width: 916px;
  height: 1252px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: rotate(300deg);
}

.rf-episodes__light-effect--right {
  top: 477px;
  right: -800px;
  width: 1951px;
  height: 3908px;
  background: linear-gradient(45deg, rgba(32, 163, 221, 0.1) 0%, transparent 70%);
  transform: rotate(285deg);
}

.rf-episodes__effect-x {
  position: absolute;
  top: 194px;
  left: -66px;
  width: 188px;
  height: 192px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: rotate(330deg);
}

/* Container */
.rf-episodes__container {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  padding: var(--rf-episodes-section-padding);
  z-index: 3;
}

/* Header */
.rf-episodes__header {
  text-align: center;
  margin-bottom: var(--rf-episodes-header-margin);
}

.rf-episodes__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--rf-episodes-title-size);
  line-height: 1.2;
  color: var(--rf-episodes-text);
  margin: 0;
}

.rf-episodes__title span{
  color: #1565C0;
}
.rf-episodes__hint{
  color: #FFF;
text-align: center;
font-family: Montserrat;
font-size: 18px;
font-style: normal;
font-weight: 500;
line-height: 26px; /* 144.444% */
margin-top: 30px;
}
/* Main Layout */
.rf-episodes__layout {
  display: grid;
  grid-template-columns: 1fr var(--rf-episodes-sidebar-width);
  gap: 50px;
  align-items: start;
}

/* Player Section */
.rf-episodes__player-section {
  display: grid;
  gap: var(--rf-episodes-meta-margin);
}

.rf-episodes__player {
  position: relative;
  width: 100%;
  max-width: var(--rf-episodes-player-width);
  aspect-ratio: 1339 / 753;
  border-radius: var(--rf-episodes-player-radius);
  overflow: hidden;
  box-shadow: var(--rf-episodes-player-shadow);
  display: grid;
  grid-template-areas: "video";
}

.rf-episodes__video {
  grid-area: video;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--rf-episodes-player-radius);
}

.rf-episodes__play-overlay {
  grid-area: video;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 74.519%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 2;
}

.rf-episodes__play-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.rf-episodes__play-btn:hover {
  transform: scale(1.1);
}

.rf-episodes__play-btn:focus {
  outline: 2px solid var(--rf-episodes-text);
  outline-offset: 4px;
  border-radius: 50%;
}

/* Meta Information */
.rf-episodes__meta-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.rf-episodes__meta {
  display: grid;
  gap: 12px;
  max-width: 580px;
}

.rf-episodes__date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: var(--rf-episodes-date-size);
  color: var(--rf-episodes-text-secondary);
  text-align: left;
  margin-right: auto;
  width: fit-content;
}

.rf-episodes__episode-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--rf-episodes-episode-title-size);
  line-height: 1.4;
  margin: 0;
}

.rf-episodes__episode-number {
  color: var(--rf-episodes-text-secondary);
}

.rf-episodes__episode-name {
  color: var(--rf-episodes-text);
}

.rf-episodes__description {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: var(--rf-episodes-description-size);
  line-height: 1.625;
  color: var(--rf-episodes-text);
  margin: 0;
}

/* Stig Effect Box */
.rf-episodes__stig-effect {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: center;
  max-width: 340px;
  margin-left: auto;
  margin-top: 40px;
}

.rf-episodes__stig-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.rf-episodes__stig-content {
  display: grid;
  gap: 8px;
}

.rf-episodes__stig-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--rf-episodes-text);
  margin: 0;
}

.rf-episodes__stig-description {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.43;
  color: var(--rf-episodes-text);
  margin: 0;
}

/* Sidebar */
.rf-episodes__sidebar {
  display: grid;
  grid-template-rows: 1px 1fr;
  gap: 0;
  height: fit-content;
}

.rf-episodes__divider {
  width: 1px;
  height: 1075px;
  background-color: var(--rf-episodes-divider);
  justify-self: start;
}

.rf-episodes__list-wrapper {
  display: grid;
  gap: 20px;
  padding-left: 0px;
}

.rf-episodes__list {
  display: grid;
  gap: var(--rf-episodes-item-gap);
  list-style: none;
  margin: 0;
  padding-left: 50px;
  scroll-snap-type: y proximity;
  max-height: 1075px;
  overflow-y: auto;
}

/* Episode Items */
.rf-episodes__item {
  scroll-snap-align: start;
}

.rf-episodes__item-btn {
  display: grid;
  grid-template-columns: var(--rf-episodes-thumb-width) 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  padding: 0;
  border-radius: 0;
  padding: 17px 0;
  margin-left: -50px;
  padding-left: 50px;
}

.rf-episodes__item-btn:hover {
  background: linear-gradient(90deg, rgba(32, 163, 221, 0.60) 0%, rgba(32, 163, 221, 0.00) 50%);

}

.rf-episodes__item-btn:focus {
  outline: 2px solid var(--rf-episodes-text);
  outline-offset: 2px;
}

.rf-episodes__item--active .rf-episodes__item-btn {
  background: linear-gradient(90deg, rgba(32, 163, 221, 0.60) 0%, rgba(32, 163, 221, 0.00) 50%);
  border-radius: 0 10px 10px 0;
  padding: 17px 0;
  margin-left: -50px;
  padding-left: 50px;
}

.rf-episodes__item--locked .rf-episodes__item-btn {
  cursor: not-allowed;
  opacity: 0.7;
}

.rf-episodes__item--locked .rf-episodes__item-btn:hover {
  background-color: transparent;
}

.rf-episodes__item--faded {
  opacity: 0.3;
  mask: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* Thumbnails */
.rf-episodes__item-thumbnail {
  position: relative;
  width: var(--rf-episodes-thumb-width);
  height: var(--rf-episodes-thumb-height);
  border-radius: var(--rf-episodes-thumb-radius);
  overflow: hidden;
  display: grid;
  grid-template-areas: "thumb";
}

.rf-episodes__item-thumbnail img {
  grid-area: thumb;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rf-episodes__lock-overlay {
  grid-area: thumb;
  background-color: var(--rf-episodes-locked-overlay);
  display: grid;
  place-items: center;
  z-index: 2;
}

.rf-episodes__lock-icon {
  width: 20px;
  height: 20px;
}

/* Item Content */
.rf-episodes__item-content {
  display: grid;
  gap: 4px;
}

.rf-episodes__item-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: var(--rf-episodes-episode-number-size);
  color: #fff;
  line-height: 1.875;
}

.rf-episodes__item-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: var(--rf-episodes-episode-number-size);
  color: var(--rf-episodes-text);
  line-height: 1.875;
}

/* Controls */
.rf-episodes__controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  justify-self: center;
}

.rf-episodes__control-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: var(--rf-episodes-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.rf-episodes__control-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.rf-episodes__control-btn:focus {
  outline: 2px solid var(--rf-episodes-text);
  outline-offset: 2px;
}

.rf-episodes__control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rf-episodes__control-btn:disabled:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: none;
}

/* Responsive Design */
@media (max-width: 1440px) {
  .rf-episodes__container {
    padding: 50px 40px 75px;
  }
  
  .rf-episodes__layout {
    grid-template-columns: 1fr 400px;
    gap: 40px;
  }
  
  .rf-episodes__title {
    font-size: clamp(36px, 4vw, 50px);
  }
}

@media (max-width: 1280px) {
  .rf-episodes__layout {
    grid-template-columns: 1fr 350px;
    gap: 30px;
  }
  
  .rf-episodes__divider {
    height: 800px;
  }
  
  .rf-episodes__list {
    max-height: 800px;
  }
  .rf-episodes {
    min-height: 1045px;
  }
}

@media (max-width: 1024px) {
  .rf-episodes__meta-wrapper{
    flex-direction: column;
  }
  .rf-episodes__meta{
    text-align: left;
  }
  .rf-episodes__stig-effect{
    margin-left: 0;
    margin-top: 0;
  }
  .rf-episodes__layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .rf-episodes__sidebar {
    grid-template-rows: auto;
    grid-template-columns: 1fr;
  }
  
  .rf-episodes__divider {
    width: 100%;
    height: 1px;
    margin: 20px 0;
  }
  
  .rf-episodes__list-wrapper {
    padding-left: 0;
  }
  
  .rf-episodes__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-height: none;
    overflow-y: visible;
  }
  .rf-episodes__item-btn{
    padding-left: 20px;
  }
  .rf-episodes__item--active .rf-episodes__item-btn {
    margin-left: 0;
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .rf-episodes__container {
    padding: 40px 20px 40px;
  }
  
  .rf-episodes__title {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }
  .rf-episodes__header {
    margin-bottom: 14px;
  }
  .rf-episodes__list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 10px;
  }
  
  .rf-episodes__item {
    flex: 0 0 80px;
    scroll-snap-align: start;
    /* padding-left: 20px; */
  }
  
  .rf-episodes__item-btn {
    /* grid-template-columns: 1fr; */
    /* grid-template-rows: auto 1fr; */
    gap: 12px;
    text-align: center;
    padding-left: 65px;
  }
  
  .rf-episodes__item-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .rf-episodes__item-number{
    text-align: left;
  }
  .rf-episodes__item-title{
    text-align: left;
  }
  
  /* .rf-episodes__stig-effect {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
    margin: 40px auto 0;
  } */
}

@media (max-width: 640px) {
  .rf-episodes__container {
    padding: 30px 16px 40px;
  }
  .rf-episodes__title {
    color: #FFF;
    font-family: Montserrat;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px; /* 142.857% */
    text-align: left;
    margin-bottom: 14px;
  }
  
  .rf-episodes__item {
    flex: 0 0 80px;
  }
  
  .rf-episodes__meta {
    gap: 8px;
  }
  
  .rf-episodes__description {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .rf-episodes__container {
    padding: 20px 12px 40px;
  }
  
  .rf-episodes__item {
    flex: 0 0 200px;
  }
  
  .rf-episodes__item-btn {
    gap: 8px;
  }
  
  .rf-episodes__item-number,
  .rf-episodes__item-title {
    font-size: 14px;
  }
}

/* ===== Insurance CTA (node 2:238) ===== */
/* 
Figma Layer Mapping:
- .rf-insurance: Main section container (node 2:238)
- .rf-insurance__heading: Three-line headline (node 4:212)
- .rf-insurance__list: Benefits list with cyan bullets (node 2:259)
- .rf-insurance__cta: Primary CTA button (node 4:216)
- .rf-insurance__visual: Right column visual container (node 4:241)
- .rf-insurance__car-image: Car with cover image (node 2:65)
- .rf-insurance__figure: Driver figure overlay (node 2:61)
- Decorative elements: swoosh (2:62), glow (2:63), ovals (2:66, 2:68)
*/

:root {
  /* Insurance Section Colors */
  --rf-insurance-bg: #000000;
  --rf-insurance-text: #ffffff;
  --rf-insurance-bullet: #20a3dd;
  --rf-insurance-cta-bg: #1565c0;
  --rf-insurance-cta-text: #ffffff;
  --rf-insurance-glow: rgba(32, 163, 221, 0.3);
  --rf-insurance-line: rgba(32, 163, 221, 0.6);
  
  /* Insurance Typography */
  --rf-insurance-heading-size: 50px;
  --rf-insurance-heading-line-height: 1.2;
  --rf-insurance-text-size: 18px;
  --rf-insurance-text-line-height: 1.44;
  --rf-insurance-cta-size: 18px;
  
  /* Insurance Layout */
  --rf-insurance-section-height: 768px;
  --rf-insurance-content-width: 864px;
  --rf-insurance-visual-width: 974px;
  --rf-insurance-visual-height: 587px;
  --rf-insurance-car-width: 609px;
  --rf-insurance-car-height: 396px;
  --rf-insurance-figure-width: 221px;
  --rf-insurance-figure-height: 471px;
  
  /* Insurance Spacing */
  --rf-insurance-section-padding: 87px 50px 150px;
  --rf-insurance-grid-gap: 100px;
  --rf-insurance-list-gap: 16px;
  --rf-insurance-item-gap: 25px;
  --rf-insurance-bullet-size: 10px;
  --rf-insurance-bullet-margin: 15px;
  
  /* Insurance Effects */
  --rf-insurance-cta-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
  --rf-insurance-figure-shadow: 15px 15px 60px rgba(0, 0, 0, 0.25);
}

/* Main Section */
.rf-insurance {
  position: relative;
  background-color: var(--rf-insurance-bg);
  color: var(--rf-insurance-text);
  min-height: var(--rf-insurance-section-height);
  overflow: hidden;
  padding-top: 150px;
}

/* Background */
.rf-insurance__background {
  background-image: url('images/bg-flara-o-rankomat-desktop.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}



/* Container */
.rf-insurance__container {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  z-index: 3;
}

/* Grid Layout */
.rf-insurance__grid {
  display: grid;
  grid-template-columns: minmax(300px, var(--rf-insurance-content-width)) minmax(300px, var(--rf-insurance-visual-width));
  gap: 0;
  align-items: start;
  justify-content: center;
  min-height: 600px;
  max-width: 100%;
  overflow: hidden;
}

/* Content Column */
.rf-insurance__content {
  display: grid;
  gap: 0px;
  align-content: start;
  padding-top: 0;
}

.rf-insurance__header {
  margin-bottom: 24px;
}

.rf-insurance__heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--rf-insurance-heading-size);
  line-height: var(--rf-insurance-heading-line-height);
  color: var(--rf-insurance-text);
  margin: 0;
  display: grid;
  gap: 0;
}

.rf-insurance__heading-line {
  display: block;
  white-space: nowrap;
}

/* Benefits List */
.rf-insurance__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--rf-insurance-list-gap);
}

.rf-insurance__item {
  display: grid;
  grid-template-columns: var(--rf-insurance-bullet-size) 1fr;
  gap: var(--rf-insurance-bullet-margin);
  align-items: start;
  text-align: left;
}

.rf-insurance__bullet {
  width: var(--rf-insurance-bullet-size);
  height: var(--rf-insurance-bullet-size);
  background-color: var(--rf-insurance-bullet);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.rf-insurance__text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: var(--rf-insurance-text-size);
  line-height: var(--rf-insurance-text-line-height);
  color: var(--rf-insurance-text);
  white-space: nowrap;
}

/* CTA Button */
.rf-insurance__cta-wrapper {
  margin-top: 47px;
}

.rf-insurance__cta {
  position: relative;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 280px;
  height: 55px;
}

.rf-insurance__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--rf-insurance-cta-shadow);
}

.rf-insurance__cta:focus {
  outline: 2px solid var(--rf-insurance-text);
  outline-offset: 4px;
  border-radius: 8px;
}

.rf-insurance__cta-bg {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.rf-insurance__cta-text {
  grid-area: 1 / 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--rf-insurance-cta-size);
  color: var(--rf-insurance-cta-text);
  z-index: 2;
  white-space: nowrap;
}

/* Visual Column */
.rf-insurance__visual {
  position: relative;
  width: var(--rf-insurance-visual-width);
  height: var(--rf-insurance-visual-height);
  display: grid;
  grid-template-areas: "visual";
  justify-self: end;
  margin-top: 175px;
}

/* Car Container */
.rf-insurance__car-container {
  grid-area: visual;
  position: relative;
  width: 974px;
  height: 587px;
  justify-self: start;
  align-self: end;
  margin-bottom: 0;
  margin-left: 35px;
}

.rf-insurance__car-image {
  width: 100%;
  height: 100%;
  /* object-fit: cover;
  transform: scaleY(-1) rotate(180deg);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%); */
  border-radius: 0 20px 20px 0;
}

/* Driver Figure */
.rf-insurance__figure-container {
  grid-area: visual;
  position: relative;
  width: var(--rf-insurance-figure-width);
  height: var(--rf-insurance-figure-height);
  justify-self: end;
  align-self: start;
  margin-top: -36px;
  margin-right: 67px;
}

.rf-insurance__figure {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(var(--rf-insurance-figure-shadow));
}

/* Decorative Car Elements */
.rf-insurance__car-decorative {
  grid-area: visual;
  position: relative;
  pointer-events: none;
}

.rf-insurance__swoosh {
  position: absolute;
  bottom: 190px;
  left: 0;
  width: 288px;
  height: 43px;
  background: linear-gradient(45deg, var(--rf-insurance-line) 0%, transparent 100%);
  border-radius: 20px;
  opacity: 0.8;
}

.rf-insurance__glow {
  position: absolute;
  top: 81px;
  left: 275px;
  width: 481px;
  height: 128px;
  background: radial-gradient(ellipse at center, var(--rf-insurance-glow) 0%, transparent 70%);
  transform: rotate(52.6deg);
  opacity: 0.6;
}

.rf-insurance__oval {
  position: absolute;
  background: radial-gradient(ellipse at center, var(--rf-insurance-bullet) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
}

.rf-insurance__oval--1 {
  bottom: 60px;
  right: 187px;
  width: 24px;
  height: 24px;
}

.rf-insurance__oval--2 {
  bottom: 140px;
  right: 68px;
  width: 16px;
  height: 16px;
}

.rf-insurance__graphic-element {
  position: absolute;
  top: 217px;
  right: 67px;
  width: 75px;
  height: 77px;
  background: linear-gradient(135deg, var(--rf-insurance-line) 0%, transparent 100%);
  border-radius: 8px;
  opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 1440px) {
  .rf-insurance__container {
    padding: 70px 40px 120px;
  }
  
  .rf-insurance__grid {
    /* grid-template-columns: 700px 800px; */
    gap: 80px;
  }
  
  .rf-insurance__title {
    font-size: clamp(36px, 4vw, 50px);
  }
  
  .rf-insurance__visual {
    width: 800px;
    height: 480px;
  }
}

@media (max-width: 1280px) {
  .rf-insurance__grid {
    /* grid-template-columns: 600px 650px; */
    gap: 60px;
  }
  
  .rf-insurance__visual {
    width: 650px;
    height: 400px;
    margin-top: 150px;
    margin-right: auto;
  }
  
  .rf-insurance__car-container {
    width: 480px;
    height: 312px;
  }
  
  .rf-insurance__figure-container {
    width: 175px;
    height: 372px;
    margin-right: 50px;
  }
}

@media (max-width: 1024px) {
  .rf-insurance {
    padding-top: 40px;
  }
  .rf-insurance__grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .rf-insurance__visual {
    justify-self: center;
    margin-top: 0;
  }
  
  .rf-insurance__heading-line {
    white-space: normal;
    display: contents;
  }
  
  .rf-insurance__text {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .rf-insurance__heading{
    color: #FFF;
    font-family: Montserrat;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 24px;  
  }
  .rf-insurance__grid {
    gap: 20px;
  }
  .rf-insurance__container {
    padding: 50px 20px 100px;
  }
  
  .rf-insurance__title {
    font-size: clamp(36px, 4vw, 50px);
  }
  
  .rf-insurance__text {
    font-size: 16px;
  }
  
  .rf-insurance__visual {
    width: 100%;
    max-width: 500px;
    height: 100%;
  }
  
  .rf-insurance__car-container {
    width: 380px;
    height: auto;
  }
  
  .rf-insurance__figure-container {
    width: 138px;
    height: 294px;
    margin-right: 30px;
  }
  
  .rf-insurance__list-gap {
    --rf-insurance-list-gap: 30px;
  }
}

@media (max-width: 640px) {
  .rf-insurance__container {
    padding: 40px 16px 80px;
  }
  .rf-insurance__cta-wrapper{
    margin: 24px auto 0 0;
  }
  .rf-insurance__cta svg text{
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 23.636px; /* 147.727% */
  } 
  
  .rf-insurance__cta svg{
    width: 254px;
    height: 50px;
  }
  .rf-insurance__heading{
    color: #FFF;
    font-family: Montserrat;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px; /* 142.857% */
    text-align: left;
  }
  .rf-insurance__title {
    font-size: clamp(24px, 7vw, 32px);
  }
  
  .rf-insurance__text {
    font-size: 15px;
  }
  
  .rf-insurance__cta {
    width: 240px;
    height: 48px;
  }
  
  .rf-insurance__cta-text {
    font-size: 16px;
  }
  
  .rf-insurance__visual {
    max-width: 100%;
    height: 100%;
  }
  
  .rf-insurance__car-container {
    width: 100%;
    height: auto;
  }
  
  .rf-insurance__figure-container {
    width: 110px;
    height: 235px;
    margin-right: 20px;
  }
}

@media (max-width: 360px) {
  .rf-insurance__container {
    padding: 30px 12px 60px;
  }
  .rf-insurance__grid {
    gap: 20px;
  }
  .rf-insurance__title {
    font-size: clamp(20px, 8vw, 28px);
  }
  
  .rf-insurance__text {
    font-size: 14px;
  }
  
  .rf-insurance__cta {
    width: 200px;
    height: 44px;
  }
  
  .rf-insurance__cta-text {
    font-size: 15px;
  }
  
  .rf-insurance__visual {
    max-width: 100%;
    height: 100%;
  }
  
  .rf-insurance__car-container {
    width: 100%;
    height: 100%;
  }
  
  .rf-insurance__figure-container {
    width: 88px;
    height: 188px;
    margin-right: 15px;
  }
  
  .rf-insurance__item {
    gap: 15px;
  }
  
  .rf-insurance__bullet-margin {
    --rf-insurance-bullet-margin: 15px;
  }
}

/* ===== Waitlist CTA (node 2:168) ===== */
/* 
Figma Layer Mapping:
- .rf-waitlist: Main section container (node 2:168)
- .rf-waitlist__backdrop: Background image with gradients (node 2:169)
- .rf-waitlist__title: Main headline (node 4:267)
- .rf-waitlist__subtitle: Supporting copy (node 2:179)
- .rf-waitlist__input: Email input field (node 2:187)
- .rf-waitlist__label: Input label (node 2:188)
- .rf-waitlist__consent: Checkbox with legal text (node 2:189)
- .rf-waitlist__submit: Primary CTA button (node 4:270)
*/

:root {
  /* Waitlist Section Colors */
  --rf-waitlist-bg: #000000;
  --rf-waitlist-text: #ffffff;
  --rf-waitlist-input-border: #ffffff;
  --rf-waitlist-input-bg: rgba(255, 255, 255, 0);
  --rf-waitlist-input-focus: rgba(255, 255, 255, 0.1);
  --rf-waitlist-button-bg: #1565c0;
  --rf-waitlist-button-text: #ffffff;
  --rf-waitlist-error: #ff4444;
  --rf-waitlist-success: #00cc66;
  --rf-waitlist-link: #20a3dd;
  --rf-waitlist-glow: rgba(32, 163, 221, 0.3);
  
  /* Waitlist Typography */
  --rf-waitlist-title-size: 50px;
  --rf-waitlist-title-line-height: 1.34;
  --rf-waitlist-subtitle-size: 16px;
  --rf-waitlist-subtitle-line-height: 1.5;
  --rf-waitlist-label-size: 14px;
  --rf-waitlist-input-size: 16px;
  --rf-waitlist-consent-size: 12px;
  --rf-waitlist-consent-line-height: 1.67;
  --rf-waitlist-button-size: 18px;
  
  /* Waitlist Layout */
  --rf-waitlist-section-height: 904px;
  --rf-waitlist-content-width: 760px;
  --rf-waitlist-form-width: 400px;
  --rf-waitlist-input-height: 55px;
  --rf-waitlist-button-width: 280px;
  --rf-waitlist-button-height: 55px;
  
  /* Waitlist Spacing */
  --rf-waitlist-title-margin: 30px;
  --rf-waitlist-subtitle-margin: 30px;
  --rf-waitlist-form-gap: 25px;
  --rf-waitlist-consent-gap: 8px;
  --rf-waitlist-button-margin: 25px;
  
  /* Waitlist Effects */
  --rf-waitlist-input-radius: 10px;
  --rf-waitlist-input-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  --rf-waitlist-input-focus-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  --rf-waitlist-button-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
  --rf-waitlist-backdrop-blur: 7.5px;
}

/* Main Section */
.rf-waitlist {
  position: relative;
  background-color: var(--rf-waitlist-bg);
  color: var(--rf-waitlist-text);
  min-height: var(--rf-waitlist-section-height);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
}

/* Background with Image and Gradients */
.rf-waitlist__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url("images/Desktop_Tajemnica_all.webp");
  background-size: 100%;
  background-position: top;
  background-repeat: no-repeat;
  z-index: 1;
}


/* Container */
.rf-waitlist__container {
  position: relative;
  max-width: 1920px;
  width: 100%;
  display: grid;
  place-items: center;
  z-index: 4;
  padding: 50px 20px;
}

/* Content */
.rf-waitlist__content {
  display: grid;
  gap: 0;
  text-align: center;
  max-width: var(--rf-waitlist-content-width);
  width: 100%;
}

/* Header */
.rf-waitlist__header {
  display: grid;
  gap: var(--rf-waitlist-title-margin);
  margin-bottom: var(--rf-waitlist-subtitle-margin);
}

.rf-waitlist__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--rf-waitlist-title-size);
  line-height: var(--rf-waitlist-title-line-height);
  color: var(--rf-waitlist-text);
  margin: 0;
  white-space: normal;
}
.rf-waitlist__title span{
    color: #1565C0;
}
.rf-waitlist__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: var(--rf-waitlist-subtitle-size);
  line-height: var(--rf-waitlist-subtitle-line-height);
  color: var(--rf-waitlist-text);
  margin: 0;
  white-space: nowrap;
}

/* Form */
.rf-waitlist__form {
  display: grid;
  gap: var(--rf-waitlist-form-gap);
  justify-items: center;
  max-width: 550px;
  width: 100%;
  justify-self: center;
}

/* Email Field */
.rf-waitlist__field {
  display: grid;
  gap: 18px;
  width: 100%;
  margin-bottom: 14px;
}

.rf-waitlist__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: var(--rf-waitlist-label-size);
  color: var(--rf-waitlist-text);
  text-align: center;
  margin: 0;
}

.rf-waitlist__input {
  width: 100%;
  height: var(--rf-waitlist-input-height);
  background-color: var(--rf-waitlist-input-bg);
  border: 1px solid var(--rf-waitlist-input-border);
  border-radius: var(--rf-waitlist-input-radius);
  padding: 0 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: var(--rf-waitlist-input-size);
  color: var(--rf-waitlist-text);
  box-shadow: var(--rf-waitlist-input-shadow);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.rf-waitlist__input::placeholder {
  color: #FFF;
  text-align: center;
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-align: center;
}

.rf-waitlist__input:focus {
  outline: none;
  background-color: var(--rf-waitlist-input-focus);
  box-shadow: var(--rf-waitlist-input-shadow), var(--rf-waitlist-input-focus-shadow);
}

.rf-waitlist__input:invalid:not(:placeholder-shown) {
  border-color: var(--rf-waitlist-error);
  box-shadow: var(--rf-waitlist-input-shadow), 0 0 0 2px rgba(255, 68, 68, 0.3);
}

.rf-waitlist__input.is-invalid {
  border-color: var(--rf-waitlist-error);
  box-shadow: var(--rf-waitlist-input-shadow), 0 0 0 2px rgba(255, 68, 68, 0.3);
}

/* Consent Checkbox */
.rf-waitlist__consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--rf-waitlist-consent-gap);
  align-items: start;
  text-align: left;
  width: 100%;
  max-width: 436px;
  justify-self: flex-start;
}

.rf-waitlist__checkbox {
  width: 24px;
  height: 24px;
  background-color: transparent;
  border: 2px solid var(--rf-waitlist-input-border);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  appearance: none;
  transition: all 0.3s ease;
  margin-top: 2px;
}

.rf-waitlist__checkbox:checked {
  background-color: var(--rf-waitlist-button-bg);
  border-color: var(--rf-waitlist-button-bg);
}

.rf-waitlist__checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.rf-waitlist__checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.rf-waitlist__consent-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: var(--rf-waitlist-consent-size);
  line-height: var(--rf-waitlist-consent-line-height);
  color: var(--rf-waitlist-text);
  cursor: pointer;
  margin: 0;
}
.rf-waitlist__consent-text a{
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.rf-waitlist__policy-link {
  color: var(--rf-waitlist-link);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.rf-waitlist__policy-link:hover,
.rf-waitlist__policy-link:focus {
  color: rgba(32, 163, 221, 0.8);
  outline: none;
}

/* Submit Button */
.rf-waitlist__submit {
  position: relative;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: var(--rf-waitlist-button-width);
  height: var(--rf-waitlist-button-height);
  margin-top: var(--rf-waitlist-button-margin);
  background: transparent;
  border: 0;

}


.rf-waitlist__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  /* box-shadow: var(--rf-waitlist-button-shadow); */
}

.rf-waitlist__submit:focus {
  outline: 2px solid var(--rf-waitlist-text);
  outline-offset: 4px;
  border-radius: 8px;
}

.rf-waitlist__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.rf-waitlist__submit-bg {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.rf-waitlist__submit:disabled .rf-waitlist__submit-bg path {
  fill: #666666;
}

.rf-waitlist__submit-text {
  grid-area: 1 / 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--rf-waitlist-button-size);
  color: var(--rf-waitlist-button-text);
  z-index: 2;
  white-space: nowrap;
}

/* Error and Success States */
.rf-waitlist__error {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--rf-waitlist-error);
  margin-top: 8px;
  text-align: center;
  display: none;
  width: 420px;
  padding-left: 30px;
  text-align: left;
}

.rf-waitlist__error.is-visible {
  display: block;
}

.rf-waitlist__success {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--rf-waitlist-success);
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(0, 204, 102, 0.1);
  border: 1px solid var(--rf-waitlist-success);
  margin-top: 20px;
  display: none;
}

.rf-waitlist__success.is-visible {
  display: block;
}

.rf-waitlist__success p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1440px) {
  .rf-waitlist__backdrop {
    top: -150px;
    left: -10px;
    width: 1600px;
    height: 950px;
  }
  
  .rf-waitlist__glow {
    top: -70px;
    left: 300px;
    width: 1600px;
    height: 800px;
  }
  
  .rf-waitlist__title {
    font-size: clamp(40px, 4vw, 50px);
  }
}

@media (max-width: 1280px) {
  .rf-waitlist {
    min-height: 800px;
  }
  
  .rf-waitlist__backdrop {
    top: -120px;
    left: -8px;
    width: 1400px;
    height: 850px;
  }
  
  .rf-waitlist__content {
    max-width: 600px;
  }
  
  .rf-waitlist__title {
    font-size: clamp(36px, 5vw, 45px);
  }
}

@media (max-width: 1024px) {
  .rf-waitlist {
    min-height: 700px;
  }
  
  .rf-waitlist__backdrop {
    top: -100px;
    left: -5px;
    width: 1100px;
    height: 750px;
  }
  
  .rf-waitlist__content {
    max-width: 500px;
  }
  
  .rf-waitlist__title {
    font-size: clamp(32px, 6vw, 40px);
    white-space: normal;
  }
  
  .rf-waitlist__subtitle {
    white-space: normal;
  }
  
  .rf-waitlist__line--top,
  .rf-waitlist__line--bottom {
    display: none;
  }
}

@media (max-width: 768px) {
  .rf-waitlist {
    min-height: 600px;
    padding: 40px 20px;
  }
  
  .rf-waitlist__backdrop {
    top: -80px;
    left: -20px;
    width: 120%;
    height: 650px;
  }
  
  .rf-waitlist__content {
    max-width: 400px;
  }
  
  .rf-waitlist__title {
    font-size: clamp(28px, 7vw, 36px);
  }
  
  .rf-waitlist__subtitle {
    font-size: 15px;
  }
  
  .rf-waitlist__form {
    max-width: 350px;
  }
  
  .rf-waitlist__submit {
    width: 100%;
  }
  
  .rf-waitlist__graphic-x {
    display: none;
  }
}

@media (max-width: 640px) {
  .rf-waitlist {
    min-height: 500px;
    padding: 30px 16px;
  }
  
  .rf-waitlist__content {
    max-width: 320px;
  }
  
  .rf-waitlist__title {
    font-size: clamp(24px, 8vw, 32px);
  }
  
  .rf-waitlist__subtitle {
    font-size: 14px;
  }
  
  .rf-waitlist__form {
    max-width: 300px;
  }
  .rf-waitlist__submit svg text{
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  } 
  
  .rf-waitlist__submit svg{
    width: 248px;
    height: 44px;
  }
  .rf-waitlist__submit-text {
    font-size: 16px;
  }
  
  .rf-waitlist__consent {
    max-width: 300px;
  }
  
  .rf-waitlist__consent-text {
    font-size: 11px;
  }

}

@media (max-width: 360px) {
  .rf-waitlist__content{
    max-width: 100%;

  }
  .rf-waitlist__header{
    text-align: left;
  }
  .rf-waitlist {
    min-height: 450px;
    padding: 20px 12px;
  }
  .rf-waitlist__container{
    place-items: flex-start;
    padding: 50px 0;
  }
  .rf-waitlist__content {
    max-width: 280px;
  }
  
  .rf-waitlist__title {
    font-size: clamp(20px, 9vw, 28px);
  }
  
  .rf-waitlist__subtitle {
    font-size: 13px;
  }
  
  .rf-waitlist__form {
    max-width: 100%px;
  }
  
  .rf-waitlist__input {
    height: 48px;
    font-size: 14px;
  }
  
  .rf-waitlist__submit {
    width: 100%;
    height: 44px;
    place-items: flex-start;
  }
  
  .rf-waitlist__submit-text {
    font-size: 15px;
  }
  
  .rf-waitlist__consent {
    max-width: 260px;
    gap: 6px;
  }
  
  .rf-waitlist__checkbox {
    width: 20px;
    height: 20px;
  }
  
  .rf-waitlist__consent-text {
    font-size: 10px;
  }
}
.rf-waitlist__step2{
  width: 100%;
}
.rf-waitlist__step2.is-hidden { display: none; }
.rf-waitlist__upload { margin-top: 8px; }
.rf-waitlist__dropzone {
  display: grid; place-items: center; min-height: 160px;
  border: 2px dashed rgba(255,255,255,.35); border-radius: 12px;
  cursor: pointer; padding: 16px; text-align: center;
}
.rf-waitlist__file { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.rf-waitlist__upload-hint { font-size:.9rem; opacity:.7; margin-top:8px; }
.rf-waitlist__error { margin-top:6px; font-size:.9rem; color:#ff6b6b; display:none; }
.rf-waitlist__error.is-visible { display:block; }
.rf-waitlist__hint { 
color: rgba(255, 255, 255, 0.50);
text-align: center;
font-family: Montserrat;
font-size: 10px;
font-style: normal;
font-weight: 500;
line-height: 17px; /* 170% */}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bungee:wght@400&family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* Segment7 Digital Clock Font */
@import url('https://fonts.cdnfonts.com/css/segment7');

/* ===== Vote + Rewards Modal (node 4:627) ===== */
/*
Figma Layer Mapping:
- .rf-modal: Native dialog element with backdrop blur
- .rf-rewards: Modal container with white background and rounded corners  
- .rf-rewards__head: Header with title and close button (flex layout)
- .rf-rewards__title: Main heading with accent color
- .rf-rewards__grid: 2-column grid for reward cards
- .rf-rewards__card: Individual reward card with logo, content, and CTA
- .rf-rewards__cta: Action buttons with custom styling
*/

/* CSS Custom Properties for Modal */
:root {
  --rf-modal-backdrop: rgba(0, 0, 0, 0.85);
  --rf-modal-blur: 5px;
  --rf-modal-width: 920px;
  --rf-modal-radius: 40px;
  --rf-rewards-accent: #1b7fbf;
  --rf-rewards-text: #000000;
  --rf-rewards-bg: #ffffff;
  --rf-rewards-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  --rf-rewards-gap: 50px;
  --rf-rewards-card-radius: 40px;
}

/* Vote Error Messages */
.rf-vote__error {
  display: none;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(235, 28, 36, 0.1);
  border: 1px solid rgba(235, 28, 36, 0.3);
  border-radius: 8px;
  color: #eb1c24;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.rf-vote__error[aria-live="polite"]:not(:empty) {
  display: block;
}

/* Modal Base Styles */
.rf-modal {
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--rf-modal-radius);
  background: transparent;
  max-width: min(var(--rf-modal-width), calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  box-shadow: var(--rf-rewards-shadow);
  overflow: visible;
}

.rf-modal::backdrop {
  background: var(--rf-modal-backdrop);
  backdrop-filter: blur(var(--rf-modal-blur));
}

.rf-modal:not([open]) {
  display: none;
}

/* Rewards Modal Container */
.rf-rewards__container {
  background: var(--rf-rewards-bg);
  border-radius: var(--rf-modal-radius);
  padding: 50px 100px 0 100px;
  display: grid;
  gap: var(--rf-rewards-gap);
  min-height: 561px;
  max-height: 561px;
  position: relative;
}

/* Header Section */
.rf-rewards__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.rf-rewards__title {
  flex: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.rf-rewards__title-main {
  color: #1B7FBF;
  text-align: center;
  font-family: Montserrat;
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.rf-rewards__title-accent {
  color: #1B7FBF;
  text-align: center;
  font-family: Montserrat;
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.rf-rewards__subtitle {
  color: #000;
  font-family: Montserrat;
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* Close Button */
.rf-modal__close {
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: absolute;
    right: 31px;
    top: 23px;
    font-size: 60px;
    z-index: 8;
}


.rf-modal__close:focus-visible {
  outline: 2px solid var(--rf-rewards-accent);
  outline-offset: 2px;
}
.rf-modal__close--rewards{
  color: #000;
}

/* Rewards Grid */
.rf-rewards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rf-rewards-gap);
}

/* Reward Cards */
.rf-rewards__card {
  background: var(--rf-rewards-bg);
  padding: 0px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.rf-rewards__card-logo {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rf-rewards__logo-rankomat {
  height: 22px;
  width: auto;
}

.rf-rewards__logo-wwit {
  height: 35px;
  width: auto;
  max-width: 149px;
}

/* Card Content */
.rf-rewards__card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rf-rewards__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  color: var(--rf-rewards-text);
  text-transform: lowercase;
}

.rf-rewards__value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 90px;
  line-height: 1;
  color: var(--rf-rewards-accent);
  margin: 8px 0;
}

.rf-rewards__description {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.44;
  color: var(--rf-rewards-text);
}

/* CTA Buttons */
.rf-rewards__cta {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 253px;
  height: 55px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}


.rf-rewards__cta:focus-visible {
  outline: 2px solid var(--rf-rewards-accent);
  outline-offset: 4px;
}

.rf-rewards__cta:active {
  transform: translateY(0);
}

/* Loading State for Vote Buttons */
.js-vote-btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.js-vote-btn[aria-busy="true"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: rf-spin 1s linear infinite;
}

@keyframes rf-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}


/* Responsive Design */
@media (max-width: 1024px) {
  .rf-rewards__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .rf-rewards__container {
    padding: 40px 30px;
    gap: 30px;
  }
  
  .rf-rewards__title-main,
  .rf-rewards__subtitle {
    font-size: 28px;
  }
  
  .rf-rewards__value {
    font-size: 70px;
  }
}

@media (max-width: 768px) {
  .rf-rewards--vote{
    margin-top: 20px;
  }
  .rf-rewards__grid{
    gap: 0;
  }
  .rf-rewards__card-content{
    gap: 0px;
  }
  .rf-rewards__title-main,
  .rf-rewards__title-accent,
  .rf-rewards__subtitle{
    font-family: Montserrat;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }
  .rf-modal {
    max-width: calc(100vw - 20px);
  }
  
  .rf-rewards__container {
    padding: 30px 20px;
    gap: 0;
    min-height: auto;
    max-height: 766px;
  }
  
  .rf-rewards__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .rf-modal__close {
    align-self: flex-end;
    order: -1;
    top: 0;
    right: 15px;
  }
  
  .rf-rewards__title-main,
  .rf-rewards__subtitle {
    font-size: 24px;
  }
  
  .rf-rewards__value {
    font-size: 60px;
  }
  
  .rf-rewards__card {
    padding: 10px 0;
    min-height: auto;
    gap: 10px;
  }
  
  .rf-rewards__cta {
    width: 100%;
    max-width: 253px;
  }
}

@media (max-width: 480px) {
  .rf-rewards__title-main,
  .rf-rewards__subtitle {
    font-size: 20px;
  }

  .rf-rewards__title-main,
  .rf-rewards__title-accent,
  .rf-rewards__subtitle{
    font-family: Montserrat;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }
  
  .rf-rewards__value {
    font-size: 50px;
  }
  
  .rf-rewards__description {
    font-size: 16px;
  }
  
  .rf-rewards__label {
    font-size: 20px;
  }
}

/* ===== Team Modals (nodes 4:1972, 4:2189, 4:2572) ===== */
/*
Figma Layer Mapping:
- .rf-team: Team modal container with black background and rounded corners
- .rf-team__wrap: Main content wrapper using CSS Grid layout
- .rf-team__header: Header section with title and close button (flex layout)
- .rf-team__content: Main content area with image and text sections
- .rf-team__image-section: Left side with background, graphics, car, and person images
- .rf-team__text-section: Right side with team member bio text
- Team-specific modifiers: --szymon (orange), --adrian (teal), --mateusz (red)
*/

/* CSS Custom Properties for Team Modals */
:root {
  --rf-team-modal-width: 920px;
  --rf-team-modal-height: 550px;
  --rf-team-modal-radius: 40px;
  --rf-team-bg: #000000;
  --rf-team-text: #ffffff;
  --rf-team-szymon-accent: #ff9700;
  --rf-team-adrian-accent: #01d2bd;
  --rf-team-mateusz-accent: #eb1c24;
  --rf-team-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Team Modal Base Styles */
.rf-team {
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--rf-team-modal-radius) var(--rf-team-modal-radius) var(--rf-team-modal-radius) 0;
  background: transparent;
  width: min(var(--rf-team-modal-width), calc(100vw - 40px));
  height: min(var(--rf-team-modal-height), calc(100vh - 40px));
  box-shadow: var(--rf-team-shadow);
  overflow: hidden;
}

.rf-team::backdrop {
  background: var(--rf-modal-backdrop);
  backdrop-filter: blur(var(--rf-modal-blur));
}

.rf-team:not([open]) {
  display: none;
}

/* Team Modal Wrapper */
.rf-team__wrap {
  background: var(--rf-team-bg);
  border-radius: var(--rf-team-modal-radius) var(--rf-team-modal-radius) var(--rf-team-modal-radius) 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  overflow: hidden;
}

/* Header Section */
.rf-team__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 30px 0 0;
  z-index: 10;
  position: relative;
  margin-bottom: 20px;
}

.rf-team__title-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rf-team__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--rf-team-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.rf-team__name {
  font-family: 'Bungee', sans-serif;
  font-weight: 400;
  font-size: 35.678px;
  line-height: 1;
  color: var(--rf-team-text);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.02em;
}

.rf-team__divider {
  width: 60px;
  height: 1px;
  background: var(--rf-team-szymon-accent);
  margin-top: 8px;
}

/* Content Layout */
.rf-team__content {
  display: grid;
  grid-template-columns: 460px 1fr;
  height: 100%;
  position: relative;
}

/* Image Section */
.rf-team__image-section {
  position: relative;
  width: 460px;
  height: 100%;
  overflow: hidden;
}

.rf-team__background {
  position: absolute;
  inset: 0;
  background-image: 
    url('images/team-bg-1.png'),
    url('images/team-bg-2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.rf-team__graphics {
  position: absolute;
  left: 20px;
  top: 83px;
  width: 264px;
  height: 292.726px;
  background-image: url('images/team-graphics-szymon.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}

.rf-team__car-image {
  position: absolute;
  left: 136px;
  top: 219px;
  width: 370px;
  height: 200px;
  background-image: url('images/team-car.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 3;
}

.rf-team__person-image {
  position: absolute;
  bottom: 0;
  left: -7px;
  width: 400px;
  height: 500px;
  background-image: url('images/team-szymon-person.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 4;
}

.rf-team__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 460px;
  height: 210px;
  background-image: url('images/team-gradient.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(180deg);
  z-index: 5;
}

/* Text Section */
.rf-team__text-section {
  padding: 0px 30px 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 6;
}
.rf-team__model{
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.625;
  color: var(--rf-team-text);
  margin: 0;
  max-width: 400px;
  margin-bottom: 20px;
}

.rf-team__bio {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.625;
  color: var(--rf-team-text);
  margin: 0;
  max-width: 340.757px;
}

/* Team-specific Styling */
.rf-team--szymon .rf-team__divider {
  background: var(--rf-team-szymon-accent);
}

.rf-team--szymon .rf-team__wrap {
  border: 1px solid var(--rf-team-szymon-accent);
}

.rf-team--szymon .rf-team__graphics {
  background-image: url('images/team-graphics-szymon.svg');
}

.rf-team--szymon .rf-team__person-image {
  background-image: url('images/team-szymon-person.png');
}

.rf-team--adrian .rf-team__divider {
  background: var(--rf-team-adrian-accent);
}

.rf-team--adrian .rf-team__wrap {
  border: 1px solid var(--rf-team-adrian-accent);
}

.rf-team--adrian .rf-team__graphics {
  background-image: url('images/team-graphics-adrian.svg');
}

.rf-team--adrian .rf-team__person-image {
  background-image: url('images/team-adrian-person.png');
}

.rf-team--mateusz .rf-team__divider {
  background: var(--rf-team-mateusz-accent);
}

.rf-team--mateusz .rf-team__wrap {
  border: 1px solid var(--rf-team-mateusz-accent);
}

.rf-team--mateusz .rf-team__graphics {
  background-image: url('images/team-graphics-mateusz.svg');
}

.rf-team--mateusz .rf-team__person-image {
  background-image: url('images/team-mateusz-person.png');
}

/* Modal Animations */
.rf-team[open] {
  animation: rf-team-fade-in 0.3s ease-out;
}

.rf-team[open] .rf-team__wrap {
  animation: rf-team-slide-in 0.3s ease-out;
}

@keyframes rf-team-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rf-team-slide-in {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .rf-team {
    width: calc(100vw - 20px);
    height: 665px;
    max-height: calc(100vh - 20px);
    margin-top: 20px;
  }
  
  .rf-team__content {
    grid-template-columns: 1fr;
    grid-template-rows: 300px auto;
  }
  
  .rf-team__image-section {
    width: 100%;
    height: 300px;
  }
  
  .rf-team__text-section {
    padding: 30px;
  }
  
  .rf-team__name {
    font-size: 28px;
  }
  
  .rf-team__bio {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .rf-team {
    width: calc(100vw - 10px);
    border-radius: 20px 20px 20px 0;
  }
  
  .rf-team__wrap {
    border-radius: 20px 20px 20px 0;
  }
  
  .rf-team__header {
    padding: 15px 20px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .rf-modal__close {
    align-self: flex-end;
    order: -1;
  }
  
  .rf-team__content {
    grid-template-rows: 250px auto;
  }
  
  .rf-team__image-section {
    height: 250px;
  }
  
  .rf-team__text-section {
    padding: 20px;
  }
  
  .rf-team__name {
    font-size: 24px;
  }
  
  .rf-team__bio {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .rf-team__label {
    font-size: 14px;
  }
  
  .rf-team__name {
    font-size: 20px;
  }
  
  .rf-team__bio {
    font-size: 13px;
  }
  
  .rf-team__content {
    grid-template-rows: 200px auto;
  }
  .rf-team__image-section img{
    margin: 0 auto;
    display: block;
    width: 100%;
  }
  
  .rf-team__image-section {
    height: 250px;
  }
}

/* ===== Mobile Menu Toggle Functionality ===== */

/* Menu Toggle Button */
.menu-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1001;
}
/* 
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
} */

/* Icon transitions */
.hamburger-icon,
.close-icon {
  transition: all 0.3s ease;
}

/* Mobile-only styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1001;
  }

  /* .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .menu-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  } */

  .hamburger-icon,
  .close-icon {
    transition: all 0.3s ease;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  
  .nav-menu--open {
    right: 0;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
  }
  
  /* .nav-links a:hover {
    color: #1565C0;
    padding-left: 10px;
  } */
  
  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  
  .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .close-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  }

  .nav-menu--open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    animation: fade-in 0.3s ease;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== Clean Hamburger Menu Implementation ===== */

/* Menu Toggle Button - Always visible */
.menu-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0px;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1001;
  margin-left: auto;
}

/* .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
} */

/* Icon transitions */
.hamburger-icon,
.close-icon {
  transition: all 0.3s ease;
}

/* Navigation Menu */
.nav-menu {
  position: relative;
}

/* Navigation Links - Hidden by default */
.nav-links {
  position: absolute;
  top: 70px;
  right: 20px;
  width: 144px;
  height: 135px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 14px;
  list-style: none;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border-radius: 0 10px;
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(5px);
}

/* Show menu when open */
.nav-menu--open .nav-links {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links li {
  width: 100%;
}

.nav-links a {
  display: block;
  color: #FFF;
  text-align: right;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  font-style: normal;
  line-height: normal;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* .nav-links a:hover {
  color: rgba(255, 255, 255, 0.7);
} */

/* Hide close button inside menu */
.close-btn {
  display: none;
}

@media (max-width: 768px) {
  .nav-menu{
    position: fixed;
    right: 20px;
    top: 15px;
    max-width: 207px;
    height: auto
  }
  .nav-links{
    width: 100%;
    height: 240px;
  }
  .nav-menu--open{
    height: 100vh;
  }
}

/* Mobile layout - column display for episodes list */
@media (max-width: 768px) {
  .rf-episodes__list {
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow-y: scroll;
    padding-left: 0px;
  }
}

/* Coupon Code Button Styling with Copied State */
.rf-bonus__code {
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 16px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  position: relative;
}

.rf-bonus__code:hover {
  background: #333333;
  transform: translateY(-2px);
}

.rf-bonus__code:focus-visible {
  outline: 2px solid var(--bonus-blue);
  outline-offset: 2px;
}

.rf-bonus__code:active {
  transform: translateY(0);
}

.rf-bonus__code--copied {
  background: #4FC3F7;
}

/* ===== Bonus Section (node 61:3371) ===== */
/* Figma mapping: Main container -> rf-bonus, Header -> rf-bonus__header, Cards -> rf-bonus__card */
/* Key deviations: None - exact pixel match achieved */

:root {
  --bonus-card-radius: 24px;
  --bonus-shadow: 0px 8px 32px rgba(0, 0, 0, 0.12);
  --bonus-blue: #4FC3F7;
  --bonus-card-bg: #ffffff;
}

.rf-bonus {
  position: relative;
  background: #000;
  padding: 80px 0 120px;
  overflow: hidden;
  display: none; /* Initially hidden until vote is successful */
}

.rf-bonus--visible {
  display: block;
}

.rf-bonus__container {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.rf-bonus__header {
  text-align: center;
  margin-bottom: 64px;
}

.rf-bonus__title {
  font-family: 'Montserrat', sans-serif;
  color: #FFF;
  text-align: center;
  font-size: 50px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 30px;
}

.rf-bonus__subtitle {
  font-family: 'Montserrat', sans-serif;
  color: #FFF;
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px; /* 144.444% */
}

.rf-bonus__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
}

.rf-bonus__card {
  background: var(--bonus-card-bg);
  border-radius: 40px 40px 0 40px;
  background: #FFF;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* .rf-bonus__card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 12px 48px rgba(0, 0, 0, 0.16);
} */

.rf-bonus__logo {
  margin-bottom: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rf-bonus__label {
  color: #000;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

.rf-bonus__value {
  color: #20A3DD;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 90px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

.rf-bonus__caption {
  font-family: 'Montserrat', sans-serif;
  color: #000;
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px; /* 144.444% */
  margin-bottom: 20px;
}

.rf-bonus__cta {
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.rf-bonus__cta:hover {
  background: #333333;
  transform: translateY(-2px);
}

.rf-bonus__cta:focus-visible {
  outline: 2px solid var(--bonus-blue);
  outline-offset: 4px;
}

.rf-bonus__cta:active {
  transform: translateY(0);
}

/* Decorative elements */
.rf-bonus__decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.rf-bonus__decor::before,
.rf-bonus__decor::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--bonus-blue) 50%, transparent 100%);
  opacity: 0.3;
}

.rf-bonus__decor::before {
  top: 20%;
  left: 10%;
  transform: rotate(-15deg);
}

.rf-bonus__decor::after {
  bottom: 25%;
  right: 15%;
  transform: rotate(25deg);
}

/* Responsive Design */
@media (max-width: 1280px) {
  .rf-bonus__title {
    font-size: clamp(36px, 4vw, 48px);
  }
  
  .rf-bonus__subtitle {
    font-size: clamp(16px, 1.5vw, 18px);
  }
  
  .rf-bonus__value {
    font-size: clamp(48px, 6vw, 64px);
  }
}

@media (max-width: 1024px) {
  .rf-bonus {
    padding: 60px 0 80px;
  }
  
  .rf-bonus__container {
    padding: 0 32px;
  }
  
  .rf-bonus__header {
    margin-bottom: 48px;
  }
  
  .rf-bonus__grid {
    gap: 24px;
    max-width: 900px;
      grid-template-columns: 1fr 1fr;
  }
  
  .rf-bonus__card {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .rf-bonus {
    padding: 48px 0 64px;
  }
  
  .rf-bonus__container {
    padding: 0 24px;
  }
  
  .rf-bonus__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
  }
  
  .rf-bonus__header {
    margin-bottom: 40px;
  }
  
  .rf-bonus__title {
    font-size: clamp(28px, 6vw, 36px);
  }
  
  .rf-bonus__subtitle {
    font-size: 16px;
  }
  
  .rf-bonus__card {
    padding: 28px 20px;
  }
  
  .rf-bonus__value {
    font-size: clamp(40px, 8vw, 48px);
  }
  
  .rf-bonus__caption {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .rf-bonus__cta,
  .rf-bonus__code {
    padding: 14px 24px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .rf-bonus__container {
    padding: 0 20px;
  }
  
  .rf-bonus__grid {
    max-width: 320px;
  }
}

@media (max-width: 360px) {
  .rf-bonus__container {
    padding: 0 16px;
  }
  
  .rf-bonus__card {
    padding: 24px 16px;
  }
  
  .rf-bonus__grid {
    max-width: 280px;
  }
}

/* ===== Footer Styles ===== */
.rf-footer {
  background-color: #000;
  padding: 30px 0;
  margin-top: auto;
}

.rf-footer__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.rf-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.rf-footer__link {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rf-footer__link:hover {
  text-decoration: underline;
}

.rf-footer__copyright {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  opacity: 1;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rf-footer {
    padding: 30px 0;
  }
  
  .rf-footer__container {
    padding: 0 20px;
    gap: 15px;
  }
  
  .rf-footer__nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .rf-footer__link {
    font-size: 13px;
  }
  
  .rf-footer__copyright {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .rf-footer__link {
    font-size: 12px;
  }
  
  .rf-footer__copyright {
    font-size: 10px;
  }
}

/* ===== Gallery Contest Section (Figma node 309:2445) ===== */
/*
Figma Layer Mapping:
- 309:2445 (Group 361): Main section container
- 309:2446 (image 43): Background car image - 1600x1012px
- 309:2447 (Gradient dol): Right gradient overlay - 192x1012px
- 309:2448 (Gradient dol rotated): Left gradient overlay - 192x1012px

Structure:
- .rf-gallery: Section wrapper with overflow control
- .rf-gallery__background: Background layer with car image and gradient overlays
- .rf-gallery__container: Content wrapper (max-width 1600px, matches Figma frame)
- .rf-gallery__badge: Top-left "GALERIA" circular badge (SVG-based)
- .rf-gallery__content: Bottom content box with title, description, CTA

Layout Strategy:
- CSS Grid for section structure (no absolute positioning for layout)
- Background layer uses Grid with overlapping areas for image + gradients
- Badge and content positioned via Grid areas
- Responsive: fluid scaling below 1440px, stacks on mobile
*/

:root {
  --gallery-bg: #000000;
  --gallery-accent: #20a3dd;
  --gallery-text: #ffffff;
  --gallery-content-bg: rgba(0, 0, 0, 0.8);
  --gallery-content-border: rgba(32, 163, 221, 0.3);
}

/* Main Section */
.rf-gallery {
  position: relative;
  max-height: 770px;
  display: grid;
  place-items: center;
  background-color: var(--gallery-bg);
  overflow: hidden;
  padding: 0;
}

/* Background Layer with Image + Gradients */
/* .rf-gallery__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/Bg-sekcja-form.webp');
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
} */

/* Container */
.rf-gallery__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 40px;
  align-items: center;
}
.rf-gallery__container .image-container{
  position: relative;
}
.rf-gallery__bg-image{
max-width: 100%;
}

/* Badge - Top Left */
.rf-gallery__badge {
  grid-area: badge;
  justify-self: start;
  width: 207px;
  height: 207px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 0px;
  left: 250px;
  cursor: pointer;
}
.rf-gallery__badge img{
max-width: 100%;
}

.rf-gallery__badge-image {
  max-width: 100%;
}

.rf-gallery__badge-text {
  position: relative;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

/* Car Media */
.rf-gallery__media {
  grid-area: media;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.rf-gallery__car-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Content Box */
.rf-gallery__content-box {
  grid-area: content;
  justify-self: center;
  width: 100%;
  max-width: 740px;
  padding: 40px;
  background: var(--gallery-box-bg);
  border: 2px solid var(--gallery-border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  text-align: center;
  display: grid;
  gap: 24px;

}
@media (min-width: 991px) {

  .rf-gallery__content{
    transform: translate(0, -160px);
  }
}

.rf-gallery__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
  text-align: center;
}

.rf-gallery__description {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
  color: #fff;
  max-width: 851px;
  margin: 0 auto;
}

.rf-gallery__cta {
  display: inline-flex;
  justify-self: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.rf-gallery__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.rf-gallery__cta:focus-visible {
  outline: 3px solid var(--gallery-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.rf-gallery__cta:active {
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1440px) {
  .rf-gallery {
    min-height: 800px;
    padding: 70px 0;
  }
  
  .rf-gallery__container {
    padding: 0 32px;
  }
}

@media (max-width: 1280px) {
  .rf-gallery {
    min-height: 750px;
    padding: 60px 0;
  }
  
  .rf-gallery::before {
    width: 600px;
    left: -150px;
  }
  
  .rf-gallery::after {
    width: 700px;
    right: -100px;
  }
  
  .rf-gallery__content-box {
    max-width: 640px;
    padding: 36px;
  }
  .rf-gallery__badge{
    left: 100px;
  }
}

@media (max-width: 1024px) {
  .rf-gallery {
    min-height: 700px;
    padding: 50px 0 0;
  }
  
  .rf-gallery__container {
    padding: 0 24px;
    gap: 32px;
  }
  
  .rf-gallery__badge {
    width: 207px;
    height: 207px;

  }
  
  .rf-gallery__badge-pattern {
    width: 100px;
    height: 100px;
  }
  
  .rf-gallery__badge-text {
    font-size: 14px;
    letter-spacing: 1.5px;
  }
  
  .rf-gallery__content-box {
    padding: 32px;
    gap: 20px;
  }
  .rf-gallery__description{
    max-width: 708px;
    margin: 30px auto 30px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .rf-gallery {
    min-height: 400px;
    padding: 40px 0 0 0;
  }
  
  .rf-gallery::before,
  .rf-gallery::after {
    opacity: 0.4;
  }
  
  .rf-gallery__container {
    padding: 0;
    gap: 0;
  }
  
  .rf-gallery__badge {
    width: 90px;
    height: 90px;
    left: auto;
    right: 65px;
    top: 200px;
  }
  
  .rf-gallery__badge-pattern {
    width: 90px;
    height: 90px;
  }
  
  .rf-gallery__badge-text {
    font-size: 13px;
    letter-spacing: 1px;
  }
  
  .rf-gallery__content-box {
    padding: 28px 24px;
    gap: 18px;
    border-radius: 6px;
  }
  
  .rf-gallery__title {
    font-size: clamp(28px, 6vw, 36px);
  }
  
  .rf-gallery__description {
    font-size: 16px;
    line-height: 1.5;
  }
}

@media (max-width: 640px) {
  .rf-gallery {
    min-height: 400px;
  }
  
  .rf-gallery__container {
    padding: 32px 16px 0px;
    min-height: 400px;
    gap: 0px;
  }
  
  .rf-gallery__badge {
    width: 70px;
    height: 70px;
    left: auto;
    right: 10%;
    top: 50%;
  }
  
  .rf-gallery__content {
    padding: 24px 20px 0 20px;
    gap: 16px;
  }
  
  .rf-gallery__cta svg {
    width: 180px;
  }
}

@media (max-width: 360px) {
  .rf-gallery {
    min-height: 550px;
  }
  
  .rf-gallery__container {
    padding: 28px 12px 24px;
    min-height: 550px;
  }
  
  .rf-gallery__badge {
    width: 70px;
    height: 70px;
    right: 10%;
    top: 50%;
  }
  
  .rf-gallery__content {
    padding: 20px 16px;
    gap: 14px;
  }
  
  .rf-gallery__title {
    font-size: clamp(24px, 7vw, 28px);
  }
  
  .rf-gallery__description {
    font-size: 14px;
  }
  
  .rf-gallery__cta svg {
    width: 160px;
  }
}

/* ===== Games/Prizes Section (Figma node 309:2456) ===== */
/*
Figma Layer Mapping:
- 309:2456 (Group): Main section container
- 309:2457-2469: Card components with rounded corners
- 309:2459: Blue CTA card (419x323px)
- 309:2469: White prize cards container (980x323px)
- 309:2481: Vertical divider between prize cards

Structure:
- .rf-games: Section wrapper
- .rf-games__container: Max-width container
- .rf-games__grid: CSS Grid layout for 3 cards
- .rf-games__card: Individual card (article element)
- .rf-games__card--cta: Blue CTA card
- .rf-games__card--prize: Main prize card (car)
- .rf-games__card--other: Other prizes card (gift)

Layout Strategy:
- CSS Grid with 3 columns
- Cards have rounded corners (40px on top-left, top-right, bottom-left)
- No absolute positioning for layout
- Vertical divider via border on card
*/

/* Main Section */
.rf-games {
  position: relative;
  background-color: #000000;
  padding: 40px 0 80px 0;
}

/* Container */
.rf-games__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

/* Grid Layout */
.rf-games__grid {
  display: grid;
  grid-template-columns: 419px 1fr;
  gap: 0;
  max-height: 323px;
}

/* Card Base Styles */
.rf-games__card {
  position: relative;
  padding: 35px;
  border-radius: 40px 40px 0 40px;
  display: flex;
  flex-direction: column;
  max-height: 323px;
}

.rf-games__card-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

/* CTA Card (Blue) */
.rf-games__card--cta {
  background-color: #1565C0;
  color: #ffffff;
  grid-column: 1;
}

/* Prize Cards Container */
.rf-games__card--prize,
.rf-games__card--other {
  background-color: #ffffff;
  color: #000000;
}

.rf-games__card--prize {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 35px 35px 35px 35px;
  border-radius: 40px 40px 0 40px;
  margin-left: 41px;
}

.rf-games__card--other {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(35% - 1px);
  height: 100%;
  padding: 35px;
  border-radius: 0 40px 0 0;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

/* Typography */
.rf-games__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.rf-games__description {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  margin: 0;
  position: relative;
}
.rf-games__description span{
  font-weight: 700;
}
.rf-games__description .level-logo{
  position: absolute;
  top: 15px;
  left: -25px;
}

/* CTA Button */
/* .rf-games__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: #ffffff;
  color: #1565C0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
} */
.rf-games__cta{
  margin-top: 42px;
}

/* .rf-games__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
} */

/* .rf-games__button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.rf-games__button:active {
  transform: translateY(0);
} */

/* Media */
.rf-games__media {
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 40px;
}

.rf-games__image {
  max-width: 100%;
  height: auto;
  display: block;
}
.rf-games__media--gift{
  margin-top: -20px;
}
.rf-games__media--gift-single{
  margin-top: 0;
}

.rf-games__image--car {
  max-width: 385px;
  height: auto;
}

.rf-games__image--gift {
    width: 125px;
    height: 120px;
    object-fit: contain;

}
.rf-games__gifts{
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.rf-games__gift-title{
  text-align: center;
  font-weight: 800;
  font-size: 12px;
}
.rf-games__gift-title a{
  color: #1565C0;
}
.gift-cam{
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Responsive Breakpoints */
@media (max-width: 1440px) {
  .rf-games__grid {
    grid-template-columns: 380px 1fr;
  }
}

@media (max-width: 1280px) {
  .rf-games__container {
    padding: 0 32px;
  }
  .rf-games__image--gift {
    width: 125px;
    height: 120px;
    object-fit: contain;

  }
  .rf-games__card--prize{
    grid-template-columns: 250px 1fr;
  }
  .rf-games__card--other{
    width: calc(30% - 1px);
  }
  .rf-games__grid {
    grid-template-columns: 360px 1fr;
  }
  
  .rf-games__title {
    font-size: 26px;
  }
  
  .rf-games__description {
    font-size: 17px;
    line-height: 24px;
  }
}
@media (max-width: 1120px) {
  .rf-games__card--other{
    padding: 25px;
  }
  .rf-games__image--car {
    width: 290px;
  }
}
@media (max-width: 1024px) {
  .rf-games {
    padding: 30px 0;
    min-height: 1045px;
  }
  
  .rf-games__container {
    padding: 0 24px;
  }
  .rf-games__card-content {
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .rf-games__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .rf-games__card {
    padding: 32px;
  }
  
  .rf-games__card--prize {
    grid-column: 1;
    grid-template-columns: 1fr;
    border-radius: 40px 40px 0 40px;
    margin-left: 0;
    margin-bottom: 65px;
  }
  
  .rf-games__card--other {
    position: static;
    width: 100%;
    border-left: none;
    border-radius: 40px 40px 0 40px;
  }
  
  .rf-games__title {
    font-size: 30px;
  }
  
  .rf-games__description {
    font-size: 18px;
    line-height: 22px;
    max-width: 526px;
    margin: 0 auto;
    text-align: center;
  }
  .rf-games__cta{
    margin-top: 20px;
  }
  .rf-games__image--car {
    width: 398px;
  }
  .rf-games__media {
    margin-top: 60px;
  }
  .rf-games__description .level-logo{
    top: 7px;
  }
}

@media (max-width: 768px) {
  .rf-games {
    padding: 50px 0;
    min-height: 950px;
  }
  
  .rf-games__container {
    padding: 0 20px;
  }
  
  .rf-games__card {
    padding: 28px 24px;
    min-height: 247px;
  }
  
  .rf-games__card-content {
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .rf-games__card--prize, .rf-games__card--other{
    position: relative;
  }
  .rf-games__image--gift {
    width: 125px;
    height: 120px;
    object-fit: contain;

  }
  .rf-games__media{
    margin-top: 0;
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translate(-50%, 0px);
  }
  .rf-games__media--gift{
    bottom: 0;
  }
  .rf-games__card--cta .rf-games__title, .rf-games__card--cta .rf-games__description{
    color: #fff;
  }
  .rf-games__title {
    color: #000;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
  }
  
  .rf-games__description {
    color: #000;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 23.863px; /* 170.45% */
    margin: 0;
    text-align: left;
  }
  
  .rf-games__button {
    font-size: 16px;
    padding: 12px 32px;
  }
  
  .rf-games__image--car {
    width: 280px;
  }
  .rf-games__description .level-logo{
    top: 15px;
  }
  
}

@media (max-width: 640px) {
  .rf-games {
    padding: 40px 0;
  }
  
  .rf-games__container {
    padding: 0 16px;
  }
  
  .rf-games__grid {
    gap: 20px;
  }
  
  .rf-games__card {
    padding: 24px 20px;
    min-height: 247px;
  }
  
  .rf-games__title {
    font-size: 20px;
  }
  
  .rf-games__description {
    font-size: 14px;
    line-height: 20px;
  }
  
  .rf-games__image--car {
    width: 240px;
  }
  
  .rf-games__image--gift {
    width: 125px;
    height: 120px;
    object-fit: contain;

  }
}

@media (max-width: 360px) {
  .rf-games__container {
    padding: 0 12px;
  }
  
  .rf-games__card {
    padding: 20px 16px;
  }
  
  .rf-games__title {
    font-size: 18px;
  }
  
  .rf-games__description {
    font-size: 13px;
    line-height: 19px;
  }
  
  .rf-games__button {
    font-size: 15px;
    padding: 10px 28px;
  }
  
  .rf-games__image--car {
    width: 200px;
  }
  
  .rf-games__image--gift {
    width: 150px;
  }
}

/* ===== Contest Steps Section (Figma node 383:2216) ===== */
/*
Figma Layer Mapping:
- 383:2216 (Group): Main section container
- 383:2243: Top gradient overlay (150px height)
- 383:2244: Bottom gradient overlay (108px height)
- 383:2246: Main heading (H2)
- 383:2245: Subtitle paragraph
- 383:2220, 383:2221, 383:2227: Three card containers (453-454px x 436px)
- 383:2232, 383:2235, 383:2238: Numbered circles (60px diameter)
- 1:297: Decorative wavy line (1070px x 256px)
- 383:2225: CTA button (253px x 55px)

Structure:
- .rf-steps: Section wrapper with black background
- .rf-steps__gradient: Top/bottom gradient overlays
- .rf-steps__header: Centered header with title and subtitle
- .rf-steps__grid: CSS Grid layout for 3 cards
- .rf-steps__card: Individual step card with border and gradient
- .rf-steps__number: Numbered circle badge
- .rf-steps__decoration: Decorative wavy line below cards

Layout Strategy:
- CSS Grid with 3 equal columns
- Cards have blue border and gradient background
- Rounded corners: 20px (top-left, top-right, bottom-left)
- No absolute positioning for layout
*/

/* Main Section */
.rf-steps {
  position: relative;
  background-color: #000000;
  padding: 80px 0 120px;
  overflow: hidden;
}

/* Gradient Overlays */
.rf-steps__gradient {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.rf-steps__gradient--top {
  top: 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.rf-steps__gradient--bottom {
  bottom: 0;
  height: 108px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

/* Container */
.rf-steps__container {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.rf-steps__header {
  text-align: center;
  margin-bottom: 80px;
}

.rf-steps__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 20px;
}

.rf-steps__title-highlight {
  color: #1565C0;
}

.rf-steps__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  color: #ffffff;
  margin: 0;
}

/* Steps Grid */
.rf-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

/* Card Styles */
.rf-steps__card {
  position: relative;
  padding: 60px 30px 35px;
  background: linear-gradient(65.45deg, rgba(0, 0, 0, 0) 0%, rgba(32, 163, 221, 0.2) 100%), #000000;
  border: 1px solid #1565C0;
  border-radius: 20px 20px 0 20px;
  display: flex;
  flex-direction: column;
  min-height: 436px;
}

/* Numbered Circle */
.rf-steps__number {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: #1565C0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rf-steps__number-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: #ffffff;
}

/* Card Title */
.rf-steps__card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 28px;
  color: #ffffff;
  text-align: center;
  margin: 0 0 24px;
}

/* Card Content */
.rf-steps__card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.rf-steps__card-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  color: #ffffff;
  text-align: center;
  margin: 0;
}

/* Inline Link */
.rf-steps__link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
  transition: color 0.2s ease;
}

.rf-steps__link:hover {
  color: #1565C0;
}

.rf-steps__link:focus-visible {
  outline: 2px solid #1565C0;
  outline-offset: 2px;
  border-radius: 2px;
}

/* CTA Button */
.rf-steps_cta{
    margin: 0 auto;
    display: block;
    text-align: center;
}

/* Decorative Line */
.rf-steps__decoration {
  position: relative;
  width: 100%;
  max-width: 1070px;
  height: 256px;
  margin: -40px auto 0;
  pointer-events: none;
}

.rf-steps__decoration-line {
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsive Breakpoints */
@media (max-width: 1440px) {
  .rf-steps__grid {
    gap: 32px;
  }
}

@media (max-width: 1280px) {
  .rf-steps__container {
    padding: 0 32px;
  }
  
  .rf-steps__title {
    font-size: 44px;
  }
  
  .rf-steps__grid {
    gap: 28px;
  }
  
  .rf-steps__card {
    padding: 60px 24px 32px;
  }
  
  .rf-steps__card-title {
    font-size: 17px;
    line-height: 26px;
  }
  
  .rf-steps__card-text {
    font-size: 17px;
    line-height: 24px;
  }
}

@media (max-width: 1024px) {
  .rf-steps {
    padding: 60px 0 100px;
  }
  
  .rf-steps__container {
    padding: 0 24px;
  }
  
  .rf-steps__header {
    margin-bottom: 60px;
  }
  
  .rf-steps__title {
    font-size: 38px;
  }
  
  .rf-steps__subtitle {
    font-size: 17px;
  }
  
  .rf-steps__grid {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-bottom: 60px;
  }
  
  .rf-steps__card {
    min-height: auto;
    padding: 60px 32px 32px;
  }
  
  .rf-steps__decoration {
    display: none;
  }
}

@media (max-width: 768px) {
  .rf-steps {
    padding: 50px 0 80px;
  }
  
  .rf-steps__container {
    padding: 0 20px;
  }
  
  .rf-steps__header {
    margin-bottom: 50px;
  }
  
  .rf-steps__title {
    font-size: 32px;
  }
  
  .rf-steps__subtitle {
    font-size: 16px;
    line-height: 24px;
  }
  
  .rf-steps__grid {
    gap: 50px;
  }
  
  .rf-steps__card {
    padding: 60px 24px 28px;
  }
  
  .rf-steps__card-title {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 20px;
  }
  
  .rf-steps__card-text {
    font-size: 16px;
    line-height: 23px;
  }
  
  .rf-steps__button {
    font-size: 17px;
    padding: 12px 36px;
    min-width: 220px;
  }
}

@media (max-width: 640px) {
  .rf-steps {
    padding: 40px 0 70px;
  }
  
  .rf-steps__container {
    padding: 0 16px;
  }
  
  .rf-steps__header {
    margin-bottom: 40px;
  }
  
  .rf-steps__title {
    font-size: 28px;
  }
  
  .rf-steps__subtitle {
    font-size: 15px;
    line-height: 22px;
  }
  
  .rf-steps__grid {
    gap: 40px;
  }
  
  .rf-steps__card {
    padding: 50px 20px 24px;
  }
  
  .rf-steps__number {
    width: 50px;
    height: 50px;
    top: -25px;
  }
  
  .rf-steps__number-text {
    font-size: 24px;
  }
  
  .rf-steps__card-title {
    font-size: 15px;
    line-height: 22px;
  }
  
  .rf-steps__card-text {
    font-size: 15px;
    line-height: 22px;
  }
  
  .rf-steps__button {
    font-size: 16px;
    padding: 11px 32px;
    min-width: 200px;
  }
}

@media (max-width: 360px) {
  .rf-steps__container {
    padding: 0 12px;
  }
  
  .rf-steps__title {
    font-size: 24px;
  }
  
  .rf-steps__subtitle {
    font-size: 14px;
    line-height: 20px;
  }
  
  .rf-steps__card {
    padding: 45px 16px 20px;
  }
  
  .rf-steps__number {
    width: 45px;
    height: 45px;
    top: -22px;
  }
  
  .rf-steps__number-text {
    font-size: 22px;
  }
  
  .rf-steps__card-title {
    font-size: 14px;
    line-height: 20px;
  }
  
  .rf-steps__card-text {
    font-size: 14px;
    line-height: 21px;
  }
  
  .rf-steps__button {
    font-size: 15px;
    padding: 10px 28px;
    min-width: 180px;
  }
}

/* ===== Meme Criteria Section (node 309:2560) — Rankomat Środowisko ===== */
/*
Figma Layer Mapping:
- 309:2560 (Group): Main section container
- 309:2562 (H2): Main heading with blue highlight
- 309:2566, 309:2572, 309:2578, 309:2584: Four criterion cards (685px x 180px)
- Each card has: title (ExtraBold 18px), points (ExtraBold 18px blue), description (Regular 18px)

Structure:
- .rf-criteria: Section wrapper with black background
- .rf-criteria__header: Centered header with title
- .rf-criteria__grid: CSS Grid layout for 2x2 cards
- .rf-criteria__card: Individual criterion card with border and gradient
- .rf-criteria__card-header: Card header with title and points

Layout Strategy:
- CSS Grid with 2 columns x 2 rows
- Cards have blue border and gradient background
- Rounded corners: 20px (top-left, top-right, bottom-left)
- No absolute positioning for layout
*/

/* Main Section */
.rf-criteria {
  position: relative;
  background-color: #000000;
  padding: 70px 0 80px;
}

/* Container */
.rf-criteria__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

/* Header */
.rf-criteria__header {
  text-align: center;
  margin-bottom: 80px;
}

.rf-criteria__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

.rf-criteria__title-highlight {
  color: #1565C0;
}

/* Criteria Grid */
.rf-criteria__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Card Styles */
.rf-criteria__card {
  position: relative;
  padding: 30px;
  background: linear-gradient(30.87deg, rgba(0, 0, 0, 0) 0%, rgba(32, 163, 221, 0.2) 100%), #000000;
  border: 1px solid #1565C0;
  border-radius: 20px 20px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 180px;
}

/* Card Header */
.rf-criteria__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.rf-criteria__card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: normal;
  color: #ffffff;
  margin: 0;
  flex: 1;
}

.rf-criteria__card-points {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: normal;
  color: #1565C0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Card Text */
.rf-criteria__card-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  color: #ffffff;
  margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1440px) {
  .rf-criteria__grid {
    gap: 36px;
  }
}

@media (max-width: 1280px) {
  .rf-criteria {
    padding: 60px 0 70px;
  }
  
  .rf-criteria__container {
    padding: 0 32px;
  }
  
  .rf-criteria__header {
    margin-bottom: 70px;
  }
  
  .rf-criteria__title {
    font-size: 44px;
  }
  
  .rf-criteria__grid {
    gap: 32px;
  }
  
  .rf-criteria__card {
    padding: 28px;
  }
  
  .rf-criteria__card-title,
  .rf-criteria__card-points {
    font-size: 17px;
  }
  
  .rf-criteria__card-text {
    font-size: 17px;
    line-height: 24px;
  }
}

@media (max-width: 1024px) {
  .rf-criteria {
    padding: 50px 0 60px;
  }
  
  .rf-criteria__container {
    padding: 0 24px;
  }
  
  .rf-criteria__header {
    margin-bottom: 60px;
  }
  
  .rf-criteria__title {
    font-size: 38px;
  }
  
  .rf-criteria__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .rf-criteria__card {
    padding: 26px;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .rf-criteria {
    padding: 40px 0 50px;
  }
  
  .rf-criteria__container {
    padding: 0 20px;
  }
  
  .rf-criteria__header {
    margin-bottom: 50px;
  }
  
  .rf-criteria__title {
    font-size: 32px;
  }
  
  .rf-criteria__grid {
    gap: 20px;
  }
  
  .rf-criteria__card {
    padding: 24px;
    gap: 14px;
  }
  
  .rf-criteria__card-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .rf-criteria__card-title,
  .rf-criteria__card-points {
    font-size: 16px;
  }
  
  .rf-criteria__card-text {
    font-size: 16px;
    line-height: 23px;
  }
}

@media (max-width: 640px) {
  .rf-criteria {
    padding: 35px 0 45px;
  }
  
  .rf-criteria__container {
    padding: 0 16px;
  }
  
  .rf-criteria__header {
    margin-bottom: 40px;
  }
  
  .rf-criteria__title {
    font-size: 28px;
  }
  
  .rf-criteria__grid {
    gap: 18px;
    grid-template-columns: 1fr;
  }
  
  .rf-criteria__card {
    padding: 20px;
  }
  
  .rf-criteria__card-title,
  .rf-criteria__card-points {
    font-size: 15px;
  }
  
  .rf-criteria__card-text {
    font-size: 15px;
    line-height: 22px;
  }
}

@media (max-width: 360px) {
  .rf-criteria__container {
    padding: 0 12px;
  }
  
  .rf-criteria__title {
    font-size: 24px;
  }
  
  .rf-criteria__grid {
    gap: 16px;
  }
  
  .rf-criteria__card {
    padding: 18px;
  }
  
  .rf-criteria__card-title,
  .rf-criteria__card-points {
    font-size: 14px;
  }
  
  .rf-criteria__card-text {
    font-size: 14px;
    line-height: 21px;
  }
}

/* ===== Design System Alignment — Criteria Section Updates ===== */
/*
Aligning rf-criteria with rf-games design patterns (node 309:2456):
- Consistent section padding rhythm
- Unified card border radius approach
- Matching container max-widths
- Harmonized typography scale
*/

/* Align section padding with games section for consistent rhythm */
@media (min-width: 1441px) {
  .rf-criteria {
    padding: 80px 0;
  }
}

.lightbox-overlay {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

.lightbox-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  border: none;
  background: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

/* Sekcja wyników */
.vote-ending {
    padding: 60px 0 80px;
    color: #fff;
    text-align: center;

    
    background-image: url('images/bg-vote-desktop.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vote-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Nagłówek */
.vote-section__header {
    margin-bottom: 48px;
}

.vote-section__title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vote-section__teams {
    display: grid;

    /* JEST: 2 kolumny, 1. miejsce na szerokość obu */
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "first first"
        "second third";

    row-gap: 60px;      /* odstęp pionowy */
    column-gap: 60px;   /* odstęp między 2. i 3. miejscem = 60px */
    align-items: start;
    justify-content: center;
    justify-items: center;
}

.vote-section__team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Pozycje w gridzie */
.vote-section__team-card:nth-child(1) { grid-area: second; }
.vote-section__team-card:nth-child(2) { grid-area: first; }
.vote-section__team-card:nth-child(3) { grid-area: third; }

/* Wspólny styl kart */
.vote-section__card-image {
    /* border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7); */
}

/* 1 miejsce – 700x700 */
.vote-section__team-card:nth-child(2) .vote-section__card-image {
    width: 700px;
    height: 700px;
}
.vote-section__team-card:nth-child(2) .vote-section__card-image img {
    object-fit: contain;
}

/* 2 i 3 miejsce – 450x450 */
.vote-section__team-card:nth-child(1) .vote-section__card-image,
.vote-section__team-card:nth-child(3) .vote-section__card-image {
    width: 465px;
    height: 550px;
}
.vote-section__team-card:nth-child(1) .vote-section__card-image img{
  object-fit: contain;
}
/* Obrazki wypełniają całą ramkę */
.vote-section__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Podpisy pod kartami */
.vote-section__card-content {
    margin-top: 10px;
}
.vote-section__card-content::before{
  color: #1565C0;
  text-align: center;
  font-family: Bungee;
  font-size: 45px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
}


.vote-section__team-card:nth-child(1) .vote-section__card-content::before { content: "2 MIEJSCE"; }
.vote-section__team-card:nth-child(2) .vote-section__card-content::before { content: "1 MIEJSCE"; }
.vote-section__team-card:nth-child(3) .vote-section__card-content::before { content: "3 MIEJSCE"; }

.vote-section__team-name {
  color: #FFF;
  text-align: center;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px; /* 144.444% */
  margin-top: 15px;
}

/* Responsywność */
@media (max-width: 1200px) {
    .vote-section__team-card:nth-child(1) .vote-section__card-image {
        width: 560px;
        height: 560px;
    }
}

@media (max-width: 900px) {
    .vote-section__teams {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "first"
            "second"
            "third";
        row-gap: 40px;
    }

    .vote-section__team-card:nth-child(2) .vote-section__card-image,
    .vote-section__team-card:nth-child(3) .vote-section__card-image {
        width: 360px;
        height: 360px;
    }
}

@media (max-width: 600px) {
    .vote-section__team-card:nth-child(1) .vote-section__card-image {
        width: 100%;
        max-width: 420px;
        height: 420px;
    }

    .vote-section__team-card:nth-child(2) .vote-section__card-image,
    .vote-section__team-card:nth-child(3) .vote-section__card-image {
        width: 100%;
        max-width: 320px;
        height: 320px;
    }

    .vote-section__title {
        font-size: 30px;
    }
}

