/* Start Młodych – 2 kolumny (logo lewo, content prawo) */
.sm-intro{
  margin-top: 1rem;
}

.sm-intro--2col{
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) 1fr;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: start;
  margin-top: 2rem;
}

.sm-intro__logo{
  display: block;
  text-decoration: none;
  width: 100%;
}

.sm-intro__logo img{
  width: 100%;
  height: auto;
  display: block;

  /* robi wrażenie jak “duże logo” */
  max-width: 20rem;
}

.sm-intro__content{
  display: grid;
  gap: 0.9rem;
}

.sm-intro__lead{
  margin: 0;
  max-width: 58rem;
}

/* Projekty */
.sm-projects{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sm-project{
  display: flex;
  align-items: center;
  gap: 0.85rem;

  padding: 0.85rem 0.95rem;
  border-radius: 1.1rem;
  border: 0.0625rem solid var(--border);
  background: rgba(255,255,255,.90);
  box-shadow: 0 0.75rem 2rem rgba(2, 6, 23, .06);

  text-decoration: none;
  color: rgba(30,41,59,.90);
  font-weight: 650;
  font-size: 0.95rem;

  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

/* MOCNO większe logo projektu */
.sm-project img{
  width: 2.25rem;
  height: 2.25rem;
  display: block;
  flex: 0 0 auto;
}

.sm-project:hover{
  transform: translateY(-0.05rem);
  box-shadow: 0 1.1rem 2.6rem rgba(2, 6, 23, .10);
  border-color: rgba(15,23,42,.16);
}

.sm-project:focus-visible{
  outline: 0.1875rem solid rgba(22,64,255,.22);
  outline-offset: 0.1875rem;
}

/* Responsywność */
@media (max-width: 53.75rem){
  .sm-intro--2col{
    grid-template-columns: 1fr;
  }

  .sm-intro__logo img{
    max-width: 16rem;
  }

  .sm-projects{
    grid-template-columns: 1fr;
  }

  .sm-project{
    border-radius: 1rem;
  }

  .sm-project img{
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Start Młodych — 2 kolumny full width + separator */
.sm-intro{
  margin-top: 1.25rem;
}

.sm-intro--2col{
  display: grid;
  grid-template-columns: minmax(18rem, 24rem) 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start; /* top */
}

/* separator: cienka linia między kolumnami */
.sm-intro__content{
  display: grid;
  gap: 1rem;
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  border-left: 0.0625rem solid var(--border);
  align-content: start; /* top */
}

.sm-intro__logo{
  display: block;
  text-decoration: none;
  align-self: start; /* top */
}

.sm-intro__logo img{
  width: 100%;
  height: auto;
  display: block;
  max-width: 24rem; /* duże logo, ale kontrolowane */
}

/* Lead bez limitu szerokości (korzystamy z pełnej sekcji) */
.sm-intro__lead{
  margin: 0;
  max-width: none;
}

/* Projekty — większy oddech */
.sm-projects{
  margin-top: 0.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.sm-project{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;

  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  border: 0.0625rem solid var(--border);
  background: rgba(255,255,255,.92);
  box-shadow: 0 0.75rem 2rem rgba(2, 6, 23, .06);

  text-decoration: none;
  color: rgba(30,41,59,.92);
  font-weight: 650;
  font-size: 0.98rem;

  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

/* MOCNO większe logo projektu */
.sm-project img{
  width: 2.75rem;
  height: 2.75rem;
  display: block;
  flex: 0 0 auto;
}

.sm-project:hover{
  transform: translateY(-0.05rem);
  box-shadow: 0 1.1rem 2.6rem rgba(2, 6, 23, .10);
  border-color: rgba(15,23,42,.16);
}

.sm-project:focus-visible{
  outline: 0.1875rem solid rgba(22,64,255,.22);
  outline-offset: 0.1875rem;
}

/* Mobile */
@media (max-width: 53.75rem){
  .sm-intro--2col{
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  /* separator znika, bo już nie ma dwóch kolumn */
  .sm-intro__content{
    padding-left: 0;
    border-left: 0;
  }

  .sm-intro__logo img{
    max-width: 16rem;
  }

  .sm-projects{
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sm-project img{
    width: 2.6rem;
    height: 2.6rem;
  }
}

/* ===== Start Młodych block ===== */
.sm-head{
  max-width: none; /* pełna szerokość sekcji */
}

/* Top row: logo | opis */
.sm-top{
  margin-top: clamp(1rem, 2.2vw, 1.5rem);
  display: grid;
  grid-template-columns: auto 1px 1fr;
  align-items: start; /* top */
  gap: clamp(1rem, 3vw, 2.25rem);
}

.sm-top__logo{
  display: inline-flex;
  text-decoration: none;
  align-self: start;
}

.sm-top__logo img{
  height: clamp(2.4rem, 3.6vw, 3.25rem);
  width: auto;
  display: block;
}

.sm-top__sep{
  width: 1px;
  height: 100%;
  min-height: 3.25rem;
  background: var(--border);
  justify-self: center;
}

.sm-top__desc{
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 450;
  color: var(--text-muted, rgba(30,41,59,.78));
  max-width: none;
}

/* Project logos row */
.sm-projectRow{
  margin-top: clamp(1rem, 2.6vw, 1.9rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.sm-projectLogo{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: clamp(3.25rem, 5vw, 4.25rem);
  padding: 0 clamp(0.9rem, 2vw, 1.35rem);

  border-radius: 1.1rem;
  border: 0.0625rem solid var(--border);
  background: rgba(255,255,255,.92);
  box-shadow: 0 0.75rem 2rem rgba(2, 6, 23, .06);

  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.sm-projectLogo img{
  height: 70%;
  width: auto;
  display: block;
}

.sm-projectLogo:hover{
  transform: translateY(-0.05rem);
  box-shadow: 0 1.1rem 2.6rem rgba(2, 6, 23, .10);
  border-color: rgba(15,23,42,.16);
}

.sm-projectLogo:focus-visible{
  outline: 0.1875rem solid rgba(22,64,255,.22);
  outline-offset: 0.1875rem;
}

/* Mobile */
@media (max-width: 53.75rem){
  .sm-top{
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sm-top__sep{
    display: none;
  }

  .sm-projectRow{
    gap: 0.75rem;
  }

  .sm-projectLogo{
    width: 100%;
    justify-content: flex-start;
  }

  .sm-projectLogo img{
    height: 65%;
  }
}

.sm-top__logo img{
  height: clamp(5rem, 8.5vw, 8rem);
  width: auto;
  display: block;
}