/* stylowanie treści artykułów */
.section__inner {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: red;
}

/* nagłówki */
.section__inner h1,
.section__inner h2,
.section__inner h3 {
  color: #ed324a;
  margin-top: 0;
}

/* linki w treści */
.section__inner a {
  color: #ed324a;
  text-decoration: underline;
}

/* obrazki w artykułach */
.section__inner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.page {
    max-width: 100%;
    max-height: 100%;
    height:100vh;
    background-repeat: no-repeat!important;
    background-size:cover!important;
    overflow-block: hidden;
}
#custom1-1 {
    height: 200px;
    width: 400px;
    position: absolute;
    bottom:0;
    left:250px;
     background: linear-gradient(to right, #ED324A 0%, #ED324A 50%, #2D3037 50%, #2D3037 100%);
}

#custom1-1_more {
    background: #ed324a;
    height: 14px;
    width: 50%;
    padding: 15px 0 15px 0;
    position: absolute;
    bottom: 0;
    right: 0;
    color: white;
    font-size: 13px;
    text-align: center;
    
}

#custom1-1_text {
    color: white;
    font-size: 24px;
    margin: 30px auto;
    display: block;
    height: 24px;
    max-width: 80%;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    
}

#custom1-2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 240px;
    background: #ed324a;
    
}

#custom1-2_title {
    height: 20px;
    color: white;
    text-align: center;
    margin: 5px auto;
    font-size: 15px;
}

.custim1-2_block {
    height: 50px;
    width:50px;
    background: #2d3037;
    display: block;
    margin:0;
    padding: 5px;
    float: left;
    position: relative;
}

/* Początkowy stan */
#custom1-1 {
  position: absolute;
  bottom: 0;
  left: 0; /* jak masz w layoucie */
  background: linear-gradient(to right, #ED324A 0%, #ED324A 50%, #2D3037 50%, #2D3037 100%);
  height: 200px;
  width: 400px;
  opacity: 0;
  transform: translateY(50px);
  animation: customSlideUp 1.2s ease-out forwards;
  animation-delay: 1s; /* opóźnienie, żeby efekt był płynniejszy */
}

/* animacja – wjazd z dołu */
@keyframes customSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
custom1-1 {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s ease-out, transform 0.8s ease-out;
}

/* Po wejściu sekcji w widok */
#custom1-1.animate-in {
  opacity: 1;
  transform: translateY(0);
}

#custom2-1 {
    height: 100vh;
    width: 50%;
    float: left;
}

.custombox2 {
    height: 25vh;
    width: 25vh;
}

.section-bg2{
    display:flex;
  flex-direction:row;    /* pewność, że lewo→prawo */
  flex-wrap:nowrap;      /* bez łamania wiersza */
  align-items:flex-start;
}

.left{
  flex:1 1 auto;         /* zajmuje resztę */
  min-width:0;
  order:1;               /* lewy jako pierwszy */
}

.right{
  order:2;               /* prawy jako drugi */
  margin-left:auto;      /* klucz: dopycha do prawej */
  flex:0 0 280px;        /* stała szerokość prawej kolumny (zmień wg potrzeb) */
  /* reset na wypadek globalnych styli: */
  float:none !important;
  align-self:flex-start;
}


.right > .card:last-child{ margin-bottom:0; }
.section-content {
    height: 100%;
}

.right {
  position: absolute;
  top: 50%;
  right: 0;                        /*  ✅ przyklej do prawej krawędzi */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;           /*  ✅ upewnia, że boxy też do prawej */
  z-index: 2;
  padding-right: 0;                /*  ✅ brak wewnętrznego marginesu */

}

.section-bg .card,
.section-bg .card1{
  width: 25vh;
  height: 25vh;
  display: flex;
  flex-direction: column;        /* góra–dół */
  justify-content: space-between;/* liczba na górze, opis na dole */
  align-items: flex-start;       /* do lewej */
  box-sizing: border-box;
  padding: 1vh;                  /* delikatny „oddech”; możesz dać 0 */
}

.section-bg .card  { background: rgba(45,48,55,0.95);  color:#fff; font-weight:700; }
.section-bg .card1 { background: rgba(237,50,74,0.95); color:#fff; font-weight:700; }

.card h1,.card1 h1{
  margin:0 !important;
  padding:0 !important;
  line-height:.65 !important;
  font-size:70px;                /* zachowane jak miałeś */
}

.card .desc,.card1 .desc{
  margin:0 !important;
  padding:0 !important;
  line-height:1;
  /* font-size, weight – zostaw jak chcesz */
}

/* początkowy stan — niewidoczny */
.card, .card1 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* po aktywacji — pełna widoczność */
.card.visible, .card1.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-cont {
    display: block!important;
    margin:10px;
    padding: 15px!important;
    font-size: 14px;
}

